/* =================================================================
   ATLAS — Landing 2
   A light, beige-to-white premium theme inspired by the Atlas app.
   Sections: variables · base · buttons · nav · hero · sections ·
   mission · stats · platform/features · image band · steps · videos ·
   cards · cta · footer · animations · responsive
   ================================================================= */

/* ---------- 1. Design tokens (edit colours/spacing here) -------- */
:root{
  --maxw: 1280px;          /* page max width */

  /* Palette — light beige → white with a restrained gold accent */
  --bg:        #ffffff;    /* pure white base */
  --paper:     #faf7f1;    /* warm off-white section background */
  --sand:      #f1ece1;    /* soft beige for chips/lines */
  --ink:       #1c1a16;    /* near-black text */
  --muted:     #6c665b;    /* secondary text */
  --gold:      #b08542;    /* primary accent (use sparingly) */
  --gold-soft: #cda865;    /* lighter accent */
  --line:      rgba(28,26,22,.10);   /* hairline borders */

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Base ------------------------------------------- */
*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

/* Hide the native scrollbar (scrolling still works via wheel / trackpad / keys) */
html, body{ scrollbar-width:none; -ms-overflow-style:none; }
html::-webkit-scrollbar, body::-webkit-scrollbar{ width:0; height:0; display:none; }

body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; line-height:1.05; letter-spacing:-.01em; }
em{ font-style:italic; color:var(--gold); }
a{ color:inherit; text-decoration:none; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 26px; }

/* Shared text helpers */
.eyebrow{
  font-family:var(--sans); font-size:clamp(16px,1.5vw,20px); font-weight:800;
  letter-spacing:.16em; text-transform:uppercase; color:var(--gold);
  margin-bottom:18px;
}
.lede{ font-size:20px; color:var(--muted); max-width:60ch; }
.lede.center{ margin-inline:auto; text-align:center; }
.muted{ color:var(--muted); font-size:18px; }
.center{ text-align:center; }

/* ---------- 3. Buttons ---------------------------------------- */
.btn{
  display:inline-block; font-family:var(--sans); font-size:15px; font-weight:600;
  letter-spacing:.02em; padding:15px 30px; border-radius:2px;
  border:1px solid transparent; cursor:pointer;
  transition:all .35s var(--ease);
}
.btn-solid{ background:var(--ink); color:#fff; }
.btn-solid:hover{ background:var(--gold); }
.btn-line{ border-color:var(--ink); color:var(--ink); }
.btn-line:hover{ background:var(--ink); color:#fff; }
.btn-ghost{ border-color:rgba(255,255,255,.5); color:#fff; padding:11px 22px; }
.btn-ghost:hover{ background:#fff; color:var(--ink); }

/* ---------- 4. Navigation ------------------------------------- */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:50;
  transition:background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:20px 26px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:10px; color:#fff; transition:color .4s var(--ease); }
.brand-mark{ font-size:18px; color:var(--gold-soft); }
.brand-word{ font-family:var(--serif); font-size:clamp(28px, 3vw, 36px); font-weight:800; letter-spacing:.30em; color:var(--gold); }
.nav-links{ display:flex; align-items:center; gap:34px; margin-left:auto; }
.nav-links a{ color:#fff; font-size:15px; font-weight:500; transition:color .3s var(--ease); }
.nav-links a:hover{ color:var(--gold-soft); }
/* Gold highlight link (the Projects showcase) — gold in every nav state */
.nav-links a.nav-gold{ color:var(--gold-soft); font-weight:600; }
.nav-links a.nav-gold:hover{ color:var(--gold); }

/* Solid state once the user scrolls past the hero */
.nav.scrolled{ background:rgba(255,255,255,.92); backdrop-filter:blur(10px); box-shadow:0 1px 0 var(--line); }
.nav.scrolled .brand,
.nav.scrolled .nav-links a{ color:var(--ink); }
.nav.scrolled .nav-links a:hover{ color:var(--gold); }
.nav.scrolled .nav-links a.nav-gold{ color:var(--gold); }
.nav.scrolled .nav-cta{ border-color:var(--ink); }
.nav.scrolled .nav-cta:hover{ background:var(--ink); color:#fff; }

/* Language toggle EN / HR — a small two-segment pill */
.lang-toggle{
  display:inline-flex; align-items:center; border:1px solid rgba(255,255,255,.5);
  border-radius:999px; overflow:hidden; line-height:1; margin-left:22px;
}
.lang-btn{
  background:none; border:0; cursor:pointer; font-family:var(--sans);
  font-size:13px; font-weight:600; letter-spacing:.08em; color:#fff;
  padding:7px 13px; transition:background .3s var(--ease), color .3s var(--ease);
}
.lang-btn.is-active{ background:var(--gold); color:#fff; }
.lang-btn:not(.is-active):hover{ color:var(--gold-soft); }
/* Solid nav state (and on white surfaces): dark text, hairline border */
.nav.scrolled .lang-toggle{ border-color:var(--line); }
.nav.scrolled .lang-btn{ color:var(--ink); }
.nav.scrolled .lang-btn.is-active{ background:var(--gold); color:#fff; }
.nav.scrolled .lang-btn:not(.is-active):hover{ color:var(--gold); }

/* Mobile hamburger (hidden on desktop) */
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; }
.nav-toggle span{ width:26px; height:2px; background:#fff; transition:.3s var(--ease); }
.nav.scrolled .nav-toggle span{ background:var(--ink); }

/* Dimmed backdrop behind the mobile slide-in menu. Sits below the nav (z 50)
   so the panel, logo and hamburger stay above it; tapping it closes the menu. */
.nav-scrim{
  position:fixed; inset:0; z-index:40;
  background:rgba(15,12,8,.5);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .4s var(--ease), visibility .4s var(--ease);
}
.nav-scrim.show{ opacity:1; visibility:visible; pointer-events:auto; }

/* ---------- 5. Hero ------------------------------------------- */
.hero{ position:relative; min-height:100vh; display:flex; align-items:center; overflow:hidden; }
.hero-bg{
  position:absolute; inset:-8% 0; background-size:cover; background-position:center;
  will-change:transform; transform:scale(1.12);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(20,16,8,.55), rgba(20,16,8,.30) 40%, rgba(20,16,8,.62)),
    radial-gradient(120% 80% at 50% 20%, rgba(176,133,66,.20), transparent 60%);
}
.hero-inner{ position:relative; z-index:2; max-width:var(--maxw); margin:0 auto; padding:0 26px; color:#fff; }
.hero .kicker{
  font-size:14px; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold-soft); margin-bottom:22px;
}
.hero h1{ font-size:clamp(54px, 8.6vw, 124px); color:#fff; margin-bottom:26px; }
.hero .lede{ color:rgba(255,255,255,.88); font-size:clamp(17px,1.7vw,22px); max-width:54ch; }
.hero .lede em{ color:var(--gold-soft); }
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin-top:38px; }
/* On dark backgrounds the outline button must be light to stay visible */
.hero .btn-line, .cta .btn-line{ border-color:rgba(255,255,255,.7); color:#fff; }
.hero .btn-line:hover, .cta .btn-line:hover{ background:#fff; color:var(--ink); }

.hero-chips{ list-style:none; display:flex; gap:14px; flex-wrap:wrap; margin-top:42px; }
.hero-chips li{
  font-size:13px; font-weight:500; letter-spacing:.02em; color:#fff;
  padding:9px 16px; border:1px solid rgba(255,255,255,.34); border-radius:999px;
  backdrop-filter:blur(4px);
}

/* Scroll cue */
.scroll-cue{ position:absolute; left:50%; bottom:34px; transform:translateX(-50%); z-index:3; }
.scroll-cue span{
  display:block; width:26px; height:44px; border:1px solid rgba(255,255,255,.6); border-radius:14px; position:relative;
}
.scroll-cue span::after{
  content:""; position:absolute; left:50%; top:8px; width:3px; height:8px; border-radius:2px;
  background:#fff; transform:translateX(-50%); animation:cue 1.8s var(--ease) infinite;
}
@keyframes cue{ 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0;transform:translate(-50%,14px)} }

/* ---------- 6. Generic section -------------------------------- */
.sec{ padding:140px 0; }
.sec-paper{ background:var(--paper); }
.sec-head{ max-width:820px; margin:0 auto 70px; text-align:center; }
.sec-head h2{ font-size:clamp(38px,5vw,72px); margin-bottom:20px; }

/* ---------- 7. Mission & Vision ------------------------------- */
.mv{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
/* Minimalistic architectural frame: thin border + gold corner brackets */
.mv-col{
  position:relative; padding:50px 46px; background:#fff;
  border:1px solid rgba(28,26,22,.12);
}
.mv-col::before{
  content:""; position:absolute; top:12px; left:12px; width:36px; height:36px;
  border-top:2px solid var(--gold); border-left:2px solid var(--gold);
}
.mv-col::after{
  content:""; position:absolute; bottom:12px; right:12px; width:36px; height:36px;
  border-bottom:2px solid var(--gold); border-right:2px solid var(--gold);
}
/* The mission / vision statement is the prominent text: big, bold, serif */
.mv-statement{
  font-family:var(--serif); font-weight:700; line-height:1.2;
  font-size:clamp(26px,2.8vw,40px); color:var(--ink); margin-top:6px;
}

/* ---------- 8. Stats ------------------------------------------ */
.sec-stats{ padding:90px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:30px; text-align:center; }
.stat .num{ display:block; font-family:var(--serif); font-weight:600; font-size:clamp(44px,5vw,68px); color:var(--ink); }
.stat .lbl{ display:block; font-size:14px; color:var(--muted); margin-top:8px; }

/* ---------- 9. Platform / feature rows ------------------------ */
.feat{
  display:grid; grid-template-columns:1.45fr .9fr; gap:64px; align-items:center;
  padding:60px 0;
}
.feat.rev{ grid-template-columns:.9fr 1.45fr; }
.feat.rev .frame{ order:2; }      /* image moves right on reversed rows */
.feat.rev .feat-txt{ order:1; }

.feat-no{
  display:block; font-family:var(--serif); font-size:64px; line-height:1;
  color:var(--sand); margin-bottom:10px;
}
.feat-txt h3{ font-size:clamp(30px,3.6vw,52px); margin-bottom:16px; }
.feat-txt p{ font-size:18px; color:var(--muted); max-width:46ch; }
/* Emphasised payoff line under a feature (e.g. the time-saving punchline).
   Scoped under .feat-txt to out-specify the muted `.feat-txt p` colour. */
.feat-txt .feat-accent{
  margin-top:18px; max-width:46ch;
  font-family:var(--serif); font-style:italic; font-weight:600;
  font-size:clamp(19px,1.7vw,23px); line-height:1.3; color:var(--gold);
}

/* Modern architectural photo frame (sized to the image, never cropped) */
.frame{
  position:relative; border-radius:6px; overflow:hidden; background:#fff;
  border:1px solid var(--line);
  box-shadow:0 2px 6px rgba(0,0,0,.04),
             0 34px 70px -28px rgba(40,28,12,.34),
             0 70px 130px -50px rgba(40,28,12,.40);
  transition:transform .6s var(--ease), box-shadow .6s var(--ease);
}
.frame img{ display:block; width:100%; height:auto; transition:transform .9s var(--ease); }
.frame:hover{ transform:translateY(-8px); box-shadow:0 4px 12px rgba(0,0,0,.06),0 60px 110px -30px rgba(40,28,12,.50); }
.frame:hover img{ transform:scale(1.035); }
/* Placeholder shown only when an image is missing */
.frame .ph{ display:none; }
.frame.noimg{ aspect-ratio:16/11; }
.frame.noimg img{ display:none; }
.frame.noimg .ph{
  display:grid; place-items:center; position:absolute; inset:0;
  background:repeating-linear-gradient(45deg,var(--paper),var(--paper) 14px,#f3eee3 14px,#f3eee3 28px);
  font-family:var(--serif); font-size:24px; color:var(--muted);
}

/* ---------- 10. Full-bleed image band ------------------------- */
.imgband{ position:relative; padding:160px 0; color:#fff; overflow:hidden; }
.imgband-bg{ position:absolute; inset:0; background-size:cover; background-position:center; }
.imgband-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(18,14,8,.55), rgba(18,14,8,.66)); }
.imgband-inner{ position:relative; z-index:2; max-width:960px; margin:0 auto; padding:0 26px; text-align:center; }
/* extra vertical space between the first line (tagline) and the heading */
.imgband h2{ font-size:clamp(28px,4.4vw,52px); color:#fff; margin:64px 0 22px; text-transform:uppercase; }
.imgband h2 .ib-line1, .imgband h2 .ib-line2{ display:block; white-space:nowrap; }
.imgband h2 .ib-line2{ font-size:calc(1em + 3px); }   /* emphasise the project over Atlas */
.imgband h2 em{ color:var(--gold-soft); }
.imgband .lede{ color:rgba(255,255,255,.85); }
/* "Your project deserves Atlas." — bold gold so it stands out */
.gold-line{ display:inline-block; margin-top:14px; color:var(--gold-soft); font-weight:700; font-size:clamp(24px,2.8vw,38px); }
.tagline{ font-family:var(--serif); font-style:italic; font-weight:700; font-size:clamp(24px,2.4vw,34px); color:var(--gold-soft); }

/* ---------- 11. Steps — interactive stepper ------------------- */
/* Top strip: five numbered tabs, side to side */
.step-tabs{ display:grid; grid-template-columns:repeat(5,1fr); gap:0; margin-bottom:46px; }
.step-tab{
  display:flex; flex-direction:column; gap:12px; text-align:left; cursor:pointer;
  background:none; border:0; border-bottom:2px solid transparent;
  padding:18px 20px 16px; transition:background .3s var(--ease), border-color .3s var(--ease);
}
.step-tab:hover{ background:rgba(176,133,66,.06); }
.step-tab-no{ font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:.14em; color:var(--muted); transition:color .3s var(--ease); }
.step-tab-title{ font-family:var(--serif); font-size:clamp(17px,1.5vw,22px); line-height:1.12; color:var(--ink); }
.step-tab.is-active{ border-bottom-color:var(--gold); }
.step-tab.is-active .step-tab-no{ color:var(--gold); }

/* Content panel: photo left, text right */
/* Stepper fills more of the page width (kept clear of the right rail) */
#how .wrap{ max-width:1380px; }
.step-panel{
  display:grid; grid-template-columns:2.3fr 1fr; gap:48px; align-items:start;
  background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:22px;
  box-shadow:0 30px 70px -40px rgba(40,28,12,.35);
}
/* Photo frame with an architectural cut corner (matches the reference notch).
   No aspect-ratio on desktop: the frame fills its column width and stretches to
   the text-block height (image is object-fit:cover), so it never overflows. */
.step-frame{
  position:relative; overflow:hidden; border-radius:6px; background:var(--paper);
  aspect-ratio:16/10; cursor:none;                /* wide frame; cursor hidden over the photo */
  clip-path:polygon(0 0, 100% 0, 100% 100%, 64px 100%, 0 calc(100% - 64px));
}
/* Whole photo fits inside the frame; on hover it zooms gently toward the cursor (origin set in JS) */
.step-frame img{ display:block; width:100%; height:100%; object-fit:contain; transition:transform .4s var(--ease); }
.step-frame:hover img{ transform:scale(1.25); }
.step-frame .ph{ display:none; }
.step-frame.noimg img{ display:none; }
.step-frame.noimg .ph{
  display:grid; place-items:center; position:absolute; inset:0; padding:24px; text-align:center;
  background:repeating-linear-gradient(45deg,var(--paper),var(--paper) 14px,#f3eee3 14px,#f3eee3 28px);
  font-family:var(--serif); font-size:24px; color:var(--muted);
}

.step-body{ display:flex; flex-direction:column; justify-content:flex-start; padding:18px 24px 18px 0; }
.step-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.step-eyebrow{
  font-family:ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted);
}
.step-nav{ display:flex; gap:8px; }
.step-arrow{
  width:42px; height:42px; border:1px solid var(--line); background:var(--bg); color:var(--ink);
  font-size:20px; line-height:1; cursor:pointer; border-radius:4px; transition:.3s var(--ease);
}
.step-arrow:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.step-heading{ font-size:clamp(32px,3.8vw,54px); margin-bottom:20px; }
.step-desc{ font-size:22px; line-height:1.55; color:var(--muted); max-width:46ch; }
.step-rule{ border:0; border-top:1px solid var(--line); margin:30px 0 24px; }
.step-foot{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.step-cue{ font-size:15px; color:var(--muted); }

/* ---------- 12. Demo videos — alternating video + text rows --- */
/* Developers row: video left, text right. Buyers row (.rev): text left, video right. */
.demo-row{
  display:grid; grid-template-columns:2.6fr 1fr; gap:48px; align-items:center;
  padding:46px 0;
}
.demo-row.rev{ grid-template-columns:1fr 2.6fr; }
.demo-row.rev .vid{ order:2; }      /* video to the right on the buyers row */
.demo-row.rev .demo-txt{ order:1; }
.demo-txt h3{ font-size:clamp(30px,3.4vw,52px); margin:6px 0 22px; }

.vid{ position:relative; border-radius:6px; overflow:hidden; background:var(--ink); box-shadow:0 34px 70px -30px rgba(40,28,12,.4); }
.vid video{ display:block; width:100%; height:auto; }
.vid-ph{
  aspect-ratio:16/9; display:grid; place-items:center; gap:14px; position:relative;
  background-size:cover; background-position:center;
}
.vid-ph::before{ content:""; position:absolute; inset:0; background:rgba(18,14,8,.55); }
.vid-ph .play{
  position:relative; z-index:1; display:grid; place-items:center;
  width:74px; height:74px; border-radius:50%; background:rgba(255,255,255,.92); color:var(--ink); font-size:22px;
  transition:transform .35s var(--ease);
}
.vid:hover .vid-ph .play{ transform:scale(1.08); }
.vid-label{ position:relative; z-index:1; color:#fff; font-size:15px; letter-spacing:.04em; }

/* ---------- 13. Tick lists ------------------------------------ */
.ticks{ list-style:none; margin-bottom:30px; }
.ticks li{ position:relative; padding-left:30px; margin-bottom:14px; color:var(--muted); font-size:17px; }
.ticks li::before{ content:"▲"; position:absolute; left:0; top:1px; font-size:11px; color:var(--gold); }

/* ---------- 13b. Projects showcase (sample/demo cards) -------- */
.projects{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.project-card{
  background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden;
  box-shadow:0 30px 60px -42px rgba(40,28,12,.34);
  transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.project-card:hover{ transform:translateY(-6px); box-shadow:0 44px 84px -38px rgba(40,28,12,.46); }

/* Swipeable photo gallery inside each card (swipe on touch, arrows/dots on desktop) */
.project-gallery{ position:relative; background:var(--sand); }
.gal-track{
  display:flex; aspect-ratio:4/3; overflow-x:auto;
  scroll-snap-type:x mandatory; scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.gal-track::-webkit-scrollbar{ display:none; }
.gal-img{
  flex:0 0 100%; width:100%; height:100%; object-fit:cover; display:block;
  scroll-snap-align:center; cursor:zoom-in;
}
.gal-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:38px; height:38px; border:0; border-radius:50%;
  background:rgba(255,255,255,.85); color:var(--ink); font-size:20px; line-height:1;
  cursor:pointer; display:grid; place-items:center;
  opacity:0; transition:opacity .3s var(--ease), background .3s var(--ease);
}
.project-gallery:hover .gal-arrow{ opacity:1; }
.gal-arrow:hover{ background:#fff; }
/* Touch devices have no hover, so keep the arrows visible for tap-to-loop */
@media (hover: none){ .project-gallery .gal-arrow{ opacity:1; } }
.gal-prev{ left:10px; }
.gal-next{ right:10px; }
.gal-dots{ position:absolute; left:0; right:0; bottom:12px; z-index:3; display:flex; justify-content:center; gap:7px; }
.gal-dot{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.55); border:0; padding:0; cursor:pointer; transition:background .3s var(--ease), transform .3s var(--ease); }
.gal-dot.is-active{ background:#fff; transform:scale(1.3); }

/* Clear "Demo" badge so a sample project can never read as a real client */
.project-badge{
  position:absolute; top:14px; left:14px; z-index:4;
  background:var(--gold); color:#fff;
  font-family:var(--sans); font-size:11px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; padding:6px 12px; border-radius:999px;
}
.project-body{ padding:24px 26px 28px; }
.project-body h3{ font-family:var(--serif); font-size:26px; line-height:1.1; margin-bottom:6px; }
.project-loc{ font-size:14px; letter-spacing:.03em; color:var(--gold); font-weight:600; margin-bottom:12px; }
.project-note{ font-size:15.5px; color:var(--muted); line-height:1.55; }

/* ---------- 13c. Lightbox (full-screen photo viewer) --------- */
.lightbox{
  position:fixed; inset:0; z-index:200; display:none;
  align-items:center; justify-content:center;
  background:rgba(10,8,5,.92); padding:24px;
}
.lightbox.open{ display:flex; }
.lb-img{ max-width:92vw; max-height:84vh; object-fit:contain; border-radius:4px; box-shadow:0 30px 90px rgba(0,0,0,.55); }
.lb-arrow, .lb-close{
  position:absolute; z-index:2; background:rgba(255,255,255,.14); color:#fff; border:0; cursor:pointer;
  border-radius:50%; display:grid; place-items:center; transition:background .3s var(--ease);
}
.lb-arrow:hover, .lb-close:hover{ background:rgba(255,255,255,.3); }
.lb-arrow{ top:50%; transform:translateY(-50%); width:52px; height:52px; font-size:30px; }
.lb-prev{ left:16px; }
.lb-next{ right:16px; }
.lb-close{ top:18px; right:18px; width:46px; height:46px; font-size:26px; }
.lb-caption{ position:absolute; bottom:20px; left:0; right:0; text-align:center; color:rgba(255,255,255,.82); font-size:14px; letter-spacing:.04em; }

/* ---------- 14. Closing CTA ----------------------------------- */
.cta{
  position:relative; padding:150px 0; color:#fff; text-align:center; overflow:hidden;
  background:var(--ink) url('assets/cta-bg.jpg') center/cover no-repeat;
}
/* dark overlay keeps the CTA text readable over the photo */
.cta::before{ content:""; position:absolute; inset:0; background:rgba(17,14,9,.82); }
.cta-inner{ position:relative; z-index:1; max-width:780px; }
.cta .tagline{ color:var(--gold-soft); }
/* "Your project deserves Atlas." — extra-noticeable bold gold */
.cta-tagline{ font-weight:700; font-style:normal; font-size:clamp(30px,3.4vw,48px); color:var(--gold-soft); margin-bottom:6px; }
.cta h2{ font-size:clamp(42px,6vw,88px); color:#fff; margin:14px 0 22px; }
.cta .lede{ color:rgba(255,255,255,.82); margin-bottom:36px; }

/* ---------- 14b. FAQ — single-open accordion ------------------ */
/* Fills one full page; narrow column for comfortable reading. */
.faq-sec{ display:flex; align-items:center; min-height:100vh; }
.faq-wrap{ width:100%; max-width:880px; }
.faq-list{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }

/* Question row: serif, full-width clickable, gold on open/hover */
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:28px;
  background:none; border:0; cursor:pointer; text-align:left;
  padding:30px 4px; color:var(--ink);
  font-family:var(--serif); font-weight:600; line-height:1.2;
  font-size:clamp(20px,2.2vw,28px);
  transition:color .3s var(--ease);
}
.faq-q:hover{ color:var(--gold); }
.faq-item.open > .faq-q{ color:var(--gold); }

/* + / − toggle drawn from two gold bars (vertical bar collapses when open) */
.faq-ico{ position:relative; flex:0 0 20px; width:20px; height:20px; }
.faq-ico::before,
.faq-ico::after{ content:""; position:absolute; background:var(--gold); transition:transform .4s var(--ease); }
.faq-ico::before{ left:0; top:9px; width:20px; height:2px; }      /* horizontal */
.faq-ico::after{ left:9px; top:0; width:2px; height:20px; }       /* vertical   */
.faq-item.open .faq-ico::after{ transform:scaleY(0); }            /* becomes a minus */

/* Answer: height animated from 0 (max-height set in JS on open) */
.faq-a{ max-height:0; overflow:hidden; transition:max-height .55s var(--ease); }
.faq-a p{ padding:0 4px 30px; font-size:18px; line-height:1.65; color:var(--muted); max-width:64ch; }

/* ---------- 15. Footer ---------------------------------------- */
.footer{
  background:
    linear-gradient(180deg, rgba(12,10,7,0.88), rgba(12,10,7,0.94)),
    url('assets/footer-wallpaper.jpg');
  background-size:cover; background-position:center; background-color:#0e0c08;
  color:rgba(255,255,255,.72); padding:70px 0 40px;
}
.foot-grid{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12); }
.foot-brand .brand-word{ color:var(--gold-soft); }
/* Brand claim / punch line */
.foot-brand .foot-claim{ font-family:var(--serif); font-style:italic; font-size:23px; color:var(--gold-soft); margin-top:14px; max-width:none; }
.foot-brand p{ max-width:34ch; margin-top:12px; font-size:15px; }
/* Visible contact email in the footer */
.foot-email{ display:inline-block; margin-top:16px; font-size:16px; font-weight:600; color:var(--gold-soft); letter-spacing:.02em; }
.foot-email:hover{ color:#fff; }
.foot-links{ display:flex; gap:26px; flex-wrap:wrap; align-items:flex-start; }
.foot-links a{ font-size:15px; }
.foot-links a:hover{ color:var(--gold-soft); }
.foot-base{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; padding-top:26px; font-size:13px; color:rgba(255,255,255,.5); }

/* ---------- 16. Scroll-reveal animation ----------------------- */
[data-reveal]{ opacity:0; transform:translateY(40px); transition:opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  [data-reveal]{ opacity:1; transform:none; }
}

/* ---------- 16b. Fixed gold scroll-rail ----------------------- */
/* Full-height gold strip pinned to the right; shows the current section
   title (vertical). Sits below the nav (z 50) so the nav CTA stays usable;
   pointer-events:none so it never blocks scrolling. */
/* Minimal, modern rail: a faint vertical hairline + a small gold marker,
   with the current section in fine letter-spaced type. No solid bar.
   `color` drives the hairline/label and flips to white over dark sections. */
.scrollrail{
  position:fixed; top:0; right:0; z-index:45;
  height:100vh; width:74px;
  display:flex; align-items:center; justify-content:center;
  pointer-events:none; color:var(--ink);
}
.scrollrail.on-dark{ color:#fff; }
/* faint full-height hairline near the edge */
.scrollrail::before{
  content:""; position:absolute; right:26px; top:16vh; bottom:16vh; width:1px;
  background:currentColor; opacity:.18;
}
/* gold "thumb" that travels down the hairline with scroll progress (var --railp 0..1) */
.scrollrail::after{
  content:""; position:absolute; right:24px;
  top:calc(16vh + (68vh - 58px) * var(--railp, 0));
  width:3px; height:58px; border-radius:3px; background:var(--gold);
  transition:top .12s linear;
}
.scrollrail span{
  position:relative; margin-right:18px;            /* sit just left of the hairline */
  writing-mode:vertical-rl; transform:rotate(180deg);
  font-family:var(--sans); font-weight:600;
  font-size:11px; letter-spacing:.34em; text-transform:uppercase;
  white-space:nowrap; color:currentColor;
  transition:opacity .35s var(--ease);
}
.scrollrail span.swap{ opacity:0; }       /* brief fade while the label changes */
/* Keep the nav CTA clear of the rail on wide screens */
@media (min-width:1180px){
  .nav-inner{ padding-right:74px; }
  /* Nudge the EN/HR toggle further right into the reserved rail margin
     (the nav sits above where the rail's hairline begins, so no overlap). */
  .lang-toggle{ transform:translateX(46px); }
}
/* The margin isn't wide enough to clear content on smaller screens — hide it */
@media (max-width:1179px){ .scrollrail{ display:none; } }

/* ---------- 17. Responsive (tablet / mobile) ------------------ */
@media (max-width: 960px){
  .mv{ grid-template-columns:1fr; gap:44px; }
  .stats{ grid-template-columns:1fr 1fr; gap:36px 20px; }
  .feat, .feat.rev{ grid-template-columns:1fr; gap:30px; }
  .feat.rev .frame, .feat.rev .feat-txt{ order:initial; }
  .feat-txt{ max-width:none; }
  /* Demo rows stack: video on top, text below (both rows) */
  .demo-row, .demo-row.rev{ grid-template-columns:1fr; gap:30px; }
  .demo-row.rev .vid, .demo-row.rev .demo-txt{ order:initial; }
  /* Stepper stacks: photo on top, text below */
  .step-panel{ grid-template-columns:1fr; gap:28px; }
  .step-frame{ aspect-ratio:16/10; min-height:0; }
  .step-body{ padding:8px 8px 12px; }
  /* Projects: three across → two across */
  .projects{ grid-template-columns:1fr 1fr; gap:24px; }
}

@media (max-width: 640px){
  .sec{ padding:88px 0; }
  .sec-head{ margin-bottom:48px; }
  .imgband{ padding:110px 0; }
  .cta{ padding:100px 0; }
  .stats{ grid-template-columns:1fr 1fr; }
  .card{ padding:34px; }
  /* let the two heading lines wrap on small phones so nothing is clipped */
  .imgband h2 .ib-line1, .imgband h2 .ib-line2{ white-space:normal; }
  /* Step tabs become a horizontal scroll strip (kept "side to side") */
  .step-tabs{ display:flex; overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory; }
  .step-tab{ flex:0 0 60%; scroll-snap-align:start; }
  .step-panel{ padding:16px; }

  /* Reveal the mobile menu */
  .nav-toggle{ display:flex; }
  /* The scrolled nav's frosted blur makes the nav a containing block for its
     fixed children, which collapses the slide-in menu's height after you
     scroll. Drop the blur on phones — the 92% white background still reads
     cleanly and the menu now stays full-height. */
  .nav.scrolled{ -webkit-backdrop-filter:none; backdrop-filter:none; }
  .nav-links{
    position:fixed; inset:0 0 0 auto; width:min(78vw,320px);
    flex-direction:column; align-items:flex-start; gap:22px;
    background:#fff; padding:96px 32px; transform:translateX(100%);
    transition:transform .4s var(--ease); box-shadow:-20px 0 60px rgba(0,0,0,.18);
  }
  .nav-links a{ color:var(--ink); font-size:18px; }
  .nav-links.open{ transform:translateX(0); }
  /* Solid black CTA in the menu (like the main page) so it stands out on white.
     Scoped as .nav-links a.nav-cta to out-specify the .nav-links a ink colour. */
  .nav-links a.nav-cta{ background:var(--ink); color:#fff; border-color:var(--ink); padding:14px 26px; }
  /* Use the deeper gold for the Projects link on the white menu panel */
  .nav-links a.nav-gold{ color:var(--gold); }

  /* EN/HR lives in the top bar on mobile — one tap, no menu needed.
     It keeps the nav's own colours (light over the hero, dark when scrolled),
     and sits between the brand and the hamburger. */
  .lang-toggle{ margin-left:auto; margin-right:14px; }
  .lang-btn{ font-size:14px; padding:12px 16px; }
  /* While the slide-in menu is open it would float over the white panel, so
     hide it; and force the hamburger dark so it stays visible to close. */
  #navLinks.open ~ .lang-toggle{ opacity:0; pointer-events:none; }
  #navLinks.open ~ .nav-toggle span{ background:var(--ink); }
}

/* ---------- 17b. Phone polish (≤600px) -----------------------
   The desktop type scale and paddings are too heavy on a phone.
   Here we tune sizes, tighten gutters, and make the primary CTAs
   full-width so everything reads big, calm and tappable. */
@media (max-width: 600px){
  /* Tighter page gutters give the content a little more width */
  .wrap{ padding:0 20px; }
  .sec{ padding:72px 0; }
  .sec-stats{ padding:60px 0; }
  .sec-head{ margin-bottom:40px; }

  /* Hero — give it room. Top-align the content below the nav with generous
     padding (instead of cramming it dead-centre), ease the type scale, and
     space the pieces out so it breathes. 100svh accounts for mobile chrome. */
  .hero{ min-height:100svh; align-items:flex-start; }
  .hero .hero-inner{ padding:108px 22px 56px; }
  .hero .kicker{ font-size:12px; letter-spacing:.2em; margin-bottom:16px; }
  .hero h1{ font-size:clamp(38px,10vw,50px); line-height:1.1; margin-bottom:20px; }
  .hero .lede{ font-size:16px; line-height:1.62; }
  .hero-chips{ gap:8px; margin-top:28px; }
  .hero-chips li{ font-size:11.5px; padding:7px 12px; }
  /* Hide the bottom scroll arrow on phones — it crowds a content-rich hero */
  .scroll-cue{ display:none; }

  /* Primary call-to-action pairs stack full-width (hero + closing CTA) */
  .hero-cta{ flex-direction:column; align-items:stretch; gap:12px; margin-top:32px; }
  .hero-cta .btn{ width:100%; text-align:center; padding:16px 24px; }

  /* Mission / vision cards */
  .mv-col{ padding:34px 26px; }
  .mv-statement{ font-size:clamp(22px,6vw,28px); }

  /* Stats stay 2×2 but a touch tighter */
  .stats{ gap:30px 18px; }

  /* Generic section bodies */
  .sec-head h2{ font-size:clamp(30px,8vw,40px); }
  .lede{ font-size:18px; }

  /* Feature rows */
  .feat, .feat.rev{ padding:34px 0; gap:24px; }
  .feat-no{ font-size:52px; }
  .feat-txt h3{ font-size:clamp(26px,7.5vw,36px); }
  .feat-txt p{ font-size:16.5px; }

  /* Image band */
  .imgband{ padding:96px 0; }
  .imgband h2{ font-size:clamp(24px,7vw,34px); margin:40px 0 18px; }
  .tagline{ font-size:clamp(20px,5.5vw,26px); }

  /* Stepper — a partial next tab peeks in to signal the strip scrolls */
  .step-tab{ flex:0 0 72%; }
  .step-tab-title{ font-size:18px; }
  .step-heading{ font-size:clamp(26px,7.5vw,36px); }
  .step-desc{ font-size:17px; line-height:1.55; }
  .step-foot .btn{ flex:1 1 auto; text-align:center; }

  /* Demo rows */
  .demo-row, .demo-row.rev{ padding:30px 0; gap:24px; }

  /* Projects: single column on phones */
  .projects{ grid-template-columns:1fr; gap:22px; }
  .project-body{ padding:22px 22px 24px; }
  /* Lightbox arrows sit closer to the edges and a touch smaller on phones */
  .lb-arrow{ width:44px; height:44px; font-size:26px; }
  .lb-prev{ left:6px; }
  .lb-next{ right:6px; }
  .lb-close{ top:12px; right:12px; }

  /* FAQ */
  .faq-sec{ min-height:auto; }
  .faq-q{ font-size:clamp(19px,5.4vw,24px); padding:24px 2px; gap:16px; }
  .faq-a p{ font-size:16px; padding:0 2px 26px; }

  /* Closing CTA */
  .cta{ padding:90px 0; }
  .cta h2{ font-size:clamp(34px,9vw,46px); }
  .cta .lede{ font-size:18px; }

  /* Tick lists */
  .ticks li{ font-size:16px; }

  /* Footer stacks into a clean single column */
  .foot-grid{ flex-direction:column; gap:26px; }
  .foot-links{ flex-direction:column; gap:14px; }
  .foot-base{ flex-direction:column; align-items:flex-start; gap:10px; }
  .foot-brand .foot-claim{ font-size:21px; }
}
