:root{
  --bg:#16110d;
  --text:#1a1410;
  --muted: rgba(26,20,16,.68);
  --soft:#f5efe6;
  --card:#fffdf8;
  --line: rgba(36,27,18,.14);
  --line-strong: rgba(36,27,18,.24);
  --accent:#b88a4a;
  --accent-soft: rgba(184,138,74,.15);
  --white:#FFFFFF;
  --shadow: 0 14px 35px rgba(36,27,18,.08);
  --shadow-soft: 0 8px 20px rgba(36,27,18,.06);
  --font-body:"Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-display:"Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-ui:"Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius2: 26px;
  --container: 1140px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:
    radial-gradient(1200px 650px at 10% -10%, rgba(184,138,74,.10), transparent 65%),
    radial-gradient(900px 500px at 90% 0%, rgba(255,255,255,.6), transparent 60%),
    #fffdf9;
  line-height:1.65;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
::selection{
  background: var(--accent-soft);
  color: var(--text);
}
h1, h2, h3{
  font-family:var(--font-display);
  font-weight:700;
}
h4, .btn, .nav__link, label, .brand__text{
  font-family:var(--font-ui);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(var(--container), 92vw);
  margin:0 auto;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow: 0 6px 14px rgba(36,27,18,.05);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand__logo{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line);
}
.brand__text{
  font-weight:650;
  letter-spacing:.04em;
  font-size:.88rem;
  text-transform:uppercase;
}

.nav{ position:relative; }
.nav__menu{ display:flex; align-items:center; gap:18px; }
.nav__link{
  font-size:.84rem;
  color:var(--muted);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nav__link:hover{ color:var(--text); }
.nav__link.active{
  color:var(--accent);
  font-weight:600;
}

.nav__toggle{
  display:none; background:transparent; border:0; padding:10px; cursor:pointer;
}
.nav__toggle span{
  display:block; width:22px; height:2px; background:var(--text);
  margin:5px 0; border-radius:2px;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:999px;
  border:1px solid var(--line-strong);
  font-weight:600; font-size:.95rem;
  letter-spacing:.01em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn--sm{ padding:10px 14px; font-size:.9rem; }
.btn--primary{
  background: linear-gradient(145deg, #241a14 0%, #30231b 55%, #3a2a1f 100%);
  color:var(--white);
  border-color: rgba(184,138,74,.45);
  box-shadow: 0 10px 24px rgba(36,27,18,.18);
}
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(36,27,18,.24);
}
.btn--ghost{
  background: rgba(255,255,255,.66);
  border-color: var(--line);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.9);
  border-color: var(--accent);
}

/* Hero */
.hero{
  position:relative;
  background: var(--bg);
  color: var(--white);
  overflow:hidden;
}
.hero--page .hero__grid{
  min-height: clamp(360px, 62svh, 520px);
  padding: clamp(90px, 15vh, 128px) 0 72px;
}
.hero--page .hero__copy{ max-width:60ch; }
.hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(920px 500px at 14% 20%, rgba(184,138,74,.26), transparent 66%),
    radial-gradient(860px 420px at 84% 25%, rgba(255,255,255,.11), transparent 62%),
    linear-gradient(180deg, rgba(8,7,6,.44), rgba(10,9,8,.8)),
    url("../assets/images/hero.png");
  background-size: cover;
  background-position: center;
  opacity:.48;
  filter:saturate(.72) contrast(.97);
}
.hero__grid{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height: calc(100svh - 72px);
  padding: clamp(88px, 16vh, 146px) 0 clamp(70px, 10vh, 98px);
}
.hero__copy{ max-width:64ch; }
.hero__eyebrow{
  margin:0;
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: rgba(243,216,176,.88);
}
.hero h1{
  font-size: clamp(2.2rem, 3.7vw, 3.35rem);
  line-height:1.12;
  margin:10px 0 16px;
  letter-spacing:-.01em;
  max-width: 18ch;
  text-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.lead{
  font-size:1.06rem;
  color: rgba(255,255,255,.86);
  line-height:1.75;
  max-width: 52ch;
}
.hero__cta{ display:flex; gap:12px; margin:24px 0 22px; flex-wrap:wrap; }
.hero__scroll{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.82rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(255,255,255,.72);
}
.hero__scroll::after{
  content:"↓";
  font-size:.92rem;
  transition: transform .2s ease;
}
.hero__scroll:hover::after{ transform: translateY(2px); }

/* Home hero - calmer previous direction */
.page-home .hero__bg{
  background:
    radial-gradient(800px 400px at 20% 20%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(700px 350px at 80% 30%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.60), rgba(0,0,0,.92)),
    url("../assets/images/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity:.55;
  filter:saturate(.9) contrast(1);
}
.page-home .hero__eyebrow{
  color: rgba(243,216,176,.9);
  text-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.page-home .hero h1{
  font-size: clamp(1.95rem, 3.35vw, 2.85rem);
  letter-spacing:-.015em;
  text-shadow:none;
}
.page-home .lead{
  font-size:1.08rem;
  color: rgba(255,255,255,.84);
  max-width:56ch;
}

/* Sections */
.section{ padding:112px 0; }
.section--intro{ border-top:1px solid var(--line); }
.section--alt{ background: var(--soft); }
.section__head{ margin-bottom:34px; }
.section__kicker{
  margin:0 0 8px;
  font-size:.76rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: var(--accent);
  font-weight:700;
}
.section__head h2{
  margin:0 0 10px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  letter-spacing:-.008em;
  line-height:1.2;
}
.section__head h2::after{
  content:"";
  display:block;
  width:72px;
  height:1px;
  margin-top:10px;
  background: linear-gradient(90deg, rgba(184,138,74,.8), rgba(184,138,74,0));
}
.muted{ color: var(--muted); }
.small{ font-size:.9rem; }

/* Cards & grids */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,252,247,.9));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(184,138,74,.35);
}
.card--soft{ background: rgba(255,255,255,.78); }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.grid3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:18px; }

.list{ margin:12px 0 0; padding-left:18px; }
.list li{ margin:10px 0; color: var(--muted); }

.signal__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.signal__card h3{
  margin:0 0 8px;
  font-size:1.03rem;
  letter-spacing:-.01em;
}
.signal__card p{ margin:0; }

.digital__grid{ align-items:stretch; }
.digital__note{
  margin-top:16px;
  border:1px solid rgba(184,138,74,.34);
  border-radius:12px;
  padding:10px 12px;
  background: rgba(184,138,74,.10);
  font-size:.95rem;
}
.linkArrow{
  display:inline-flex;
  align-items:center;
  margin-top:10px;
  font-weight:700;
  font-size:.94rem;
  color: var(--accent);
}
.linkArrow::after{
  content:"→";
  margin-left:6px;
}
.ctaStrip{
  margin-top:24px;
  border:1px solid rgba(184,138,74,.3);
  border-radius:16px;
  background: linear-gradient(160deg, rgba(255,255,255,.84), rgba(255,250,243,.9));
  padding:18px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  box-shadow: var(--shadow-soft);
}
.ctaStrip p{
  margin:0;
  color:var(--muted);
  font-weight:500;
}

/* Carousel */
.carousel{
  position:relative;
  border:1px solid rgba(184,138,74,.22);
  border-radius:20px;
  background: rgba(255,255,255,.82);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.carousel__viewport{ overflow:hidden; }
.carousel__track{
  display:flex;
  transition: transform .5s ease;
  will-change: transform;
}
.carousel__slide{
  min-width:100%;
  margin:0;
  background: #111;
}
.carousel__slide img{
  width:100%;
  aspect-ratio: 16/9;
  object-fit:cover;
  filter:saturate(.95) contrast(1.01);
}
.carousel__slide figcaption{
  margin:0;
  padding:12px 14px;
  font-size:.9rem;
  color:var(--muted);
  background: rgba(255,255,255,.93);
  border-top:1px solid var(--line);
}
.carousel__btn{
  position:absolute;
  top: calc(50% - 28px);
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(184,138,74,.34);
  background: rgba(24,18,14,.58);
  color: var(--white);
  font-size:1.45rem;
  line-height:1;
  cursor:pointer;
  z-index:2;
  backdrop-filter: blur(2px);
}
.carousel__btn:hover{ background: rgba(24,18,14,.76); }
.carousel__btn--prev{ left:12px; }
.carousel__btn--next{ right:12px; }
.carousel__dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px;
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.86);
}
.carousel__dot{
  width:8px;
  height:8px;
  border-radius:999px;
  border:0;
  background: rgba(36,27,18,.28);
  cursor:pointer;
}
.carousel__dot.is-active{
  width:20px;
  background: var(--accent);
}
.carousel.is-static .carousel__btn,
.carousel.is-static .carousel__dots{ display:none; }

/* Tabs */
.tabs{
  display:flex; gap:12px; flex-wrap:wrap;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
}
.tab{
  border:0;
  background:transparent;
  padding:10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:700;
  color: var(--muted);
}
.tab.active{
  background: rgba(184,138,74,.13);
  color: #3d2c1a;
}
.tabpanes{ margin-top:18px; }
.pane{ display:none; }
.pane.active{ display:block; }

/* Steps */
.steps{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:14px; }
.step{
  border:1px solid var(--line);
  border-radius: 16px;
  padding:14px;
  display:flex; gap:12px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
}
.step__n{
  width:34px; height:34px; border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(184,138,74,.16);
  color:#3b2816;
  font-weight:800;
}

/* Tech cards */
.cards{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.tcard{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 240px;
  overflow:hidden;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.tcard__media{
  background-size: cover;
  background-position:center;
  filter:saturate(.86) contrast(.98);
}
.tcard__body{ padding:18px; }
.tcard__body h3{ margin:0 0 6px; }

.appleBox{
  margin-top:16px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(255,255,255,.84);
  padding:18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  box-shadow: var(--shadow-soft);
}
.appleBox__grid{
  display:flex; flex-wrap:wrap; gap:10px;
  align-content:flex-start;
}
.pill{
  border:1px solid var(--line);
  border-radius: 999px;
  padding:8px 12px;
  font-weight:700;
  font-size:.92rem;
  background:rgba(255,255,255,.85);
}

/* Timeline */
.timeline{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:10px;
  align-items:stretch;
}
.node{
  border:1px solid var(--line);
  border-radius: 16px;
  padding:14px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
}
.node span{
  display:inline-grid; place-items:center;
  width:34px; height:34px;
  border-radius:999px;
  background: rgba(184,138,74,.15);
  color:#3b2816;
  font-weight:900;
}
.node p{ margin:10px 0 0; color:var(--muted); font-weight:700; }

/* Form */
.form{ padding:18px; }
.form__row{ margin-bottom:12px; }
label{ display:block; font-weight:700; margin-bottom:6px; }
input, select, textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius: 14px;
  padding:12px 12px;
  font: inherit;
  background:rgba(255,255,255,.93);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: rgba(184,138,74,.55);
  box-shadow: 0 0 0 3px rgba(184,138,74,.14);
}
textarea{ resize: vertical; }
.form__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.kpi{ margin-top:14px; display:grid; gap:10px; }
.kpi__item{
  border:1px solid var(--line);
  border-radius: 16px;
  padding:12px;
  background: rgba(255,255,255,.8);
}
.kpi__k{ font-weight:900; }
.kpi__v{ color:var(--muted); margin-top:4px; }

.note{
  margin-top:14px;
  border-left:4px solid rgba(0,0,0,.25);
  padding:12px 12px;
  background: rgba(0,0,0,.03);
  border-radius: 12px;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(245,239,230,.8));
}
.footer__inner{
  display:flex; justify-content:space-between; align-items:center;
  color: var(--muted);
  font-size:.93rem;
}
.footer__link:hover{ color: var(--text); }

/* Reveal animation */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .section{ padding:88px 0; }
  .hero__grid{
    min-height: calc(90svh - 68px);
    padding:92px 0 62px;
  }
  .hero h1{ max-width: 22ch; }
  .signal__grid{ grid-template-columns:1fr; }
  .grid3{ grid-template-columns:1fr; }
  .grid2{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; }
  .tcard{ grid-template-columns: 1fr; }
  .tcard__media{ min-height:180px; }
  .appleBox{ grid-template-columns:1fr; }
  .timeline{ grid-template-columns: 1fr 1fr 1fr; }
  .hero--page .hero__grid{
    min-height:auto;
    padding:88px 0 54px;
  }
}

@media (max-width: 780px){
  .hero__grid{
    min-height: auto;
    padding:84px 0 56px;
  }
  .hero h1{ font-size: clamp(2rem, 10.5vw, 2.7rem); }
  .lead{ font-size:1rem; line-height:1.7; }
  .hero__cta .btn{ width:100%; }
  .ctaStrip .btn{ width:100%; }
  .section__head h2{ font-size: clamp(1.85rem, 8.2vw, 2.3rem); }
  .nav__toggle{ display:inline-block; }
  .nav__menu{
    display:none;
    position:absolute;
    right:0; top:48px;
    background:rgba(255,255,255,.94);
    border:1px solid var(--line-strong);
    border-radius: 16px;
    padding:10px;
    box-shadow: 0 14px 32px rgba(36,27,18,.12);
    min-width: 240px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .nav__menu.open{ display:flex; }
  .timeline{ grid-template-columns: 1fr 1fr; }
  .carousel__btn{
    width:34px;
    height:34px;
    top: calc(50% - 22px);
    font-size:1.2rem;
  }
  .carousel__btn--prev{ left:8px; }
  .carousel__btn--next{ right:8px; }
  .carousel__slide figcaption{
    font-size:.85rem;
    padding:10px 12px;
  }
  .page-home .hero h1{ font-size: clamp(1.8rem, 9vw, 2.35rem); }
  .page-home .lead{ font-size:1rem; line-height:1.7; }
}
