/* ==========================================================================
   INITME: BASE, LAYOUT, TYPE, BUTTONS, HEADER, FOOTER, MOTION
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-yellow); color: var(--black); }

:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .menu-overlay :focus-visible { outline-color: var(--accent-yellow); }

.skip-link {
  position: fixed; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--black); color: var(--white); padding: var(--space-3) var(--space-5);
  font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}
.skip-link:focus { top: var(--space-4); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--page-pad), var(--container-max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--grid-gap); }
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.section--alt { background: var(--surface-alt); }
.section--dark, .on-dark { background: var(--black); color: var(--white); }
.rule { border: 0; border-top: 1px solid var(--rule-strong); margin: 0; }

/* ---------- Typography ---------- */
.display, .h2, .h3, .statement, .footer-title { font-family: var(--font-display); }
.display { font-size: var(--fs-hero); line-height: .88; font-weight: 650; letter-spacing: -0.055em; text-transform: uppercase; }
.statement { font-size: var(--fs-statement); line-height: .9; font-weight: 650; letter-spacing: -0.05em; text-transform: uppercase; }
.h2 { font-size: var(--fs-h2); line-height: .95; font-weight: 600; letter-spacing: -0.04em; text-transform: uppercase; }
.h3 { font-size: var(--fs-h3); line-height: 1; font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; }
.lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -0.01em; max-width: 36em; }
.muted { color: var(--text-muted); }
.on-dark .muted, .section--dark .muted { color: var(--text-muted-inverse); }
.label, .eyebrow {
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.3;
}
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent-orange); border-radius: 50%; flex: none; }
.num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.accent-y { color: var(--accent-yellow); } .accent-o { color: var(--accent-orange); } .accent-b { color: var(--accent-blue); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 14px 24px; border: 1px solid currentColor; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-editorial), color var(--dur-base) var(--ease-editorial), border-color var(--dur-base) var(--ease-editorial);
}
.btn .arrow, .link-arrow .arrow { display: inline-block; transition: transform var(--dur-base) var(--ease-editorial); }
.btn:hover .arrow, .btn:focus-visible .arrow, .link-arrow:hover .arrow, a:hover > .arrow { transform: translateX(4px); }
.btn:hover, .btn:focus-visible { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--solid { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--accent-orange); border-color: var(--accent-orange); color: var(--black); }
.on-dark .btn:hover, .on-dark .btn:focus-visible, .btn--inverse:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.on-dark .btn--solid, .btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.on-dark .btn--solid:hover, .btn--light:hover { background: var(--accent-yellow); border-color: var(--accent-yellow); color: var(--black); }
.btn--sm { padding: 11px 18px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.btn[data-magnetic] { will-change: transform; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-3); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size var(--dur-base) var(--ease-editorial);
}
.link-arrow:hover { background-size: 0% 1px; background-position: right bottom; }
.u-link { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--dur-base) var(--ease-editorial); padding-bottom: 2px; }
.u-link:hover, .u-link:focus-visible, .u-link[aria-current="page"] { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; color: var(--black);
  transition: height var(--dur-base) var(--ease-editorial), background var(--dur-base), border-color var(--dur-base), transform var(--dur-slow) var(--ease-editorial);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { height: 64px; background: rgba(255,255,255,.94); border-bottom-color: var(--light-gray); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 2 * var(--page-pad), var(--container-max)); margin-inline: auto; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.05em; line-height: 1; display: inline-flex; align-items: baseline; }
.logo i { font-style: normal; color: var(--accent-orange); }
.nav-list { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.nav-list a { font-size: 14px; font-weight: 500; }
.nav-list .btn { margin-left: var(--space-3); }
.nav-list .btn[aria-current="page"] { background: var(--black); color: var(--white); }
.menu-toggle { display: none; align-items: center; gap: var(--space-3); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 10px 0; }
.menu-toggle .bars { width: 22px; height: 8px; position: relative; display: block; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform var(--dur-base) var(--ease-editorial); }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-3.25px) rotate(-45deg); }

/* Full-screen menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--page-pad) var(--space-6);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--dur-slow) var(--ease-editorial), visibility 0s linear var(--dur-slow);
}
.menu-overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.menu-overlay ul { display: flex; flex-direction: column; }
.menu-overlay li { overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.18); }
.menu-overlay li a { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 12vw, 84px); letter-spacing: -0.045em; line-height: 1; text-transform: uppercase;
  transform: translateY(110%); transition: transform var(--dur-reveal) var(--ease-editorial); transition-delay: calc(var(--i, 0) * 70ms); }
.menu-overlay li a .num { font-size: 12px; color: var(--text-muted-inverse); }
.menu-overlay.is-open li a { transform: none; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: 14px; }
.menu-foot a { text-decoration: underline; text-underline-offset: 4px; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--white); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-top: clamp(80px, 10vw, 160px); }
.footer-title { font-size: var(--fs-footer); line-height: .85; font-weight: 650; letter-spacing: -0.055em; text-transform: uppercase; }
.footer-title a { display: block; }
.footer-title a:hover .arrow { transform: translateX(.08em); }
.footer-title .arrow { display: inline-block; color: var(--accent-orange); transition: transform var(--dur-slow) var(--ease-editorial); }
.footer-cols { margin-top: clamp(56px, 8vw, 120px); padding-top: var(--space-7); border-top: 1px solid rgba(255,255,255,.2); row-gap: var(--space-7); }
.footer-col { grid-column: span 3; font-size: 15px; }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted-inverse); margin-bottom: var(--space-5); }
.footer-col li + li { margin-top: var(--space-3); }
.footer-col a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--dur-base) var(--ease-editorial); padding-bottom: 2px; }
.footer-col a:hover, .footer-col a:focus-visible { background-size: 100% 1px; }
.footer-col address { font-style: normal; color: #d8d8d8; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: clamp(56px, 7vw, 96px); padding-block: var(--space-6); border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; color: var(--text-muted-inverse); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity var(--dur-reveal) var(--ease-editorial), transform var(--dur-reveal) var(--ease-editorial); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Clip reveal is applied to the child so the observed wrapper keeps a measurable box */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-editorial); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
.js [data-reveal="fade"] { transform: none; }

/* Split words: masked slide-up */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform var(--dur-reveal) var(--ease-editorial); transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms)); }
.js [data-split].is-in .w > span { transform: none; }

.page-fade { animation: pageIn var(--dur-reveal) var(--ease-editorial) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w > span, .js [data-reveal="clip"] > * { opacity: 1; transform: none; clip-path: none; }
}
