/* Fleur.Studio — The Ruled Sheet. Tokens follow DESIGN.md. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/space-grotesk-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Tactic (titles). The file has no accented capitals: app.js removes accents from title text. */
@font-face { font-family: 'Tactic'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/tactic.otf') format('opentype'); }

/* ---------- Tokens ---------- */
:root {
  --ink: #111111;
  --paper: #F7F6F3;
  --well: #EDECE8;
  --graphite: #5A5853;
  --stone: #6B6862;
  --bloom-rose: #F71857;
  --alert: #B3123F;
  --wash: rgba(255, 255, 255, .55);

  --display: 'Tactic', 'Archivo', sans-serif;
  --text: 'Space Grotesk', system-ui, sans-serif;
  --wide: 100%;
  --dw: 400;

  --gutter: 20px;
  --gap: 16px;
  --grid-gap: 6px;
  --rule: 1px solid var(--ink);
  --frame: 0;

  --ease-rise: cubic-bezier(.2, .7, .2, 1);
  --ease-reveal: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);


  --fs-display: clamp(56px, 10.4vw, 150px);
  --fs-headline: clamp(28px, 2.8vw, 40px);
  --fs-title: clamp(18px, 1.55vw, 22px);
  --fs-lede: clamp(19px, 1.55vw, 22px);
  --fs-body: 15px;
  --fs-read: 17px;
  --fs-mega: clamp(40px, 6.6vw, 96px);
  --fs-feature: clamp(30px, 3.6vw, 52px);
  --fs-small: 13px;
  --fs-label: 11px;

  color-scheme: light;
}
@media (max-width: 820px) { :root { --gutter: 12px; --gap: 12px; --grid-gap: 4px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; background: var(--paper); }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-small)/1.5 var(--text);
  -webkit-font-smoothing: antialiased; font-kerning: normal;
  padding: 0 var(--gutter);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--ink) var(--paper); scrollbar-width: thin; }
.num, time, .tab { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: 48px 0; font-size: var(--fs-read); }

/* ---------- Type roles ---------- */
.caps, .display, .headline, .title {
  font-family: var(--display); font-stretch: var(--wide); font-weight: var(--dw);
  text-transform: uppercase; font-synthesis: none;
}
.display { font-size: var(--fs-display); line-height: .84; letter-spacing: -.03em; }
.headline { font-size: var(--fs-headline); line-height: .95; letter-spacing: -.02em; }
.title { font-size: var(--fs-title); line-height: 1; letter-spacing: -.01em; }
.lede { font-size: var(--fs-lede); line-height: 1.3; text-wrap: pretty; max-width: 62ch; }
.label { font-size: var(--fs-label); line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.meta-key { color: var(--stone); }
.sup { font-family: var(--text); font-weight: 400; font-size: 13px; letter-spacing: 0; vertical-align: top; text-transform: none; font-stretch: 100%; }

.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Header ---------- */
.top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--gap);
  padding: 16px 0; border-bottom: var(--rule); position: relative; z-index: 4;
}
.top__home { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.welcome {
  display: block; width: 185px; height: 22px; background: var(--bloom-rose);
  -webkit-mask: url('../icons/welcome.svg') left center / contain no-repeat; mask: url('../icons/welcome.svg') left center / contain no-repeat;
  animation: hue 6s linear infinite;
}
.is-intro .top .welcome { animation: hue 6s linear infinite, reveal 1.6s var(--ease-reveal) .15s both; }
@media (hover: hover) and (pointer: fine) { .top__home:hover .welcome { animation: hue 6s linear infinite, wave .9s cubic-bezier(.3, .7, .3, 1); transform-origin: left bottom; } }
.top__nav { display: flex; gap: clamp(28px, 4.4vw, 64px); justify-content: center; }
.top__nav a {
  font-family: var(--display); font-stretch: var(--wide); font-weight: 400; font-size: 14px; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 0; text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s;
}
.top__nav a:hover { text-decoration-color: currentColor; }
.top__nav a[aria-current="page"] { text-decoration-color: currentColor; }
.top__nav .sup { font-size: var(--fs-label); margin-left: 2px; }
.top__end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.lang { display: flex; gap: 4px; }
.lang button {
  font: 600 11px/1 var(--text); padding: 5px 9px; border-radius: 999px; border: var(--rule); min-width: 34px;
  transition: background .2s, color .2s;
}
.lang button:hover { background: var(--well); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.top .pill--menu { display: none; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 500 13px/1.2 var(--text); padding: 8px 14px; border-radius: 999px; border: var(--rule);
  background: transparent; color: var(--ink); transition: background .2s, color .2s;
}
.pill:hover { background: var(--well); }
.pill[aria-pressed="true"], .pill.is-on { background: var(--ink); color: var(--paper); }
.pill .n { font-size: 11px; line-height: 1; transform: translateY(-.4em); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; white-space: nowrap; font-size: 13px; line-height: 1.2; padding: 6px 12px; border: var(--rule); border-radius: 999px; }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; }
.ico { display: block; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico--close { width: 20px; height: 20px; --m: url('../icons/close.svg'); }
.ico--mail { --m: url('../icons/mail.svg'); }
.ico--phone { --m: url('../icons/phone.svg'); }
.ico--ig { --m: url('../icons/instagram.svg'); }
.ico--pin { --m: url('../icons/pin.svg'); }
.arrow { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; vertical-align: -.1em; flex: none; }

/* ---------- Page heads ---------- */
.page-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 0 0; }
.page-head .count { font-size: var(--fs-lede); padding-top: .2em; font-variant-numeric: tabular-nums; }
.rise { animation: rise .9s var(--ease-out) both; }
main.enter { animation: enter .28s var(--ease-out) both; }

/* ---------- Home ---------- */
.mast { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0 0; }
.mast h1 { white-space: nowrap; }
.mast__flower { width: clamp(56px, 7.2vw, 104px); height: auto; flex: none; animation: spin 30s linear infinite; }
.statement { padding: 48px 0 0; }
.statement .lede { grid-column: 1 / span 8; }


.services { padding: 56px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
.svc { display: flex; flex-direction: column; gap: 16px; border-top: var(--rule); padding-top: 12px; min-width: 0; }
.svc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc ul { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Index (table) ---------- */
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 16px 0; border-top: var(--rule); margin-top: 80px; }
.index-head h2 .sup { margin-left: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cols { padding: 8px 0; border-top: var(--rule); }
.cols > * { white-space: nowrap; }
.sortbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; justify-self: end; padding: 2px 0; }
.sortbtn:hover { color: var(--ink); }
.c-n { grid-column: span 1; }
.c-client { grid-column: span 4; }
.c-title { grid-column: span 4; }
.c-svc { grid-column: span 2; }
.c-year { grid-column: span 1; text-align: right; }
.rows { position: relative; }
.row {
  position: relative; align-items: baseline; padding: 14px 0 12px; border-top: var(--rule); color: var(--ink);
  transition: background-color .25s ease;
}
.row:hover, .row:focus-visible { background: var(--wash); }
.row:focus-visible { outline-offset: -2px; border-radius: 0; }
.row .c-n, .row .c-svc, .row .c-year { font-size: var(--fs-small); }
.row .c-title { font-size: var(--fs-read); line-height: 1.3; }
.row .thumb { display: none; }
.rows.is-filtering .row { animation: shift .26s var(--ease-out) both; animation-delay: calc(min(var(--i), 8) * 30ms); }
.linkrow { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: var(--rule); border-bottom: var(--rule); font-size: var(--fs-small); transition: background .2s; }
.linkrow:hover { background: var(--wash); }
.empty { padding: 32px 0; border-top: var(--rule); font-size: var(--fs-body); }

/* Hover preview that trails the pointer over index rows */
.peek {
  position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0;
  transition: opacity .2s var(--ease-out); will-change: transform;
}
.peek.is-on { opacity: 1; }
.peek img { transform: scale(.96); transform-origin: 0 100%; transition: transform .2s var(--ease-out); }
.peek.is-on img { transform: none; }
.peek img { max-width: 360px; max-height: 300px; width: auto; height: auto; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; margin: 0 calc(var(--gutter) * -1); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 70s linear infinite; }
.marquee__item { font-family: var(--display); font-stretch: var(--wide); font-weight: var(--dw); font-size: var(--fs-headline); line-height: 1; text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; }
.bloom {
  display: inline-block; flex: none; width: 36px; height: 36px; margin: 0 28px; background: var(--bloom-rose);
  -webkit-mask: url('../icons/zfleur.svg') center / contain no-repeat; mask: url('../icons/zfleur.svg') center / contain no-repeat;
  animation: spin 9s linear infinite, hue 8s linear infinite;
}
.bloom--inline { width: .8em; height: .8em; margin: 0 .3em; vertical-align: -.05em; }

/* ---------- Work grid (Projets / Archive) ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 40px 0 16px; flex-wrap: wrap; }
.toolbar .chips { justify-content: flex-start; }
.seg { display: flex; gap: 4px; padding: 3px; border: var(--rule); border-radius: 999px; }
.seg button { font: 500 13px/1.2 var(--text); padding: 6px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.seg button:hover { background: var(--well); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start; padding: var(--grid-gap) 0 64px; border-top: var(--rule); }
.mas__col { display: flex; flex-direction: column; gap: calc(var(--grid-gap) + 8px); min-width: 0; }
.card { display: flex; flex-direction: column; color: var(--ink); }
.card__frame { display: block; overflow: hidden; background: var(--well); }
.card :is(img,video) { width: 100%; height: auto; transform-origin: 50% 50%; transition: transform .6s var(--ease-out), scale 1.2s var(--ease-out); }
.card:focus-visible :is(img,video) { transform: scale(1.03); }
@media (hover: hover) and (pointer: fine) { .card:hover :is(img,video) { transform: scale(1.03); } }
.card__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 5px; font-size: var(--fs-label); line-height: 1.3; letter-spacing: .01em; }
.card__client { font-family: var(--display); font-stretch: var(--wide); text-transform: uppercase; font-size: 13px; letter-spacing: .01em; }
.card__title { color: var(--stone); text-align: right; }
.textcard { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 24px; text-align: center; padding: 24px 32px 28px; border-top: var(--rule); aspect-ratio: 4 / 5; }
.textcard .big { font-size: var(--fs-lede); line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.textcard--short { aspect-ratio: auto; min-height: 220px; }
.textcard .arrow { width: 26px; height: 26px; }
.textcard .arrow { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.textcard:hover .arrow { transform: translateX(6px); } }

/* ---------- Project page ---------- */
.crumbs { padding: 14px 0; border-bottom: var(--rule); font-size: var(--fs-small); align-items: center; }
.crumbs a { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs .c1 { grid-column: span 3; }
.crumbs .c2 { grid-column: span 4; }
.crumbs .c3 { grid-column: span 5; text-align: right; }
.p-head { padding: 28px 0 0; container-type: inline-size; }
.p-head h1 { text-wrap: balance; }
/* Fit: never let the longest word exceed the column (Archivo 108% caps ≈ .64em per letter). */
.p-head h1.fit { font-size: min(var(--fs-display), calc(100cqi / (var(--chars) * .7))); }
.p-head h1.fit.is-long { font-size: min(calc(var(--fs-display) * .75), calc(100cqi / (var(--chars) * .7))); }
.p-body { padding: 40px 0 48px; row-gap: 32px; }
.p-body .lede { grid-column: 1 / span 7; }
.p-meta { grid-column: 9 / span 4; align-self: start; border-bottom: var(--rule); font-size: var(--fs-small); line-height: 1.4; }
.p-meta div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--gap); padding: 9px 0 8px; border-top: var(--rule); }
.gallery { columns: 2; column-gap: var(--grid-gap); padding: 0 0 64px; }
.gallery figure { break-inside: avoid; margin: 0 0 calc(var(--grid-gap) + 8px); }
.gallery button { display: block; width: 100%; border-radius: var(--frame); overflow: hidden; background: var(--well); cursor: zoom-in; }
.gallery :is(img,video) { width: 100%; transition: transform .6s var(--ease-out), scale 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery button:hover :is(img,video) { transform: scale(1.025); } }
.gallery figcaption { padding-top: 4px; font-size: var(--fs-label); color: var(--stone); letter-spacing: .02em; }
.pn { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); border-top: var(--rule); }
.pn__prev { grid-column: span 3; padding: 40px 0 48px; font-size: var(--fs-small); align-self: start; display: flex; flex-direction: column; gap: 8px; }
.pn__prev:hover .caps { text-decoration: underline; text-underline-offset: 4px; }
.pn__next { grid-column: span 9; padding: 40px 0 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: end; color: var(--ink); }
.pn__next .k { grid-column: 1 / -1; font-size: var(--fs-small); }
.pn__next .bigwrap { grid-column: 1; min-width: 0; display: block; container-type: inline-size; }
.pn__next .big { font-family: var(--display); font-stretch: var(--wide); font-weight: var(--dw); font-size: var(--fs-mega); line-height: .86; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; transition: transform .3s var(--ease-out); display: block; }
.pn__next .big.fit { font-size: min(var(--fs-mega), calc(100cqi / (var(--chars) * .7))); }
.pn__next .t { font-size: var(--fs-read); grid-column: 1; }
.pn__prev .caps { font-size: var(--fs-title); }
.pn__next .arrow { width: clamp(40px, 6vw, 88px); height: clamp(40px, 6vw, 88px); stroke-width: 1.6; grid-row: 2; grid-column: 2; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pn__next:hover .big, .pn__next:hover .arrow { transform: translateX(14px); } }

/* ---------- Lightbox ---------- */
dialog { margin: 0; inset: 0; padding: 0; border: 0; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(247, 246, 243, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb { width: 100vw; height: 100dvh; background: transparent; padding: 0 var(--gutter); }
.lb[open] { display: flex; flex-direction: column; gap: 16px; }
.lb__bar { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: var(--rule); }
.lb__title { font-family: var(--display); font-stretch: var(--wide); font-weight: var(--dw); font-size: var(--fs-title); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb__fig { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.lb__fig :is(img,video) { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.lb__fig :is(img,video).is-in { animation: slide .26s var(--ease-out) both; }
.lb__fig figcaption { font-size: var(--fs-label); color: var(--stone); }
.lb__nav { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 0 calc(12px + env(safe-area-inset-bottom)); }
.lb__nav[hidden] { display: none; }
.lb__count { font-size: var(--fs-small); min-width: 64px; text-align: center; }
.lb__arrow { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: transform .16s var(--ease-out), opacity .2s ease; }
.lb__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lb__arrow:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) {
  .lb__arrow { opacity: .55; }
  .lb__arrow:hover { opacity: 1; }
  [data-lb-prev]:hover svg { transform: translateX(-3px); }
  [data-lb-next]:hover svg { transform: translateX(3px); }
  .lb__arrow svg { transition: transform .2s var(--ease-out); }
}

/* ---------- Studio ---------- */
.studio-body { padding: 48px 0 96px; row-gap: 40px; }
.studio-body .paras { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 18px; }
.lead-card { grid-column: 9 / span 4; align-self: start; border-top: var(--rule); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.lead-card p { font-size: var(--fs-read); line-height: 1.5; text-wrap: pretty; }
.know { border-top: var(--rule); padding: 16px 0 96px; row-gap: 32px; }
.know > .label { grid-column: 1 / -1; margin-bottom: 8px; }
.know .grp { grid-column: span 4; display: flex; flex-direction: column; }
.know .grp h3 { padding-bottom: 12px; }
.know .grp li { border-top: 1px solid rgba(17, 17, 17, .18); padding: 7px 0 6px; font-size: var(--fs-body); }
.clients { border-top: var(--rule); padding: 16px 0 96px; display: flex; flex-direction: column; gap: 24px; }
.clients p { font-family: var(--display); font-stretch: var(--wide); font-weight: var(--dw); font-size: var(--fs-feature); line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact-ways { padding: 48px 0 72px; row-gap: 32px; }
.way { grid-column: span 3; font-size: var(--fs-body); line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.way .meta-key { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); }
.way a { display: inline-block; padding: 6px 0; align-self: flex-start; text-decoration: underline 1px; text-decoration-color: rgba(17, 17, 17, .3); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.way a:hover { text-decoration-color: currentColor; }
.quote { border-top: var(--rule); padding: 24px 0 96px; row-gap: 32px; }
.quote__intro { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 12px; }
.quote__intro p { font-size: var(--fs-body); line-height: 1.5; color: var(--graphite); text-wrap: pretty; }
.quote__intro .how { font-size: var(--fs-small); color: var(--stone); }
.form { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: 400 22px/1.35 var(--text); padding: 6px 0 10px; border: 0; border-bottom: var(--rule); border-radius: 0;
  background: transparent; color: var(--ink); outline: none; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--stone); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--ink); }
.field .err { font-size: var(--fs-small); color: var(--alert); min-height: 0; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--alert); box-shadow: 0 1px 0 0 var(--alert); }
.field .req { color: var(--stone); letter-spacing: 0; text-transform: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.choice { display: flex; gap: 6px; flex-wrap: wrap; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px/1.2 var(--text); padding: 10px 18px; border-radius: 999px; border: var(--rule); transition: background .2s, color .2s; }
.choice label:hover span { background: var(--well); }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.send {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: 12px; align-items: center;
  font-family: var(--display); font-stretch: var(--wide); font-weight: var(--dw); font-size: var(--fs-title); text-transform: uppercase;
  padding: 20px 34px; border-radius: 999px; border: var(--rule); background: var(--ink); color: var(--paper); transition: background .25s, color .25s;
}
.send:hover { background: var(--paper); color: var(--ink); }
.send .arrow { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .send:hover .arrow { transform: translateX(6px); } }
.done:focus { outline: none; }
.done { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 20px; padding: 24px 0; }
.done .headline { font-size: var(--fs-headline); }
.done p { font-size: var(--fs-read); line-height: 1.5; max-width: 58ch; }
.done pre { white-space: pre-wrap; font: 400 var(--fs-small)/1.5 var(--text); padding: 16px 0; border-top: var(--rule); border-bottom: var(--rule); max-width: 70ch; }
.done .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { border-top: var(--rule); padding: 56px 0 28px; row-gap: 40px; font-size: var(--fs-small); line-height: 1.5; align-items: end; }
.foot__cta { grid-column: 1 / -1; display: inline-flex; gap: .3em; align-items: center; justify-self: start; }
@media (hover: hover) and (pointer: fine) { .foot__cta:hover .arrow { transform: translateX(8px); } }
.foot__cta .arrow { transition: transform .25s var(--ease-out); width: .9em; height: .9em; }
.foot__ways { grid-column: span 4; display: flex; flex-direction: column; gap: 4px; }
.foot__ways a, .foot__addr { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.foot__ways a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__addr { grid-column: span 4; align-items: flex-start; }
.foot__addr .ico { margin-top: 4px; }
.foot__copy { grid-column: span 4; text-align: right; }

/* ---------- 404 ---------- */
.lost { padding: 48px 0 96px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ---------- Mobile menu ---------- */
.menu { width: 100vw; height: 100dvh; background: var(--well); padding: 0 var(--gutter); overflow: hidden; }
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: transparent; backdrop-filter: none; }
.menu__bar { display: flex; justify-content: space-between; align-items: center; height: 56px; border-bottom: var(--rule); position: relative; z-index: 1; }
.menu__nav { flex: 1; display: flex; flex-direction: column; padding-top: 12px; position: relative; z-index: 1; }
.menu__nav a { font-family: var(--display); font-stretch: var(--wide); font-weight: var(--dw); font-size: var(--fs-feature); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; padding: 14px 0 12px; border-bottom: var(--rule); display: flex; justify-content: space-between; align-items: flex-start; }
.menu__nav a .sup { padding-top: 6px; }
.menu__nav a[aria-current="page"] { text-decoration: underline 2px; text-underline-offset: 8px; }
.menu__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); font-size: var(--fs-small); line-height: 1.5; position: relative; z-index: 1; }
.menu__contact { display: flex; flex-direction: column; gap: 2px; }
.menu__contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.lang--big button { font-size: 13px; width: 48px; height: 44px; }
.menu__flower { position: absolute; right: -90px; bottom: 120px; width: 320px; opacity: .9; pointer-events: none; animation: spin 50s linear infinite; }

/* ---------- Texture ---------- */
.grain { position: fixed; inset: 0; background-image: url('../icons/grain.svg'); mix-blend-mode: multiply; opacity: .12; pointer-events: none; z-index: 5; }


/* ---------- Press, dialogs, marquee (motion details) ---------- */
.pill, .lang button, .seg button, .send, .iconbtn, .sortbtn {
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.choice span { transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.pill:active, .lang button:active, .seg button:active, .send:active, .iconbtn:active, .sortbtn:active, .choice label:active span { transform: scale(.97); }

/* Dialogs fade in (220ms) and out faster (150ms); exit stays in the top layer until faded. */
.lb, .menu, .lb::backdrop {
  opacity: 0;
  transition: opacity .15s var(--ease-out), overlay .15s allow-discrete, display .15s allow-discrete;
}
.lb[open], .menu[open], .lb[open]::backdrop { opacity: 1; transition-duration: .22s; }
@starting-style {
  .lb[open], .menu[open], .lb[open]::backdrop { opacity: 0; }
}
.menu[open] .menu__nav a { animation: menu-in .32s var(--ease-out) both; }
.menu[open] .menu__nav a:nth-child(2) { animation-delay: 40ms; }
.menu[open] .menu__nav a:nth-child(3) { animation-delay: 80ms; }
.menu[open] .menu__nav a:nth-child(4) { animation-delay: 120ms; }
.menu[open] .menu__nav a:nth-child(5) { animation-delay: 160ms; }
@keyframes menu-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track, .marquee:hover .bloom { animation-play-state: paused; } }


/* ---------- Flower cursor (mouse only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.cursor.is-on { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor__bloom {
  display: block; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: var(--bloom-rose);
  -webkit-mask: url('../icons/zfleur.svg') center / contain no-repeat; mask: url('../icons/zfleur.svg') center / contain no-repeat;
  animation: spin 6s linear infinite, hue 8s linear infinite;
  transition: scale .15s var(--ease-out);
}
.cursor.is-link .cursor__bloom { scale: 1.45; transition-duration: .2s; }
.cursor.is-down .cursor__bloom { scale: .8; transition-duration: .1s; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }

/* ---------- Image reveal on scroll (once) ---------- */
.will-reveal { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); }
.will-reveal :is(img,video) { scale: 1.08; }
.will-reveal.is-in { clip-path: inset(0 0 0 0); }
.will-reveal.is-in :is(img,video) { scale: 1; }
.reveal-now { animation: reveal-y .9s var(--ease-in-out) both; }
.reveal-now :is(img,video) { animation: settle 1.2s var(--ease-out) both; animation-delay: inherit; }
@keyframes reveal-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { scale: 1.08; } to { scale: 1; } }

/* ---------- Underlines that draw in from the left and leave to the right ---------- */
@media (hover: hover) and (pointer: fine) {
  .top__nav a, .foot__ways a, .crumbs a, .menu__contact a {
    text-decoration: none !important;
    background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
    transition: background-size .3s var(--ease-out);
  }
  .top__nav a:hover, .foot__ways a:hover, .crumbs a:hover, .menu__contact a:hover { background-size: 100% 1px; background-position: left bottom; }
  .top__nav a[aria-current="page"] { background-size: 100% 1px; }
  /* Index rows: the client name steps aside, the row answers the pointer */
  .row .c-client { transition: transform .25s var(--ease-out); }
  .row:hover .c-client { transform: translateX(10px); }
}

/* ---------- Motion ---------- */
@keyframes hue { 0%, 100% { background-color: #F71857; } 14% { background-color: #F718F4; } 28% { background-color: #1823F7; } 43% { background-color: #18F7EF; } 57% { background-color: #CAF718; } 71% { background-color: #F7D518; } 86% { background-color: #F77718; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave { 0% { transform: none; } 20% { transform: skewX(-14deg) scaleY(1.12); } 45% { transform: skewX(9deg) scaleY(.94); } 70% { transform: skewX(-4deg) scaleY(1.03); } 100% { transform: none; } }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
@keyframes shift { from { transform: translateY(6px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes enter { from { transform: translateY(8px); } to { transform: none; } }
@keyframes slide { from { transform: translateX(calc(var(--dir, 1) * 16px)); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  /* No movement: zooms, slides and press scaling are off; colour and opacity changes stay. */
  .card :is(img,video), .gallery :is(img,video), .arrow, .pn__next .big, .peek img, .card__foot, :active, :active span { transform: none !important; }
  .welcome, .bloom, .cursor__bloom { animation: none !important; background-color: var(--bloom-rose); }
  .will-reveal { clip-path: none !important; }
  .row:hover .c-client { transform: none !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; row-gap: 12px; }
  .marquee__track [aria-hidden="true"].dup { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .c-client { grid-column: span 4; }
  .c-title { grid-column: span 3; }
  .c-svc { grid-column: span 3; }
  .statement .lede { grid-column: 1 / span 10; }
  .index-head { flex-direction: column; align-items: flex-start; }
  .index-head .chips { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .top { grid-template-columns: auto minmax(0, 1fr); }
  .top__nav, .top .lang { display: none; }
  .top .pill--menu { display: inline-flex; height: 44px; padding: 0 18px; }
  .index-head { flex-direction: column; align-items: flex-start; }
  .index-head .chips, .toolbar .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); max-width: calc(100% + var(--gutter) * 2); }
  .index-head .chips::-webkit-scrollbar, .toolbar .chips::-webkit-scrollbar { display: none; }
  .chips .pill { height: 44px; padding: 0 16px; flex: none; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .p-body .lede, .p-meta { grid-column: 1 / -1; }
  .studio-body .paras, .lead-card { grid-column: 1 / -1; }
  .know .grp { grid-column: 1 / -1; }
  .way { grid-column: span 6; }
  .quote__intro, .form, .done { grid-column: 1 / -1; }
  .foot__ways, .foot__addr { grid-column: span 6; }
  .foot__copy { grid-column: 1 / -1; text-align: left; }
  .mas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn__prev { grid-column: 1 / -1; padding-bottom: 0; }
  .pn__next { grid-column: 1 / -1; padding-top: 24px; }
}
@media (max-width: 820px) {
  .top { padding: 6px 0; min-height: 56px; }
  .welcome { width: 150px; height: 18px; }
  .mast { padding-top: 14px; align-items: flex-start; }
  .mast h1 { white-space: normal; --fs-display: clamp(56px, 17.5vw, 96px); }
  .mast h1 .br { display: block; }
  .statement { padding-top: 24px; }
  .statement .lede { grid-column: 1 / -1; line-height: 1.3; }
  .index-head { margin-top: 56px; }
  /* Rows become image-led list items */
  .cols { display: none; }
  .row { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 12px 0; align-items: start; }
  .row .thumb { display: block; grid-row: 1 / span 4; width: 104px; height: 76px; object-fit: cover; border-radius: 0; background: var(--well); }
  .row > span { grid-column: 2; }
  .row .c-n { display: flex; justify-content: space-between; font-size: var(--fs-label); color: var(--stone); }
  .row .c-n::after { content: attr(data-year); }
  .row .c-client { font-size: var(--fs-title); }
  .row .c-title { font-size: var(--fs-small); }
  .row .c-svc, .row .c-year { display: none; }
  .linkrow { min-height: 56px; }
  .page-head { padding-top: 14px; }
  .toolbar { padding-top: 24px; }
  .crumbs .c1 { grid-column: span 6; }
  .crumbs .c2 { grid-column: span 6; text-align: right; }
  .crumbs .c3 { display: none; }
  .p-meta div { grid-template-columns: 96px minmax(0, 1fr); }
  .gallery { columns: 1; }
  .way { grid-column: 1 / -1; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .field input, .field textarea { font-size: var(--fs-lede); }
  .send { width: 100%; justify-content: space-between; }
  .foot { padding-top: 32px; row-gap: 24px; }
  .foot__ways, .foot__addr { grid-column: 1 / -1; }
  :root { --fs-feature: clamp(28px, 8vw, 40px); }
}
@media (max-width: 560px) {
  .mas { grid-template-columns: minmax(0, 1fr); }
  .seg { margin-left: auto; }
  .bloom { width: 26px; height: 26px; margin: 0 18px; }
}
@media (hover: none), (pointer: coarse) { .peek { display: none; } }
/* Touch: every tappable thing is at least 44px tall. */
@media (max-width: 820px), (pointer: coarse) {
  .foot__ways a, .menu__contact a, .way a, .crumbs a, .foot__cta, .done .pill, .linkrow, .lang button, .field input { min-height: 44px; }
  .way a { display: inline-flex; align-items: center; padding: 0; }
  .foot__ways, .menu__contact { gap: 0; }
  .lang button { min-width: 44px; }
}
[hidden] { display: none !important; }
