/* Matteo Perna — site styles
   Palette tokens follow the brand brief. --text-2 is a darkened slate
   (#5F6265) so secondary body text meets WCAG 2.2 AA (5.45:1 on off-white);
   brand slate #74777A is kept for large text and non-text details only. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-standard-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-standard-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --charcoal: #25272A;
  --white: #F4F1EC;
  --stone: #D8D4CE;
  --slate: #74777A;
  --text-2: #5F6265;
  --oxblood: #682F3B;
  --oxblood-dark: #52242E;
  --rose: #A9838B;
  --rose-text: #B08A92; /* brand soft burgundy lifted slightly: 4.92:1 on charcoal (brand value is 4.497:1, just under AA) */
  --paper: #FBF9F6;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(80px, 11vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--oxblood); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-dark); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--rose); }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--charcoal); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--charcoal); max-width: 38em; }
.muted { color: var(--text-2); }
.eyebrow {
  font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-2); margin: 0 0 1.6rem; display: flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--oxblood); flex: none; }
.on-dark .eyebrow { color: var(--stone); }
.on-dark .eyebrow::before { background: var(--rose); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.rule { border: 0; border-top: 1px solid var(--stone); margin: 0; }
.on-dark { background: var(--charcoal); color: var(--white); }
.on-dark .muted, .on-dark p.muted { color: var(--stone); }
.on-dark a:not(.btn) { color: var(--rose); }
.surface { background: var(--paper); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 2.5rem; align-items: start; }
.split > :first-child { grid-column: 1 / span 5; }
.split > :last-child { grid-column: 7 / span 6; }
@media (max-width: 860px) { .split > :first-child, .split > :last-child { grid-column: 1 / -1; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px;
  padding: .85rem 1.5rem; font: 600 .8125rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--oxblood); border-radius: var(--radius);
  background: var(--oxblood); color: #fff; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--oxblood-dark); border-color: var(--oxblood-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.on-dark .btn--ghost { color: var(--white); border-color: var(--stone); }
.on-dark .btn--ghost:hover { background: var(--white); color: var(--charcoal); }
.on-dark .btn:not(.btn--ghost) { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.on-dark .btn:not(.btn--ghost):hover { background: var(--stone); border-color: var(--stone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--oxblood);
  padding: .4rem 0; border-bottom: 1px solid currentColor;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,236,.94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--stone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; color: var(--charcoal); display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.brand__desc { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.brand:hover { color: var(--charcoal); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nav a { color: var(--charcoal); text-decoration: none; font-size: .875rem; letter-spacing: .02em; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: var(--charcoal); }
.nav a[aria-current="page"] { border-bottom-color: var(--oxblood); }
.nav .nav__cta a { border: 1px solid var(--oxblood); color: var(--oxblood); padding: 10px 16px; border-radius: var(--radius); }
.nav .nav__cta a:hover, .nav .nav__cta a[aria-current="page"] { background: var(--oxblood); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--charcoal); cursor: pointer; font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; min-height: 44px; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; }
  .menu-toggle__bars { width: 22px; height: 9px; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s; }
  .menu-toggle__bars::before { top: 0; } .menu-toggle__bars::after { top: 7.5px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--white); padding: 24px var(--gutter) 40px; overflow-y: auto; display: none; border-top: 1px solid var(--stone); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--stone); }
  .nav a { display: block; font-family: var(--serif); font-size: 1.75rem; padding: 14px 0; border: 0; }
  .nav a[aria-current="page"] { color: var(--oxblood); }
  .nav .nav__cta { border: 0; margin-top: 24px; }
  .nav .nav__cta a { font-family: var(--sans); font-size: .875rem; text-align: center; text-transform: uppercase; letter-spacing: .1em; padding: 16px; }
  body.menu-open { overflow: hidden; }
}

/* Figures and placeholders */
.figure { margin: 0; position: relative; background: var(--stone); overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--portrait { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }
.figure figcaption { font-size: .75rem; color: var(--text-2); padding-top: .75rem; background: var(--white); }
/* Any figure marked .is-placeholder carries a visible label. Remove the class when the final image is in place. */
.is-placeholder::after {
  content: attr(data-placeholder);
  position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px);
  font: 600 .625rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(37,39,42,.86); color: var(--white); padding: 7px 10px; border-radius: var(--radius);
}
.ph-art { width: 100%; height: 100%; display: grid; place-items: center; background: #E6E2DC; color: var(--slate); }
.ph-art svg { width: 100%; height: 100%; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); }
.hero .grid-12 { align-items: end; row-gap: 48px; }
.hero__text { grid-column: 1 / span 7; padding-bottom: clamp(0px, 3vw, 40px); }
.hero__media { grid-column: 9 / span 4; }
.hero h1 { max-width: 11ch; margin-bottom: 2rem; }
@media (max-width: 860px) { .hero__text, .hero__media { grid-column: 1 / -1; } .hero__media { max-width: 460px; } }
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 88px); }
.page-hero h1 { max-width: 15ch; margin-bottom: 2rem; }
.page-hero .lede { max-width: 40em; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); }
.service { display: flex; flex-direction: column; }
.service .figure { margin-bottom: 1.75rem; }
.service__num { font-family: var(--serif); font-style: italic; color: var(--oxblood); font-size: 1.05rem; margin-bottom: .6rem; }
.service h3 { margin-bottom: 1rem; }
.service p { color: var(--text-2); flex: 1; }
.service .link-arrow { align-self: flex-start; margin-top: 1.5rem; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; max-width: 620px; } }

/* Numbered editorial rows */
.rows { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--stone); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--stone); }
.row__num { grid-column: 1 / span 1; font-family: var(--serif); font-style: italic; color: var(--oxblood); font-size: 1.1rem; padding-top: .3rem; }
.row h3 { grid-column: 2 / span 4; }
.row__body { grid-column: 7 / span 6; color: var(--text-2); }
.on-dark .rows, .on-dark .row { border-color: rgba(216,212,206,.25); }
.on-dark .row__num { color: var(--rose); }
.on-dark .row__body { color: var(--stone); }
@media (max-width: 860px) { .row__num { grid-column: 1 / -1; } .row h3, .row__body { grid-column: 1 / -1; } .row h3 { margin-bottom: .8rem; } }

/* Scope / checklist */
.scope-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--stone); }
.scope-list li { padding: 18px 0; border-bottom: 1px solid var(--stone); font-family: var(--serif); font-size: 1.3rem; display: flex; gap: 16px; }
.scope-list li:nth-child(odd) { padding-right: 24px; }
.scope-list li::before { content: counter(li, decimal-leading-zero); counter-increment: li; font: 500 .75rem/2.3 var(--sans); color: var(--oxblood); letter-spacing: .08em; }
.scope-list { counter-reset: li; }
@media (max-width: 640px) { .scope-list { grid-template-columns: 1fr; } }
.note {
  border-left: 2px solid var(--oxblood); padding: 4px 0 4px 20px; color: var(--text-2); font-size: .95rem; max-width: 44em;
}
.on-dark .note { border-color: var(--rose); color: var(--stone); }

/* Status tags */
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border: 1px solid currentColor; border-radius: 100px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--proposal { color: var(--oxblood); }
.status--progress { color: var(--text-2); }
.status--completed { color: var(--charcoal); }
.on-dark .status--proposal { color: var(--rose); }

/* Featured project */
.feature .grid-12 { align-items: center; row-gap: 40px; }
.feature__media { grid-column: 1 / span 6; }
.feature__text { grid-column: 8 / span 5; }
.feature h2 { margin: 1.4rem 0 1.4rem; }
@media (max-width: 860px) { .feature__media, .feature__text { grid-column: 1 / -1; } }

/* Projects index */
.project-card { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 28px; align-items: center; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--stone); text-decoration: none; color: inherit; }
.project-card:last-child { border-bottom: 1px solid var(--stone); }
.project-card .figure { grid-column: 1 / span 7; }
.project-card__text { grid-column: 9 / span 4; }
.project-card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 1.2rem 0 1rem; }
.project-card:hover h2 { color: var(--oxblood); }
.meta { list-style: none; padding: 0; margin: 1.4rem 0 0; font-size: .875rem; color: var(--text-2); }
.meta li { padding: 8px 0; border-top: 1px solid var(--stone); display: flex; justify-content: space-between; gap: 16px; }
.meta li span:first-child { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 600; color: var(--charcoal); }
@media (max-width: 860px) { .project-card .figure, .project-card__text { grid-column: 1 / -1; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .875rem; color: var(--text-2); margin-top: 1.5rem; }

/* Case study */
.case-head .meta { max-width: 520px; }
.case-section { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 1rem; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--stone); }
.case-section h2 { grid-column: 1 / span 4; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.case-section .case-body { grid-column: 6 / span 7; }
.case-section ul { padding-left: 1.1em; margin: 0; }
.case-section li { margin-bottom: .5em; }
@media (max-width: 860px) { .case-section h2, .case-section .case-body { grid-column: 1 / -1; } }
.pending { display: block; font-size: .875rem; color: var(--text-2); border: 1px dashed var(--slate); padding: 14px 16px; margin-top: 1rem; border-radius: var(--radius); background: var(--paper); }
.pending strong { color: var(--oxblood); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; display: block; margin-bottom: 4px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
@media (max-width: 700px) { .plan-grid { grid-template-columns: 1fr; } }

/* About */
.creds { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(216,212,206,.25); }
.creds li { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(216,212,206,.25); font-family: var(--serif); font-size: 1.3rem; }
.creds .confirm { font: 600 .625rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); white-space: nowrap; padding-top: .5rem; }
.pullquote { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; max-width: 24ch; }

/* CTA band */
.cta { text-align: left; }
.cta h2 { max-width: 14ch; margin-bottom: 1.4rem; }
.cta p { max-width: 36em; }

/* Forms */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 900px) { .forms { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); padding: clamp(28px, 4vw, 52px); border-top: 2px solid var(--charcoal); scroll-margin-top: 100px; }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .8rem; }
.form-card > p { color: var(--text-2); margin-bottom: 2rem; }
.field { margin-bottom: 1.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label, legend { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; color: var(--charcoal); }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-2); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal); background: #fff;
  border: 1px solid #BDB8B1; border-radius: var(--radius); padding: .8rem .9rem; min-height: 48px; transition: border-color .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--slate); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--oxblood); outline-offset: 0; border-color: var(--oxblood); }
fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: 10px; border: 1px solid #BDB8B1; padding: 12px 16px; border-radius: var(--radius); background: #fff; cursor: pointer; margin: 0; }
.choice input { width: 18px; height: 18px; min-height: 0; accent-color: var(--oxblood); margin: 0; }
.choice label:has(input:checked) { border-color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--oxblood); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--text-2); text-transform: none; letter-spacing: 0; font-weight: 400; margin: 1.5rem 0; }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--oxblood); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-size: .9rem; color: var(--oxblood); min-height: 1.4em; }
.contact-aside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--stone); }
.contact-aside h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: .6rem; }
.contact-aside p { color: var(--text-2); }
@media (max-width: 760px) { .contact-aside { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--stone); padding: clamp(64px, 8vw, 112px) 0 40px; font-size: .9375rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.footer-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 40px; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand .brand__name { font-family: var(--serif); font-size: 2.2rem; color: var(--white); display: block; line-height: 1.1; }
.footer-brand .brand__desc { color: var(--rose); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; display: block; margin: 10px 0 24px; }
.footer-col { grid-column: span 2; }
.footer-col--wide { grid-column: span 3; }
.footer-col h2 { font: 600 .6875rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-bottom { margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid rgba(216,212,206,.2); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .8125rem; color: var(--stone); }
.footer-bottom ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
@media (max-width: 960px) { .footer-brand { grid-column: 1 / -1; } .footer-col, .footer-col--wide { grid-column: span 6; } }

/* Review flags: visible only while html has .review (set in config). */
.review-flag { display: none; }
html.review .review-flag { display: inline-block; font: 600 .625rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--oxblood); background: #F1E4E6; padding: 3px 7px; border-radius: 2px; vertical-align: middle; margin-left: 6px; }

/* Subtle reveal: content is always visible at rest; sections only drift up slightly as they enter. */
.reveal { transition: transform .8s var(--ease); }
.js-motion .reveal:not(.is-in) { transform: translateY(12px); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(16px, 2.4vw, 40px); }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }
.page-hero .hero__text { grid-column: 1 / span 7; }
@media (max-width: 860px) { .page-hero .hero__text { grid-column: 1 / -1; } }
.site-footer.on-dark a:not(.btn) { color: var(--white); }
.site-footer.on-dark a:not(.btn):hover { color: var(--rose); }
.on-dark .ph-art { background: #2F3236; color: #8A8D90; }
.on-dark .figure { background: #2F3236; }
@media (max-width: 480px) { .brand__desc { letter-spacing: .1em; font-size: .5625rem; } .hero h1 { font-size: 2.45rem; } }
/* Text-sized soft burgundy on dark uses the AA-safe variant */
.on-dark a:not(.btn), .site-footer.on-dark a:not(.btn):hover, .footer-brand .brand__desc, .footer-col h2, .on-dark .status--proposal, .on-dark .row__num, .creds .confirm { color: var(--rose-text) !important; }
.site-footer.on-dark .footer-col a:not(.btn) { color: var(--white) !important; }
.site-footer.on-dark .footer-col a:not(.btn):hover, .site-footer.on-dark .footer-bottom a:hover { color: var(--rose-text) !important; }
.site-footer.on-dark .footer-bottom a { color: var(--white) !important; }

/* Under 750px every figure becomes a square crop, focused on the subject. */
@media (max-width: 749px) {
  .figure, .figure--portrait, .figure--wide, .figure--square { aspect-ratio: 1 / 1; max-width: 100%; }
  .figure img { object-position: 50% 25%; }
  .figure[data-focus="right"] img { object-position: 62% 30%; }
  .hero__media { max-width: none; }
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 32px); }
@media (max-width: 749px) { .wrap.pair { grid-template-columns: 1fr; } }

/* ---------- Online programs: members area ---------- */
.members { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.members-title, .cal-title, .day-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; margin-bottom: 1rem; }
.draft-banner { background: #F1E4E6; color: var(--oxblood-dark); border-left: 3px solid var(--oxblood); padding: 12px 16px; font-size: .9rem; margin: 0 0 2rem; }
.mini-h { font: 600 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--charcoal); }
.ring { width: 96px; height: 96px; flex: none; }
.ring__bg { fill: none; stroke: var(--stone); stroke-width: 6; }
.ring__fg { fill: none; stroke: var(--oxblood); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring__txt { font: 600 16px var(--sans); fill: var(--charcoal); }
#mp-app { display: grid; gap: clamp(20px, 3vw, 40px); }
.prog-card { background: var(--paper); border-top: 2px solid var(--charcoal); padding: clamp(24px, 4vw, 48px); }
.prog-card__top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.prog-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .6rem; }
.up-next { display: grid; gap: 4px; margin-top: 1.8rem; padding: 18px 20px; border: 1px solid var(--stone); background: var(--white); }
.up-next__label { font: 600 .6875rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.up-next__title { font-family: var(--serif); font-size: 1.4rem; }
@media (min-width: 1000px) { #mp-app[data-view="dashboard"] { grid-template-columns: 1fr 1fr; } }
.prog-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.prog-tabs a { padding: 10px 16px; border: 1px solid var(--stone); text-decoration: none; color: var(--charcoal); font-size: .875rem; border-radius: var(--radius); }
.prog-tabs a[aria-current="page"] { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.cal-head { display: grid; grid-template-columns: 1.4fr auto 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--stone); }
.cal-head__progress { display: grid; justify-items: center; gap: 6px; font-size: .8125rem; }
.cal-head__equip ul { margin: 0; padding-left: 1.1em; font-size: .9375rem; color: var(--text-2); }
@media (max-width: 900px) { .cal-head { grid-template-columns: 1fr; } .cal-head__progress { justify-items: start; } }
.phase { display: grid; gap: 14px; }
.phase__head { display: grid; gap: 4px; margin: 1rem 0 .4rem; }
.phase__num { font: 600 .6875rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.phase__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.phase__head .muted { max-width: 60em; font-size: .9375rem; }
.week { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: stretch; }
.week__label { font: 600 .8125rem var(--sans); padding-top: 12px; display: grid; align-content: start; gap: 6px; }
.week__tag { font-weight: 500; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.week__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: grid; align-content: start; gap: 6px; min-height: 112px; height: 100%; padding: 12px; text-decoration: none; color: var(--charcoal); background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); transition: border-color .2s, transform .2s var(--ease); }
.tile:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.tile__day { font: 600 .6875rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.tile__title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.tile__type { font-size: .75rem; color: var(--text-2); }
.tile--conditioning { background: var(--white); }
.tile--rest { background: transparent; border-style: dashed; }
.tile--rest .tile__title { color: var(--text-2); }
.tile.is-done { background: #ECE8E2; }
.tile.is-done .tile__title { color: var(--text-2); }
.tile__check { position: absolute; right: 10px; top: 8px; color: var(--oxblood); font-weight: 700; }
.tile.is-current { border: 2px solid var(--oxblood); box-shadow: 0 0 0 3px #F1E4E6; }
@media (max-width: 1000px) { .week { grid-template-columns: 1fr; } .week__label { padding-top: 0; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; } }
@media (max-width: 760px) { .week__days { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { min-height: 92px; } }
.crumbs { font-size: .8125rem; color: var(--text-2); margin: 0 0 1.2rem; }
.video-slot { margin-bottom: 2rem; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; display: block; }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 16px solid currentColor; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid var(--stone); }
.day-sub { font-size: 1.1rem; color: var(--text-2); margin: 0; }
.day-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 1.6rem 0; }
@media (max-width: 640px) { .day-meta { grid-template-columns: 1fr; } }
.day-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--charcoal); margin-bottom: 1.8rem; overflow-x: auto; }
.day-tabs button { font: 600 .8125rem var(--sans); letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; padding: 14px 18px; cursor: pointer; color: var(--text-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; min-height: 48px; }
.day-tabs button[aria-selected="true"] { color: var(--charcoal); border-bottom-color: var(--oxblood); }
.ex-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 14px; }
.ex { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px; background: var(--paper); border: 1px solid var(--stone); }
.ex:not(:has(.ex__thumb)) { grid-template-columns: 1fr; }
.ex__thumb { position: relative; aspect-ratio: 4 / 3; background: #E6E2DC; color: var(--slate); display: grid; place-items: center; }
.ex__thumb .play { width: 44px; height: 44px; }
.ex__thumb .play::after { left: 17px; top: 12px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
.ex__thumb.is-placeholder::after { top: 8px; left: 8px; padding: 4px 7px; font-size: .5625rem; }
.ex h3 { font-size: 1.35rem; display: flex; gap: 12px; align-items: baseline; margin-bottom: .6rem; }
.ex__n { font: 600 .8125rem var(--sans); color: var(--oxblood); }
.ex__stats { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9375rem; margin-bottom: .6rem !important; }
.ex__stats b, .ex__swap b { font-weight: 600; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood); margin-right: 6px; }
.ex__swap { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .875rem; color: var(--text-2); margin-top: .6rem; }
.ex p { margin-bottom: 0; }
@media (max-width: 640px) { .ex { grid-template-columns: 1fr; } .ex__thumb { max-width: 220px; } }
.bench { border: 1px solid var(--oxblood); padding: 18px 20px; margin-top: 1.4rem; background: var(--white); }
.bench h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.bench ul { margin: .6rem 0 0; padding-left: 1.1em; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .4rem; }
.prose h3:first-child { margin-top: 0; }
.prose p { max-width: 42em; color: var(--text-2); }
.day-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--stone); }
.week-demo { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(216,212,206,.25); }
.week-demo li { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(216,212,206,.25); font-family: var(--serif); font-size: 1.25rem; }
.week-demo b { font: 600 .75rem/2.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-text); min-width: 56px; }
@media (max-width: 960px) { .services[style*="repeat(2"] { grid-template-columns: 1fr !important; } }
.video-slot { max-width: 920px; aspect-ratio: 16 / 9; }
.ex__log { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: .8rem !important; }
.ex__log label { margin: 0; font-size: .6875rem; }
.ex__log input { width: 110px; min-height: 40px; padding: .45rem .6rem; }
.nav .nav__lang { display: flex; gap: 10px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--stone); }
.nav .nav__lang a { font-size: .75rem; letter-spacing: .1em; color: var(--text-2); padding: 6px 0; }
.nav .nav__lang a[aria-current="true"] { color: var(--charcoal); border-bottom-color: var(--oxblood); }
@media (max-width: 1080px) { .nav .nav__lang { border: 0; margin: 24px 0 0; padding: 0; gap: 20px; } .nav .nav__lang a { font-family: var(--sans); font-size: .875rem; } }
/* backdrop-filter creates a containing block for fixed children; switch it off while the mobile menu is open */
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }

/* Home hero: landscape photo, 500px tall on desktop, top-aligned with the text */
.hero .grid-12 { align-items: start; }
.hero .hero__text { grid-column: 1 / span 6; padding-bottom: 0; }
.hero .hero__media--wide { grid-column: 7 / span 6; }
.figure--hero { height: 500px; max-width: 100%; }
.figure--hero img { object-position: 20% 50%; }
@media (max-width: 860px) { .hero .hero__text, .hero .hero__media--wide { grid-column: 1 / -1; max-width: none; } }
/* Under 750px: square crop anchored left, so the clients on the right fall outside the frame */
@media (max-width: 749px) { .figure--hero { height: auto; aspect-ratio: 1 / 1; } .figure--hero img { object-position: 0% 50%; } }
/* Two service cards: use two equal columns */
@media (min-width: 961px) { .services:has(> .service:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); } }
