@font-face {
  font-family: Inter;
  src: url('./assets/fonts/inter-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('./assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #111214;
  --ink: #f3f2ee;
  --secondary: #acaeb4;
  --muted: #92969e;
  --line: #303236;
  --accent: #c3cadb;
  --max-width: 1248px;
  --gutter: clamp(24px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg, img { display: block; }
img { max-width: 100%; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; top: 12px; left: 24px; z-index: 5; padding: 8px 16px; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.eyebrow { font-size: .8125rem; font-weight: 400; line-height: 1.5; letter-spacing: .015em; }
.arrow { width: 16px; height: 16px; flex: 0 0 auto; }

.header-inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { width: 193px; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; color: var(--secondary); font-size: .875rem; }
.nav a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.nav a:hover { color: var(--ink); }
.nav-contact { color: var(--ink); }

/* A typographic hero paired with the standalone wordmark. */
.hero { padding-block: 76px 0; }
.hero-label { color: var(--muted); }
.hero-title { margin-top: 30px; max-width: 1060px; font-size: clamp(4rem, 8.4vw, 7.5rem); font-weight: 420; letter-spacing: -.064em; line-height: 1.025; overflow-wrap: anywhere; }
.hero-title span { display: block; }
.hero-title em { display: block; margin-left: .015em; color: var(--accent); font-family: 'Instrument Serif', Georgia, serif; font-size: 1.3em; font-weight: 400; line-height: .98; letter-spacing: -.038em; }
.hero-bottom { margin-top: 40px; padding-bottom: 58px; padding-left: 4px; }
.lede { max-width: 620px; color: var(--secondary); font-size: 1.0625rem; line-height: 1.7; letter-spacing: -.012em; }

.platforms { padding-top: 56px; padding-bottom: 72px; }
.section-heading { padding-bottom: 12px; }
.section-heading h2 { max-width: 720px; font-size: 1.125rem; font-weight: 450; line-height: 1.4; letter-spacing: -.025em; }
.platform { display: grid; grid-template-columns: 48px minmax(210px, .95fr) minmax(0, 1.5fr) 40px; align-items: center; gap: 28px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.platform-number { align-self: start; padding-top: 7px; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.platform-title { display: block; font-size: clamp(1.625rem, 2.5vw, 2rem); font-weight: 450; line-height: 1.2; letter-spacing: -.045em; }
.platform-category { display: block; margin-top: 8px; color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.platform-description { color: var(--secondary); font-size: 1rem; line-height: 1.65; letter-spacing: -.012em; }
.platform-arrow { display: grid; place-items: center; width: 40px; height: 40px; justify-self: end; color: var(--muted); transition: color 160ms ease, transform 160ms ease; }
.platform-arrow .arrow { width: 20px; height: 20px; }
.platform:hover .platform-title, .platform:focus-visible .platform-title { color: var(--accent); }
.platform:hover .platform-arrow, .platform:focus-visible .platform-arrow { color: var(--ink); transform: translate(2px, -2px); }

.services { padding-bottom: 80px; }
.services-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-block: 8px 4px; }
.services .eyebrow { margin-bottom: 20px; color: var(--muted); }
.services h2 { font-size: clamp(1.8rem, 3vw, 2.375rem); font-weight: 430; letter-spacing: -.05em; line-height: 1.2; }
.services-copy { padding-top: 40px; max-width: 420px; }
.services-copy p { color: var(--secondary); font-size: 1rem; line-height: 1.7; }
.services-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 14px; font-size: .875rem; }
.services-link:hover { color: var(--accent); }

.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding-block: 35px 40px; border-top: 1px solid var(--line); }
.footer-symbol { width: 44px; height: auto; margin-bottom: 18px; }
.footer-brand { font-size: .875rem; font-weight: 450; letter-spacing: -.015em; }
.company-location { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.contact { justify-self: end; text-align: right; }
.contact-label { font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.contact-link { display: inline-flex; align-items: center; gap: 20px; font-size: 1rem; letter-spacing: -.025em; min-height: 44px; overflow-wrap: anywhere; }
.contact-link:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 30px; color: var(--muted); font-size: .75rem; }

@media (min-width: 1450px) {
  .hero { padding-top: 84px; }
}
@media (max-width: 960px) {
  .hero-title { font-size: clamp(4rem, 9vw, 6rem); }
  .platform { grid-template-columns: 30px minmax(180px, .9fr) minmax(0, 1.3fr) 32px; gap: 20px; }
  .platform-arrow { width: 32px; height: 32px; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 88px; gap: 20px; }
  .brand img { width: 193px; height: auto; }
  .nav { gap: 0; }
  .nav .nav-work { display: none; }
  .nav-contact span { display: none; }
  .nav-contact { width: 44px; justify-content: flex-end; }
  .hero { padding-top: 52px; }
  .hero-title { margin-top: 28px; font-size: clamp(3.25rem, 10vw, 4.8rem); line-height: 1.07; letter-spacing: -.059em; }
  .hero-title em { font-size: 1.22em; line-height: 1.06; }
  .hero-bottom { margin-top: 30px; padding-left: 0; padding-bottom: 38px; }
  .lede { max-width: 450px; font-size: 1rem; }
  .platforms { padding-block: 48px; }
  .section-heading { padding-bottom: 8px; }
  .platform { grid-template-columns: 26px minmax(0, 1fr) 34px; grid-template-areas: 'number name arrow' '. description description'; gap: 18px 14px; padding-block: 28px; }
  .platform-number { grid-area: number; padding-top: 4px; }
  .platform-name { grid-area: name; }
  .platform-title { font-size: 1.625rem; }
  .platform-description { grid-area: description; }
  .platform-arrow { grid-area: arrow; align-self: start; }
  .platform-category { margin-top: 6px; }
  .services { padding-bottom: 48px; }
  .services-inner { grid-template-columns: 1fr; gap: 24px; }
  .services .eyebrow { margin-bottom: 16px; }
  .services-copy { padding-top: 0; }
  .footer-top { grid-template-columns: 1fr; padding-block: 28px; gap: 24px; }
  .contact { text-align: left; justify-self: start; }
  .contact-label { margin-bottom: 3px; }
}
@media (max-width: 380px) {
  .brand img { width: 178px; }
  .hero-title { font-size: 2.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Nested forms share a foundation without turning the identity into a diagram. */
.hero { position: relative; isolation: isolate; }
.hero-title, .hero-label, .hero-bottom { position: relative; z-index: 1; }
.nested-form { position: absolute; z-index: 0; width: 450px; height: auto; right: 5px; top: 36px; pointer-events: none; opacity: .88; }
.hero-title { max-width: 770px; font-size: clamp(4rem, 7.6vw, 6.75rem); }
@media (max-width: 1100px) and (min-width: 701px) {
 .nested-form { width: 340px; right: 0; top: 115px; opacity: .7; }
 .hero-title { font-size: 5.3rem; }
 .lede { max-width: 440px; }
}
@media (max-width: 700px) {
 .nested-form { position: relative; width: min(88%, 350px); margin: -5px auto -35px; top: auto; right: auto; }
 .hero-title { font-size: clamp(3.25rem, 10vw, 4.8rem); }
 .hero-bottom { margin-top: 22px; }
}
@media (max-width: 380px) { .hero-title { font-size: 2.85rem; } }

.platform-group { border-bottom: 1px solid var(--line); }
.platform-group > .platform { border-bottom: 0; padding-bottom: 24px; }
.platform-showcase { display: grid; grid-template-columns: 48px minmax(210px, .95fr) minmax(0, 1.5fr) 40px; gap: 10px 28px; align-items: start; padding-bottom: 34px; }
.showcase-label { grid-column: 2; align-self: center; }
.showcase-label h3 { font-size: .9375rem; font-weight: 500; letter-spacing: -.015em; }
.showcase-links { grid-column: 3 / 5; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.showcase-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1.0625rem; letter-spacing: -.02em; }
.showcase-links a span { color: var(--muted); font-size: 1rem; }
.showcase-links a:hover { color: var(--accent); }
@media (max-width: 960px) { .platform-showcase { grid-template-columns: 30px minmax(180px, .9fr) minmax(0, 1.3fr) 32px; gap: 10px 20px; } }
@media (max-width: 700px) {
 .platform-group > .platform { padding-bottom: 22px; }
 .platform-showcase { margin-left: 40px; display: block; padding-bottom: 28px; }
 .showcase-links { margin-top: 12px; gap: 10px 25px; }
 .showcase-links a { min-height: 40px; }
}
