@font-face {
  font-family: InterVariable;
  src: url("/assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: InterVariable;
  src: url("/assets/InterVariable-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #f5f5f5;
  --muted: #a3a3a3;
  --line: #292929;
  --hover: #fff;
  --body-text: #bdbdbd;
  --card-background: #111;
  --field-background: #131313;
  --field-border: #777;
  --field-hover: #a3a3a3;
  --button-hover: #d9d9d9;
  --spectrum-line: linear-gradient(90deg, #fa1919, #fa4319, #fa6c19, #fa9619, #fae919, #cbfa19, #78fa19, #25fa19, #19fab3, #19eefa, #199bfa, #1949fa, #5419fa, #7e19fa, #a719fa, #d119fa);
  --page-width: 1200px;
  --gutter: clamp(24px, 5vw, 80px);
  --nav-height: 84px;
  font-family: InterVariable, Inter, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1;
  background: var(--background);
  color: var(--foreground);
}

:root[data-theme="light"],
:root:not([data-theme]):has(.theme-toggle:checked) {
  color-scheme: light;
  --background: #f5f5f5;
  --foreground: #0a0a0a;
  --muted: #5c5c5c;
  --line: #d6d6d6;
  --hover: #000;
  --body-text: #424242;
  --card-background: #eee;
  --field-background: #ececec;
  --field-border: #888;
  --field-hover: #5c5c5c;
  --button-hover: #262626;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
a { color: var(--foreground); text-decoration: underline; text-underline-offset: 0.25em; }
a:hover { color: var(--hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 18px; background: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.document { scroll-margin-top: var(--nav-height); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Reserve the cue's own row; only the logo area shrinks in short viewports. */
.hero { height: 100svh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: clamp(16px, 4dvh, 32px); padding: clamp(24px, 10dvh, 90px) var(--gutter) calc(30px + env(safe-area-inset-bottom, 0px)); position: relative; }
.hero-lockup { width: min(1080px, 100%); height: 100%; min-width: 0; min-height: 0; }
.hero-art { display: block; width: 100%; height: 100%; }
.hero-art-narrow { display: none; }
.hero-art [fill="#F5F5F5"] { fill: var(--foreground); }
.hero-art [stroke="#F5F5F5"] { stroke: var(--foreground); }
.hero-scroll { color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--background); }
.nav-inner, .home-section, .site-footer { width: calc(100% - 2 * var(--gutter)); max-width: var(--page-width); margin-inline: auto; }
.nav-inner { height: var(--nav-height); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); border-image: var(--spectrum-line) 1; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 170px; }
.brand .logo-light { display: none; }
:root[data-theme="light"] .brand .logo-dark,
:root:not([data-theme]):has(.theme-toggle:checked) .brand .logo-dark { display: none; }
:root[data-theme="light"] .brand .logo-light,
:root:not([data-theme]):has(.theme-toggle:checked) .brand .logo-light { display: block; }
.theme-control { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.theme-control:has(.theme-toggle:focus-visible) { outline: 2px solid var(--foreground); outline-offset: 5px; }
.theme-control:hover { color: var(--foreground); }
.theme-control svg { width: 19px; height: 19px; }
.theme-control .theme-moon { display: none; }
.theme-control:has(.theme-toggle:checked) .theme-sun { display: none; }
.theme-control:has(.theme-toggle:checked) .theme-moon { display: block; }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-left: auto; }
nav a { flex-shrink: 0; font-size: 14px; line-height: 24px; text-decoration: none; white-space: nowrap; }
.home-section { padding: clamp(80px, 10vw, 140px) 0; display: grid; grid-template-columns: 1fr 3fr; gap: 56px; scroll-margin-top: var(--nav-height); }
.home-section + .home-section { border-top: 1px solid var(--line); }
.home-section h2 { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.statement, .document h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.2; }
.statement { margin-bottom: 32px; }
.body-copy { max-width: 650px; color: var(--muted); }
.body-copy p:last-child { margin-bottom: 0; }
.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.expertise { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-background); }
.expertise h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.expertise p { color: var(--muted); margin: 0; max-width: 32ch; }
.contact-section { padding-bottom: 120px; }
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 28px; }
.footer-links { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: inherit; }
.site-footer a { font-size: 12px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.site-footer a:hover { color: var(--foreground); }
.document { max-width: 850px; padding: 80px var(--gutter) 100px; margin: auto; }
.document h1 { margin-bottom: 40px; overflow-wrap: anywhere; hyphens: auto; }
.document h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 20px; }
.document p, .document address { color: var(--body-text); overflow-wrap: anywhere; }
.document address { margin-bottom: 1em; }
.document article + article { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
.document section + section { margin-top: 40px; }
.contact-document { max-width: 760px; }
form { margin-top: 48px; }
form + p { margin-top: 40px; }
label { display: inline-block; font-size: 14px; margin-bottom: 10px; }
input, textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--field-border); border-radius: 3px; background: var(--field-background); color: var(--foreground); font: inherit; }
textarea { resize: vertical; min-height: 190px; }
input:hover, textarea:hover { border-color: var(--field-hover); }
button { padding: 13px 28px; border: 1px solid var(--foreground); border-radius: 3px; background: var(--foreground); color: var(--background); font: inherit; cursor: pointer; }
button:hover { background: var(--button-hover); }
.privacy-note { font-size: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* BEGIN hero motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll(root block)) and (animation-range: 0px 1px) {
    .homepage { --hero-travel: 50svh; }
    .hero-stage { height: calc(100dvh + var(--hero-travel)); position: relative; z-index: 6; pointer-events: none; }
    .hero-stage .hero { position: sticky; top: 0; isolation: isolate; background: var(--background); pointer-events: auto; animation: hero-reveal 1ms linear both; animation-timeline: scroll(root block); animation-range: calc(var(--hero-travel) * 0.90) var(--hero-travel); }
    /* Cover toolbar-collapse growth without resizing the Hero's content or flow. */
    .hero-stage .hero::before { content: ""; position: absolute; inset: 0 0 auto; height: max(100%, 100lvh); z-index: -1; background: var(--background); pointer-events: none; }
    .homepage > .site-header { margin-top: -100dvh; }
    .hero-lockup, .hero-scroll { animation: hero-opacity-out 1ms linear both; animation-timeline: scroll(root block); animation-range: calc(var(--hero-travel) * 0.80) calc(var(--hero-travel) * 0.90); }
    .hero-ray {
      animation: hero-opacity-out 1ms linear both, hero-ray-in 1ms linear forwards;
      animation-timeline: scroll(root block), scroll(root block);
      animation-range: 0px calc(var(--hero-travel) * 0.04), calc(var(--hero-travel) * (0.04 + var(--ray-step) * 0.04)) calc(var(--hero-travel) * (0.04 + (var(--ray-step) + 3) * 0.04));
    }
    .hero-axis {
      animation: hero-opacity-out 1ms linear both, hero-ray-in 1ms linear forwards;
      animation-timeline: scroll(root block), scroll(root block);
      animation-range: 0px calc(var(--hero-travel) * 0.04), calc(var(--hero-travel) * 0.04) calc(var(--hero-travel) * 0.76);
    }
    .hero-ray-01 { --ray-step: 0; }
    .hero-ray-02 { --ray-step: 1; }
    .hero-ray-03 { --ray-step: 2; }
    .hero-ray-04 { --ray-step: 3; }
    .hero-ray-05 { --ray-step: 4; }
    .hero-ray-06 { --ray-step: 5; }
    .hero-ray-07 { --ray-step: 6; }
    .hero-ray-08 { --ray-step: 7; }
    .hero-ray-09 { --ray-step: 8; }
    .hero-ray-10 { --ray-step: 9; }
    .hero-ray-11 { --ray-step: 10; }
    .hero-ray-12 { --ray-step: 11; }
    .hero-ray-13 { --ray-step: 12; }
    .hero-ray-14 { --ray-step: 13; }
    .hero-ray-15 { --ray-step: 14; }
    .hero-ray-16 { --ray-step: 15; }
    @keyframes hero-opacity-out {
      from { opacity: 1; }
      to { opacity: 0; }
    }
    @keyframes hero-ray-in {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes hero-reveal {
      from { opacity: 1; visibility: visible; }
      to { opacity: 0; visibility: hidden; }
    }
  }
}
/* END hero motion. */

@media (max-width: 760px) {
  :root { --nav-height: 124px; }
  .hero-lockup { width: min(78vw, 350px); }
  .hero-art-wide { display: none; }
  .hero-art-narrow { display: block; }
  .nav-inner { position: relative; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding-block: 14px; min-width: min-content; margin-inline: var(--gutter); }
  .brand img { width: 140px; }
  nav { width: 100%; justify-content: space-between; gap: 20px; }
  nav a { padding-block: 8px; }
  .home-section { grid-template-columns: 1fr; gap: 28px; padding-block: 70px; }
  .home-section h2 { margin: 0; }
  .expertise-grid { grid-template-columns: 1fr; gap: 16px; }
  .expertise { padding: 22px; }
  .document { padding-top: 56px; }
  .expertise p { max-width: none; }
  .site-footer { gap: 14px; }
}

@media (max-width: 380px) {
  :root { --nav-height: 168px; }
  body { min-width: min-content; }
  nav { display: grid; grid-template-columns: repeat(2, minmax(max-content, 1fr)); gap: 0 20px; }
}
