/* ============================================================
   Apex Strategic Consulting — design system
   Navy + gold · premium editorial · trustworthy corporate
   ============================================================ */

:root {
  /* color */
  --ink: #15171c;
  --paper: #faf8f3;
  --paper-2: #f2ece0;
  --paper-3: #ece3d3;
  --navy: #0f2240;
  --navy-deep: #091628;
  --navy-soft: #1c3a64;
  --navy-line: rgba(15, 34, 64, 0.12);
  --gold: #b8923f;
  --gold-deep: #9a7831;
  --gold-light: #d9bd76;
  --muted: #5d6573;
  --muted-warm: #877d6b;
  --on-navy: #e8ecf3;
  --on-navy-dim: #9fb0c7;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 88px);
  --nav-h: 76px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.on-dark::before { background: var(--gold-light); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.display {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.022em;
}

.h2 { font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -0.018em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }

.lede {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
  max-width: 60ch;
}

em.serif-em { font-style: italic; color: var(--gold-deep); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 168px) 0; position: relative; }
.section.tight { padding: clamp(60px, 8vw, 112px) 0; }

.navy-bg { background: var(--navy); color: var(--on-navy); }
.navy-bg .lede { color: var(--on-navy-dim); }
.cream-bg { background: var(--paper-2); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy);
  --fg: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold { --bg: var(--gold); }
.btn.gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn.ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy-line); }
.btn.ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.on-dark.ghost { --fg: var(--on-navy); border-color: rgba(255,255,255,0.22); }
.btn.on-dark.ghost:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.text-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--navy-line);
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.text-link:hover { gap: 15px; border-color: var(--gold); color: var(--gold-deep); }
.text-link.on-dark { color: var(--gold-light); border-color: rgba(217,189,118,0.3); }

/* ============================================================
   HEADER — utility bar + numbered nav
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.5s var(--ease);
}

/* utility bar */
.utilbar {
  background: var(--navy-deep);
  color: var(--on-navy-dim);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
  max-height: 46px;
}
.header.scrolled .utilbar { max-height: 0; opacity: 0; border-color: transparent; }
.utilbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.utilbar .u-left, .utilbar .u-right { display: flex; align-items: center; gap: 26px; }
.utilbar .u-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.utilbar .u-item svg { width: 13px; height: 13px; color: var(--gold-light); }
.utilbar a.u-item:hover { color: #fff; }
.utilbar .u-socials { display: flex; gap: 16px; }
.utilbar .u-socials a { color: var(--on-navy-dim); transition: color 0.3s var(--ease); }
.utilbar .u-socials a:hover { color: var(--gold-light); }
.utilbar .u-socials svg { width: 14px; height: 14px; }

/* nav */
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), height 0.45s var(--ease);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 30px; }
.header.scrolled .nav {
  background: rgba(9, 22, 40, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 16px 40px -28px rgba(0,0,0,0.7);
  height: 66px;
}
.brand { display: flex; align-items: baseline; gap: 11px; color: #fff; flex-shrink: 0; }
.brand .mark {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.brand .mark b { color: var(--gold-light); font-weight: 500; }
.brand .sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
}
.nav-links { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 42px); }
.nav-links a.nlink {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--on-navy);
  letter-spacing: 0.01em;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  opacity: 0.86;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links a.nlink .nnum {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  opacity: 0.7;
}
.nav-links a.nlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 0; height: 2px;
  background: var(--gold-light);
  transition: width 0.4s var(--ease);
}
.nav-links a.nlink:hover,
.nav-links a.nlink.active { opacity: 1; }
.nav-links a.nlink:hover::after,
.nav-links a.nlink.active::after { width: 24px; }
.nav-links .btn { padding: 12px 22px; font-size: 13.5px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* ============================================================
   HERO — full-bleed photographic slider
   ============================================================ */
.hero {
  min-height: 100svh;
  background: var(--navy-deep);
  color: var(--on-navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 124px;
  padding-bottom: 110px;
}
/* slides (cross-fade) */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide image-slot,
.hero-slide .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-slide image-slot { --slot-bg: #0c1c34; }
.hero-slide .photo img { width: 100%; height: 100%; object-fit: cover; }
/* slow ken-burns drift on active slide */
.hero-slide.active .ken { animation: ken 14s ease-out forwards; }
@keyframes ken { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.ken { position: absolute; inset: 0; transform: scale(1.08); }

/* duotone navy + gold overlay */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(9,22,40,0.94) 0%, rgba(9,22,40,0.78) 38%, rgba(12,30,56,0.42) 64%, rgba(184,146,63,0.22) 100%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(100deg, #000 18%, transparent 60%);
  -webkit-mask-image: linear-gradient(100deg, #000 18%, transparent 60%);
}
/* diagonal gold seam, echoing the Aivons reference */
.hero-seam {
  position: absolute; top: 0; bottom: 0; right: 30%; width: 1px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(217,189,118,0.5), transparent);
  transform: skewX(-12deg);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 880px; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }

/* rotating headline */
.hero-headline {
  margin: 26px 0 0;
  position: relative;
  min-height: clamp(150px, 22vw, 320px);
}
.hero-h {
  position: absolute; left: 0; top: 0;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(44px, 7.6vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.hero-h.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.hero-h .accent { color: var(--gold-light); position: relative; display: inline-block; }
.hero-h .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.09em;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease) 0.3s;
}
.hero-h.active .accent::after { transform: scaleX(1); }

.hero p.lede { color: rgba(232,236,243,0.84); margin: 30px 0 0; max-width: 52ch; }
.hero-cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* slider controls */
.hero-controls {
  position: absolute; z-index: 4;
  right: var(--gutter); bottom: 46px;
  display: flex; align-items: center; gap: 18px;
}
.hero-arrow {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(9,22,40,0.3);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-count { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: rgba(232,236,243,0.7); }
.hero-count b { color: var(--gold-light); font-weight: 500; font-size: 16px; }
.hero-dots { display: flex; gap: 9px; }
.hero-dot {
  width: 30px; height: 3px; background: rgba(255,255,255,0.2); cursor: pointer;
  transition: background 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.hero-dot.active { background: rgba(255,255,255,0.25); }
.hero-dot.active::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-light);
  transform: scaleX(0); transform-origin: left;
  animation: dotfill 6s linear forwards;
}
@keyframes dotfill { to { transform: scaleX(1); } }

.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
  display: flex; align-items: center; gap: 12px;
  z-index: 4;
}
.scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--gold-light), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100%{transform:scaleY(0.3);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* ============================================================
   CREDENTIALS STRIP
   ============================================================ */
.creds {
  background: var(--navy-deep);
  color: var(--on-navy-dim);
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.creds .wrap { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; justify-content: space-between; }
.creds .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.creds .items { display: flex; gap: clamp(18px, 3.4vw, 48px); flex-wrap: wrap; align-items: center; }
.creds .items span { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: #cdd6e3; white-space: nowrap; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 760px; margin-bottom: clamp(46px, 6vw, 84px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .h2 { margin-top: 20px; }
.sec-head .lede { margin-top: 22px; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }

/* ============================================================
   POSITIONING / INTRO
   ============================================================ */
.intro-statement {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.intro-body p { color: var(--muted); margin: 0 0 22px; }
.intro-body p:last-child { margin-bottom: 0; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; padding-top: 44px; border-top: 1px solid var(--navy-line); }
.stat .num { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 60px); color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat .num .suffix { color: var(--gold); }
.stat .cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-list { border-top: 1px solid var(--navy-line); }
.service {
  display: grid;
  grid-template-columns: 88px 1.05fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(38px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--navy-line);
  position: relative;
  transition: background 0.5s var(--ease);
}
.service:hover { background: linear-gradient(90deg, rgba(184,146,63,0.05), transparent 60%); }
.service .idx { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: 0.1em; padding-top: 8px; }
.service .s-title { font-family: var(--serif); font-size: clamp(24px, 2.7vw, 36px); line-height: 1.06; letter-spacing: -0.015em; }
.service .s-title .meta { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 16px; font-weight: 500; }
.service .s-body p { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.service .deliverables { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.service .deliverables li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--paper-2);
  border: 1px solid var(--navy-line);
  padding: 6px 12px;
  border-radius: 2px;
}
.service .outcome { display: flex; align-items: baseline; gap: 12px; font-size: 15px; }
.service .outcome .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; }
.service .outcome .v { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--navy); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: clamp(28px, 3vw, 44px);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.step:hover { border-color: rgba(217,189,118,0.5); transform: translateY(-4px); }
.step .num { font-family: var(--serif); font-size: 64px; line-height: 1; color: rgba(217,189,118,0.28); letter-spacing: -0.02em; }
.step h3 { color: #fff; font-size: 26px; margin: 18px 0 14px; }
.step p.intro { color: var(--gold-light); font-size: 15px; margin: 0 0 18px; font-weight: 500; }
.step ul { margin: 0 0 22px; padding: 0; list-style: none; }
.step ul li { color: var(--on-navy-dim); font-size: 15px; padding: 8px 0 8px 22px; position: relative; border-top: 1px solid rgba(255,255,255,0.07); }
.step ul li:first-child { border-top: none; }
.step ul li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border: 1px solid var(--gold-light); transform: rotate(45deg); }
.step .res { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--on-navy-dim); padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }
.step .res b { color: var(--gold-light); font-weight: 500; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.port-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.port-filters button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: 100px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.port-filters button:hover { border-color: var(--navy); color: var(--navy); }
.port-filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.port-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.case {
  background: #fff;
  border: 1px solid var(--navy-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), opacity 0.4s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -30px rgba(15,34,64,0.4); }
.case.hide { display: none; }
.case-viz { aspect-ratio: 16 / 9; background: var(--navy); position: relative; overflow: hidden; }
.case-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-tag { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-deep); background: var(--gold-light); padding: 5px 11px; border-radius: 2px; z-index: 2; }
.case-body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; flex: 1; }
.case-body .client { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.case-body h3 { font-size: clamp(21px, 2vw, 27px); margin: 12px 0 14px; line-height: 1.1; }
.case-body p { color: var(--muted); font-size: 16px; margin: 0 0 24px; flex: 1; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid var(--navy-line); }
.case-metric .m-num { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.case-metric .m-num .suffix { color: var(--gold); }
.case-metric .m-cap { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 940px; }
.tl-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(30px, 3.4vw, 44px) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: start;
}
.tl-item .tl-org { font-family: var(--mono); font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-light); padding-top: 6px; line-height: 1.6; }
.tl-item h3 { color: #fff; font-size: clamp(22px, 2.2vw, 29px); margin-bottom: 12px; }
.tl-item p { color: var(--on-navy-dim); font-size: 16px; margin: 0; }

/* ============================================================
   ABOUT FOUNDER
   ============================================================ */
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.founder-photo { position: relative; }
.founder-photo .frame { position: relative; border-radius: 4px; overflow: hidden; background: var(--navy); }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder-photo .badge {
  position: absolute; bottom: -22px; right: -22px;
  background: var(--gold); color: #fff;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 22px; border-radius: 3px; line-height: 1.5; font-weight: 500;
  box-shadow: 0 18px 40px -20px rgba(184,146,63,0.7);
}
.founder-photo .badge b { font-size: 15px; display: block; }
.founder-body .name { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 22px 0 6px; }
.founder-body .role { font-family: var(--mono); font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 26px; }
.founder-body p { color: var(--muted); margin: 0 0 20px; }
.founder-quals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.founder-quals span { font-family: var(--mono); font-size: 12px; color: var(--navy); border: 1px solid var(--navy-line); padding: 8px 14px; border-radius: 2px; background: #fff; }

/* ============================================================
   WHY APEX
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 52px); }
.why-item { padding-top: 28px; border-top: 2px solid var(--gold); }
.why-item h3 { font-size: clamp(22px, 2.3vw, 29px); color: var(--navy); margin-bottom: 14px; }
.why-item p { color: var(--muted); font-size: 16.5px; margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info h2 { color: #fff; margin: 22px 0 24px; }
.contact-info .lede { color: var(--on-navy-dim); margin-bottom: 44px; }
.contact-detail { display: flex; flex-direction: column; gap: 2px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-detail .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.contact-detail .v { font-size: 19px; color: #fff; }
.contact-detail a.v:hover { color: var(--gold-light); }

.form { background: #fff; border-radius: 4px; padding: clamp(28px, 3vw, 44px); box-shadow: 0 30px 70px -40px rgba(9,22,40,0.5); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 15px;
  border: 1px solid var(--navy-line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,63,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.show { display: block; }
.form-success .check { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 26px; }
.form-success h3 { color: var(--navy); font-size: 26px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: var(--on-navy-dim); padding: clamp(56px, 7vw, 96px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .brand { margin-bottom: 20px; }
.footer-blurb { font-size: 15px; max-width: 36ch; color: var(--on-navy-dim); }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 15px; color: var(--on-navy-dim); margin-bottom: 12px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; flex-wrap: wrap; gap: 16px; }
.footer-bot p { font-size: 13px; margin: 0; font-family: var(--mono); letter-spacing: 0.04em; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue .line { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 380px; margin: 0 auto 30px; }
  .founder-photo .badge { right: 0; }
  .utilbar .u-left .u-hours { display: none; }
  .hero-headline { min-height: clamp(130px, 30vw, 260px); }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .utilbar .u-left .u-mail, .utilbar .u-hours { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(9,22,40,0.97); backdrop-filter: blur(14px);
    padding: 30px var(--gutter); border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open a.nlink { flex-direction: row; gap: 12px; align-items: baseline; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: #fff; transition: transform 0.4s var(--ease), opacity 0.3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-controls { bottom: 30px; }
  .scroll-cue { display: none; }
  .service { grid-template-columns: 1fr; gap: 18px; }
  .service .idx { padding-top: 0; }
  .approach-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .timeline .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .intro-stats { grid-template-columns: 1fr; gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
}
