/* ---------- fonts: Helvetica Now Text, self-hosted ---------- */
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-RegIta.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Now Text"; src: url("/assets/fonts/HelveticaNowText-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --ink: #000;
  --paper: #fff;
  --grey: #a6a6a6;        /* type in grid, inactive toggle */
  --soft: #3a3a3a;        /* client name on case pages */
  --dim: #c4c4c4;         /* list rows while another is hovered */

  --sans: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bold: var(--sans);

  --xs: 11px;    /* header, toggle */
  --s: 12px;     /* list rows, body copy */
  --m: 13px;     /* small caps headings */
  --l: 16px;     /* case headings */
  --xl: 22px;    /* statement, about intro */

  --edge: 12px;     /* page gutter, left and right */
  --ease: cubic-bezier(.16, 1, .3, 1);   /* soft settle */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s)/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }
img { width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--edge); top: 48px; z-index: 100; background: var(--paper); padding: 4px 8px; }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 25.2% 23.8% 1fr auto;
  align-items: center;
  padding: 24px var(--edge) 0;   /* nav sits 24px from the top edge */
  font-size: 11px;
  line-height: 1;
  color: #fff;
  mix-blend-mode: difference;   /* stays legible over images */
  view-transition-name: header;
  pointer-events: none;
}
.hdr > * { pointer-events: auto; justify-self: start; }
.hdr__name { display: inline-flex; align-items: center; gap: 12px; }
.sq { width: 4px; height: 4px; background: currentColor; }
.hdr__link { position: relative; }
.hdr__link::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);
}
.hdr__link:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__index::after { transform: scaleX(1); background: #5c5c5c; }     /* grey underline, per design */
.hdr__index:hover::after { background: currentColor; }
.hdr__clock { justify-self: end; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pulse { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.8); } }

main { padding: 0 var(--edge); }

/* ---------- intro motion ---------- */
.js [data-intro] { opacity: 0; transform: translateY(10px); }
.js.is-ready [data-intro] {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.js.is-ready [data-intro]:nth-child(2) { transition-delay: .08s; }
.js.is-ready [data-intro]:nth-child(3) { transition-delay: .16s; }
.js.is-ready [data-intro]:nth-child(4) { transition-delay: .24s; }

/* ---------- home ---------- */
.home { padding-top: max(150px, calc(29.6vh - 6px)); padding-bottom: 160px; }
.statement { font-size: var(--xl); line-height: 1.32; letter-spacing: -0.01em; }
.views {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 96px;
  font-size: var(--xs);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.views button { color: var(--grey); text-transform: inherit; letter-spacing: inherit; transition: color .4s var(--ease); }
.views button:hover { color: var(--ink); }
.views button[aria-pressed="true"] { color: var(--ink); }

.panel { margin-top: 140px; }
.grid { margin-top: 66px; }
.statement { transition: opacity .6s var(--ease), visibility 0s linear 0s; }
.home[data-view="grid"] .statement { opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-io), visibility 0s linear .4s; }
.panel[hidden] { display: none; }

/* list */
.row {
  display: grid;
  grid-template-columns: 103px calc(70.9% - 103px) 1fr auto;
  font-size: var(--s);
  line-height: 18px;
  transition: color .45s var(--ease);
}
.row span:last-child { text-align: right; }
.row--head {
  font: 700 14px/18px var(--bold);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 15px;
}
.list ol:has(a.row:hover) .row { color: var(--dim); }
.list ol:has(a.row:hover) a.row:hover { color: var(--ink); }
.row.is-soon { cursor: default; }
.list li, .grid li { transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 28ms); }
.panel.is-entering li { opacity: 0; transform: translateY(8px); transition: none; }
.panel.is-leaving { opacity: 0; transition: opacity .25s var(--ease-io); }

/* grid */
.grid ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 9%;
  row-gap: 168px;
}
.card { display: block; }
.card__img { display: block; aspect-ratio: 202 / 249; overflow: hidden; background: #f2f2f2; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.045); opacity: .55; }
.card__num { display: block; margin-top: 21px; font-size: var(--xs); line-height: 16px; }
.card__client { display: block; margin-top: 5px; font-size: var(--xs); line-height: 14px; }
.card__type { display: block; font-size: var(--xs); line-height: 14px; color: var(--grey); }

/* hover preview (list) */
.preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 20;
  width: 220px;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transition: opacity .35s var(--ease), clip-path .7s var(--ease);
  will-change: transform;
}
.preview.is-on { opacity: 1; clip-path: inset(0 0 0 0); }
.preview img { width: 100%; height: auto; }
@media (hover: none) { .preview { display: none; } }

/* ---------- case ---------- */
.case {
  display: grid;
  grid-template-columns: 64.1% 1fr;
  column-gap: 2.45%;
  padding-top: 149px;
}
.case__media { display: grid; gap: 20px; }
.m--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.m--video { position: relative; aspect-ratio: var(--ratio, 16/9); background: #f2f2f2; overflow: hidden; }
.m--video iframe, .m--video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m--video video { object-fit: cover; }
.sound {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 10px;
  font-size: var(--xs);
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  transition: background .4s var(--ease);
}
.sound::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; transition: opacity .4s var(--ease); }
.sound[aria-pressed="true"]::before { opacity: 1; animation: pulse 2.4s var(--ease-io) infinite; }
.sound:hover { background: rgba(0, 0, 0, .7); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.case__info {
  position: sticky;
  top: 149px;
  align-self: start;
  max-width: 320px;
  padding-top: 4px;
}
.case__client { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; color: var(--soft); }
.case__client .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.case__title { margin-top: 43px; font-size: var(--l); line-height: 22px; font-weight: 500; }
.case__desc { margin-top: 10px; font-size: var(--s); line-height: 18px; }
.case__facts section { margin-top: 26px; }
.case__facts section + section { margin-top: 44px; }
.case__facts h2 { font-size: var(--l); line-height: 22px; }
.case__facts div { margin-top: 12px; font-size: var(--s); line-height: 18px; }

.case__next {
  grid-column: 1 / -1;
  display: block;
  margin: 160px 0 120px;
  font-size: var(--xl);
  line-height: 1.32;
  letter-spacing: -0.01em;
  transition: color .45s var(--ease);
}
.case__next span { display: block; margin-bottom: 8px; font-size: var(--xs); letter-spacing: 0; color: var(--grey); }
.case__next:hover { color: var(--grey); }

/* ---------- about ---------- */
.about { padding-top: max(130px, calc(17vh - 7px)); padding-bottom: 120px; }
.about__intro { max-width: 1090px; font-size: var(--xl); line-height: 29px; letter-spacing: -0.01em; }
.about__intro p + p { margin-top: 29px; }
.about__lists {
  display: grid;
  grid-template-columns: 65.1% 14.4% max-content 1fr;
  margin-top: 222px;
  font-size: var(--s);
  line-height: 18px;
}
.about__lists h2 { font: 700 var(--m)/18px var(--bold); text-transform: uppercase; margin-bottom: 15px; }
.about__positions h2 { margin-bottom: 33px; }
.pos h3 { font: 700 11px/18px var(--bold); }
.pos + .pos { margin-top: 18px; }
.pos p { display: grid; grid-template-columns: 35.6% 1fr; }
.pos__note { display: block !important; font-size: 10.5px; font-style: italic; line-height: 14px; }
.about__recognition { text-align: right; }
.about__recognition li { font-style: italic; }

/* ---------- private ---------- */
.private { padding-top: max(150px, calc(29.6vh - 6px)); padding-bottom: 160px; }
.gate { display: grid; gap: 14px; max-width: 420px; margin-top: 96px; }
.gate label { font-size: var(--s); }
.gate__row { display: flex; border-bottom: 1px solid var(--ink); }
.gate input { flex: 1; font: inherit; font-size: var(--s); padding: 8px 0; border: 0; background: none; color: var(--ink); outline: none; border-radius: 0; }
.gate button { font-size: var(--xs); text-transform: uppercase; letter-spacing: .02em; padding: 8px 0 8px 16px; }
.gate__error { color: #b00020; font-size: var(--xs); }
.gate__note { margin-top: 24px; font-size: var(--s); }
.gate__note a { text-decoration: underline; text-underline-offset: 3px; }
.private__content > .list { margin-top: 140px; }
.private__cases .case { padding-top: 160px; }

/* ---------- page transitions (supported browsers) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .grid ol { grid-template-columns: repeat(4, 1fr); column-gap: 6%; row-gap: 120px; }
  .about__lists { grid-template-columns: 1fr 1fr; row-gap: 64px; }
  .about__positions { grid-column: 1 / -1; }
  .about__recognition { text-align: left; }
}
@media (max-width: 820px) {
  .hdr { display: flex; justify-content: space-between; }
  .home, .private { padding-top: 150px; }
  .statement, .about__intro, .case__next { font-size: 19px; line-height: 25px; }
  .about__intro p + p { margin-top: 25px; }
  .views { margin-top: 72px; }
  .panel { margin-top: 56px; }
  .row { grid-template-columns: 58px 1fr 1fr; column-gap: 12px; }
  .row span:last-child { display: none; }
  .row--head { font-size: 12px; }
  .grid { margin-top: 40px; }
  .case__title { margin-top: 28px; }
  .case__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; margin-top: 28px; }
  .case__facts section, .case__facts section + section { margin-top: 0; }
  .case__facts div { margin-top: 6px; }
  .grid ol { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 56px; padding: 0; }
  .case { grid-template-columns: 1fr; padding-top: 110px; }
  .case__info { order: -1; position: static; max-width: none; margin-bottom: 56px; }
  .case__next { margin: 96px 0 72px; }
  .m--pair { gap: 10px; }
  .case__media { gap: 10px; }
  .about { padding-top: 120px; }
  .about__lists { margin-top: 120px; }
  .pos p { grid-template-columns: 1fr auto; column-gap: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-intro], .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  @view-transition { navigation: none; }
}
