/* ==========================================================================
   Apex Strategies Limited — site stylesheet
   Palette: Ink · Clay · Ochre · Bone   |   Type: Fraunces + Hanken Grotesk
   ========================================================================== */

:root {
  --ink: #13201B;
  --ink-2: #1D2E27;
  --ink-3: #2A3F36;
  --clay: #B5502B;
  --clay-deep: #8F3B1D;
  --ochre: #D6A23F;
  --bone: #F2ECE1;
  --paper: #F8F4EC;
  --sand: #E6DCCB;
  --muted: #5A655F;
  --muted-on-ink: #A9B3AD;
  --line: rgba(19, 32, 27, .14);
  --line-on-ink: rgba(242, 236, 225, .16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--clay); color: var(--bone); }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
}
h1 em, h2 em, h3 em, .serif em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--clay);
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; flex: none;
  background: currentColor; transform: rotate(45deg);
}
.on-ink .eyebrow, .eyebrow.light { color: var(--ochre); }

.display { font-size: clamp(48px, 8.4vw, 118px); line-height: .96; letter-spacing: -.035em; }
.h-xl { font-size: clamp(40px, 5.6vw, 76px); }
.h-lg { font-size: clamp(32px, 4vw, 54px); }
.h-md { font-size: clamp(26px, 2.6vw, 36px); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 40em; }
.on-ink .lede { color: var(--muted-on-ink); }

/* ---------- Buttons & links ---------- */

.btn {
  --bg: var(--ink); --fg: var(--bone);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 26px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 100px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .arrow {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fg); color: var(--bg);
  transition: transform .45s var(--ease), background .35s, color .35s;
}
.btn .arrow svg { width: 12px; height: 12px; }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn:hover { --bg: var(--clay); }
.btn.clay { --bg: var(--clay); }
.btn.clay:hover { --bg: var(--clay-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost .arrow { background: var(--ink); color: var(--bone); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.bone { --bg: var(--bone); --fg: var(--ink); }
.btn.bone:hover { --bg: var(--ochre); }
.btn.ghost-light { background: transparent; color: var(--bone); border-color: var(--line-on-ink); }
.btn.ghost-light .arrow { background: var(--bone); color: var(--ink); }
.btn.ghost-light:hover { border-color: var(--bone); }

.link-u {
  position: relative; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-head.scrolled {
  background: rgba(248, 244, 236, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
  transition: height .4s var(--ease);
}
.site-head.scrolled .wrap { height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img, .brand .mark { width: 36px; height: 36px; flex: none; }
.menu-open .site-head .brand { color: var(--bone); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-size: 25px; font-weight: 500;
  letter-spacing: -.02em;
}
.brand-sub {
  font-size: 9.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px;
  font-size: 15px; font-weight: 500;
  border-radius: 100px;
  transition: background .3s var(--ease);
}
.nav a:hover { background: rgba(19, 32, 27, .06); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--clay); transform: rotate(45deg);
}

.head-cta { display: flex; align-items: center; gap: 18px; }
.head-phone { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.head-phone:hover { color: var(--ink); }
.head-cta .btn { padding: 12px 16px 12px 20px; font-size: 14.5px; }
.head-cta .btn .arrow { width: 22px; height: 22px; }

.menu-btn {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
.menu-open .menu-btn span { background: var(--bone); }
.menu-open .menu-btn { border-color: var(--line-on-ink); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink) url("../img/contours-bone.svg") center / cover no-repeat;
  background-blend-mode: soft-light;
  color: var(--bone);
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-head { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .brand-name { color: var(--bone); }
.menu-open .brand-sub { color: var(--muted-on-ink); }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { counter-increment: m; border-bottom: 1px solid var(--line-on-ink); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); line-height: 1.1; letter-spacing: -.02em;
}
.mobile-menu li a::before {
  content: "0" counter(m); font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--ochre);
}
.mobile-menu .mm-foot { display: grid; gap: 6px; font-size: 15px; color: var(--muted-on-ink); }
.mobile-menu .mm-foot a { color: var(--bone); font-weight: 600; }

@media (max-width: 1080px) {
  .head-phone { display: none; }
}
@media (max-width: 920px) {
  .nav, .head-cta .btn { display: none; }
  .menu-btn { display: block; z-index: 101; }
  .brand { position: relative; z-index: 101; }
}
@media (min-width: 921px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) 0 0;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -90px 0 0 0; z-index: -1;
  background: url("../img/contours-ink.svg") right top / cover no-repeat;
  opacity: .09;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: end;
}
.hero h1 { margin: 26px 0 30px; }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; padding-bottom: 6px; }
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--sand);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 30%; }
.arch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(19, 32, 27, .35));
}

.seal {
  position: absolute; left: -54px; bottom: 54px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--clay); color: var(--bone);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -16px rgba(143, 59, 29, .6);
}
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal svg.ring text { font-family: var(--sans); font-size: 10.6px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; fill: var(--bone); }
.seal .core { width: 40px; height: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal svg.ring { animation: none; } }

.hero-note {
  position: absolute; right: -18px; top: 42%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; max-width: 210px;
  font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 20px 40px -24px rgba(19, 32, 27, .35);
}
.hero-note strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; margin-bottom: 4px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 10px auto 0; width: 100%; }
  .seal { left: -6px; bottom: 30px; width: 112px; height: 112px; }
  .hero-note { right: 0; }
}

/* ---------- Marquee ---------- */

.marquee {
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  padding: 22px 0;
}
.marquee-track { display: inline-flex; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); font-style: italic;
  font-variation-settings: "SOFT" 100;
}
.marquee span::after {
  content: ""; width: 10px; height: 10px; background: var(--clay); transform: rotate(45deg); flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; position: relative; }
.section.tight { padding: calc(var(--section) * .6) 0; }
.on-ink { background: var(--ink); color: var(--bone); }
.on-bone { background: var(--bone); }
.on-clay { background: var(--clay); color: var(--bone); }

.sec-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.sec-head h2 { margin-top: 18px; }
.sec-head .lede { justify-self: end; }
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-head .lede { justify-self: start; }
}

/* Manifesto */
.manifesto {
  font-family: var(--serif);
  font-size: clamp(28px, 3.7vw, 52px);
  line-height: 1.18; letter-spacing: -.02em;
  max-width: 22em;
}
.manifesto .pill {
  display: inline-block; vertical-align: middle;
  width: 2.1em; height: .92em; border-radius: 100px; overflow: hidden;
  margin: -.12em .08em 0;
}
.manifesto .pill img { width: 100%; height: 100%; object-fit: cover; }
.manifesto .soft { color: var(--muted); }
.manifesto-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}

/* Services index */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-on-ink); }
.svc-row { border-bottom: 1px solid var(--line-on-ink); }
.svc-row a {
  position: relative;
  display: grid; grid-template-columns: 70px 1.1fr 1fr 56px; gap: 28px; align-items: center;
  padding: 34px 0;
  transition: padding .5s var(--ease), color .4s;
}
.svc-row a::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--bone); z-index: 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.svc-row a > * { position: relative; z-index: 1; }
.svc-num { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--ochre); transition: color .4s; }
.svc-title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; }
.svc-desc { color: var(--muted-on-ink); font-size: 16px; line-height: 1.55; transition: color .4s; }
.svc-go {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-on-ink);
  display: grid; place-items: center; justify-self: end;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.svc-go svg { width: 16px; height: 16px; }
.svc-row a:hover, .svc-row a:focus-visible { color: var(--ink); padding-left: 18px; padding-right: 18px; }
.svc-row a:hover::before, .svc-row a:focus-visible::before { transform: scaleY(1); }
.svc-row a:hover .svc-num, .svc-row a:focus-visible .svc-num { color: var(--clay); }
.svc-row a:hover .svc-desc, .svc-row a:focus-visible .svc-desc { color: var(--muted); }
.svc-row a:hover .svc-go, .svc-row a:focus-visible .svc-go { background: var(--clay); border-color: var(--clay); color: var(--bone); transform: rotate(-45deg); }
@media (max-width: 820px) {
  .svc-row a { grid-template-columns: 44px 1fr 44px; gap: 8px 16px; padding: 26px 0; }
  .svc-desc { grid-column: 2 / 3; grid-row: 2; }
  .svc-go { width: 44px; height: 44px; grid-row: 1; grid-column: 3; }
}

/* Two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; }
.door {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  min-height: 560px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.door.employer { background: var(--bone); }
.door.seeker { background: var(--clay); color: var(--bone); }
.door.seeker .eyebrow { color: var(--bone); }
.door h3 { font-size: clamp(36px, 4.4vw, 60px); margin: 18px 0 22px; }
.door.seeker h3 em { color: var(--ochre); }
.door p { max-width: 30em; }
.door.employer p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.ticks li::before {
  content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg) translateY(-2px);
  background: var(--clay);
}
.door.seeker .ticks li::before { background: var(--ochre); }
.door .big-letter {
  position: absolute; right: -0.08em; bottom: -0.28em;
  font-family: var(--serif); font-style: italic; font-size: clamp(220px, 26vw, 380px); line-height: 1;
  opacity: .07; pointer-events: none;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
@media (max-width: 820px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
}

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step-mark {
  display: flex; align-items: center; gap: 0; margin-bottom: 28px;
}
.step-mark i {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--paper);
  display: grid; place-items: center;
  font-style: normal; font-weight: 600; font-size: 14px;
  transition: background .4s, color .4s;
}
.step-mark::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.step:last-child .step-mark::after { background: linear-gradient(90deg, var(--line), transparent); }
.step:hover .step-mark i { background: var(--ink); color: var(--bone); }
.step h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 16px; }
.step .tag {
  display: inline-block; margin-top: 16px; padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0; }
}

/* Care feature */
.care {
  position: relative; min-height: 680px; display: flex; align-items: flex-end;
  color: var(--bone); overflow: hidden; isolation: isolate;
}
.care > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2;
}
.care::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19, 32, 27, .9) 0%, rgba(19, 32, 27, .62) 46%, rgba(19, 32, 27, .1) 100%);
}
.care .wrap { padding-top: 120px; padding-bottom: clamp(56px, 8vw, 110px); }
.care h2 { margin: 18px 0 24px; max-width: 11em; }
.care h2 em { color: var(--ochre); }
.care p { max-width: 32em; color: #D9D3C7; }
.care-roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 36px; }
.care-roles span {
  padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(242, 236, 225, .35);
  font-size: 14px; font-weight: 500; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 720px) {
  .care::before { background: linear-gradient(0deg, rgba(19, 32, 27, .94) 30%, rgba(19, 32, 27, .45) 100%); }
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 40px 36px 8px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 36px; }
.principle:last-child { border-right: 0; }
.principle .n { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--clay); font-variation-settings: "SOFT" 100, "WONK" 1; }
.principle h3 { font-size: 27px; margin: 20px 0 12px; }
.principle p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/contours-bone.svg") 30% 40% / cover no-repeat; opacity: .08;
}
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.cta-band h2 { margin-top: 18px; }
.cta-band h2 em { color: var(--ochre); }
.cta-lines { display: grid; gap: 0; border-top: 1px solid var(--line-on-ink); }
.cta-lines a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line-on-ink);
  transition: padding .4s var(--ease), color .3s;
}
.cta-lines a small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 4px; }
.cta-lines a span.v { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); word-break: break-word; }
.cta-lines a svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.cta-lines a:hover { color: var(--ochre); padding-left: 8px; }
.cta-lines a:hover svg { transform: rotate(-45deg); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Footer ---------- */

.site-foot { background: var(--ink); color: var(--bone); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; border-top: 1px solid var(--line-on-ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line-on-ink); }
.foot-grid h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--bone); opacity: .85; transition: opacity .3s; }
.foot-grid a:hover { opacity: 1; color: var(--ochre); }
.foot-brand p { color: var(--muted-on-ink); max-width: 22em; margin-top: 20px; font-size: 15.5px; }
.foot-brand .brand-sub { color: var(--muted-on-ink); }
.foot-contact { font-size: 15.5px; color: var(--muted-on-ink); }
.foot-contact li { word-break: break-word; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; font-size: 13.5px; color: var(--muted-on-ink); }
.foot-word {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.05em; line-height: .72;
  font-size: clamp(120px, 31vw, 440px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 236, 225, .34);
  margin: 10px 0 -0.02em -0.04em; white-space: nowrap; user-select: none;
  font-variation-settings: "SOFT" 0;
}
.foot-word em { font-style: italic; -webkit-text-stroke: 0; color: var(--clay); font-variation-settings: "SOFT" 100, "WONK" 1; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */

.page-hero { position: relative; padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 6vw, 80px); isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: -90px 0 0 0; z-index: -1;
  background: url("../img/contours-ink.svg") 80% 0 / cover no-repeat; opacity: .07;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.page-hero h1 { margin: 24px 0 28px; max-width: 13em; }
.crumbs { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.crumbs a:hover { color: var(--clay); }

/* ---------- About ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split.center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose p { color: var(--muted); }
.prose p.first { color: var(--ink); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }

.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.tall { aspect-ratio: 4 / 5; }
.frame.wide { aspect-ratio: 16 / 10; }
.frame.arch-top { border-radius: 999px 999px var(--radius) var(--radius); }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.caption::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line-on-ink); }
.mv-card { background: var(--ink); padding: clamp(36px, 5vw, 72px); }
.mv-card .eyebrow { color: var(--ochre); }
.mv-card blockquote {
  margin: 26px 0 0; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.18; letter-spacing: -.015em;
}
.mv-card blockquote em { color: var(--ochre); }
@media (max-width: 820px) { .mv { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 34px 28px 10px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value svg { width: 34px; height: 34px; color: var(--clay); margin-bottom: 22px; }
.value h3 { font-size: 26px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 920px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
}
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding-left: 0; border-left: 0; }
}

.capstone { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.capstone-mark { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; position: relative; }
.capstone-mark::before { content: ""; position: absolute; inset: 18px; border: 1px dashed var(--line); border-radius: 50%; }
.capstone-mark img { width: 46%; }
@media (max-width: 720px) { .capstone { grid-template-columns: 1fr; } .capstone-mark { max-width: 200px; } }

/* ---------- Services page ---------- */

.svc-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.svc-nav { position: sticky; top: 100px; }
.svc-nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.svc-nav ol a {
  display: flex; gap: 12px; padding: 10px 0 10px 20px; margin-left: -1px;
  border-left: 2px solid transparent; font-size: 15px; color: var(--muted);
  transition: color .3s, border-color .3s;
}
.svc-nav ol a span { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--clay); padding-top: 2px; }
.svc-nav ol a:hover, .svc-nav ol a.active { color: var(--ink); border-left-color: var(--clay); }
.svc-nav .btn { margin-top: 28px; }

.svc-block { padding: 0 0 clamp(64px, 8vw, 110px); margin-bottom: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-block .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--clay); font-variation-settings: "SOFT" 100, "WONK" 1; }
.svc-block h2 { margin: 10px 0 22px; }
.svc-block .lede { color: var(--ink); margin-bottom: 36px; }
.svc-media { margin: 0 0 40px; }
.svc-media .frame { aspect-ratio: 16 / 8; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.svc-cols h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.svc-cols ul { list-style: none; margin: 0; padding: 0; }
.svc-cols li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.svc-cols li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--clay); transform: rotate(45deg) translateY(-2px); }
.svc-cols p { color: var(--muted); }
.type-panel {
  margin: 0 0 40px; padding: clamp(28px, 4vw, 48px); background: var(--ink); color: var(--bone); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
}
.type-panel span { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; }
.type-panel span:nth-child(even) { font-style: italic; color: var(--ochre); font-variation-settings: "SOFT" 100, "WONK" 1; }
.type-panel i { width: 8px; height: 8px; background: var(--clay); transform: rotate(45deg); }
@media (max-width: 920px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { position: static; }
  .svc-nav ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .svc-nav ol a { border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; margin: 0; }
  .svc-nav ol a.active { border-color: var(--clay); }
  .svc-nav .btn { display: none; }
}
@media (max-width: 640px) { .svc-cols { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */

.form-card { background: var(--bone); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 0; background: transparent;
  border: 0; border-bottom: 1px solid rgba(19, 32, 27, .3); border-radius: 0;
  font-size: 17px; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2313201B' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center / 12px no-repeat;
  padding-right: 28px; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--clay); box-shadow: 0 1px 0 var(--clay); }
.field input::placeholder, .field textarea::placeholder { color: #8C938E; }
.field .err { display: none; font-size: 13px; color: var(--clay-deep); margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: var(--clay-deep); }
.field.invalid .err { display: block; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 18px; border: 1px solid rgba(19, 32, 27, .22); border-radius: 100px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.seg label:hover { border-color: var(--ink); }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.seg input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; }
.form-foot small { color: var(--muted); font-size: 13.5px; max-width: 32em; }
.form-status { margin-top: 18px; font-size: 15px; color: var(--ink); display: none; padding: 14px 16px; border-left: 3px solid var(--clay); background: rgba(181, 80, 43, .07); }
.form-status.show { display: block; }

/* Contact details */
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-item dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-item dd { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; word-break: break-word; }
.contact-item dd a:hover { color: var(--clay); }
.contact-item dd small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 480px) { .contact-item { grid-template-columns: 1fr; gap: 6px; } }

/* Jobs page */
.notice {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font-size: 15.5px;
}
.notice .dot { width: 10px; height: 10px; flex: none; margin-top: 8px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 6px rgba(214, 162, 63, .22); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(214, 162, 63, 0); } }
@media (prefers-reduced-motion: reduce) { .notice .dot { animation: none; } }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.role { background: var(--paper); padding: 30px 28px; transition: background .35s; }
.role:hover { background: var(--bone); }
.role h3 { font-size: 24px; margin-bottom: 8px; }
.role p { color: var(--muted); font-size: 15px; }
.role .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 18px; display: block; }
@media (max-width: 860px) { .role-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */

.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv[data-d="1"] { transition-delay: .08s; }
.js .rv[data-d="2"] { transition-delay: .16s; }
.js .rv[data-d="3"] { transition-delay: .24s; }
.js .rv[data-d="4"] { transition-delay: .32s; }

.js .hero h1 .line { overflow: hidden; }
.js .hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .loaded .hero h1 .line > span, .js.loaded .hero h1 .line > span { transform: none; }
.js .hero h1 .line:nth-child(2) > span { transition-delay: .1s; }
.js .hero h1 .line:nth-child(3) > span { transition-delay: .2s; }
.js .arch img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.js.loaded .arch img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .hero h1 .line > span, .js .arch img { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */

.mt-s { margin-top: 24px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 64px; }
.mb-m { margin-bottom: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Brand proposal page ---------- */

.brand-logos { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 16px; }
.bl { min-height: 220px; border-radius: var(--radius); display: grid; place-items: center; padding: 32px; }
.bl.light { background: var(--bone); }
.bl.dark { background: var(--ink); color: var(--bone); }
.bl.dark .brand-sub { color: var(--muted-on-ink); }
.bl.clay { background: var(--clay); }
.bl .brand img, .bl .brand .mark { width: 56px; height: 56px; }
.bl .brand-name { font-size: 40px; }
.bl .brand-sub { font-size: 11px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sw { border-radius: var(--radius); padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.sw b { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.sw span { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.sw small { font-size: 13px; opacity: .8; }
@media (max-width: 860px) {
  .brand-logos { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
}
