/* MHCS · bureau of strategy — site stylesheet built on brand.css v2 (30.09.2026)
   Two fonts (ATP Runners Society, Space Mono), three colours (blanc, graphite, lime), one sign.
   Layout: magazine header (3 words), technical footer, hairlines in text colour, one lime zone per page. */

@font-face { font-family: "ATP Runners"; src: url("/assets/fonts/ATP-RunnersSociety.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ATP Runners"; src: url("/assets/fonts/ATP-RunnersSocietyBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blanc: #F4F4F2;
  --graphite: #1C1C1C;
  --lime: #CFFF04;
  --bg: var(--blanc);
  --fg: var(--graphite);
  --muted: .6;
  --serif: "ATP Runners", Georgia, serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --fs-meta: .6875rem;
  --fs-sig: .75rem;
  --fs-body: .9375rem;
  --fs-manif: clamp(1.25rem, 2.6vw, 2.25rem);
  --fs-title: clamp(2rem, 4.8vw, 4.25rem);
  --gutter: clamp(16px, 3vw, 48px);
  --max: 1520px;
  --grain: .14;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
.dark { --bg: var(--graphite); --fg: var(--blanc); color-scheme: dark; }
.lime { --bg: var(--lime); --fg: var(--graphite); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; background: var(--blanc); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--fs-body)/1.55 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.dark, .lime { background: var(--bg); color: var(--fg); }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
figure, p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--graphite); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: var(--blanc); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
section { padding-block: calc(var(--gutter) * 1.25); }
.muted { opacity: var(--muted); }

/* Grain (14 % multiply on blanc, 8 % screen on graphite) */
.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain); mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); background-size: 200px 200px; z-index: 0; }
.dark.grain::after { mix-blend-mode: screen; opacity: calc(var(--grain) * .6); }
.grain > * { position: relative; z-index: 1; }

/* Brand type */
/* Titles: Space Mono bold, capitals. ATP Runners stays in the logo only. */
.title { font-family: var(--mono); font-weight: 700; font-size: var(--fs-title); line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; }
.title em { font-style: normal; text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .08em; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.sig { font-size: var(--fs-sig); letter-spacing: .04em; }
.sig::before { content: "("; } .sig::after { content: ")"; }
.code { font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.meta { display: block; font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }
.mag { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: baseline; font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; padding-bottom: .6em; border-bottom: 1px solid currentColor; margin-bottom: calc(var(--gutter) * .8); }
.mag > :nth-child(2) { text-align: center; }
.mag > :nth-child(3) { text-align: right; }
.mag a { text-decoration: none; }
.mag a:hover { text-decoration: underline; }
.mag--one { grid-template-columns: 1fr; text-align: center; }
.mag--one > :first-child { text-align: center; }
.btn--inline { margin: 0 0 0 .6em; vertical-align: middle; position: relative; top: -.6em; line-height: 1; padding: .55em 1em; font-size: var(--fs-meta); letter-spacing: .08em; }
.pied { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid currentColor; padding-top: .7em; font-size: var(--fs-meta); letter-spacing: .06em; text-transform: uppercase; line-height: 1.8; }
.pied > :last-child { text-align: right; }
.btn { display: inline-block; margin-top: 1.6em; font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; padding: .9em 1.4em; border: 1px solid currentColor; color: inherit; text-decoration: none; background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; border-width: 1.5px; filter: url(#wobble); transition: background .2s, color .2s, transform .25s var(--ease); will-change: transform; }
.btn:hover { background: var(--lime); color: var(--graphite); border-color: var(--graphite); filter: url(#wobble-2); transform: rotate(-1.5deg) scale(1.05); }
.lime .btn:hover { background: var(--graphite); color: var(--lime); border-color: var(--graphite); }
.list li { padding: .55em 0; border-top: 1px solid currentColor; }
.list li:last-child { border-bottom: 1px solid currentColor; }
.manif__text { font-weight: 700; font-size: var(--fs-manif); text-transform: uppercase; text-align: justify; line-height: 1.15; letter-spacing: .01em; hyphens: none; max-width: 30ch; margin: 1.2em 0 2em; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 14px var(--gutter); background: color-mix(in srgb, var(--blanc) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--graphite); font-size: var(--fs-meta); letter-spacing: .08em; text-transform: uppercase; transition: transform .4s var(--ease); }
.top.is-hidden { transform: translateY(-100%); }
.top__logo { display: block; width: 104px; color: var(--graphite); text-decoration: none; }
.top__logo svg { width: 100%; height: auto; }
.top__nav { display: flex; gap: clamp(16px, 2.4vw, 40px); justify-self: center; align-items: center; }
.top__nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.top__nav a:hover { border-bottom-color: currentColor; }
.top__nav a[aria-current] { font-family: var(--serif); font-weight: 700; text-transform: lowercase; letter-spacing: 0; font-size: 1.25em; line-height: 1; background: var(--lime); color: var(--graphite); padding: .12em .5em .18em; border: 0; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; filter: url(#wobble); }
.top__nav a[aria-current]:hover { border: 0; }
.top__right { text-align: right; opacity: var(--muted); }
.top__mmmhh { justify-self: end; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; opacity: 1; color: #e3127e; }
.top__mmmhh span { color: var(--graphite); }
.top__mmmhh .mmmhh-logo { height: 34px; width: auto; }
.top__mmmhh span { opacity: var(--muted); text-transform: none; letter-spacing: .04em; }
.top__mmmhh:hover span { opacity: 1; text-decoration: underline; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--graphite); justify-self: end; }
.burger span { display: block; width: 22px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s var(--ease); }
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; }
  .top__right { display: none; }
  .top__nav .top__mmmhh { display: inline-flex; margin-top: 16px; border: 0; }
  .burger { display: block; }
  .top__nav { position: fixed; inset: 0; top: 62px; flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gutter); background: var(--blanc); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
  .top__nav a { font-weight: 700; font-size: 1.6rem; line-height: 1.2; padding: .15em 0; border: 0; width: 100%; border-bottom: 1px solid currentColor; }
  body.menu-open .top__nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  body.menu-open { overflow: hidden; }
  body.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Home: transparent header over the hero, solid once scrolled */
.home .top, .imghead .top { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; color: var(--blanc); transition: background .35s, color .35s, border-color .35s, transform .4s var(--ease); }
.home .top .top__logo, .home .top .burger, .home .top .top__mmmhh span, .imghead .top .top__logo, .imghead .top .burger, .imghead .top .top__mmmhh span { color: inherit; }
.home .top.is-scrolled, .imghead .top.is-scrolled { background: color-mix(in srgb, var(--blanc) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--graphite); color: var(--graphite); }
.home .top.is-scrolled .top__logo, .home .top.is-scrolled .burger, .imghead .top.is-scrolled .top__logo, .imghead .top.is-scrolled .burger { color: var(--graphite); }
@media (max-width: 860px) { .home .top, .imghead .top { background: transparent; } .home .top .top__nav, .imghead .top .top__nav { color: var(--graphite); } }

/* Hero: full-bleed image, parallax, lockup centred over it */
.hero { padding: 0; }
.hero__stage { position: relative; min-height: clamp(560px, 92vh, 900px); overflow: hidden; background: var(--graphite); }
.hero__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.8); }
.hero__stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(28,28,28,.55)); z-index: 1; pointer-events: none; }
.hero__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; padding-block: 18px var(--gutter); color: var(--blanc); z-index: 2; }
.hero__over .mag { margin-bottom: 0; }
.hero__logo { display: block; width: min(76vw, 860px); color: var(--blanc); text-decoration: none; margin: auto; }
.hero__logo svg { width: 100%; height: auto; overflow: visible; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__text { max-width: 46ch; font-size: var(--fs-body); line-height: 1.5; }


/* Lockup: one block, slow float, a gentle lift and tilt on hover (no per-letter bounce) */
.hero__logo--live svg { animation: wm-float 12s linear infinite; transition: transform .8s var(--ease); will-change: transform; }
.hero__logo--live:hover svg { animation-duration: 6s; }
/* Lockup everywhere: signature centred under the wordmark, at 62 % */
.lockup .wm-sig { transform-box: fill-box; transform-origin: 50% 0; transform: translateX(-79px) scale(.62); }
.lockup svg { width: 100%; height: auto; display: block; }

/* Continuous drift: the logo travels on a small circle, always in the same direction, never back and forth */
@keyframes wm-float {
  0%   { transform: translate(0, -1.6%) }
  25%  { transform: translate(1.2%, 0) }
  50%  { transform: translate(0, 1.6%) }
  75%  { transform: translate(-1.2%, 0) }
  100% { transform: translate(0, -1.6%) }
}

/* Intro: editorial block, full width, mono bold justified */
.intro { padding-top: 0; }
.intro__edito { font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.9rem); line-height: 1.3; text-align: justify; hyphens: none; letter-spacing: .005em; }
.intro__grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: var(--gutter) clamp(32px, 5vw, 96px); align-items: end; padding-top: 0; }
.intro__title { font-family: var(--mono); font-weight: 700; font-size: var(--fs-manif); line-height: 1.15; letter-spacing: .01em; max-width: 22ch; }
.intro__img { aspect-ratio: 4/5; overflow: hidden; border: 1px solid currentColor; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.intro__text p { max-width: 52ch; margin-bottom: 1em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; margin-top: var(--gutter); }
.fact { padding: 18px 20px 20px 0; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid currentColor; }
.fact:not(:first-child) { padding-left: 20px; }
.fact:last-child { border-right: 0; }
.fact__n { font-family: var(--mono); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; }
.fact__l { font-size: var(--fs-meta); letter-spacing: .06em; text-transform: uppercase; opacity: var(--muted); }

/* Manifesto */
.manif { padding-block: calc(var(--gutter) * 2.5); }

/* Editorial block (dark) */
.edito__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gutter) clamp(32px, 5vw, 96px); align-items: center; }
.edito__img { aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--blanc); }
.edito__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.edito__lead { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.6rem); text-transform: uppercase; line-height: 1.1; letter-spacing: .01em; margin-bottom: 1em; text-align: justify; }
.edito__text { max-width: 58ch; }
.edito__text p:not(.edito__lead) { max-width: 58ch; margin-bottom: 1em; text-align: justify; }
@media (max-width: 900px) { .edito__grid { grid-template-columns: 1fr; } .edito__img { max-width: 70%; } }

/* Index rows */
.rows { position: relative; z-index: 1; }
.row__link { display: grid; grid-template-columns: 72px 110px minmax(140px, .9fr) 1.6fr 1fr 60px; align-items: center; gap: 24px; padding: 14px 0; border-top: 1px solid currentColor; text-decoration: none; transition: padding-left .3s var(--ease); }
.row:last-child .row__link { border-bottom: 1px solid currentColor; }
.row__link:hover { padding-left: 12px; }
.row__brand img { width: auto; filter: grayscale(1) contrast(1.2); }
.row__thumb { display: block; width: 72px; aspect-ratio: 1; overflow: hidden; border: 1px solid currentColor; }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.row__link:hover .row__thumb img { filter: none; }
.row__link { align-items: center; }
.row__title { font-size: var(--fs-body); }
.row__year { text-align: right; }
.rows__preview { position: fixed; z-index: 40; pointer-events: none; width: 300px; aspect-ratio: 4/5; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.96); transition: opacity .3s, transform .5s var(--ease); left: 0; top: 0; border: 1px solid var(--graphite); background: var(--blanc); }
.rows__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rows__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; filter: grayscale(1) contrast(1.05); }
.rows__preview img.is-on { opacity: 1; }
@media (max-width: 900px) {
  .row__link { grid-template-columns: 72px 1fr; grid-template-areas: "thumb n" "thumb brand" "thumb title" "thumb tags"; row-gap: 6px; }
  .row__thumb { grid-area: thumb; align-self: start; }
  .row__n { grid-area: n; } .row__brand { grid-area: brand; } .row__title { grid-area: title; } .row__tags { grid-area: tags; } .row__year { grid-area: year; }
  .rows__preview { display: none; }
}
@media (hover: none) { .rows__preview { display: none; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--graphite); padding-block: 22px; }
.marquee__track { display: flex; align-items: center; gap: clamp(56px, 7vw, 120px); width: max-content; padding-inline: 40px; animation: marquee 40s linear infinite; }
.marquee img { width: auto; filter: grayscale(1) contrast(1.2); opacity: .85; }
.marquee img.is-white { filter: invert(1) grayscale(1) contrast(1.2); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Roles */
.roles__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto auto; border: 1px solid currentColor; }
.role { padding: calc(var(--gutter) * .75) calc(var(--gutter) * .75) var(--gutter); border-right: 1px solid currentColor; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; min-height: 460px; }
.role:last-child { border-right: 0; }
.role__n { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1; display: block; margin-bottom: 1.2em; transition: transform .5s var(--ease); }
.role:hover .role__n { transform: translateX(.06em) rotate(-3deg); }

.role__title { font-family: var(--mono); font-weight: 700; font-size: min(5.5rem, 4.6vw); letter-spacing: -.02em; word-break: normal; hyphens: manual; line-height: 1.02; text-transform: uppercase; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .8em; padding-bottom: .5em; border-bottom: 1px solid currentColor; position: relative; }
.role__title::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: currentColor; transition: width .5s var(--ease); }
.role:hover .role__title::after { width: 100%; }
.role__lead { margin-bottom: 1.4em; max-width: 34ch; }
@media (max-width: 900px) { .roles__grid { grid-template-columns: 1fr; } .role { border-right: 0; border-bottom: 1px solid currentColor; min-height: 0; grid-row: auto; grid-template-rows: auto; } .role__title { font-size: clamp(2rem, 9vw, 3.5rem); } .role:last-child { border-bottom: 0; } }

/* Cards (beyond mandates) */
.side__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card { display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; padding: var(--gutter); border: 1px solid var(--graphite); text-decoration: none; background: var(--bg); color: var(--fg); }
.card .mag { margin-bottom: 0; }
.card__body { display: flex; flex-direction: column; gap: 14px; }
.card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; }
.card__title--sm { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.card__text { max-width: 36ch; }
.card:hover .code:last-child { text-decoration: underline; }
.card__logo { display: block; color: #e3127e; width: 46%; }
.card__logo .mmmhh-logo { width: 100%; height: auto; }
.cut { position: relative; overflow: hidden; }
.cut__m { position: absolute; right: -14%; top: 12%; width: 62%; color: var(--fg); pointer-events: none; opacity: .9; }
.cut__m svg { width: 100%; height: auto; }
@media (max-width: 900px) { .side__grid { grid-template-columns: 1fr; } .card { min-height: 320px; } }

/* CTA (the page's one lime zone) */
.cta { padding-block: calc(var(--gutter) * 2.5); }
.cta__title { margin-bottom: .6em; }
.cta__row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 40px; }
.cta__mail { font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.cta__row .btn { margin-top: 0; }
.contact .cta { display: none; }

/* Footer */
.foot { padding-block: var(--gutter) calc(var(--gutter) * .75); border-top: 1px solid var(--graphite); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gutter); margin-bottom: var(--gutter); }
.foot__brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot__logo { display: block; width: 100%; margin-bottom: var(--gutter); color: var(--graphite); }
.foot__logo svg { width: 100%; height: auto; aspect-ratio: 1545 / 727; display: block; }
.foot__col p, .foot__col li { font-size: var(--fs-sig); line-height: 1.7; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* Page head */
.page-head { padding-block: var(--gutter) calc(var(--gutter) * 1.5); }
.page-head--img { position: relative; overflow: hidden; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: stretch; padding: 0; }
.page-head--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.6); }
.page-head__over { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 96px var(--gutter); color: var(--blanc); }
.page-head__over .mag { width: 100%; margin-bottom: auto; }
.page-head__over .page-head__title { margin-top: var(--gutter); text-align: center; }
.page-head__over .page-head__lead { margin-left: auto; margin-right: auto; text-align: center; max-width: 56ch; margin-bottom: auto; }
.page-head__over .contact__mail { margin-bottom: var(--gutter); }
.page-head__over .contact__grid { width: 100%; text-align: left; }
.page-head__title { margin-top: clamp(24px, 4vw, 56px); }
.page-head__lead { margin-top: 1.6em; max-width: 60ch; }

/* Work page */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gutter) * 1.5) var(--gutter); }
.case { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.case:first-child { grid-column: 1 / -1; }
.case__img { aspect-ratio: 4/5; overflow: hidden; border: 1px solid currentColor; }
.case:first-child .case__img { aspect-ratio: 16/8; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case:hover .case__img img { transform: scale(1.02); }
.case .mag { margin-bottom: 0; }
.case__title { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
@media (max-width: 767px) { .cases { grid-template-columns: 1fr; } .case:first-child .case__img { aspect-ratio: 4/5; } }

/* Project page */
.project__hero { padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); aspect-ratio: 16/8; overflow: hidden; border: 1px solid var(--graphite); }
.project__hero img { width: 100%; height: 100%; object-fit: cover; }
.project__body { display: grid; grid-template-columns: 200px 1fr; gap: 40px clamp(40px, 6vw, 120px); padding-block: calc(var(--gutter) * 1.5); }
.project__side { position: sticky; top: 90px; align-self: start; }
.project__kw { margin-bottom: 1.8em; }
.project__brand { margin-top: clamp(24px, 4vw, 56px); }
.project__brand img { display: block; max-width: 160px; }
.project__title { margin-top: 18px; font-size: clamp(1.6rem, 3.6vw, 3.25rem); }
.project__row { display: grid; grid-template-columns: 180px 1fr; gap: 12px 40px; padding-block: 24px; border-top: 1px solid currentColor; }
.project__row h3 { font-size: var(--fs-meta); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.project__row p { max-width: 64ch; margin-bottom: 1em; }
.project__row p:last-child { margin-bottom: 0; }
.project__row ul li { padding: .5em 0; border-top: 1px solid currentColor; }
.project__row ul li:last-child { border-bottom: 1px solid currentColor; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.gallery figure { border: 1px solid var(--graphite); overflow: hidden; }
.gallery figure:nth-child(odd):last-child { grid-column: 1 / -1; }
.gallery img { width: 100%; }
.project__next { padding-block: calc(var(--gutter) * 2); margin-top: calc(var(--gutter) * 2); }
.project__next-link { display: inline-block; text-decoration: none; margin: .3em 0 .5em; font-size: clamp(2rem, 5vw, 4.5rem); }
.project__next-link span { display: inline-block; transition: transform .4s var(--ease); }
.project__next-link:hover span { transform: translateX(.15em); }
@media (max-width: 900px) { .project__body { grid-template-columns: 1fr; } .project__side { position: static; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; } .project__row { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; } .gallery figure { grid-column: auto !important; } .project__hero { aspect-ratio: 4/3; } }

/* Expertise */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid currentColor; }
.step { padding: var(--gutter); border-right: 1px solid currentColor; }
.step:last-child { border-right: 0; }
.step__n { display: block; font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 1.2em; line-height: 1; }
.step__title { font-size: var(--fs-body); font-weight: 700; }
.step__sub { margin: .4em 0 1em; opacity: var(--muted); }
.offers { border-top: 1px solid currentColor; }
.offer { display: grid; grid-template-columns: 48px 1fr 1.3fr 1fr; gap: 24px clamp(24px, 3vw, 48px); padding-block: var(--gutter); border-bottom: 1px solid currentColor; }
.offer__title { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.offer__sub { font-weight: 700; }
.offer__text { margin-top: .6em; max-width: 44ch; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.format { padding: var(--gutter); border: 1px solid currentColor; display: flex; flex-direction: column; gap: 12px; }
.format__title { font-size: var(--fs-body); font-weight: 700; }
@media (max-width: 900px) { .steps, .formats { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid currentColor; } .step:last-child { border-bottom: 0; } .offer { grid-template-columns: 40px 1fr; } .offer > div, .offer > ul { grid-column: 2; } }

/* About */
.bio__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gutter) clamp(32px, 6vw, 120px); }
.bio__text p { max-width: 60ch; margin-bottom: 1em; }
.bio__text p { text-align: justify; hyphens: auto; }
.bio__lead { font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.4; }
.bio__facts p { margin-bottom: 1.6em; }
.path { border-top: 1px solid currentColor; }
.path__row { display: grid; grid-template-columns: 130px 1.2fr 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid currentColor; align-items: baseline; }
.path__what { font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter) clamp(32px, 5vw, 96px); }
.two p { max-width: 50ch; margin-top: 1em; }
.two .h2 { margin-top: .2em; }
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
@media (max-width: 900px) { .bio__grid, .two, .eco { grid-template-columns: 1fr; } .path__row { grid-template-columns: 110px 1fr; } .path__row > :last-child { grid-column: 2; } }

/* Contact */
.contact__mail { display: inline-block; margin-top: 1.6em; font-size: clamp(1.25rem, 3vw, 2.5rem); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.contact__grid { margin-top: calc(var(--gutter) * 1.5); }

/* Paper */
.posts { border-top: 1px solid currentColor; }
.post-card__link { display: grid; grid-template-columns: 160px 1fr 80px; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid currentColor; text-decoration: none; transition: padding-left .3s var(--ease); }
.post-card__link:hover { padding-left: 12px; }
.post-card__meta { grid-row: 1 / 3; line-height: 1.8; }
.post-card__title { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
.post-card__desc { max-width: 60ch; }
.post-card__arrow { grid-column: 3; grid-row: 1 / 3; text-align: right; }
.post__title { font-size: clamp(1.6rem, 3.4vw, 3rem); }
.post__cover { padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); aspect-ratio: 16/8; overflow: hidden; border: 1px solid var(--graphite); }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { padding-block: calc(var(--gutter) * 1.5); font-size: var(--fs-body); line-height: 1.7; }
.prose h2 { font-family: var(--mono); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); text-transform: uppercase; line-height: 1.15; margin: 2em 0 .6em; }
.prose h3 { font-size: var(--fs-meta); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin: 2em 0 .6em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; }
.prose ul { list-style: none; }
.prose ul li { padding-left: 1.4em; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; }
.prose blockquote { margin: 1.6em 0; font-weight: 700; text-transform: uppercase; text-align: justify; line-height: 1.15; font-size: var(--fs-manif); }
.prose img { border: 1px solid var(--graphite); margin: 2em 0; }
.post__pied { margin-top: 3em; }
.more { padding-block: calc(var(--gutter) * 1.5); }
@media (max-width: 767px) { .post-card__link { grid-template-columns: 1fr 70px; } .post-card__meta { grid-row: auto; } .post-card__arrow { grid-column: 2; grid-row: 1 / 4; } .post__cover { aspect-ratio: 4/3; } }

/* Parallax */
.js .parallax { position: relative; overflow: hidden; }
.js .parallax img { position: absolute; left: 0; top: 0; width: 100%; height: 125%; object-fit: cover; will-change: transform; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__logo--live svg { animation: none !important; transform: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .js .parallax img { position: static; height: 100%; transform: none !important; }
  html { scroll-behavior: auto; }
}
@media print { .grain::after { display: none; } }

/* Responsive misc */
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__img { max-width: 60%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; border-top: 1px solid currentColor; }
  .fact:nth-child(4) { border-top: 1px solid currentColor; }
}
@media (max-width: 640px) {
  .mag { grid-template-columns: 1fr 1fr; }
  .mag > :nth-child(2) { display: none; }
}

/* Typewriter on page heads */
.is-typing .tw { opacity: 0; }
.section-title.is-typing:not(.is-done) { visibility: visible; }
.js .section-title.is-typing { opacity: 1; transform: none; }
.is-typing .tw.is-on { opacity: 1; }
.tw-cursor { display: inline-block; width: .55em; height: 1em; background: currentColor; vertical-align: -.1em; margin-left: .08em; animation: tw-blink .9s steps(1) infinite; }
.is-done .tw-cursor { animation-duration: .6s; }
@keyframes tw-blink { 50% { opacity: 0; } }
.page-head--img .page-head__lead { opacity: 0; transform: translateY(8px); animation: lead-in .8s var(--ease) 1.9s forwards; }
.js .page-head--img .page-head__lead.reveal { transition: none; }
@keyframes lead-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-head--img .page-head__lead { opacity: 1; transform: none; animation: none; } }

/* Section head with inline button */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head .btn { margin-top: 0; margin-bottom: 1.2em; }
/* Venture block */
.venture { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gutter); align-items: center; padding: var(--gutter); text-decoration: none; border: 1px solid var(--graphite); }
.venture--paper { --bg: #EFE6D2; --fg: #1F3F3A; background: var(--bg); color: var(--fg); background-image: radial-gradient(ellipse at 80% 20%, rgba(227,18,126,.14), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(58,166,85,.16), transparent 50%); border-color: var(--fg); overflow: hidden; }
.venture--paper.grain::after { opacity: calc(var(--grain) * 2.2); mix-blend-mode: multiply; }
.venture--paper .mag { border-color: currentColor; }
.venture--paper .btn { color: var(--fg); border-color: var(--fg); }
.venture--paper .btn:hover { background: #e3127e; border-color: #e3127e; color: #fff; }
.venture__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.venture__logo { display: block; color: #e3127e; width: min(320px, 60%); }
.venture__logo .mmmhh-logo { width: 100%; height: auto; }
.venture__lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 34ch; line-height: 1.35; }
.venture__img { margin: 0; overflow: hidden; width: 75%; justify-self: center; }
.venture__img img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.venture:hover .venture__img img { transform: scale(1.03) rotate(-1deg); }
.venture .btn { margin-top: 8px; }
@media (max-width: 860px) { .venture { grid-template-columns: 1fr; } }
.top__hint { color: var(--graphite); opacity: var(--muted); text-transform: none; letter-spacing: .04em; }
.home .top .top__hint, .imghead .top .top__hint { color: var(--blanc); }
.home .top.is-scrolled .top__hint, .imghead .top.is-scrolled .top__hint { color: var(--graphite); }
.top__mmmhh:hover .top__hint { opacity: 1; color: #e3127e; }

/* Formats table */
.fmt { border-top: 1px solid currentColor; }
.fmt__head, .fmt__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.6fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid currentColor; }
.fmt__row { text-decoration: none; color: inherit; transition: background .2s; }
.fmt__row:hover { background: var(--lime); }
.fmt__row > span { font-size: var(--fs-sig); line-height: 1.5; }
.fmt__title { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: 1rem !important; letter-spacing: .02em; }
.fmt__title .code { margin-right: 12px; }
@media (max-width: 860px) { .fmt__head { display: none; } .fmt__row { grid-template-columns: 1fr; gap: 8px; } }
/* Work cards */
.wcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.wcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; border: 1px solid currentColor; overflow: hidden; }
.wcard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid currentColor; background: var(--graphite); }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease), filter .5s; filter: grayscale(1); }
.wcard:hover .wcard__img img { transform: scale(1.04); filter: grayscale(0); }
.wcard__body { display: flex; flex-direction: column; gap: 14px; padding: 22px; flex: 1; }
.wcard__logo { display: block; height: 30px; display: flex; align-items: center; }
.wcard__title { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.15; min-height: 2.3em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: .06em; text-transform: uppercase; padding: .35em .7em; border: 1px solid currentColor; border-radius: 999px; }
.tag--year { opacity: var(--muted); }
.wcard:hover .tag { background: var(--lime); border-color: var(--lime); color: var(--graphite); }
@media (max-width: 1000px) { .wcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wcards { grid-template-columns: 1fr; } }
.about__mmmhh { width: min(260px, 60%); margin-top: .2em; }
.bio .section-title { margin-bottom: .6em; }
.project .tags, .page-head .tags { margin-top: 18px; }

/* Audit pass */
.hero__tag { max-width: 40ch; text-transform: none; letter-spacing: .02em; font-size: var(--fs-sig); line-height: 1.4; }
.fact--wide .fact__n { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.intro .btn { margin-top: 1.4em; }
@media (max-width: 700px) { .intro__edito, .bio__text p, .edito__text p:not(.edito__lead), .edito__lead { text-align: left; } }
.row__link { grid-template-columns: 72px 48px minmax(140px, .9fr) 1.6fr 1fr; }
.row__thumb img, .rows__preview img { filter: grayscale(1); }
.row__link:hover .row__thumb img { filter: none; }
.rows__preview img { filter: none; }
.contact__info { padding-block: var(--gutter); }
.contact__info .contact__grid { width: 100%; text-align: left; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { text-decoration: underline; }
.post-card--next { opacity: .55; }
.post-card--next .post-card__link { cursor: default; }
@media (max-width: 700px) { .foot__logo { max-height: 160px; overflow: hidden; } .foot__logo svg { max-height: 160px; width: auto; max-width: 100%; margin: 0 auto; display: block; } }

/* Intro panel bites into the hero */
.intro__panel { position: relative; z-index: 3; background: var(--blanc); margin-top: calc(var(--bite, 120px) * -1); padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; box-sizing: border-box; }
.hero__over { padding-bottom: calc(var(--gutter) + var(--bite, 120px)); }
.hero__stage > img { will-change: transform; }
@media (max-width: 700px) { .intro__panel { --bite: 64px; padding: 24px 20px 0; } .hero__over { --bite: 64px; } }
