/* PALS — People Animals Land & Sea
   Layout concept: a field portfolio. Photographs open from framed prints to full bleed as you scroll;
   a sticky map narrates where the work is; type is chunky like the hand-cut logo, captions read like map labels. */
:root {
  /* ground and ink */
  --salt: #f4f6f3;          /* page ground: sea-salt white, cool rather than cream */
  --salt-raised: #ffffff;   /* cards, form fields */
  --line: #d6ddd7;          /* hairlines */
  --ink: #2c3e50;           /* PALS navy: text and the single-ink logo */
  --ink-muted: #526170;     /* captions, metadata */
  /* the four realms, one per letter of the logo */
  --sun: #f3d312;           /* People. Also the action colour (with ink text) */
  --canopy: #2f7d4f;        /* Animals */
  --earth: #4e3b31;         /* Land. Dark grounds */
  --sea: #54a4df;           /* Sea. Bright grounds (with deep text) */
  --on-sea: #13202c;
  --on-sun: #13202c;         /* text on sun, both themes */
  --on-earth: #f4f6f3;
  --tide: #1c6aa0;          /* links and focus */
  --scrim: rgba(12, 20, 28, 0.62);
  --map-land: #e2dcd3;        /* land on maps */
  --map-edge: #b8a99c;
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px; --space-7: 104px; --space-8: 168px;
  --radius-print: 3px; --radius-sm: 8px; --radius-md: 16px; --radius-full: 999px;
  --dur-quick: 150ms; --dur-base: 240ms; --dur-slow: 400ms; --dur-scene: 700ms;
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.18, 1.25, 0.4, 1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --salt: #0f1a24; --salt-raised: #172532; --line: #2a3b4a; --ink: #eef2ee; --ink-muted: #a9b6bf;
    --sun: #f3d312; --canopy: #5dbb83; --earth: #664d3d; --sea: #6fb6ea; --on-sea: #0b1620; --on-earth: #f4f6f3;
    --tide: #8cc6f0; --scrim: rgba(5, 10, 16, 0.7); --map-land: #3a4652; --map-edge: #566472; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --salt: #0f1a24; --salt-raised: #172532; --line: #2a3b4a; --ink: #eef2ee; --ink-muted: #a9b6bf;
  --sun: #f3d312; --canopy: #5dbb83; --earth: #664d3d; --sea: #6fb6ea; --on-sea: #0b1620; --on-earth: #f4f6f3;
  --tide: #8cc6f0; --scrim: rgba(5, 10, 16, 0.7); --map-land: #3a4652; --map-edge: #566472; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--salt); color: var(--ink); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--salt); }
img { max-width: 100%; display: block; }
a { color: var(--tide); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; margin: 0; font-variation-settings: "wdth" 85; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #13202c; padding: 8px 14px; z-index: 100; font-weight: 700; border-radius: var(--radius-sm); }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ——— type scale ——— */
.t-hero { font-size: clamp(56px, 11vw, 168px); line-height: 0.88; letter-spacing: -0.035em; }
.t-title { font-size: clamp(40px, 6.4vw, 96px); line-height: 0.92; }
.t-sub { font-size: clamp(28px, 3.4vw, 44px); line-height: 1; }
.t-head { font-family: var(--font-sans); font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: normal; }
.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 34em; }
.label { font: 800 12px/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; }
.coord { font: 400 11.5px/1.5 var(--font-mono); letter-spacing: 0.02em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }
.prose { max-width: 38em; display: grid; gap: 1em; }

/* ——— header ——— */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--salt) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur-base); }
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: var(--space-4); min-height: 68px; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.bar-logo { display: block; width: 58px; color: var(--ink); flex: none; }
.bar-logo svg { width: 100%; height: auto; display: block; }
.nav { display: flex; gap: var(--space-4); margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: currentColor; transition: right var(--dur-base) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: 10px 18px; color: var(--on-sun); }
.nav .btn::after { display: none; }
.menu-toggle { display: none; margin-left: auto; font: 700 14px var(--font-sans); background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius-full); padding: 8px 16px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--salt); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 20px var(--gutter); }
  .nav a { font-size: 20px; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; }
  .bar.is-open .nav { display: flex; }
}

/* ——— buttons ——— */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; padding: 16px 24px; border-radius: var(--radius-full); background: var(--sun); color: var(--on-sun); border: 2px solid var(--sun); transition: transform var(--dur-base) var(--ease-spring), background var(--dur-base); }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-arrow::after { content: "→"; font-weight: 700; transition: transform var(--dur-base) var(--ease-spring); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ——— hero ——— */
.hero { padding-block: clamp(32px, 6vw, 88px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero-logo { color: var(--ink); width: min(100%, 520px); }
.hero-copy { display: grid; gap: var(--space-4); padding-bottom: 8px; min-width: 0; }
.hero-realms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero-realms li { font: 800 12px/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 13px 9px 11px; border-radius: var(--radius-full); border: 1.5px solid var(--line); display: inline-flex; gap: 8px; align-items: center; }
.hero-realms li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { width: min(78%, 360px); } }

/* ——— the frame that opens (signature move) ——— */
.opening { position: relative; height: 170vh; }
.opening-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.opening-frame { position: absolute; inset: 0; clip-path: inset(14% 18% 14% 18% round 6px); }
.opening-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.opening-cap { position: absolute; left: var(--gutter); right: var(--gutter-r); bottom: max(24px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.opening-cap .coord { color: #fff; }
.opening-words { position: relative; z-index: 2; color: #fff; text-align: center; padding-inline: 16px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .opening-frame { animation: frame-open linear both; animation-timeline: --opening; animation-range: contain 0% contain 70%; }
    .opening-frame img { animation: frame-settle linear both; animation-timeline: --opening; animation-range: contain 0% contain 90%; }
    .opening { view-timeline: --opening block; }
    .opening-words, .opening-cap { animation: words-in linear both; animation-timeline: --opening; animation-range: contain 30% contain 70%; }
  }
}
@keyframes frame-open { to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes frame-settle { to { transform: scale(1); } }
@keyframes words-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js-fallback .opening { height: auto; }
.js-fallback .opening-sticky { position: relative; height: 80vh; }
.js-fallback .opening-frame { clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  .opening { height: auto; }
  .opening-sticky { position: relative; height: 80vh; }
  .opening-frame { clip-path: none; }
  .opening-frame img { transform: none; }
}

/* ——— sections ——— */
.section { padding-block: clamp(64px, 9vw, 136px); }
.section-head { display: grid; gap: var(--space-3); margin-bottom: clamp(32px, 5vw, 64px); max-width: 52em; }
.band-sea { background: var(--sea); color: var(--on-sea); }
.band-sea .coord, .band-sea .muted { color: var(--on-sea); }
.band-sea a { color: var(--on-sea); }
.band-earth { background: var(--earth); color: var(--on-earth); }
.band-earth .coord, .band-earth .muted { color: color-mix(in srgb, var(--on-earth) 80%, transparent); }
.band-earth a { color: var(--sun); }
.band-earth .btn-ghost { color: var(--on-earth); }
.band-earth :focus-visible { outline-color: var(--sun); }

/* manifesto: words light up as they pass */
.manifesto { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.02em; max-width: 20em; font-variation-settings: "wdth" 90; }
.manifesto .w { transition: opacity var(--dur-slow); }
.manifesto .realm { color: var(--c); }
.band-sea .manifesto .realm { color: var(--on-sea); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 0.1em; text-underline-offset: 0.12em; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .manifesto .w { animation: word-lit linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}
@keyframes word-lit { from { opacity: 0.18; } to { opacity: 1; } }

/* realm chapters: photo + statement */
.realms { display: grid; gap: clamp(72px, 10vw, 160px); }
.realm-ch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.realm-ch .print { grid-column: 1 / span 8; }
.realm-ch .realm-text { grid-column: 9 / span 4; display: grid; gap: var(--space-3); padding-bottom: 6px; min-width: 0; }
.realm-ch:nth-child(even) .print { grid-column: 5 / span 8; grid-row: 1; }
.realm-ch:nth-child(even) .realm-text { grid-column: 1 / span 4; grid-row: 1; }
.realm-letter { font-family: var(--font-display); font-weight: 800; font-size: clamp(88px, 12vw, 180px); line-height: 0.8; color: var(--c); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; font-variation-settings: "wdth" 75; }
.band-earth .realm-letter { color: var(--c-on-earth, var(--c)); }
@media (max-width: 820px) {
  .realm-ch .print, .realm-ch:nth-child(even) .print { grid-column: 1 / -1; grid-row: auto; }
  .realm-ch .realm-text, .realm-ch:nth-child(even) .realm-text { grid-column: 1 / -1; grid-row: auto; }
}

/* a print: a framed photograph whose frame opens a little as it scrolls in */
.print { margin: 0; display: grid; gap: 10px; min-width: 0; }
.print-frame { position: relative; overflow: hidden; border-radius: var(--radius-print); background: var(--line); aspect-ratio: var(--ar, 3 / 2); max-width: 100%; }
.print-frame img { width: 100%; height: 100%; object-fit: cover; }
.print figcaption { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.print figcaption b { color: var(--ink); font-weight: 700; }
.band-earth .print figcaption, .band-earth .print figcaption b { color: var(--on-earth); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .print-frame { animation: print-open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .print-frame img { animation: print-settle linear both; animation-timeline: view(); animation-range: entry 0% exit 0%; }
  }
}
@keyframes print-open { from { clip-path: inset(9% 7% 9% 7%); } to { clip-path: inset(0 0 0 0); } }
@keyframes print-settle { from { transform: scale(1.14) translateY(-3%); } to { transform: scale(1.02) translateY(2%); } }

/* pillars: stacking cards */
.pillars { display: grid; gap: var(--space-4); }
.pillar { position: sticky; top: calc(88px + var(--i) * 18px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 440px; border-radius: var(--radius-md); overflow: hidden; background: var(--salt-raised); border: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(12, 20, 28, 0.08); }
.pillar-text { padding: clamp(24px, 4vw, 48px); display: grid; align-content: space-between; gap: var(--space-5); min-width: 0; }
.pillar-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pillar-text li { display: flex; gap: 10px; align-items: baseline; }
.pillar-text li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; transform: translateY(-1px); }
.pillar img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.pillar-num { font: 400 12px var(--font-mono); color: var(--ink-muted); }
@media (max-width: 820px) { .pillar { grid-template-columns: 1fr; position: relative; top: auto; } .pillar img { max-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .pillar { position: relative; top: auto; } }

/* map narrator */
.atlas { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
/* the map column is a sticky, screen-tall stage (below the header); the map sits centred in it */
.atlas-pin { position: sticky; top: 68px; height: calc(100vh - 68px); height: calc(100svh - 68px); display: grid; align-items: center; align-self: start; }
.atlas-map { position: relative; aspect-ratio: 1000 / 600; max-width: 100%; border-radius: var(--radius-md); overflow: hidden; background: color-mix(in srgb, var(--sea) 16%, var(--salt)); border: 1px solid var(--line); }
.atlas-map svg { width: 100%; height: 100%; display: block; }
.atlas-world { transition: transform 1.1s var(--ease-out), opacity var(--dur-slow); transform-origin: 0 0; }
.atlas-map .land { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 0.4; }
.atlas-map .grat { fill: none; stroke: color-mix(in srgb, var(--sea) 30%, transparent); stroke-width: 0.5; }
.atlas-map .pin circle { fill: var(--sun); stroke: var(--ink); stroke-width: 1.5; }
.atlas-map .pin .ring { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0; }
.atlas-map .pin.is-active .ring { animation: ping 1.8s var(--ease-out) 3; }
@keyframes ping { from { opacity: .8; r: 6; } to { opacity: 0; r: 26; } }
@media (prefers-reduced-motion: reduce) { .atlas-map .pin.is-active .ring { animation: none; opacity: .6; r: 14; } .atlas-world { transition: none; } }
.atlas-label { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.atlas-label .coord { background: var(--salt-raised); padding: 4px 8px; border-radius: 4px; color: var(--ink); }
.atlas-steps { display: grid; gap: 22vh; padding-block: 30vh 30vh; }
.atlas-step { display: grid; gap: var(--space-3); opacity: .35; transition: opacity var(--dur-slow); min-width: 0; }
.atlas-step.is-active, .no-io .atlas-step { opacity: 1; }
.atlas-step .print-frame { --ar: 16 / 10; }
.atlas-step .step-place { display: none; }
@media (max-width: 860px) {
  .atlas { grid-template-columns: 1fr; }
  /* on narrow screens the map is an overview, not a sticky panel: nothing may sit over the story */
  .atlas-pin { position: relative; top: auto; height: auto; display: block; }
  .atlas-map { position: relative; top: auto; z-index: auto; aspect-ratio: 1000 / 600; height: auto; }
  .atlas-step .step-place { display: block; }
  .atlas-steps { gap: 12vh; padding-block: 4vh 10vh; }
  .atlas-step { opacity: 1; background: var(--salt); }
}

/* horizontal field gallery */
.reel { position: relative; }
.reel-track { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.reel-track .print { flex: 0 0 auto; width: min(78vw, calc(var(--w, 440) * 1px)); scroll-snap-align: start; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 861px) {
    .reel { height: 300vh; view-timeline: --reel block; }
    .reel-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; overflow: hidden; gap: var(--space-5); }
    .reel-track { overflow: visible; scroll-snap-type: none; width: max-content; justify-self: start; animation: reel-slide linear both; animation-timeline: --reel; animation-range: contain 0% contain 100%; }
  }
}
@keyframes reel-slide { to { transform: translateX(calc(-100% + 100vw)); } }

/* before / after */
.compare { position: relative; max-width: 980px; aspect-ratio: 792 / 612; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--sun); pointer-events: none; }
.compare-line::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: #13202c; display: grid; place-items: center; font-weight: 800; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible + .compare-line { outline: 3px solid var(--tide); }
.compare-tags { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; max-width: 980px; flex-wrap: wrap; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.principle { border-top: 2px solid currentColor; padding-top: var(--space-4); display: grid; gap: var(--space-3); align-content: start; min-width: 0; }
.principle .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 7vw, 104px); line-height: .85; letter-spacing: -0.03em; font-variation-settings: "wdth" 75; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

/* people */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.team .print-frame { --ar: 4 / 5; }
.team h3 { font-size: 30px; margin-top: 6px; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; max-width: 460px; } }

/* call to action */
.cta { display: grid; gap: var(--space-5); justify-items: start; }
.cta-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 14vw, 220px); line-height: .82; letter-spacing: -0.04em; font-variation-settings: "wdth" 75; }

/* index list with hover preview (focus areas, work) */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: idx; }
.index > li { border-bottom: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) 56px; gap: 16px; align-items: center; padding: 22px 0; color: inherit; text-decoration: none; position: relative; }
.index-row:hover { text-decoration: none; }
.index-row h3 { font-size: clamp(26px, 3vw, 40px); transition: transform var(--dur-base) var(--ease-out); }
.index-row:hover h3 { transform: translateX(10px); }
.index-row .sw { width: 40px; height: 40px; border-radius: 10px; background: var(--c); }
.index-row .arrow { justify-self: end; font-size: 26px; transition: transform var(--dur-base) var(--ease-spring); }
.index-row:hover .arrow { transform: translateX(6px); }
.index-peek { position: fixed; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; z-index: 40; border-radius: var(--radius-print); overflow: hidden; opacity: 0; transform: translate(-50%, -60%) scale(.9) rotate(-2deg); transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-out); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.index-peek.is-on { opacity: 1; transform: translate(-50%, -60%) scale(1) rotate(-2deg); }
.index-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px), (hover: none) { .index-row { grid-template-columns: 40px minmax(0, 1fr); } .index-row .desc, .index-row .arrow { grid-column: 2; } .index-row .arrow { display: none; } .index-peek { display: none; } }

/* project essay (work page) */
.essay { display: grid; gap: clamp(32px, 4vw, 56px); padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.essay-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: end; }
.essay-meta { display: grid; gap: 10px; align-content: end; min-width: 0; }
.meta-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.meta-row dt { font: 800 11px/1.8 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.meta-row dd { margin: 0; }
.essay-photos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: start; }
.essay-photos .print:nth-child(1) { grid-column: 1 / span 7; }
.essay-photos .print:nth-child(2) { grid-column: 8 / span 5; margin-top: 18%; }
.essay-photos .print:nth-child(3) { grid-column: 2 / span 5; }
.essay-photos .print:nth-child(4) { grid-column: 7 / span 6; margin-top: 8%; }
@media (max-width: 760px) { .essay-head { grid-template-columns: 1fr; } .essay-photos .print:nth-child(n) { grid-column: 1 / -1; margin-top: 0; } }

/* inner-page hero */
.page-hero { padding-block: clamp(40px, 7vw, 104px) clamp(32px, 5vw, 64px); display: grid; gap: var(--space-4); }
.page-hero .t-hero { max-width: 11em; }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: var(--salt-raised); border: 1.5px solid var(--ink-muted); border-radius: var(--radius-sm); padding: 12px 14px; }
.field textarea { min-height: 140px; resize: vertical; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: inline-block; padding: 14px 22px; border-radius: var(--radius-full); border: 1.5px solid var(--ink-muted); font-weight: 800; cursor: pointer; min-width: 80px; text-align: center; }
.amounts input:checked + span { background: var(--ink); color: var(--salt); border-color: var(--ink); }
.amounts input:focus-visible + span { outline: 3px solid var(--tide); outline-offset: 2px; }
.note { padding: 14px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--sun) 22%, var(--salt-raised)); font-size: 15px; }

/* footer */
.foot { background: var(--ink); color: var(--salt); padding-block: clamp(56px, 7vw, 96px) max(32px, env(safe-area-inset-bottom, 0px)); }
.foot a { color: var(--salt); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-logo { width: 120px; color: var(--salt); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .label { color: color-mix(in srgb, var(--salt) 70%, transparent); margin-bottom: 12px; display: block; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--salt) 22%, transparent); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: color-mix(in srgb, var(--salt) 75%, transparent); }
.foot :focus-visible { outline-color: var(--sun); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* appear: simple rise for blocks; always visible at rest */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-rise] { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes rise { from { opacity: .001; transform: translateY(36px); } to { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.notfound { min-height: 60vh; display: grid; align-content: center; gap: var(--space-4); }
@media print { .bar, .foot, .opening { display: none; } body { background: #fff; color: #000; } }

/* locator map beside each project essay */
.locator { margin: 0; display: grid; gap: 8px; max-width: 260px; }
.locator svg { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-md); border: 1px solid var(--line); display: block; }
.loc-sea { fill: color-mix(in srgb, var(--sea) 16%, var(--salt)); }
.loc-land { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 1; }
.loc-pin { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.loc-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 6; }

/* scroll cue under the hero */
.scroll-cue { display: flex; align-items: center; gap: 12px; margin-top: clamp(32px, 5vw, 56px); text-decoration: none; color: var(--ink-muted); }
.cue-line { position: relative; width: 64px; height: 1px; background: var(--line); overflow: hidden; }
.cue-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--ink); animation: cue 1.8s var(--ease-out) 3; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* viewer-chosen reduced motion: the footer toggle sets .no-motion on <html> */
.motion-toggle { font: 700 13px var(--font-sans); color: inherit; background: none; border: 1px solid currentColor; border-radius: var(--radius-full); padding: 6px 14px; cursor: pointer; }
.motion-toggle[aria-pressed="true"] { background: var(--salt); color: var(--ink); }
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.no-motion .opening { height: auto; }
.no-motion .opening-sticky { position: relative; height: 80vh; }
.no-motion .opening-frame { clip-path: none; }
.no-motion .opening-frame img { transform: none; }
.no-motion .reel { height: auto; }
.no-motion .reel-sticky { position: relative; height: auto; }
.no-motion .reel-track { overflow-x: auto; width: auto; transform: none; }
.no-motion .pillar { position: relative; top: auto; }
@media (prefers-reduced-motion: reduce) { .cue-line::after { animation: none; } }
.essay-side { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; align-items: end; min-width: 0; }
.essay-side .locator { max-width: 160px; }
@media (max-width: 760px) { .essay-side { grid-template-columns: minmax(0, 1fr) 120px; } }

/* links inside raised cards keep the card's own link colour, even on coloured bands */
.pillar a { color: var(--tide); }
.band-earth .pillar :focus-visible { outline-color: var(--tide); }
.index-row h2 { font-size: clamp(26px, 3vw, 40px); transition: transform var(--dur-base) var(--ease-out); }
.index-row:hover h2 { transform: translateX(10px); }
