/* Hexagon draft site, second pass.
   Matte grays. Copper marks Hexagon's own position in a figure and anything you
   can act on. The six sector colors appear only as the small blade beside a
   sector name. Every angled shape on the page is a piece of the logo lattice:
   the blade (half of the H) or the bolt that sits between blades. */

@font-face { font-family: "Plex Serif"; src: url("../assets/fonts/IBMPlexSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("../assets/fonts/IBMPlexSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/IBMPlexSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../assets/fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #EFEEEB;
  --card: #E3E2DE;
  --tag: #D5D3CE;
  --ink: #171412;
  --graphite: #1C1917;
  --ink-2: rgba(23, 20, 18, .68);
  --rule: rgba(23, 20, 18, .2);
  --white: #F6F5F2;
  --white-2: rgba(246, 245, 242, .62);
  --rule-w: rgba(246, 245, 242, .2);
  --panel: #1E1C1A;
  --cu: #B2713D;
  --cu-d: #8A5A33;
  --cu-l: #CCA280;

  --pad: 6.6667vw;
  /* Headlines in the serif, everything else in the sans, as in the first draft. */
  --serif: "Plex Serif", "Times New Roman", Times, serif;
  --sans: "Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.215, .61, .355, 1);
  --quad: cubic-bezier(.25, .46, .45, .94);

  /* The lattice cell. site.js replaces these three with the live cell size so
     the page backgrounds line up with the transition blocks. */
  --cell: 48px;
  --lat-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='96' fill='none' stroke='%23171412' stroke-opacity='.075'%3E%3Cpath d='M.5 0V96M0 .5H20.29M27.71 .5H48M27.71 0L0 48M20.29 96L48 48'/%3E%3C/svg%3E");
  --lat-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='96' fill='none' stroke='%23fff' stroke-opacity='.13'%3E%3Cpath d='M.5 0V96M0 .5H20.29M27.71 .5H48M27.71 0L0 48M20.29 96L48 48'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
::selection { background: var(--cu); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cu); outline-offset: 3px; }
section[id], div[id] { scroll-margin-top: 55px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--cu); color: var(--ink); font: 500 13px/1 var(--sans); }
.skip:focus { top: 12px; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

/* Matte finish: one fixed layer of fine noise over everything. On the dark
   ground it is what turns near-black into the warm dark brown. */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .52 0 0 0 0 .5 0 0 0 0 .48 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- small parts ---------- */

/* The blade: one half of the H. Used as the bullet everywhere. */
.bl {
  display: inline-block; flex: none; width: 6px; height: 12px; background: var(--cu);
  clip-path: polygon(0 100%, 42.3% 100%, 100% 50%, 100% 0, 57.7% 0, 0 50%);
}

.tag {
  display: inline-flex; align-items: center; gap: 9px; width: max-content; max-width: 100%;
  padding: 7px 10px 7px 9px; background: var(--tag); color: var(--ink); border-radius: 2px;
  font: 500 13px/1 var(--sans);
}
.tag-dark { background: rgba(246, 245, 242, .12); color: var(--white); }
.num { font: 500 13px/1 var(--sans); }

.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.55vw, 46px); line-height: 1.14; letter-spacing: -.022em; text-wrap: balance; }

.btn {
  --bb: var(--cu); --bh: 46px;
  display: inline-flex; align-items: stretch; gap: 2px; color: var(--ink); cursor: pointer;
  font: 500 14px/1.3 var(--sans); text-align: left;
}
.btn-label, .btn-ico { display: flex; align-items: center; background: var(--bb); border-radius: 2px; transition: background-color .3s var(--quad), color .3s var(--quad); }
.btn-label { min-height: var(--bh); padding: 8px 18px; }
.btn-ico { flex: none; width: var(--bh); justify-content: center; }
.btn-ico svg { width: 15px; height: 15px; fill: currentColor; transition: transform .7s var(--ease); }
.btn-ink { --bb: var(--ink); color: var(--paper); }
@media (hover: hover) {
  /* The label takes the opposite ground; the icon square keeps its color and turns. */
  .btn:hover .btn-label { background: var(--ink); color: var(--paper); }
  .btn:hover .btn-ico svg { transform: rotate(180deg); }
  .btn-ink:hover .btn-label { background: var(--cu); color: var(--ink); }
  .nav:not(.is-solid) .btn:hover .btn-label, .nav.on-dark .btn:hover .btn-label { background: var(--white); color: var(--ink); }
}

/* Title row: tag on the left, heading on the right, a rule that draws in. */
.title-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding-top: 24px; margin-bottom: clamp(40px, 5vw, 76px); }
.title-grid::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: .5px solid var(--rule); transform-origin: 0 50%; }
.title-grid::after {
  content: ""; position: absolute; top: -5px; left: calc((100% - 24px) / 3 + 24px - 5px); width: 9px; height: 9px;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 9px 1px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 1px 9px no-repeat;
}
.title-grid .h2 { max-width: 24em; }
.title-grid > .tag { align-self: start; }
.dark .title-grid::before { border-top-color: var(--rule-w); }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; padding: 22px; background: var(--card); border-radius: 2px; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(36px, 4.4vw, 68px); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.14; letter-spacing: -.015em; margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.card-img { margin-top: auto; padding-top: 28px; }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); border-radius: 1px; }

/* ---------- nav ---------- */

.nav {
  --nr: transparent;
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; color: var(--white);
  border-bottom: .5px solid var(--nr);
  transition: opacity .8s var(--quad) .5s, background-color .35s var(--quad), color .35s var(--quad), border-color .35s var(--quad);
}
html:not(.js) .nav { position: absolute; }
html.is-intro .nav { opacity: 0; }
.nav.is-solid { --nr: var(--rule); background: var(--paper); color: var(--ink); }
.nav.is-solid.on-dark { --nr: var(--rule-w); background: var(--ink); color: var(--white); }
.nav-in { display: flex; align-items: stretch; justify-content: space-between; height: 84px; padding: 0 var(--pad); transition: height .5s var(--ease); }
.nav.is-solid .nav-in { height: 55px; }

.nav-logo { display: flex; align-items: center; margin-left: -18px; padding: 0 18px; border-left: .5px solid var(--nr); border-right: .5px solid var(--nr); transition: margin .5s var(--ease), border-color .35s var(--quad); }
.nav-logo .mark { width: 24px; height: 24px; fill: currentColor; }
.nav-word { width: 108px; padding-left: 12px; overflow: hidden; transition: width .5s var(--ease), padding .5s var(--ease), opacity .3s var(--quad); }
.nav-word svg { width: 96px; height: auto; fill: currentColor; }
.nav.is-solid .nav-logo { margin-left: 0; }
.nav.is-solid .nav-word { width: 0; padding-left: 0; opacity: 0; }

.nav-right { display: flex; align-items: stretch; }
.nav-links { display: flex; align-items: stretch; }
.nav-links a { display: flex; align-items: center; padding: 0 20px; border-left: .5px solid var(--nr); font: 500 14px/1 var(--sans); transition: color .25s var(--quad), border-color .35s var(--quad); }
.nav-links .nav-menu-only { display: none; }
.nav-btn { --bh: 40px; align-self: center; margin-left: 8px; transition: margin .5s var(--ease); }
.nav-btn .btn-label { transition: background-color .3s var(--quad), color .3s var(--quad), min-height .5s var(--ease), border-radius .5s; }
.nav.is-solid .nav-btn { --bh: 55px; margin-left: 0; gap: 0; }
.nav.is-solid .nav-btn .btn-label { border-radius: 0; }
.nav-toggle { display: none; }
@media (hover: hover) { .nav-links a:hover { color: var(--cu); } .nav:not(.is-solid) .nav-links a:hover, .nav.on-dark .nav-links a:hover { color: var(--cu-l); } }

/* ---------- 1. hero ---------- */

/* Two lattice rows taller than the screen, so the picture runs on below the fold and the veil starts from there. */
.hero { position: relative; height: 100vh; height: calc(100svh + var(--cell, 0px) * 4); min-height: 540px; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-media { position: absolute; inset: 0; background: #0d0c0b; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: url("../assets/media/hero-poster.jpg") 50% 50% / cover no-repeat; filter: grayscale(1) contrast(1.12) brightness(.9); }
.hero-video, .hero-media::before { transform: scale(var(--zoom, 1)); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) contrast(1.12) brightness(.9); transition: opacity 1.2s var(--quad); }
.hero-video.is-on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 20, 18, .5) 0%, rgba(23, 20, 18, .1) 30%, rgba(23, 20, 18, .22) 58%, rgba(23, 20, 18, .72) 100%); }
/* The brand pattern, faint over the film and strongest at the ground. It sits
   lower while the opening curtain is up, then comes up over two seconds. */
.hero-lat {
  position: absolute; inset: 0; opacity: .85; transition: opacity 2s cubic-bezier(.45, 0, .55, 1); background: var(--lat-white) 0 100% / var(--cell) calc(var(--cell) * 2);
  -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 100%); mask-image: linear-gradient(180deg, transparent 8%, #000 100%);
}
/* The headline rides above the veil, so the blocks rise behind it and it leaves whole. */
.hero-copy {
  position: absolute; inset: 0 0 auto; height: 100vh; height: 100svh; min-height: 540px; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 0 var(--pad) clamp(84px, 20vh, 240px); pointer-events: none;
  font: 400 clamp(40px, 8.4vw, 168px)/1.02 var(--serif); letter-spacing: -.035em;
}
.hw { display: block; overflow: hidden; margin: 0 -.05em -.14em; padding: 0 .05em .14em; }
.hw > span { display: block; transition: transform 1.5s var(--ease) .45s; }
.hw-2 > span { transition-delay: .6s; }
html.is-intro .hw > span { transform: translateY(118%); }

/* The lattice canvas that covers a section in the next section's color. */
.veil { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
html:not(.js) .veil { display: none; }
/* The opening. Before the script runs a plain dark cover holds the screen;
   then the curtain canvas takes over and draws the pattern and the H. */
html.is-intro .hero::after { content: ""; position: absolute; inset: 0; z-index: 4; background: var(--ink); }
html.is-curtain .hero::after { display: none; }
html.is-intro .hero-lat { opacity: .45; }
.curtain { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
html:not(.is-curtain) .curtain { display: none; }

/* ---------- 2. statement ---------- */

.lat { position: relative; }
.lat::before { content: ""; position: absolute; inset: 0; background: var(--lat-ink) 0 0 / var(--cell) calc(var(--cell) * 2); pointer-events: none; }
.lat > .wrap { position: relative; }

/* Dark, straight after the hero. The last screen of it breaks into the light
   ground of the next section. */
.firm { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(84px, 14vh, 170px) 0 clamp(260px, 52vh, 560px); }
.firm .veil { top: auto; bottom: 0; height: 75vh; max-height: 100%; }
.firm-lead { max-width: 19.5em; font: 400 clamp(2rem, 4.7vw, 4.6rem)/1.07 var(--serif); letter-spacing: -.026em; }
.firm-lead .w { opacity: .16; transition: opacity .25s linear; }
.firm-lead .w.on { opacity: 1; }
.firm-more { display: grid; gap: 1.1em; width: min(100%, 34em); margin: clamp(40px, 8vh, 96px) 0 0 auto; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); line-height: 1.5; color: #D7D3D0; }

/* ---------- 3. the mark as two windows ---------- */

.object { padding: clamp(72px, 8vw, 132px) 0 clamp(96px, 11vw, 176px); text-align: center; }
.object.lat::before { -webkit-mask-image: radial-gradient(58% 46% at 50% 38%, #000 0%, transparent 100%); mask-image: radial-gradient(58% 46% at 50% 38%, #000 0%, transparent 100%); }
.obj { position: relative; max-width: 1200px; margin: 0 auto; text-align: left; }
.obj-svg { width: 100%; height: auto; overflow: visible; }
.obj-img { transition: transform 1s var(--ease); }
.obj-lead { fill: none; stroke: var(--cu); stroke-width: .75; stroke-dasharray: 1; stroke-opacity: .85; }
.obj-dot { fill: var(--cu); stroke: var(--paper); stroke-width: 1.5; }
.obj-label { position: absolute; max-width: 250px; }
.nb { white-space: nowrap; }
.obj-label .num { display: none; color: var(--cu-d); margin-bottom: 10px; }
.obj-label b { display: block; margin-bottom: 6px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.14; letter-spacing: -.015em; }
.obj-t { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.obj-label-v { left: 0; top: calc(40.28% + 14px); }
.obj-label-y { right: 0; top: calc(15.97% + 14px); text-align: right; }
.object .wrap > .btn { margin-top: clamp(36px, 4vw, 64px); }

/* ---------- 4. how it works ---------- */

.process { padding: 0 0 clamp(96px, 11vw, 176px); }
.process-title { text-align: center; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 0 clamp(40px, 7.4vw, 128px); margin-top: clamp(52px, 5.6vw, 92px); padding-bottom: 104px; }
.step:nth-of-type(2) { margin-top: clamp(44px, 5.5vw, 92px); }
.step:nth-of-type(3) { margin-top: clamp(88px, 11vw, 184px); }
.steps-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.steps-lines path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1; }
.steps-lines rect { fill: var(--ink); }
.steps-lines .back { stroke: var(--cu); }
.steps-lines rect.back { fill: var(--cu); stroke: none; }
.steps-lines text { font: 500 12px var(--sans); fill: var(--cu-d); }

.fig { margin-top: 28px; padding-top: 20px; border-top: .5px solid var(--rule); }
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig-axis { stroke: var(--rule); stroke-width: 1; }
.fig-line { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-dasharray: 1; }
.fig-cu { fill: none; stroke: var(--cu); stroke-width: 4; }
.fig-dot { fill: var(--cu); }
.fig-t { font: 500 10.5px var(--sans); fill: var(--ink-2); }
.fig-t-cu { fill: var(--cu-d); }

.assets-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: baseline; padding: 26px 0 28px; border-top: .5px solid var(--rule); border-bottom: .5px solid var(--rule); }
.assets-row h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.14; letter-spacing: -.015em; }
.assets-row p { max-width: 36em; color: var(--ink-2); }
.chip { padding: 6px 8px 5px; background: var(--tag); border-radius: 2px; font: 500 12px/1 var(--sans); }

/* ---------- 5. why ---------- */

.why { padding: 0 0 clamp(96px, 11vw, 176px); }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cards4 .card { min-height: 100%; }

/* ---------- 6. portfolio ---------- */

.dark { background: var(--ink); color: var(--white); }
.band { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--ink); color: var(--white); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; filter: grayscale(1) contrast(1.08) brightness(.8); }
.band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 20, 18, .34) 0%, rgba(23, 20, 18, 0) 38%, rgba(23, 20, 18, .72) 100%); }
.band-copy { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(36px, 5vw, 84px); }
.band-title { max-width: 11.5em; margin-top: 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6.1vw, 118px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }

.portfolio { padding: clamp(44px, 5vw, 92px) 0 clamp(96px, 11vw, 176px); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 100px); align-items: start; }
.pf-side { position: sticky; top: 96px; }

/* The sector picker. One blade of the mark stands for the whole portfolio and
   is the "all" button; a sector is named at each of its six corners. Pointing
   at a sector shows its plate through the blade and dims the rest of the list. */
.pick { position: relative; width: min(100%, 600px); aspect-ratio: 640 / 600; container-type: inline-size; }
.pick-all {
  position: absolute; left: 29.6875%; top: 6.6667%; width: 40.625%; height: 86.6667%;
  clip-path: polygon(0 100%, 42.3% 100%, 100% 50%, 100% 0, 57.7% 0, 0 50%);
  display: grid; place-content: center; gap: 5px; padding: 0; overflow: hidden;
  background: var(--white); border: 0; color: var(--ink); cursor: pointer; text-align: center;
}
.pick-all img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1) contrast(1.08); transform: scale(1.06); transition: opacity .5s var(--quad), transform 1.1s var(--ease); }
.pick-all img.is-on { opacity: 1; transform: none; }
.pick-all b, .pick-all span { position: relative; transition: opacity .3s var(--quad); }
.pick-all b { font: 400 clamp(20px, 6.2cqw, 36px)/1 var(--serif); letter-spacing: -.02em; }
.pick-all span { font: 500 clamp(11px, 2.9cqw, 16px)/1.2 var(--sans); opacity: .66; }
.pick.is-showing .pick-all b, .pick.is-showing .pick-all span { opacity: 0; }
.pick-all:focus-visible b { text-decoration: underline; text-underline-offset: .18em; }

.pick-word {
  position: absolute; left: var(--x); top: var(--y); transform: var(--t);
  max-width: 28cqw; padding: 6px 0; background: none; border: 0; color: var(--white); cursor: pointer;
  font: 400 clamp(16px, 4.4cqw, 26px)/1.12 var(--serif); letter-spacing: -.012em; text-align: left;
  opacity: .58; transition: opacity .3s var(--quad);
}
.pick-word.is-l { text-align: right; }
.pick-word.is-wide { max-width: 44cqw; }
.pick-n { margin-left: .5em; font: 500 .6em/1 var(--sans); letter-spacing: 0; vertical-align: .55em; opacity: .75; }
.pick-word.is-on, .pick-word[aria-pressed="true"] { opacity: 1; }
.pick-word[aria-pressed="true"] .pick-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--cu); }
@media (hover: hover) { .pick-word:hover { opacity: 1; } }

.pf-hint { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px; width: min(100%, 600px); min-height: 1.5em; margin-top: 22px; font: 500 14px/1.4 var(--sans); color: var(--white-2); }
.pf-reset { padding: 0; background: none; border: 0; border-bottom: 1px solid var(--cu); color: var(--white); cursor: pointer; font: inherit; }

.co-list { list-style: none; padding: 0; border-bottom: .5px solid var(--rule-w); }
.co { border-top: .5px solid var(--rule-w); transition: opacity .4s var(--quad); }
.co-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(8.5em, auto); gap: 4px 24px; align-items: center; padding: 17px 0 18px; transition: opacity .3s var(--quad); }
.co-name { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.85vw, 28px); line-height: 1.15; letter-spacing: -.012em; transition: color .3s var(--quad); }
.co-mark { display: flex; align-items: center; min-height: calc(clamp(20px, 1.85vw, 28px) * 1.15); }
.co-logo {
  display: block; height: calc(clamp(26px, 2.3vw, 36px) * var(--s, 1)); aspect-ratio: var(--ar, 4);
  max-width: 100%; background-color: var(--white); opacity: 0; transition: background-color .3s var(--quad), opacity .4s var(--quad);
  -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat;
}
.co-mark.is-ready .co-logo { opacity: 1; }
.co-name.is-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a.co-row:hover .co-logo { background-color: var(--cu-l); }
.co-line { font-size: 15px; line-height: 1.4; color: var(--white-2); }
.co-sector { font: 500 13px/1.2 var(--sans); color: var(--white-2); text-align: right; white-space: nowrap; }
.co-list.is-filtered .co:not(.is-match) { opacity: .18; }
@media (hover: hover) {
  .co-list:not(.is-filtered):hover .co-row { opacity: .34; }
  .co-list:not(.is-filtered):hover .co-row:hover { opacity: 1; }
  a.co-row:hover .co-name { color: var(--cu-l); }
}

/* ---------- 7. team ---------- */

.team { padding: 0 0 clamp(96px, 11vw, 176px); }
/* Compact cards: picture, name, and a way into the full profile in the side panel. */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 228px)); justify-content: center; gap: 12px; margin-bottom: clamp(64px, 8vw, 128px); }
.person { display: flex; flex-direction: column; padding: 0; border: 0; text-align: left; background: var(--panel); border-radius: 2px; overflow: hidden; cursor: pointer; }
/* The portraits are engraved plates, already toned to the page's paper and ink. */
.person-photo, .pp-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #262321; }
.person-photo:has(img), .pp-photo:has(img) { background: #DEDCD7; }
.person-photo img, .pp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.person-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: var(--lat-white) 0 100% / var(--cell) calc(var(--cell) * 2); }
.person-ph b { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.4vw, 68px); line-height: .9; letter-spacing: -.05em; color: rgba(246, 245, 242, .9); }
.person-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.person-name { font-family: var(--serif); font-size: 19px; line-height: 1.18; letter-spacing: -.01em; }
.person-cta { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--sans); color: var(--cu-l); }
.person-cta i { font-style: normal; transition: transform .3s var(--ease); }
@media (hover: hover) {
  .person:hover .person-photo img { transform: scale(1.035); }
  .person:hover .person-cta i { transform: translateX(4px); }
  .adv:hover .adv-name { color: var(--cu-l); }
}

/* Side panel with a partner's full profile */
html.panel-open { overflow: hidden; }
.person-panel {
  position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink) var(--lat-white) 0 100% / var(--cell) calc(var(--cell) * 2); color: var(--white);
  box-shadow: -1px 0 0 var(--rule-w);
  transform: translateX(100%); transition: transform .42s var(--ease);
}
.person-panel.is-in { transform: none; }
.person-panel::backdrop { background: rgba(12, 10, 9, 0); transition: background .42s var(--quad); }
.person-panel.is-in::backdrop { background: rgba(12, 10, 9, .62); }
.pp-inner { display: flex; flex-direction: column; min-height: 100%; padding: 20px clamp(20px, 2.4vw, 32px) 32px; }
.pp-close { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 0; border: 0; background: none; cursor: pointer; font: 500 13px/1 var(--sans); color: var(--white-2); transition: color .25s var(--quad); }
.pp-close i { font-style: normal; font-size: 20px; line-height: 1; }
.pp-body { display: flex; flex-direction: column; flex: 1; }
.pp-photo { width: 100%; max-width: 300px; margin-bottom: 28px; border-radius: 2px; }
.pp-photo .person-ph b { font-size: 96px; }
.pp-name { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.02em; }
.pp-role { margin: 12px 0 24px; font: 500 13px/1.3 var(--sans); color: var(--cu-l); }
.pp-bio { font-size: 16px; line-height: 1.6; color: rgba(246, 245, 242, .78); }
.pp-link { align-self: flex-start; display: inline-flex; gap: 6px; margin-top: 28px; font: 500 13px/1 var(--sans); }
.pp-link span { border-bottom: .5px solid var(--rule-w); padding-bottom: 3px; transition: color .25s var(--quad), border-color .25s var(--quad); }
.pp-link i { font-style: normal; color: var(--cu-l); }
.pp-next { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 20px 0 0; border: 0; border-top: .5px solid var(--rule-w); background: none; text-align: left; cursor: pointer; color: inherit; }
.pp-link + .pp-next, .pp-bio + .pp-next { margin-top: 48px; }
.pp-next-k { font: 500 12px/1 var(--sans); color: var(--white-2); }
.pp-next-v { font-family: var(--serif); font-size: 20px; line-height: 1.2; transition: color .25s var(--quad); }
@media (hover: hover) {
  .pp-close:hover { color: var(--white); }
  .pp-link:hover span, .pp-next:hover .pp-next-v { color: var(--cu-l); border-color: var(--cu-l); }
}

.title-grid-adv { margin-bottom: 0; }
.adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.adv { display: block; padding: 0 0 20px; margin-bottom: 20px; border-bottom: .5px solid var(--rule-w); }
.adv-name { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -.01em; transition: color .25s var(--quad); }
.adv-title { display: block; margin-top: 5px; font-size: 14px; color: var(--white-2); }

/* ---------- 8. close and footer ---------- */

/* Pinned for a little over a screen. The plate breaks into the logo pattern
   from the ground up and leaves the line standing on the dark. */
.close-wrap { position: relative; height: 215vh; background: var(--ink); }
.close { position: sticky; top: 0; display: grid; align-items: end; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--ink); color: var(--white); }
.close-media { position: absolute; inset: 0; }
.close-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; filter: grayscale(1) contrast(1.1) brightness(.86); }
.close-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 9, .86) 0%, rgba(12, 10, 9, .5) 40%, rgba(12, 10, 9, .1) 72%), linear-gradient(to right, rgba(12, 10, 9, .45), rgba(12, 10, 9, 0) 60%); }
.close-copy { position: relative; z-index: 3; padding: 0 var(--pad) clamp(36px, 8vh, 88px); }
.close-line { max-width: 10em; font: 400 clamp(2.7rem, min(8.6vw, 15vh), 9rem)/.94 var(--serif); letter-spacing: -.042em; text-wrap: balance; }
.close-sub { max-width: 30em; margin-top: clamp(18px, 3vh, 30px); font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); color: #D7D3D0; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4.5vh, 44px); }
.btn-line { display: inline-flex; align-items: center; padding: 16px 22px; border: 1px solid rgba(246, 245, 242, .7); color: var(--white); font: 500 1rem/1 var(--sans); transition: background-color .25s var(--quad), border-color .25s var(--quad); }
@media (hover: hover) { .btn-line:hover { background: var(--cu); border-color: var(--cu); } }
.close-note { margin-top: 14px; font-size: .9063rem; color: var(--cu-l); }
html:not(.js) .close-wrap { height: auto; }
html:not(.js) .close { position: relative; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--pad) 34px; background: var(--ink); color: var(--white-2); border-top: 1px solid rgba(246, 245, 242, .14); }
.foot-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--white); }
.foot-logo .mark { width: 21px; height: 21px; fill: currentColor; }
.foot-logo .word { width: auto; height: 21px; fill: currentColor; }
.foot-in { display: inline-flex; padding: 6px; margin: -6px; color: var(--white-2); transition: color .25s var(--quad); }
.foot-in svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) { .foot-in:hover { color: var(--cu-l); } }
.foot-legal { font-size: .875rem; }

/* ---------- motion that waits for the reader ---------- */

html.js .tag .bl { transform: scale(0); transition: transform .5s var(--ease) .15s; }
html.js .is-in .tag .bl, html.js .tag.is-in .bl { transform: none; }
html.js .title-grid::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
html.js .title-grid::after { opacity: 0; transition: opacity .4s var(--quad) .7s; }
html.js .title-grid.is-in::before { transform: none; }
html.js .title-grid.is-in::after { opacity: 1; }

html.js .card[data-in] { opacity: 0; transition: opacity .9s var(--quad) var(--d, 0ms); }
html.js .card[data-in].is-in { opacity: 1; }
html.js .fig-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0ms) + 500ms); }
html.js .is-in .fig-line { stroke-dashoffset: 0; }
html.js .fig-dot, html.js .fig-cu, html.js .fig-t { opacity: 0; transition: opacity .5s var(--quad) calc(var(--d, 0ms) + 1500ms); }
html.js .is-in .fig-dot, html.js .is-in .fig-cu, html.js .is-in .fig-t { opacity: 1; }

html.js .obj-lead { stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .6s; }
html.js .obj-dot { opacity: 0; transition: opacity .5s var(--quad) .3s; }
html.js .obj-label { opacity: 0; transition: opacity .6s var(--quad) 1.5s; }
html.js .obj.is-in .obj-dot, html.js .obj.is-in .obj-label { opacity: 1; }
html.js .obj.is-in .obj-lead { stroke-dashoffset: 0; }

html.js .steps-lines path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) .5s; }
html.js .steps-lines path + rect + rect + path { transition-delay: .8s; }
html.js .steps-lines .back { transition-duration: 2s; transition-delay: 1.4s; }
html.js .steps-lines rect, html.js .steps-lines text { opacity: 0; transition: opacity .4s var(--quad) 1.6s; }
html.js .steps.is-in .steps-lines path { stroke-dashoffset: 0; }
html.js .steps.is-in .steps-lines rect, html.js .steps.is-in .steps-lines text { opacity: 1; }
html.js .steps.is-in .steps-lines text { transition-delay: 3s; }

/* ---------- tablet ---------- */

@media (max-width: 991px) {
  :root { --pad: 5vw; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 560px; margin-left: auto; margin-right: auto; padding-bottom: 0; }
  .step:nth-of-type(2), .step:nth-of-type(3) { margin-top: 0; }
  .assets-row { margin-top: 56px; }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; }
  .co-line { grid-column: 1; grid-row: 2; }
  .co-sector { grid-column: 2; grid-row: 1; }
  .pf-grid { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .pf-side { position: static; }
  .pick { margin: 0 auto; }
  .pf-hint { margin-left: auto; margin-right: auto; }
  .co-list.is-locked .co:not(.is-match) { display: none; }
}

/* ---------- phone ---------- */

@media (max-width: 767px) {
  :root { --pad: 20px; }
  .nav-in { height: 64px; }
  .nav-btn { display: none; }
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 56px; margin-right: -18px; padding: 0; background: none; border: 0; border-left: .5px solid var(--nr); border-right: .5px solid var(--nr); cursor: pointer; transition: margin .5s var(--ease), border-color .35s var(--quad); }
  .nav-toggle i { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .2s; }
  .nav.is-solid .nav-toggle { margin-right: 0; }
  .nav.is-open { --nr: var(--rule-w); background: var(--ink); color: var(--white); }
  .nav.is-open .nav-toggle i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav-toggle i:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 96px var(--pad) 40px; background: var(--ink) var(--lat-white) 0 100% / var(--cell) calc(var(--cell) * 2); color: var(--white); visibility: hidden; opacity: 0; transition: opacity .35s var(--quad), visibility 0s .35s; }
  .nav.is-open .nav-links { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav-links a, .nav-links .nav-menu-only { display: block; padding: 16px 0 18px; border-left: 0; border-top: .5px solid var(--rule-w); font: 400 40px/1 var(--serif); letter-spacing: -.03em; }
  html.nav-open { overflow: hidden; }

  .hero-copy { font-size: 10.6vw; padding-bottom: 21vh; }
  .firm { padding-top: 72px; }

  .obj-frame { overflow: hidden; }
  .obj-svg { width: 200%; max-width: none; margin-left: -50%; }
  .obj-lead, .obj-dot { display: none; }
  .obj { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .obj-frame { grid-column: 1 / -1; }
  .obj-label { position: static; max-width: none; padding-top: 16px; border-top: .5px solid var(--rule); text-align: left; }
  .obj-label .num { display: block; }
  .object { text-align: left; }

  .title-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .title-grid::after { display: none; }
  .assets-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .person-name { font-size: 17px; }
}

@media (max-width: 560px) {
  .cards4 { grid-template-columns: minmax(0, 1fr); }
  .card-img img { aspect-ratio: 16 / 9; }
  .adv-grid { grid-template-columns: minmax(0, 1fr); }
  .co-row { grid-template-columns: minmax(0, 1fr); }
  .co-sector { grid-column: 1; grid-row: 3; justify-content: flex-start; margin-top: 6px; }
  .close-actions { flex-direction: column; align-items: stretch; }
  .btn-line { justify-content: center; }
  .foot { flex-direction: column; align-items: flex-start; }
  .process-title { text-align: left; }
}

/* ---------- still mode: no opening, no blocks, nothing waits ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .veil { display: none; }
  .hero { height: 100vh; height: 100svh; }
  .close-wrap { height: auto; }
  .close { position: relative; }
  .hero-video { display: none; }
  .firm { padding-bottom: clamp(84px, 14vh, 170px); }
}

@media print {
  .nav, .veil, .hero-video, .grain { display: none; }
  .close-wrap { height: auto; }
  .close { position: relative; }
}
