@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }

:root {
  --paper: #fafaf8;
  --ink: #10151e;
  --ink-secondary: #626a76;
  --ink-tertiary: #69717c;
  --line: rgba(16, 21, 30, 0.13);
  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(24px, 4.3vw, 82px);
  --gutter-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  --max-width: 1540px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.19, 0.99);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--font-body); scrollbar-color: rgba(16, 21, 30, 0.42) var(--paper); }
body { display: grid; min-width: 320px; min-height: 100svh; margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); grid-template-rows: auto minmax(0, 1fr) auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: #d9d9d5; color: var(--ink); }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 0.875rem; transform: translateY(-160%); transition: transform 220ms var(--ease-out); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; width: min(100%, var(--max-width)); min-height: 84px; margin-inline: auto; padding: 15px var(--gutter-right) 15px var(--gutter-left); align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.brand-line { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; line-height: 1; text-decoration: none; text-transform: uppercase; white-space: nowrap; gap: 11px; }
.brand-mark { display: block; width: 32px; height: 32px; object-fit: contain; filter: saturate(0.38) contrast(0.96); }
.brand-name { transform: translateY(1px); }
.header-cta, .primary-cta { display: inline-flex; min-height: 52px; padding: 0 26px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ink); box-shadow: 0 12px 28px rgba(16, 21, 30, 0.14); color: #fff; font-weight: 600; line-height: 1; text-decoration: none; transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.header-cta { min-height: 44px; padding-inline: 20px; font-size: 0.84rem; }
.header-cta:hover, .primary-cta:hover { background: #29313d; box-shadow: 0 16px 34px rgba(16, 21, 30, 0.19); transform: translateY(-2px); }

.main-content { display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.hero { display: grid; width: min(100%, var(--max-width)); min-height: 0; margin-inline: auto; padding: clamp(26px, 4.4vh, 52px) var(--gutter-right) clamp(20px, 3vh, 34px) var(--gutter-left); align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr); gap: clamp(36px, 5vw, 92px); }
.hero-message { position: relative; z-index: 1; padding-left: clamp(0px, 0.8vw, 14px); }
.hero h1 { max-width: 800px; margin: 0; font-family: var(--font-display); font-size: clamp(4.25rem, 5.1vw, 5.45rem); font-weight: 520; letter-spacing: -0.04em; line-height: 0.92; text-wrap: balance; }
.hero h1 span { color: #313844; }
.hero-message > p { max-width: 610px; margin: clamp(24px, 3vh, 34px) 0 0; color: var(--ink-secondary); font-size: clamp(1.02rem, 1.25vw, 1.2rem); letter-spacing: -0.01em; line-height: 1.5; text-wrap: balance; }
.hero-actions { display: flex; margin-top: clamp(24px, 3vh, 34px); align-items: center; gap: 22px; }
.primary-cta { min-width: 170px; }
.email-link { color: var(--ink-secondary); font-size: 0.95rem; text-decoration-color: rgba(16, 21, 30, 0.25); transition: color 180ms ease, text-decoration-color 180ms ease; }
.email-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.hero-art { position: relative; display: block; width: min(100%, 640px); aspect-ratio: 16 / 10.5; overflow: hidden; border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px; background: #ececea; box-shadow: 0 28px 70px rgba(16, 21, 30, 0.1); justify-self: end; isolation: isolate; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.72) contrast(0.96) brightness(1.02); }
.video-toggle { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: grid; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(16, 21, 30, 0.14); border-radius: 10px; background: rgba(250, 250, 248, 0.9); box-shadow: 0 8px 24px rgba(16, 21, 30, 0.11); color: var(--ink); cursor: pointer; place-items: center; transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.video-toggle:hover { background: var(--paper); box-shadow: 0 10px 28px rgba(16, 21, 30, 0.16); transform: translateY(-1px); }
.video-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.video-toggle-play { display: none; }
.video-toggle[data-state="paused"] .video-toggle-pause { display: none; }
.video-toggle[data-state="paused"] .video-toggle-play { display: block; }

.services { width: min(100%, var(--max-width)); margin-inline: auto; padding-right: var(--gutter-right); padding-left: var(--gutter-left); }
.service-ledger { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.service-ledger li { display: grid; min-height: 138px; padding: 23px clamp(20px, 2.2vw, 34px); align-items: center; grid-template-columns: 50px minmax(0, 1fr); gap: 18px; }
.service-ledger li + li { border-left: 1px solid var(--line); }
.service-ledger svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.service-ledger h2 { margin: 0; font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.service-ledger p { max-width: 24ch; margin: 8px 0 0; color: var(--ink-secondary); font-size: 0.82rem; line-height: 1.45; }

.site-footer { display: flex; width: min(100%, var(--max-width)); min-height: 62px; margin-inline: auto; padding: 16px var(--gutter-right) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-left); align-items: center; justify-content: center; color: var(--ink-tertiary); font-size: 0.78rem; text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration-color: rgba(16, 21, 30, 0.28); }
.site-footer a:hover { color: var(--ink); }

.not-found { display: flex; min-height: 100svh; padding: 48px var(--gutter); align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.not-found h1 { max-width: 760px; margin: 0; font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 520; letter-spacing: -0.04em; line-height: 0.98; }
.not-found > p:not(.status-pill) { max-width: 48ch; margin: 24px 0 32px; color: var(--ink-secondary); line-height: 1.5; }

@starting-style {
  .site-header { opacity: 0; transform: translateY(-8px); }
  .hero-message { opacity: 0; transform: translateY(12px); }
  .hero-art { opacity: 0; transform: translateX(14px); }
  .service-ledger { opacity: 0; transform: translateY(8px); }
}
.site-header, .hero-message, .hero-art, .service-ledger { opacity: 1; transform: none; transition: opacity 620ms var(--ease-out), transform 680ms var(--ease-out); }
.hero-message { transition-delay: 80ms; }
.hero-art { transition-delay: 130ms; }
.service-ledger { transition-delay: 210ms; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr); gap: 32px; }
  .hero h1 { font-size: clamp(3.6rem, 6.3vw, 4.7rem); }
  .service-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-ledger li:nth-child(3), .service-ledger li:nth-child(4) { border-top: 1px solid var(--line); }
  .service-ledger li:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  body { display: block; }
  .site-header { min-height: 72px; padding-block: 12px; }
  .brand-line { font-size: 0.62rem; letter-spacing: 0.14em; }
  .brand-mark { width: 30px; height: 30px; }
  .header-cta { min-height: 44px; padding-inline: 14px; font-size: 0.8rem; }
  .main-content { display: block; }
  .hero { padding-top: clamp(30px, 5.4vh, 42px); padding-bottom: 42px; align-items: start; grid-template-columns: 1fr; gap: 0; }
  .hero-message { display: contents; }
  .hero h1 { font-size: clamp(3.15rem, 14vw, 4.5rem); line-height: 0.95; }
  .hero-message > p { order: 3; max-width: 34ch; margin-top: 28px; font-size: 1rem; }
  .hero-actions { order: 4; margin-top: 24px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-art { order: 2; width: min(100%, 560px); margin-top: clamp(20px, 4.2vh, 30px); aspect-ratio: 16 / 9; border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px; box-shadow: 0 20px 48px rgba(16, 21, 30, 0.09); justify-self: center; }
  .video-toggle { right: 12px; bottom: 12px; }
  .service-ledger { grid-template-columns: 1fr; }
  .service-ledger li { min-height: 112px; padding-inline: 0; }
  .service-ledger li + li, .service-ledger li:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .site-footer { min-height: 72px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2.72rem, 13.4vw, 3.52rem); }
}

@media (min-width: 761px) and (max-width: 900px) and (max-height: 520px) {
  .site-header { min-height: 72px; padding-block: 12px; }
  .hero { padding-top: 18px; padding-bottom: 22px; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 26px; }
  .hero h1 { font-size: clamp(3rem, 6.2vw, 3.45rem); }
  .hero-message > p { margin-top: 20px; font-size: 0.95rem; line-height: 1.42; }
  .hero-actions { margin-top: 18px; }
  .hero-art { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .video-toggle { display: none; }
}
