:root {
  --black: #111111;
  --ink: #000000;
  --white: #ffffff;
  --paper: #f4f4f4;
  --grey: #8a8a8a;
  --line: #d6d6d6;
  --line-dark: #333333;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.dark { background: var(--black); color: var(--white); }
.label, .mono { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.label { font-size: 13px; color: var(--grey); text-transform: uppercase; margin-bottom: 20px; }

h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 700; }

section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section__head { max-width: var(--max); margin: 0 auto 56px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.section__head h2 { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; padding: 16px 28px; border: 2px solid currentColor; cursor: pointer; transition: background .2s, color .2s; }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--full { width: 100%; }
.link { font-family: var(--mono); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; text-underline-offset: 6px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 16px var(--gutter); background: rgba(17,17,17,0.92); backdrop-filter: blur(8px); color: var(--white); }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-family: var(--mono); font-weight: 700; font-size: 13px; text-transform: uppercase; text-decoration: none; color: #bdbdbd; }
.nav__links a:hover { color: var(--white); }
.nav__cta { padding: 10px 18px; font-size: 12px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; overflow: hidden; }
.hero > * { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; }
.hero__title { font-size: clamp(44px, 9vw, 132px); line-height: 0.98; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 56px; }
.hero__title span { display: block; }
.hero__title .indent { padding-left: 0.4em; }
.hero__title .muted { color: #9a9a9a; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.hero__lede { max-width: 520px; font-size: 18px; color: #cfcfcf; }
.hero__actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero__square { position: absolute; width: clamp(140px, 22vw, 300px); right: var(--gutter); top: 22%; opacity: 0.08; margin: 0; pointer-events: none; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.split__text p:not(.label) { font-size: 18px; color: #333; margin-bottom: 16px; max-width: 520px; }
.split__img { border: 3px solid var(--ink); }
.split__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split--reverse { background: var(--paper); max-width: none; padding-left: max(var(--gutter), calc((100% - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2)); }

/* Services */
.services__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; filter: grayscale(1) contrast(1.05); transition: filter .3s; }
.card:hover img { filter: grayscale(1) contrast(1.25); }
.card .label { margin-bottom: 8px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { color: #444; }

/* Client logo marquee */
.marquee { padding: 56px 0 64px; overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.marquee__label { padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto 36px; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); list-style: none; margin: 0; }
.logo { flex: none; display: flex; align-items: center; height: 72px; }
.logo img { height: 56px; width: auto; max-width: 260px; filter: invert(1); opacity: 0.82; transition: opacity .2s; }
.logo:hover img { opacity: 1; }
.logo--qss img { height: 40px; }
.logo--indevco img { height: 58px; }
.logo--set img { height: 30px; }
.logo--roky img { height: 60px; }
.logo--moxie-crew img, .logo--bassant-bahaa img { height: 66px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); row-gap: 32px; }
}

/* Work */
.work { padding-bottom: 0; }
.case:last-child { margin-bottom: 0; }
.case { max-width: var(--max); margin: 0 auto clamp(72px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.case--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case--flip .case__text { order: 2; }
.case__text { position: sticky; top: 96px; min-width: 0; }
.case__text .label { margin-bottom: 12px; }
.case__client { font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 8px; }
.case__sector { font-family: var(--mono); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey); margin-bottom: 24px; }
.case__lead { font-size: 21px; line-height: 1.35; font-weight: 700; margin-bottom: 16px; }
.case__text p:not(.label):not(.case__sector):not(.case__lead) { color: #333; font-size: 17px; margin-bottom: 24px; max-width: 54ch; }
.case__scope { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.case__scope li { font-family: var(--mono); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; border: 1px solid var(--ink); padding: 7px 10px; }
.case__gallery { display: grid; gap: 12px; min-width: 0; }
.case__gallery figure { margin: 0; overflow: hidden; background: var(--paper); }
.case__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case__gallery figure:hover img { transform: scale(1.03); }
.case__gallery--wide { grid-template-columns: repeat(3, 1fr); }
.case__gallery--wide .g-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.case__gallery--wide figure:not(.g-main) { aspect-ratio: 4 / 5; }
.case__gallery--three { grid-template-columns: repeat(3, 1fr); }
.case__gallery--three figure { aspect-ratio: 4 / 5; }
.case__gallery--three figure:nth-child(2) { margin-top: 48px; }
@media (prefers-reduced-motion: reduce) { .case__gallery img { transition: none; } }

/* Brand tally, sits on top of the logo marquee */
.tally { padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto clamp(40px, 6vw, 72px); }
.tally__label { margin-bottom: clamp(16px, 2vw, 28px); }
.tally__row { position: relative; display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line-dark); }
.tally__row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--white); transform-origin: left; transform: scaleX(1); }
.counter.is-ready .tally__row::after { transform: scaleX(0); }
.counter.is-ready .tally__row.is-on::after { transform: scaleX(1); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.tally__num { display: inline-flex; flex: none; font-weight: 700; font-size: clamp(150px, 34vw, 500px); line-height: 0.8; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; margin-left: -0.04em; }
.tally__num .plus { color: var(--grey); font-weight: 400; margin-left: 0.02em; }
.odo { display: inline-block; height: 0.8em; overflow: visible; clip-path: inset(0 -0.3em); line-height: 0.8; }
.odo__strip { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.odo__strip span { height: 0.8em; display: block; }
.tally__text { font-size: clamp(20px, 2.4vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; max-width: 18ch; padding-bottom: 0.4em; min-width: 0; }
.tally__sub { display: block; margin-top: 16px; font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .odo__strip, .counter.is-ready .tally__row.is-on::after { transition: none; } }
@media (max-width: 680px) { .tally__row { flex-direction: column; align-items: flex-start; } .tally__text { max-width: none; } }

/* Sub pages */
.page-hero { padding-top: clamp(140px, 16vw, 200px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(44px, 8vw, 112px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.subpage .beliefs { background: var(--white); color: var(--ink); }
.subpage .beliefs__list li { border-color: var(--line); }
.cta-band { text-align: left; }
.cta-band > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.cta-band p:not(.label) { color: #cfcfcf; font-size: 18px; max-width: 56ch; margin: 0 0 32px max(0px, calc((100% - var(--max)) / 2)); }
.cta-band .btn { display: table; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.nav__links a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle { display: none; background: none; border: 1px solid #555; color: var(--white); padding: 9px 12px; font-size: 12px; cursor: pointer; }

/* Beliefs */
.beliefs > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.beliefs__list { list-style: none; }
.beliefs__list li { font-size: clamp(26px, 4.6vw, 60px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1; padding: 28px 0; border-bottom: 1px solid var(--line-dark); display: flex; gap: 24px; align-items: baseline; }
.beliefs__list li:first-child { border-top: 1px solid var(--line-dark); }
.beliefs__list .mono { font-size: 16px; color: var(--grey); flex: none; }

/* Process */
.process__list { max-width: var(--max); margin: 0 auto; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process__list li { border-top: 3px solid var(--ink); padding-top: 24px; }
.process__list .mono { display: block; font-size: 14px; color: var(--grey); margin-bottom: 16px; }
.process__list h3 { margin-bottom: 10px; }
.process__list p { color: #444; }

/* Brief */
.brief { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); padding-left: max(var(--gutter), calc((100% - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.brief__intro p:not(.label) { color: #cfcfcf; font-size: 18px; margin-bottom: 16px; }
.brief__contact a { color: var(--white); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #bdbdbd; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { font: 16px var(--sans); color: var(--white); background: transparent; border: 0; border-bottom: 1px solid #555; padding: 10px 0; border-radius: 0; outline: none; text-transform: none; letter-spacing: 0; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #bdbdbd 50%), linear-gradient(135deg, #bdbdbd 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form select option { color: var(--black); }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--white); }
.form textarea { resize: vertical; border: 1px solid #555; padding: 12px; }
.form textarea:focus { border-color: var(--white); }
.form ::placeholder { color: #6f6f6f; }
.form .invalid { border-color: #e0e0e0 !important; background-color: rgba(255,255,255,0.06); }
.form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend { font-family: var(--mono); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #bdbdbd; margin-bottom: 12px; }
.form__chips .hint { color: #777; margin-left: 8px; }
.form__chips label { display: inline-block; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips label span { display: inline-block; padding: 9px 14px; border: 1px solid #555; color: #cfcfcf; font-size: 12px; transition: all .15s; }
.form__chips input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.form__chips input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form__status { font-family: var(--mono); font-size: 14px; min-height: 20px; color: var(--white); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { padding: 72px var(--gutter) 32px; border-top: 1px solid var(--line-dark); }
.footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer__logo { height: 48px; width: auto; margin-bottom: 48px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.footer__cols { display: flex; gap: 96px; flex-wrap: wrap; margin-bottom: 72px; }
.footer__cols a, .footer__cols p:not(.label) { display: block; font-size: 18px; font-weight: 700; text-decoration: none; margin-bottom: 6px; }
.footer__cols a:hover { text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey); padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 12px; }
}
@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 11px; }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__text { order: 0; }
  .case__text { position: static; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .brief { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .logo img { height: 40px; max-width: 180px; }
  .logo--qss img { height: 28px; } .logo--set img { height: 22px; } .logo--moxie-crew img, .logo--bassant-bahaa img { height: 48px; }
  .case__gallery--three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .case__gallery--three figure:nth-child(2) { margin-top: 24px; }
  .case__gallery--wide { gap: 8px; }
  .nav__cta { padding: 9px 12px; font-size: 11px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__img { order: 2; }
  .services__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__title .indent { padding-left: 0; }
  .footer__cols { gap: 40px; }
}

/* Uppercase titles across the site, and short copy on the landing page */
h1, h2, h3, .case__client, .case__lead, .tally__text, .page-hero h1 { text-transform: uppercase; }
h2 { letter-spacing: -0.01em; }
.home .hero__lede, .home .split__text p, .home .case__text p, .home .process__list p, .home .brief__intro p:not(.brief__contact), .home .cta-band p { text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; line-height: 1.65; }
.home .hero__lede { font-size: 16px; }
.home .case__text .case__lead { font-size: 21px; line-height: 1.3; letter-spacing: 0; }
.home .case__text .case__sector { font-size: 13px; }

/* Footer page links: phones only */
.footer__pages { display: none; }
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .footer__pages { display: block; }
}

/* B&F social strip inside its case study */
.case__social { grid-column: 1 / -1; order: 3; min-width: 0; }
.case__social .label { margin-bottom: 14px; }
.social-strip { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.social-strip li { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.social-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.social-strip li:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .social-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .social-strip li { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .social-strip img { transition: none; } }

/* Faint background pattern: a grid of small open squares, echoing the square in the Nothing. mark */
:root {
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect x='16.5' y='16.5' width='3' height='3' fill='none' stroke='%23000' stroke-opacity='0.08'/%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect x='16.5' y='16.5' width='3' height='3' fill='none' stroke='%23fff' stroke-opacity='0.1'/%3E%3C/svg%3E");
}
body { background: var(--white) var(--pattern-light); }
.dark { background: var(--black) var(--pattern-dark); }
.split--reverse { background: var(--paper) var(--pattern-light); }
.nav { background: rgba(17,17,17,0.92) var(--pattern-dark); }
.footer { background: var(--black) var(--pattern-dark); }

/* Work: project covers on the homepage */
.projects { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(56px, 7vw, 96px); }
.project { display: block; color: inherit; text-decoration: none; min-width: 0; }
.project:nth-child(even) { margin-top: clamp(80px, 12vw, 180px); }
.project__img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.project:hover .project__img img, .project:focus-visible .project__img img { transform: scale(1.035); }
.project__meta { display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--ink); margin-top: 18px; }
.project__meta .mono { font-size: 12px; color: var(--grey); }
.project__meta h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -0.01em; }
.project__meta p { grid-column: 2; font-family: var(--mono); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--grey); margin-top: 6px; }
.project__more { grid-column: 3; grid-row: 1; font-size: 11px !important; color: var(--ink) !important; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid transparent; transition: border-color .2s; }
.project:hover .project__more { border-bottom-color: var(--ink); }
.project:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (max-width: 680px) {
  .projects { grid-template-columns: 1fr; row-gap: 56px; }
  .project:nth-child(even) { margin-top: 0; }
  .project__more { display: none; }
}
@media (prefers-reduced-motion: reduce) { .project__img img { transition: none; } }

/* Case study pages */
.cs-hero { padding-top: clamp(150px, 16vw, 220px); padding-bottom: clamp(56px, 8vw, 104px); }
.cs-hero__inner { max-width: var(--max); margin: 0 auto; }
.cs-hero h1 { font-size: clamp(48px, 9vw, 136px); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
.cs-hero__sector { font-size: 13px; color: var(--grey); text-transform: uppercase; margin: 20px 0 28px; }
.cs-hero__lead { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; font-weight: 700; max-width: 30ch; text-transform: uppercase; color: #e6e6e6; }
.cs-info__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); border-top: 3px solid var(--ink); padding-top: 28px; }
.cs-info__grid p:not(.label) { font-size: 17px; color: #333; max-width: 46ch; }
.cs-gallery { padding-top: 0; display: grid; gap: clamp(12px, 1.6vw, 24px); }
.cs-gallery > * { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; }
.cs-label { margin-top: clamp(32px, 4vw, 56px); margin-bottom: 0; }
.cs-row { display: grid; gap: clamp(12px, 1.6vw, 24px); }
.cs-row figure { margin: 0; overflow: hidden; background: var(--paper); }
.cs-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-row--full figure { aspect-ratio: 16 / 9; }
.cs-row--two { grid-template-columns: 1fr 1fr; }
.cs-row--two figure { aspect-ratio: 4 / 5; }
.cs-row--two-wide { grid-template-columns: 1fr 1fr; }
.cs-row--two-wide figure { aspect-ratio: 3 / 2; }
.cs-row--three { grid-template-columns: repeat(3, 1fr); }
.cs-row--three figure { aspect-ratio: 4 / 5; }
.cs-next { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; border-top: 1px solid var(--ink); }
.cs-next__link { text-decoration: none; color: inherit; display: grid; gap: 8px; }
.cs-next__name { font-size: clamp(36px, 6vw, 88px); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: -0.03em; }
.cs-next__link:hover .cs-next__name { text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 3px; }
@media (max-width: 900px) { .cs-info__grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .cs-row--two, .cs-row--two-wide { grid-template-columns: 1fr; }
  .cs-row--three { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
  .cs-row--three figure { flex: 0 0 72%; scroll-snap-align: start; }
}

/* Work grid: four small covers side by side on laptops */
@media (min-width: 681px) {
  .projects { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(14px, 1.6vw, 24px); row-gap: 40px; }
  .project:nth-child(even) { margin-top: 0; }
  .project__meta { grid-template-columns: auto 1fr; padding-top: 12px; margin-top: 12px; column-gap: 10px; }
  .project__meta h3 { font-size: clamp(15px, 1.35vw, 19px); }
  .project__meta p { font-size: 10px; margin-top: 4px; }
  .project__more { display: none; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Work: compact grid that always fits one screen.
   Four covers side by side on any laptop or tablet, a 2 x 2 grid on phones.
   Cover height is capped by screen height so the whole section stays in view. */
section.work { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.work .section__head { margin-bottom: 28px; }
.work .section__head h2 { font-size: clamp(22px, 2.6vw, 36px); }
.projects, .projects[class] {
  display: grid; grid-template-columns: repeat(4, minmax(0, 34vh)); justify-content: start;
  column-gap: clamp(12px, 1.6vw, 24px); row-gap: 24px; max-width: var(--max); margin: 0 auto;
}
.project, .project:nth-child(even) { margin-top: 0; }
.project__meta { grid-template-columns: auto 1fr; padding-top: 10px; margin-top: 10px; column-gap: 8px; }
.project__meta h3 { font-size: clamp(13px, 1.2vw, 17px); }
.project__meta p { font-size: 9px; margin-top: 3px; }
.project__more { display: none; }
@media (max-width: 600px) {
  .projects, .projects[class] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 22px; }
  .project__img { aspect-ratio: 1 / 1; }
}
/* Work: covers fill the full width of the section, height capped so it still fits one screen */
.projects, .projects[class] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project__img { max-height: 50vh; }
@media (max-width: 600px) {
  .projects, .projects[class] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project__img { max-height: none; }
}
/* Tighter space between Work and the next section */
section.work { padding-bottom: 0 !important; }
section.work + section { padding-top: clamp(56px, 6vw, 88px); }
