/* Jack Kahn — Operations & Software
   Shared stylesheet. Warm paper, ink, one marine accent. No gradients, no cards-with-icons. */

@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-opsz-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-opsz-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f5f1;
  --paper-2: #ecebe5;
  --paper-3: #dfded6;
  --ink: #0f1b2d;
  --ink-2: #3d4757;
  --muted: #5d6979;
  --line: #d3d5d3;
  --line-2: #b3b8bb;
  --marine: #1c4f92;
  --marine-2: #123a6e;
  --marine-tint: #dbe5f2;
  --stamp: #b5432a;
  --ok: #2f6b3a;
  --warn: #a6751a;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Plex Sans', 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'Plex Mono', 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 0;
}
::selection { background: var(--marine); color: #fff; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, .link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
p a:hover, li a:hover, .link:hover { text-decoration-color: var(--marine); color: var(--marine); }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; margin: 0; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-variation-settings: 'opsz' 40; }
h4, .h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; line-height: 1.2; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.small { font-size: 14.5px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.label { font-family: var(--serif); font-style: italic; font-size: 16px; font-weight: 450; letter-spacing: 0; color: var(--muted); font-variation-settings: 'opsz' 20; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
em { font-style: italic; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(246,245,241,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.wordmark { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--marine-2); }
.wordmark .badge { width: 40px; height: 40px; display: block; }
.wordmark .desc { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
nav.primary { margin-left: auto; display: flex; gap: 26px; }
nav.primary a { font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
nav.primary a:hover { color: var(--ink); }
nav.primary a.on { color: var(--ink); border-bottom-color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); font: inherit; font-size: 13px; padding: 6px 12px; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .wordmark .desc { display: none; }
  .nav-toggle { display: inline-block; }
  nav.primary { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
section.flush { padding-top: 0; border-top: 0; }
.sec-head { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head .label { padding-top: 10px; }
.sec-head h2 { max-width: 20ch; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 8px; } }

.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.g-5-7 { grid-template-columns: 5fr 7fr; }
.g-7-5 { grid-template-columns: 7fr 5fr; }
@media (max-width: 860px) { .g2, .g3, .g-2-1, .g-1-2, .g-5-7, .g-7-5 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(40px, 6vw, 80px); border-top: 0; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--marine); }
.hero .lede { margin-top: 28px; }
.hero-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
@media (max-width: 860px) { .hero-meta { grid-template-columns: 1fr 1fr; } }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta b { font-family: var(--serif); font-size: 30px; font-weight: 480; font-variation-settings: 'opsz' 48; letter-spacing: -0.01em; line-height: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 14px/1 var(--sans); letter-spacing: .01em; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; }
.btn:hover { background: var(--marine); border-color: var(--marine); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { font-family: var(--mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Ledger table (used for services / facts) ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--line); }
.ledger th { font: 500 13px/1.4 var(--sans); color: var(--muted); }
.ledger tr:last-child td { border-bottom: 1px solid var(--line); }
.ledger td.k { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); width: 70px; }
.ledger td.t { font-family: var(--serif); font-size: 24px; font-weight: 480; font-variation-settings: 'opsz' 40; letter-spacing: -0.01em; width: 34%; padding-right: 32px; }
.ledger td p { margin: 0 0 .6em; max-width: 60ch; }
.ledger td p:last-child { margin-bottom: 0; }
.ledger .tag { display: inline-block; font: 400 13px/1 var(--sans); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); margin: 2px 6px 2px 0; }
@media (max-width: 760px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: auto; }
  .ledger thead { display: none; }
  .ledger td { padding: 6px 0; border: 0; }
  .ledger tr { padding: 20px 0; border-top: 1px solid var(--line); }
  .ledger td.t { width: auto; padding-right: 0; }
}

/* ---------- Work list ---------- */
.work-item { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); align-items: start; transition: grid-template-columns .25s ease; }
.work-item .meta { display: flex; flex-direction: column; gap: 14px; }
.work-item.expanded, .grid.expanded { grid-template-columns: 1fr !important; }
.work-item:first-of-type { border-top: 0; padding-top: 0; }
.work-item .meta .label { display: block; }
.work-item h3 { max-width: 22ch; }
.work-item .client { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.work-item .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 18px; margin-top: 8px; }
.work-item .facts b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 480; font-variation-settings: 'opsz' 40; line-height: 1; letter-spacing: -0.01em; }
.work-item .facts span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 860px) { .work-item { grid-template-columns: 1fr; } }

/* ---------- Demo frame ---------- */
.frame { background: var(--ink); border: 1px solid var(--ink); padding: 6px; box-shadow: 0 30px 60px -30px rgba(23,22,15,.45); }
.frame .bar { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px 4px; }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3f3c33; display: inline-block; }
.frame .bar span { margin-left: auto; font: 400 12px var(--sans); color: #9a9588; }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0c0b09; cursor: zoom-in; }
.expanded .frame video { cursor: zoom-out; }
.frame .bar .expand { margin-left: auto; font: 500 12px var(--sans); color: #f5f0e6; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.frame .bar .expand:hover { background: rgba(255,255,255,.22); }
.frame .bar span { margin-left: 12px; }
.frame video:fullscreen { object-fit: contain; cursor: default; }
.frame-note { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 15px; color: var(--muted); flex-wrap: wrap; }
.frame-note .fs { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
.frame-note a { color: var(--ink); }

/* ---------- Principles / approach ---------- */
.principle { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .n { font-family: var(--serif); font-size: 30px; font-weight: 400; font-variation-settings: 'opsz' 48; color: var(--muted); line-height: 1; padding-top: 4px; }
.principle h3 { margin-bottom: 10px; }
.principle p { max-width: 62ch; }
.principle p:last-child { margin-bottom: 0; }

/* Trust boundary diagram */
.boundary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px solid var(--line-2); margin: 40px 0 8px; background: var(--paper-2); }
.boundary > div { padding: 22px 22px 24px; border-right: 1px solid var(--line-2); min-height: 100%; }
.boundary > div:last-child { border-right: 0; }
.boundary .label { display: block; margin-bottom: 12px; }
.boundary .h4 { font-family: var(--serif); font-size: 22px; font-weight: 480; font-variation-settings: 'opsz' 40; margin-bottom: 8px; }
.boundary p { font-size: 15px; margin: 0; color: var(--ink-2); }
.boundary .who { margin-top: 16px; font: 500 12.5px var(--sans); padding: 5px 10px; display: inline-block; border-radius: 999px; }
.boundary .who.ai { background: var(--paper-3); color: var(--ink-2); }
.boundary .who.code { background: var(--marine); color: #fff; }
.boundary .who.human { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .boundary { grid-template-columns: 1fr; } .boundary > div { border-right: 0; border-bottom: 1px solid var(--line-2); } .boundary > div:last-child { border-bottom: 0; } }

/* ---------- Pull quote ---------- */
.pull { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; max-width: 30ch; font-variation-settings: 'opsz' 60; }
.pull em { color: var(--marine); }

/* ---------- Definition list ---------- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 24px; font-size: 15.5px; }
.dl dt { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.dl dd { margin: 0; }
@media (max-width: 600px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 12px; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--ink); padding: 40px 0 56px; margin-top: clamp(40px, 6vw, 80px); }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; font-size: 14px; color: var(--ink-2); }
footer .wrap > div:last-child { text-align: right; }
footer a:hover { color: var(--marine); }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } footer .wrap > div:last-child { text-align: left; } }

/* ---------- Prose page ---------- */
.prose { max-width: 66ch; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(26px, 3vw, 34px); }
.prose h3 { margin: 32px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--marine); outline-offset: 1px; border-color: var(--marine); }
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- Misc ---------- */
.stamp { display: inline-block; font: 500 12px var(--sans); border: 1.5px solid var(--stamp); color: var(--stamp); padding: 5px 9px; transform: rotate(-2deg); }
.note { border-left: 2px solid var(--marine); padding: 4px 0 4px 18px; color: var(--ink-2); font-size: 15.5px; }
.tight { max-width: 60ch; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 12px } .mt-2 { margin-top: 24px } .mt-3 { margin-top: 40px } .mt-4 { margin-top: 64px }
.mb-2 { margin-bottom: 24px }
.skip { position: absolute; left: -9999px; }

/* sub-page heroes */
.hero.sub { padding-bottom: 0; }
.hero.sub h1 { font-size: clamp(32px, 4.4vw, 54px); max-width: 24ch; }
.hero.sub .lede { margin-top: 22px; }


/* ---------- Photos ---------- */
.photo { display: block; width: 100%; object-fit: cover; background: var(--paper-3); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: clamp(40px, 6vw, 72px); }
.strip figure { margin: 0; min-width: 0; }
.strip .photo { aspect-ratio: 4 / 3; }
.strip figcaption, .gallery figcaption, .case-photo figcaption { font: italic 400 14.5px var(--serif); font-variation-settings: 'opsz' 20; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery .photo { aspect-ratio: 4 / 3; }
.gallery figure.tall { grid-row: span 2; } .gallery figure.wide { grid-column: 1 / -1; } .gallery figure.wide .photo { aspect-ratio: 3 / 1; object-position: 50% 12%; } .gallery figure.tall .photo { aspect-ratio: auto; height: 100%; }
.case-photo { margin: 24px 0 0; }
.case-photo .photo { aspect-ratio: 3 / 2; }
.case-photo.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-photo.pair figure { margin: 0; min-width: 0; }
.badge-lg { width: clamp(180px, 22vw, 280px); height: auto; display: block; }
.firm-block { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr 1fr; } .gallery { grid-template-columns: 1fr 1fr; } .firm-block { grid-template-columns: 1fr; } .case-photo.pair { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide .photo { aspect-ratio: 4 / 3; } }

/* ---------- Client logos ---------- */
.clients { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.clients .label { margin-right: 8px; }
.clients img { height: 60px; width: auto; display: block; }
.clients a:hover img { opacity: .8; }
.dl img.brand { height: 34px; width: auto; display: block; margin-bottom: 8px; }
.exposure { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-2); background: var(--paper-2); margin-top: 32px; }
.exposure > div { padding: 24px; }
.exposure > div:first-child { border-right: 1px solid var(--line-2); }
.exposure .h4 { font-family: var(--serif); font-size: 22px; font-weight: 520; font-variation-settings: 'opsz' 40; margin-bottom: 10px; }
.exposure ul { padding-left: 18px; margin: 0; font-size: 15px; color: var(--ink-2); }
.exposure li { margin-bottom: 8px; }
.exposure li:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .exposure { grid-template-columns: 1fr; } .exposure > div:first-child { border-right: 0; border-bottom: 1px solid var(--line-2); } .clients img { height: 34px; } }

/* The firm's name, set in the display face wherever it appears in text */
.jfc { font-family: var(--serif); font-weight: 600; font-variation-settings: 'opsz' 40; letter-spacing: -0.005em; color: var(--marine-2); white-space: nowrap; }
footer .jfc, .small .jfc { font-weight: 560; }
.work-item .client { display: flex; align-items: center; gap: 10px; }
.work-item .client img { height: 36px; width: auto; }



/* ---------- AI privacy band ---------- */
.privacy { background: var(--ink); color: var(--paper); border-top: 0; }
.privacy .sec-head .label { color: #a9b3c2; }
.privacy .sec-head h2 { color: #fff; max-width: 24ch; }
.privacy .lede { color: #c9d0da; }
.ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); margin-top: 8px; }
.ptiles > div { background: var(--ink); padding: 26px 24px 28px; min-width: 0; }
.ptiles b { display: block; font-family: var(--serif); font-weight: 520; font-size: clamp(22px, 2vw, 27px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; margin-bottom: 10px; font-variation-settings: 'opsz' 40; }
.ptiles b em { color: #8fc1e3; font-style: italic; }
.ptiles p { margin: 0; font-size: 15.5px; color: #c9d0da; line-height: 1.5; }
.privacy .btn-row { margin-top: 32px; }
.privacy .btn { background: #fff; color: var(--ink); border-color: #fff; }
.privacy .btn:hover { background: #8fc1e3; border-color: #8fc1e3; color: var(--ink); }
.privacy .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.privacy .btn.ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 900px) { .ptiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ptiles { grid-template-columns: 1fr; } }

/* ---------- Color accents ---------- */
:root { --accent: var(--marine); --accent-soft: var(--marine-tint); }
.label { color: var(--accent-ink, var(--accent)); }
.hero-meta b { color: var(--marine-2); }
.hero-meta div { border-left: 3px solid var(--marine); padding-left: 14px; }
.ledger td.k { color: var(--marine); }
.ledger .tag { background: var(--marine-tint); border-color: transparent; color: var(--marine-2); }
.sec-head h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--accent); margin-top: 18px; border-radius: 2px; }
.privacy .sec-head h2::after { background: #8fc1e3; }
footer { border-top: 4px solid var(--marine); }
.principle .n { color: var(--marine); }
.boundary > div:nth-child(1) { border-top: 4px solid #a9b3c2; }
.boundary > div:nth-child(2) { border-top: 4px solid var(--marine); }
.boundary > div:nth-child(3) { border-top: 4px solid var(--ink); }
.dl dt { color: var(--accent-ink, var(--accent)); }
.note { border-left-color: var(--accent); }
.work-item .facts b { color: var(--accent-ink, var(--accent)); }
.work-item .label { color: var(--accent-ink, var(--accent)); }
.work-item .client { color: var(--ink-2); }
.frame { border-top: 5px solid var(--accent); }
.frame .bar .expand { background: var(--accent-ink, var(--accent)); border-color: var(--accent-ink, var(--accent)); color: #fff; }
.frame .bar .expand:hover { filter: brightness(1.12); }
.frame-note a, .frame-note .fs, .frame-note .pause { color: var(--accent-ink, var(--accent)); }
.case-photo figcaption::before, .gallery figcaption::before, .strip figcaption::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
/* per-brand palettes */
.brand-verea { --accent: #b0492f; --accent-ink: #9c3a22; --accent-soft: #f4e4dd; }
.brand-gb { --accent: #0088cb; --accent-ink: #00679a; --accent-soft: #e3f2fb; }
.brand-sff { --accent: #6aa639; --accent-ink: #3d7519; --accent-soft: #e9f2dd; }
.brand-verea .client, .brand-gb .client, .brand-sff .client { color: var(--accent-ink); font-weight: 500; }
section.brand-verea, section.brand-gb, section.brand-sff { border-top: 1px solid var(--line); }
section[class*="brand-"] .sec-head .label::before, .work-item[class*="brand-"] .label::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: middle; }
.work-item[class*="brand-"] .facts { border-left: 3px solid var(--accent-soft); padding-left: 16px; }
.qb-band { border-top: 4px solid #2ca01c; }
.qb-band .label, .qb-band .sec-head h2::after { color: #1f7a15; background: #2ca01c; }
.qb-band .label { background: none; }
.qb-band h3 { color: var(--ink); }

/* ---------- Gradients ---------- */
body { background: linear-gradient(180deg, #f8f8f5 0%, var(--paper) 40%, #eef1f4 100%); }
.hero { background: radial-gradient(900px 520px at 88% -10%, rgba(28,79,146,.18) 0%, rgba(28,79,146,0) 60%), radial-gradient(700px 400px at 0% 100%, rgba(143,193,227,.22) 0%, rgba(143,193,227,0) 60%); }
main > section:nth-of-type(even):not(.privacy):not(.hero) { background: linear-gradient(135deg, rgba(28,79,146,.07) 0%, rgba(28,79,146,0) 45%, rgba(143,193,227,.14) 100%); }
main > section:nth-of-type(odd):not(.privacy):not(.hero) { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 100%); }
.privacy { background: linear-gradient(160deg, #0f1b2d 0%, #12305a 55%, #0f1b2d 100%); }
.ptiles > div { background: rgba(15,27,45,.55); }
.qb-band { background: linear-gradient(135deg, rgba(44,160,28,.10) 0%, rgba(44,160,28,0) 50%, rgba(28,79,146,.06) 100%) !important; }
.work-item.brand-verea { background: linear-gradient(90deg, rgba(176,73,47,.07) 0%, rgba(176,73,47,0) 38%); }
.work-item.brand-gb { background: linear-gradient(90deg, rgba(0,136,203,.08) 0%, rgba(0,136,203,0) 38%); }
.work-item.brand-sff { background: linear-gradient(90deg, rgba(106,166,57,.09) 0%, rgba(106,166,57,0) 38%); }
.work-item[class*="brand-"] { padding-left: clamp(16px, 2vw, 28px); margin-left: calc(-1 * clamp(16px, 2vw, 28px)); border-radius: 6px 0 0 6px; }
section.brand-verea { background: linear-gradient(135deg, rgba(176,73,47,.08) 0%, rgba(176,73,47,0) 50%) !important; }
section.brand-gb { background: linear-gradient(135deg, rgba(0,136,203,.09) 0%, rgba(0,136,203,0) 50%) !important; }
section.brand-sff { background: linear-gradient(135deg, rgba(106,166,57,.10) 0%, rgba(106,166,57,0) 50%) !important; }
.boundary { background: linear-gradient(135deg, var(--paper-2) 0%, #e6ebf1 100%); }
.exposure { background: linear-gradient(135deg, var(--paper-2) 0%, #e6ebf1 100%); }
footer { background: linear-gradient(180deg, rgba(28,79,146,.06) 0%, rgba(28,79,146,.14) 100%); }
.site-head { background: linear-gradient(180deg, rgba(246,245,241,.98), rgba(246,245,241,.88)); }

/* ---------- Opening animation ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: radial-gradient(80% 60% at 50% 40%, #16386a 0%, #0f1b2d 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transform: translateY(0); }
.intro img { width: clamp(240px, 34vw, 420px); height: auto; opacity: 0; transform: translateY(120px) scale(.7); filter: drop-shadow(0 24px 60px rgba(0,0,0,.45)); }
.intro .name { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5vw, 60px); color: #fff; letter-spacing: -0.01em; opacity: 0; transform: translateY(24px); }
.intro .desc { font-family: var(--sans); font-size: 16px; color: #a9b3c2; letter-spacing: .04em; opacity: 0; }
.intro.go img { animation: intro-badge 2.4s cubic-bezier(.16,.9,.2,1) .4s forwards; }
.intro.go .name { animation: intro-text 1.4s ease-out 2.3s forwards; }
.intro.go .desc { animation: intro-text 1.2s ease-out 3.2s forwards; }
.intro.leave { animation: intro-leave 1.4s cubic-bezier(.75,0,.2,1) forwards; }
body.intro-on { overflow: hidden; }
body.intro-on main, body.intro-on .site-head, body.intro-on footer { opacity: 0; }
body.intro-reveal main, body.intro-reveal .site-head, body.intro-reveal footer { opacity: 1; transition: opacity 1.2s ease-out .3s; }
@keyframes intro-badge { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes intro-text { to { opacity: 1; transform: none; } }
@keyframes intro-leave { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } body.intro-on main, body.intro-on .site-head, body.intro-on footer { opacity: 1; } }

.intro::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 42%, rgba(143,193,227,.28) 0%, rgba(143,193,227,0) 70%); opacity: 0; animation: intro-glow 2.4s ease-out .4s forwards; pointer-events: none; }
@keyframes intro-glow { to { opacity: 1; } }
/* intro ocean */
.intro .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 22vh, 220px); opacity: 0; animation: intro-text 1.6s ease-out .2s forwards; pointer-events: none; }
.intro .waves path { fill: #8fc1e3; }
.intro .waves .w1 { opacity: .14; animation: wave-l 16s linear infinite; }
.intro .waves .w2 { opacity: .22; animation: wave-r 11s linear infinite; }
.intro .waves .w3 { opacity: .38; animation: wave-l 7.5s linear infinite; }
@keyframes wave-l { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
@keyframes wave-r { from { transform: translateX(-1440px); } to { transform: translateX(0); } }
.intro img, .intro .name, .intro .desc { position: relative; z-index: 1; }


/* ---------- Header darkens on scroll ---------- */
.site-head { transition: background .35s ease, border-color .35s ease, box-shadow .35s ease; }
.site-head .wordmark, nav.primary a, .nav-toggle { transition: color .35s ease; }
.site-head.scrolled { background: linear-gradient(180deg, #0f1b2d 0%, #12305a 100%); border-bottom-color: rgba(255,255,255,.12); box-shadow: 0 10px 30px -18px rgba(15,27,45,.6); }
.site-head.scrolled .wordmark { color: #fff; }
.site-head.scrolled .wordmark .desc { color: #a9b3c2; }
.site-head.scrolled nav.primary a { color: #c9d0da; }
.site-head.scrolled nav.primary a:hover { color: #fff; }
.site-head.scrolled nav.primary a.on { color: #fff; border-bottom-color: #8fc1e3; }
.site-head.scrolled .nav-toggle { color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 760px) { .site-head.scrolled nav.primary { background: #0f1b2d; } .site-head.scrolled nav.primary a { border-bottom-color: rgba(255,255,255,.12); } }

.clients-band { padding: 40px 0; }
.clients-band .clients { margin-top: 0; padding-top: 0; border-top: 0; justify-content: center; }

.thesis-band .thesis { align-items: center; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; border-radius: 2px; }
.site-head.scrolled :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 500; border-radius: 4px; }
.skip-link:focus { top: 12px; outline: 3px solid #fff; }
.frame-note .pause { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; margin-left: 10px; }
.legal .prose h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 44px 0 12px; font-variation-settings: 'opsz' 40; }
.legal .prose h3 { font-size: 19px; margin: 26px 0 8px; }
.legal .prose { max-width: 72ch; }
.legal .prose ul { padding-left: 22px; margin: 0 0 1.1em; }
.legal .prose li { margin-bottom: 6px; }
.legal .toc { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal .toc a { white-space: nowrap; }
footer .legal-links { display: block; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .intro .waves path { animation: none; } }

.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; }

/* ---------- phone demo frames ---------- */
@media (max-width: 640px) {
  .frame.phone { max-width: 300px; margin: 0 auto; border-radius: 28px; padding: 8px 8px 10px; border-top-width: 1px; box-shadow: 0 0 0 3px var(--accent-ink, var(--accent)), 0 24px 50px -24px rgba(15,27,45,.55); }
  .frame.phone .bar { justify-content: center; height: 22px; padding: 0 0 6px; }
  .frame.phone .bar i, .frame.phone .bar .expand { display: none; }
  .frame.phone .bar span { margin: 0; font-size: 11px; }
  .frame.phone video { aspect-ratio: 390 / 844; border-radius: 20px; cursor: default; }
  .frame-note { flex-wrap: wrap; gap: 6px 14px; justify-content: center; text-align: center; }
}

/* Home: the apps running on an iPad and an Android tablet */
.devices { margin-top: 48px; display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px 36px; align-items: end; }
.device { margin: 0; min-width: 0; }
.device .screen { position: relative; overflow: hidden; background: #000; container-type: inline-size; }
.device video { display: block; width: 100%; height: auto; object-fit: cover; background: #0c0b09; }
.device .sbar { display: flex; justify-content: space-between; align-items: center; font: 600 1.25cqw/1 -apple-system, 'Helvetica Neue', Arial, sans-serif; padding: 0 2.2cqw; letter-spacing: .01em; }
.device .sbar .ic { display: inline-flex; align-items: center; gap: .7cqw; }
.device .sbar svg { width: 1.6cqw; height: 1.2cqw; }
.device .batt { display: inline-block; width: 2.5cqw; height: 1.15cqw; border: .12cqw solid currentColor; border-radius: .3cqw; padding: .12cqw; position: relative; opacity: .9; }
.device .batt b { display: block; height: 100%; width: 82%; background: currentColor; border-radius: .12cqw; }
.device .batt::after { content: ''; position: absolute; right: -.4cqw; top: 30%; height: 40%; width: .2cqw; background: currentColor; border-radius: 0 1px 1px 0; }
/* iPad: even dark bezel, rounded corners, aluminium edge, camera on the long edge */
.ipad { position: relative; background: #1b1b1d; border-radius: 4.2% / 5.6%; padding: 3.6%; box-shadow: 0 0 0 1.5px #bfc1c6, 0 0 0 3px #e4e5e8, 0 40px 70px -34px rgba(15,27,45,.55); }
.ipad::before { content: ''; position: absolute; top: 1.6%; left: 50%; width: .9%; aspect-ratio: 1; border-radius: 50%; background: #34363b; transform: translateX(-50%); }
.ipad .screen { border-radius: 1.4% / 1.9%; }
.ipad .sbar { height: 2.34cqw; background: #eaf4fb; color: #111827; }
/* Android tablet: thinner black bezel, squarer corners, centred front camera, gesture bar */
.android { position: relative; background: #0d0d0f; border-radius: 3.2% / 5.2%; padding: 2.6%; box-shadow: 0 0 0 1.5px #3b3d42, 0 40px 70px -34px rgba(15,27,45,.55); }
.android::before { content: ''; position: absolute; top: 1.15%; left: 50%; width: .8%; aspect-ratio: 1; border-radius: 50%; background: #2a2c31; box-shadow: inset 0 0 0 1px #3d4046; transform: translateX(-50%); }
.android .screen { border-radius: .8% / 1.3%; }
.android .sbar { height: 2.4cqw; background: #d6e7cf; color: #14201a; font-family: Roboto, 'Helvetica Neue', Arial, sans-serif; font-weight: 500; }
.android .pill { position: absolute; left: 50%; bottom: 1.1cqw; width: 11cqw; height: .55cqw; border-radius: 1cqw; background: rgba(20,32,26,.55); transform: translateX(-50%); }
.device figcaption { font: italic 400 14.5px var(--serif); font-variation-settings: 'opsz' 20; color: var(--muted); margin-top: 14px; text-align: center; }
.devices-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.devices-pause { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-left: 6px; }
@media (max-width: 640px) {
  .devices { grid-template-columns: 1fr; gap: 22px; margin-top: 36px; }
  .devices .device + .device { width: 94%; justify-self: end; }
}

/* ---------- Deep blue openers and footer (the logo always sits on navy) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(90% 70% at 50% 30%, #1a4176 0%, #12305a 45%, #0f1b2d 100%); border-top: 0; }
.hero.sub { padding-bottom: clamp(48px, 6vw, 80px); }
.hero h1, .hero h2 { color: #fff; }
.hero h1 em, .hero .pull em { color: #8fc1e3; }
.hero .lede, .hero p { color: #c9d0da; }
.hero .label { color: #8fc1e3; }
.hero .jfc { color: #fff; }
.hero a.link, .hero p a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: #8fc1e3; border-color: #8fc1e3; color: var(--ink); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); }
.hero figcaption, .hero .devices-note { color: #a9b3c2; }
.hero .devices-pause { color: #fff; }
.hero .photo { box-shadow: 0 24px 50px -28px rgba(0,0,0,.6); }
.hero :focus-visible { outline-color: #fff; }
.hero .dl dt { color: #8fc1e3; } .hero .dl dd { color: #e6ebf1; }
.hero .badge-lg { filter: drop-shadow(0 20px 44px rgba(0,0,0,.45)); }
/* soft wave line along the bottom of each opener, echoing the intro */
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C 120 6 240 6 360 22 C 480 38 600 38 720 22 C 840 6 960 6 1080 22 C 1200 38 1320 38 1440 22 L1440 46 L0 46 Z' fill='%238fc1e3' fill-opacity='.16'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.hero .wrap { position: relative; z-index: 1; }
footer { background: linear-gradient(170deg, #12305a 0%, #0f1b2d 70%); color: #c9d0da; border-top: 4px solid #8fc1e3; margin-top: 0; }
footer .wrap { color: #c9d0da; align-items: start; }
footer a { color: #fff; }
footer a:hover { color: #8fc1e3; }
footer .jfc { color: #fff; }
footer .small, footer .legal-links { color: #a9b3c2; }
footer :focus-visible { outline-color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 56px; height: 56px; flex: none; }
.site-head { border-bottom-color: rgba(255,255,255,.12); }

/* Header: white over the navy opener, navy over light content */
.site-head:not(.scrolled) { background: rgba(255,255,255,.97); border-bottom-color: rgba(15,27,45,.08); box-shadow: 0 8px 24px -18px rgba(15,27,45,.45); }
.site-head .b-dark { display: none; }
.site-head.scrolled .b-light { display: none; }
.site-head.scrolled .b-dark { display: block; }
