/* ================= Fonts ================= */
@font-face{
  font-family: 'Dawner';
  src: url('../assets/fonts/Dawner.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Canela';
  src: url('../assets/fonts/Canela-Thin.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'ApercuMono';
  src: url('../assets/fonts/ApercuMonoProLight.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ================= Tokens ================= */
:root{
  /* Primary brand turquoise (Tiffany-inspired) — accent only, never a fill field */
  --feru-turquoise: #0ABAB5;
  --feru-turquoise-soft: #81D8D3;
  --feru-turquoise-deep: #06827E;

  /* Neutrals — minimal, premium */
  --feru-black: #12130F;
  --feru-charcoal: #2B2B28;
  --feru-ivory: #FAF8F4;
  --feru-white: #FFFFFF;
  --feru-grey: #8A8A85;
  --feru-line: #E4E1D8;

  --bg: var(--feru-ivory);
  --bg-alt: #F1EEE6;
  --ink: var(--feru-black);
  --ink-soft: #63635D;
  --line: var(--feru-line);
  --card: var(--feru-white);
  --accent: var(--feru-turquoise-deep); /* small text / on-white — meets contrast */
  --accent-dark: var(--feru-turquoise-deep);
  --white: var(--feru-white);

  --font-logo: 'Dawner', cursive;       /* wordmark only */
  /* Canela has no Cyrillic: Russian headings fall back to the serif after it */
  --font-heading: 'Canela', 'Noto Serif', Georgia, 'Times New Roman', serif; /* h1-h4, pull quotes, eyebrows */
  --font-body: 'ApercuMono', monospace; /* body copy, labels, footer */
  --font-mega: 'Dawner', cursive;       /* pinned hero FERU title */
  --font-caption: var(--font-heading);
  --font-mono: 'ApercuMono', monospace; /* nav links, buttons, uppercase tracked UI text */
  /* running body copy in Apercu Mono (leads, paragraphs, notes) — uppercase tracked
     labels keep their own size and positive letter-spacing */
  --text-body: 15px;
  --text-body-tracking: -1px;

  --container: 1240px;
  --container-wide: 1570px; /* matches the FERU hero title's rendered width */
  /* one content width for every section, matching the header and footer:
     max --container-wide, with --gutter side padding (smaller on tablet/phone) */
  --gutter: 48px;
  /* inset that lines full-bleed rows (card tracks) up with the content edge —
     % resolves against the element using it, so use it as padding on a full-width box */
  --edge: max(var(--gutter), calc((100% - var(--container-wide)) / 2 + var(--gutter)));
  --radius: 14px;
  --ease: cubic-bezier(.4,0,.2,1);
  /* header padding, both states — the FERU logo lands on the header's centre
     using these (js/main.js + .hero-mega.mega-scrolled) */
  --header-pad: 26px;
  --header-pad-scrolled: 19px;
}

*, *::before, *::after{ box-sizing: border-box; }
/* smooth scrolling is driven by Lenis (js/smooth-scroll.js) instead of native
   scroll-behavior, so it can stay in sync with the GSAP ScrollTrigger pinned hero.
   Lenis's recommended base rules: */
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-smooth [data-lenis-prevent]{ overscroll-behavior:contain; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3{ font-family: var(--font-heading); font-weight:500; line-height:1.1; margin:0; }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }

.container{
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow{
  display:inline-block;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.section{ padding: 120px 0; }
.section-alt{ background: var(--bg-alt); }

/* ================= Progress bar ================= */
.progress-bar{
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: var(--accent);
  z-index: 999;
  transition: width .1s linear;
}

/* ================= Buttons ================= */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg{ transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translateX(4px); }
.btn-primary{ background: var(--ink); color: var(--white); }
.btn-primary:hover{ background: var(--accent); }
.btn-dark{ background: var(--ink); color:var(--white); }
.btn-dark:hover{ background: var(--accent); }
.btn-lg{ padding: 17px 30px; }

.btn-white{
  background: var(--white); color: var(--ink);
  border-radius: 6px;
}
.btn-white:hover{ background: var(--accent); color: var(--white); }

.btn-outline{
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 6px;
}
.btn-outline:hover{ background: var(--white); color: var(--ink); border-color: var(--white); }

.link-arrow{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; font-size:14.5px;
  border-bottom: 1px solid var(--ink);
  padding-bottom:3px;
}
.link-arrow svg{ transition: transform .3s var(--ease); }
.link-arrow:hover svg{ transform: translateX(5px); }

/* ================= Header ================= */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  padding: var(--header-pad) 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.site-header.scrolled{
  background: rgba(250,248,244,.9);
  backdrop-filter: blur(10px);
  padding: var(--header-pad-scrolled) 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  max-width: var(--container-wide);
}

.logo{ display:flex; align-items:center; gap:10px; font-weight:700; }
.logo-mark{
  width:8px; height:8px; border-radius:50%;
  background: var(--feru-turquoise);
  flex-shrink:0;
}
.logo-text{ font-family: var(--font-logo); font-size:26px; color: var(--ink); letter-spacing:.01em; }

/* header text set: MENU / INVEST NOW / PORTFOLIO / phone / EN / ABOUT US —
   monospace, uppercase, tracked, per the reference layout. The hero's shrinking
   FERU title lands in the empty center gap between header-left and header-actions. */
.header-left{ display:flex; align-items:center; gap:30px; }

.menu-toggle{
  display:flex; align-items:center; gap:10px;
  background:none; border:none; padding:0;
  font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em;
  font-size:14px; color: var(--ink);
}
.menu-toggle-icon{ display:flex; flex-direction:column; gap:5px; width:22px; }
.menu-toggle-icon span{ display:block; height:1px; background:currentColor; transition: background .3s; }
.menu-toggle-icon span:first-child{ width:100%; }
.menu-toggle-icon span:last-child{ width:65%; }

.btn-invest{
  display:inline-flex; align-items:center;
  padding:11px 22px;
  border-radius:4px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em;
  font-size:14px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-invest:hover{ background: var(--accent); color: var(--white); }
.site-header.scrolled .btn-invest{ background: var(--ink); color: var(--white); }
.site-header.scrolled .btn-invest:hover{ background: var(--accent); }

.header-link{
  font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em;
  font-size:14px; color: var(--ink);
  position:relative; padding:4px 0;
}
.header-link::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background: currentColor; transition: width .3s var(--ease);
}
.header-link:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:28px; }
.btn-invest-m{ display:none; } /* mobile's Assessment button sits on the right (under 860px) */

/* language switcher */
.lang-switch{ position:relative; }
.lang-switch-btn{
  display:flex; align-items:center; gap:7px;
  background:none; border:none; padding:0;
  font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em;
  font-size:14px; color: var(--ink);
}
.lang-switch-btn svg{ transition: transform .3s var(--ease); }
.lang-switch.open .lang-switch-btn svg{ transform: rotate(180deg); }
.lang-switch-menu{
  position:absolute; top:calc(100% + 14px); right:0; z-index:10;
  min-width:64px;
  background: var(--white); border-radius:6px;
  box-shadow: 0 20px 40px -16px rgba(23,22,15,.3);
  padding:6px;
  opacity:0; visibility:hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.lang-switch.open .lang-switch-menu{ opacity:1; visibility:visible; transform:none; }
.lang-switch-menu a{
  display:block; padding:8px 12px; border-radius:4px;
  font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em;
  font-size:14px; color: var(--ink);
  transition: background .2s, color .2s;
}
.lang-switch-menu a:hover{ background: var(--bg-alt); color: var(--accent); }

/* ================= Mega menu ================= */
/* drops down under the header from the Menu button (js/menu.js toggles .open on
   .mega and body.nav-open): big Canela links with a roll-up hover on the left, an
   assessment feature photo on the right, contact strip below. A scrim dims the page */
.mega{
  --ft-ease: cubic-bezier(.65,0,.35,1); /* .roll easing, as the footer */
  --mega-top: calc(var(--header-pad-scrolled) * 2 + 41px); /* solid header height */
  position:fixed; left:0; right:0; top: var(--mega-top); z-index:490;
  max-height: calc(100dvh - var(--mega-top)); overflow-y:auto; overscroll-behavior:contain;
  background: var(--bg); border-top:1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(18,19,15,.35);
  clip-path: inset(0 0 100% 0); visibility:hidden;
  transition: clip-path .7s var(--ft-ease), visibility 0s .7s;
}
.mega.open{ clip-path: inset(0 0 0 0); visibility:visible; transition: clip-path .7s var(--ft-ease), visibility 0s; }
.mega-scrim{
  position:fixed; inset:0; z-index:480; background: rgba(18,19,15,.45);
  opacity:0; visibility:hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.nav-open .mega-scrim{ opacity:1; visibility:visible; transition: opacity .5s var(--ease), visibility 0s; }

.mega-panel{ display:grid; grid-template-columns: 1fr 1fr; min-height: min(560px, 62vh); }
.mega-nav{ display:flex; align-items:flex-end; padding: 56px var(--gutter) 48px var(--edge); }
.mega-links{ display:flex; flex-direction:column; }
.mega-row{ display:flex; align-items:center; flex-wrap:wrap; gap: 0 18px; overflow:hidden; }
.mega-link{
  font-family: var(--font-heading); font-size: clamp(40px, 4.6vw, 76px); line-height:1.02;
  text-transform:uppercase; letter-spacing:-.01em; color: var(--ink);
}
.mega-link[aria-current="page"]{ color: var(--accent); }
.mega-slash{ font-family: var(--font-heading); font-size: clamp(40px, 4.6vw, 76px); line-height:1; color: var(--line); }
.mega-pills{ display:flex; flex-wrap:wrap; gap:8px; padding-top:.4em; }
.mega-pill{
  padding: 7px 16px; border:1px solid var(--line); border-radius:999px;
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.mega-pill:hover, .mega-pill:focus-visible{ background: var(--ink); border-color: var(--ink); color: var(--white); }
.mega-link:focus-visible, .mega-pill:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; }
/* links rise into place one after another as the panel opens */
.mega-row > *{ transform: translateY(105%); transition: transform .8s var(--ft-ease); }
.mega.open .mega-row > *{ transform:none; }
.mega.open .mega-row:nth-child(1) > *{ transition-delay: .12s; }
.mega.open .mega-row:nth-child(2) > *{ transition-delay: .17s; }
.mega.open .mega-row:nth-child(3) > *{ transition-delay: .22s; }
.mega.open .mega-row:nth-child(4) > *{ transition-delay: .27s; }
.mega.open .mega-row:nth-child(5) > *{ transition-delay: .32s; }

.mega-feature{ position:relative; display:flex; align-items:flex-end; overflow:hidden; color: var(--white); background: var(--ink); }
.mega-feature img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform: scale(1.12); transition: transform 1.4s var(--ft-ease);
}
.mega.open .mega-feature img{ transform: scale(1); }
.mega-feature::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(18,19,15,0) 30%, rgba(18,19,15,.6)); }
.mega-feature-body{ position:relative; z-index:1; padding: 40px; }
.mega-feature-eyebrow{ display:block; margin-bottom:18px; font-family: var(--font-mono); font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; opacity:.85; }
.mega-feature-title{ display:block; font-family: var(--font-heading); font-size: clamp(36px, 4vw, 64px); line-height:1; text-transform:uppercase; letter-spacing:-.01em; }
.mega-feature-title small{ font-size:.5em; letter-spacing:0; }
.mega-feature-btn{
  position:absolute; right:32px; bottom:40px; z-index:1;
  padding: 12px 20px; border-radius:4px; background: var(--feru-ivory); color: var(--ink);
  font-family: var(--font-mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.mega-feature:hover .mega-feature-btn{ background: var(--accent); color: var(--white); }
.mega-feature:focus-visible{ outline:2px solid var(--accent); outline-offset:-4px; }

.mega-foot{
  display:grid; grid-template-columns: 1fr 1fr 1.4fr 1fr; gap: 16px 32px;
  padding: 22px var(--edge) 26px; border-top:1px solid var(--line);
}
.mega-foot-item{ display:flex; flex-direction:column; gap:4px; font-family: var(--font-mono); font-size:13px; letter-spacing:.06em; text-transform:uppercase; }
.mega-foot-label{ font-size:11.5px; color: var(--ink-soft); }
.mega-foot a{ transition: color .3s; }
.mega-foot a:hover{ color: var(--accent); }
.mega-foot-social > span:last-child,
.mega-langs > span:last-child{ display:flex; gap:12px; }
.mega-foot-social > span:last-child > span,
.mega-langs > span:last-child > span{ color: var(--line); }
.mega-langs a[aria-current]{ color: var(--accent); }

/* the header reads solid (ink on ivory) while the menu is open, even over the hero
   (body. outranks the hero variant's .site-header:not(.scrolled) rules below) */
body.nav-open .site-header{ background: var(--bg); box-shadow: 0 1px 0 var(--line); padding: var(--header-pad-scrolled) 0; }
body.nav-open .site-header .menu-toggle,
body.nav-open .site-header .header-link,
body.nav-open .site-header .lang-switch-btn{ color: var(--ink); }
body.nav-open .site-header .menu-toggle-icon span{ background: var(--ink); }
body.nav-open .site-header .btn-invest{ background: var(--ink); color: var(--white); }
body.nav-open .whatsapp-fab{ opacity:0; pointer-events:none; }
/* Menu icon turns into a cross */
.menu-toggle-icon span{ transition: transform .4s var(--ease), width .4s var(--ease), background .3s; }
.menu-toggle.open .menu-toggle-icon{ gap:0; }
.menu-toggle.open .menu-toggle-icon span:first-child{ transform: translateY(.5px) rotate(45deg); }
.menu-toggle.open .menu-toggle-icon span:last-child{ width:100%; transform: translateY(-.5px) rotate(-45deg); }
.menu-toggle-label{ min-width: 5ch; text-align:left; }

@media (max-width: 960px){
  .mega-panel{ grid-template-columns: 1fr; min-height:0; }
  .mega-nav{ padding: 40px var(--gutter) 32px; }
  .mega-link, .mega-slash{ font-size: clamp(34px, 9vw, 56px); }
  .mega-pills{ width:100%; padding: 6px 0 10px; }
  .mega-feature{ min-height: 240px; margin: 0 var(--gutter); border-radius: var(--radius); }
  .mega-feature-body{ padding: 24px 24px 76px; }
  .mega-feature-btn{ left:24px; right:auto; bottom:24px; }
  .mega-foot{ grid-template-columns: 1fr 1fr; padding: 24px var(--gutter) 28px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce){
  .mega, .mega.open, .mega-row > *, .mega-feature img{ transition:none; }
}

/* hero variant of header before scroll — everything in the transparent header
   over the video reads white; once scrolled it switches to ink on the solid bg */
.site-header:not(.scrolled) .menu-toggle,
.site-header:not(.scrolled) .header-link,
.site-header:not(.scrolled) .lang-switch-btn{ color:#fff; }
.site-header:not(.scrolled) .menu-toggle-icon span{ background:#fff; }

/* ================= Hero ================= */
.visually-hidden{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.hero{
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow:hidden;
  color:#fff;
}
.hero-media{
  position:absolute; inset:0; z-index:0;
}
.hero-media video{
  width:100%; height:100%; object-fit:cover;
  /* same still as the preloader's last slide — covers the gap until the first
     scrubbed frame is decoded, so the handoff never flashes empty */
  background: url('../assets/img/preloader/preloader-03-hero.jpg') center / cover no-repeat;
  transform: scale(1.06);
  transform-origin:center;
  will-change: transform;
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,10,15,.4) 0%, rgba(10,10,15,.12) 32%, rgba(10,10,15,.55) 100%);
}
.hero-fade{
  position:absolute; inset:0; background: #0a0a08; opacity:0;
  will-change: opacity; z-index:1;
}
/* ---- preloader ----
   geometry (frame position/size, image size) is set in px by js/main.js so the
   last slide lines up exactly with the hero video once it has grown to full size */
.preloader{
  position:fixed; inset:0; z-index:2000;
  background: var(--bg);
  overflow:hidden;
  --pl-w: 100vw; --pl-h: 100vh; /* hero box size, overwritten by JS */
}
.preloader-frame{
  position:absolute; left:50%; top:50%;
  width: 30vmin; height: 30vmin;
  translate: -50% -50%;
  overflow:hidden;
  opacity:0; /* revealed by JS once the stills have loaded */
  background: var(--feru-charcoal);
}
.preloader-frame.is-placed{ translate: none; }
/* sits just above the square (top set by JS), counts up with the slides —
   small uppercase "Loading…" beside a large serif percentage, baseline-aligned */
.preloader-label{
  position:absolute; left:50%; top:calc(50% - 15vmin - 24px);
  display:flex; align-items:baseline; gap:.22em;
  font-family: var(--font-heading); font-weight:400; line-height:1;
  font-size: clamp(48px, 6.4vw, 104px);
  color: var(--ink);
  white-space:nowrap;
  opacity:0;
}
.preloader-word{ font-size:.36em; text-transform:uppercase; letter-spacing:.01em; }
/* fixed-width slot so the label doesn't jitter as the digits change */
.preloader-num{ display:inline-block; min-width:2.6em; letter-spacing:-.02em; }
.preloader-slide{ position:absolute; inset:0; overflow:hidden; }
/* every still is rendered at the hero's full size and centered in the frame, then
   scaled down (JS) until the whole picture fits the square; the last one scales
   back up as the square grows, so it ends exactly covering the hero */
.preloader-slide img,
.preloader-overlay{
  position:absolute; left:50%; top:50%;
  width: var(--pl-w); height: var(--pl-h);
  max-width:none;
  translate: -50% -50%;
}
.preloader-slide img{ object-fit:cover; } /* scale set by JS: fitted to the square, then grown */
.preloader-overlay{
  /* identical to .hero-overlay, faded in as the last slide takes over the hero */
  background: linear-gradient(180deg, rgba(10,10,15,.4) 0%, rgba(10,10,15,.12) 32%, rgba(10,10,15,.55) 100%);
  opacity:0;
}
.is-preloading .site-header,
.is-preloading .hero-pin-scene{ opacity:0; }

/* ---- pinned scene ---- */
.hero-pin-scene{ position:absolute; inset:0; z-index:2; }

.hero-mega{
  position:absolute; left:50%; top:42%;
  transform: translate(-50%,-50%);
  margin:0;
  font-family: var(--font-mega);
  font-weight:400;
  text-transform:uppercase;
  font-size: clamp(90px, 24vw, 400px);
  letter-spacing:.01em;
  line-height:1;
  color: var(--white);
  white-space:nowrap;
  pointer-events:none;
  user-select:none;
  transform-origin:50% 50%;
  /* matches the header's own .4s background fade so the logo darkens with it */
  transition: color .4s var(--ease), opacity .3s var(--ease), margin-top .4s var(--ease);
}
.hero-mega .char{
  display:inline-block;
  opacity:0;
  transform: translateY(70px);
  filter: blur(6px);
}
/* FERU stays on as the site logo once landed in the header instead of fading
   out — .mega-scrolled is toggled in js/main.js's onScroll, in lockstep with
   the header's own .scrolled class */
.hero-mega.mega-scrolled{
  color: var(--ink);
  /* follow the header as its padding shrinks (same .4s transition), so the
     landed logo stays centred in both the transparent and the sticky header */
  margin-top: calc(var(--header-pad-scrolled) - var(--header-pad));
}
/* FERU is a fixed layer above the header (see js/main.js), which also puts it
   above the nav drawer — step aside while the drawer is open */
.nav-open .hero-mega{ opacity:0; }

/* anchored near the bottom, same as .hero-scroll-cue, rather than centered with
   FERU — left-aligned on desktop, centered on mobile (see @media max-width:860px) */
.hero-intro{ position:absolute; left:0; right:0; bottom:64px; z-index:2; }
.hero-intro-inner{ max-width:var(--container-wide); margin:0 auto; padding:0 var(--gutter); }
/* frosted panel so the copy stays legible over any frame of the video */
.hero-intro-panel{
  display:inline-block; max-width:480px; padding:24px 26px 26px;
  background: rgba(14,20,26,.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  border:1px solid rgba(255,255,255,.14); border-radius:6px;
}
.hero-intro p{
  max-width:420px; margin:0 0 22px; font-family: var(--font-caption); text-transform:uppercase;
  font-size:23px; letter-spacing:.02em; line-height:1.5; color: rgba(255,255,255,.9);
}
.hero-pill-nav{ display:flex; gap:10px; }
.hero-pill-nav a{
  padding:11px 22px; border:1px solid rgba(255,255,255,.5); border-radius:4px;
  font-family: var(--font-mono); font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:#fff;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.hero-pill-nav a:hover{ background:#fff; color: var(--ink); border-color:#fff; }
/* the main call to action: solid, like the header's Assessment button */
.hero-pill-nav a.hero-pill-primary{ background:#fff; color: var(--ink); border-color:#fff; }
.hero-pill-nav a.hero-pill-primary:hover{ background: var(--accent); color:#fff; border-color: var(--accent); }

.hero-scroll-cue{
  position:absolute; left:50%; bottom:36px; transform:translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  font-family: var(--font-mono); font-size:14px; letter-spacing:.2em; text-transform:uppercase; color: rgba(255,255,255,.8);
}
.hero-scroll-cue i{ width:1px; height:34px; background:rgba(255,255,255,.4); position:relative; overflow:hidden; display:block; }
.hero-scroll-cue i::after{
  content:''; position:absolute; left:0; top:-100%; width:100%; height:100%; background:#fff;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue{ 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }

.hero-captions{
  position:absolute; inset:0; z-index:2;
  display:flex; align-items:center; justify-content:center; text-align:center; padding:0 24px;
  pointer-events:none;
}
.hero-cap{
  position:absolute; opacity:1;
  font-family: var(--font-caption); font-style:normal; font-weight:400;
  text-transform:uppercase;
  font-size: clamp(28px, 3.4vw, 50px); letter-spacing:.01em;
  line-height:1.4; color:#fff; max-width:820px; margin:0;
}
.hero-cap .char{
  display:inline-block;
  opacity:0;
  transform: scale(.4);
}

.hero-cta{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
.hero-cta-title{
  font-family: var(--font-heading); font-weight:500;
  font-size: clamp(32px, 5.6vw, 68px); color:#fff; margin:0; line-height:1.08;
  text-transform: uppercase; letter-spacing:.02em;
}
.hero-cta-title .char{
  display:inline-block;
  opacity:0;
  transform: translateY(30px);
  filter: blur(6px);
}
@keyframes orbPulse{ 0%{ transform:scale(.86); opacity:.9; } 100%{ transform:scale(1.4); opacity:0; } }
.hero-location{
  position:absolute; left:0; right:0; bottom:44px; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:5px;
  text-align:center;
  font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.7);
  opacity:0; pointer-events:none;
}
.hero-location-value{ color:#fff; font-weight:600; }

.reveal-line{ display:block; overflow:hidden; }
.reveal-line span{ display:block; transform: translateY(110%); transition: transform .9s var(--ease); }

/* ================= Reveal on scroll ================= */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view{ opacity:1; transform:none; }
.hero-title.in-view .reveal-line span,
.reveal-line.in-view span{ transform: translateY(0); }

.reveal-img{ position:relative; }
.img-reveal-mask{
  position:absolute; inset:0; background: var(--ink); z-index:2;
  transform-origin: right;
  transition: transform 1.1s var(--ease);
}
.reveal-img.in-view .img-reveal-mask{ transform: scaleX(0); }
.reveal-img .placeholder-img{
  transform: scale(1.18);
  transition: transform 1.4s var(--ease);
}
.reveal-img.in-view .placeholder-img{ transform: scale(1); }

/* ================= Section head ================= */
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  margin-bottom: 56px; flex-wrap:wrap;
}
.section-head h2{ font-size: clamp(28px, 3.6vw, 42px); max-width:640px; }
.section-head.center{ flex-direction:column; align-items:center; text-align:center; }
.section-head.center h2{ max-width: 560px; }

/* ================= Placeholder imagery ================= */
.placeholder-img{
  width:100%; height:100%; min-height: 220px; border-radius: var(--radius);
  position:relative; overflow:hidden;
  background: linear-gradient(135deg, #DCD3C2, #B9A98A);
}
.placeholder-img::after{
  content:''; position:absolute; inset:0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
}
.placeholder-img.ph-house::before{
  content:''; position:absolute; left:50%; top:50%; width:34%; aspect-ratio:1;
  transform: translate(-50%,-50%);
  background: rgba(255,255,255,.55);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 12 4l9 7.5M5 10v10h5v-6h4v6h5V10' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center/60% no-repeat;
}
.ph-1{ background: linear-gradient(135deg, #E3D9C4, #B9A98A); }
.ph-2{ background: linear-gradient(135deg, #cbb98e, #8a6a45); }
.ph-3{ background: linear-gradient(135deg, #d8cdb4, #9c8358); }
.ph-4{ background: linear-gradient(135deg, #c9b48f, #7e5b39); }
.ph-5{ background: linear-gradient(135deg, #ded2b7, #a68a5e); }
.ph-6{ background: linear-gradient(135deg, #c8b79b, #8f7048); }

/* ================= Featured listings ================= */
/* quiet, editorial grid of tall cards; alternate cards sit lower for a staggered
   rhythm. Each image opens out of a small centered square as it scrolls into view
   (GSAP in js/main.js) — without JS the cards simply show in full */
.listings-head{
  display:grid; grid-template-columns: 1.3fr 1fr; align-items:end; gap: 48px;
  padding-bottom: 40px; margin-bottom: 72px; border-bottom: 1px solid var(--line);
}
.listings-title{ font-size: clamp(38px, 5.2vw, 76px); line-height:1.02; letter-spacing:-.01em; font-weight:400; }
.listings-intro{ max-width: 380px; justify-self:end; }
.listings-intro p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.7; color: var(--ink-soft); margin-bottom: 26px; }
.listings-all{
  display:inline-flex; align-items:center; gap:12px;
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.12em; text-transform:uppercase;
  padding-bottom:6px; border-bottom:1px solid var(--ink);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.listings-all svg{ transition: transform .5s var(--ease); }
.listings-all:hover{ color: var(--accent); border-color: var(--accent); }
.listings-all:hover svg{ transform: translateX(6px); }

.listing-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.listing:nth-child(even){ margin-top: 96px; }
.listing{ display:block; color: var(--ink); }
.listing-media{ position:relative; aspect-ratio: 3 / 4; }
.listing-mask{ position:absolute; inset:0; overflow:hidden; background: var(--bg-alt); }
.listing-img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform-origin: 50% 50%;
}
/* hover: a slow drift-in on the photo — on its own wrapper so it doesn't fight
   the scroll-driven scale GSAP puts on the img */
.listing-zoom{ width:100%; height:100%; transition: transform 1.4s cubic-bezier(.22,1,.36,1); }
.listing:hover .listing-zoom{ transform: scale(1.05); }
.listing-media::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, transparent 60%, rgba(18,19,15,.28));
  opacity:0; transition: opacity .8s var(--ease);
}
.listing:hover .listing-media::after{ opacity:1; }
/* faint top shade so the white index label reads on bright photos */
.listing-mask::after{
  content:''; position:absolute; inset:0 0 auto; height:28%; pointer-events:none;
  background: linear-gradient(180deg, rgba(18,19,15,.32), transparent);
}
.listing-index{
  position:absolute; top:14px; left:16px; z-index:1;
  font-family: var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.listing-info{ padding-top: 22px; }
.listing-area{
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.listing-name{
  font-family: var(--font-heading); font-weight:400; font-size: clamp(21px, 1.8vw, 27px);
  line-height:1.15; letter-spacing:.01em; margin-bottom: 18px;
}
.listing-meta{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.06em;
}
.listing-price{ color: var(--ink-soft); }
.listing-cta{
  display:inline-flex; align-items:center; gap:8px; text-transform:uppercase; letter-spacing:.12em; font-size:11.5px;
  transition: color .4s var(--ease);
}
.listing-cta svg{ transition: transform .5s var(--ease); }
.listing:hover .listing-cta{ color: var(--accent); }
.listing:hover .listing-cta svg{ transform: translateX(5px); }
.listing:focus-visible{ outline: 1px solid var(--feru-turquoise); outline-offset: 6px; }

/* ================= Shared: square-mask images ================= */
/* image wrapper whose clip-path is animated from a centered square to full
   (js/main.js); the img inside is scaled down from an over-scale at the same time */
.mask-square{ position:relative; overflow:hidden; background: var(--bg-alt); }
.mask-img{ width:100%; height:100%; object-fit:cover; display:block; }

/* thin-bordered uppercase button (SKILLS §2.4) — fill rises from the bottom on hover */
.btn-line{
  position:relative; isolation:isolate; overflow:hidden;
  display:inline-flex; align-items:center; height:52px; padding:0 34px;
  border:1px solid currentColor; color: inherit;
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.16em; text-transform:uppercase;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn-line::before{
  content:''; position:absolute; inset:0; z-index:-1; background: var(--feru-turquoise);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s cubic-bezier(.65,0,.35,1);
}
.btn-line:hover{ color: var(--feru-black); border-color: var(--feru-turquoise); }
.btn-line:hover::before{ transform: scaleY(1); }
.btn-line:focus-visible{ outline:1px solid var(--feru-turquoise); outline-offset:4px; }

/* ================= Why FERU ================= */
.about{ background: var(--bg-alt); }
.about-grid{ display:grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 7vw, 120px); align-items:start; }
.about-media{ margin:0; position:sticky; top: 110px; }
.about-mask{ aspect-ratio: 4 / 5; }
.about-caption{
  margin-top:14px; font-family: var(--font-mono); font-size:11.5px; letter-spacing:.14em;
  text-transform:uppercase; color: var(--ink-soft);
}
.about-title{ font-size: clamp(38px, 5vw, 72px); line-height:1.02; font-weight:400; letter-spacing:-.01em; margin-bottom: 32px; }
.about-lead{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.8; color: var(--ink-soft); max-width: 520px; margin-bottom: 56px; }
.pillars{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.pillar{
  display:grid; grid-template-columns: 76px 1fr; gap: 24px; align-items:baseline;
  padding: 28px 0; border-bottom:1px solid var(--line);
}
.pillar-letter{ font-family: var(--font-heading); font-size: 56px; line-height:.9; color: var(--feru-turquoise-deep); }
.pillar h3{ font-family: var(--font-heading); font-weight:400; font-size: clamp(22px, 2vw, 28px); margin-bottom:8px; letter-spacing:.01em; }
.pillar p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.7; color: var(--ink-soft); max-width: 440px; }

/* ================= Numbers ================= */
.numbers{ padding: 110px 0; background: var(--bg); }
.numbers-grid{ display:grid; grid-template-columns: repeat(3, 1fr); }
.number{ padding: 8px 32px 4px; border-left:1px solid var(--line); text-align:center; }
.number:last-child{ border-right:1px solid var(--line); }
.number-value{
  --odo-h: .9em; --odo-nudge: .09em;
  display:inline-flex; align-items:center;
  font-family: var(--font-heading); font-weight:400; font-size: clamp(64px, 8vw, 128px); line-height: var(--odo-h);
  letter-spacing:-.02em; color: var(--ink); margin-bottom: 14px;
}
.number-suffix{ margin-left:.02em; }
.number-label{
  font-family: var(--font-heading); font-size: clamp(13px, 1.1vw, 16px); text-transform:uppercase; letter-spacing:.06em; color: var(--ink);
}
/* odometer column: an invisible copy of the final digit sets the width, the strip
   rolls inside it; clipped vertically only so wide digits aren't cut at the sides */
/* each row (--odo-h) is a little taller than Canela's digits (~.77em) so a whole
   digit fits with a sliver of space above and below — the neighbours in the
   strip stay outside the window. Canela sits digits high in the line box, so
   the strip is nudged down (--odo-nudge) to centre them in the row. */
.odometer{ display:inline-flex; align-items:center; }
.odo-digit{ position:relative; display:inline-block; height: var(--odo-h); line-height: var(--odo-h); clip-path: inset(0 -40%); }
.odo-sizer{ visibility:hidden; }
.odo-strip{ position:absolute; left:50%; top: var(--odo-nudge); translate:-50% 0; display:flex; flex-direction:column; }
.odo-strip span{ display:block; height: var(--odo-h); line-height: var(--odo-h); text-align:center; }

/* ================= New developments (pinned horizontal) ================= */
.devs{ background: var(--feru-black); color: var(--feru-ivory); overflow:hidden; }
.devs-pin{ min-height:100vh; display:flex; flex-direction:column; justify-content:center; gap: clamp(24px, 4vh, 48px); padding: 90px 0 32px; }
.devs .eyebrow{ color: var(--feru-turquoise); }
.devs-head{ display:grid; grid-template-columns: 1.2fr 1fr; gap:48px; align-items:end; width:100%; }
.devs-title{ font-size: clamp(32px, 4vw, 60px); line-height:1.02; font-weight:400; letter-spacing:-.01em; }
.devs-aside{ max-width: 400px; justify-self:end; }
.devs-aside p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: rgba(250,248,244,.62); margin-bottom: 22px; }
.devs-progress{ display:flex; align-items:center; gap:18px; font-family: var(--font-mono); font-size:12px; letter-spacing:.12em; }
.devs-bar{ position:relative; flex:1; height:1px; background: rgba(250,248,244,.2); }
.devs-bar-fill{ position:absolute; inset:0; background: var(--feru-turquoise); transform: scaleX(0); transform-origin:left; }
/* cards are sized from the viewport height so the whole pinned frame (heading +
   card + caption) always fits on screen.
   Without JS the track just scrolls sideways; once pinned (JS adds .is-pinned) the
   viewport clips and GSAP moves the track */
.devs-viewport{ overflow-x:auto; scrollbar-width:none; }
.devs-viewport::-webkit-scrollbar{ display:none; }
.devs.is-pinned .devs-viewport{ overflow:hidden; }
.devs-track{
  display:flex; gap: clamp(20px, 2.4vw, 40px); width:max-content;
  padding: 0 var(--edge);
  will-change: transform;
}
.dev-card{ width: clamp(230px, calc((100vh - 420px) * .75), 420px); flex-shrink:0; }
.dev-media{ position:relative; aspect-ratio: 3 / 4; overflow:hidden; background: var(--feru-charcoal); }
.dev-img{ width:116%; max-width:none; height:100%; margin-left:-8%; object-fit:cover; display:block; transition: scale 1.4s cubic-bezier(.22,1,.36,1); }
.dev-card:hover .dev-img{ scale: 1.04; }
.dev-index{
  position:absolute; top:14px; left:16px; font-family: var(--font-mono); font-size:11px; letter-spacing:.14em; color:#fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.dev-info{ padding-top: 16px; }
.dev-developer{ font-family: var(--font-mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--feru-turquoise); margin-bottom:8px; }
.dev-name{ font-family: var(--font-heading); font-weight:400; font-size: clamp(21px, 1.8vw, 28px); line-height:1.1; margin-bottom: 10px; }
.dev-meta{
  display:flex; flex-wrap:wrap; gap:4px 14px; padding-top:10px; border-top:1px solid rgba(250,248,244,.16);
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:.04em; color: rgba(250,248,244,.62);
}

/* ================= Area guide ================= */
.areas-head{ margin-bottom: 56px; }
.areas-title{ font-size: clamp(38px, 5vw, 72px); line-height:1.02; font-weight:400; letter-spacing:-.01em; }
.area-list{ list-style:none; margin:0; padding:0; }
/* --draw (0→1) draws the row's hairline in from the left (animated in js/main.js) */
.area{ --draw: 1; position:relative; }
.area::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px; background: var(--line);
  transform: scaleX(var(--draw)); transform-origin:left;
}
.area:first-child::before{ content:''; position:absolute; left:0; right:0; top:0; height:1px; background: var(--line); transform: scaleX(var(--draw)); transform-origin:left; }
.area-link{
  display:grid; grid-template-columns: 64px minmax(0,1.2fr) minmax(0,1fr) 40px; align-items:center; gap: 24px;
  padding: 30px 0; color: var(--ink);
}
.area-index{ font-family: var(--font-mono); font-size:12px; letter-spacing:.14em; color: var(--feru-grey); }
.area-name{
  font-family: var(--font-heading); font-size: clamp(28px, 3.4vw, 52px); line-height:1.05; letter-spacing:-.005em;
  transition: transform .7s cubic-bezier(.22,1,.36,1), color .5s var(--ease);
}
.area-note{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.7; color: var(--ink-soft); max-width: 380px; }
.area-arrow{ justify-self:end; color: var(--ink-soft); transition: transform .6s cubic-bezier(.22,1,.36,1), color .5s var(--ease); }
.area-link:hover .area-name{ transform: translateX(18px); color: var(--feru-turquoise-deep); }
.area-link:hover .area-arrow{ transform: rotate(45deg); color: var(--feru-turquoise-deep); }
.area-link:focus-visible{ outline:1px solid var(--feru-turquoise); outline-offset:4px; }

/* ================= Testimonials ================= */
.testimonials{ background: var(--bg-alt); }
.testimonials-grid{ display:grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 120px); align-items:start; }
.testimonials-title{ font-size: clamp(34px, 4.2vw, 60px); line-height:1.04; font-weight:400; letter-spacing:-.01em; margin-bottom: 40px; }
.t-controls{ display:flex; align-items:center; gap:18px; }
.t-btn{
  width:48px; height:48px; border-radius:50%; border:1px solid var(--line); background:none; color: var(--ink);
  display:inline-flex; align-items:center; justify-content:center;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.t-btn:hover{ background: var(--ink); border-color: var(--ink); color: var(--feru-ivory); }
.t-btn:focus-visible{ outline:1px solid var(--feru-turquoise); outline-offset:3px; }
.t-count{ font-family: var(--font-mono); font-size:12px; letter-spacing:.14em; min-width: 64px; text-align:center; }
.testimonial-track{ display:grid; }
/* slides stack in one grid cell so the track takes the tallest quote's height */
.t-slide{
  grid-area: 1 / 1; margin:0;
  opacity:0; transform: translateY(18px); pointer-events:none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.t-slide.active{ opacity:1; transform:none; pointer-events:auto; }
.t-quote{
  margin:0 0 36px; font-family: var(--font-heading); font-weight:400;
  font-size: clamp(24px, 2.6vw, 40px); line-height:1.3; letter-spacing:-.005em; color: var(--ink);
}
.t-slide figcaption{ display:flex; flex-direction:column; gap:4px; padding-top:18px; border-top:1px solid var(--line); }
.t-name{ font-family: var(--font-mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase; }
.t-role{ font-size:12.5px; color: var(--ink-soft); }

/* ================= Closing CTA ================= */
.cta-band{ position:relative; height: 100vh; min-height: 560px; color: var(--feru-ivory); display:flex; align-items:center; justify-content:center; text-align:center; }
.cta-mask{ position:absolute; inset:0; background: var(--bg); }
.cta-shade{
  position:absolute; inset:0;
  /* deeper behind the centered copy so the thin serif holds up on the busy skyline */
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(18,19,15,.45), transparent 70%),
    linear-gradient(180deg, rgba(18,19,15,.35), rgba(18,19,15,.5));
}
.cta-content{ position:relative; z-index:1; padding: 0 24px; }
.cta-content .eyebrow{ color: var(--feru-turquoise-soft); }
.cta-title{ font-size: clamp(40px, 6vw, 96px); line-height:1.02; font-weight:400; letter-spacing:-.01em; margin-bottom: 40px; }

/* ================= The seven emirates (map + cards) ================= */
/* full-bleed map filling the whole section: heading over the Gulf, emirates in the
   open middle, a row of short horizontal cards along the bottom. The visible window
   of the map is fitted to that layout in js/emirates-map.js; .is-active is set there too */
.emirates{
  --em-sea: #DCEEEA; --em-land: #F6F3EC; --em-neighbour: #E9E5DA;
  --em-line: rgba(43,43,40,.22); --em-pick: #9FDCD7;
  /* top/bottom shading over the map — tweak strength here */
  --em-fade-top: rgba(250,248,244,.75); --em-fade-bottom: rgba(31,49,57,.2);
  --em-ease: cubic-bezier(.22,1,.36,1);
  position:relative; overflow:hidden; background: var(--em-sea);
  min-height: clamp(700px, 100vh, 1040px);
  display:flex; flex-direction:column; justify-content:space-between;
}
.emirates-map{ position:absolute; inset:0; }
.uae-svg{ position:absolute; inset:0; display:block; width:100%; height:100%; }
.emirates-map::before, .emirates-map::after{ content:''; position:absolute; left:0; right:0; pointer-events:none; z-index:1; }
.emirates-map::before{ top:0; height:30%; background: linear-gradient(180deg, var(--em-fade-top), transparent); }
.emirates-map::after{ bottom:0; height:36%; background: linear-gradient(0deg, var(--em-fade-bottom), transparent); }
/* paper grain over the map — nudges the flat vectors toward the reference's watercolour feel */
.emirates::after{
  content:''; position:absolute; inset:0; pointer-events:none; z-index:1; opacity:.3; mix-blend-mode:multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .52 0 0 0 0 .45 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.map-sea{ fill: var(--em-sea); }
.map-neighbours path{ fill: var(--em-neighbour); stroke: rgba(43,43,40,.16); stroke-width:.8; vector-effect: non-scaling-stroke; }
.emirate{
  fill: var(--em-land); stroke: var(--em-line); stroke-width:.8; stroke-linejoin:round; vector-effect: non-scaling-stroke;
  cursor:pointer; transition: fill .5s var(--em-ease), stroke .5s var(--em-ease);
}
.emirate:hover{ fill: #E3F1EE; }
.emirate.is-active{ fill: var(--em-pick); stroke: var(--feru-turquoise-deep); stroke-width:1.5; }

/* pins + labels are HTML laid over the map so they keep a constant size at any zoom */
.map-pins{ position:absolute; inset:0; z-index:2; pointer-events:none; }
.map-pin{
  position:absolute; translate: -50% -50%; width:30px; height:30px; padding:0; border:0; background:none;
  color: var(--feru-charcoal); pointer-events:auto; cursor:pointer;
}
.map-pin-mark{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; border-radius:50%;
  transition: background .45s var(--em-ease), color .45s, scale .45s var(--em-ease);
}
.map-pin.is-active .map-pin-mark{ background: var(--feru-charcoal); color: var(--feru-ivory); scale: 1.12; }
.map-pin:focus-visible{ outline:none; }
.map-pin:focus-visible .map-pin-mark{ box-shadow: 0 0 0 2px var(--feru-turquoise); }
.map-pin-label{
  position:absolute; top:50%; translate: 0 calc(-50% + var(--dy, 0px)); white-space:nowrap;
  font-family: var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--feru-grey); transition: color .4s var(--ease);
}
.map-pin.label-r .map-pin-label{ left: calc(100% + 2px); }
.map-pin.label-l .map-pin-label{ right: calc(100% + 2px); }
.map-pin.is-active .map-pin-label{ color: var(--feru-black); }

.emirates-head{ position:relative; z-index:3; width:100%; padding-top: clamp(96px, 13vh, 150px); pointer-events:none; }
.emirates-head > *{ max-width: 640px; }
.emirates-title{
  font-family: var(--font-heading); font-weight:400; text-transform:uppercase;
  font-size: clamp(34px, 4.4vw, 64px); line-height:1; letter-spacing:-.005em; color: var(--feru-charcoal);
}
.emirates-title small{ font-size:.5em; letter-spacing:.02em; }
.em-line{ display:block; }

/* ---- card row ---- */
.emirates-bottom{ position:relative; z-index:3; padding-bottom: 22px; }
.emirates-carousel{ position:relative; touch-action: pan-y; user-select:none; -webkit-user-select:none; cursor:grab; }
.emirates-carousel.is-dragging{ cursor:grabbing; }
.emirates-track{ display:flex; gap: 12px; width:max-content; will-change: transform; padding: 0 var(--edge); }
.em-card{
  --pad: clamp(14px, 1.2vw, 20px);
  position:relative; flex-shrink:0; width: clamp(270px, 20vw, 340px); aspect-ratio: 16 / 10;
  display:flex; flex-direction:column; justify-content:space-between; padding: var(--pad);
  overflow:hidden; outline:none; color: var(--feru-charcoal);
  background: rgba(246,243,236,.8); border: 1px solid rgba(43,43,40,.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .5s var(--em-ease);
}
/* the photo stays hidden until the card (or its emirate on the map) is hovered */
.em-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none;
  opacity:0; scale: 1.08; transition: opacity .6s var(--em-ease), scale 1.2s var(--em-ease);
}
.em-shade{
  position:absolute; inset:0; pointer-events:none; opacity:0; transition: opacity .6s var(--em-ease);
  background: linear-gradient(180deg, rgba(18,19,15,.45) 0%, rgba(18,19,15,0) 40%, rgba(18,19,15,0) 50%, rgba(18,19,15,.65) 100%);
}
.em-card.is-active{ color: var(--feru-ivory); }
.em-card.is-active .em-img{ opacity:1; scale:1; }
.em-card.is-active .em-shade{ opacity:1; }
.em-card:focus-visible{ outline: 2px solid var(--feru-turquoise); outline-offset: 3px; }
.em-row{ position:relative; display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.em-row:last-child{ align-items:flex-end; }
.em-index{ font-family: var(--font-heading); font-size: clamp(46px, 3.8vw, 64px); line-height:.9; letter-spacing:-.02em; }
.em-crest{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.em-emblem{ width:38px; height:38px; object-fit:contain; }
/* TODO: placeholder until the emblem files are supplied (see TODO.md) */
.em-emblem-placeholder{
  display:flex; align-items:center; justify-content:center; border-radius:50%;
  border:1px solid currentColor; font-family: var(--font-mono); font-size:11px; letter-spacing:.08em; opacity:.75;
}
.em-ar{ font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, serif; font-size:14px; line-height:1.2; }
.em-name{
  font-family: var(--font-heading); font-weight:400; text-transform:uppercase;
  font-size: clamp(20px, 1.6vw, 27px); line-height:1; letter-spacing:.01em;
}
.em-pin{
  flex-shrink:0; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid currentColor; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.em-card.is-active .em-pin{ background: var(--feru-ivory); color: var(--feru-charcoal); border-color: var(--feru-ivory); }

/* "Drag" label trailing just below-right of the cursor over the row */
.emirates-drag{
  position:absolute; left:0; top:0; z-index:5; pointer-events:none;
  translate: 16px 18px; scale: 0; opacity:0; transform-origin: 0 0;
  padding: 7px 13px; border-radius: 999px; background: rgba(43,43,40,.85); color: var(--feru-ivory);
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  transition: scale .35s var(--em-ease), opacity .35s;
}
.emirates-carousel.show-drag .emirates-drag{ scale:1; opacity:1; }
.emirates-carousel.is-dragging .emirates-drag{ scale:.85; }

.emirates-credit{ margin-top: 14px; font-family: var(--font-mono); font-size:10px; line-height:1.6; letter-spacing:.04em; color: rgba(250,248,244,.75); }
.emirates-credit a{ text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  .em-img, .em-shade, .emirate, .map-pin-mark{ transition:none; }
}
@media (max-width: 860px){
  .emirates{ min-height: clamp(660px, 100svh, 860px); }
  .emirates-head{ padding-top: 84px; }
  .em-card{ width: min(76vw, 290px); }
  .em-index{ font-size: 44px; }
  .map-pin-label{ font-size:9.5px; letter-spacing:.1em; }
}

/* ================= Inner pages ================= */
/* pages without the pinned hero (body.page-inner): the header is solid from the
   start (.scrolled in the markup) and carries a plain FERU logo link in its centre,
   sized like the homepage's landed hero title (24vw × .1 desktop, × .3 mobile) */
.page-inner .header-inner{ position:relative; }
.header-logo{
  position:absolute; left:50%; top:50%; translate:-50% -50%;
  font-family: var(--font-logo); font-size: clamp(27px, 2.4vw, 40px); line-height:1;
  text-transform:uppercase; letter-spacing:.01em; color: var(--ink);
}

/* ================= Contact ================= */
.contact{
  --ft-ease: cubic-bezier(.65,0,.35,1); /* for the .roll email link (footer's easing) */
  --field-line: rgba(23,22,15,.22); --error: #A8432F;
  padding: 170px 0 130px;
}
.contact-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 120px); align-items:start; }
.contact-title{ font-size: clamp(44px, 6vw, 96px); line-height:1.02; font-weight:400; letter-spacing:-.01em; margin-bottom: 32px; }
.contact-lead{ max-width: 480px; font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.7; color: var(--ink-soft); margin-bottom: 56px; }

.contact-details{ margin:0; border-top:1px solid var(--line); }
.contact-detail{ display:grid; grid-template-columns: 120px 1fr; gap:24px; padding: 26px 0; border-bottom:1px solid var(--line); }
.contact-detail dt{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); padding-top:6px; }
.contact-detail dd{ margin:0; }
.contact-detail address{ font-style:normal; font-family: var(--font-heading); font-size: clamp(20px, 1.7vw, 24px); line-height:1.35; margin-bottom:14px; }
.contact-big{ font-family: var(--font-heading); font-size: clamp(24px, 2.4vw, 34px); line-height:1.15; }
.contact-socials{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.contact-link{
  position:relative; display:inline-block; padding:4px 0;
  font-family: var(--font-mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase;
}
.contact-link span{ text-transform:none; letter-spacing:.02em; color: var(--ink-soft); margin-left:6px; }
.contact-link::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background: currentColor; transform: scaleX(.25); transform-origin:left; transition: transform .4s var(--ease);
}
.contact-link:hover::after, .contact-link:focus-visible::after{ transform: scaleX(1); }

.contact-form{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); }
.contact-form-title{ font-size: clamp(26px, 2.4vw, 34px); font-weight:400; margin-bottom: 36px; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom: 30px; }
.field label{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.field-opt{ color: var(--ink-soft); text-transform:none; letter-spacing:.02em; }
.field input, .field select, .field textarea{
  width:100%; padding: 10px 0; border:0; border-bottom:1px solid var(--field-line); border-radius:0;
  background:transparent; color: var(--ink);
  font-family: var(--font-heading); font-size:20px; line-height:1.4;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea{ resize:vertical; min-height: 130px; }
.field select{
  appearance:none; cursor:pointer; padding-right:28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%2363635D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center;
}
/* the underline turns turquoise and thickens on focus — the visible focus ring */
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field input:user-invalid, .field textarea:user-invalid{ border-bottom-color: var(--error); }
.field-trap{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.contact-form-foot{ display:flex; align-items:center; flex-wrap:wrap; gap: 16px 24px; margin-top: 6px; }
.btn-submit{
  display:inline-flex; align-items:center; padding: 16px 30px; border:0; border-radius:4px;
  background: var(--ink); color: var(--white);
  font-family: var(--font-mono); font-size:14px; letter-spacing:.08em; text-transform:uppercase;
  transition: background .3s var(--ease), opacity .3s;
}
.btn-submit:hover{ background: var(--accent); }
.btn-submit:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.btn-submit:disabled{ opacity:.5; cursor:wait; }
.form-status{ flex:1 1 220px; font-size:13px; line-height:1.5; }
.form-status[data-state="ok"]{ color: var(--accent); }
.form-status[data-state="error"]{ color: var(--error); }

/* ================= Assessment ================= */
/* assessment.html: intro on the left, the step card on the right (built by
   js/assessment.js). Reuses the contact form's .field / .btn-submit styles */
.assess{
  --field-line: rgba(23,22,15,.22); --error: #A8432F;
  padding: 170px 0 130px;
}
.assess-grid{ display:grid; grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 7vw, 120px); align-items:start; }
.assess-intro{ position:sticky; top:130px; }
.assess-title{ font-size: clamp(44px, 6vw, 96px); line-height:1.02; font-weight:400; letter-spacing:-.01em; margin-bottom: 32px; }
.assess-lead{ max-width: 480px; font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.7; color: var(--ink-soft); margin-bottom: 56px; }
.assess-steps{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); max-width:480px; }
.assess-step{ display:grid; grid-template-columns: 56px 1fr; gap:16px; align-items:baseline; padding: 20px 0; border-bottom:1px solid var(--line); }
.assess-step span{ font-family: var(--font-heading); font-size: 28px; line-height:1; color: var(--accent); }
.assess-step p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.6; }

.assess-panel{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); scroll-margin-top: 110px; }
.assess-bar{ display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; }
.assess-bar[hidden], .assess-progress[hidden], .assess-trust[hidden]{ display:none; }
.assess-back, .assess-count{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); }
.assess-back{ display:inline-flex; align-items:center; gap:8px; padding:4px 0; border:0; background:none; transition: color .3s var(--ease); }
.assess-back:hover:not(:disabled){ color: var(--ink); }
.assess-back:disabled{ opacity:.3; cursor:default; }
.assess-progress{ height:2px; background: var(--line); overflow:hidden; margin-bottom: 40px; }
.assess-progress span{ display:block; height:100%; width:0; background: var(--accent); transition: width .5s var(--ease); }

.assess-enter{ animation: assessIn .45s var(--ease); }
@keyframes assessIn{ from{ opacity:0; transform: translateX(18px); } to{ opacity:1; transform:none; } }
.assess-q{ font-size: clamp(28px, 2.6vw, 40px); font-weight:400; line-height:1.12; margin-bottom: 30px; outline:none; }

.assess-options{ display:grid; gap:10px; }
.assess-option{
  display:flex; align-items:center; gap:16px; width:100%; padding: 18px 20px; text-align:left;
  border:1px solid var(--line); border-radius:4px; background:transparent; color: var(--ink);
  font-family: var(--font-heading); font-size: 20px; line-height:1.3;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.assess-option svg{ flex:none; color: var(--ink-soft); transition: transform .35s var(--ease), color .3s; }
.assess-option-text{ flex:1; }
.assess-check{ flex:none; position:relative; width:18px; height:18px; border:1px solid var(--field-line); border-radius:2px; transition: background .3s, border-color .3s; }
.assess-check::after{
  content:''; position:absolute; left:5px; top:1px; width:5px; height:10px;
  border: solid var(--white); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease);
}
.assess-option:hover{ border-color: var(--feru-turquoise-soft); background: rgba(10,186,181,.04); }
.assess-option:hover svg{ transform: translateX(4px); color: var(--accent); }
.assess-option:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.assess-option[aria-pressed="true"]{ border-color: var(--accent); background: rgba(10,186,181,.08); }
.assess-option[aria-pressed="true"] .assess-check{ background: var(--accent); border-color: var(--accent); }
.assess-option[aria-pressed="true"] .assess-check::after{ transform: rotate(45deg) scale(1); }

.assess-summary{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.7; color: var(--ink-soft); margin-bottom: 28px; }
.assess-box{ border-top:1px solid var(--line); padding: 22px 0; }
.assess-box-label, .assess-answers dt{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--accent); margin-bottom:12px; }
.assess-points li{ position:relative; padding-left:22px; font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.65; }
.assess-points li + li{ margin-top:8px; }
.assess-points li::before{ content:''; position:absolute; left:0; top:.7em; width:10px; height:1px; background: var(--accent); }
.assess-areas{ display:flex; flex-wrap:wrap; gap:8px; }
.assess-areas li{ padding: 8px 16px; border:1px solid var(--line); border-radius:999px; font-family: var(--font-heading); font-size:17px; }

.assess-answers{ margin: 0 0 22px; border-top:1px solid var(--line); }
.assess-answers > div{ display:grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 14px 0; border-bottom:1px solid var(--line); }
.assess-answers > div:first-child{ padding-top:22px; }
.assess-answers dt{ margin:0; color: var(--ink-soft); letter-spacing:.04em; text-transform:none; font-size:13px; line-height:1.5; }
.assess-answers dd{ margin:0; font-family: var(--font-heading); font-size:18px; line-height:1.35; display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.assess-edit{
  flex:none; padding:2px 0; border:0; border-bottom:1px solid currentColor; background:none; color: var(--ink-soft);
  font-family: var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; transition: color .3s;
}
.assess-edit:hover, .assess-edit:focus-visible{ color: var(--accent); }
.assess-note{ font-size:12px; line-height:1.6; color: var(--ink-soft); }
.assess-note a{ border-bottom:1px solid currentColor; }

.assess-send{ margin-top: 36px; padding-top: 36px; border-top:1px solid var(--ink); }
.assess-send-title{ font-size: clamp(24px, 2.2vw, 32px); font-weight:400; margin-bottom: 12px; }
.assess-send-lead{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.7; color: var(--ink-soft); margin-bottom: 32px; }
.assess-trust{ margin-top: 28px; text-align:center; font-family: var(--font-mono); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-soft); }

.assess-done{ text-align:center; padding: 24px 0 8px; }
.assess-done-mark{ display:inline-grid; place-items:center; width:56px; height:56px; margin-bottom:22px; border:1px solid var(--accent); border-radius:50%; color: var(--accent); }
.assess-done .assess-summary{ max-width: 460px; margin: 0 auto 32px; }
.assess-done-actions{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: 18px 28px; }

@media (prefers-reduced-motion: reduce){
  .assess-enter{ animation:none; }
}

/* ================= About page ================= */
/* about.html — intro, pinned manifesto, the name (reuses .about-grid/.pillars),
   pinned F·E·R·U, approach, how we work, closing CTA. Scroll motion lives in
   js/about.js; the .is-pinned / .is-live states below only apply once it runs */
.ab-hero{ padding-top: 170px; }
.ab-hero-head{ display:grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items:end; padding-bottom: 72px; }
.ab-hero-title{ font-size: clamp(48px, 7.4vw, 124px); line-height:1; font-weight:400; letter-spacing:-.015em; }
.ab-hero-aside{ max-width: 400px; justify-self:end; }
.ab-hero-aside p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: var(--ink-soft); margin-bottom: 28px; }
.ab-hero-media{ margin:0; }
.ab-hero-mask{ height: clamp(420px, 86vh, 920px); }
.ab-hero-mask .mask-img{ will-change: transform; }

/* ---- the name: numerals instead of letters in the reused .pillar rows ---- */
.pillar-letter.ab-num{ font-size: 40px; font-family: var(--font-heading); }

/* ---- F · E · R · U ---- */
.ab-pillars{ background: var(--feru-black); color: var(--feru-ivory); overflow:hidden; }
.ab-pillars .eyebrow{ color: var(--feru-turquoise); }
.ab-pillars-pin{ min-height:100vh; display:flex; flex-direction:column; justify-content:center; gap: clamp(32px, 7vh, 88px); padding: 110px 0 64px; }
.ab-pillars-head{ display:grid; grid-template-columns: 1.2fr 1fr; gap:48px; align-items:end; width:100%; }
.ab-pillars-title{ font-size: clamp(32px, 4vw, 60px); line-height:1.02; font-weight:400; letter-spacing:-.01em; }
.ab-pillars-progress{ width:100%; max-width: 400px; justify-self:end; }
.ab-pillars-stage{ display:grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 110px); align-items:center; width:100%; }
.ab-letters{
  display:flex; justify-content:space-between;
  font-family: var(--font-heading); font-size: clamp(110px, 16vw, 290px); line-height:.82;
}
.ab-letter{ display:inline-block; color: var(--feru-turquoise); transition: color .8s var(--ease), transform .8s var(--ease); }
.ab-pillar-list{ list-style:none; margin:0; padding:0; display:grid; }
.ab-pillar{ padding: 28px 0; border-top: 1px solid rgba(250,248,244,.16); }
.ab-pillar-key{ font-family: var(--font-mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--feru-turquoise); margin-bottom: 16px; }
.ab-pillar h3{ font-size: clamp(32px, 3.4vw, 54px); font-weight:400; letter-spacing:-.005em; margin-bottom: 18px; }
.ab-pillar p:last-child{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: rgba(250,248,244,.62); max-width: 440px; }
/* pinned: the pillars stack in one cell and swap; letters dim except the active one */
.ab-pillars:not(.is-pinned) .ab-pillars-progress{ display:none; }
.ab-pillars.is-pinned .ab-letter{ color: rgba(250,248,244,.1); }
.ab-pillars.is-pinned .ab-letter.is-past{ color: rgba(250,248,244,.32); }
.ab-pillars.is-pinned .ab-letter.is-active{ color: var(--feru-turquoise); transform: translateY(-5%); }
.ab-pillars.is-pinned .ab-pillar{
  grid-area: 1 / 1; opacity:0; transform: translateY(26px); pointer-events:none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ab-pillars.is-pinned .ab-pillar.is-active{ opacity:1; transform:none; pointer-events:auto; }

/* ---- services ---- */
.ab-services-head{ display:grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items:end; margin-bottom: clamp(48px, 6vw, 88px); }
.ab-services-title{ font-size: clamp(36px, 4.6vw, 68px); line-height:1.02; font-weight:400; letter-spacing:-.01em; }
.ab-services-lead{ max-width: 440px; justify-self:end; font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: var(--ink-soft); }
.ab-service-grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 64px); }
.ab-service{ display:flex; flex-direction:column; padding: 32px 0 48px; border-top:1px solid var(--line); }
.ab-service-num{ font-family: var(--font-heading); font-size: 40px; line-height:1; color: var(--accent); margin-bottom: 28px; }
.ab-service h3{ font-weight:400; font-size: clamp(26px, 2.3vw, 34px); letter-spacing:.005em; margin-bottom: 14px; }
.ab-service p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: var(--ink-soft); margin-bottom: 22px; }
.ab-service-tags{ list-style:none; margin:auto 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.ab-service-tags li{ padding: 6px 14px; border:1px solid var(--line); border-radius:999px; font-family: var(--font-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); }
.ab-services-next{ display:flex; align-items:center; flex-wrap:wrap; gap: 14px 24px; padding-top: 28px; border-top:1px solid var(--line); }
.ab-services-next-label{ font-family: var(--font-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color: var(--accent); }
.ab-services-next .ab-service-tags{ margin:0; }

/* ---- founder ---- */
.ab-founder-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items:center; }
.ab-founder-media{ margin:0; }
.ab-founder-mask{ aspect-ratio: 3 / 4; border-radius: 2px; }
.ab-founder-name{ font-size: clamp(48px, 6.4vw, 108px); line-height:.98; font-weight:400; letter-spacing:-.015em; margin-bottom: 18px; }
.ab-founder-role{ font-family: var(--font-mono); font-size:13px; letter-spacing:.14em; text-transform:uppercase; color: var(--accent); margin-bottom: 36px; }
.ab-founder-bio{ max-width: 540px; margin-bottom: 36px; }
.ab-founder-bio p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.8; color: var(--ink-soft); }
.ab-founder-bio p + p{ margin-top: 16px; }
.ab-founder-facts{ margin: 0 0 40px; max-width: 540px; border-top:1px solid var(--line); }
.ab-founder-facts > div{ display:grid; grid-template-columns: 120px 1fr; gap:24px; padding: 16px 0; border-bottom:1px solid var(--line); }
.ab-founder-facts dt{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); padding-top:4px; }
.ab-founder-facts dd{ margin:0; font-family: var(--font-heading); font-size: 20px; line-height:1.35; }

/* ---- how we work ---- */
.ab-process-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items:start; }
.ab-process-side{ position:sticky; top: 130px; }
.ab-process-title{ font-size: clamp(36px, 4.6vw, 68px); line-height:1.02; font-weight:400; letter-spacing:-.01em; margin-bottom: 28px; }
.ab-process-lead{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: var(--ink-soft); max-width: 380px; }
/* --fill (0→1) grows the turquoise rail down the left edge (js/about.js) */
.ab-steps{ --fill: 1; position:relative; list-style:none; margin:0; padding:0 0 0 clamp(28px, 3vw, 48px); }
.ab-steps::before, .ab-steps::after{ content:''; position:absolute; left:0; top:0; bottom:0; width:1px; }
.ab-steps::before{ background: rgba(18,19,15,.14); }
.ab-steps::after{ background: var(--feru-turquoise-deep); transform: scaleY(var(--fill)); transform-origin: top; }
.ab-step{ display:grid; grid-template-columns: clamp(76px, 7vw, 120px) 1fr; gap: 24px; align-items:baseline; padding: 40px 0; border-bottom: 1px solid var(--line); }
.ab-step:first-child{ padding-top: 0; }
.ab-step-num{ font-family: var(--font-heading); font-size: clamp(52px, 5vw, 84px); line-height:.9; letter-spacing:-.02em; color: var(--feru-turquoise-deep); transition: color .8s var(--ease); }
.ab-steps.is-live .ab-step:not(.is-reached) .ab-step-num{ color: rgba(18,19,15,.16); }
.ab-step h3{ font-weight:400; font-size: clamp(24px, 2.2vw, 32px); letter-spacing:.01em; margin-bottom: 10px; }
.ab-step p{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: var(--ink-soft); max-width: 440px; }

@media (max-width: 1080px){
  .ab-hero-head, .ab-pillars-head, .ab-process-grid{ grid-template-columns: 1fr; }
  .ab-hero-aside, .ab-pillars-progress{ justify-self:start; }
  .ab-pillars-stage{ grid-template-columns: 1fr; gap: 32px; }
  .ab-letters{ font-size: clamp(90px, 22vw, 200px); }
  .ab-process-side{ position:relative; top:auto; }
  .ab-services-head, .ab-founder-grid{ grid-template-columns: 1fr; }
  .ab-services-lead{ justify-self:start; }
  .ab-service-grid{ grid-template-columns: repeat(2, 1fr); }
  .ab-founder-media{ max-width: 520px; }
}
@media (max-width: 640px){
  .ab-hero{ padding-top: 120px; }
  .ab-hero-head{ padding-bottom: 48px; }
  .ab-hero-mask{ height: 64vh; }
  .ab-service-grid{ grid-template-columns: 1fr; }
  .ab-founder-facts > div{ grid-template-columns: 1fr; gap: 4px; }
  .ab-pillars-pin{ padding: 96px 0 40px; gap: 28px; }
  .ab-pillar{ padding: 22px 0; }
  .ab-step{ grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
}

/* ================= Legal pages ================= */
/* privacy.html / terms.html / cookies.html: title block, then sticky contents on the
   left and numbered sections on the right */
.legal{ padding: 170px 0 130px; }
.legal-head{ max-width: 900px; margin-bottom: clamp(56px, 8vw, 110px); }
/* 404.html reuses the legal page header */
.notfound{ min-height: 78vh; }
.notfound .legal-head{ margin-bottom:0; }
.notfound-actions{ display:flex; flex-wrap:wrap; align-items:center; gap: 18px 32px; margin-top: 40px; }
.legal-title{ font-size: clamp(44px, 6vw, 96px); line-height:1.02; font-weight:400; letter-spacing:-.01em; margin-bottom: 28px; }
.legal-lead{ max-width: 620px; font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.75; color: var(--ink-soft); margin-bottom: 18px; }
.legal-updated{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--accent); }
.legal-grid{ display:grid; grid-template-columns: 300px 1fr; gap: clamp(48px, 8vw, 140px); align-items:start; }
.legal-aside{ position:sticky; top: 120px; }
.legal-aside-label{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.legal-toc{ list-style:none; margin:0 0 32px; padding:0; border-top:1px solid var(--line); counter-reset: toc; }
.legal-toc li{ border-bottom:1px solid var(--line); counter-increment: toc; }
.legal-toc a{ display:flex; gap:12px; padding: 10px 0; font-size:14px; letter-spacing: var(--text-body-tracking); transition: color .3s; }
.legal-toc a::before{ content: counter(toc, decimal-leading-zero); color: var(--ink-soft); }
.legal-toc a:hover{ color: var(--accent); }
.legal-others{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.legal-others a{ font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); border-bottom:1px solid transparent; transition: color .3s, border-color .3s; }
.legal-others a:hover, .legal-others a[aria-current="page"]{ color: var(--ink); border-color: currentColor; }
.legal-body{ max-width: 760px; }
.legal-part{ padding: 0 0 44px; margin-bottom: 44px; border-bottom:1px solid var(--line); scroll-margin-top: 110px; }
.legal-part:last-child{ border-bottom:0; }
.legal-part h2{ display:flex; align-items:baseline; gap:18px; font-size: clamp(26px, 2.4vw, 36px); font-weight:400; margin-bottom: 20px; }
.legal-part h2 span{ font-size: .55em; color: var(--accent); }
.legal-part p, .legal-part li{ font-size: var(--text-body); letter-spacing: var(--text-body-tracking); line-height:1.8; color: var(--ink-soft); }
.legal-part p + p, .legal-part p + ul, .legal-part ul + p{ margin-top: 14px; }
.legal-part ul{ list-style:none; margin:0; padding:0; }
.legal-part li{ position:relative; padding-left: 24px; }
.legal-part li + li{ margin-top: 8px; }
.legal-part li::before{ content:''; position:absolute; left:0; top:.85em; width:12px; height:1px; background: var(--accent); }
.legal-part strong{ font-weight:400; color: var(--ink); }
.legal-part a{ color: var(--ink); border-bottom:1px solid var(--accent); }
.legal-part a:hover{ color: var(--accent); }
@media (max-width: 960px){
  .legal-grid{ grid-template-columns: 1fr; }
  .legal-aside{ position:static; }
}
@media (max-width: 640px){
  .legal{ padding: 120px 0 80px; }
}

/* ================= Footer ================= */
/* dark slate footer: contact top, FERU wordmark centered, location + actions
   below. Hover motions: pill/circle/text buttons grow a fill out from their
   center, phone/email roll up to a copy of themselves */
.site-footer{
  --ft-bg: #1F3139; --ft-ink: #E4DED2; --ft-dim: rgba(228,222,210,.5);
  --ft-line: rgba(228,222,210,.14); --ft-ease: cubic-bezier(.65,0,.35,1);
  background: var(--ft-bg); color: var(--ft-ink);
}
.footer-wrap{ max-width: var(--container-wide); margin:0 auto; padding: 56px var(--gutter) 0; }

.footer-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:32px; }
.footer-label{ display:flex; flex-direction:column; font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.footer-label-sub{ color: var(--ft-dim); }
.footer-reach{ display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.footer-phone{ font-family: var(--font-heading); font-size: clamp(34px,4.2vw,64px); line-height:1.15; letter-spacing:-.01em; }
.footer-email{ font-family: var(--font-heading); font-size: clamp(18px,1.9vw,28px); line-height:1.15; }

/* text roll: the copy sits just below, both slide up one line on hover */
.roll{ display:inline-block; overflow:hidden; vertical-align:top; }
.roll-inner{ position:relative; display:inline-block; transition: transform .6s var(--ft-ease); }
.roll-inner::after{ content: attr(data-text); position:absolute; left:0; top:100%; }
.roll:hover .roll-inner, .roll:focus-visible .roll-inner{ transform: translateY(-100%); }

.footer-mark{
  display:block; width:max-content; margin: 40px auto 56px;
  font-family: var(--font-logo); font-size: clamp(72px,11vw,170px); line-height:1; color: var(--ft-ink);
}

.footer-mid{ display:flex; justify-content:space-between; align-items:flex-end; gap:32px; padding-bottom:44px; }
.footer-address{ font-family: var(--font-heading); font-size: clamp(20px,1.8vw,28px); margin-bottom:18px; }
.footer-actions{ display:flex; align-items:center; gap:6px; }

.btn-pill, .btn-circle, .btn-text{ position:relative; isolation:isolate; font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.08em; font-size:12.5px; }
.btn-pill::before, .btn-circle::before, .btn-text::before{
  content:''; position:absolute; z-index:-1; inset:0; border-radius:inherit;
  transition: transform .5s var(--ft-ease), opacity .5s var(--ft-ease);
}
/* pill: widens a touch while a darker band opens from the center */
.btn-pill{
  display:inline-flex; align-items:center; height:36px; padding:0 18px; margin-right:8px;
  border-radius:4px; background: var(--ft-ink); color: var(--ft-bg);
  transition: padding .5s var(--ft-ease);
}
.btn-pill::before{ background: rgba(31,49,57,.1); transform: scaleX(0); }
.btn-pill:hover{ padding:0 24px; }
.btn-pill:hover::before{ transform: scaleX(1); }
/* circle: a light disc grows out of the center */
.btn-circle{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--ft-line);
  display:inline-flex; align-items:center; justify-content:center; color: var(--ft-ink);
}
.btn-circle::before{ background: rgba(228,222,210,.2); transform: scale(0); }
.btn-circle:hover::before{ transform: scale(1); }
/* text: rounded plate grows out of the center behind the label */
.footer-links{ display:flex; gap:4px; }
.btn-text{ padding:9px 14px; border-radius:4px; color: var(--ft-ink); }
.btn-text::before{ background: rgba(228,222,210,.13); transform: scale(.3,0); opacity:0; }
.btn-text:hover::before{ transform: scale(1); opacity:1; }
.btn-pill:focus-visible, .btn-circle:focus-visible, .btn-text:focus-visible{ outline:1px solid var(--ft-ink); outline-offset:3px; }

.footer-bottom{
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:16px;
  border-top:1px solid var(--ft-line); padding: 20px 0 24px;
  font-family: var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color: var(--ft-dim);
}
.footer-bottom > :last-child{ text-align:right; }
.footer-legal{ display:flex; gap:16px; }
.footer-legal a, .footer-credit{ transition: color .3s var(--ease); }
.footer-legal a:hover{ color: var(--ft-ink); }
.footer-credit{ color: var(--ft-ink); }
.footer-credit:hover{ color: var(--feru-turquoise-soft); }

@media (prefers-reduced-motion: reduce){
  .roll-inner, .btn-pill, .btn-pill::before, .btn-circle::before, .btn-text::before{ transition:none; }
}

/* ================= WhatsApp FAB ================= */
/* frosted-glass circle — matches the hero-orb treatment: translucent white,
   blurred backdrop, thin border, so it reads as part of the same brand system
   instead of a bolted-on green badge */
.whatsapp-fab{
  position: fixed; right: 28px; bottom: 28px; z-index: 800;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -12px rgba(18,19,15,.45);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.whatsapp-fab:hover{ transform: scale(1.08); background: rgba(255,255,255,.22); }
.whatsapp-fab::before{
  content:''; position:absolute; inset:-14px; border-radius:50%;
  border: 1px solid rgba(10,186,181,.6);
  animation: orbPulse 3.2s ease-out infinite;
}

/* ================= Responsive ================= */
@media (max-width: 1080px){
  :root{ --gutter: 32px; }
  .listing-grid{ grid-template-columns: repeat(2,1fr); gap: 28px; }
  .listings-head{ grid-template-columns: 1fr; }
  .listings-intro{ justify-self:start; }
  .about-grid, .testimonials-grid{ grid-template-columns: 1fr; }
  .about-media{ position:relative; top:auto; max-width: 520px; }
  .devs-head{ grid-template-columns: 1fr; gap: 24px; }
  .devs-aside{ justify-self:start; }
  .area-link{ grid-template-columns: 48px 1fr 32px; }
  .area-note{ grid-column: 2 / 3; grid-row: 2; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-lead{ margin-bottom: 44px; }
  .assess-grid{ grid-template-columns: 1fr; }
  .assess-intro{ position:static; }
  .assess-lead{ margin-bottom: 44px; }
}
@media (max-width: 860px){
  /* minimalist mobile header: menu, logo and the Assessment button (moved to the
     right) only — drop Portfolio, the language switcher and About us */
  :root{ --header-pad: 22px; --header-pad-scrolled: 16px; }
  .header-inner{ min-height: 34px; }
  .header-left .btn-invest,
  .header-left .header-link,
  .lang-switch,
  .header-actions .header-link{ display:none; }
  .btn-invest-m{ display:inline-flex; padding:8px 12px; font-size:11.5px; letter-spacing:.06em; }
  .header-logo{ font-size: 7.2vw; }
}
@media (max-width: 400px){
  /* keep clear of the centred logo on the narrowest phones */
  .btn-invest-m{ padding:7px 10px; font-size:11px; letter-spacing:.04em; }
}
@media (max-width: 860px){
  /* mobile now runs the same pinned/scrubbed cinematic sequence as desktop
     (see js/main.js buildHeroSequence) — just over a shorter scroll distance —
     so the captions/cta/location stay visible and un-modified here */
  /* FERU fills the row between the page gutters (3.94 = its width ÷ font-size
     in Dawner) and sits just under the header (js/main.js megaStartY); the
     intro panel spans the same gutters, down above the scroll cue */
  .hero-mega{ font-size: calc((100vw - 2 * var(--gutter)) / 3.94); }
  .hero-intro{ bottom:118px; text-align:center; }
  .hero-intro-panel{ display:block; max-width:none; padding:20px 18px 22px; }
  .hero-intro p{ font-size: 16px; max-width:none; margin-bottom:18px; }
  .hero-pill-nav{ justify-content:center; }
}
@media (max-width: 640px){
  :root{ --gutter: 20px; }
  .listing-grid{ grid-template-columns: 1fr; gap: 56px; }
  .listing:nth-child(even){ margin-top: 0; }
  .listings-head{ margin-bottom: 48px; }
  .section{ padding: 80px 0; }
  .numbers{ padding: 72px 0; }
  .numbers-grid{ grid-template-columns: 1fr; }
  .number{ border-left:0; border-right:0 !important; border-top:1px solid var(--line); padding: 32px 0 28px; }
  .number:last-child{ border-bottom:1px solid var(--line); }
  .devs-pin{ padding: 96px 0 40px; }
  .dev-card{ width: min(72vw, calc((100vh - 400px) * .75)); }
  .area-link{ grid-template-columns: 36px 1fr 24px; gap: 14px; padding: 24px 0; }
  .pillar{ grid-template-columns: 52px 1fr; gap: 16px; }
  .pillar-letter{ font-size: 44px; }
  .hero-actions{ gap:20px; }
  .footer-wrap{ padding-top: 44px; }
  .footer-top, .footer-mid{ flex-direction:column; align-items:flex-start; }
  .footer-reach{ align-items:flex-start; }
  .footer-mark{ margin: 36px auto 40px; }
  .footer-links{ margin-left:-14px; }
  .footer-bottom{ grid-template-columns: 1fr; gap:10px; }
  .footer-bottom > :last-child{ text-align:left; }
  .hero-pill-nav a{ padding:11px 18px; font-size:11.5px; }
  .whatsapp-fab{ width:60px; height:60px; right:18px; bottom:18px; }
  .contact{ padding: 120px 0 80px; }
  .contact-detail{ grid-template-columns: 1fr; gap:10px; padding: 22px 0; }
  .contact-detail dt{ padding-top:0; }
  .field-row{ grid-template-columns: 1fr; }
  .assess{ padding: 120px 0 80px; }
  .assess-option{ padding: 16px; font-size:18px; gap:12px; }
  .assess-answers > div{ grid-template-columns: 1fr; }
}

/* ================= Languages ================= */
/* ru/, uz/ and ar/ are generated copies of the site (tools/i18n.py). Neither
   Canela nor ApercuMono has Arabic letters, so Arabic uses the system's Arabic
   faces; its letters join, so it drops the tracking and uppercase styling. */
html[lang="ar"]{
  --font-heading: 'Canela', 'Noto Naskh Arabic', 'Geeza Pro', 'Times New Roman', serif;
  --font-body: 'ApercuMono', 'Noto Sans Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: var(--font-body);
}
html[lang="ar"] body *{ letter-spacing:0 !important; }
/* the FERU wordmark is Latin: keep its letters in order on right-to-left pages */
[dir="rtl"] .hero-mega, [dir="rtl"] .header-logo, [dir="rtl"] .footer-mark{ direction:ltr; }
/* Arabic letters reach further below the line than Latin: open up the headings */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3{ line-height:1.35; }
html[lang="ar"] .reveal-line{ padding-bottom:.12em; }
