/* ============================================================
   Fikra Digital — standalone rebuild (parity with Framer source)
   Breakpoints: desktop ≥1200 · tablet 810–1199.98 · phone ≤809.98
   ============================================================ */

/* ============================================================
   Web fonts — self-hosted (was fonts.googleapis.com / gstatic)
   Geist + Inter ship as variable woff2 (one file per family), STIX
   Two Text as statics. Self-hosting drops two third-party origins:
   faster connection setup, no visitor IPs sent to Google.
   ============================================================ */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geist-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geist-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/geist-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'STIX Two Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/stix-two-text-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'STIX Two Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/stix-two-text-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arabic faces (AR page only — the unicode-range means these files are
   never fetched on the EN/DE pages, where no Arabic glyphs are rendered).
   Plex Sans carries UI/body text; Amiri carries the serif accents that
   STIX Two Text provides in Latin. */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-arabic-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200D, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-arabic-500.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200D, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-arabic-700.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200D, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/amiri-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200D, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* Kufam — Arabic Kufi face for headings (variable 400–900). Arabic-only
   unicode-range, so Latin keeps STIX Two Text in the display stack. */
@font-face {
  font-family: 'Kufam';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/kufam-variable.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200D, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* ---- color system ---- */
  --ink: #EAE7E0;                        /* headings, titles, primary text */
  --ink-body: rgba(234, 231, 224, 0.68); /* descriptions, paragraphs */
  --ink-muted: rgba(234, 231, 224, 0.55);/* labels, meta, footer */
  --ink-faint: rgba(234, 231, 224, 0.4); /* placeholders */
  --ink-hover: #FFFFFF;
  --btn-ink: #0A0A0C;                    /* text on cream buttons */
  --gold: #E8B664;                       /* accent (badges, shine) */
  --hairline: rgba(234, 231, 224, 0.09); /* card borders */
  --bg: #000000;

  /* ---- type scale (12 · 13 · 14 · 15 · 16 · 18 · 24 · 32 · 48 · 60 · 96) ---- */
  --fs-feature: 96px;  /* Featured Work display   */
  --fs-h2: 60px;       /* section headings        */
  --fs-display: 48px;  /* hero title              */
  --fs-title: 32px;    /* card titles             */
  --fs-h3: 24px;       /* sub-headings            */
  --fs-lead: 18px;     /* section subs, quote     */
  --fs-body: 16px;     /* paragraphs, values      */
  --fs-label: 15px;    /* chips, form input       */
  --fs-small: 14px;    /* nav links, buttons      */
  --fs-micro: 13px;    /* labels, meta, footer    */

  /* the Arabic families sit at the end of each stack: their unicode-range is
     Arabic-only, so Latin text never reaches them and Arabic text always does */
  --font-serif: "STIX Two Text", Georgia, "Kufam", "Amiri", serif;
  --font-sans: Geist, Inter, "IBM Plex Sans Arabic", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-zoom: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* scroll-padding keeps anchor jumps clear of the fixed nav pill (130px tall) */
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
html, body { overflow-x: clip; }

/* visible keyboard focus (base state has outline: none on the textarea) */
a:focus-visible, button:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(234, 231, 224, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, p { margin: 0; }

/* ---------- dotted page background ---------- */
.dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 13px 13px;
}

.page { position: relative; z-index: 1; }

/* ============================================================
   Navigation
   ============================================================ */
.navigation {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 44px 20px;
}

.nav-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 10px 10px 22px;
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    max-width 0.55s var(--ease-out),
    background 0.55s ease,
    border 0.55s ease,
    box-shadow 0.55s ease;
}

.nav-pill.is-materialized {
  max-width: 880px;
  background: rgba(10, 10, 12, 0.93);
  border: 1px solid rgba(234, 231, 224, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* the whale svg canvas is cropped to the artwork, so the mark hugs the
   pill's left padding instead of floating inside empty canvas */
.whale-logo { display: none; height: 40px; width: auto; }

.nav-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0em;
  line-height: 1.2;
  color: var(--ink);
}

.nav-burger {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(234, 231, 224, 0.2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* phone dropdown menu */
.nav-dropdown {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 10px);
  z-index: 9;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(234, 231, 224, 0.14);
  background: rgba(14, 15, 18, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.navigation.is-open .nav-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-dropdown a {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.06); }
.nav-dropdown-cta { margin-top: 6px; }
.nav-dropdown-cta .btn-cream {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 22px;
  border-radius: 10.5px;
  background: var(--ink);
  color: var(--btn-ink);
  font-size: var(--fs-small);
  font-weight: 500;
}

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1.2;
  color: var(--ink);
}

/* ============================================================
   Shining CTA borders (rotating white conic ring — border only)
   ============================================================ */
.cta-glow {
  position: relative;
  display: inline-flex;
  padding: 1.5px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.38);
  /* layered halo — a single 14% shadow disappears against the dark page */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.50),
              0 0 26px rgba(255, 255, 255, 0.26),
              0 0 52px rgba(255, 255, 255, 0.11);
}
.cta-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 190deg,
    rgba(255, 255, 255, 0.9) 235deg,
    #FFFFFF 260deg,
    rgba(255, 255, 255, 0.9) 285deg,
    transparent 330deg);
  animation: ctaShine 4.5s linear infinite;
  z-index: -1;
}
@keyframes ctaShine { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cta-glow::before { animation: none; }
}
/* the ring is paused while its button is off-screen (see script.js observer) */
.cta-glow.is-offscreen::before { animation-play-state: paused; }
.cta-glow .btn-cream { border-radius: 10.5px; }

.nav-cta {
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--btn-ink);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1.2;
  cursor: pointer;
}

/* cream buttons (nav CTA / services / send) share the hover lift */
.btn-cream { transition: transform 0.3s cubic-bezier(0.3, 1.2, 0.4, 1); }
.btn-cream:hover { transform: translateY(-2px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* small-viewport unit: mobile URL bar can't crop the meta row */
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding-left: 88px;
}

.hero-bg {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  bottom: 24px;
  border-radius: 24px;
  overflow: hidden;
}
/* artwork is a real <img>: the preload scanner finds it immediately and
   srcset picks the 1x/2x + avif/webp variant (LCP element) */
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: var(--fs-display);
  letter-spacing: -0.04em;
  line-height: 110%;
  color: var(--ink);
}
/* title + sub + CTA travel as one block: desktop keeps them left, vertically
   centred over the artwork; phones drop the block inside the picture */
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}
/* words stay whole, so narrow phones break the title at the spaces */
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title.is-in .ch { opacity: 1; transform: translateY(0); filter: blur(0); }
/* release the compositor layers once the characters have landed */
.hero-title.is-settled .ch { will-change: auto; }

.hero-sub {
  position: relative;
  z-index: 1;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0em;
  line-height: 1.2;
  color: var(--ink);
}

/* hero CTA — same glowing cream pill as the nav, with a little more presence */
.hero-cta { position: relative; z-index: 1; margin-top: 6px; }
.hero-btn {
  padding: 15px 28px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--btn-ink);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1.2;
}

.hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 48px;
}

.meta-clock {
  font-weight: 400;
  font-size: var(--fs-micro);
  letter-spacing: 0.08px;
  line-height: 1;
  color: rgba(224, 238, 247, 0.65);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.meta-loc {
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: rgba(224, 238, 247, 0.65);
  white-space: nowrap;
}

/* shimmer label (ShimmerText port) */
.meta-shimmer { position: relative; display: inline-block; overflow: hidden; }
.meta-shimmer span {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.shimmer-base { color: rgba(224, 238, 247, 0.5); visibility: hidden; }
.shimmer-dim { position: absolute; inset: 0; color: rgba(224, 238, 247, 0.5); }
.shimmer-glow {
  position: absolute;
  inset: 0;
  color: transparent;
  background-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 41%, rgba(240,248,255,1) 50%, rgba(0,0,0,0) 59%, rgba(0,0,0,0) 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerSweep 3s linear infinite;
}
@keyframes shimmerSweep {
  0% { background-position: 200% center; }
  100% { background-position: -100% center; }
}

/* ============================================================
   Intro scroll reveal (ScrollReveal port)
   ============================================================ */
.intro-reveal { position: relative; height: 250vh; }
.intro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
}
.intro-text {
  max-width: 1000px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}
.intro-text .ich { opacity: 0.3; }

/* ============================================================
   Sections (shared)
   ============================================================ */
.services, .journey, .featured, .reviews, .contact {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* One vertical rhythm for every section: equal air above/below, and the same
   gap between a section's heading block and whatever follows it. */
.services, .journey, .featured, .reviews, .contact { gap: 56px; padding: 120px 0; }

/* The journey root must span the full width: it is a flex item in a centred
   column, so without this it shrinks to the card fan's width and the sticky's
   overflow:hidden then slices the rotated outer cards (clipped text). */
#journeyRoot { width: 100%; }
.journey { padding-left: 0; padding-right: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  letter-spacing: -0.05em;
  line-height: 100%;
  color: var(--ink);
  text-shadow: 0px 0px 24px rgba(255, 255, 255, 0.53);
  text-align: center;
}
.section-title em { font-style: italic; }

.section-sub {
  font-weight: 400;
  font-size: var(--fs-lead);
  letter-spacing: -0.02em;
  line-height: 150%;
  color: var(--ink-body);
}

/* appear effects (Framer appearEffect: tween 0.16,1,0.3,1 1.6s, once) */
.appear-init { opacity: 0; }
.zoom-head.appear-init { transform: scale(1.45); }
.work-title.appear-init { transform: translateY(60px) scale(1.45); }
/* NOTE: .appear-in must out-specify the two-class rules above, otherwise the
   headings stay stuck at scale(1.45) for good (opacity animates, transform
   never returns to 1). The selector list keeps it at 0-2-0, declared later. */
.appear-in,
.zoom-head.appear-in,
.work-title.appear-in {
  opacity: 1;
  transform: none;
  transition: opacity 1.6s var(--ease-zoom) 0s, transform 1.6s var(--ease-zoom) 0s;
}

/* ============================================================
   Services
   ============================================================ */
.service-card {
  position: relative;
  width: 1160px;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: linear-gradient(170deg, rgb(15, 16, 19) 0%, rgb(9, 9, 11) 100%);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  overflow: hidden;
}

.service-info {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.row-title {
  font-weight: 400;
  font-size: var(--fs-title);
  letter-spacing: -0.02em;
  line-height: 1.6em;
  color: var(--ink);
}

.service-desc {
  width: 100%;
  font-weight: 400;
  font-size: var(--fs-body);
  letter-spacing: 0em;
  line-height: 165%;
  color: var(--ink-body);
}

.niches {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.chip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid rgba(234, 231, 224, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: default;
  transition:
    transform 0.25s cubic-bezier(0.25, 0, 0.4, 1),
    background-color 0.25s cubic-bezier(0.25, 0, 0.4, 1),
    box-shadow 0.25s ease;
}
.chip span {
  font-weight: 400;
  font-size: var(--fs-label);
  letter-spacing: 0em;
  line-height: 1.2;
  color: rgba(234, 231, 224, 0.78);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.chip:hover {
  transform: translateY(-2px) scale(1.1);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28), 0 0 40px rgba(255, 255, 255, 0.12);
}
.chip:hover span {
  color: var(--ink-hover);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 255, 255, 0.6), 0 0 34px rgba(255, 255, 255, 0.35);
}

.services-cta {
  padding: 16px 30px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--btn-ink);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1.2;
}

/* ============================================================
   Ocean waves (GoldenWaves port)
   ============================================================ */
.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(300deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 45%, rgba(0,0,0,0) 82%);
  mask-image: linear-gradient(300deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 45%, rgba(0,0,0,0) 82%);
}
.waves-services { height: 280px; }
.waves-contact { height: 340px; }

.waves-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400%;
  height: 100%;
  display: flex;
  animation: wavesSlide 70s linear infinite;
  animation-play-state: paused;
}
.waves.is-visible .waves-strip { animation-play-state: running; }
.waves-strip img {
  width: 25%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}
.waves-strip img.flip { transform: scaleX(-1); }
@keyframes wavesSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Journey (JourneyScroll port) — desktop/tablet animated mode
   ============================================================ */
.journey-animated { position: relative; }
.journey-track { position: relative; height: 420vh; }
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  /* reserve the fixed nav's height so the heading never slides under it */
  padding-top: 108px;
  overflow: hidden;
}

.journey-head {
  display: flex;
  flex-direction: column;
  align-items: center;
    gap: 16px;
    opacity: 0;
  will-change: opacity, transform;
}
.journey-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
  text-shadow: 0px 0px 24px rgba(255, 255, 255, 0.53);
}
.journey-head h2 em { font-style: italic; }
.journey-head p {
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-body);
  text-align: center;
}

.journey-stage {
  display: flex;
  gap: 0;
  align-items: center;
  perspective: 1600px;
  transform-style: preserve-3d;
  will-change: transform;
}

.journey-card {
  position: relative;
  flex-shrink: 0;
  perspective: 1400px;
}
.journey-tilt { width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.journey-flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }

.journey-front {
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: rgb(14, 20, 32);
  will-change: transform;
}
.journey-front .slice-img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.journey-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: 14px;
}

/* ---------- plan face (pricing cards) — sizes in em, scale with the card ---------- */
.plan-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 1.125em;
  text-align: left;
  font-family: Inter, sans-serif;
  font-size: 16px;
}
.plan-popular {
  position: absolute;
  top: 0.875em;
  right: 0.875em;
  background: var(--gold);
  color: #171204;
  font-size: 0.5625em;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55em 1.2em;
  border-radius: 100px;
}
.plan-badge {
  align-self: flex-start;
  font-size: 0.5625em;
  font-weight: 500;
  padding: 0.55em 1.2em;
  border-radius: 100px;
}
.plan-title { font-size: 1.0625em; font-weight: 600; }
.plan-price-row { display: flex; align-items: baseline; gap: 0.45em; flex-wrap: wrap; }
.plan-price { font-size: 1.5em; font-weight: 700; letter-spacing: -0.02em; }
.plan-price-old { font-size: 0.75em; text-decoration: line-through; }
.plan-save {
  align-self: center;
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35em 0.8em;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-period { font-size: 0.6563em; margin-top: -0.2em; }
.plan-desc { font-size: 0.72em; line-height: 1.45; }
.plan-features { display: flex; flex-direction: column; gap: 0.375em; margin-top: 0.25em; }
.plan-feature { display: flex; gap: 0.45em; align-items: flex-start; }
.plan-check { font-size: 0.6875em; line-height: 1.45; }
.plan-feature-text { font-size: 0.675em; line-height: 1.42; }
.plan-spacer { flex: 1; }
.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25em;
  border-radius: 100px;
  background: transparent;
  font-size: 0.7813em;
  font-weight: 500;
  cursor: pointer;
}

/* phone static mode */
.journey-static {
  display: none;
  padding: 0 16px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.journey-static-head {
  display: flex;
  flex-direction: column;
  align-items: center;
    gap: 16px;
  }
.journey-static-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
  text-shadow: 0px 0px 24px rgba(255, 255, 255, 0.53);
}
.journey-static-head h2 em { font-style: italic; }
.journey-static-head p {
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-body);
  text-align: center;
}
.journey-static-cards { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 640px; margin: 0 auto; }
.journey-static-card { position: relative; width: 100%; border-radius: 16px; overflow: hidden; }
.journey-static-card .plan-face { position: relative; inset: auto; min-height: 430px; font-size: 18px; }

/* ============================================================
   Featured Work (WorkCarousel port)
   ============================================================ */
.work-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-feature);
  letter-spacing: -0.05em;
  line-height: 100%;
  color: var(--ink);
  text-shadow: 0px 0px 30px rgba(255, 255, 255, 0.5);
  text-align: center;
}
.work-title em { font-style: italic; }

.work-carousel, .reviews-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 20px 0;
}
.reviews-widget { gap: 28px; }

.carousel-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.carousel-edge {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(0,0,0) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgb(0,0,0) 100%);
}
.reviews-edge {
  background: linear-gradient(90deg, rgb(0,0,0) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgb(0,0,0) 100%);
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.65s var(--ease-out);
}
.reviews-track { align-items: stretch; }

.work-carousel .carousel-edge { background: none; }

.work-slide {
  padding: 0;
  border: 0;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #151515;
  transition: transform 0.65s var(--ease-out), opacity 0.65s var(--ease-out);
}
.work-slide.is-active { transform: scale(1); opacity: 1; }
.work-slide:not(.is-active) { transform: scale(0.86); opacity: 0.3; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 20, 20, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.carousel-arrow.left { left: 24px; }
.carousel-arrow.right { right: 24px; }

.carousel-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 100%;
}
.carousel-caption-title {
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--ink);
}
.carousel-caption-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.carousel-caption-tags span {
  font-size: var(--fs-micro);
  color: rgba(234, 231, 224, 0.8);
  border: 1px solid rgba(234, 231, 224, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  white-space: nowrap;
}
.carousel-caption-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 231, 224, 0.35);
  padding-bottom: 4px;
  transition: border-color 0.25s ease;
}
.carousel-caption-link:hover { border-color: var(--ink); }
.carousel-caption-link svg { transition: transform 0.25s var(--ease-out); }
.carousel-caption-link:hover svg { transform: translate(2px, -2px); }
.carousel-caption-link[hidden] { display: none; }

/* ============================================================
   Reviews (Reviews port)
   ============================================================ */
.review-card {
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  position: relative;
  background: linear-gradient(135deg, rgb(18, 18, 18) 0%, rgb(10, 10, 10) 100%);
  border: 1px solid rgba(234, 231, 224, 0.08);
  transition: transform 0.65s var(--ease-out), opacity 0.65s var(--ease-out);
}
.review-card.is-active { transform: scale(1); opacity: 1; }
.review-card:not(.is-active) { transform: scale(0.94); opacity: 0.25; }

.review-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  pointer-events: none;
  opacity: 0.75;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(300deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0) 82%);
  mask-image: linear-gradient(300deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0) 82%);
}
.review-waves .waves-strip { animation-play-state: paused; }
.review-waves.is-visible .waves-strip { animation-play-state: running; }

/* practice logo panel (replaces the photo) */
.review-photo {
  flex-shrink: 0;
  margin: 24px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, rgba(232, 182, 100, 0.07) 0%, rgba(232, 182, 100, 0.02) 100%);
  border: 1px solid rgba(232, 182, 100, 0.18);
}
.review-logo {
  width: 82%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(232, 182, 100, 0.35));
}
/* narrow container: the media becomes a wide top band */
.review-photo.is-band {
  width: auto !important;
  min-height: 0 !important;
  height: 120px;
  /* the body's top padding is zeroed in the band layout, so the band keeps its
     own bottom gap — otherwise the gold panel sits flush on the quote */
  margin: 18px 18px 18px 18px;
  align-self: stretch;
}
.review-photo.is-band .review-logo { width: auto; max-width: 78%; max-height: 64%; }

.review-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 36px 32px 0;
  flex: 1;
  position: relative;
}
.review-quote {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
}
.review-who { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.review-name { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.review-role { font-size: var(--fs-micro); color: var(--ink-muted); }

.reviews-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 9px 12px;
}
.reviews-dots button {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(234, 231, 224, 0.3);
}
.reviews-dots button.is-active { background: rgb(234, 231, 224); }

/* ============================================================
   Get In Touch
   ============================================================ */
.contact-box {
  position: relative;
  width: 1160px;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: linear-gradient(170deg, rgb(17, 18, 21) 0%, rgb(10, 10, 12) 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  overflow: hidden;
}

.founders { position: relative; z-index: 1; width: 100%; display: flex; }

.founder-card {
  flex: 1 1 0%;
  height: 470px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: linear-gradient(135deg, rgb(18, 18, 18) 0%, rgb(10, 10, 10) 100%);
  padding: 24px;
  display: flex;
  overflow: hidden;
}

.founder-photo {
  flex-shrink: 0;
  width: 320px;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  background-image: url(assets/ahmad.webp);
  background-image: image-set(url("assets/ahmad.avif") type("image/avif"), url("assets/ahmad.webp") type("image/webp"));
  background-size: cover;
  background-position: 40% top;
}

.founder-about {
  flex: 1 1 0%;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 10px 10px 40px;
}
.about-title {
  width: 100%;
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: 0.01em;
  line-height: 1.35em;
  color: var(--ink);
}
.about-text {
  width: 100%;
  font-weight: 400;
  font-size: var(--fs-body);
  letter-spacing: 0em;
  line-height: 180%;
  color: var(--ink-body);
}

.contact-panel { position: relative; z-index: 1; width: 100%; display: flex; gap: 48px; }

.message-form { flex: 1 1 0%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.message-input {
  width: 460px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(234, 231, 224, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-label);
  letter-spacing: 0em;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}
.message-input::placeholder { color: var(--ink-faint); }
.message-input:focus-visible { border-color: rgba(234, 231, 224, 0.5); }

.send-btn {
  padding: 14px 26px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--btn-ink);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1.2;
}

.contact-lines {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 4px;
}
.contact-row { display: flex; flex-direction: column; align-items: flex-start; }
.email-row { gap: 6px; }
.phone-row { gap: 6px; }
.contact-label {
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ink-muted);
}
.contact-value {
  font-weight: 400;
  font-size: var(--fs-body);
  letter-spacing: 0em;
  line-height: 1.2;
  color: var(--ink);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.footer-bar {
  width: 1160px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
}
.footer-bar span {
  font-weight: 400;
  font-size: var(--fs-micro);
  letter-spacing: 0em;
  line-height: 1.2;
  color: var(--ink-muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--ink-muted); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--ink); }

/* ============================================================
   Tablet (810–1199.98)
   ============================================================ */
@media (max-width: 1199.98px) {
  :root {
    --fs-h2: 44px;
    --fs-feature: 64px;
  }

  .navigation { padding: 24px 28px 16px; }

  .hero-bg img { object-position: 72.8% 68.2%; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 18px; }

  .services, .featured, .reviews, .contact { padding: 80px 32px; }
  .journey { padding: 80px 0; }
  .services, .journey, .featured, .reviews, .contact { gap: 48px; }
  .service-card { padding: 32px; width: 100%; }
  .contact-box { padding: 32px; width: 100%; }
  .founder-card { height: auto; }
  .founder-photo { width: 260px; height: 340px; }

  .footer-bar { padding: 24px 0; width: 100%; }
}

/* ============================================================
   Phone (≤809.98)
   ============================================================ */
@media (max-width: 809.98px) {
  :root {
    --fs-h2: 32px;
    --fs-feature: 40px;
    --fs-title: 24px;
    --fs-h3: 20px;
    --fs-lead: 16px;
    --fs-micro: 12px;
  }

  .navigation { padding: 14px 16px 12px; }
  /* normal state: no bar, no logo — only the floating burger (top right) */
  .nav-pill {
    background: transparent;
    border-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav-pill.is-materialized {
    max-width: 100%;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .whale-logo { display: block; opacity: 0; transition: opacity 0.3s ease; }
  .navigation.is-open .nav-pill {
    background: rgba(10, 10, 12, 0.9);
    border-color: rgba(234, 231, 224, 0.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .navigation.is-open .whale-logo { opacity: 1; }
  .nav-pill { padding: 10px 14px 10px 18px; }
  .nav-logo, .nav-links, .nav-cta { display: none; }
  .nav-pill > .cta-glow { display: none; }
  .nav-burger { display: flex; }
  .nav-dropdown { display: flex; }
  .nav-dropdown a { text-align: center; }

  /* phones: the artwork *is* the hero — one near full-bleed card, with the
     copy block placed inside it, centred just under the kid's feet.
     (portrait crops show the whole artwork height, so the feet always sit
     at ~70% of the card — see --hero-feet) */
  .hero { padding: 0; }
  .hero-bg {
    left: 14px;
    right: 14px;
    top: 14px;
    bottom: 78px; /* clear band at the bottom for the meta row */
    border-radius: 20px;
  }
  /* the taller card crops a narrower slice of the artwork, so the kid is
     pulled back towards the centre of the frame */
  .hero-bg img { object-position: 80% 48%; }
  .hero-copy {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(14px + 0.7 * (100svh - 92px));
    align-items: center;
    gap: 8px;
  }
  .hero-title { font-size: clamp(26px, 8.2vw, 34px); text-align: center; }
  .hero-sub { font-size: 16px; text-align: center; }
  .hero-cta { margin-top: 0; }
  .hero-btn { padding: 13px 24px; }
  .hero-meta { bottom: 0; padding: 18px 20px 22px; }
  .meta-shimmer { display: none; }

  .services, .featured, .reviews, .contact { padding: 56px 16px; }
  .services, .journey, .featured, .reviews, .contact { gap: 32px; }
  .services .section-head { width: 100%; }
  .section-sub { width: 100%; text-align: center; }
  .service-card { padding: 20px; }
  .service-info { align-items: center; }
  .row-title { width: 100%; text-align: center; }
  .service-desc { text-align: center; }
  .niches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 10px;
  }
  .chip { width: 100%; }
  .chip span { width: 100%; text-align: center; }

  .journey { padding: 56px 0; }
  /* section padding is zeroed for the fan; keep the static cards' original inset */
  .journey-static { padding: 0 28px; }

  .reviews .section-head { width: 100%; }

  .contact-box { padding: 20px; }
  .founder-card { flex-direction: column; gap: 14px; height: auto; }
  .founder-photo {
    width: 100%;
    height: 412px;
    background-position: 50% 20%;
  }
  .founder-about {
    align-items: center;
    gap: 12px;
    padding: 10px 20px 24px 20px;
    height: auto;
  }
  .about-title { text-align: center; }
  .about-text { text-align: center; }

  .contact-panel { flex-direction: column; align-items: center; gap: 18px; }
  /* align-items:center on the column above makes children shrink-to-fit — the
     form must be told to fill the card or the textarea collapses to ~230px */
  .message-form { width: 100%; align-items: center; gap: 12px; }
  .message-input { width: 100%; height: 128px; }
  .contact-lines { align-items: center; }
  .contact-row { width: 100%; align-items: center; }
  .contact-value { width: 100%; text-align: center; }

  /* footer stacks with real breathing room instead of three cramped items */
  .footer { padding: 0 20px; }
  .footer-bar {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 0 30px;
    text-align: center;
  }
  .footer-legal { gap: 26px; }
}

/* ============================================================
   Large phones / small tablets in portrait (600–809.98)
   e.g. iPad mini 768x1024: a full-width 412px portrait next to a
   collapsed message box left the section badly unbalanced.
   ============================================================ */
@media (min-width: 600px) and (max-width: 809.98px) {
  .founder-photo {
    width: min(100%, 340px);
    height: 410px;
    align-self: center;
  }
  .about-text { max-width: 60ch; }
  .message-input { height: 148px; }
}

/* ------------------------------------------------------------
   Narrow phones (≤359.98) — trim the hero copy so it still fits
   inside the artwork card on 320px-wide screens
   ------------------------------------------------------------ */
@media (max-width: 359.98px) {
  .hero-copy { gap: 7px; }
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 15px; }
  .hero-btn { padding: 11px 20px; }
}

/* ------------------------------------------------------------
   Short phones (landscape) — the card is shallow here, so the copy
   starts lower in the crop and the type steps down a size
   ------------------------------------------------------------ */
@media (max-width: 809.98px) and (max-height: 480px) and (orientation: landscape) {
  /* shallow and wide: fall back to the desktop composition — copy on the
     left, artwork filling the card, meta over the lower edge */
  .hero { padding-left: 56px; }
  .hero-bg { left: 16px; right: 16px; top: 16px; bottom: 16px; border-radius: 16px; }
  .hero-bg img { object-position: 82% 52%; }
  .hero-copy {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-title { font-size: 26px; text-align: left; }
  .hero-sub { font-size: 15px; text-align: left; }
  .hero-btn { padding: 11px 20px; }
  .hero-meta { padding: 10px 20px 14px; }
}

/* ============================================================
   Reduced motion — one global guard
   (the scroll fan also falls back to the static card stack in JS)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shimmer-glow, .waves-strip, .cta-glow::before { animation: none; }
  .waves-strip { transform: none; }
  .hero-title .ch, .intro-text .ich {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .appear-init, .zoom-head.appear-init, .work-title.appear-init {
    opacity: 1 !important;
    transform: none !important;
  }
  .appear-in { transition: none; }
  .nav-pill, .btn-cream, .chip, .work-slide, .review-card, .nav-dropdown { transition: none; }
}

/* ============================================================
   Legal pages (Impressum / Datenschutz)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 180px 24px 130px;
}
.legal h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.legal .legal-sub {
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 10px;
}
.legal h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  margin: 44px 0 12px;
}
.legal h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--ink);
  margin: 24px 0 6px;
}
.legal p, .legal li {
  font-size: var(--fs-body);
  line-height: 180%;
  color: var(--ink-body);
  margin-top: 10px;
}
.legal ul { margin: 10px 0 0 0; padding-left: 22px; }
.legal li { margin-top: 4px; }
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(234, 231, 224, 0.35);
  transition: text-decoration-color 0.2s ease;
}
.legal a:hover { text-decoration-color: var(--ink); }
.legal .back {
  display: inline-block;
  margin-top: 56px;
  font-size: var(--fs-small);
  color: var(--ink);
}
.legal .todo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px dashed rgba(232, 182, 100, 0.6);
  color: var(--gold);
  font-size: var(--fs-micro);
}
@media (max-width: 809.98px) {
  .legal { padding: 120px 20px 90px; }
  .legal h1 { font-size: 32px; }
}

/* ============================================================
   Language switcher (EN / DE / AR)
   ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(234, 231, 224, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.lang-switch a.is-active { color: var(--btn-ink); background: var(--ink); }

.nav-dropdown .lang-switch { margin-top: 8px; align-self: center; }

.footer-lang { display: inline-flex; gap: 14px; }
.footer-lang a { color: var(--ink-muted); transition: color 0.2s ease; }
.footer-lang a:hover, .footer-lang a.is-active { color: var(--ink); }

/* floating language chip — reachable while scrolling without touching the
   navbar; script.js fades it in once the hero is behind you */
.lang-fab {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 20;
  padding: 4px;
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.78);
  border: 1px solid rgba(234, 231, 224, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.lang-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 809.98px) {
  /* phones: the pill only holds the burger, so the switch lives in the menu */
  .nav-dropdown .lang-switch { align-self: stretch; justify-content: center; }
  .footer-lang { gap: 18px; }
  .lang-fab { bottom: 14px; inset-inline-end: 14px; }
}

/* ============================================================
   RTL — Arabic page mirroring
   ============================================================ */
[dir="rtl"] .nav-pill { padding: 10px 22px 10px 10px; }
[dir="rtl"] .nav-logo { font-style: normal; }

[dir="rtl"] .hero { padding-left: 0; padding-right: 88px; }
[dir="rtl"] .hero-bg img { object-position: left center; }

/* Arabic letters connect: Latin tracking and synthetic italics must not apply */
[dir="rtl"] :is(h1, h2, h3, p, em, span, a, button, textarea, div) { letter-spacing: normal; }
/* One typeface per heading: the accent word stays in the heading's own family
   (Kufam) and is emphasised by weight instead of a second face. */
[dir="rtl"] em { font-style: normal; font-weight: 600; }
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .work-title,
[dir="rtl"] .journey-head h2,
[dir="rtl"] .journey-static-head h2 { line-height: 1.35; }

[dir="rtl"] .plan-face {
  text-align: right;
  font-family: 'IBM Plex Sans Arabic', Inter, sans-serif;
}
[dir="rtl"] .plan-popular { right: auto; left: 0.875em; }
/* currency strings stay in their authored order inside Arabic sentences */
[dir="rtl"] .plan-price,
[dir="rtl"] .plan-price-old,
[dir="rtl"] .plan-period { direction: ltr; unicode-bidi: isolate; }

/* Boxes whose padding is deliberately asymmetric must mirror with the layout,
   otherwise the gap between a photo and its text collapses (or doubles). */
[dir="rtl"] .founder-about { padding: 30px 40px 10px 10px; }
[dir="rtl"] .review-body { padding: 36px 0 32px 36px; }

/* Arabic sits taller on the line: Naskh ascenders/descenders need the room
   that 110% leading gives Latin, and the heading face needs a little more. */
[dir="rtl"] .intro-text { line-height: 1.5; }
[dir="rtl"] .about-title { line-height: 1.55; }

/* Physical order is kept LTR for the fan and the work carousel: the script's
   transforms and the sliced artwork assume left-to-right card order, and
   mirroring it put the dimmed frames in the middle of the viewport. The copy
   inside each card stays RTL. */
[dir="rtl"] .journey-stage { direction: ltr; }
[dir="rtl"] .journey-card { direction: rtl; }
[dir="rtl"] .work-carousel .carousel-stage { direction: ltr; }

@media (max-width: 1199.98px) {
  [dir="rtl"] .hero-bg img { object-position: 27.2% 68.2%; }
}
@media (max-width: 809.98px) {
  [dir="rtl"] .nav-pill { padding: 10px 18px 10px 14px; }
  [dir="rtl"] .hero-bg img { object-position: 20% 48%; }
}
@media (max-width: 809.98px) and (max-height: 480px) and (orientation: landscape) {
  [dir="rtl"] .hero { padding-left: 0; padding-right: 56px; }
  [dir="rtl"] .hero-title, [dir="rtl"] .hero-sub { text-align: right; }
}

/* Both client reviews remain fully visible at every size. */
.reviews-track { flex-direction: column; align-items: center; }
.reviews-edge { display: none; }
.review-card { cursor: default; }
.review-card-beyond .review-photo { background: linear-gradient(165deg, rgba(70, 137, 201, 0.07), rgba(70, 137, 201, 0.02)); border-color: rgba(121, 179, 230, 0.18); }
.review-card-beyond .review-logo { filter: none; }
