/* =====================================================================
   Design file. You do not need to edit this unless you want to change colours.
   Colours live in the :root block right below.
   Palette: #2C3531 (charcoal green), #116466 (teal), #D9B08C (tan),
            #FFCB9A (peach), #D1E8E2 (mint). The darkest background is a
            deeper shade of the charcoal green so the five colours still pop.
   ===================================================================== */
:root {
  --ink: #1a211f;
  --ink-2: #202926;
  --panel: #2C3531;
  --panel-2: #34413c;
  --line: #43544e;
  --text: #D1E8E2;
  --muted: #9bb5ad;
  --teal: #116466;
  --teal-bright: #2aa6a3;
  --tan: #D9B08C;
  --peach: #FFCB9A;
  --f-head: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --f-body: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --f-bubble: "Fredoka", "Arial Rounded MT Bold", "Arial Black", system-ui, sans-serif;
  --gut: clamp(20px, 5vw, 48px);
  --r: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(17, 100, 102, .42), transparent 62%),
    radial-gradient(900px 600px at -10% 38%, rgba(17, 100, 102, .16), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: hidden;
  counter-reset: sec;
}
img { max-width: 100%; display: block; }
a { color: var(--peach); text-underline-offset: 3px; }
a:hover { color: #ffe3c7; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--peach); color: #1a211f; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.noscript { padding: 40px var(--gut); }

/* placeholders: dashed so you can see what is left to replace */
.ph {
  display: inline; color: var(--peach); border: 1px dashed var(--tan); border-radius: 6px;
  padding: 0 6px; background: rgba(255, 203, 154, .08); box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- background layers ---------- */
#wind { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.progress { position: fixed; left: 0; top: 0; bottom: 0; width: 3px; z-index: 30; background: rgba(209, 232, 226, .06); }
.progress i { display: block; height: 100%; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--peach), var(--teal-bright)); }
main, footer { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gut); pointer-events: none;
  background: linear-gradient(to bottom, rgba(26, 33, 31, .9), rgba(26, 33, 31, 0));
}
.bar > * { pointer-events: auto; }
.mark {
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; color: var(--text); text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.bar.scrolled .mark { opacity: 1; visibility: visible; }
.bar-right { display: flex; align-items: center; gap: 6px; }
.li {
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--text);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(32, 41, 38, .78);
}
.li:hover { border-color: var(--peach); color: var(--peach); }
.icon-btn, .burger {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(32, 41, 38, .78); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover, .burger:hover { border-color: var(--peach); color: var(--peach); }
.icon-btn .slash-off { stroke: var(--tan); }
.icon-btn.on { color: var(--peach); border-color: var(--peach); }
.icon-btn.on .slash-off { display: none; }

.menu { position: relative; }
.burger { gap: 0; align-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: 2.5px 0; transition: transform .25s, opacity .2s; }
.menu.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu.open .burger span:nth-child(2) { opacity: 0; }
.menu.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 4px); width: min(86vw, 280px); padding: 10px;
  background: rgba(30, 38, 35, .985); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-panel ul { list-style: none; }
.menu-panel a {
  display: block; padding: 9px 14px; border-radius: 12px; color: var(--text); text-decoration: none; font-family: var(--f-head); font-weight: 500;
  border-left: 2px solid transparent;
}
.menu-panel a:hover, .menu-panel a:focus-visible { background: rgba(255, 203, 154, .09); color: var(--peach); }
.menu-panel a[aria-current="true"] { border-left-color: var(--peach); color: var(--peach); }

/* ---------- katana: sheathed at the bottom of the landing page, drawn on scroll, embedded on the right ---------- */
.katana { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 38; pointer-events: none; }
.katana svg { position: fixed; left: 0; top: 0; margin-top: -34px; overflow: visible; will-change: transform; transform-origin: 0 34px; }
.kt-saya { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.kt-sword { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.kt-sword.thud .kt-g { animation: sword-thud .9s cubic-bezier(.2, .7, .3, 1); }
@keyframes sword-thud {
  0% { transform: rotate(0); } 14% { transform: rotate(2.6deg); } 32% { transform: rotate(-2deg); }
  52% { transform: rotate(1.2deg); } 74% { transform: rotate(-.5deg); } 100% { transform: rotate(0); }
}

/* ---------- kunai ---------- */
.kunai {
  position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 40; pointer-events: none; transform-origin: 0 0; opacity: .75;
  transition: opacity .25s; will-change: transform;
}
.kunai svg { position: absolute; left: -13px; top: 0; width: 26px; height: 110px; overflow: visible; transform-origin: 13px 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.kunai.flying { opacity: 1; }
.kunai.flying svg { filter: drop-shadow(0 0 7px rgba(255, 203, 154, .75)); }
.kunai.stuck { opacity: 1; }
.kunai.thud svg { animation: thud .8s cubic-bezier(.2, .7, .3, 1); }
@keyframes thud {
  0% { transform: rotate(0); } 14% { transform: rotate(7deg); } 32% { transform: rotate(-5deg); }
  52% { transform: rotate(3deg); } 72% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.hero-glow {
  position: absolute; right: -8vw; top: -6vh; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 100, 102, .5) 0%, rgba(17, 100, 102, .16) 45%, transparent 70%);
}
.moon {
  position: absolute; right: clamp(4vw, 9vw, 160px); top: clamp(70px, 13vh, 160px); width: clamp(170px, 27vw, 380px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 90px rgba(255, 203, 154, .26);
}
.moon-spin { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.moon-shade {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 244, 230, .62) 0%, rgba(255, 244, 230, 0) 38%),
    radial-gradient(circle at 70% 76%, rgba(26, 33, 31, 0) 36%, rgba(26, 33, 31, .62) 100%);
}
.moon::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(42, 166, 163, .45); }

.photo {
  position: absolute; z-index: 2; left: clamp(14px, 2.6vw, 48px); top: clamp(60px, 7.5vh, 100px);
  width: clamp(96px, 11vw, 150px); aspect-ratio: 4 / 5; transform: rotate(-5deg); will-change: transform, opacity;
  border: 3px solid var(--text); border-radius: 18px; background: var(--panel); overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--teal), 8px 8px 0 -1px rgba(17, 100, 102, .7);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph { width: 100%; height: 100%; display: grid; place-items: end center; padding-bottom: 12px; color: var(--muted); font-family: var(--f-head); font-size: .8rem;
  background: radial-gradient(circle at 50% 38%, #3f524b 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #3f524b 0 42%, transparent 43%), var(--panel-2); }

.hero-copy {
  position: relative; z-index: 3; padding: clamp(96px, 18vh, 190px) var(--gut) 170px clamp(var(--gut), 6.5vw, 96px); max-width: 980px; will-change: transform;
}
.name {
  font-family: var(--f-bubble); font-weight: 700; font-size: clamp(4.2rem, min(16.5vw, 20vh), 11rem); line-height: .9; letter-spacing: .01em;
  margin: 0 0 .22em; color: #D1E8E2; filter: url(#bubble); display: inline-block; padding: 0 .12em .12em 0; transform: translateZ(0);
}
.name span { display: block; }
@media (max-height: 760px) { .hero-copy { padding-top: 150px; } .name { font-size: clamp(3.6rem, min(16.5vw, 17vh), 11rem); } .lede { display: none; } .hero-links { margin-top: 1em; } }
@media (max-width: 1100px) { .name { filter: url(#bubble-md); } }
@media (max-width: 700px) { .name { filter: url(#bubble-sm); } }
.name .name-2 { margin-left: .5em; }
.role { font: 600 clamp(1.05rem, 2.2vw, 1.4rem)/1.35 var(--f-head); margin: 0 0 .4em; max-width: 30ch; }
.lede { color: var(--muted); max-width: 40ch; font-size: 1.1rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }

.btn {
  display: inline-block; font-family: var(--f-head); font-weight: 600; text-decoration: none; color: var(--text);
  padding: 11px 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(44, 53, 49, .85);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { border-color: var(--peach); color: var(--peach); background: rgba(255, 203, 154, .08); transform: translateY(-1px); }
.btn.primary { background: var(--peach); border-color: var(--peach); color: #1a211f; }
.btn.primary:hover { background: #ffe0c2; border-color: #ffe0c2; color: #1a211f; }

/* ---------- sections ---------- */
.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(54px, 9vh, 100px) 0 clamp(30px, 5vh, 56px); scroll-margin-top: 0; counter-increment: sec; }
.sec-head { position: relative; min-height: 150px; padding-top: 8px; margin-bottom: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.sec-head::before { content: counter(sec, decimal-leading-zero); font-family: var(--f-head); font-weight: 600; font-size: .9rem; letter-spacing: .22em; color: var(--tan); margin-bottom: .55em; }
.sec-head h2:focus { outline: none; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -.005em; padding-right: 64px; padding-bottom: .3em; outline-offset: 8px; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--tan), rgba(217, 176, 140, 0) 70%); }
.pin { position: absolute; right: 22px; top: 10px; width: 14px; height: 14px; }
.pin::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--tan); opacity: .55; }
.pin.hit::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--peach); animation: ring .8s ease-out forwards; }
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }

/* every second section mirrors its heading to the right, so the page does not read the same all the way down */
.sec.alt .sec-head { align-items: flex-end; text-align: right; }
.sec.alt .sec-head h2 { padding-right: 0; padding-left: 64px; }
.sec.alt .sec-head::after { background: linear-gradient(270deg, var(--tan), rgba(217, 176, 140, 0) 70%); }
.sec.alt .pin { right: auto; left: 22px; }

.intro { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-bottom: 2em; }
.sec.alt .intro { margin-left: auto; text-align: right; }
h3.sub { font-size: 1.3rem; margin: 2.6em 0 1em; }
.prose p { max-width: 62ch; }
.prose .lead { font-size: 1.28rem; line-height: 1.55; color: var(--text); }
.plain { list-style: none; display: grid; gap: .4em; }
.mini { font-size: 1.05rem; margin: 1.6em 0 .6em; color: var(--tan); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .95rem; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(52, 65, 60, .7); }
.chips.tags li { color: var(--peach); border-color: rgba(255, 203, 154, .3); font-size: .88rem; }

/* ---------- alternating feature rows: text on one side, photo / screenshot on the other ---------- */
.feats { display: grid; gap: clamp(56px, 9vw, 110px); }
.feat { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feat.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.feat.flip .feat-text { order: 2; }
.feat-no { font-family: var(--f-head); font-weight: 600; font-size: .85rem; letter-spacing: .22em; color: var(--tan); margin: 0 0 .6em; }
.feat-text h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .3em; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feat-text .card-top { justify-content: flex-start; gap: 14px; }
.meta { color: var(--muted); font-size: .95rem; margin-bottom: .9em; }
.badge { display: inline-block; font-family: var(--f-head); font-size: .82rem; font-weight: 600; color: var(--peach); border: 1px solid rgba(255, 203, 154, .45); border-radius: 999px; padding: 1px 12px; }

.feat-media {
  position: relative; aspect-ratio: 16 / 11; border-radius: 26px; background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); box-shadow: 16px 16px 0 -3px rgba(17, 100, 102, .5);
}
.feat.flip .feat-media { box-shadow: -16px 16px 0 -3px rgba(17, 100, 102, .5); }
.feat-media.tall { aspect-ratio: 4 / 5; max-width: 420px; justify-self: center; width: 100%; }
.feat-media .thumb, .feat-media .media-ph { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.feat-media .thumb { border: 0; padding: 0; overflow: hidden; background: none; cursor: zoom-in; }
.feat-media .thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.media-ph {
  display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--tan); padding: 20px;
  border: 1.5px dashed rgba(217, 176, 140, .6); background: rgba(255, 203, 154, .04);
  font-family: var(--f-head); font-size: .92rem;
}
.media-ph svg { opacity: .85; }

/* ---------- talks: a header column and a notes column, mirrored on every other talk ---------- */
.talks { display: grid; gap: clamp(56px, 8vw, 96px); }
.talk { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.talk.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.talk.flip .talk-side { order: 2; }
.talk-side h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: .35em; }
.talk-side .feat-media { margin-top: 1.4em; aspect-ratio: 4 / 3; }
.talk-body { display: grid; gap: 18px; }

/* ---------- panels, open blocks and numbered statements ---------- */
.panel { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.panel h3 { font-size: 1.25rem; margin-bottom: .35em; }
.notes { margin: 1em 0 1.2em; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(26, 33, 31, .55); }
.notes h4 { font-size: .98rem; margin-bottom: .5em; color: var(--peach); }
.notes ul { padding-left: 1.1em; display: grid; gap: .35em; }
.field { margin-bottom: .9em; }
.field:last-child { margin-bottom: 0; }
.field h4 { font-size: .98rem; color: var(--tan); font-weight: 600; margin-bottom: .15em; }
.field p { margin: 0; max-width: 70ch; }
.reflect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: .8em 0 0; }
.links:empty { display: none; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.statements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement { padding: 28px 26px 26px; }
.statement + .statement { border-left: 1px solid var(--line); }
.big-no { display: block; font-family: var(--f-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--tan); margin-bottom: .35em; }
.statement h3 { font-size: 1.35rem; margin-bottom: .3em; }

.value-rows { display: grid; }
.value-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 56px); padding: 30px 0; border-top: 1px solid var(--line); }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row h3 { font-size: 1.5rem; }
.value-row .big-no { font-size: 1.8rem; }

.quote { position: relative; padding: 26px 28px 24px 34px; border-radius: var(--r); background: rgba(17, 100, 102, .16); border: 1px solid rgba(42, 166, 163, .3); }
.quote::before { content: ""; position: absolute; left: 14px; top: 26px; bottom: 26px; width: 4px; border-radius: 4px; background: var(--teal-bright); }
.quote h3 { font-size: 1.25rem; margin-bottom: .35em; }
.quote p:last-child { margin: 0; }

/* ---------- what I know ---------- */
.skillrows { display: grid; }
.skillrow { display: grid; grid-template-columns: minmax(150px, .5fr) minmax(0, 2fr); gap: 12px 28px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.skillrow:last-child { border-bottom: 1px solid var(--line); }
.skillrow h3 { font-size: 1.05rem; color: var(--tan); }

.timeline { list-style: none; position: relative; padding-left: 26px; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--tan); }
.timeline .when { color: var(--muted); font-size: .9rem; margin: 0 0 .1em; }
.timeline h4 { font-size: 1.1rem; }
.timeline .where { margin: 0; color: var(--peach); }
.timeline p:last-child { margin-bottom: 0; }

/* ---------- this year: required evidence panels, then four-step rows ---------- */
.check { display: flex; gap: 14px; align-items: flex-start; }
.check svg { flex: none; margin-top: 3px; color: var(--teal-bright); }
.steps { display: grid; gap: 22px; margin-top: 26px; }
.step-row { padding: 26px 28px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(44, 53, 49, .55); }
.step-row > h3 { font-size: 1.35rem; margin-bottom: 1em; }
.step-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.step-col { padding: 0 20px; position: relative; }
.step-col:first-child { padding-left: 0; }
.step-col + .step-col { border-left: 1px dashed var(--line); }
.step-col h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); margin-bottom: .4em; }
.step-col p { margin: 0; font-size: .98rem; }

/* ---------- next steps ---------- */
.goal { position: relative; padding: 4px 0 0; }
.goal .big-no { font-size: 3.4rem; }
.goal h3 { font-size: 1.3rem; margin-bottom: .6em; }
.reading { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reading li { padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(44, 53, 49, .6); }
.reading .r-title { font-family: var(--f-head); font-weight: 600; margin: 0 0 .3em; }
.reading .by { font-family: var(--f-body); font-weight: 400; color: var(--muted); }
.reading p:last-child { margin: .5em 0 0; color: var(--muted); }

/* ---------- hobbies: a loose mosaic ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; padding: 26px 24px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); min-height: 120px; transition: transform .25s, border-color .25s; }
.tile:nth-child(1), .tile:nth-child(6) { grid-column: span 3; min-height: 150px; }
.tile:nth-child(3n+2) { background: linear-gradient(160deg, rgba(17, 100, 102, .55), rgba(17, 100, 102, .22)); border-color: rgba(42, 166, 163, .35); }
.tile:hover { transform: translateY(-3px); border-color: var(--tan); }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--muted); margin: .4em 0 0; }

/* ---------- contact + footer ---------- */
.cta { text-align: center; padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 48px); border-radius: 32px; border: 1px solid rgba(42, 166, 163, .4); background: radial-gradient(600px 260px at 50% 0%, rgba(17, 100, 102, .55), rgba(17, 100, 102, .12) 70%); }
.cta .intro { margin: 0 auto 1.6em; text-align: center; font-size: 1.25rem; color: var(--text); }
.contact { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.foot { padding: 40px 0 60px; margin-top: 50px; border-top: 1px solid var(--line); background: rgba(26, 33, 31, .85); }
.foot p { max-width: 80ch; color: var(--muted); }
.foot .fine { margin: 0; font-size: .9rem; }

/* ---------- gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 1em; }
.gallery figure { margin: 0; }
.thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: none; cursor: zoom-in; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { color: var(--muted); font-size: .85rem; margin-top: 4px; }
dialog { max-width: min(92vw, 1000px); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
dialog::backdrop { background: rgba(10, 14, 13, .86); }
dialog img { max-height: 76vh; margin: 0 auto; border-radius: 12px; }
dialog p { text-align: center; margin: 8px 0 0; color: var(--muted); }
.lb-close { font: inherit; background: var(--peach); color: #1a211f; border: 0; border-radius: 12px; padding: 6px 16px; cursor: pointer; margin-bottom: 10px; font-weight: 600; }

/* ---------- scroll-driven reveals ---------- */
.js .slash { clip-path: inset(0 100% 0 0); }
.js .slash.in { clip-path: inset(-10% -10% -10% -10%); transition: clip-path .8s cubic-bezier(.65, 0, .2, 1); }
.js .sec.alt .slash { clip-path: inset(0 0 0 100%); }
.js .sec.alt .slash.in { clip-path: inset(-10% -10% -10% -10%); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .feat .feat-text.reveal { transform: translateX(-32px); }
.js .feat.flip .feat-text.reveal { transform: translateX(32px); }
.js .talk .talk-side.reveal { transform: translateX(-28px); }
.js .talk.flip .talk-side.reveal { transform: translateX(28px); }
.js .reveal.reveal-media { transform: scale(.95); }
.js .reveal.in, .js .feat .feat-text.reveal.in, .js .feat.flip .feat-text.reveal.in, .js .talk .talk-side.reveal.in, .js .talk.flip .talk-side.reveal.in {
  opacity: 1; transform: none; transition: opacity .65s, transform .75s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .feat, .feat.flip, .talk, .talk.flip { grid-template-columns: 1fr; }
  .feat.flip .feat-text, .talk.flip .talk-side { order: 0; }
  .feat-media, .feat.flip .feat-media { box-shadow: 10px 10px 0 -3px rgba(17, 100, 102, .5); margin-right: 10px; }
  .g3, .g2, .statements, .reading, .reflect { grid-template-columns: 1fr; }
  .statement + .statement { border-left: 0; border-top: 1px solid var(--line); }
  .value-row { grid-template-columns: 1fr; gap: 12px; }
  .skillrow { grid-template-columns: 1fr; }
  .step-cols { grid-template-columns: 1fr; gap: 16px; }
  .step-col, .step-col:first-child { padding: 0; }
  .step-col + .step-col { border-left: 0; border-top: 1px dashed var(--line); padding-top: 14px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile:nth-child(1), .tile:nth-child(6) { grid-column: span 1; }
  .sec.alt .sec-head, .sec.alt .intro { text-align: left; align-items: flex-start; margin-left: 0; }
  .sec.alt .sec-head h2 { padding-left: 0; padding-right: 64px; }
  .sec.alt .sec-head::after { background: linear-gradient(90deg, var(--tan), rgba(217, 176, 140, 0) 70%); }
  .sec.alt .pin { left: auto; right: 22px; }
  .js .sec.alt .slash { clip-path: inset(0 100% 0 0); }
  .js .feat .feat-text.reveal, .js .feat.flip .feat-text.reveal, .js .talk .talk-side.reveal, .js .talk.flip .talk-side.reveal { transform: translateY(22px); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .li { padding: 8px 12px; font-size: .88rem; }
  .sec-head { min-height: 128px; }
  .sec-head h2, .sec.alt .sec-head h2 { padding-right: 54px; }
  .pin, .sec.alt .pin { right: 26px; }
  .panel, .step-row { padding: 20px 20px; }
  .hero-copy { padding-bottom: 130px; }
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- reduced motion: no flying, no parallax, content always visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pin.hit::after { display: none; }
  .js .slash, .js .sec.alt .slash { clip-path: none; }
  .js .reveal, .js .feat .feat-text.reveal, .js .feat.flip .feat-text.reveal, .js .talk .talk-side.reveal, .js .talk.flip .talk-side.reveal, .js .reveal.reveal-media { opacity: 1; transform: none; }
}

/* ---------- print / save as PDF: plain, light, everything visible ---------- */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; font-size: 11pt; }
  #wind, .progress, .bar, .kunai, .katana, .hero-art, .pin, .skip, dialog, .media-ph, .feat-media:not(:has(img)) { display: none !important; }
  .hero { min-height: 0; }
  .hero-copy { padding: 0 0 20px; transform: none !important; opacity: 1 !important; }
  .photo { position: relative; left: 0; top: 0; transform: none !important; opacity: 1 !important; visibility: visible !important; box-shadow: none; margin: 0 0 12px; }
  .name { filter: none; color: #111; font-size: 40pt; }
  .name span { display: inline; } .name .name-2 { margin-left: .2em; }
  .feat, .feat.flip, .talk, .talk.flip, .value-row, .skillrow, .step-cols { grid-template-columns: 1fr; }
  .feat.flip .feat-text, .talk.flip .talk-side { order: 0; }
  .feat-media { box-shadow: none; max-width: 340px; }
  .role, .lede, .meta, .intro, .foot p, .tile p, .reading p:last-child, .timeline .when, .gallery figcaption { color: #444; }
  .panel, .tile, .reading li, .notes, .chips li, .quote, .step-row, .cta { background: #fff !important; border-color: #bbb !important; box-shadow: none; }
  .panel, .step-row, .quote { break-inside: avoid; }
  .js .slash, .js .reveal { clip-path: none !important; opacity: 1 !important; transform: none !important; }
  .sec { padding: 22px 0 6px; break-inside: auto; }
  .sec-head { min-height: 0; }
  .sec-head h2 { color: #111; }
  .field h4, .step-col h4, .skillrow h3, .feat-no, .sec-head::before, .mini { color: #8a5a22; }
  .notes h4, .chips.tags li, .timeline .where, a { color: #0a5560; }
  .big-no { -webkit-text-stroke: 1px #8a5a22; }
  .btn { background: #fff; color: #111; border: 1px solid #999; }
  .foot { background: #fff; }
  .ph { color: #7a5200; border-color: #b88a2b; }
}
