/* ==========================================================================
   The ONE Group
   Design system: an editorial black-and-paper canvas, brand red as a
   surgical accent, and the logo's red "1" reworked as a vertical rule that
   runs through every section.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --red: #e31837;
  --red-deep: #b5132c;
  --ink: #0b0b0c;
  --ink-2: #141417;
  --ink-3: #1e1e22;
  --paper: #f4f2ef;
  --paper-2: #e8e4de;
  --paper-3: #d8d3cb;
  --slate: #636a6e;
  --grey: #b1b3b6;
  --charcoal: #3f3f3f;

  --fg: var(--paper);
  --bg: var(--ink);
  --muted: #9a9a9f;
  --hairline: rgba(255,255,255,.13);

  --shell: 1560px;
  --gut: clamp(20px, 4.4vw, 76px);
  /* Applied top and bottom, so the space between two adjacent sections is
     double this. Keep it in mind when adjusting: at 1440px this reads as
     roughly 215px between one section's last line and the next one's first. */
  --rhythm: clamp(60px, 7.4vw, 124px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  /* --ease is heavily front-loaded, which suits small elements travelling a
     few pixels but makes a large wipe look like it simply pops open. This one
     spreads the movement across the whole duration. */
  --ease-wipe: cubic-bezier(.5, .05, .25, 1);
  --dur: .9s;

  --nav-h: 78px;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(15px, .55vw + 13px, 17px);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------- typography -- */

.display {
  font-size: clamp(2.9rem, 8.4vw, 8.4rem);
  letter-spacing: -.045em;
  line-height: .9;
}
.display--xl { font-size: clamp(3.2rem, 11vw, 12rem); letter-spacing: -.05em; }
.h1 { font-size: clamp(2.3rem, 5.6vw, 5rem); letter-spacing: -.042em; line-height: .95; }
.h2 { font-size: clamp(1.75rem, 3.3vw, 3.1rem); letter-spacing: -.038em; line-height: 1.02; }
.h3 { font-size: clamp(1.22rem, 1.7vw, 1.65rem); letter-spacing: -.028em; line-height: 1.14; }
.h4 { font-size: clamp(1.02rem, 1.15vw, 1.2rem); letter-spacing: -.02em; line-height: 1.25; }

.lede {
  font-size: clamp(1.08rem, 1.55vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -.022em;
  font-weight: 400;
}
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.25em; }
.measure { max-width: 56ch; }

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: .7em;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(20px, 2.4vw, 38px);
}
.eyebrow::before {
  content: "";
  width: 2px; height: 1.05em;
  margin-top: .18em;
  background: var(--red);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.dot { color: var(--red); }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- layout -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.sec { position: relative; padding-block: var(--rhythm); }
.sec--tight { padding-block: clamp(42px, 5vw, 82px); }
.sec--flush-top { padding-top: 0; }
.sec--flush-bot { padding-bottom: 0; }

.paper {
  background: var(--paper);
  color: var(--ink);
  --fg: var(--ink);
  --muted: var(--slate);
  --hairline: rgba(11,11,12,.14);
}
.paper-2 { background: var(--paper-2); color: var(--ink); --muted: var(--slate); --hairline: rgba(11,11,12,.15); }
.ink-2 { background: var(--ink-2); }

.grid { display: grid; gap: clamp(24px, 3vw, 54px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 96px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 44px); }

@media (max-width: 1000px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .split--sticky > :first-child { position: static; }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- grain -- */

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: .038;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------ scroll progress -- */

.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--red);
  z-index: 120;
  will-change: transform;
}

/* -------------------------------------------------------------- header -- */

.masthead {
  position: fixed; inset: 0 0 auto;
  z-index: 100;
  transition: transform .55s var(--ease), background .4s linear, border-color .4s linear;
  border-bottom: 1px solid transparent;
}
.masthead.is-solid {
  background: rgba(11,11,12,.82);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-bottom-color: var(--hairline);
}
.masthead.is-hidden { transform: translate3d(0, -102%, 0); }
.masthead.is-open { transform: none; background: rgba(11,11,12,.97); backdrop-filter: blur(18px); }

.masthead__bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}
.brand { flex: none; display: block; padding: 6px 0; }
.brand img { height: 46px; width: auto; transition: height .45s var(--ease); }
.masthead.is-solid .brand img { height: 40px; }

.nav { margin-left: auto; align-self: stretch; display: flex; align-items: stretch; gap: clamp(4px, 1vw, 16px); }
.nav__list { display: flex; align-items: stretch; gap: clamp(10px, 1.5vw, 26px); }
/* The items run the full height of the bar so the hover region meets the top
   of the mega panel. Any gap between them closes the menu as the cursor
   travels down towards it. */
.nav__item { display: flex; align-items: center; }
.nav > .act, .nav__spacer { align-self: center; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: -.008em;
  color: rgba(244,242,239,.78);
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.nav__item { position: relative; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.nav__item:hover .nav__link,
.nav__item.is-active .nav__link,
.nav__link[aria-current] { color: #fff; }
.nav__item:hover .nav__link::after,
.nav__link[aria-current]::after { transform: scaleX(1); }

.nav__spacer { width: clamp(6px, 1.4vw, 22px); }

.act {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  font-size: .76rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: rgba(244,242,239,.9);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.act:hover { background: rgba(255,255,255,.08); color: #fff; }
.act--red { background: var(--red); border-color: var(--red); color: #fff; }
.act--red:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

/* mega panel */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(11,11,12,.97);
  backdrop-filter: blur(22px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path .55s var(--ease);
}
.mega.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mega__inner { padding-block: clamp(28px, 3.4vw, 52px); }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 26px; }
.mega__link {
  display: block;
  padding: 14px 16px 14px 0;
  border-top: 1px solid var(--hairline);
  position: relative;
  transition: padding-left .45s var(--ease), color .35s var(--ease);
}
.mega__link::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 2px; height: 0;
  background: var(--red);
  transform: translateY(-50%);
  transition: height .4s var(--ease);
}
.mega__link:hover { padding-left: 16px; }
.mega__link:hover::before { height: 58%; }
.mega__name { display: block; font-weight: 600; font-size: .96rem; letter-spacing: -.02em; }
.mega__note { display: block; font-size: .74rem; color: var(--muted); margin-top: 3px; letter-spacing: 0; }

/* burger + drawer */
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; flex: none; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--paper);
  transition: transform .5s var(--ease), opacity .3s linear;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { bottom: 17px; }
.burger.is-on span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-on span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0;
  background: var(--ink);
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}
.drawer.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer__inner { padding: 26px 0 90px; }
.drawer__group + .drawer__group { border-top: 1px solid var(--hairline); }
.drawer__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-size: 1.32rem; font-weight: 700; letter-spacing: -.03em;
  text-align: left;
}
.drawer__head span:last-child { color: var(--red); font-size: 1.5rem; transition: transform .4s var(--ease); }
.drawer__group.is-open .drawer__head span:last-child { transform: rotate(45deg); }
.drawer__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.drawer__group.is-open .drawer__panel { grid-template-rows: 1fr; }
.drawer__panel > div { overflow: hidden; }
.drawer__sub { padding-bottom: 18px; }
.drawer__sub a { display: block; padding: 9px 0 9px 16px; border-left: 1px solid var(--hairline); color: var(--muted); font-weight: 600; font-size: .95rem; }
.drawer__sub a:hover { color: var(--paper); border-left-color: var(--red); }
.drawer__acts { display: grid; gap: 10px; margin-top: 30px; }
.drawer__acts .act { height: 52px; font-size: .85rem; }

@media (max-width: 1180px) {
  .nav, .masthead .act { display: none; }
  .burger { display: block; }
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(40px, 6vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.14);
  animation: heroIn 2.6s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* keeps the fixed header legible over any photograph */
    linear-gradient(to bottom, rgba(11,11,12,.8) 0%, rgba(11,11,12,0) 20%),
    linear-gradient(to top, rgba(11,11,12,.96) 0%, rgba(11,11,12,.72) 32%, rgba(11,11,12,.28) 62%, rgba(11,11,12,.5) 100%),
    linear-gradient(to right, rgba(11,11,12,.7) 0%, rgba(11,11,12,.1) 55%);
}
.hero__body { position: relative; width: 100%; }
.hero__title { max-width: 16ch; }
.hero__meta {
  margin-top: clamp(26px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 76px);
  align-items: end;
}
@media (max-width: 900px) { .hero__meta { grid-template-columns: 1fr; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__rail {
  position: absolute;
  right: var(--gut); bottom: clamp(40px, 6vw, 88px);
  width: 1px; height: clamp(60px, 9vw, 120px);
  background: rgba(255,255,255,.22);
  overflow: hidden;
}
@media (max-width: 900px) { .hero__rail { display: none; } }
.hero__rail::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  animation: railRun 2.4s var(--ease-io) infinite;
}
@keyframes railRun {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* page hero (interior) */
.phero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(52px, 6.6vw, 108px));
  padding-bottom: clamp(40px, 5.4vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
/* Capped, not just proportional: content sits at the foot of these, so an
   uncapped viewport height leaves a tall band of bare image above it on a
   large or tall window. */
.phero--media { min-height: min(74svh, 660px); display: flex; align-items: flex-end; }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: heroIn 2.6s var(--ease) forwards; }
.phero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11,11,12,.82) 0%, rgba(11,11,12,0) 26%),
    linear-gradient(to top, rgba(11,11,12,.95), rgba(11,11,12,.66) 45%, rgba(11,11,12,.5));
}
.phero__crumb { margin-bottom: clamp(18px, 2.4vw, 30px); }
.phero__crumb a { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.phero__crumb a:hover { color: var(--red); }

/* ------------------------------------------------------------- buttons -- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .8em;
  height: 56px; padding: 0 30px;
  border-radius: 999px;
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid currentColor;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  transform: translate3d(0, 101%, 0);
  transition: transform .55s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--red); }
.btn:hover::before { transform: translate3d(0, 0, 0); }
.btn__arw { transition: transform .5s var(--ease); }
.btn:hover .btn__arw { transform: translateX(5px); }

.btn--fill { background: var(--red); border-color: var(--red); color: #fff; }
.btn--fill::before { background: var(--ink); }
.btn--fill:hover { color: #fff; border-color: var(--ink); }
.paper .btn--fill::before { background: var(--ink); }

.btn--sm { height: 46px; padding: 0 22px; font-size: .78rem; }

.tlink {
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: .88rem;
  padding-bottom: 4px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: .35;
  transform-origin: 100% 50%;
  transition: transform .5s var(--ease), opacity .4s;
}
.tlink::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease) .06s;
}
/* Inline inside body copy the link should keep the surrounding size. */
p .tlink, li .tlink, address .tlink { font-size: inherit; font-weight: 600; }

.tlink:hover::after { transform: scaleX(0); }
.tlink:hover::before { transform: scaleX(1); }
.tlink span:last-child { transition: transform .5s var(--ease); }
.tlink:hover span:last-child { transform: translateX(4px); }

/* --------------------------------------------------------------- cards -- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 1px solid var(--hairline);
  padding: clamp(22px, 2.4vw, 34px) 0 clamp(26px, 3vw, 44px);
  transition: border-color .4s;
}
.card::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: var(--red);
  transition: width .7s var(--ease);
}
.card:hover::after { width: 100%; }
.card__n { font-size: .72rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.card__t { margin: 14px 0 10px; }
.card__d { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.card__go { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: .55em; font-size: .8rem; font-weight: 600; color: var(--red); }
.card__go span { transition: transform .5s var(--ease); }
.card:hover .card__go span { transform: translateX(5px); }

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink-2);
  isolation: isolate;
}
.tile__img { aspect-ratio: 4 / 5; overflow: hidden; }

/* Sector cards. The brand sector artwork is a designed collage, so it is shown
   whole in its native 3:2 and the label sits beneath it rather than on top. */
.tile--brand { background: var(--ink-2); display: flex; flex-direction: column; height: 100%; }
.paper .tile--brand, .paper-2 .tile--brand { background: rgba(11,11,12,.04); }
.tile--brand .tile__img { aspect-ratio: 3 / 2; }
.tile--brand .tile__cap {
  position: static;
  background: none;
  padding: clamp(20px, 2.2vw, 30px);
  display: flex; flex-direction: column; flex: 1;
}
.tile--brand .tile__n {
  position: static;
  order: -1;
  opacity: 1;
  color: var(--red);
  margin-bottom: 12px;
}
.paper .tile--brand .tile__cap, .paper-2 .tile--brand .tile__cap { color: var(--ink); }
.tile--brand .tile__go {
  margin-top: auto; padding-top: 22px;
  font-size: .78rem; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: .5em;
}
.tile--brand .tile__go span { transition: transform .5s var(--ease); }
.tile--brand:hover .tile__go span { transform: translateX(5px); }
.tile__img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.1s var(--ease), filter .8s var(--ease);
}
.tile:hover .tile__img img { transform: scale(1.09); }
.tile__cap {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: clamp(20px, 2.4vw, 34px);
  background: linear-gradient(to top, rgba(11,11,12,.94), rgba(11,11,12,.55) 55%, rgba(11,11,12,0));
}
.tile__n {
  position: absolute; top: clamp(16px, 2vw, 26px); left: clamp(18px, 2.2vw, 30px); z-index: 2;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: #fff; opacity: .72;
}
.tile__bar {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  height: 3px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .7s var(--ease);
}
.tile:hover .tile__bar { transform: scaleX(1); }

/* ---------------------------------------------------- horizontal track -- */

.htrack { position: relative; }
.htrack__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.htrack__row { display: flex; gap: clamp(16px, 1.8vw, 30px); padding-inline: var(--gut); will-change: transform; }
.htrack__card { flex: 0 0 clamp(260px, 27vw, 400px); }
.htrack__head {
  flex: 0 0 clamp(280px, 30vw, 470px);
  align-self: center;
  padding-right: clamp(20px, 3vw, 60px);
}
@media (max-width: 860px) {
  .htrack__pin { position: static; height: auto; display: block; }
  .htrack__row { flex-direction: column; transform: none !important; }
  .htrack__card, .htrack__head { flex: none; padding-right: 0; }
}

/* --------------------------------------------------------------- stats -- */

.stat { border-top: 1px solid var(--hairline); padding-top: clamp(20px, 2.4vw, 32px); }
.stat__n {
  display: block;
  font-size: clamp(3.4rem, 7.2vw, 7rem);
  font-weight: 700; letter-spacing: -.055em; line-height: .85;
  font-variant-numeric: tabular-nums;
}
.stat__l { display: block; margin: 16px 0 12px; font-weight: 600; font-size: 1rem; letter-spacing: -.02em; }
.stat__d { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* ------------------------------------------------------------- numbers -- */

.steps { counter-reset: s; }
.step {
  counter-increment: s;
  display: grid;
  grid-template-columns: clamp(58px, 7vw, 110px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  border-top: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 44px) 0;
  align-items: start;
}
.step::before {
  content: "0" counter(s);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.step__t { margin-bottom: 10px; }
.step__d { color: var(--muted); max-width: 62ch; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------------------------------------------------------- team -- */

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 21vw, 250px), 1fr)); gap: clamp(18px, 2.2vw, 40px) clamp(14px, 1.8vw, 28px); }
.person { position: relative; }
.person__img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink-3);
}
.paper .person__img { background: var(--paper-2); }
.person__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transform: scale(1.02);
  transition: filter .7s var(--ease), transform 1s var(--ease);
}
.person:hover .person__img img { filter: grayscale(0); transform: scale(1.07); }
.person__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  pointer-events: none;
}
.person:hover .person__ring { clip-path: inset(0 0 0 0); }
.person__n { margin: 18px 0 5px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.028em; }
.person__r { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.person__c { display: flex; gap: 14px; margin-top: 12px; }
.person__c a { font-size: .72rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.person__c a:hover { color: var(--red); border-bottom-color: var(--red); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(30px, 4vw, 56px); }
.chip {
  height: 40px; padding: 0 18px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  color: var(--muted);
  transition: all .35s var(--ease);
}
.chip:hover { color: var(--fg); border-color: currentColor; }
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }

/* ----------------------------------------------------------- testimony -- */

.quote {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(22px, 2.6vw, 36px);
  display: flex; flex-direction: column; height: 100%;
  margin: 0;
}
.quote__t + .quote__a { margin-top: auto; }
.quote__t {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: -.018em;
}
.quote__t::before { content: "“"; color: var(--red); margin-right: .06em; }
.quote__t::after { content: "”"; color: var(--red); }
.quote__a { padding-top: 22px; font-size: .78rem; font-weight: 600; }
.quote__s { color: var(--muted); font-size: .74rem; margin-top: 3px; }

.bigquote {
  font-size: clamp(1.45rem, 3.1vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.038em;
  font-weight: 600;
  max-width: 22ch;
}

/* ------------------------------------------------------------ timeline -- */

.tl { position: relative; padding-left: clamp(24px, 3vw, 48px); }
.tl::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px;
  background: var(--hairline);
}
.tl__fill {
  position: absolute; left: 0; top: 6px; width: 2px;
  background: var(--red);
  transform-origin: 50% 0;
  will-change: height;
}
.tl__row { position: relative; padding: clamp(16px, 2vw, 26px) 0; display: grid; grid-template-columns: clamp(60px, 7vw, 96px) minmax(0, 1fr); gap: clamp(12px, 2vw, 32px); }
.tl__row::before {
  content: ""; position: absolute;
  left: calc(clamp(24px, 3vw, 48px) * -1 - 3px); top: calc(clamp(16px, 2vw, 26px) + .55em);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper);
  transition: background .4s, transform .5s var(--ease);
}
.paper .tl__row::before { background: var(--ink); }
.tl__row:hover::before { background: var(--red); transform: scale(1.6); }
.tl__y { font-weight: 700; font-size: .88rem; color: var(--red); letter-spacing: -.01em; padding-top: .2em; }
.tl__b { color: var(--muted); max-width: 60ch; }
@media (max-width: 620px) { .tl__row { grid-template-columns: 1fr; gap: 4px; } }

/* ------------------------------------------------------------- offices -- */

.office {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 60px);
  border-top: 1px solid var(--hairline);
  padding: clamp(26px, 3.4vw, 52px) 0;
  align-items: baseline;
  transition: padding-left .55s var(--ease);
}
.office:hover { padding-left: clamp(0px, 1.4vw, 22px); }
.office__n { font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.office__d { color: var(--muted); font-size: .9rem; }
.office__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; font-size: .84rem; font-weight: 600; }
@media (max-width: 800px) { .office { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- accordion -- */

.acc__item { border-top: 1px solid var(--hairline); }
.acc__item:last-child { border-bottom: 1px solid var(--hairline); }
.acc__btn {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 30px;
  gap: 20px; align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 0;
  text-align: left;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 600; letter-spacing: -.026em;
  line-height: 1.3;
  transition: color .3s;
}
.acc__btn:hover { color: var(--red); }
.acc__sign { position: relative; width: 15px; height: 15px; justify-self: end; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; background: var(--red); border-radius: 1px;
  transition: transform .5s var(--ease), opacity .3s;
}
.acc__sign::before { left: 0; right: 0; top: 7px; height: 1.5px; }
.acc__sign::after { top: 0; bottom: 0; left: 7px; width: 1.5px; }
.acc__item.is-open .acc__sign::after { transform: rotate(90deg); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { color: var(--muted); max-width: 74ch; padding-bottom: clamp(22px, 2.6vw, 32px); }

/* ---------------------------------------------------------------- jobs -- */

.jobbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 8px;
  background: rgba(255,255,255,.03);
}
.paper .jobbar { background: rgba(11,11,12,.03); }
.jobbar input, .jobbar select {
  width: 100%; height: 52px; padding: 0 16px;
  background: transparent; border: 0;
  font-size: .9rem; font-weight: 500;
  border-radius: 2px;
  appearance: none;
}
.jobbar select { cursor: pointer; }
.jobbar input::placeholder { color: var(--muted); }
.jobbar > * { position: relative; }
.jobbar > * + *::before {
  content: ""; position: absolute; left: -5px; top: 12px; bottom: 12px; width: 1px; background: var(--hairline);
}
@media (max-width: 760px) {
  .jobbar { grid-template-columns: 1fr; }
  .jobbar > * + *::before { left: 12px; right: 12px; top: -5px; bottom: auto; width: auto; height: 1px; }
}

.job {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .8fr) auto;
  gap: clamp(12px, 2vw, 36px);
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding: clamp(20px, 2.3vw, 30px) 0;
  position: relative;
  transition: padding-left .5s var(--ease);
}
.job:hover { padding-left: clamp(0px, 1.2vw, 18px); }
.job__t { font-size: clamp(1.02rem, 1.3vw, 1.28rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.2; }
.job__d { color: var(--muted); font-size: .84rem; margin-top: 7px; max-width: 58ch; }
.job__m { font-size: .84rem; font-weight: 600; }
.job__tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--muted);
}
@media (max-width: 900px) {
  .job { grid-template-columns: 1fr; gap: 10px; }
  .job__m { color: var(--muted); }
}

/* --------------------------------------------------------------- forms -- */

.field { position: relative; margin-bottom: 22px; }
.field label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
  border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.field select { appearance: none; cursor: pointer; }
.field--select::after {
  content: ""; position: absolute; right: 4px; bottom: 22px;
  width: 7px; height: 7px; border-right: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red);
  transform: rotate(45deg); pointer-events: none;
}
.formnote { font-size: .78rem; color: var(--muted); margin-top: 18px; }

/* -------------------------------------------------------------- ticker -- */

.ticker { overflow: hidden; border-block: 1px solid var(--hairline); padding-block: clamp(18px, 2vw, 30px); }
.ticker__row { display: flex; gap: clamp(30px, 4vw, 70px); width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker__i {
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  font-weight: 600; letter-spacing: -.03em;
  color: var(--muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: clamp(30px, 4vw, 70px);
}
.ticker__i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; }

/* ------------------------------------------------------------- feature -- */

.feature { position: relative; overflow: hidden; }
.feature__media { position: absolute; inset: 0; z-index: -2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.feature__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(11,11,12,.93) 0%, rgba(11,11,12,.72) 45%, rgba(11,11,12,.42) 100%); }

.panel {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: clamp(24px, 3vw, 42px);
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.panel:hover { border-color: rgba(227,24,55,.55); }

.bullets li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.55;
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 1.42em;
  width: 9px; height: 1.5px; background: var(--red);
}
.bullets--tight li { padding-block: 11px; font-size: .88rem; }

.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist span, .taglist a {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--muted);
  transition: all .35s var(--ease);
}
.taglist a:hover { color: var(--fg); border-color: var(--red); }

/* --------------------------------------------------------------- footer -- */

.footer { background: var(--ink); color: var(--paper); padding-top: clamp(60px, 8vw, 120px); --muted: #85858b; --hairline: rgba(255,255,255,.12); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.4fr); gap: clamp(36px, 5vw, 90px); padding-bottom: clamp(46px, 6vw, 84px); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 42px); }
.footer__h { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__l a { display: block; padding: 6px 0; font-size: .86rem; font-weight: 500; color: rgba(244,242,239,.8); transition: color .3s, transform .4s var(--ease); }
.footer__l a:hover { color: var(--red); transform: translateX(3px); }
.footer__brand img { height: 62px; width: auto; }
.footer__tag { margin-top: 20px; font-size: 1.05rem; font-weight: 600; letter-spacing: -.03em; max-width: 14ch; }
.footer__soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.footer__soc a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: .72rem; font-weight: 600; color: var(--muted);
  transition: all .35s var(--ease);
}
.footer__soc a:hover { color: #fff; border-color: var(--red); background: var(--red); }
.footer__bot {
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center;
  border-top: 1px solid var(--hairline);
  padding-block: 28px 34px;
  font-size: .76rem; color: var(--muted);
}
.footer__bot a:hover { color: var(--red); }
.footer__bot .sp { margin-left: auto; }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bot .sp { margin-left: 0; }
}

/* ------------------------------------------------------------ big-cta -- */

.bigcta { position: relative; overflow: hidden; }
.bigcta__t { font-size: clamp(2.4rem, 7.4vw, 7.4rem); letter-spacing: -.05em; line-height: .92; }
.bigcta__row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 4vw, 54px); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo__half {
  position: relative;
  min-height: clamp(340px, 44vw, 560px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(26px, 3.6vw, 60px);
  overflow: hidden;
  isolation: isolate;
}
.duo__half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.3s var(--ease); }
.duo__half:hover img { transform: scale(1.06); }
.duo__half::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(11,11,12,.94), rgba(11,11,12,.45) 60%, rgba(11,11,12,.2));
  transition: opacity .6s;
}
.duo__half:hover::before { opacity: .82; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- transition -- */

/* One continuous movement across the page boundary: the panel sweeps up from
   the foot of the outgoing page until it covers, then keeps travelling in the
   same direction and slides off the top of the incoming one. Accelerating on
   the way out and decelerating on the way in makes the join read as a single
   gesture rather than two separate animations. */
.wipe {
  position: fixed; inset: 0; z-index: 200;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  pointer-events: none;
}
.wipe.is-out {
  transform-origin: 50% 100%;
  animation: wipeCover .34s cubic-bezier(.5, 0, .75, 0) forwards;
}
.wipe-in .wipe {
  transform: scaleY(1);
  transform-origin: 50% 0;
  animation: wipeReveal .52s var(--ease) forwards;
}
@keyframes wipeCover  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wipeReveal { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* -------------------------------------------------------------- reveal -- */

/* No blanket will-change: it forces a layer per element and can leave stale
   composited frames once the transition has finished. */

.js [data-reveal="up"] {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  transition: opacity .85s var(--ease), transform .95s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="up"].in { opacity: 1; transform: none; }

.js [data-reveal="fade"] {
  opacity: 0;
  transition: opacity 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="fade"].in { opacity: 1; }

.js [data-reveal="mask"] {
  clip-path: inset(0 0 102% 0);
  transition: clip-path .95s var(--ease-wipe);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="mask"].in { clip-path: inset(0 0 0 0); }
/* Clip removed once the reveal has played out, so nothing is left clipped
   (and layer-promoted) for the life of the page. See settle() in main.js. */
.js [data-reveal="mask"].settled { clip-path: none; }

.js [data-reveal="scale"] {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="scale"].in { opacity: 1; transform: none; }

.js [data-reveal="rule"] {
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="rule"].in { transform: scaleX(1); }

/* Word-level headline reveal.
   The mask is only applied while the words are moving. Once they have landed
   the clip is dropped (via .settled) so no element is left permanently
   clipped or promoted to its own compositing layer. */
.words { display: block; }
.words .w {
  display: inline-block;
  overflow: visible;
  vertical-align: bottom;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.js .words:not(.settled) .w { overflow: hidden; }
.js .words .w > i {
  display: inline-block;
  font-style: inherit;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--wd, 0ms);
}
.js .words.in .w > i { 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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .words .w > i { transform: none !important; }
  .hero__media img, .phero__media img { transform: none; }
}

/* --------------------------------------------------------------- utils -- */

.mt-s { margin-top: clamp(16px, 2vw, 26px); }
.mt-m { margin-top: clamp(24px, 3vw, 42px); }
.mt-l { margin-top: clamp(34px, 4.2vw, 66px); }
.mb-m { margin-bottom: clamp(24px, 3vw, 42px); }
.mb-l { margin-bottom: clamp(34px, 4.2vw, 66px); }
.center { text-align: center; }
.rel { position: relative; }
.nowrap { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.is-hidden-item { display: none !important; }

.ratio-16 { aspect-ratio: 16 / 10; overflow: hidden; }
.ratio-1 { aspect-ratio: 1; overflow: hidden; }
.ratio-45 { aspect-ratio: 4 / 5; overflow: hidden; }
.ratio-16 img, .ratio-1 img, .ratio-45 img { width: 100%; height: 100%; object-fit: cover; }
.round { border-radius: 3px; overflow: hidden; }
