/* =====================================================================
   RCCR Consultores — site stylesheet
   Mobile-first. Tokens first; components follow in page order.
   Contrast (WCAG 2.1, measured):
     paper #F2F0EC on burgundy #4A1A1C ......... 12.7 : 1
     brass #C9A86A on burgundy .................. 6.4 : 1  (kickers on dark)
     mist  #D9C9C2 on burgundy .................. 9.0 : 1  (secondary text on dark)
     brass-ink #7A5C30 on paper ................. 5.4 : 1  (kickers on light)
     muted #5E5A55 on paper ..................... 6.0 : 1
     ink #161414 on paper ...................... 16.1 : 1
   Brass is never used for text on paper except as --brass-ink.
   ===================================================================== */

/* ---------- Fonts (self-hosted: no third-party requests, GDPR-friendly) ---------- */
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --burgundy: #4A1A1C;      /* primary — sample from the logo file to confirm */
  --burgundy-deep: #38131A;
  --paper: #F2F0EC;
  --paper-2: #E8E4DD;
  --ink: #161414;
  --brass: #C9A86A;         /* accent on dark grounds only */
  --brass-ink: #7A5C30;     /* accent for text on paper */
  --mist: #D9C9C2;          /* secondary text on burgundy */
  --muted: #5E5A55;         /* secondary text on paper */
  --rule-dark: rgba(242, 240, 236, .22);
  --rule-light: rgba(22, 20, 20, .18);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-label: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --sect: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); font-kerning: normal; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.on-light :focus-visible, .section--paper :focus-visible { outline-color: var(--burgundy); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.2vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.12; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.55; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Kicker: condensed caps label above headings */
.kicker { display: inline-flex; align-items: center; gap: .75em; margin: 0 0 1.1rem; font: 600 .82rem/1.2 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--burgundy .kicker, .section--ink .kicker, .hero .kicker { color: var(--brass); }

/* ---------- Sections (alternate burgundy / paper) ---------- */
.section { padding-block: var(--sect); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper2 { background: var(--paper-2); color: var(--ink); }
.section--burgundy { background: var(--burgundy); color: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--burgundy .muted, .section--ink .muted { color: var(--mist); }
.muted { color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--rule-light); margin: 0; }
.section--burgundy .rule, .section--ink .rule { border-top-color: var(--rule-dark); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin: 0; max-width: 18ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .8em 1.5em; border: 1px solid currentColor; border-radius: 0; font: 600 .95rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); background: transparent; color: inherit; }
.btn--solid-light { background: var(--paper); color: var(--burgundy); border-color: var(--paper); }
.btn--solid-light:hover { background: transparent; color: var(--paper); }
.btn--solid-dark { background: var(--burgundy); color: var(--paper); border-color: var(--burgundy); }
.btn--solid-dark:hover { background: transparent; color: var(--burgundy); }
.btn--ghost-light:hover { background: var(--paper); color: var(--burgundy); border-color: var(--paper); }
.btn--ghost-dark:hover { background: var(--burgundy); color: var(--paper); border-color: var(--burgundy); }
.link-arrow { font: 600 .9rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--burgundy); padding: 12px 16px; font: 600 .9rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--burgundy); color: var(--paper); border-bottom: 1px solid var(--rule-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { width: 108px; height: auto; }
.nav-toggle { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font: 600 .86rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--paper); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); }
.site-nav a:hover { color: var(--brass); }
.lang-switch { gap: 0 !important; border-left: 1px solid var(--rule-dark); padding-left: 18px !important; }
.lang-switch a { padding-inline: 6px; color: var(--mist); }
.lang-switch a[aria-current="true"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--brass); }

/* With JS: collapsible menu below 960px. Without JS the nav simply wraps. */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px; background: none; border: 0; color: var(--paper); font: 600 .86rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
  .nav-toggle .bars { width: 22px; height: 12px; border-block: 1px solid currentColor; position: relative; }
  .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--burgundy); border-bottom: 1px solid var(--rule-dark); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul:first-child { flex-direction: column; }
  .js .site-nav ul:first-child a { width: 100%; border-bottom: 1px solid var(--rule-dark); min-height: 52px; font-size: 1rem; }
  .js .lang-switch { border-left: 0; padding-left: 0 !important; margin-top: 8px; }
  .site-header .header-inner { position: relative; }
  .site-header { position: sticky; }
}

/* ---------- Duotone (applies to supplied photographs too) ----------
   Put any B/W or colour photo in .duotone and it is rendered burgundy-on-black. */
.duotone { position: relative; background: var(--burgundy); overflow: hidden; isolation: isolate; }
.duotone img.photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.9); mix-blend-mode: luminosity; opacity: .55; }
.duotone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(74,26,28,.15), rgba(56,19,26,.85)); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--burgundy); color: var(--paper); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(74,26,28,.94) 0%, rgba(74,26,28,.72) 55%, rgba(56,19,26,.55) 100%); }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(72px, 14vw, 168px) clamp(96px, 16vw, 200px); display: grid; gap: 28px; }
.hero__logo { width: clamp(150px, 22vw, 230px); }
.hero h1 { font-size: clamp(2.15rem, 6.4vw, 4.8rem); max-width: 17ch; margin: 0; }
.hero h1 span { display: block; }
.hero p { color: var(--mist); max-width: 52ch; margin: 0; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Specialities ---------- */
.spec-grid { display: grid; gap: 0; border-top: 1px solid var(--rule-light); }
.spec { padding: 32px 0; border-bottom: 1px solid var(--rule-light); display: grid; gap: 12px; }
.spec__num { font: 400 italic 2rem/1 var(--f-display); color: var(--brass-ink); }
.spec h3 { margin: 0; }
.spec p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-light); }
  .spec { padding: 40px 36px 44px; border-bottom: 0; align-content: start; }
  .spec + .spec { border-left: 1px solid var(--rule-light); }
  .spec:first-child { padding-left: 0; }
}

/* ---------- Briefing cover (pure HTML/CSS — scales with its container) ---------- */
.cover { container-type: inline-size; display: block; aspect-ratio: 210 / 297; position: relative; text-decoration: none; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 28px -14px rgba(0,0,0,.45); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
a.cover:hover, a.cover:focus-visible { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 26px 40px -16px rgba(0,0,0,.5); }
.cover__inner { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; padding: 7cqi 7cqi 7.5cqi; }
.cover--burgundy { background: var(--burgundy); color: var(--paper); }
.cover--ink { background: var(--ink); color: var(--paper); }
.cover--paper { background: #FBFAF7; color: var(--ink); outline: 1px solid var(--rule-light); outline-offset: -1px; }
.cover__mast { font: 800 21cqi/0.85 var(--f-display); letter-spacing: -.02em; margin: 0; }
.cover--paper .cover__mast { color: var(--burgundy); }
.cover__meta { display: flex; justify-content: space-between; gap: 2cqi; border-block: 1px solid currentColor; margin-top: 3cqi; padding: 1.6cqi 0; font: 600 3.6cqi/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.cover__art { display: grid; place-items: center; min-height: 0; padding: 6cqi 10cqi; color: var(--brass); }
.cover--paper .cover__art { color: var(--burgundy); }
.cover__art svg { width: 100%; max-height: 100%; opacity: .95; }
.cover__art img { width: 100%; height: 100%; object-fit: cover; }
.cover__lead { font: 800 8.2cqi/1.02 var(--f-display); margin: 0 0 3cqi; text-wrap: balance; }
.cover__sec { list-style: none; margin: 0; padding: 2.4cqi 0 0; border-top: 1px solid currentColor; display: grid; gap: 1.2cqi; font: 600 3.3cqi/1.15 var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.cover__sec li { opacity: .9; }

/* ---------- Briefing feature (home) ---------- */
.feature { display: grid; gap: 40px; align-items: start; }
.feature__cover { max-width: 380px; width: 100%; }
.feature__body h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .6em; }
.feature__list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--rule-dark); }
.feature__list li { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 1.05rem; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }

/* ---------- Newsletter form ---------- */
.signup { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--rule-dark); display: grid; gap: 24px; }
.section--paper .signup, .section--paper2 .signup { border-top-color: var(--rule-light); }
.signup h3 { margin: 0 0 .3em; }
.signup form { display: grid; gap: 16px; max-width: 620px; }
.signup .row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup .row input { flex: 1 1 240px; }
@media (min-width: 900px) { .signup { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }

/* ---------- Form controls ---------- */
.field { display: grid; gap: 6px; }
label, .label { font: 600 .82rem/1.2 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.label-note { font-weight: 600; letter-spacing: .08em; text-transform: none; opacity: .85; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: 400 1rem/1.4 var(--f-body); }
.section--burgundy input, .section--burgundy select, .section--burgundy textarea { border-color: var(--mist); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
select option { color: var(--ink); background: var(--paper); }
textarea { min-height: 160px; resize: vertical; }
input::placeholder, textarea::placeholder { color: inherit; opacity: .65; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font: 400 .95rem/1.5 var(--f-body); letter-spacing: 0; text-transform: none; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brass); }
.section--paper .check input { accent-color: var(--burgundy); }
.form-note { font-size: .9rem; margin: 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Founders ---------- */
.founders { display: grid; gap: 40px; }
.founder { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; }
.founder img { width: 112px; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }
.founder h3 { margin: 0 0 .25em; }
.founder .role { font: 600 .8rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 .4em; }
.founder p { margin: 0; }
@media (min-width: 760px) { .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } .founder { grid-template-columns: 152px 1fr; } .founder img { width: 152px; } }

/* ---------- Contact CTA ---------- */
.cta { display: grid; gap: 28px; }
.cta h2 { max-width: 22ch; }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 1.05rem; }
.cta__contacts a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--burgundy); color: var(--paper); padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px); }
.page-head h1 { max-width: 20ch; margin-bottom: .4em; }
.page-head p { color: var(--mist); }

/* ---------- Services ---------- */
.service { display: grid; gap: 28px; padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule-light); scroll-margin-top: 80px; }
.service:first-child { border-top: 0; }
.service__num { font: 400 italic clamp(2.6rem, 6vw, 4rem)/1 var(--f-display); color: var(--brass-ink); }
.service h2 { margin: 0; }
.service__cols { display: grid; gap: 28px; }
.service__cols h3 { font: 600 .82rem/1.2 var(--f-label); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; padding-top: 14px; border-top: 1px solid var(--ink); }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li { padding: 7px 0; border-bottom: 1px solid var(--rule-light); }
@media (min-width: 900px) {
  .service { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 72px; }
  .service__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
}

/* ---------- Briefing archive: a newsstand ---------- */
.latest { display: grid; gap: 40px; align-items: center; }
.latest .cover { max-width: 420px; }
@media (min-width: 900px) { .latest { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.stand { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 18px; }
@media (min-width: 640px) { .stand { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; } }
@media (min-width: 1040px) { .stand { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 40px; } }
.stand li { display: grid; gap: 14px; align-content: start; position: relative; }
/* the "shelf": a soft ledge shadow beneath each cover */
.stand .shelf { height: 6px; margin-top: -8px; background: linear-gradient(180deg, rgba(22,20,20,.16), rgba(22,20,20,0)); }
.stand .cap { display: grid; gap: 4px; }
.stand .cap .no { font: 600 .78rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.stand .cap a { font: 800 1.05rem/1.2 var(--f-display); text-decoration: none; }
.stand .cap a:hover { text-decoration: underline; }
.about-note { display: grid; gap: 16px; padding: 32px 0 0; border-top: 1px solid var(--rule-light); margin-top: 72px; }
@media (min-width: 900px) { .about-note { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; } }

/* ---------- Issue page ---------- */
.issue { display: grid; gap: 48px; }
.issue .cover { max-width: 460px; }
.issue__toc { list-style: none; padding: 0; margin: 0 0 32px; counter-reset: toc; border-top: 1px solid var(--ink); }
.issue__toc li { counter-increment: toc; padding: 16px 0; border-bottom: 1px solid var(--rule-light); display: grid; grid-template-columns: 2.4em 1fr; font: 800 1.2rem/1.25 var(--f-display); }
.issue__toc li::before { content: counter(toc, decimal-leading-zero); font: 600 .85rem/1.6 var(--f-label); letter-spacing: .12em; color: var(--brass-ink); }
.issue__actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.tag { display: inline-block; font: 600 .75rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; border: 1px dashed currentColor; padding: 6px 8px; }
@media (min-width: 900px) { .issue { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }

/* ---------- Insights ---------- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.list li { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--rule-light); }
.list .meta { font: 600 .8rem/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.list a.title { font: 800 1.3rem/1.2 var(--f-display); text-decoration: none; }
.list a.title:hover { text-decoration: underline; }
@media (min-width: 900px) { .list li { grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; } }
.podcast { display: grid; gap: 40px; }
.podcast__mark { font: 800 clamp(2.4rem, 7vw, 4.6rem)/0.95 var(--f-display); margin: 0 0 .3em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.embed { border: 1px solid var(--rule-dark); padding: 24px; display: grid; gap: 14px; justify-items: start; min-height: 180px; align-content: center; }
.embed iframe { width: 100%; border: 0; }
@media (min-width: 900px) { .podcast { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

/* ---------- About ---------- */
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; } }
.method { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-dark); counter-reset: m; }
.method li { counter-increment: m; padding: 24px 0; border-bottom: 1px solid var(--rule-dark); display: grid; gap: 6px; }
.method li h3 { margin: 0; }
.method li h3::before { content: counter(m, upper-roman) ". "; color: var(--brass); font-style: italic; font-weight: 400; }
@media (min-width: 900px) { .method { grid-template-columns: repeat(3, minmax(0, 1fr)); } .method li { padding: 32px 32px 32px 0; } .method li + li { padding-left: 32px; border-left: 1px solid var(--rule-dark); } }
.langs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.langs li { font: 800 1.6rem/1 var(--f-display); padding: 14px 18px; border: 1px solid var(--rule-light); }
.profile { display: grid; gap: 24px; padding-block: 48px; border-top: 1px solid var(--rule-light); }
.profile img { width: 100%; max-width: 320px; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }
.profile .role { font: 600 .82rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
@media (min-width: 760px) { .profile { grid-template-columns: 280px 1fr; gap: 56px; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 56px; }
.contact form { display: grid; gap: 20px; }
.contact .grid2 { display: grid; gap: 20px; }
@media (min-width: 640px) { .contact .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; } }
.details { display: grid; gap: 24px; align-content: start; }
.details dl { margin: 0; display: grid; gap: 18px; }
.details dt { font: 600 .8rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.details dd { margin: 4px 0 0; font-size: 1.05rem; }
.map { position: relative; aspect-ratio: 4 / 3; background: var(--burgundy); color: var(--paper); display: grid; place-items: center; text-align: center; padding: 24px; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map .embed-note { color: var(--mist); font-size: .9rem; max-width: 34ch; margin: 12px auto 0; }

/* ---------- Prose (legal pages) ---------- */
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.6em; }
.prose .draft { font-family: var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 72px 32px; font-size: .98rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-grid h2 { font: 600 .8rem/1.2 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid address { font-style: normal; }
.site-footer .brand img { width: 128px; }
.site-footer .muted { color: var(--mist); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: .88rem; color: var(--mist); }
.footer-signup form { display: grid; gap: 12px; }
.footer-signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-signup input[type="email"] { flex: 1 1 180px; border-color: var(--mist); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 48px; } }

/* ---------- Cookie banner (accept and decline are equal in weight) ---------- */
.cookie { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; max-width: 560px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 20px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); display: grid; gap: 14px; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.3rem; margin: 0; }
.cookie p { margin: 0; font-size: .95rem; }
.cookie .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie .actions .btn { width: 100%; }
@media (min-width: 640px) { .cookie { left: 24px; bottom: 24px; padding: 24px; } }

/* ---------- Motion: gentle fades, only where supported and allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
  .hero__inner > * { animation: fade .9s var(--ease) both; }
  .hero__inner > *:nth-child(2) { animation-delay: .08s; } .hero__inner > *:nth-child(3) { animation-delay: .16s; } .hero__inner > *:nth-child(4) { animation-delay: .24s; } .hero__inner > *:nth-child(5) { animation-delay: .32s; }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media print { .site-header, .cookie, .site-footer form, .nav-toggle { display: none !important; } body { background: #fff; } }
