:root {
  --paper: #F6F1EB;
  --paper-2: #EEE7DD;
  --ink: #1B1D1E;
  --charcoal: #505050;
  --green: #38473C;
  --grey: #ADB6B8;
  --gold: #9F6F31;
  --gold-light: #C9A06A;
  --gold-soft: rgba(159, 111, 49, .12);
  --rule: rgba(173, 182, 184, .7);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --head: 72px;
  --shadow: 0 1px 0 rgba(27,29,30,.06), 0 24px 48px -24px rgba(27,29,30,.45), 0 8px 16px -8px rgba(27,29,30,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* type */
.display { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; letter-spacing: -.035em; line-height: .9; margin: 0; }
.display em { font-style: italic; color: var(--gold); font-weight: 300; }
.display--room { font-size: clamp(40px, 5vw, 84px); line-height: 1; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 24px; font-size: 13px; color: var(--charcoal); letter-spacing: .01em; }
.kicker::after { content: ""; width: 56px; height: 1px; background: var(--grey); }
.num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.label { font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); margin: 32px 0 12px; }

/* controls: rectangular, editorial */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 0; font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.btn::after { content: "\2192"; transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--green); }
.btn--line { border: 1px solid var(--ink); min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--line::after { content: none; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold-light); color: var(--ink); }
.btn--gold:hover { background: var(--paper); }
.link-arrow { font: 500 15px var(--sans); text-decoration: none; border-bottom: 1px solid var(--grey); padding-bottom: 3px; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .3s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* masthead: brand · section nav · language + start. Always visible. */
.masthead { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); transition: background .3s, box-shadow .3s; }
.masthead.is-scrolled { background: rgba(246,241,235,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand__name { font: 400 16px var(--serif); letter-spacing: .02em; white-space: nowrap; }
.brand__name em { color: var(--gold); }
.fox { display: inline-block; flex: none; width: 28px; height: 32px; background: currentColor; -webkit-mask: url(assets/img/fox.png) center/contain no-repeat; mask: url(assets/img/fox.png) center/contain no-repeat; }
.nav ol { list-style: none; display: flex; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 10px 14px; font: 500 14px var(--sans); color: var(--charcoal); text-decoration: none; white-space: nowrap; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__start { display: none; }
.masthead__actions { justify-self: end; display: flex; gap: 14px; align-items: center; }
.lang { display: flex; padding: 0; border: 1px solid var(--rule); background: none; cursor: pointer; font: 600 12px var(--sans); letter-spacing: .06em; }
.lang span { display: grid; place-items: center; width: 36px; height: 30px; color: var(--charcoal); transition: background .3s, color .3s; }
.lang span.is-on { background: var(--ink); color: var(--paper); }

/* opening */
.opening { height: 100svh; min-height: 720px; padding: calc(var(--head) + 28px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.opening .display { font-size: clamp(64px, 10.4vw, 196px); }
.opening .line { display: block; overflow: hidden; padding-bottom: .06em; }
.opening .line > * { display: inline-block; }
.opening__copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 56px; align-items: end; }
.opening__copy h1 { grid-column: 1; grid-row: 1 / span 2; }
.lede { grid-column: 2; grid-row: 1; align-self: end; }
.lede p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--charcoal); }
.lede .lede__lead { font: italic 300 clamp(24px, 2vw, 30px)/1.15 var(--serif); color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.opening__cta { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; align-self: end; padding-bottom: .4em; }

/* ---------- folios: the seven-card set (finalized artwork, 2:3) ---------- */
.table { list-style: none; margin: 0; padding: 0 0 2vh; flex: 1; display: flex; justify-content: center; gap: clamp(8px, 1.2vw, 20px); align-items: center; }
.folio { flex: 0 0 min(11.8vw, 204px); position: relative; }
/* one corner radius for wrapper, faces and outlines (4.5% of width = 3% of height on a 2:3 card) */
.folio { --r: 4.5% / 3%; transition: z-index 0s .6s; }
.folio__card { display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: var(--r); background: none; cursor: pointer; perspective: 1400px; transform-origin: 50% 100%; transition: transform .6s var(--ease); -webkit-tap-highlight-color: transparent; }
/* hover lifts a card above its neighbours; leaving eases it back, and the stacking order returns only once it has landed */
@media (hover: hover) and (pointer: fine) {
  .folio:hover { z-index: 30 !important; transition-delay: 0s; }
  .folio__card:hover { transform: translateY(-14px) scale(1.04); }
}
/* symmetric curve: the card is edge-on at exactly half the duration, when the faces swap */
.folio__inner { position: relative; display: block; height: 100%; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45,.05,.55,.95); }
/* faces swap visibility at the half-turn, so no engine ever paints a mirrored reverse */
.folio__face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); transition: visibility 0s .45s; background: var(--paper-2); border-radius: var(--r); overflow: hidden; }
.folio__face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.folio__front { transform: rotateY(0deg) translateZ(1px); }
.folio__back { transform: rotateY(180deg) translateZ(1px); visibility: hidden; }
.folio.is-flipped .folio__inner { transform: rotateY(180deg); }
.folio.is-flipped .folio__back { visibility: visible; }
.folio.is-flipped .folio__front { visibility: hidden; }
.folio.is-today:not(.is-flipped) .folio__card:not(:focus-visible) { outline: 1px solid var(--gold); outline-offset: 5px; }
.folio__card:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
/* desktop: a turned card is lifted toward the reader so its reverse copy is legible */
@media (min-width: 901px) {
  .folio.is-flipped { z-index: 40 !important; transition-delay: 0s; }
  .folio.is-flipped .folio__card { transform: translateY(-3%) rotate(var(--unrot, 0deg)) scale(1.5); }
}
/* sits above the fan's outer cards, which hang lower on short screens */
.reading { position: relative; z-index: 45; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 20px; min-height: 3.2em; max-width: 760px; margin: 0 auto; padding: 8px 16px; background: var(--paper); text-align: center; }
.reading__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--charcoal); }
.reading__text strong { font: italic 400 18px/1.2 var(--serif); color: var(--ink); margin-right: 6px; }

/* ---------- rooms ---------- */
.room { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: clamp(96px, 12vw, 180px) var(--gutter); }
.room__numeral { position: absolute; top: 2%; left: calc(var(--gutter) - .06em); font: 300 clamp(220px, 30vw, 500px)/.8 var(--serif); font-variation-settings: "opsz" 144; color: var(--gold-soft); letter-spacing: -.06em; pointer-events: none; user-select: none; }
.room__head { grid-column: 1 / span 5; grid-row: 1; position: relative; margin-bottom: clamp(36px, 4vw, 56px); }
@media (min-width: 901px) {
  .room--brand .room__head { grid-column: 1 / span 6; margin-bottom: 0; }
  .room--brand .room__text { grid-column: 8 / span 5; grid-row: 1; padding-top: clamp(8px, 4vw, 72px); }
}
.room__lede { margin-top: clamp(28px, 3vw, 44px); max-width: 36ch; padding-left: 20px; border-left: 1px solid var(--gold); }
.room__lede p { margin: 0; font: 300 clamp(20px, 1.7vw, 25px)/1.45 var(--serif); }
.room__lede p + p { margin-top: .7em; color: var(--charcoal); }
.room__text { grid-column: 1 / span 5; grid-row: 2; position: relative; }
.room__stage { grid-column: 7 / span 6; grid-row: 1 / span 2; position: sticky; top: calc(var(--head) + 32px); align-self: start; padding-bottom: 24px; }
.room--brand .display--room { font-size: clamp(40px, 4.3vw, 72px); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 11px 0 11px 28px; border-top: 1px solid var(--rule); position: relative; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 1px; background: var(--gold); }
.room__buy { display: grid; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink); }
.room__buy .btn { justify-self: start; }
.price { margin: 0; display: grid; }
.price__label { font-size: 13px; color: var(--charcoal); }
.price__value { font: italic 400 20px var(--serif); }
.story { display: grid; gap: 20px; }
.story p { margin: 0; display: grid; gap: 4px; font: 300 clamp(18px, 1.4vw, 21px)/1.5 var(--serif); }
.story__label { font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* case-study stage: one whole plate, one applied view, one caption */
.stage__label { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); }
.stage__label span:last-child { color: var(--ink); }
.plate { margin: 0; background: #fff; padding: clamp(8px, .8vw, 14px); box-shadow: var(--shadow); overflow: hidden; }
.plate img { width: 100%; height: auto; }
.plate--main { position: relative; width: 86%; }
.plate--phone { position: absolute; right: 0; top: 30%; width: 22%; padding: 6px; background: var(--ink); border-radius: 22px; }
.plate--phone img { border-radius: 17px; aspect-ratio: 1170/2532; object-fit: cover; object-position: top; }

/* ---------- upcoming ---------- */
.chapters { padding: 40px var(--gutter) 120px; }
.chapters__head { margin-bottom: 40px; }
.chapters__fine { margin: 28px 0 0; color: var(--charcoal); }
.chapters__fine::before { content: "\2192  "; color: var(--gold); }
.up-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.up-list li { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 300px); gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.up-list .num { font-size: 22px; }
.up-list__title { font: 300 clamp(22px, 2.3vw, 32px)/1.1 var(--serif); }
.up-list__note { color: var(--charcoal); font-size: 15px; }
.up-list__date { text-align: right; font-size: 13px; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.up-list li.is-open .up-list__date { color: var(--gold); font-weight: 500; }

.status { justify-self: start; margin-bottom: 6px; padding: 3px 8px; border: 1px solid currentColor; font: 600 10px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.status--live { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

/* ---------- services ---------- */
.services { position: relative; padding: 140px var(--gutter); }
.services__head { display: grid; grid-template-columns: minmax(0, 1fr) var(--svc-card); column-gap: var(--svc-gap); align-items: end; margin-bottom: 56px; }
/* the note and the card below share one column */
.services { --svc-card: clamp(200px, 18vw, 260px); --svc-gap: clamp(32px, 5vw, 88px); }
.services__head .kicker, .services__head h2 { grid-column: 1 / -1; }
.services__note { grid-column: 2; color: var(--charcoal); margin: 24px 0 0; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); container-type: inline-size; --fit: 21.6; }
:lang(es) .svc { --fit: 26.2; }
.svc__row { border-bottom: 1px solid var(--rule); }
/* question on its own line, service name as a small line beneath: the question gets the full column */
.svc__row a { text-decoration: none; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 28px 0; }
.svc__ask, .svc__name { transition: transform .4s var(--ease), color .3s; }
/* --fit = longest question in em (italic included); sized to fit one line, never larger than the original clamp */
.svc__ask { font: 300 min(clamp(24px, 3vw, 44px), calc((100cqi - 28px) / var(--fit)))/1.1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.svc__name { font-size: 15px; color: var(--charcoal); }
/* the shift is a transform, so it never changes the space the text wraps in */
.svc__row a:hover :is(.svc__ask, .svc__name), .svc__row a:focus-visible :is(.svc__ask, .svc__name) { transform: translateX(20px); }
.svc__row a:hover .svc__ask, .svc__row a:focus-visible .svc__ask { font-style: italic; color: var(--gold); }
.svc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--svc-card); gap: var(--svc-gap); align-items: start; }
.svc__thumb { display: none; }
.svc__row.is-on .svc__ask { font-style: italic; color: var(--gold); }
.svc-preview { position: sticky; top: calc(var(--head) + 40px); margin: 0; }
.svc-preview__stack { position: relative; aspect-ratio: 2 / 3; }
.svc-preview__stack img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4.5% / 3%; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px) rotate(-1.5deg); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.svc-preview__stack img.is-on { opacity: 1; transform: none; }
.svc-preview__cap { display: grid; gap: 2px; margin-top: 18px; padding-left: 12px; border-left: 2px solid var(--gold); font-size: 13px; color: var(--charcoal); }
.svc-preview__cap strong { font: italic 400 18px/1.2 var(--serif); color: var(--ink); }
/* touch screens and narrow windows: each service carries its card inline, no hover needed */
@media (hover: none), (max-width: 900px) {
  .svc-wrap, .services__head { grid-template-columns: 1fr; }
  .services__note { grid-column: 1; max-width: 46ch; }
  .svc-preview { display: none; }
  .svc__row a { grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-items: center; }
  .svc__thumb { display: block; grid-row: span 2; width: 64px; height: auto; aspect-ratio: 2 / 3; border-radius: 4.5% / 3%; box-shadow: 0 8px 16px -8px rgba(27,29,30,.35); }
  .svc__ask, .svc__name { grid-column: 2; }
  .svc__ask { font-size: clamp(24px, 3vw, 44px); white-space: normal; }
  .svc__row a :is(.svc__ask, .svc__name) { transform: none !important; }
  .svc__row.is-on .svc__ask { font-style: normal; color: inherit; }
  /* italic is narrower and would re-wrap wrapped lines: on small screens focus is shown in gold, upright */
  .svc__row a:is(:hover, :focus-visible) .svc__ask { font-style: normal; color: var(--gold); }
}

/* ---------- how it begins ---------- */
.begin { background: var(--paper-2); padding: 120px var(--gutter); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 12px; align-items: baseline; align-content: start; }
.steps li > :not(.steps__n) { grid-column: 2; }
.steps__n { display: block; font: italic 400 20px/1 var(--serif); color: var(--gold); font-variant-numeric: tabular-nums; }
.steps h3 { font: 400 24px/1.2 var(--serif); margin: 0 0 10px; }
.steps p { margin: 0; max-width: 38ch; color: var(--charcoal); line-height: 1.6; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 120px var(--gutter) 140px; }
.about__portrait { grid-column: 2 / span 4; justify-self: end; width: 100%; max-width: 400px; margin: 0; padding: clamp(10px, 1vw, 14px); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.about__portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.about__text { grid-column: 7 / span 5; }
.about__text p { font: 300 clamp(18px, 1.5vw, 22px)/1.55 var(--serif); max-width: 36ch; }

/* ---------- inquiry ---------- */
.inquire { background: var(--ink); color: var(--paper); padding: 120px var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.inquire .kicker { color: var(--grey); }
.inquire .display em, .inquire .num { color: var(--gold-light); }
.inquire__intro p { color: var(--grey); }
.form { display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font: 500 14px/1.4 var(--sans); color: #E4DED5; }
.form input, .form select, .form textarea { font: 400 16px/1.4 var(--sans); color: var(--paper); background: rgba(246,241,235,.05); border: 0; border-bottom: 1px solid #8E9395; padding: 12px 12px; border-radius: 0; }
.form select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: var(--ink); background: var(--paper); }
.form input:hover, .form select:hover, .form textarea:hover { border-bottom-color: var(--paper); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; background-color: rgba(246,241,235,.09); border-bottom: 2px solid var(--gold-light); }
.form label:focus-within > span:first-child { color: var(--gold-light); }
.form textarea { resize: vertical; }
.form .form__consent { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px; font-weight: 400; font-size: 15px; color: var(--paper); cursor: pointer; }
.form__consent input { width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--gold-light); }
.form__consent input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.form .form__note { font: 400 13px/1.5 var(--sans); color: #B9BDBE; }
.form__privacy { margin: -6px 0 0 34px; font-size: 13px; line-height: 1.5; color: #B9BDBE; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; border: 0; cursor: pointer; margin-top: 8px; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form__error, .form__done { margin: 0; padding: 12px 14px; font-size: 15px; border-left: 2px solid; }
.form__error { color: #F4C3B5; border-color: #E08A70; background: rgba(224,138,112,.1); }
.form__done { color: #F1E3CC; border-color: var(--gold-light); background: rgba(201,160,106,.12); }

.colophon { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px var(--gutter) 48px; font-size: 13px; color: var(--charcoal); }
.colophon p { margin: 0; }
.colophon__links { display: flex; gap: 20px; margin-left: 12px; padding-left: 20px; border-left: 1px solid var(--rule); }
.colophon__links a { color: var(--charcoal); text-decoration: none; border-bottom: 1px solid transparent; }
.colophon__links a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- short laptop ---------- */
@media (min-width: 901px) and (max-height: 820px) {
  .opening .display { font-size: clamp(56px, 8.4vw, 150px); }
  .folio { flex-basis: min(10.4vw, 160px); }
  .folio.is-flipped .folio__card { transform: translateY(-12%) rotate(var(--unrot, 0deg)) scale(1.4); }
}

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 10px; font-size: 13px; }
  .nav a::after { left: 10px; right: 10px; }
  .brand__name { display: none; }
}
@media (max-width: 1024px) {
  .room__head, .room__text { grid-column: 1 / span 6; }
  .room__stage { grid-column: 7 / -1; }
  .about__portrait { grid-column: 1 / span 5; }
  .about__text { grid-column: 7 / -1; }
}
@media (max-width: 900px) {
  :root { --head: 60px; }
  .masthead { grid-template-columns: 1fr auto; }
  /* backdrop-filter would make the masthead the containing block of the fixed bottom nav */
  .masthead.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246,241,235,.97); }
  .brand__name { display: inline; font-size: 15px; }
  .nav { position: fixed; inset: auto 0 0; z-index: 50; background: rgba(246,241,235,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
  .nav ol { justify-content: space-around; }
  .nav__start { display: block; }
  .nav a { padding: 16px 6px 14px; font-size: 13px; }
  .nav a::after { left: 6px; right: 6px; bottom: 8px; }
  .nav__start a { color: var(--gold); }
  body { padding-bottom: 56px; }
  .masthead .btn--line { display: none; }
  .opening { height: auto; min-height: 100svh; padding-top: calc(var(--head) + 24px); gap: 32px; }
  .opening__copy { grid-template-columns: 1fr; }
  .opening__copy h1, .lede, .opening__cta { grid-column: 1; grid-row: auto; }
  .opening .display { font-size: 19.5vw; }
  .lede { margin-top: 24px; max-width: 46ch; }
  .table { flex: none; display: flex; justify-content: flex-start; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter) 28px; scrollbar-width: none; }
  .table::-webkit-scrollbar { display: none; }
  .folio { flex: 0 0 min(46%, 230px); scroll-snap-align: center; }
  .reading { justify-content: flex-start; text-align: left; margin: -12px 0 0; }
  .room { padding: 96px var(--gutter); }
  .room__numeral { font-size: 58vw; top: 40px; }
  .room__head, .room__text, .room__stage { grid-column: 1 / -1; grid-row: auto; }
  .room__stage { position: relative; top: 0; }
  .room__stage { margin-top: 56px; }
  .plate--main { width: 86%; }
  .plate--phone { width: 26%; top: 40%; }
  .up-list li { grid-template-columns: 44px 1fr; gap: 4px 12px; }
  .up-list__note, .up-list__date { grid-column: 2; text-align: left; }
  .services { padding: 96px var(--gutter); }
  .services__head { grid-template-columns: 1fr; }
  .services__note { grid-column: 1; }
  .about { grid-template-columns: 1fr; gap: 40px; padding: 88px var(--gutter); }
  .about__portrait, .about__text { grid-column: 1; }
  .about__portrait { justify-self: start; max-width: 300px; }
  .steps { grid-template-columns: 1fr; }
  .inquire { grid-template-columns: 1fr; padding: 88px var(--gutter); }
  .begin { padding: 88px var(--gutter); }
  .kicker::after { display: none; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .room__buy .btn { justify-self: stretch; }
  .brand__name { font-size: 14px; }
}
@media (max-width: 360px) {
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.plate--wide { width: 100%; }

/* ---------- the work, edition by edition ---------- */
/* MPRINTAGE frames every project the same way; the artwork inside keeps its own identity */
.work { padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(40px, 5vw, 80px); background: var(--paper-2); }
.work__head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.work__lede { max-width: 54ch; margin: 24px 0 0; font: 300 clamp(18px, 1.5vw, 21px)/1.5 var(--serif); color: var(--charcoal); }
.ed { margin-bottom: clamp(64px, 8vw, 120px); }
.ed__day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 clamp(28px, 3vw, 44px); padding-bottom: 14px; border-bottom: 1px solid var(--ink); font: 400 clamp(20px, 1.9vw, 28px)/1.2 var(--serif); }
.ed__day .num { font-size: .8em; color: var(--gold); }
.ed__svc { margin-left: auto; font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); }
.proj { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.proj + .proj { margin-top: clamp(56px, 7vw, 104px); }
.proj__media { grid-column: 1 / span 8; display: grid; gap: clamp(8px, 1vw, 14px); }
.proj__text { grid-column: 9 / span 4; display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--head) + 24px); }
.proj--flip .proj__media { grid-column: 5 / span 8; grid-row: 1; }
.proj--flip .proj__text { grid-column: 1 / span 4; grid-row: 1; }
.proj__lead, .proj__strip li { margin: 0; background: #fff; padding: clamp(6px, .6vw, 10px); box-shadow: var(--shadow); }
.proj__lead img, .proj__lead video, .proj__strip img { display: block; width: 100%; height: auto; }
.proj__lead--video { background: var(--ink); }
.proj__strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.proj__strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proj__strip--1 { grid-template-columns: minmax(0, 1fr); }
.proj__strip img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.proj__strip--1 img { aspect-ratio: auto; }
.proj .status { color: var(--gold); margin: 0; font-size: 11px; }
.proj__title { margin: 0; font: 300 clamp(30px, 3vw, 46px)/1 var(--serif); letter-spacing: -.02em; }
.proj__facts { margin: 4px 0 0; display: grid; gap: 14px; }
.proj__facts div { display: grid; gap: 3px; }
.proj__facts dt { font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.proj__facts dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
.proj__note { margin: 0; padding: 10px 12px; border-left: 2px solid var(--grey); background: rgba(255,255,255,.55); font-size: 13.5px; line-height: 1.5; color: var(--charcoal); }
.proj__rel { margin: 0; font-size: 14.5px; }
.proj__rel a { color: var(--gold); text-underline-offset: 3px; }
.proj .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 1024px) {
  .proj__media, .proj--flip .proj__media { grid-column: 1 / -1; grid-row: 1; }
  .proj__text, .proj--flip .proj__text { grid-column: 1 / -1; grid-row: 2; position: static; margin-top: 28px; max-width: 640px; }
}
@media (max-width: 640px) {
  .ed__svc { margin-left: 0; flex-basis: 100%; }
  .proj__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj__strip--1 { grid-template-columns: minmax(0, 1fr); }
  .proj .btn { justify-self: stretch; }
}


/* ---------- Friday pre-reveal ---------- */
.prereveal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: clamp(96px, 12vw, 180px) var(--gutter); background: var(--ink); color: var(--paper); }
.prereveal .kicker { color: var(--grey); }
.prereveal .kicker .num { color: var(--gold-light); }
.prereveal__text { grid-column: 1 / span 7; }
.prereveal__title { font-size: clamp(46px, 6.4vw, 108px); line-height: .95; }
.prereveal__title em { color: var(--gold-light); }
.prereveal__sub { max-width: 34ch; margin: clamp(28px, 3vw, 40px) 0 0; font: 300 clamp(20px, 1.9vw, 27px)/1.4 var(--serif); color: #E6E1DA; }
.prereveal__date { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.prereveal__date::before { content: ""; width: 56px; height: 1px; background: currentColor; }
.prereveal__card { grid-column: 9 / span 3; margin: 0; transform: rotate(3deg); }
.prereveal__card img { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 4.5% / 3%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
@media (max-width: 900px) {
  .prereveal__text { grid-column: 1 / -1; }
  .prereveal__card { grid-column: 1 / -1; grid-row: 2; width: min(46%, 220px); margin-top: 48px; }
}


/* ---------- final revisions ---------- */
/* no lone last words in editorial paragraphs, at any width */
p, dd, li, figcaption { text-wrap: pretty; }
h1, h2, h3, .proj__ask { text-wrap: balance; }

/* project captions, steps and invitations */
.proj__cap { margin: -2px 0 0; font: italic 300 15px/1.4 var(--serif); color: var(--charcoal); }
.proj__cap a { color: var(--gold); text-underline-offset: 3px; font-style: normal; font-family: var(--sans); font-size: 14px; }
.proj__step { display: flex; align-items: baseline; gap: 10px; margin: clamp(20px, 2.4vw, 36px) 0 0; font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); }
.proj__step:first-child { margin-top: 0; }
.proj__step .num { font: italic 400 16px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); }
.proj__ask { margin: 8px 0 0; font: 300 clamp(19px, 1.6vw, 22px)/1.4 var(--serif); }
.proj__facts dd p { margin: 0; }
.proj__facts dd p + p { margin-top: .6em; }
.proj__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.proj__plate { margin: 0; background: #fff; padding: clamp(6px, .6vw, 10px); box-shadow: var(--shadow); }
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoomable img { display: block; width: 100%; height: auto; }
.zoomable:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* gallery */
.gal { margin: 0; }
.gal__viewport { position: relative; aspect-ratio: var(--ar, 16 / 10); background: #fff; box-shadow: var(--shadow); overflow: hidden; touch-action: pan-y; cursor: zoom-in; }
.gal__viewport:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.gal__slide { position: absolute; inset: clamp(6px, .6vw, 10px); margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
.gal__slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; }
.gal__slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.gal__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.gal__btn:hover { border-color: var(--ink); }
.gal__btn:focus-visible, .gal__nums button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gal__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gal__btn .i-play, .gal__btn.is-paused .i-pause { display: none; }
.gal__btn.is-paused .i-play { display: inline; fill: currentColor; stroke: none; }
.gal__count { margin: 0 4px; font: italic 400 16px/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--charcoal); }
.gal__count [data-cur] { color: var(--gold); }
.gal__nums { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.gal__nums button { min-width: 30px; height: 32px; padding: 0 4px; border: 0; border-bottom: 1px solid transparent; background: none; font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--charcoal); cursor: pointer; }
.gal__nums button:hover { color: var(--ink); }
.gal__nums button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold); }
@media (max-width: 640px) { .gal__nums { margin-left: 0; flex-basis: 100%; } }

/* enlarge view */
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 22, 23, .95); overflow: auto; }
.zoom::backdrop { background: transparent; }
.zoom[open] { display: grid; place-items: center; }
.zoom img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); object-fit: contain; cursor: zoom-in; }
.zoom.is-actual { place-items: start; }
.zoom.is-actual img { max-width: none; max-height: none; cursor: zoom-out; }
.zoom__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(20,22,23,.6); color: #fff; font: 300 26px/1 var(--sans); cursor: pointer; }
.zoom__close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* live website preview: a real browser window on wide screens, the still image on phones */
.proj__lead--site { padding: 0; background: none; box-shadow: none; }
.site-preview { display: none; background: #fff; box-shadow: var(--shadow); padding: clamp(6px, .6vw, 10px); }
.site-preview__chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #EEE8E0; }
.site-preview__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #CFC6BA; }
.site-preview__chrome span { margin-left: 12px; font: 500 11px/1 var(--sans); color: var(--charcoal); letter-spacing: .02em; }
.site-preview__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F3EEE6; }
.site-preview__screen iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--s, .5)); transform-origin: 0 0; }
.site-preview__fallback { display: block; width: 100%; height: auto; background: #fff; padding: clamp(6px, .6vw, 10px); box-shadow: var(--shadow); }
.site-preview__how { display: none; }
@media (min-width: 900px) {
  .site-preview { display: block; }
  .proj__lead .site-preview__fallback { display: none; }
  .site-preview__how { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .gal__slide, .gal__slide.is-on { transition: none; }
}

/* About photo entrance (only added by JS, so the photo shows if scripts or motion are off) */
.about__portrait.is-waiting { opacity: 0; transform: translateY(20px); }
.about__portrait.is-in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
