/* Opus Solutions: foundation. Tokens, type, nav, hero, buttons, section frame, reveals, footer. */
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/InterTight-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0E0B0B;
  --bg-2: #171717;
  --bg-3: #1F1F1F;
  --text: #F4F1EB;
  --prose: #E5E5E5;
  --soft: #8a8986;
  --mute: #626262;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --blue: #465BFF;
  --blue-600: #3043E0;
  --blue-300: #A0B6FF;
  --sand: #EEECDD;
  --steel: #828893;
  --card-light: #a5afc0;
  --card-dark: #2d2828;
  --card-slate: #57657a;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", "URW Palladio L", serif;
  --sans: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(clamp(16px, 4.7vw, 68px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --content: 1304px;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-h2: clamp(34px, 3.3vw, 48px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.01em; color: var(--text); }
.h2--center { text-align: center; }
.label { font-family: var(--sans); font-size: 11px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.lede { font-size: 16px; line-height: 1.5; color: var(--soft); max-width: 46ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 4px; font-size: 14px; font-weight: 450; letter-spacing: -0.005em; white-space: nowrap; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.btn--white { background: #fff; color: #111; }
.btn--white:hover { background: var(--sand); }
.btn--blue { background: var(--blue); color: #fff; height: 38px; padding: 0 16px; }
.btn--blue:hover { background: var(--blue-600); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-top: 1.4px solid currentColor; border-right: 1.4px solid currentColor; transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.35s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(14, 11, 11, 0.86); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.nav__logo img { height: 19px; width: auto; }
.nav__links { display: flex; gap: 40px; font-size: 14px; }
.nav__links a { color: var(--text); opacity: 0.92; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 0.6; }
.nav__cta { justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav__chat { transition: opacity 0.2s; }
.nav__chat:hover { opacity: 0.6; }
.nav__burger { display: none; width: 36px; height: 36px; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
.nav__burger span:first-child { top: 14px; }
.nav__burger span:last-child { top: 21px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 17.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 17.5px; transform: rotate(-45deg); }
.nav__sheet { display: grid; gap: 4px; padding: 8px var(--gutter) 22px; background: rgba(14, 11, 11, 0.97); border-bottom: 1px solid var(--line); }
.nav__sheet a { padding: 12px 0; font-size: 20px; font-family: var(--serif); border-bottom: 1px solid var(--line); }
.nav__sheet .btn { margin-top: 14px; height: 44px; font-family: var(--sans); font-size: 15px; border: 0; }
.nav__sheet[hidden] { display: none; }
@media (max-width: 959px) {
  .nav__links, .nav__chat { display: none; }
  .nav__in { grid-template-columns: 1fr auto; }
  .nav__burger { display: block; }
  .nav__cta { gap: 10px; }
}
@media (max-width: 420px) { .nav__cta .btn--white { display: none; } }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #000; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__stage { position: absolute; inset: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__stage.is-live .hero__canvas { opacity: 1; }
.hero__veil { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 70%), linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 60%, rgba(14, 11, 11, 0.9) 100%); pointer-events: none; }
.hero__copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter) clamp(56px, 9vh, 96px); display: flex; flex-direction: column; align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.75vw, 54px); line-height: 1.02; letter-spacing: -0.012em; color: #fff; }
.hero__line { display: inline-block; }
.hero__sub { margin-top: 18px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.4; color: rgba(255, 255, 255, 0.9); max-width: 34em; }
.hero__actions { margin-top: 26px; display: flex; gap: 12px; }
.hero__cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 22px; height: 34px; margin-left: -11px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 12px; }
.hero__cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: #fff; border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@media (max-width: 600px) { .hero__cue { display: none; } .hero__title { font-size: 34px; } }

/* Hero intro: pure CSS, so the first frame never depends on scripts */
[data-in] { animation: heroIn 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 120ms); }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out) calc(var(--d, 0) * 1ms), transform 1s var(--ease-out) calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Sections */
.section { position: relative; padding: clamp(88px, 11vw, 168px) 0; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--left { align-items: flex-start; text-align: left; }
.sample { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: currentColor; opacity: 0.62; }

/* Footer */
.foot { position: relative; padding: clamp(72px, 9vw, 120px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 32px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot__col h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.foot__col a { color: var(--text); width: fit-content; transition: opacity 0.2s; }
.foot__col a:hover { opacity: 0.6; }
.foot__col p { color: var(--soft); font-size: 13px; line-height: 1.5; max-width: 28ch; }
.foot__mark { margin: clamp(72px, 9vw, 120px) 0 24px; position: relative; }
.foot__mark img { width: 100%; height: auto; opacity: 0.11; -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.1) 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.1) 100%); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--serif); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 900px) { .foot__cols { grid-template-columns: repeat(2, 1fr); } .foot__col--contact { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-in] { animation: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__cue span { animation: none; }
}
