/* ==========================================================================
   Base — shared by every page
   Type: Helvetica Neue LT Pro first. If you have the licensed web font files,
   add an @font-face rule here; otherwise the stack falls back to Helvetica Neue
   / Helvetica, which look almost identical.
   ========================================================================== */

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --rule: #E6E6E6;
  --mute: #6E6E6E;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(16px, 2.2vw, 32px);
  --gut: clamp(12px, 1.25vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

.wrap { max-width: 1920px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: 12px; transition: top .2s; }
.skip:focus { top: 16px; color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

/* Small type + link underline */
.small { font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; line-height: 1.35; }
.mute { color: var(--mute); }
.ul { position: relative; }
.ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.ul:hover::after, .ul:focus-visible::after, a:hover > .ul::after, a:focus-visible > .ul::after { transform: scaleX(1); transform-origin: left; }
.hit { display: inline-flex; align-items: center; min-height: 44px; }
.arrow { display: inline-block; transition: transform .45s var(--ease); }

/* Header: fixed and transparent; difference blending keeps it black on light areas and white on dark ones */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; align-items: center; min-height: 64px; padding-top: 8px; padding-bottom: 8px; color: #FFFFFF; mix-blend-mode: difference; pointer-events: none; }
.header a, .header a:hover { color: #FFFFFF; pointer-events: auto; }
.header :focus-visible { outline-color: #FFFFFF; }
.header-space { height: 64px; }
.brand { grid-column: 1 / span 6; justify-self: start; }
.nav-wrap { grid-column: 7 / -1; }
.nav { display: flex; justify-content: flex-end; gap: clamp(20px, 2.4vw, 40px); list-style: none; margin: 0; padding: 0; }

/* Scroll reveal (js/main.js adds .is-in) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; }
.no-js .rv { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .brand { grid-column: 1 / span 5; }
  .nav-wrap { grid-column: 6 / -1; }
  .nav { gap: 16px; }
}
/* Small phones: name and links share the row without touching */
@media (max-width: 480px) {
  .header { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
  .brand { grid-column: 1; }
  .nav-wrap { grid-column: 2; }
  .nav { gap: 14px; }
  .header .small { font-size: 10px; letter-spacing: .04em; }
}
@media (max-width: 340px) {
  .nav { gap: 10px; }
  .header .small { letter-spacing: .02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
}
