/* ==========================================================================
   Gardhawr Law Firm — design system
   Palette sampled from the firm's seal: navy #001362, gold #B08838.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #00081f;
  --navy-800: #000d3a;
  --navy-700: #001362;   /* the seal blue */
  --navy-600: #071f78;
  --navy-500: #1c359a;
  --navy-400: #3d55bd;

  --gold-700: #8a6822;
  --gold-600: #a37c2c;
  --gold-500: #b08838;   /* the seal gold */
  --gold-400: #c9a457;
  --gold-300: #e0c384;
  --gold-200: #f2e2ba;

  --wood-600: #4a2f26;
  --wood-500: #5c3a2e;

  /* Neutrals */
  --ink:      #0d1220;
  --ink-soft: #3d465c;
  --ink-mute: #6b7590;
  --line:     #e2e6ef;
  --paper:    #ffffff;
  --paper-2:  #f6f7fb;
  --paper-3:  #eef1f8;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 2rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.85rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.5vw, 4rem);
  --step-5:  clamp(2.8rem, 1.9rem + 4.4vw, 6.2rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --maxw: 1280px;
  --maxw-narrow: 780px;

  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(0, 19, 98, .06), 0 4px 14px rgba(0, 19, 98, .05);
  --shadow-md: 0 12px 40px -12px rgba(0, 19, 98, .22);
  --shadow-lg: 0 40px 90px -30px rgba(0, 19, 98, .38);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);

  --header-h: 84px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 .6em;
  font-variation-settings: "opsz" 100, "SOFT" 0, "WONK" 0;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-color: color-mix(in srgb, var(--navy-600) 35%, transparent); text-underline-offset: .22em; }
a:hover { color: var(--gold-600); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }

::selection { background: var(--gold-300); color: var(--navy-800); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--gold-500); color: var(--navy-900);
  padding: .8rem 1.4rem; border-radius: var(--radius); font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - (var(--gutter) * 2), var(--maxw-narrow)); }

.section { padding-block: var(--section-y); position: relative; }
.section--dark {
  background: var(--navy-800);
  color: color-mix(in srgb, var(--paper) 74%, transparent);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--tint { background: var(--paper-2); }

/* Section heading block */
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 1.1rem;
}
.section--dark .eyebrow { color: var(--gold-400); }
.eyebrow::before {
  content: ""; width: 2.2rem; height: 1px;
  background: currentColor; opacity: .6;
  transform-origin: left; transform: scaleX(0);
  transition: transform .8s var(--ease) .1s;
}
.sec-head--center .eyebrow::before { display: none; }
.is-inview .eyebrow::before, .eyebrow.is-inview::before { transform: scaleX(1); }

.sec-lede { font-size: var(--step-1); color: var(--ink-mute); line-height: 1.6; }
.section--dark .sec-lede { color: color-mix(in srgb, var(--paper) 66%, transparent); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--navy-700);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--gold-500);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover, .btn:focus-visible {
  color: var(--navy-900);
  border-color: var(--gold-500);
  box-shadow: 0 14px 30px -14px rgba(176, 136, 56, .8);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); }
.btn--gold::after { background: #fff; }
.btn--gold:hover { border-color: #fff; box-shadow: 0 14px 30px -14px rgba(255,255,255,.5); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: color-mix(in srgb, currentColor 32%, transparent);
}
.btn--ghost::after { background: currentColor; }
.btn--ghost:hover { color: var(--navy-900); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { color: var(--navy-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Text link with animated rule */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--navy-700);
}
.section--dark .link-arrow { color: var(--gold-400); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--navy-800);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__seal { width: clamp(90px, 16vw, 132px); animation: seal-in 1.1s var(--ease) both; }
.preloader__seal img { border-radius: 50%; }
.preloader__bar {
  width: min(220px, 42vw); height: 2px; margin-top: 1.9rem;
  background: rgba(255,255,255,.14); overflow: hidden; border-radius: 2px;
}
.preloader__bar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform-origin: left; transform: scaleX(0);
  animation: bar 1.5s var(--ease-io) forwards;
}
.preloader__word {
  margin-top: 1.1rem;
  font-family: var(--font-body); font-size: .68rem;
  letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  animation: fade-up .8s var(--ease) .35s both;
}
@keyframes seal-in { from { opacity: 0; transform: scale(.72) rotate(-22deg); } to { opacity: 1; transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ==========================================================================
   Scroll progress
   ========================================================================== */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001;
  background: transparent; pointer-events: none;
}
.progress__fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transform-origin: left; transform: scaleX(0);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease), transform .55s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .45s var(--ease);
}
.site-header.is-stuck { --header-h: 68px; }
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: auto; }
.brand__seal {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  transition: width .45s var(--ease), height .45s var(--ease), transform .8s var(--ease);
}
.is-stuck .brand__seal { width: 38px; height: 38px; }
.brand:hover .brand__seal { transform: rotate(360deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; letter-spacing: .01em;
  color: var(--paper);
  transition: color .45s var(--ease), font-size .45s var(--ease);
}
.brand__tag {
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-400);
  transition: color .45s var(--ease);
}
.is-stuck .brand__name { color: var(--navy-800); font-size: .95rem; }
.is-stuck .brand__tag { color: var(--gold-600); }

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; padding: .35rem 0;
  color: rgba(255,255,255,.86);
  transition: color .3s var(--ease);
}
.is-stuck .nav a { color: var(--ink-soft); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
/* Gold + underline means one of two things: you are hovering it, or it is the
   section/page you are actually on. .is-current is set by the scrollspy. */
.nav a:hover,
.nav a.is-current,
.nav .current-menu-item > a { color: var(--gold-400); }

.is-stuck .nav a:hover,
.is-stuck .nav a.is-current,
.is-stuck .nav .current-menu-item > a { color: var(--gold-600); }

.nav a:hover::after,
.nav a.is-current::after,
.nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: none; }
@media (min-width: 1080px) { .header-cta { display: inline-flex; padding: .78rem 1.35rem; } }

/* Burger */
.burger {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  background: none; border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius); cursor: pointer; padding: 0;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.is-stuck .burger { border-color: var(--line); }
.burger:hover { border-color: var(--gold-500); }
.burger__box { display: block; width: 20px; height: 12px; position: relative; }
.burger__box i {
  position: absolute; left: 0; height: 1.5px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease);
}
.is-stuck .burger__box i { background: var(--navy-800); }
.burger__box i:nth-child(1) { top: 0; }
.burger__box i:nth-child(2) { top: 5px; }
.burger__box i:nth-child(3) { top: 10px; width: 70%; }
.burger:hover .burger__box i:nth-child(3) { width: 100%; }
.is-menu-open .burger__box i { background: #fff; }
.is-menu-open .burger__box i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-menu-open .burger__box i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.is-menu-open .burger__box i:nth-child(3) { width: 100%; transform: translateY(-5px) rotate(-45deg); }

@media (min-width: 900px) { .burger { display: none; } }
@media (max-width: 899px) { .nav--desktop { display: none; } }

/* ==========================================================================
   Overlay menu
   ========================================================================== */

.overlay-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--navy-800);
  display: grid; place-items: center;
  clip-path: circle(0% at calc(100% - 46px) 42px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.is-menu-open .overlay-menu { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; }
.overlay-menu__inner { width: min(100% - 3rem, 700px); padding-top: var(--header-h); }
.overlay-menu ul { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.overlay-menu li { overflow: hidden; }
.overlay-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 600; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
  padding: .18em 0;
  transform: translateY(115%);
  transition: transform .7s var(--ease), color .3s var(--ease);
}
.is-menu-open .overlay-menu a { transform: translateY(0); }
.overlay-menu li:nth-child(1) a { transition-delay: .12s; }
.overlay-menu li:nth-child(2) a { transition-delay: .18s; }
.overlay-menu li:nth-child(3) a { transition-delay: .24s; }
.overlay-menu li:nth-child(4) a { transition-delay: .3s; }
.overlay-menu li:nth-child(5) a { transition-delay: .36s; }
.overlay-menu li:nth-child(6) a { transition-delay: .42s; }
.overlay-menu li:nth-child(7) a { transition-delay: .48s; }
.overlay-menu a:hover,
.overlay-menu a.is-current,
.overlay-menu .current-menu-item > a { color: var(--gold-400); }
.overlay-menu__meta {
  display: grid; gap: .5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6); font-size: var(--step--1);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease) .5s, transform .6s var(--ease) .5s;
}
.is-menu-open .overlay-menu__meta { opacity: 1; transform: none; }
.overlay-menu__meta a { font-size: var(--step--1); font-family: var(--font-body); font-weight: 500; color: var(--gold-300); padding: 0; transform: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  background: var(--navy-800);
  color: rgba(255,255,255,.78);
  overflow: hidden;
  isolation: isolate;
}

/* animated aurora mesh */
.hero__mesh { position: absolute; inset: -20%; z-index: -3; filter: blur(70px); opacity: .85; }
.hero__mesh span {
  position: absolute; border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero__mesh span:nth-child(1) {
  width: 52vw; height: 52vw; left: -6%; top: 4%;
  background: radial-gradient(circle at 30% 30%, rgba(28,53,154,.95), transparent 68%);
  animation: drift-a 22s var(--ease-io) infinite alternate;
}
.hero__mesh span:nth-child(2) {
  width: 44vw; height: 44vw; right: -4%; top: 16%;
  background: radial-gradient(circle at 60% 40%, rgba(176,136,56,.55), transparent 66%);
  animation: drift-b 26s var(--ease-io) infinite alternate;
}
.hero__mesh span:nth-child(3) {
  width: 40vw; height: 40vw; left: 28%; bottom: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(61,85,189,.75), transparent 70%);
  animation: drift-c 30s var(--ease-io) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(14%, 10%, 0) scale(1.18); } }
@keyframes drift-b { to { transform: translate3d(-12%, 16%, 0) scale(.86); } }
@keyframes drift-c { to { transform: translate3d(10%, -14%, 0) scale(1.22); } }

/* fine grid + vignette */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,8,31,.55) 0%, transparent 34%, rgba(0,8,31,.72) 100%);
  pointer-events: none;
}

/* floating gold motes */
.hero__motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__motes i {
  position: absolute; display: block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-300);
  opacity: 0;
  animation: mote linear infinite;
}
@keyframes mote {
  0%   { opacity: 0; transform: translateY(0) scale(.6); }
  12%  { opacity: .75; }
  85%  { opacity: .35; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.3); }
}

.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .5rem 1.1rem .5rem .6rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 1.8rem;
}
.hero__eyebrow b {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
}
.hero__eyebrow b .icon { width: 13px; height: 13px; stroke-width: 2; }

.hero h1 { color: #fff; margin-bottom: 1.6rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-300) 0%, var(--gold-500) 45%, var(--gold-200) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic;
}

.hero__text { font-size: var(--step-1); max-width: 54ch; color: rgba(255,255,255,.72); margin-bottom: 2.4rem; }

.hero__cta { margin-bottom: 3rem; }

.hero__quick {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__quick a, .hero__quick span {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); color: rgba(255,255,255,.72); text-decoration: none;
  transition: color .3s var(--ease);
}
.hero__quick a:hover { color: var(--gold-300); }
.hero__quick .icon { width: 17px; height: 17px; color: var(--gold-400); flex: none; }

/* Hero visual — rotating seal & scales */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 340px; }
@media (max-width: 999px) { .hero__visual { min-height: 280px; } }

.seal-stack { position: relative; width: min(100%, 420px); aspect-ratio: 1; display: grid; place-items: center; }

.seal-stack__ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.seal-stack__ring:nth-of-type(1) { animation: spin 34s linear infinite; border-style: dashed; border-color: rgba(176,136,56,.4); }
.seal-stack__ring:nth-of-type(2) { inset: 9%; animation: spin 26s linear infinite reverse; border-color: rgba(255,255,255,.1); }
.seal-stack__ring:nth-of-type(3) { inset: 18%; border-color: rgba(176,136,56,.22); }
@keyframes spin { to { transform: rotate(360deg); } }

.seal-stack__glow {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,136,56,.34), transparent 68%);
  filter: blur(24px);
  animation: pulse 5.5s var(--ease-io) infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.14); opacity: 1; } }

.seal-stack__seal {
  position: relative; z-index: 2;
  width: 62%; border-radius: 50%;
  box-shadow: 0 30px 70px -22px rgba(0,0,0,.7);
  animation: float 7s var(--ease-io) infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* orbiting badges */
.seal-stack__orbit { position: absolute; inset: 0; animation: spin 30s linear infinite; }
.seal-stack__orbit i {
  position: absolute; top: -1px; left: 50%;
  width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--gold-400);
  box-shadow: 0 0 14px 2px rgba(176,136,56,.85);
}
.seal-stack__orbit:nth-of-type(5) { animation-duration: 20s; animation-direction: reverse; }
.seal-stack__orbit:nth-of-type(5) i { background: #fff; box-shadow: 0 0 12px 2px rgba(255,255,255,.7); width: 6px; height: 6px; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .7rem;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.45); text-decoration: none;
  z-index: 3;
}
.scroll-cue__line { width: 1px; height: 46px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold-400);
  animation: cue 2.1s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 1.15rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(0,0,0,.08);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.marquee__group span {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--font-display); font-size: clamp(1rem, 1.9vw, 1.45rem);
  font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
.marquee__group span .icon { width: 15px; height: 15px; opacity: .55; stroke-width: 2; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   About
   ========================================================================== */

.about__grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) { .about__grid { grid-template-columns: .95fr 1.05fr; } }

.collage { position: relative; }
.collage__main {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
}
.collage__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.collage:hover .collage__main img { transform: scale(1.05); }

.collage__sub {
  position: absolute; right: -6%; bottom: -12%;
  width: 46%; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.section--tint .collage__sub { border-color: var(--paper-2); }
.collage__sub img { width: 100%; height: 100%; object-fit: cover; }

.collage__badge {
  position: absolute; left: -5%; top: -6%;
  display: grid; place-items: center; gap: .1rem;
  width: clamp(96px, 15vw, 130px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-700); color: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 2;
}
.collage__badge b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--gold-400); }
.collage__badge span { font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; padding-inline: .6rem; line-height: 1.4; }

.about__body p + p { margin-top: 1.2em; }
.about__quote {
  margin: 2.2rem 0;
  padding: 1.4rem 0 1.4rem 1.8rem;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
}

/* Stats */
.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.section--dark .stats { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }

.stat { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem) 1.2rem; text-align: center; }
.section--tint .stat { background: var(--paper-2); }
.section--dark .stat { background: var(--navy-800); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1;
  color: var(--navy-700);
  letter-spacing: -.03em;
}
.section--dark .stat__num { color: var(--gold-400); }
.stat__num i { font-style: normal; color: var(--gold-500); }
.stat__label {
  display: block; margin-top: .7rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services__grid {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

.service {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  padding: clamp(1.9rem, 3vw, 2.6rem);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  transform: translateY(100%);
  transition: transform .6s var(--ease);
}
.service:hover::before { transform: translateY(0); }
.service:hover, .service:focus-within { color: rgba(255,255,255,.75); }
.service:hover .service__title, .service:focus-within .service__title { color: #fff; }
.service:hover .service__lede { color: var(--gold-300); }
.service:hover .service__icon { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); transform: rotate(-8deg) scale(1.06); }
.service:hover .service__points li { color: rgba(255,255,255,.7); }
.service:hover .service__points .icon { color: var(--gold-400); }
.service:hover .service__no { color: rgba(255,255,255,.16); }

.service__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy-700);
  background: var(--paper-2);
  transition: all .5s var(--ease);
}
.service__icon .icon { width: 25px; height: 25px; }

.service__no {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  line-height: 1; color: var(--paper-3);
  transition: color .5s var(--ease);
  pointer-events: none;
}
.service__lede {
  display: block; margin-bottom: .5rem;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); transition: color .5s var(--ease);
}
.service__title { font-size: var(--step-1); margin-bottom: .7rem; transition: color .5s var(--ease); }
.service__text { font-size: .95rem; line-height: 1.62; margin-bottom: 1.3rem; }
.service__points {
  list-style: none; margin: auto 0 0; padding: 1.2rem 0 0;
  display: grid; gap: .45rem;
  border-top: 1px solid var(--line);
  transition: border-color .5s var(--ease);
}
.service:hover .service__points { border-color: rgba(255,255,255,.14); }
.service__points li {
  display: flex; align-items: center; gap: .55rem;
  font-size: .82rem; color: var(--ink-mute);
  transition: color .5s var(--ease);
}
.service__points .icon { width: 14px; height: 14px; flex: none; color: var(--gold-500); stroke-width: 2.5; transition: color .5s var(--ease); }

/* ==========================================================================
   Process timeline
   ========================================================================== */

.process { position: relative; }
.process__list { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.process__list::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px;
  width: 1px; background: rgba(255,255,255,.14);
}
.process__list::after {
  content: ""; position: absolute; left: 27px; top: 12px;
  width: 1px; height: var(--line-h, 0%);
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  transition: height .2s linear;
}
@media (min-width: 860px) {
  .process__list { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .process__list::before { left: 0; right: 0; top: 27px; bottom: auto; width: auto; height: 1px; }
  .process__list::after { left: 0; top: 27px; width: var(--line-w, 0%); height: 1px; background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); transition: width .2s linear; }
}

.step { position: relative; padding-left: 4.6rem; }
@media (min-width: 860px) { .step { padding-left: 0; padding-top: 4.4rem; padding-right: 1.5rem; } }

.step__dot {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: rgba(255,255,255,.55);
  transition: all .6s var(--ease);
  z-index: 2;
}
.step.is-active .step__dot {
  background: var(--gold-500); border-color: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 0 0 6px rgba(176,136,56,.18);
  transform: scale(1.06);
}
.step__title { font-size: var(--step-1); color: #fff; margin-bottom: .5rem; }
.step__text { font-size: .93rem; line-height: 1.62; }

/* ==========================================================================
   Values band
   ========================================================================== */

.values {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.value {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.value .icon { width: 30px; height: 30px; color: var(--gold-600); margin-bottom: 1.1rem; }
.value h4 { margin-bottom: .5rem; }
.value p { font-size: .93rem; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
}
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; } }

.gal {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  cursor: pointer; border: 0; padding: 0;
  display: block; width: 100%; height: 100%;
}
.gal--wide    { grid-column: span 2; }
.gal--tall    { grid-row: span 2; }
.gal--feature { grid-column: span 2; grid-row: span 2; }

.gal img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
  filter: saturate(.88);
}
.gal:hover img { transform: scale(1.08); filter: saturate(1.05); }
.gal::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,8,31,.86));
  opacity: .55; transition: opacity .5s var(--ease);
}
.gal:hover::after { opacity: .95; }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.2rem 1.3rem;
  color: #fff; font-size: .82rem; text-align: left;
  transform: translateY(12px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.gal:hover figcaption { transform: none; opacity: 1; }
.gal__zoom {
  position: absolute; right: 1rem; top: 1rem; z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  color: #fff;
  transform: scale(.6); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), background-color .3s var(--ease);
}
.gal:hover .gal__zoom { transform: none; opacity: 1; }
.gal:hover .gal__zoom:hover { background: var(--gold-500); color: var(--navy-900); }
.gal__zoom .icon { width: 16px; height: 16px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1100;
  display: grid; place-items: center;
  background: rgba(0,8,31,.95);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(100%, 1100px); max-height: 78vh;
  width: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(.94); transition: transform .5s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox__cap { margin-top: 1.2rem; color: rgba(255,255,255,.7); font-size: .88rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: #fff; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold-500); color: var(--navy-900); transform: scale(1.08); }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav--prev { left: clamp(.75rem, 3vw, 2rem); top: 50%; margin-top: -24px; }
.lightbox__nav--next { right: clamp(.75rem, 3vw, 2rem); top: 50%; margin-top: -24px; }
.lightbox__nav .icon, .lightbox__close .icon { width: 20px; height: 20px; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--navy-700);
  color: rgba(255,255,255,.78);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(circle at 18% 30%, rgba(176,136,56,.42), transparent 55%),
    radial-gradient(circle at 82% 70%, rgba(61,85,189,.55), transparent 58%);
  filter: blur(60px);
  animation: drift-c 24s var(--ease-io) infinite alternate;
}
.cta-band__inner {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr .7fr; } }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band__actions { display: grid; gap: 1rem; justify-items: start; }
@media (min-width: 900px) { .cta-band__actions { justify-items: end; } }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) { .contact__grid { grid-template-columns: .82fr 1.18fr; } }

.contact-list { display: grid; gap: 1.4rem; list-style: none; margin: 0 0 2.2rem; padding: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { width: 20px; height: 20px; color: var(--gold-600); flex: none; margin-top: .28rem; }
.contact-list b { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: .18rem; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; transition: color .3s var(--ease); }
.contact-list a:hover { color: var(--gold-600); }

.map-embed {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
  filter: grayscale(.35) contrast(1.02);
  transition: filter .6s var(--ease);
}
.map-embed:hover { filter: none; }
.map-embed iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }

/* Sits behind the iframe: visible only if the tiles never arrive. */
.map-embed__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-content: center; gap: .4rem;
  text-align: center; padding: 1.5rem;
  color: var(--ink-mute); font-size: .85rem;
}
.map-embed__fallback .icon { width: 26px; height: 26px; color: var(--gold-600); margin: 0 auto .4rem; }
.map-embed__fallback b { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; }

.map-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .9rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-700); text-decoration: none;
}
.map-link:hover { color: var(--gold-600); }
.map-link .icon { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.map-link:hover .icon { transform: translateX(4px); }

/* Form */
.form {
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }

.field { position: relative; }
.field label {
  display: block; margin-bottom: .5rem;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .95rem 1rem;
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7590' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(176,136,56,.14);
}
.field--hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form__note { font-size: .78rem; color: var(--ink-mute); margin-top: 1.2rem; }

.notice {
  padding: 1rem 1.2rem; border-radius: var(--radius);
  font-size: .9rem; margin-bottom: 1.8rem;
  border-left: 3px solid;
}
.notice--ok { background: #eef7f0; border-color: #3a8f5a; color: #235c39; }
.notice--err { background: #fdf0ee; border-color: #c0503c; color: #8a3527; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.6);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  font-size: .92rem;
}
.footer__grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr .8fr .8fr 1.1fr; } }

.footer__brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; text-decoration: none; }
.footer__brand img { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.footer__brand .footer__brand-name {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; color: #fff; line-height: 1.2; letter-spacing: -.01em;
  text-transform: none;
}
.footer__brand .footer__brand-tag {
  display: block; margin-top: .25rem;
  font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400);
}

.footer h5 {
  font-family: var(--font-body); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin: 0 0 1.2rem; font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.footer a:hover { color: var(--gold-400); }
.footer li > a:hover { padding-left: .35rem; }

.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  transition: all .35s var(--ease);
}
.socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.socials .icon { width: 17px; height: 17px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}

/* Floating action dock — bottom right, stacked so nothing overlaps content */
.dock {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: grid;
  justify-items: end;
  gap: .7rem;
}

.dock__btn {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 0; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .4s var(--ease);
}
.dock__btn .icon { width: 20px; height: 20px; }
.dock__btn:hover { transform: translateY(-4px); }

/* WhatsApp */
.dock__wa {
  background: #1f9d55; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(31,157,85,.75);
  position: relative;
}
.dock__wa:hover { color: #fff; box-shadow: 0 18px 40px -12px rgba(31,157,85,.95); }
.dock__wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1f9d55;
  animation: ping 2.6s var(--ease-io) infinite;
  pointer-events: none;
}
@keyframes ping {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Tooltip label on hover, desktop only */
.dock__btn b {
  position: absolute; right: calc(100% + .7rem); top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  padding: .45rem .8rem; border-radius: var(--radius);
  background: var(--navy-800); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.dock__btn:hover b, .dock__btn:focus-visible b { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (hover: none) { .dock__btn b { display: none; } }

/* Back to top */
.dock__top {
  background: var(--navy-700); color: #fff;
  position: relative;
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
}
.dock__top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.dock__top:hover { background: var(--gold-500); color: var(--navy-900); }
.dock__top > .icon { transform: rotate(-90deg); }

/* ==========================================================================
   Interior pages
   ========================================================================== */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--navy-800);
  color: rgba(255,255,255,.7);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(circle at 25% 40%, rgba(28,53,154,.9), transparent 60%),
              radial-gradient(circle at 78% 60%, rgba(176,136,56,.35), transparent 58%);
  filter: blur(70px);
  animation: drift-a 25s var(--ease-io) infinite alternate;
}
.page-hero h1 { color: #fff; font-size: var(--step-4); margin-bottom: .5rem; }
.breadcrumbs { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.2rem; }
.breadcrumbs a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-300); }

.entry-content { font-size: var(--step-0); }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 { margin-top: 2em; font-size: var(--step-3); }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content blockquote {
  margin: 2em 0; padding-left: 1.6rem;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--ink);
}

.posts { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--paper);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.post-card h3 { font-size: var(--step-1); margin: 0; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--navy-600); }

.pagination { margin-top: 3rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: .6rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink-soft); font-size: .9rem;
  transition: all .3s var(--ease);
}
.pagination .page-numbers:hover, .pagination .current { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(.93); }
[data-reveal="clip"]  { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); transition-delay: var(--delay, 0ms); }

[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal="clip"].is-inview { clip-path: inset(0 0 0 0); }

/* Split-text headline */
.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.split-line.is-inview > span, .is-loaded .hero .split-line > span { transform: translateY(0); }

/* Parallax targets */
[data-parallax] { will-change: transform; }

/* Magnetic buttons */
[data-magnet] { transition: transform .4s var(--ease); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-line > span { transform: none !important; }
  .hero__motes, .seal-stack__orbit { display: none; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.comments__title {
  font-size: var(--step-2);
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.comments__title::after {
  content: "";
  display: block;
  width: 2.4rem; height: 2px;
  margin-top: .9rem;
  background: var(--gold-500);
}

.comments__closed {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: 1.1rem 1.3rem;
  background: var(--paper-2);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--ink-mute);
}
.comments__closed .icon { width: 17px; height: 17px; flex: none; margin-top: .22rem; }

/* ------------------------------------------------------------- The thread */

.comment-list {
  list-style: none;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.comment-list .comment-item { list-style: none; }

.comment-body {
  position: relative;
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.comment-body:hover { border-color: var(--paper-3); box-shadow: var(--shadow-sm); }

/* The comment being replied to, highlighted by comment-reply.js */
.comment-item > .comment-body:target,
.comment-item.bypostauthor > .comment-body { border-color: var(--gold-300); }

/* Header: initials avatar, name, timestamp */
.comment-head {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--accent, var(--navy-700));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: .92rem;
  letter-spacing: .01em;
  line-height: 1;
  user-select: none;
}

.comment-meta { display: grid; gap: .1rem; min-width: 0; }

.comment-author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}

.comment-badge {
  display: inline-block;
  padding: .16rem .5rem;
  border-radius: 100px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.comment-date {
  font-size: .75rem;
  color: var(--ink-mute);
  letter-spacing: .02em;
}

.comment-pending {
  margin: 0 0 .9rem;
  padding: .6rem .9rem;
  background: #fdf6e6;
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  font-size: .82rem;
  color: var(--gold-700);
}

.comment-content { font-size: .95rem; line-height: 1.68; }
.comment-content > *:last-child { margin-bottom: 0; }
.comment-content p { margin-bottom: .8em; }

/* Reply / edit links */
.comment-actions {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 1rem;
}
.comment-actions a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-700);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.comment-actions a::before {
  content: "";
  width: 1.1rem; height: 1px;
  background: currentColor;
  opacity: .45;
  transition: width .35s var(--ease), opacity .35s var(--ease);
}
.comment-actions a:hover { color: var(--gold-600); }
.comment-actions a:hover::before { width: 1.7rem; opacity: 1; }

/* ------------------------------------------------------------- Nesting */

.comment-list .children {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0 0 0 clamp(1rem, 3.5vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
  position: relative;
}
/* The thread line down the left of a reply group */
.comment-list .children::before {
  content: "";
  position: absolute;
  left: clamp(.4rem, 1.5vw, 1.1rem);
  top: -.4rem; bottom: 1rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-300), var(--line));
}

/* Replies read as slightly quieter than top-level comments */
.comment-list .children .comment-body { background: var(--paper-2); }
.comment-list .children .comment-avatar { width: 36px; height: 36px; font-size: .8rem; }

/* ------------------------------------------------------- The reply form */

.comment-respond { scroll-margin-top: calc(var(--header-h) + 20px); }

.comment-reply-title {
  font-size: var(--step-2);
  margin-bottom: .4rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem;
}
.comment-reply-title small { font-size: 0; } /* the wrapper only carries the cancel link */

.comment-cancel a {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.comment-cancel a:hover { color: var(--navy-800); border-color: var(--ink-mute); }

.comment-notes {
  font-size: .85rem;
  color: var(--ink-mute);
  margin-bottom: 1.8rem;
}

/* The form itself reuses .form, laid out in two columns like the consultation form */
.comment-form {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .comment-form { grid-template-columns: 1fr 1fr; } }

.comment-form > .comment-notes,
.comment-form > .field--full,
.comment-form > .form-submit,
.comment-form > .comment-form-cookies-consent,
.comment-form > .form__note { grid-column: 1 / -1; }

.comment-form .field { margin: 0; }

.field__hint {
  display: block;
  margin-top: .45rem;
  font-size: .72rem;
  color: var(--ink-mute);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.req { color: var(--gold-600); font-weight: 700; }

/* Cookie consent checkbox */
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 0;
  font-size: .85rem;
  color: var(--ink-mute);
}
.comment-form-cookies-consent input[type="checkbox"] {
  appearance: none;
  width: 19px; height: 19px; flex: none;
  margin-top: .12rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-2);
  cursor: pointer;
  display: grid; place-content: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.comment-form-cookies-consent input[type="checkbox"]::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
  transform: rotate(-45deg) scale(0);
  transition: transform .25s var(--ease);
}
.comment-form-cookies-consent input[type="checkbox"]:checked {
  background: var(--gold-500);
  border-color: var(--gold-500);
}
.comment-form-cookies-consent input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.comment-form-cookies-consent label {
  margin: 0;
  font-size: .85rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-mute);
  cursor: pointer;
}

.form-submit { margin: 0; }

/* Logged-in notice */
.logged-in-as {
  grid-column: 1 / -1;
  font-size: .85rem;
  color: var(--ink-mute);
  margin-bottom: 0;
}

/* Comment pagination sits above the form */
.comments .pagination { margin-top: 0; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* The commenter's name inside "Reply to <name>" */
.comment-reply-title a {
  color: var(--gold-600);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--gold-300);
  transition: box-shadow .3s var(--ease), color .3s var(--ease);
}
.comment-reply-title a:hover {
  color: var(--navy-700);
  box-shadow: inset 0 -2px 0 var(--gold-600);
}

/* Article cards with no featured image get a branded panel instead of a gap */
.post-card__media { display: block; }

.post-card__fallback {
  position: relative;
  /* flex, not grid: two children in a grid get a row each and drift apart */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Same fine grid as the hero, so it reads as part of the system */
.post-card__fallback::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 78% 78% at 50% 45%, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 45%, #000 20%, transparent 76%);
}
.post-card__fallback::after {
  content: "";
  position: absolute; z-index: 0;
  top: 50%; left: 50%;
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(176,136,56,.34), transparent 68%);
  filter: blur(26px);
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.post-card:hover .post-card__fallback::after { transform: translate(-50%, -50%) scale(1.22); opacity: .85; }
.post-card__fallback .icon {
  position: relative; z-index: 1;
  width: 46px; height: 46px;
  color: var(--gold-400);
  stroke-width: 1.2;
  transition: transform .8s var(--ease);
}
.post-card:hover .post-card__fallback .icon { transform: translateY(-5px) scale(1.06); }

.post-card__fallback-mark {
  position: relative; z-index: 1;
  margin-top: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: rgba(255,255,255,.42);
}

/* ==========================================================================
   Videos
   ========================================================================== */

.video-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.video-card { display: flex; flex-direction: column; }

.video-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
}
.video-card__trigger:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; }

.video-card__frame {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.video-card__frame img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
  filter: saturate(.92);
}
.video-card__trigger:hover .video-card__frame img { transform: scale(1.06); filter: saturate(1.05); }

/* Scrim so the play button stays legible over any poster */
.video-card__frame::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,8,31,.28) 0%, rgba(0,8,31,.12) 45%, rgba(0,8,31,.72) 100%);
  opacity: .9;
  transition: opacity .5s var(--ease);
}
.video-card__trigger:hover .video-card__frame::after { opacity: .75; }

/* Shown when there is no poster at all (Facebook / Vimeo without an upload) */
.video-card__fallback {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .6rem;
}
.video-card__frame img ~ .video-card__fallback { display: none; }
.video-card__fallback .icon { width: 42px; height: 42px; color: var(--gold-400); stroke-width: 1.2; }
.video-card__fallback > span {
  font-family: var(--font-display);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .3em; text-indent: .3em;
  color: rgba(255,255,255,.4);
}

/* Play button */
.video-card__play {
  position: absolute; z-index: 3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: clamp(58px, 9vw, 74px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.6);
  transition: transform .45s var(--ease), background-color .35s var(--ease);
}
.video-card__play svg { width: 46%; height: 46%; margin-left: 8%; }
.video-card__trigger:hover .video-card__play { transform: translate(-50%, -50%) scale(1.1); background: var(--gold-400); }

/* Pulsing ring — the one bit of motion that says "this is playable" */
.video-card__play::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  animation: ping 2.8s var(--ease-io) infinite;
}

.video-card__badge {
  position: absolute; z-index: 3;
  top: .9rem; left: .9rem;
  padding: .3rem .7rem;
  border-radius: 100px;
  background: rgba(0,8,31,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .6rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

.video-card__title {
  font-size: var(--step-1);
  color: #fff;
  margin: 1.1rem 0 .4rem;
}

.video-card__source {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto;
  padding-top: .3rem;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-400);
  text-decoration: none;
}
.video-card__source .icon { width: 13px; height: 13px; transition: transform .4s var(--ease); }
.video-card__source:hover { color: var(--gold-300); }
.video-card__source:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------- Video modal */

.vbox {
  position: fixed; inset: 0; z-index: 1100;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0,8,31,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.vbox.is-open { opacity: 1; visibility: visible; }

.vbox__inner { width: min(100%, 1000px); }

.vbox__frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  transform: scale(.94);
  transition: transform .5s var(--ease);
}
.vbox.is-open .vbox__frame { transform: none; }
/* Portrait videos (Facebook reels) must not blow past the viewport */
.vbox__frame:has(> iframe[data-portrait]) { width: auto; height: 78vh; aspect-ratio: 9 / 16; }
.vbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vbox__cap {
  margin: 1.1rem 0 0;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.vbox__cap:empty { display: none; }

.vbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff; cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.vbox__close:hover { background: var(--gold-500); color: var(--navy-900); transform: scale(1.08); }
.vbox__close .icon { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .video-card__play::before { animation: none; }
}

/* --------------------------------------------------- Featured (self-hosted) */

.feature-video {
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  grid-template-columns: 1fr;
  /* Never upscale much past the file's own resolution, or it goes soft. */
  max-width: min(100%, calc(var(--native, 900px) * 1.25));
}
@media (min-width: 900px) {
  .feature-video { grid-template-columns: 1.45fr 1fr; max-width: min(100%, 1120px); }
}

.feature-video__player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
/* A thin gold edge so the player reads as part of the brand, not a bare box */
.feature-video__player::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(176, 136, 56, .35);
  pointer-events: none;
}

.feature-video__player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.feature-video__caption { display: grid; gap: .5rem; }

.feature-video__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.feature-video__eyebrow::before {
  content: "";
  width: 1.8rem; height: 1px;
  background: currentColor;
  opacity: .6;
}

.feature-video__title {
  font-size: var(--step-2);
  color: #fff;
  margin: 0;
}

.feature-video__text {
  font-size: .95rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, .68);
  margin: 0;
}

/* ==========================================================================
   Language switcher
   ========================================================================== */

.langsw { position: relative; flex: none; }

.langsw__toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .7rem;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  color: rgba(255,255,255,.86);
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.is-stuck .langsw__toggle { border-color: var(--line); color: var(--ink-soft); }
.langsw__toggle:hover { border-color: var(--gold-500); color: var(--gold-400); }
.is-stuck .langsw__toggle:hover { color: var(--gold-600); }

.langsw__toggle .icon { width: 16px; height: 16px; }
.langsw__chev { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.langsw.is-open .langsw__chev { transform: rotate(180deg); }

.langsw__menu {
  position: absolute; top: calc(100% + .55rem); right: 0; z-index: 20;
  min-width: 190px;
  margin: 0; padding: .4rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.langsw.is-open .langsw__menu { opacity: 1; visibility: visible; transform: none; }

.langsw__menu a {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .7rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .88rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.langsw__menu a:hover { background: var(--paper-2); color: var(--navy-700); }
.langsw__menu a.is-active { color: var(--navy-700); font-weight: 600; }

.langsw__code {
  display: grid; place-items: center;
  width: 30px; height: 22px; flex: none;
  border-radius: 3px;
  background: var(--navy-700);
  color: #fff;
  font-size: .6rem; font-weight: 700; letter-spacing: .06em;
}
.langsw__menu a.is-active .langsw__code { background: var(--gold-500); color: var(--navy-900); }
.langsw__name { flex: 1; }
.langsw__tick { width: 15px; height: 15px; color: var(--gold-600); stroke-width: 2.5; }

/* Inside the full-screen mobile menu it is a flat row, not a dropdown */
.langsw--stack { margin-bottom: 2rem; }
.langsw--stack .langsw__toggle { display: none; }
.langsw--stack .langsw__menu {
  position: static;
  opacity: 1; visibility: visible; transform: none;
  min-width: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
  background: none; border: 0; box-shadow: none;
}
.langsw--stack .langsw__menu a {
  padding: .55rem .9rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
}
.langsw--stack .langsw__menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.langsw--stack .langsw__menu a.is-active { border-color: var(--gold-500); color: var(--gold-300); }
.langsw--stack .langsw__code { display: none; }
.langsw--stack .langsw__tick { display: none; }

@media (max-width: 899px) { .langsw--bar { display: none; } }

/* --------------------------------------------------- Arabic typography */

.lang-ar {
  --font-display: "Amiri", "Noto Kufi Arabic", "Times New Roman", serif;
  --font-body: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}
/* Kufi runs small and tight next to Inter, and Arabic needs more line height. */
.lang-ar body, .lang-ar { line-height: 1.9; }
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 { line-height: 1.4; letter-spacing: 0; }
.lang-ar .eyebrow,
.lang-ar .btn,
.lang-ar .link-arrow,
.lang-ar .service__lede,
.lang-ar .stat__label,
.lang-ar .post-card__meta,
.lang-ar .comment-actions a,
.lang-ar .footer h5 { letter-spacing: .02em; }
/* Arabic has no case distinction, so uppercasing only distorts the glyphs. */
.lang-ar .eyebrow,
.lang-ar .btn,
.lang-ar .link-arrow,
.lang-ar .service__lede,
.lang-ar .stat__label,
.lang-ar .breadcrumbs,
.lang-ar .post-card__meta,
.lang-ar .footer h5,
.lang-ar .field label,
.lang-ar .comment-actions a,
.lang-ar .video-card__source,
.lang-ar .feature-video__eyebrow { text-transform: none; }

/* --------------------------------------------- Longer-language header fit */

/* Somali and Arabic labels are longer than the English ones. Without this the
   nav and the brand wrap to two lines and the header doubles in height. */
.nav a { white-space: nowrap; }
.brand__name { white-space: nowrap; }
.header-cta { white-space: nowrap; }

/* Buy back a little room between 900px and 1200px, where it is tightest. */
@media (min-width: 900px) and (max-width: 1200px) {
  .nav, .nav ul { gap: .95rem; }
  .nav a { font-size: .78rem; }
  .brand__name { font-size: .92rem; }
}
