/* ------------------------------------------------------------------
   Ben Markoch · site styles
   Type:    Albert Sans (display, nav, labels, lists), Source Serif 4 (running text), Permanent Marker (captions)
   Palette: pine greens as the ground, warm cream paper for polaroids, one ember accent
------------------------------------------------------------------- */
:root {
  --font: "Source Serif 4", "Iowan Old Style", Georgia, serif;   /* running text */
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;   /* interface: nav, buttons, labels, lists, stats */
  --display: var(--sans);
  --hand: "Permanent Marker", "Comic Sans MS", cursive;

  --ink: #10231c;        /* page ground, same as the illustration's foreground */
  --ink-deep: #0b1913;   /* deeper band */
  --ink-2: #1a312a;      /* raised surfaces */
  --line: rgba(255,255,255,.12);
  --text: #eef1ec;
  --text-2: #c4cfc8;
  --muted: #86968e;
  --mint: #9acbb9;
  --ember: #e59a55;
  --paper: #f5f0e6;
  --paper-ink: #1b2a24;

  --wrap: 1180px;
  --gutter: 32px;

  /* screen-print shading: a darker paper-tone stipple that fades in from the edge of paper objects */
  --shade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .44  0 0 0 0 .36  0 0 0 0 .26  0 0 0 -1.84 1.43'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* where the shade sits: dense at the bottom-right edge, dissolving toward the centre */
  --shade-mask: linear-gradient(to top left, #000 0%, rgba(0,0,0,.8) 19%, transparent 54%);
}

/* Page-to-page transitions (browsers that support cross-document view transitions; others just navigate).
   The painted header and the nav keep their names across pages, so leaving the Work page for a case
   study shrinks the painting into the slim strip at the top, and coming back grows it again. */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
.scene { view-transition-name: trail; }
::view-transition-group(trail) { animation-duration: .75s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
::view-transition-old(trail), ::view-transition-new(trail) { height: 100%; width: 100%; object-fit: cover; overflow: hidden; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--font); font-size: 17.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: 104px; }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--mint); margin: 0 0 18px;
}
.lede { font-size: clamp(1.15rem, 1.55vw, 1.35rem); line-height: 1.55; color: var(--text); max-width: 42em; }
.muted { color: var(--muted); }
.textlink { font-weight: 500; color: var(--mint); border-bottom: 1px solid transparent; }
.textlink:hover { border-color: currentColor; }

.btn {
  position: relative; display: inline-block; padding: 12px 22px; border-radius: 3px; font-family: var(--display); font-weight: 600; font-size: 15px;
  background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper);
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
/* screen-print shade on a paper button: paper on ::after, grain shading on ::before, both under the label */
.print-shadow { position: relative; isolation: isolate; background: transparent !important; border-color: transparent !important; }
.print-shadow::after { content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; background: var(--paper); }
.print-shadow::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--shade); -webkit-mask: var(--shade-mask); mask: var(--shade-mask); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------------- Masthead: nav bar + illustrated scene ---------------- */
/* The nav is a solid band whose colour is sampled from the top of the current illustration
   (site.js sets --nav-bg / --nav-ink), so the bar and the sky read as one surface. */
.masthead { position: relative; opacity: 0; transition: opacity .6s ease; }
.masthead.is-ready, .vt-arrive .masthead { opacity: 1; }
.vt-arrive .masthead { transition: none; }
/* sky colours per page, measured from the top strip of each illustration (tools/prepare-scenes.py output),
   so the bar is right on the very first paint; site.js only switches the page attribute */
:root, :root[data-scene="home"] { --nav-bg: rgb(99, 170, 212); --nav-ink: #10231c; }
:root[data-scene="work"]  { --nav-bg: rgb(107, 174, 210); --nav-ink: #10231c; }
:root[data-scene="about"] { --nav-bg: rgb(104, 171, 205); --nav-ink: #10231c; }
.nav { position: relative; z-index: 6; background: var(--nav-bg); color: var(--nav-ink); transition: background .9s ease, color .9s ease; }  /* above the scene so the language menu can hang over it */
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter); width: min(100%, calc(var(--wrap) + 2 * var(--gutter))); margin-inline: auto;
}
.wordmark { display: inline-flex; align-items: center; color: inherit; }
.wordmark svg { width: 165px; height: 21px; display: block; fill: currentColor; }  /* 6838:869, height × 7.87 */
.navlinks { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.navlinks a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .18s; }
.navlinks a[aria-current="page"] { border-color: currentColor; }
.navlinks a:hover { border-color: currentColor; }
.navlinks .btn-nav { padding: 11px 20px; border-bottom: 0; }
.navlinks .btn-nav:hover { transform: none; }
/* language control: a code that opens a small paper menu */
.lang { position: relative; }
.langbtn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; letter-spacing: .04em; padding: 6px 0; cursor: pointer; border-bottom: 2px solid transparent; transition: border-color .18s; }
.langbtn:hover, .lang.is-open .langbtn { border-color: currentColor; }
.langbtn svg { transition: transform .18s ease; }
.lang.is-open .langbtn svg { transform: rotate(180deg); }
.langmenu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 140px; display: none;
  list-style: none; margin: 0; padding: 6px; border-radius: 3px; color: var(--paper-ink); isolation: isolate;
}
.langmenu::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--paper); }
.langmenu::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--shade); -webkit-mask: var(--shade-mask); mask: var(--shade-mask); }
.lang.is-open .langmenu { display: block; }
.langmenu li { display: block; }
.navlinks .langmenu a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 0; border-radius: 3px; font-weight: 500; }
.navlinks .langmenu a:hover { background: rgba(16,35,28,.08); }
.navlinks .langmenu a[aria-current] { font-weight: 700; }
.navlinks .langmenu a[aria-current]::after { content: "✓"; }
.menubtn { display: none; background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; }
.menubtn svg line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-box: view-box; transform-origin: 12px 12px; transition: transform .22s ease; }
.menubtn[aria-expanded="true"] .mi-top { transform: rotate(45deg) translateY(4px); }
.menubtn[aria-expanded="true"] .mi-bot { transform: rotate(-45deg) translateY(-4px); }

.scene { position: relative; overflow: hidden; background: var(--nav-bg); transition: background .9s ease; }
/* soft edge where the art meets the page */
.scene::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fade, 34%); pointer-events: none; z-index: 4;
  /* eased stops so the art settles into the page instead of hitting a line */
  background: linear-gradient(to top, rgb(16 35 28) 0%, rgb(16 35 28 / .86) 16%, rgb(16 35 28 / .55) 40%, rgb(16 35 28 / .22) 68%, rgb(16 35 28 / 0) 100%);
}
/* One base layer per page (full image) and one front layer (sky cut out) that stands in front of the title.
   site.js assigns the image for the current period (morning / midday / evening / night). */
/* page to page the art dissolves through a blur: the old scene softens out, the new one sharpens in */
.art {
  position: absolute; inset: 0; background: center bottom / cover no-repeat; pointer-events: none;
  opacity: 0; filter: blur(18px); visibility: hidden;
  transition: opacity .9s ease, filter 1.1s ease, visibility 0s linear 1.1s;
}
.art.is-active { opacity: 1; filter: blur(0); visibility: visible; transition-delay: 0s, 0s, 0s; }

.scene-titles { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.art-front { z-index: 3; }
.scene-title {
  position: absolute; left: 0; margin: 0; font-size: clamp(2.2rem, 4.7vw, 7rem); color: var(--title-ink, #fff);
  opacity: 0; transition: opacity .25s ease, color .6s ease; text-wrap: initial;
}
.scene-title.is-active { opacity: 1; }
/* title builds in letter by letter: every character is pre-placed (so line breaks never shift) and
   each one fades and un-blurs in turn, as if condensing out of the air */
.scene-title .typed .w { display: inline-block; white-space: nowrap; }
.scene-title .typed .w > span { display: inline-block; opacity: 0; filter: blur(7px); transform: translateY(.06em); transition: opacity .7s ease, filter .8s ease, transform .7s ease; }
.scene-title .typed .w > span.on { opacity: 1; filter: blur(0); transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* paragliders: tiny, distant, drifting at the top right of the sky; site.js nudges them on hover */
.gliders { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.glider { position: absolute; display: block; pointer-events: auto; cursor: pointer; will-change: transform; }
.glider::before { content: ""; position: absolute; inset: -14px; }   /* a tappable hit area around the tiny glider */
.glider-body { display: block; transition: transform 1.8s cubic-bezier(.25,.6,.3,1); transform-style: preserve-3d; }
/* click: a wingover into a corkscrew and back to level. It runs on the inner graphic so the body's
   hover lean (an inline transform) is never overridden, which is what caused a jump at the end. */
.glider svg { transform-origin: 50% 50%; }
.glider-body.is-trick svg { animation: trick 1.4s cubic-bezier(.45,.05,.35,1) both; }
@keyframes trick {
  0%   { transform: translateY(0) rotate(0) rotateY(0); }
  25%  { transform: translateY(-9px) rotate(-28deg) rotateY(90deg); }
  55%  { transform: translateY(4px) rotate(-200deg) rotateY(270deg); }
  80%  { transform: translateY(-3px) rotate(-340deg) rotateY(360deg); }
  100% { transform: translateY(0) rotate(-360deg) rotateY(360deg); }
}
.glider svg { display: block; overflow: visible; }
.glider .wing { fill: currentColor; }
.glider .lines { fill: none; stroke: rgb(16 35 28 / .55); stroke-width: .5; }
.glider .pilot { fill: #1b2a24; }
.g1 { top: 16%; right: 22%; width: 26px; color: var(--ember); animation: glide1 19s ease-in-out infinite; }
.g2 { top: 27%; right: 11%; width: 18px; color: #f5f0e6; opacity: .95; animation: glide2 23s ease-in-out infinite; }
.g3 { top: 12%; right: 7%; width: 14px; color: #d94f3d; opacity: .9; animation: glide3 27s ease-in-out infinite; }
.glider svg { width: 100%; height: auto; }
.g4 { top: 21%; right: 31%; width: 15px; color: #f5f0e6; opacity: .9; animation: glide4 25s ease-in-out infinite; }
.g5 { top: 8%; right: 15%; width: 11px; color: var(--mint); opacity: .85; animation: glide5 29s ease-in-out infinite; }
.g6 { top: 33%; right: 25%; width: 20px; color: var(--ember); opacity: .95; animation: glide6 21s ease-in-out infinite; }
@keyframes glide1 { 0% { transform: translate(0, 0) rotate(-2deg); } 30% { transform: translate(-22px, 10px) rotate(3deg); } 60% { transform: translate(-40px, -4px) rotate(-1deg); } 100% { transform: translate(0, 0) rotate(-2deg); } }
@keyframes glide2 { 0% { transform: translate(0, 0) rotate(2deg); } 40% { transform: translate(-30px, -8px) rotate(-3deg); } 75% { transform: translate(-12px, 9px) rotate(2deg); } 100% { transform: translate(0, 0) rotate(2deg); } }
@keyframes glide3 { 0% { transform: translate(0, 0) rotate(0deg); } 35% { transform: translate(-18px, 12px) rotate(-3deg); } 70% { transform: translate(-34px, 2px) rotate(3deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
@keyframes glide4 { 0% { transform: translate(0, 0) rotate(1deg); } 45% { transform: translate(-26px, 8px) rotate(-2deg); } 80% { transform: translate(-10px, -6px) rotate(2deg); } 100% { transform: translate(0, 0) rotate(1deg); } }
@keyframes glide5 { 0% { transform: translate(0, 0) rotate(-1deg); } 30% { transform: translate(-14px, 10px) rotate(2deg); } 65% { transform: translate(-36px, 4px) rotate(-2deg); } 100% { transform: translate(0, 0) rotate(-1deg); } }
@keyframes glide6 { 0% { transform: translate(0, 0) rotate(0deg); } 40% { transform: translate(-20px, -10px) rotate(3deg); } 70% { transform: translate(-44px, 6px) rotate(-2deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .glider { animation: none; } .scene-title .typed .w > span { transition: none; } }

/* Layout "sky": the header is the 3:1 art plus a band of flat sky above it (the nav colour is the
   sampled sky, so it extends seamlessly); the title lives in that sky and the peaks stand in front of it. */
/* Every scene image is prepared at 4:1 (tools/prepare-scenes.py) and sits at the bottom of a header
   that is the same height on every page. The nav's solid colour continues down as a scrim that fades
   into the top of the painting, so nothing needs to be invented above the image. */
.scene[data-layout="sky"] { height: calc(100vw / 2.72); }
.scene-title[data-scene="home"]  { max-width: 15ch; }   /* "I build experiences," / "brands, and teams" / "people trust." */
.scene-title[data-scene="work"]  { max-width: 19ch; }
.scene-title[data-scene="about"] { max-width: 12ch; }
/* French and Spanish titles run longer; widen them so each still breaks into three lines */
html[lang="fr"] .scene-title[data-scene="home"] { max-width: 22ch; }
html[lang="es"] .scene-title[data-scene="home"] { max-width: 19ch; }
html[lang="fr"] .scene-title[data-scene="work"], html[lang="es"] .scene-title[data-scene="work"]   { max-width: 22ch; }
html[lang="fr"] .scene-title[data-scene="about"], html[lang="es"] .scene-title[data-scene="about"] { max-width: 16ch; }
.scene[data-layout="sky"] .art { background-size: 100% auto; background-position: center bottom; }
/* Per page framing so the main summits sit on the same line (Home is the reference, summit ≈ 31% down
   its art). Work zooms in from the bottom-right corner so the chalet cut by the left edge is off screen
   and drops its higher peaks; About is a vertically compressed render, so it is stretched a little and
   lifted. Base and front layers share the transform, so the title still slips behind the peaks. */
.scene[data-layout="sky"] .art[data-scene="home"]  { transform-origin: center bottom; transform: translateY(3.8vw) scale(1, 1.22); }   /* sun renders ~1.27:1 wide; 1.22 makes it round */
.scene[data-layout="sky"] .art[data-scene="work"]  { transform-origin: right bottom; transform: translateY(8.8vw) scale(1.08, 1.32); }
.scene[data-layout="sky"] .art[data-scene="about"] { transform-origin: center bottom; transform: translateY(3vw) scale(1.12, 1.22); }   /* pushes the platform wall below the fade */
.scene[data-layout="sky"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--nav-bg) 0%, var(--nav-bg) 30%, transparent 100%);
}
.scene[data-layout="sky"] .scene-titles { top: clamp(56px, 5vw, 120px); }
.scene[data-layout="sky"] .scene-title { top: 0; color: var(--title-ink, var(--nav-ink, #fff)); }

/* Layout "foot": the art fills the header and the title sits low, over the foreground darkening into the page. */
.scene[data-layout="foot"] { height: calc(100vw / 2.72); --fade: 66%; }
.scene[data-layout="foot"] .art-front { display: none; }
.scene[data-layout="foot"] .scene-titles { bottom: 36px; z-index: 5; }
.scene[data-layout="foot"] .scene-title { bottom: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) { .art, .scene-title { transition: none; } }

/* ---------------- Views ---------------- */
.view[hidden] { display: none; }
.view { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero { padding-block: 80px 32px; }
.view[data-view="work"] .hero { padding-top: 120px; }
.lede-centered { margin-inline: auto; text-align: center; max-width: 34em; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.5; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 96px; align-items: center; }
.hero-lead .lede { margin: 0; }
/* tickets: the two ways into the site, as paper stubs (same paper and corner radius as the polaroids) */
.signposts { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.signposts li { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.signposts li:nth-child(odd) { transform: rotate(-1.3deg); }
.signposts li:nth-child(even) { transform: rotate(1.1deg); }
.signposts li:hover { transform: rotate(0); }   /* straightens on hover, like the polaroids */
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr 88px; color: var(--paper-ink);
  background: var(--paper); border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 1px 3px rgba(0,0,0,.25);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.ticket:hover { transform: translateY(-4px); }
.ticket .shade { position: absolute; inset: 0; z-index: 0; border-radius: 3px; background: var(--shade); -webkit-mask: var(--shade-mask); mask: var(--shade-mask); pointer-events: none; }
.ticket-main, .ticket-stub { position: relative; z-index: 1; }
/* the notches where the stub is torn off */
.ticket::before, .ticket::after { content: ""; position: absolute; right: 88px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transform: translateX(50%); }
.ticket::before { top: -9px; } .ticket::after { bottom: -9px; }
.ticket-main { padding: 20px 22px 20px 24px; }
.ticket-stub {
  display: grid; place-items: center; border-left: 2px dashed rgba(27,42,36,.28); padding: 12px 0;
}
.ticket .lbl { display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6f7e77; margin-bottom: 8px; }
.ticket .ttl { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 6px; }
.ticket .sub { display: block; color: #4f5f58; font-size: 15px; line-height: 1.45; }
.ticket .arrow { width: 40px; height: 40px; border-radius: 3px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 19px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ticket:hover .arrow { transform: translateX(3px); }

.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; margin-bottom: 56px; }
.section-head h2 { margin: 0; }


/* ---------------- Polaroids ---------------- */
.polaroids { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.polaroids-wide { grid-template-columns: repeat(2, 1fr); gap: 80px 64px; }
.polaroid > a {
  display: grid; grid-template-columns: minmax(0, 1fr) fit-content(70%); column-gap: 14px; align-items: end; color: var(--paper-ink);
  padding: 14px 14px 18px; position: relative; border-radius: 3px; isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
/* the bottom band: caption left, meta right; the meta keeps its own line breaks and the caption gives way (ellipsis) */
.polaroid > a::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 3px; background: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 1px 3px rgba(0,0,0,.25); }
.polaroid > a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px; background: var(--shade); -webkit-mask: var(--shade-mask); mask: var(--shade-mask); }
.tilt-l > a { transform: rotate(-1.6deg); }
.tilt-r > a { transform: rotate(1.4deg); }
.polaroid > a:hover { transform: rotate(0) translateY(-6px); }
.polaroid .photo { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dcd6c8; margin-bottom: 18px; }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .caption {
  min-width: 0; padding: 0 2px 2px; font-family: var(--hand); font-size: 18px; line-height: 1;
  color: #22332c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.polaroid .meta {
  padding-right: 2px; min-height: 27px; font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: #7d8a84; text-align: right; line-height: 1.35;   /* its column is fit-content(70%): one line where it fits, wraps only on narrow cards; the caption keeps the rest */
}
.polaroid .desc, .polaroid .tags { grid-column: 1 / -1; }
.polaroid .desc { margin: 32px 8px 10px; color: var(--text-2); }
.polaroid .tags { margin: 0 8px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.polaroids-wide .caption { font-size: 21px; }

/* ---------------- Bands, splits, markers ---------------- */
.band { padding-block: 112px; }
.band-deep { background: var(--ink-deep); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.markers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; }
.markers li { border-left: 2px solid var(--mint); padding-left: 14px; }
.markers .num { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.markers .lbl { display: block; font-family: var(--sans); font-size: 14px; color: var(--text-2); line-height: 1.4; }

.about-intro { padding-top: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.about-intro .portrait { max-width: 600px; }
/* how I lead */
.lead-block { padding-top: 24px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 64px; }
.principles li { display: grid; grid-template-columns: 40px 1fr; gap: 0 4px; align-items: baseline; }
.principles .n { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .08em; color: var(--mint); }
.principles h3 { font-size: 1.3rem; margin: 0 0 .45em; }
.principles p { grid-column: 2; margin: 0; color: var(--text-2); font-size: 16.5px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; gap: 32px; } }
.about-intro .lede { font-family: var(--font); font-weight: 400; font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1.32; letter-spacing: -.005em; color: var(--text); margin-bottom: 22px; }
.about-intro p:not(.lede) { color: var(--text-2); }
.about-cta { margin-top: 28px; }
.cols-3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 64px; }
.plain { list-style: none; margin: 0 0 44px; padding: 0; color: var(--text-2); font-family: var(--sans); font-size: 16px; }
.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; font-family: var(--sans); }
.timeline li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--mint); letter-spacing: .06em; }
.timeline strong { font-weight: 600; }
.timeline span:last-child { color: var(--text-2); font-size: 15px; }

.quote blockquote { margin: 0; max-width: 60em; }
.quote p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; letter-spacing: -.005em; }
.quote footer { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 14px; color: var(--text-2); margin-top: 28px; }
.quote footer img { border-radius: 50%; width: 44px; height: 44px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding-block: 80px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.wordmark-lg { margin: 0 0 12px; }
.wordmark-lg svg { width: 150px; height: 19px; display: block; fill: currentColor; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-family: var(--sans); }
.contact .eyebrow { display: block; margin-bottom: 4px; font-size: 12px; }
.contact a { border-bottom: 1px solid transparent; } .contact a:hover { border-color: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; font-family: var(--sans); font-size: 13px; color: var(--text-2); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
}
@media (max-width: 900px) {
  .polaroids { grid-template-columns: repeat(2, 1fr); }
  .split, .cols-3, .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  /* phones: same composition as desktop, scaled down: a band of sky under the nav holds the title,
     the art sits below it at its natural aspect (the middle third of the painting) with the peaks in front */
  .scene[data-layout="sky"] { height: clamp(290px, 88vw, 400px); --fade: 36%; }
  .scene[data-layout="sky"] .art { background-size: auto 58%; background-position: center bottom; transform: none; }
  .scene[data-layout="sky"] .scene-titles { top: 10%; }   /* centred in the band of sky above the peaks */
  .scene[data-layout="sky"] .scene-title { font-size: 2.2rem; max-width: none; right: 0; }
  html[lang="fr"] .scene[data-layout="sky"] .scene-title, html[lang="es"] .scene[data-layout="sky"] .scene-title { font-size: 1.95rem; }   /* French runs longer: keep it to three or four lines above the peaks */
  .scene[data-layout="foot"] { height: clamp(300px, 88vw, 420px); --fade: 60%; }
  .scene[data-layout="foot"] .scene-titles { bottom: 28px; }
  .g1 { top: 14%; right: 16%; width: 18px; } .g2 { top: 24%; right: 6%; width: 13px; } .g3, .g4, .g5 { display: none; } .g6 { top: 9%; right: 34%; width: 12px; }
  .section { padding-block: 64px; }
  .band { padding-block: 72px; }
  .hero { padding-block: 56px 24px; }
  .polaroids, .polaroids-wide { grid-template-columns: 1fr; gap: 36px; }
  .polaroid > a { max-width: 420px; grid-template-columns: minmax(0, 1fr) fit-content(58%); }   /* narrower cards: the meta wraps sooner so the caption stays readable */
  .polaroid .caption { font-size: 16px; }
  .section-head { grid-template-columns: 1fr; }
  .markers { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .menubtn { display: block; }
  .nav { position: relative; z-index: 6; }
  .wordmark, .menubtn { position: relative; z-index: 21; }
  .nav.is-open .menubtn, .nav.is-open .wordmark { color: var(--text); }
  .navlinks {
    position: fixed; inset: 0; z-index: 20; display: none;
    flex-direction: column; justify-content: center; align-items: stretch; gap: 0;
    background: var(--ink); color: var(--text); padding: 96px var(--gutter) 48px;
  }
  .nav.is-open .navlinks { display: flex; }
  .navlinks li { width: 100%; }
  .navlinks a { display: block; padding: 14px 0; border: 0; font-size: 2.6rem; line-height: 1.1; letter-spacing: -.01em; }
  .navlinks a[aria-current="page"] { color: var(--mint); }
  .navlinks .cta { margin-top: 32px; }
  .navlinks .btn-nav { display: inline-block; font-size: 1rem; padding: 14px 24px; border-bottom: 0; }
  /* in the phone menu the language control is a plain row of the two languages */
  .langbtn { display: none; }
  .lang { margin-top: 24px; }
  .langmenu, .lang.is-open .langmenu { position: static; display: flex; gap: 20px; min-width: 0; padding: 0; color: inherit; isolation: auto; }
  .langmenu::before, .langmenu::after { display: none; }
  .navlinks .langmenu a { display: inline-block; padding: 6px 0; font-size: 1rem; font-weight: 600; border-bottom: 2px solid transparent; border-radius: 0; opacity: .7; }
  .navlinks .langmenu a[aria-current] { opacity: 1; border-color: var(--mint); }
  .navlinks .langmenu a[aria-current]::after { content: none; }
  .navlinks .langmenu a:hover { background: none; }
}
