/* Prototype B — taste-skill direction "The split stage" (seed 108391987)
   Type: Erode. Colour: Studio grey — the grey paper backdrop of Cécile's studio is the page itself. */

:root {
  --bg: #a8a8aa;
  --surface: #b4b4b6;
  --paper: #e9e9e7;
  --pale: #d6d6d4;
  --ink: #0e0e0e;
  --muted: #3a3a3c;
  --accent: #1f5c49;
  --accent-ink: #ffffff;
  --field-1: #1b1b1c;
  --field-1-ink: #ffffff;
  --field-1-muted: #b9b9bb;
  --marker: #c3d3cb;

  --font: "Erode", Georgia, "Times New Roman", serif;
  --script: "Monsieur La Doulaise", cursive;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 1rem + 6.6vw, 7.5rem);

  --margin: 20px;
  --pad: clamp(24px, 4vw, 64px);
  --section: clamp(120px, 12vw, 200px);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 0.95; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

.wordmark { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1; text-decoration: none; }

.button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out);
}
.button span { position: relative; }
.button::before { /* solid darker field wipes in from the left on hover */
  content: ""; position: absolute; inset: 0; background: #143f32;
  transform: translateX(-101%); transition: transform 420ms var(--ease-out);
}
.button:hover::before { transform: none; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; text-decoration-color: transparent; transition: text-decoration-color 180ms ease, color 180ms ease; }
.link:hover { text-decoration-color: currentColor; }

/* Film-edge band: ink strip with paper sprocket holes, 28px rhythm */
.film { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 56px; padding: 0 14px; background: var(--ink); overflow: hidden; }
.film i { flex: 0 0 14px; height: 22px; background: var(--paper); }
.film-thin { height: 8px; padding: 0; gap: 0; background: var(--ink); }

/* ---------- Hero: printed card beside the room ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--margin); padding: var(--margin); min-height: 100svh; }
.card { min-width: 0; background: var(--paper); display: flex; flex-direction: column; text-align: center; }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px var(--pad); }
.card .wordmark { font-size: clamp(3rem, 4.6vw, 4.6rem); }
.card .by { font-size: var(--step-small); color: var(--muted); margin-top: -18px; }
.card h1 { font-size: var(--step-head); font-weight: 400; max-width: 13ch; }
.card .sentence { max-width: 36ch; }
.card-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 0 var(--pad) 28px; font-size: var(--step-small); }
.room { position: relative; overflow: hidden; background: var(--surface); min-height: 420px; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.room img.on { opacity: 1; }

/* ---------- Work: small index, large picture (pinned) ---------- */
.work { position: relative; height: 250svh; margin-top: var(--section); }
.work-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 38fr 62fr; }
.work-text { display: flex; flex-direction: column; justify-content: space-between; padding: 40px var(--pad) 32px var(--pad); }
.work-text h2 { font-size: var(--step-display); max-width: 7ch; }
.work-text > p { margin-top: 24px; max-width: 30ch; }
.work-index { margin-top: auto; }
.work-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 52px; text-decoration: none; color: var(--muted); transition: color 240ms ease, transform 240ms var(--ease-out); }
.work-index a .name { font-size: var(--step-lead); }
.work-index a .what { font-size: 1rem; text-align: right; }
.work-index a[aria-current="true"] { color: var(--ink); transform: translateX(10px); }
.work-index a:hover { color: var(--ink); }
.work-pics { position: relative; overflow: hidden; background: var(--surface); }
.work-pics figure { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-in-out); }
.work-pics figure:first-child, .work-pics figure.on { clip-path: inset(0); }
.work-pics figure.on { z-index: 2; }
.work-pics img { width: 100%; height: 100%; object-fit: cover; }
.work-pics figcaption { display: none; }

/* ---------- Pricing: prices like a menu ---------- */
.pricing { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.pricing-side { grid-column: 1 / span 3; }
.pricing-side-inner { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.pricing h2 { font-size: var(--step-head); }
.pick-photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.pick-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms ease, transform 900ms var(--ease-soft); }
.pick-photo img.leaving { opacity: 0; transform: scale(1.03); }
.pick-panel { display: flex; flex-direction: column; gap: 6px; }
.pick-panel .pick-name { font-size: var(--step-lead); line-height: 1.15; }
.pick-panel .pick-incl { font-size: 1rem; color: var(--muted); }
.pick-panel .button { margin-top: 12px; align-self: flex-start; }
.menu { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; }
.menu-group + .menu-group { margin-top: 48px; }
.menu-group h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 18px; display: flex; justify-content: space-between; }
.menu-group h3 small { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.menu-item { display: block; width: 100%; text-align: left; padding: 11px 12px; margin-inline: -12px; width: calc(100% + 24px); transition: background-color 200ms ease; }
.menu-item:hover { background: var(--surface); }
.menu-item[aria-pressed="true"] { background: var(--paper); }
.menu-item .row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-body); line-height: 1.3; }
.menu-item .desc { display: block; font-size: 1rem; color: var(--muted); max-width: 36ch; margin-top: 4px; line-height: 1.4; }
.menu-notes { grid-column: 5 / -1; margin-top: 40px; font-size: 1rem; color: var(--muted); display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }

/* ---------- Split: stage left, reading column right ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); padding: var(--margin); margin-top: var(--section); }
.stage { position: sticky; top: var(--margin); height: calc(100svh - 2 * var(--margin)); overflow: hidden; background: var(--surface); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.stage img.on { opacity: 1; animation: drift 14s var(--ease-soft) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.reading { display: flex; flex-direction: column; gap: var(--margin); }
.how { background: var(--surface); padding: var(--section) var(--pad); }
.how h2 { font-size: var(--step-head); max-width: 12ch; }
.how > p { margin-top: 24px; max-width: 30ch; }
.slip {
  margin-top: 48px; max-width: 470px; background: var(--paper); padding: 28px 28px 52px; font-size: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 97.5% 100%, 95% calc(100% - 12px), 92.5% 100%, 90% calc(100% - 12px), 87.5% 100%, 85% calc(100% - 12px), 82.5% 100%, 80% calc(100% - 12px), 77.5% 100%, 75% calc(100% - 12px), 72.5% 100%, 70% calc(100% - 12px), 67.5% 100%, 65% calc(100% - 12px), 62.5% 100%, 60% calc(100% - 12px), 57.5% 100%, 55% calc(100% - 12px), 52.5% 100%, 50% calc(100% - 12px), 47.5% 100%, 45% calc(100% - 12px), 42.5% 100%, 40% calc(100% - 12px), 37.5% 100%, 35% calc(100% - 12px), 32.5% 100%, 30% calc(100% - 12px), 27.5% 100%, 25% calc(100% - 12px), 22.5% 100%, 20% calc(100% - 12px), 17.5% 100%, 15% calc(100% - 12px), 12.5% 100%, 10% calc(100% - 12px), 7.5% 100%, 5% calc(100% - 12px), 2.5% 100%, 0 calc(100% - 12px));
}
.slip h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-top: 28px; margin-bottom: 8px; }
.slip h3:first-child { margin-top: 0; }
.slip-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.slip-row .dots { flex: 1; min-width: 16px; align-self: center; border-bottom: 4px dotted #8a8a8c; transform: translateY(2px); }
.slip-row span:last-child { white-space: nowrap; }
.slip-total { margin: 28px -28px 0; padding: 0 28px; min-height: 44px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.letter { background: var(--paper); padding: var(--section) var(--pad) calc(var(--section) / 2); }
.letter-col { max-width: 520px; margin-inline: auto; }
.letter .face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.letter h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-top: 28px; }
.letter p { margin-top: 1.1em; font-size: var(--step-body); line-height: 1.55; }
.letter mark { background: var(--marker); color: inherit; padding: 0 2px; }
.letter .sign { margin-top: 36px; font-size: 1.375rem; font-style: italic; }
.letter .role { font-size: var(--step-small); color: var(--muted); }

/* ---------- FAQ: questions beside a tall photograph ---------- */
.faq { margin-top: var(--margin); background: var(--pale); padding: 0 var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq-text { grid-column: 1 / span 5; padding: 120px 0 120px; padding-left: calc(var(--pad) - var(--margin)); }
.faq h2 { font-size: var(--step-head); }
.facts { margin-top: 28px; font-size: var(--step-body); line-height: 1.7; }
.faq details { margin-top: 28px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-body); font-weight: 500; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.chev { position: relative; flex: 0 0 14px; height: 14px; transition: transform 240ms var(--ease-out); }
.chev::before, .chev::after { content: ""; position: absolute; top: 6px; width: 9px; height: 2px; background: var(--ink); }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin-top: 8px; font-size: var(--step-body); color: var(--muted); }
.faq-actions { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.faq-pics { grid-column: 7 / -1; position: relative; margin-bottom: 80px; }
.faq-pics .tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-top: -60px; }
.faq-pics .square { position: absolute; left: -40px; bottom: -40px; width: 34%; aspect-ratio: 1; object-fit: cover; border: 12px solid var(--pale); }

/* ---------- Contact: the email as display type ---------- */
.contact { min-height: 100svh; background: var(--field-1); color: var(--field-1-ink); display: grid; grid-template-rows: auto 1fr auto; padding: 40px var(--pad) 32px; margin-top: var(--section); }
.contact h2 { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; max-width: 26ch; }
.contact .mail { align-self: end; margin-bottom: 12vh; font-size: clamp(2rem, 6.9vw, 7rem); line-height: 1; letter-spacing: -0.035em; text-decoration: none; transition: color 240ms ease; }
.contact .mail:hover { color: var(--marker); }
.contact-foot .hours { list-style: none; padding: 0; margin: 0; }
.contact-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; font-size: var(--step-small); color: var(--field-1-muted); }
.contact-foot .hours { display: grid; grid-template-columns: auto auto; gap: 2px 18px; }
.contact-foot a { color: var(--field-1-ink); }

/* ---------- Footer: photograph half, menu half ---------- */
.footer { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.footer > img { width: 100%; height: 100%; object-fit: cover; }
.footer-menu { padding: 80px var(--pad) 28px; display: flex; flex-direction: column; }
.footer-menu .wordmark { font-size: 2.6rem; }
.footer-menu nav { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.footer-menu nav a { font-size: clamp(1.75rem, 2.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; transition: transform 240ms var(--ease-out), color 200ms ease; }
.footer-menu nav:hover a { color: var(--muted); }
.footer-menu nav a:hover { color: var(--ink); transform: translateX(12px); }
.footer-blocks { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 1rem; }
.footer-legal { margin-top: auto; padding-top: 40px; font-size: var(--step-small); color: var(--muted); }

/* ---------- Gallery page ---------- */
.g-split { display: grid; grid-template-columns: 45fr 55fr; gap: var(--margin); padding: var(--margin); }
.g-read { background: var(--paper); padding: 28px var(--pad) var(--pad); }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.g-top .wordmark { font-size: 2.4rem; }
.g-top nav { display: flex; gap: 22px; font-size: var(--step-small); }
.g-read h1 { font-size: var(--step-head); margin-top: 96px; max-width: 12ch; }
.g-read > p { margin-top: 24px; }
.g-lead { font-size: var(--step-lead); line-height: 1.35; }
.g-first { margin-top: 28px; }
.g-cats { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 1rem; }
.g-cats a { color: var(--muted); text-decoration: none; }
.g-cats a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.g-thumbs { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-thumbs button { aspect-ratio: 1; overflow: hidden; background: var(--surface); outline-offset: 2px; transition: transform 140ms var(--ease-out); }
.g-thumbs button:active { transform: scale(0.97); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-soft); }
.g-thumbs button:hover img { transform: scale(1.06); }
.g-thumbs button[aria-current="true"] { outline: 3px solid var(--ink); }
.g-cta { margin-top: 64px; padding-top: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.g-cta h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.g-stage { position: sticky; top: var(--margin); height: calc(100svh - 2 * var(--margin)); background: var(--bg); display: grid; grid-template-rows: 1fr auto; }
.g-stage figure { position: relative; min-height: 0; margin: 32px 32px 0; }
.g-stage figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 400ms ease; }
.g-stage figure img.leaving { opacity: 0; }
.g-controls { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px 20px; font-size: 1rem; }
.g-controls button { min-height: 44px; padding: 0 6px; }
.g-controls button:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- entrances (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .room img, .stage img, .work-pics figure, .pick-photo img { transition: none; animation: none; }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .room { order: -1; height: 48svh; min-height: 320px; }
  .card { margin-top: -36px; position: relative; margin-inline: 8px; }
  .film { height: 40px; }
  .card h1 { font-size: 8.6vw; }
  .card .wordmark { font-size: 3.2rem; }

  .work { height: auto; }
  .work-stage { position: static; height: auto; grid-template-columns: 1fr; }
  .work-text { padding: 0 var(--pad) 24px; }
  .work-text h2 { font-size: 14vw; }
  .work-index { display: none; }
  .work-pics { overflow: visible; background: none; display: grid; gap: 28px; padding: 0 var(--margin); }
  .work-pics figure { position: static; clip-path: none; }
  .work-pics img { aspect-ratio: 4 / 5; height: auto; }
  .work-pics figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px 0; }
  .work-pics figcaption a { font-size: var(--step-lead); }

  .pricing { grid-template-columns: 1fr; padding-inline: var(--pad); }
  .pricing-side, .menu, .menu-notes { grid-column: 1; }
  .pricing-side-inner { position: static; }
  .pick-photo { width: 70%; }
  .menu { grid-template-columns: 1fr; margin-top: 40px; }
  .menu .menu-col + .menu-col { margin-top: 48px; }
  .menu-notes { grid-template-columns: 1fr; gap: 12px; }

  .split { grid-template-columns: 1fr; }
  .stage { position: relative; height: 56svh; }
  .how, .letter { padding: 80px var(--pad); }

  .faq { grid-template-columns: 1fr; padding: 0; }
  .faq-pics { grid-column: 1; grid-row: 1; margin: 0 0 40px; }
  .faq-pics .tall { margin-top: 0; aspect-ratio: 4 / 5; }
  .faq-pics .square { left: auto; right: 16px; bottom: -32px; width: 38%; }
  .faq-text { grid-column: 1; padding: 40px var(--pad) 80px; }

  .contact { min-height: 86svh; }
  .contact .mail { font-size: 11.5vw; margin-bottom: 8vh; }

  .footer { grid-template-columns: 1fr; }
  .footer > img { height: 50svh; }
  .footer-menu { padding: 40px var(--pad) 28px; }
  .footer-menu nav a { font-size: 8vw; }

  .g-split { grid-template-columns: 1fr; }
  .g-stage { order: -1; position: relative; height: 62svh; }
  .g-read h1 { margin-top: 40px; }
  .g-count { display: none; }
  .g-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
