/* ============================================================
   Saudi Digital Consulting Group (SDCG)
   Editorial private-advisory aesthetic, refined / boutique
   Display serif (Fraunces) + grotesque body (Hanken Grotesk)
   ============================================================ */

:root {
  /* greens */
  --green-900: #0a1812;     /* near-black, footer */
  --green-850: #0c1b14;
  --dark: #102219;          /* primary dark surface */
  --green-700: #173425;
  --green: #1d5c3c;
  --green-line: rgba(203, 181, 136, 0.22);

  /* gold */
  --gold: #b3924f;          /* antique gold - restrained */
  --gold-soft: #c9b487;
  --gold-deep: #8f7339;

  /* ink / paper */
  --ink: #1a201c;
  --ink-soft: #5c645e;
  --ink-faint: #8a918b;
  --paper: #f6f4ed;         /* warm ivory */
  --paper-2: #fbfaf5;       /* lifted card white */
  --paper-tint: #efece2;
  --line: #e3dece;
  --line-soft: #ece8dc;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "Noto Kufi Arabic", var(--font-sans);

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle film grain for atmosphere/depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

::selection { background: var(--gold); color: #fff; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 237, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 244, 237, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo { width: 40px; height: 40px; overflow: visible; }

/* logo animation #5 - hover disassemble / reassemble */
.brand-logo .cube {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-logo .cube:nth-child(2) { transform: translate(0, -8px); }
.brand:hover .brand-logo .cube:nth-child(3) { transform: translate(-9px, -4px); }
.brand:hover .brand-logo .cube:nth-child(4) { transform: translate(9px, -4px); }
.brand:hover .brand-logo .cube:nth-child(5) { transform: translate(-7px, 3px); }
.brand:hover .brand-logo .cube:nth-child(6) { transform: translate(7px, 3px); }
.brand:hover .brand-logo .cube:nth-child(7) { transform: translate(-9px, 8px); }
.brand:hover .brand-logo .cube:nth-child(8) { transform: translate(0, 10px); }
.brand:hover .brand-logo .cube:nth-child(9) { transform: translate(9px, 8px); }

@media (prefers-reduced-motion: reduce) {
  .brand-logo .cube { transition: none; }
  .brand:hover .brand-logo .cube { transform: none; }
}

.brand-name {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 11px 22px;
  border: 1px solid var(--gold);
  color: var(--gold-deep) !important;
  background: transparent;
  transition: background 0.3s var(--ease), color 0.3s ease;
}

.nav-cta:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(179, 146, 79, 0.13), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(29, 92, 60, 0.06), transparent 60%),
    var(--paper);
  padding: 96px 0 40px;
  overflow: hidden;
}

/* Najdi architecture backdrop (At-Turaif motif) - a near-still cinemagraph that
   sits behind hero content, masked to the right so headline copy stays crisp and
   multiplied into the palette. The poster still doubles as the fallback, and
   playback is gated on motion preference in script.js. */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.32;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, #000 78%);
}

.hero-inner,
.hero .logobar { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 64px;
}

.hero-kicker {
  font-family: var(--font-ar);
  color: var(--gold-deep);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.rule {
  border: 0;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0 30px;
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  font-weight: 410;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.hero h1 .accent { color: var(--gold); }

/* Animated rotating company name - slot-machine roll */
.rotator {
  display: inline-block;
  height: 1.08em;
  line-height: 1.08em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--gold);
  font-style: italic;
  font-weight: 460;
}

.rotator-word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-sub {
  margin-top: 30px;
  max-width: 47ch;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 42px;
  flex-wrap: wrap;
}

/* hero emblem (Najdi arch) */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art svg {
  width: 100%;
  max-width: 380px;
  display: block;
}

/* large hero logo with hover disassemble/reassemble (animation #5) */
.hero-logo { max-width: 300px; overflow: visible; cursor: pointer; }
.hero-logo .cube {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s var(--ease);
}
.hero-logo:hover .cube:nth-child(2) { transform: translate(0, -9px); }
.hero-logo:hover .cube:nth-child(3) { transform: translate(-10px, -5px); }
.hero-logo:hover .cube:nth-child(4) { transform: translate(10px, -5px); }
.hero-logo:hover .cube:nth-child(5) { transform: translate(-8px, 4px); }
.hero-logo:hover .cube:nth-child(6) { transform: translate(8px, 4px); }
.hero-logo:hover .cube:nth-child(7) { transform: translate(-10px, 9px); }
.hero-logo:hover .cube:nth-child(8) { transform: translate(0, 11px); }
.hero-logo:hover .cube:nth-child(9) { transform: translate(10px, 9px); }

@media (prefers-reduced-motion: reduce) {
  .hero-logo .cube { transition: none; }
  .hero-logo:hover .cube { transform: none; }
}

/* image-based hero emblem (used by the A/B/C/D comparison versions) */
.hero-emblem {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 26px 64px rgba(16, 34, 25, 0.24);
}

.hero-art .arch-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 64s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* staggered hero load */
.hero-copy > * {
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.13s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.21s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.42s; }
.hero-art { opacity: 0; animation: rise 1s var(--ease) 0.3s forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- logo bar ---------- */

.logobar {
  margin-top: 76px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.logobar-label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 30px 0;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  height: 60px;
  width: auto;
  max-width: 190px;
  margin-right: 96px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.4);
  transition: filter 0.35s ease;
}

.marquee-track img:hover { filter: grayscale(0) opacity(0.95); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- buttons ---------- */

.btn {
  --bg: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.3s ease,
              border-color 0.3s ease, transform 0.3s var(--ease);
}

.btn::after {
  content: "→";
  font-size: 0.95em;
  transition: transform 0.35s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

.btn-primary {
  background: var(--dark);
  color: #fff;
}
.btn-primary:hover { background: var(--green); }

.btn-ghost {
  border-color: rgba(26, 32, 28, 0.28);
  color: var(--dark);
}
.btn-ghost:hover { border-color: var(--dark); background: var(--dark); color: #fff; }

.btn-lg { padding: 18px 40px; font-size: 0.8rem; }

/* ---------- sections ---------- */

.section { padding: 130px 0; }

#services { padding-top: 64px; }

.section-head { max-width: 40ch; margin-bottom: 60px; }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 22px;
}

.section-kicker .k-no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--gold);
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  font-weight: 410;
  letter-spacing: -0.018em;
  line-height: 1.16;
  color: var(--dark);
  max-width: 22ch;
  margin-bottom: 54px;
}

.section-tint { background: var(--paper-tint); }

.section-dark {
  position: relative;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(179, 146, 79, 0.12), transparent 55%),
    var(--dark);
  color: #dfe4dd;
}

.section-dark h2 { color: #fff; }
.section-dark .section-kicker { color: var(--gold-soft); }
.section-dark .section-kicker .k-no { color: var(--gold-soft); }
.section-dark .section-kicker::before { background: var(--gold-soft); }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--paper);
  padding: 46px 40px 44px;
  transition: background 0.35s ease, transform 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card:hover { background: var(--paper-2); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.35s ease, color 0.35s ease;
}

.card:hover .card-icon { background: var(--gold); color: #fff; }

.card-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 460;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--dark);
}

.card p {
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.74;
}

/* ---------- why / approach ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
  margin-top: 16px;
}

.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 380;
  font-style: italic;
  line-height: 1;
  color: var(--gold-soft);
  margin-bottom: 22px;
}

.why-num::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--green-line);
  margin-top: 22px;
}

.why-item h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 460;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 12px;
}

.why-item p {
  font-size: 0.97rem;
  font-weight: 400;
  color: #abb6ac;
  line-height: 1.78;
}

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.member {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 32px 34px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease),
              transform 0.4s var(--ease);
}

.member:hover, .member:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 18px 48px rgba(16, 34, 25, 0.10);
  transform: translateY(-3px);
  outline: none;
}

.member-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.member-photo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(0.35);
  transition: filter 0.4s ease;
}

.member:hover .member-photo { filter: grayscale(0); }

.member-name {
  height: 25px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.member-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.member-tags span {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 13px;
}

.member-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.member:hover .member-more,
.member:focus-visible .member-more { opacity: 1; transform: none; }

/* ---------- profile modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 24, 18, 0.62);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--paper);
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  border-top: 3px solid var(--gold);
  box-shadow: 0 40px 100px rgba(10, 24, 18, 0.4);
  animation: modal-in 0.32s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}

.modal-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }

.modal-head {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* ---------- dot-art portraits ---------- */
/* Headshots rendered as a grid of colour-matched text blocks (█): real DOM
   text, so there is no selectable text and no image element to save. */
.dotart {
  display: grid;
  letter-spacing: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.dotart b { font-style: normal; font-weight: 400; }
.dotart--round { border-radius: 50%; }

.member-head .dotart,
.member-photo {
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.4s var(--ease);
}
.member:hover .member-head .dotart,
.member:focus-visible .member-head .dotart { box-shadow: 0 0 0 1px var(--gold); }

.modal-portrait {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-tint);
  box-shadow: 0 14px 36px rgba(16, 34, 25, 0.18);
}
.modal-portrait .dotart { border-radius: 4px; }

.modal-name {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}

.modal-lead {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 410;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin: 22px 0 4px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.modal-body h5 {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 30px 0 16px;
}

.cv-list { display: flex; flex-direction: column; gap: 18px; }

.cv-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
}

.cv-org {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.cv-logo {
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.cv-org-text {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--dark);
}

.cv-desc {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.62;
}

.hl-list { list-style: none; }

.hl-list li {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 4px 0 4px 22px;
  position: relative;
}

.hl-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold-soft);
}

/* ---------- contact ---------- */

.contact-inner { text-align: center; }

.contact-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-inner h2 {
  margin: 0 auto 14px;
  max-width: 24ch;
}

.contact-sub {
  max-width: 50ch;
  margin: 0 auto;
  font-size: 1.05rem;
  font-weight: 400;
  color: #b6c6ba;
}

.contact-inner .btn { margin-top: 34px; }
.contact-inner .btn-primary { background: var(--gold); }
.contact-inner .btn-primary:hover { background: #fff; color: var(--dark); }

/* ---------- contact form ---------- */

.contact-form {
  max-width: 620px;
  margin: 40px auto 0;
  text-align: left;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.contact-form .field { display: flex; flex-direction: column; }
.contact-form .field-full { margin-bottom: 8px; }

.contact-form .field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.contact-form .field-label .opt {
  letter-spacing: 0.04em;
  text-transform: none;
  color: #7e8c81;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 180, 135, 0.3);
  border-radius: 2px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-form textarea { resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #74827780; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form input[name="_honey"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn-primary { margin-top: 26px; }

.contact-form .form-status {
  min-height: 1.2em;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gold-soft);
}

.contact-form .form-status.is-error { color: #e6a98b; }

@media (max-width: 600px) {
  .contact-form .form-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- conversion: shared buttons ---------- */

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--dark); }

.btn-ghost-light {
  border-color: rgba(201, 180, 135, 0.45);
  color: var(--gold-soft);
  background: transparent;
}
.btn-ghost-light:hover { border-color: var(--gold); background: var(--gold); color: var(--dark); }

/* ---------- hero assurance line ---------- */

.hero-assure {
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---------- mid-page CTA band ---------- */

.cta-band {
  position: relative;
  background:
    radial-gradient(700px 360px at 92% 0%, rgba(179, 146, 79, 0.16), transparent 60%),
    var(--dark);
  color: #dfe4dd;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 32px;
  flex-wrap: wrap;
}

.cta-band-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.cta-band-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 410;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 22ch;
}

/* ---------- contact: offer / scarcity / reassurance ---------- */

.contact-offer {
  max-width: 54ch;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #cdd8cf;
}
.contact-offer strong { color: #fff; font-weight: 600; }

.contact-scarcity {
  margin: 14px auto 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.form-reassure {
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: #8fa094;
  text-align: center;
}

/* ---------- contact: segment picker ---------- */

.seg-field {
  border: 0;
  margin-bottom: 22px;
  text-align: left;
}

.seg-field .field-label { display: block; margin-bottom: 12px; }

.seg-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.seg span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(201, 180, 135, 0.3);
  border-radius: 2px;
  font-size: 0.82rem;
  color: #cdd8cf;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.seg:hover span { border-color: var(--gold-soft); }
.seg input:checked + span {
  border-color: var(--gold);
  background: rgba(201, 180, 135, 0.14);
  color: #fff;
}
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- contact: select ---------- */

.contact-form select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 180, 135, 0.3);
  border-radius: 2px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9b487' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.contact-form select:focus { border-color: var(--gold); }
.contact-form select option { color: #1a201c; }

/* ---------- contact: alternative CTAs ---------- */

.contact-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contact-alt-label {
  font-size: 0.85rem;
  color: #8fa094;
}

/* ---------- sticky mobile CTA bar ---------- */

.mobile-cta { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: 72px; }

  .mobile-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(12, 27, 20, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid var(--green-line);
  }

  .mcta {
    flex: 1;
    text-align: center;
    padding: 14px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
  }
  .mcta-primary { background: var(--gold); color: var(--dark); }
  .mcta-wa { border: 1px solid rgba(201, 180, 135, 0.5); color: var(--gold-soft); }

  .cta-band-inner { padding: 44px 24px; }
}

/* ---------- careers page ---------- */

.page-hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(179, 146, 79, 0.13), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(29, 92, 60, 0.06), transparent 60%),
    var(--paper);
  padding: 120px 0 96px;
  overflow: hidden;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 410;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.page-hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.78;
}

.page-hero .hero-actions { margin-top: 40px; }

/* job listing - collapsible accordion */
.roles-list {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--paper-2);
}

.role + .role { border-top: 1px solid var(--line); }

.role-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.3s ease;
}

.role-toggle:hover { background: var(--paper); }

.role-toggle-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 460;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--dark);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-meta span {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 13px;
}

.role-chevron {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-deep);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, color 0.3s ease;
}

.role-chevron svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-toggle:hover .role-chevron { border-color: var(--gold); color: var(--gold); }

.role-toggle[aria-expanded="true"] .role-chevron {
  transform: rotate(180deg);
  border-color: var(--gold);
  color: var(--gold);
}

.role-panel { border-top: 1px solid var(--line); }
.role-panel[hidden] { display: none; }

.role-panel-inner { padding: 30px 36px 40px; }

.role-lead {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 410;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--dark);
  max-width: 68ch;
}

.role-note {
  margin-top: 24px;
  padding: 18px 24px;
  background: var(--paper-tint);
  border-left: 2px solid var(--gold);
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.role-note strong { color: var(--dark); font-weight: 700; }

.role-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 38px;
}

.role-block h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 460;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 18px;
}

.role-block-sub { margin-top: 30px; }

.role-block ul { list-style: none; }

.role-block li {
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.66;
  padding: 8px 0 8px 24px;
  position: relative;
}

.role-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

.role-apply { margin-top: 38px; }

/* apply modal + form (light surface) */
.apply-modal { max-width: 640px; }

.apply-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 460;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 8px;
  padding-right: 44px;
}

.apply-modal-sub {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.apply-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.apply-form .field { display: flex; flex-direction: column; }
.apply-form .field-full { margin-bottom: 18px; }

.apply-form .field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

.apply-form .field-label .opt {
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-faint);
}

.apply-form input,
.apply-form textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.apply-form textarea { resize: vertical; }

.apply-form input::placeholder,
.apply-form textarea::placeholder { color: var(--ink-faint); }

.apply-form input:focus,
.apply-form textarea:focus { border-color: var(--gold); }

.apply-form input[type="file"] {
  padding: 11px 14px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.apply-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-deep);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.apply-form input[type="file"]::file-selector-button:hover { background: var(--gold); color: #fff; }

.apply-form .btn-primary {
  margin-top: 8px;
  background: var(--dark);
  color: #fff;
}
.apply-form .btn-primary:hover { background: var(--green); }

.apply-form .form-status {
  min-height: 1.2em;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gold-deep);
}

.apply-form .form-status.is-error { color: #b5523a; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .page-hero { padding: 72px 0 60px; }
  .role-toggle { padding: 24px 22px; }
  .role-panel-inner { padding: 24px 22px 32px; }
  .role-cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .apply-form .form-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- audiences ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.audience {
  background: var(--paper-tint);
  padding: 36px 28px;
  transition: background 0.35s ease;
}

.audience:hover { background: var(--paper-2); }

.audience h4 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 460;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 12px;
}

.audience p {
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.68;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--green-900);
  padding: 40px 0;
  color: #7d8a82;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-ar { font-family: var(--font-ar); }

/* ---------- scroll progress spine (gold reading thread) ---------- */

.scroll-spine {
  position: fixed;
  left: 30px;
  top: 120px;
  bottom: 120px;
  width: 2px;
  z-index: 40;
  pointer-events: none;
  background: rgba(179, 146, 79, 0.18);   /* faint gold track */
}

.spine-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

.spine-marker {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(179, 146, 79, 0.16);
}

.spine-node {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.spine-node.active {
  background: var(--gold);
  transform: scale(1.18);
}

.spine-node .n {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--gold-deep);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.spine-node.active .n { opacity: 0.85; }

@media (max-width: 1024px) { .scroll-spine { display: none; } }
@media (prefers-reduced-motion: reduce) { .spine-marker { display: none; } }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 240px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 8px 0;
  }

  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 16px 32px; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { border: 0; }

  .hero { padding: 56px 0 48px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .card { padding: 38px 30px; }
  .marquee-track img { height: 44px; max-width: 150px; margin-right: 56px; }
  .modal { padding: 34px 26px; }
  .cv-row { grid-template-columns: 110px 1fr; gap: 16px; }
}

@media (max-width: 560px) {
  .cards-3, .cards-2, .audience-grid, .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .hero-copy > *, .hero-art { opacity: 1; }
}
