/* Irshad Ahamed — portfolio 2026
   Paper, ink, one yellow slash (the same one as the résumé). */

:root {
  --paper: #f4f4f2;
  --plate: #ebebe8;
  --ink: #101010;
  --mute: #7c7c78;
  --mute-d: #9a9a96;
  --yellow: #e8b714;
  --pad: clamp(18px, 4vw, 80px);
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --mono: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- type ---------- */
.d {
  font-family: var(--display);
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .86;
  text-transform: uppercase;
}
.fit { display: block; white-space: nowrap; width: max-content; transform-origin: left top; }
.spaced { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; letter-spacing: 1.1em; font-size: 14px; }
.small { font-size: 11px; line-height: 1.35; color: var(--mute); }
.link { display: inline-flex; gap: .7em; align-items: baseline; border-bottom: 2px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.link .ar { display: inline-block; transition: transform .35s var(--ease); }
.link:hover .ar { transform: translate(3px, -3px); }
.br::before { content: "[ "; }
.br::after { content: " ]"; }

/* the résumé slash */
.slash { display: inline-block; width: 1.9em; height: .62em; background: var(--yellow); clip-path: polygon(0 55%, 100% 0, 100% 45%, 0 100%); }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 28px var(--pad);
  color: #fff; mix-blend-mode: difference;
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
.hd__name { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 26px; line-height: .82; letter-spacing: -.05em; justify-self: start; }
.hd__nav { display: flex; gap: clamp(24px, 5vw, 96px); font-size: 14px; }
.hd__nav a { position: relative; }
.hd__nav a::before { content: "[ "; }
.hd__nav a::after { content: " ]"; }
.hd__nav a:hover, .hd__nav a[aria-current="true"] { text-decoration: underline; text-underline-offset: 5px; }
.hd__cv { justify-self: end; font-size: 15px; }
.hd__menu { display: none; justify-self: end; font-size: 14px; }

.mnav { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper); display: none; flex-direction: column; justify-content: flex-end; padding: 120px var(--pad) 40px; gap: 4px; }
.mnav.is-open { display: flex; }
.mnav a.d { font-size: 19vw; }
.mnav .small { margin-top: 28px; color: var(--mute-d); }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 190px) var(--pad); }
.dark { background: var(--ink); color: var(--paper); }
.dark .small { color: var(--mute-d); }
.folio { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: 13px; margin-bottom: clamp(32px, 5vw, 80px); }
.folio b { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 26px; letter-spacing: -.04em; }

/* ---------- hero ---------- */
.hero { padding: 150px var(--pad) 56px; min-height: 100svh; display: flex; flex-direction: column; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.hero__top .yrs { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.hero__h { position: relative; z-index: 1; }
.hero__h .fit { font-size: 15vw; }
.hero__based { display: block; text-align: right; margin-top: 18px; position: relative; z-index: 3; }
.hero__stage { position: relative; z-index: 2; width: min(760px, 100%); margin: 30px auto 0; background: var(--plate); display: grid; grid-template-columns: 1fr 1.45fr; align-items: end; padding: 0 30px 30px 0; }
.hero__list { padding: 0 0 2px 0; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.28; white-space: nowrap; }
.hero__list li::before { content: "/ "; }
.hero__pic { position: relative; margin-top: calc(-7.5vw - 62px); aspect-ratio: 7 / 8; overflow: hidden; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero__pic::after { content: ""; position: absolute; right: 0; bottom: 0; width: 52%; height: 44%; background: var(--yellow); clip-path: polygon(0 62%, 100% 0, 100% 46%, 0 100%); transform: translateY(8%); transition: transform .8s var(--ease); }
.hero__pic:hover::after { transform: translateY(70%); }
.hero__lede { max-width: 50ch; margin: 44px auto 0; text-align: center; font-size: 14px; }
.hero__lede + .hero__lede { margin-top: 18px; }
.hero__foot { margin-top: auto; padding-top: 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__foot .lbl { font-size: 18px; font-weight: 300; display: block; margin-bottom: 6px; }
.hero__foot a.d { font-size: clamp(24px, 2.6vw, 40px); display: inline-block; line-height: 1; }
.hero__foot .mail { border-bottom: 2px solid currentColor; padding-bottom: 3px; margin-left: clamp(0px, 7vw, 100px); text-transform: none; }
.hero__foot > div:last-child { text-align: left; }

/* ---------- statement ---------- */
.say { min-height: 100svh; display: grid; grid-template-columns: 1fr 2.4fr; align-content: center; gap: 24px; }
.say__n { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.say__k { font-size: 18px; font-weight: 300; margin-bottom: 40px; }
.say { padding-top: 120px; padding-bottom: 60px; }
.say__t { font-size: clamp(44px, min(7.6vw, 11.5vh), 150px); }
.say__t span { color: #4a4a48; transition: color .35s linear; }
.say__t span.on { color: var(--paper); }
.say__t span.g.on { color: var(--mute-d); }
.say__src { margin-top: 44px; max-width: 46ch; }

/* ---------- work ---------- */
.work { padding-left: 0; padding-right: 0; padding-bottom: clamp(60px, 8vw, 120px); }
.work__head { padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vw, 100px); }
.work__head h2 { font-size: clamp(52px, 10.5vw, 190px); white-space: nowrap; }
.work__head p { max-width: 34ch; font-size: 13px; text-align: right; padding-bottom: 1.2vw; }
.cols { display: flex; border-top: 2px solid var(--ink); height: clamp(540px, 42vw, 640px); }
.col { position: relative; flex: 1 1 0; min-width: 0; border-right: 2px solid var(--ink); overflow: hidden; transition: flex-grow .7s var(--ease); cursor: pointer; }
.col:last-child { border-right: 0; }
.col.on { flex-grow: 3.1; cursor: default; }
.col__shut { position: absolute; inset: 0; padding: 44px 26px 30px; display: flex; flex-direction: column; text-align: left; align-items: flex-start; transition: opacity .3s; width: 100%; }
.col__shut .n { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 17px; letter-spacing: -.03em; margin-bottom: 52px; }
.col__shut .t { font-size: clamp(26px, 2.6vw, 40px); white-space: nowrap; }
.col__shut .c { margin-top: 14px; font-size: 12px; color: var(--mute); max-width: 20ch; }
.col__shut .y { margin-top: auto; font-size: 12px; }
.col.on .col__shut { opacity: 0; pointer-events: none; }
.col__open { position: absolute; top: 0; left: 0; bottom: 0; width: calc(100vw * 3.1 / 6.1); padding: 44px 30px 30px; display: grid; grid-template-columns: .72fr 1.6fr; grid-template-rows: auto 1fr auto; gap: 26px 30px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; background: #fff; }
.col.on .col__open { opacity: 1; visibility: visible; transition: opacity .5s .25s, visibility 0s; }
.col__open .n { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 46px; letter-spacing: -.03em; line-height: 1; }
.col__open .t { font-size: clamp(34px, 3.4vw, 54px); align-self: start; white-space: nowrap; }
.col__open .t::before { content: "// "; }
.col__open .scope { font-size: clamp(18px, 1.7vw, 27px); line-height: 1.3; }
.col__open .scope li::before { content: "/ "; }
.col__open figure { align-self: start; overflow: hidden; background: var(--plate); }
.col__open figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.col__open a:hover figure img, .col__open figure:hover img { transform: scale(1.04); }
.col__open .sum { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.col__open .sum p { max-width: 46ch; font-size: 14px; color: #3c3c3a; }
.col__open .sum .link { white-space: nowrap; font-size: 15px; }
.nda { margin: 0 var(--pad); padding: 30px 0 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 2.4fr; gap: 24px; align-items: start; }
.cols + .nda { margin-top: clamp(60px, 8vw, 120px); }
.nda h3 { font-size: clamp(28px, 3vw, 46px); }
.nda p { max-width: 62ch; font-size: 14px; }
.nda p + p { margin-top: 14px; }

/* ---------- about ---------- */
.about__big { font-family: var(--mono); font-weight: 300; font-size: clamp(30px, 5.6vw, 96px); line-height: 1.02; letter-spacing: -.02em; color: var(--mute-d); max-width: 17ch; }
.about__big em { font-style: normal; color: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(40px, 6vw, 110px) clamp(24px, 4vw, 70px); margin-top: clamp(70px, 9vw, 150px); align-items: start; }
.about__eyes { grid-column: 1 / 3; position: relative; overflow: hidden; aspect-ratio: 16 / 5.4; }
.about__eyes img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37.5%; transform: scale(1.5); transform-origin: 50% 38%; }
.about__hello { align-self: end; font-size: 18px; font-weight: 300; }
.about__hello b { font-weight: 500; display: block; }
.blk h3 { font-size: 16px; font-weight: 300; color: var(--mute-d); margin-bottom: 26px; display: flex; gap: 1em; }
.blk p { font-size: 14px; }
.blk p + p { margin-top: 14px; }
.about__habit { grid-column: 1 / -1; font-size: clamp(34px, 5.4vw, 92px); display: flex; flex-wrap: wrap; gap: 0 .45em; padding-top: clamp(20px, 3vw, 50px); border-top: 1px solid #3a3a38; }
.about__habit span:nth-child(2) { color: var(--mute-d); }

/* ---------- experience ---------- */
.xp h2 { margin-bottom: clamp(40px, 6vw, 100px); }
.xp h2 .fit { font-size: 9vw; }
.row { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; gap: 24px; padding: 30px 0 38px; border-top: 2px solid var(--ink); align-items: start; }
.row .yr { font-size: clamp(34px, 4.4vw, 76px); white-space: nowrap; }
.row .yr i { font-style: normal; color: var(--mute); }
.row h3 { font-size: clamp(26px, 2.6vw, 42px); }
.row .co { margin-top: 10px; font-size: 13px; }
.row .co span { color: var(--mute); display: block; }
.row ul { font-size: 13.5px; max-width: 48ch; }
.row li { padding-left: 1.6em; text-indent: -1.6em; }
.row li + li { margin-top: 8px; }
.row li::before { content: "/ "; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.nums div { padding: 30px 26px 34px 0; }
.nums div + div { border-left: 2px solid var(--ink); padding-left: 26px; }
.nums b { display: block; font-size: clamp(64px, 9vw, 160px); }
.nums b sup { font-size: .35em; vertical-align: top; position: relative; top: .1em; color: var(--yellow); letter-spacing: 0; -webkit-text-stroke: 0; }
.nums div > span { font-size: 12.5px; display: block; margin-top: 12px; max-width: 24ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; margin-top: clamp(50px, 6vw, 100px); }
.facts h3 { font-size: 13px; font-weight: 400; color: var(--mute); margin-bottom: 16px; }
.facts li { font-size: 13.5px; }
.facts li + li { margin-top: 6px; }
.facts li small { display: block; color: var(--mute); font-size: 11.5px; }

/* ---------- contact + footer ---------- */
.ct { padding-bottom: 0; }
.ct__k { text-align: center; font-size: clamp(20px, 2.2vw, 34px); margin-bottom: 14px; }
.ct__h { text-align: center; }
.ct__h .d { display: block; font-size: clamp(60px, 12.5vw, 220px); }
.ct__h .spaced { display: block; margin: 26px 0 22px; padding-left: 1.1em; }
.ct__body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-top: clamp(70px, 10vw, 170px); }
.ct__links { display: grid; gap: 14px; font-size: 20px; font-weight: 300; }
.ct__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ct__mail { text-align: right; }
.ct__mail a.d { font-size: clamp(34px, 5.6vw, 96px); text-transform: none; display: inline-block; border-bottom: 3px solid transparent; transition: border-color .3s; line-height: 1; padding-bottom: 4px; }
.ct__mail a.d:hover { border-color: currentColor; }
.ct__mail .sub { margin-top: 22px; display: flex; gap: clamp(24px, 5vw, 80px); justify-content: flex-end; flex-wrap: wrap; font-size: 18px; }
.ct__soc { display: flex; justify-content: space-between; margin-top: clamp(60px, 7vw, 110px); font-size: 20px; font-weight: 300; }
.ft__name { margin-top: 34px; overflow: hidden; }
.ft__name .fit { font-size: 15vw; }
.ft__base { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 34px 0 30px; font-size: 13px; }
.ft__base .small { text-align: right; max-width: 40ch; text-transform: none; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.mask { overflow: hidden; }
.mask > * { transform: translateY(102%); transition: transform 1.1s var(--ease); }
.mask.in > * { transform: none; }

/* ============ case study ============ */
.cs-top { padding: 150px var(--pad) 0; }
.cs-back { font-size: 14px; display: inline-block; margin-bottom: 26px; }
.cs-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.cs-top .fit { font-size: 20vw; }
.cs-kick { display: grid; grid-template-columns: 1fr 2.4fr; gap: 24px; margin-top: 30px; align-items: start; }
.cs-kick .n { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 26px; letter-spacing: -.03em; }
.cs-kick p { font-size: clamp(20px, 2.4vw, 38px); font-weight: 300; line-height: 1.12; letter-spacing: -.01em; max-width: 30ch; }
.cs-hero { margin-top: clamp(40px, 5vw, 80px); background: #111; }
.cs-hero img { width: 100%; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--ink); margin: 0 var(--pad); }
.cs-meta div { padding: 28px 24px 34px 0; }
.cs-meta div + div { border-left: 2px solid var(--ink); padding-left: 24px; }
.cs-meta dt { font-size: 12px; color: var(--mute); margin-bottom: 12px; }
.cs-meta dd { font-size: 13.5px; }
.cs-links { margin: 26px var(--pad) 0; display: flex; gap: 34px; flex-wrap: wrap; font-size: 14px; }
.cs-two { display: grid; grid-template-columns: 1fr 2.4fr; gap: 24px; align-items: start; }
.cs-two .lab { font-size: 16px; font-weight: 300; display: flex; gap: 1em; }
.cs-two h2 { font-size: clamp(44px, 7.4vw, 128px); max-width: 12ch; }
.read { font-family: var(--display); font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; max-width: 58ch; }
.cs-two .read { margin-top: 40px; }
.cs-wide { padding: 0 var(--pad); }
.cs-wide img { width: 100%; }
.cs-wide figcaption, .cs-pair figcaption { margin-top: 12px; font-size: 11.5px; color: var(--mute); }
.dec { margin-top: clamp(40px, 5vw, 80px); border-bottom: 2px solid var(--ink); }
.dec li { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; gap: 24px; padding: 28px 0 36px; border-top: 2px solid var(--ink); align-items: start; }
.dec .n { font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.dec h3 { font-size: clamp(26px, 2.8vw, 46px); line-height: .92; }
.dec .read { font-size: clamp(16px, 1.25vw, 19px); }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 30px); padding: 0 var(--pad); }
.cs-pair figure:nth-child(2) { margin-top: clamp(40px, 9vw, 150px); }
.cs-out h2 { font-size: clamp(44px, 7.4vw, 128px); max-width: 13ch; }
.cs-out .read { margin-top: 40px; color: #d6d6d2; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 130px); border-top: 1px solid #3a3a38; }
.cs-facts div { padding: 26px 20px 0 0; }
.cs-facts div + div { border-left: 1px solid #3a3a38; padding-left: 22px; }
.cs-facts b { display: block; font-size: clamp(50px, 7vw, 120px); white-space: nowrap; }
.cs-facts span { display: block; margin-top: 12px; font-size: 12.5px; color: var(--mute-d); max-width: 22ch; }
.cs-note { margin-top: 28px; font-size: 11.5px; color: var(--mute-d); text-transform: none; }
.cs-quote { margin-top: clamp(70px, 9vw, 150px); display: grid; grid-template-columns: 1fr 2.4fr; gap: 24px; }
.cs-quote blockquote { font-family: var(--mono); font-weight: 300; font-size: clamp(22px, 2.9vw, 48px); line-height: 1.1; letter-spacing: -.015em; max-width: 26ch; }
.cs-quote cite { display: block; margin-top: 30px; font-style: normal; font-size: 13px; }
.cs-quote cite a { text-decoration: underline; text-underline-offset: 4px; }
.cs-next { display: block; padding: clamp(60px, 8vw, 120px) var(--pad) 40px; }
.cs-next .lab { font-size: 18px; font-weight: 300; display: flex; justify-content: space-between; margin-bottom: 14px; }
.cs-next .fit { font-size: 20vw; transition: color .3s; }
.cs-next:hover .ar { transform: translate(6px, -6px); }
.cs-next .ar { display: inline-block; transition: transform .35s var(--ease); }
.cs-ft { padding: 0 var(--pad); border-top: 2px solid var(--ink); margin-top: 20px; }
.cs-ft .ft__base { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hd { grid-template-columns: 1fr auto; padding: 20px var(--pad); }
  .hd__nav, .hd__cv { display: none; }
  .hd__menu { display: block; }
  .hero { padding-top: 110px; }
  .hero__stage { grid-template-columns: 1fr; padding: 0 0 22px; margin-top: 18px; background: none; }
  .hero__pic { margin-top: 0; order: -1; aspect-ratio: 1 / 1; }
  .hero__list { padding: 22px 0 0; font-size: 30px; white-space: normal; }
  .hero__based { text-align: left; margin-top: 12px; letter-spacing: .7em; font-size: 12px; }
  .hero__lede { text-align: left; margin-left: 0; margin-top: 26px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 34px; }
  .hero__foot .mail { margin-left: 0; }
  .say { grid-template-columns: 1fr; min-height: 0; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .work__head p { text-align: left; }
  .cols { flex-direction: column; height: auto; }
  .col, .col.on { flex: none; border-right: 0; border-bottom: 2px solid var(--ink); cursor: default; }
  .col__shut { display: none; }
  .col__open { position: static; width: auto; opacity: 1; visibility: visible; grid-template-columns: 1fr; padding: 30px var(--pad) 36px; background: none; gap: 20px; }
  .col__open .n { font-size: 20px; }
  .col__open .t { font-size: 44px; white-space: normal; }
  .col__open figure { order: -1; grid-row: 1; }
  .col__open .sum { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nda, .cs-kick, .cs-two, .cs-quote { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__eyes { grid-column: auto; aspect-ratio: 16 / 7; }
  .row, .dec li { grid-template-columns: 1fr; gap: 14px; }
  .nums { grid-template-columns: 1fr; }
  .nums div + div { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); }
  .facts { grid-template-columns: 1fr 1fr; }
  .ct__body { grid-template-columns: 1fr; }
  .ct__mail { text-align: left; }
  .ct__mail a.d { font-size: 9.4vw; }
  .ct__mail .sub { justify-content: flex-start; }
  .ct__links { order: 2; font-size: 17px; }
  .ct__soc { font-size: 15px; }
  .ft__base { flex-direction: column; align-items: flex-start; }
  .ft__base .small { text-align: left; }
  .cs-top { padding-top: 110px; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-meta div:nth-child(3) { border-left: 0; padding-left: 0; }
  .cs-meta div:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .cs-pair { grid-template-columns: 1fr; }
  .cs-pair figure:nth-child(2) { margin-top: 0; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .cs-facts div:nth-child(n+3) { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .mask > * { opacity: 1; transform: none; transition: none; }
  .col, .col__open, .col__shut { transition: none; }
  .say__t span { transition: none; }
}

/* about headline lights up word by word */
.js .about__big .w { color: #454543; transition: color .35s linear; }
.js .about__big .w.on { color: var(--mute-d); }
.js .about__big .w.em.on { color: var(--paper); }

.hero__based.spaced, .hero__based.spaced.rv.in { letter-spacing: .8em; }

/* ---------- header v2: solid bar, hides on scroll down ---------- */
.hd { mix-blend-mode: normal; color: var(--ink); background: var(--paper); padding-top: 18px; padding-bottom: 18px; transition: transform .5s var(--ease), background-color .3s, color .3s, padding .3s; }
.hd.is-top { background: transparent; padding-top: 28px; padding-bottom: 28px; }
.hd.is-dark { color: var(--paper); background: var(--ink); }
.hd.is-dark.is-top { background: transparent; }
.hd.is-hidden { transform: translateY(-101%); }

/* ---------- portrait in black and white, colour on hover ---------- */
.hero__pic img, .about__eyes img { filter: grayscale(1) contrast(1.08); transition: filter .8s var(--ease); }
@media (hover: hover) { .hero__pic:hover img, .about__eyes:hover img { filter: grayscale(0) contrast(1); } }

/* ---------- footer v2 ---------- */
.ct { padding-bottom: clamp(80px, 10vw, 160px); }
.ft { padding: 0 var(--pad); overflow: hidden; }
.mq { margin: 0 calc(var(--pad) * -1); border-bottom: 1px solid #3a3a38; overflow: hidden; padding: 22px 0; }
.mq__in { display: flex; align-items: center; gap: 34px; width: max-content; animation: mq 26s linear infinite; font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; letter-spacing: -.03em; font-size: clamp(26px, 3.2vw, 50px); line-height: 1; white-space: nowrap; }
.mq__in .slash { flex: none; width: 1.5em; height: .5em; }
.mq:hover .mq__in { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.ft__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 40px 24px; padding: clamp(50px, 6vw, 96px) 0 clamp(30px, 4vw, 60px); align-items: start; }
.ft__grid .small { display: block; margin-bottom: 16px; }
.ft__grid ul { display: grid; gap: 8px; font-size: 18px; font-weight: 300; }
.ft__time b { display: block; font-size: clamp(64px, 9vw, 150px); font-variant-numeric: tabular-nums; }
.ft__top { display: grid; justify-items: end; gap: 12px; }
.ft__top .d { display: grid; place-items: center; width: clamp(72px, 7vw, 110px); aspect-ratio: 1; border: 2px solid var(--paper); border-radius: 50%; font-size: clamp(30px, 3vw, 48px); letter-spacing: 0; line-height: 1; transition: background-color .35s, border-color .35s, color .35s, transform .5s var(--ease); }
.ft__top:hover .d { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: translateY(-8px); }
.ft__top .small { margin: 0; }
.ft .ft__name { margin-top: 0; overflow: visible; padding-right: .04em; }
.ft .ft__base { border-top: 1px solid #3a3a38; margin-top: 20px; padding-top: 22px; }
@media (max-width: 1000px) {
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .ft__time { grid-column: 1 / -1; }
  .ft__top { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .mq__in { animation: none; } }

/* caption stays readable where it crosses the portrait on narrower laptops */
@media (min-width: 1001px) { .hero__based { color: #fff; mix-blend-mode: difference; } .hero__stage { width: min(760px, 56vw); } }

.hero__h .two { display: none; }
@media (max-width: 1000px) {
  .hero__h .one { display: none; }
  .hero__h .two { display: block; }
  .hero__h .two + .two { margin-top: -.02em; }
  .hero__based.spaced, .hero__based.spaced.rv.in { letter-spacing: .5em; white-space: nowrap; }
  .hero__top .spaced { letter-spacing: .7em; }
}

/* =====================================================================
   TYPE v2 — two families only.
   Headings: Bricolage Grotesque (condensed, heavy).
   Content:  Fraunces (text, labels, italic voice).
   ===================================================================== */
body { text-transform: none; letter-spacing: 0; font-size: 17px; line-height: 1.5; font-optical-sizing: auto; font-weight: 400; }
.d { letter-spacing: -.035em; line-height: .88; font-variation-settings: "wdth" 75, "opsz" 96; }
.read { font-family: var(--mono); font-stretch: normal; font-variation-settings: normal; font-weight: 400; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.5; }
.dec .read { font-size: clamp(17px, 1.3vw, 20px); }

/* labels: small caps voice */
.small, .cs-meta dt, .facts h3, .cs-wide figcaption, .cs-pair figcaption, .col__shut .y, .cz b {
  text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 500; line-height: 1.5; }
.cs-note, .ft__base .small { text-transform: none; letter-spacing: 0; font-size: 13px; font-style: italic; }

/* italic voice for asides and pointers */
.hd__nav, .hd__cv, .hd__menu, .folio > span, .say__k, .hero__foot .lbl, .blk h3, .cs-two .lab, .cs-next .lab,
.cs-back, .col__shut .c, .about__hello, .row .co span, .ct__links, .ft__grid ul { font-style: italic; }
.hd__nav { font-size: 18px; gap: clamp(22px, 4vw, 72px); }
.hd__nav a::before, .hd__nav a::after, .br::before, .br::after { content: none; }
.hd__cv, .hd__menu { font-size: 18px; }
.link { font-weight: 500; }
.folio { font-size: 18px; }
.cs-back { font-size: 18px; }

.hero__lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.42; max-width: 44ch; }
.hero__lede + .hero__lede { font-style: italic; }
.hero__foot .lbl { font-size: 20px; font-weight: 400; }
.hero__list { font-size: clamp(20px, 1.95vw, 29px); }
.say__k { font-size: 22px; font-weight: 400; }
.say__src { font-size: 12px; }

.work__head h2 { font-size: clamp(46px, 9vw, 170px); }
.work__head p { font-size: 18px; line-height: 1.4; max-width: 30ch; }
.col__shut .t { font-size: clamp(20px, 2.05vw, 32px); }
.col__shut .c { font-size: 15px; line-height: 1.3; color: var(--mute); }
.col__open .t { font-size: clamp(30px, 2.9vw, 46px); }
.col__open .scope { font-size: clamp(16px, 1.45vw, 23px); }
.col__open .sum p { font-size: 18px; line-height: 1.4; max-width: 40ch; }
.col__open .sum .link { font-size: 17px; }
.nda p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }

.about__big { font-family: var(--mono); font-weight: 300; letter-spacing: -.025em; line-height: 1; font-size: clamp(40px, 7vw, 124px); max-width: 14ch; font-variation-settings: "opsz" 144; }
.about__big .em, .about__big em { font-style: italic; }
.about__hello { font-size: 22px; }
.about__hello b { font-style: normal; font-weight: 500; }
.blk h3 { font-size: 21px; font-weight: 400; }
.blk p { font-size: 17.5px; line-height: 1.5; }

.row .co { font-size: 17px; }
.row ul { font-size: 17px; line-height: 1.45; }
.row .yr { font-size: clamp(30px, 3.8vw, 64px); }
.row h3 { font-size: clamp(24px, 2.3vw, 38px); }
.nums div > span { font-size: 16px; font-style: italic; max-width: 22ch; }
.facts li { font-size: 17px; }
.facts li small { font-size: 14px; font-style: italic; }

.ct__h .d { font-size: clamp(52px, 10.6vw, 190px); }
.ct__k { font-family: var(--mono); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: -.01em; font-stretch: normal; font-size: clamp(28px, 3.4vw, 54px); }
.ct__links { font-size: 21px; font-weight: 400; }
.ct__mail .sub { font-size: 18px; }
.ct__mail a.d { font-size: clamp(30px, 4.8vw, 84px); }
.ft__grid ul { font-size: 20px; font-weight: 400; }
.ft__base { font-size: 15px; }
.mq__in { letter-spacing: -.025em; }

.cs-kick p { font-family: var(--mono); font-weight: 300; font-size: clamp(24px, 2.9vw, 46px); line-height: 1.08; letter-spacing: -.015em; max-width: 26ch; font-variation-settings: "opsz" 144; }
.cs-meta dd { font-size: 17px; line-height: 1.4; }
.cs-links { font-size: 17px; }
.cs-two .lab, .cs-next .lab { font-size: 20px; font-weight: 400; }
.cs-two h2, .cs-out h2 { font-size: clamp(40px, 6.4vw, 112px); }
.dec h3 { font-size: clamp(24px, 2.4vw, 40px); }
.cs-facts span { font-size: 15px; font-style: italic; }
.cs-quote blockquote { font-family: var(--mono); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.3vw, 54px); line-height: 1.08; letter-spacing: -.015em; max-width: 24ch; font-variation-settings: "opsz" 144; }
.cs-quote cite { font-size: 16px; }
.mnav .small { font-size: 13px; }

@media (max-width: 1000px) {
  .col__open .t { font-size: 40px; }
  .hero__list { font-size: 28px; }
  .ct__mail a.d { font-size: 8.4vw; }
  .about__big { font-size: 13vw; }
}

/* tracking by size: tight only where the type is huge */
.d { letter-spacing: -.015em; font-variation-settings: "wdth" 75; }
.fit, .say__t, .work__head h2, .ct__h .d, .cs-two h2, .cs-out h2, .nums b, .cs-facts b, .about__habit, .ft__time b, .row .yr, .mnav a.d { letter-spacing: -.012em; }
.hd__name { letter-spacing: -.03em; }
.spaced { text-transform: uppercase; }
.hero__foot .mail, .ct__mail a.d { letter-spacing: -.02em; }

/* =====================================================================
   TYPE v3 — small text is sans, serif only at display sizes.
   Bricolage Grotesque: headings (condensed, heavy) and all small text (normal width).
   Fraunces: large statements only (about line, case intro, quote, "Hiring?").
   ===================================================================== */
body { font-family: var(--display); font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 400; font-size: 16.5px; line-height: 1.5; letter-spacing: 0; font-synthesis: none; }
.read { font-family: var(--display); font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 400; letter-spacing: -.005em; }
.hd__nav, .hd__cv, .hd__menu, .folio > span, .say__k, .hero__foot .lbl, .blk h3, .cs-two .lab, .cs-next .lab,
.cs-back, .col__shut .c, .about__hello, .row .co span, .ct__links, .ft__grid ul, .hero__lede + .hero__lede,
.nums div > span, .facts li small, .cs-facts span, .cs-note, .ft__base .small { font-style: normal; }
.hd__nav, .hd__cv, .hd__menu, .cs-back { font-size: 16px; font-weight: 500; }
.folio, .say__k, .hero__foot .lbl, .blk h3, .cs-two .lab, .cs-next .lab { font-size: 18px; font-weight: 400; }
.small, .cs-meta dt, .facts h3, .cs-wide figcaption, .cs-pair figcaption, .col__shut .y, .cz b { font-weight: 600; letter-spacing: .1em; }
.hero__lede { letter-spacing: -.005em; }
.blk p, .row ul, .row .co, .facts li, .cs-meta dd { font-size: 16.5px; }
.col__shut .c { font-size: 14.5px; }
.nums div > span, .cs-facts span { font-size: 15px; }
.cs-note, .ft__base .small { font-size: 13px; }
.cs-quote cite { font-size: 15px; }
