:root {
  --white: #fff;
  --paper: #f4f1ec;
  --ink: #111012;
  --muted: #675f5b;
  --red: #b70d1b;
  --red-bright: #ee2637;
  --orange: #ff5b21;
  --gold: #ffbe2e;
  --line: rgba(17,16,18,.13);
  --pad: clamp(1.25rem,5vw,5.75rem);
  --max: 1540px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; color: var(--ink); background: #d9d5cf; font-family: Arial,Helvetica,sans-serif; font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
.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; }
.skip-link { position: fixed; top: .7rem; left: .7rem; z-index: 1000; transform: translateY(-150%); padding: .7rem 1rem; color: #fff; background: var(--ink); border-radius: 100px; }
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; inset: 0 auto 0 0; z-index: 100; width: 5px; background: rgba(183,13,27,.12); }
.scroll-progress span { display: block; width: 100%; height: 0; background: linear-gradient(var(--orange),var(--red)); }
.site-header { position: fixed; z-index: 90; top: 18px; left: 50%; width: min(calc(100% - 42px),1440px); height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem 0 .75rem; background: rgba(255,255,255,.86); border: 1px solid rgba(17,16,18,.1); border-radius: 22px; box-shadow: 0 10px 35px rgba(27,20,18,.09); backdrop-filter: blur(18px); transform: translateX(-50%); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1.05; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: linear-gradient(145deg,var(--orange),var(--red)); border-radius: 14px; box-shadow: 0 8px 18px rgba(183,13,27,.28); font-size: .82rem; font-weight: 900; letter-spacing: .06em; }
.brand strong,.brand small { display: block; }
.brand strong { font-size: .76rem; letter-spacing: .17em; }
.brand small { margin-top: .3rem; color: var(--muted); font-size: .62rem; letter-spacing: .13em; }
.site-nav { display: flex; align-items: center; gap: clamp(.8rem,2vw,2.15rem); }
.site-nav a { position: relative; padding: .8rem .05rem; color: #393333; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .5rem; height: 2px; background: var(--red); transition: right .28s ease; }
.site-nav a:hover::after,.site-nav a.active::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .25s ease,opacity .25s ease; }
.section { position: relative; width: min(calc(100% - 28px),var(--max)); margin: 14px auto; padding: clamp(6.5rem,10vw,10rem) var(--pad); border-radius: clamp(24px,3vw,42px); overflow: hidden; }
.section-heading { position: relative; z-index: 3; }
.section-no,.eyebrow { margin: 0 0 1rem; color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1,h2 { font-weight: 900; letter-spacing: -.065em; line-height: .9; }
h1 { margin-bottom: 1.5rem; font-size: clamp(4.5rem,8.3vw,9.25rem); }
h1 span { display: block; color: var(--red); }
h2 { margin-bottom: 2rem; font-size: clamp(3rem,6vw,6.8rem); }
h2 em { color: var(--red); font-style: normal; }
h3 { line-height: 1.2; }

/* Immersive hero */
.hero { width: 100%; max-width: none; min-height: 100svh; margin-top: 0; padding: 9.5rem max(5vw,calc((100vw - 1440px)/2)) 3.25rem; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(420px,.92fr); align-items: center; gap: 1rem; background: radial-gradient(circle at 74% 24%,rgba(255,190,46,.24),transparent 18%),linear-gradient(120deg,#fff 0 58%,#f4efe9 58% 100%); border-radius: 0 0 clamp(30px,5vw,76px) clamp(30px,5vw,76px); }
.hero::before { content: ""; position: absolute; z-index: 0; right: -7vw; bottom: -17vw; width: min(65vw,980px); aspect-ratio: 1; background: linear-gradient(140deg,var(--orange),var(--red) 70%); clip-path: polygon(30% 0,100% 12%,90% 100%,0 83%,10% 24%); transform: rotate(-7deg); }
.hero::after { content: ""; position: absolute; z-index: 0; inset: 0; opacity: .12; background-image: linear-gradient(rgba(17,16,18,.25) 1px,transparent 1px),linear-gradient(90deg,rgba(17,16,18,.25) 1px,transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(90deg,#000,transparent 62%); pointer-events: none; }
.hero-copy,.hero-portrait { position: relative; z-index: 4; }
.hero-copy { max-width: 800px; }
.school-lockup { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: clamp(3.3rem,7vh,6rem); padding: .65rem .9rem; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(33,25,21,.07); backdrop-filter: blur(10px); }
.school-lockup img { width: 48px; height: 48px; object-fit: contain; }
.school-lockup span { width: 1px; height: 35px; background: var(--line); }
.school-lockup p { margin: 0 0 0 .15rem; color: var(--muted); font-size: .68rem; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.school-lockup p strong { color: var(--ink); }
.hero .eyebrow { display: inline-flex; align-items: center; min-height: 38px; padding: .5rem .95rem; color: #fff; background: var(--ink); border-left: 5px solid var(--gold); border-radius: 7px; line-height: 1; white-space: nowrap; }
.hero h1 { max-width: 760px; text-wrap: balance; }
.hero h1 span { position: relative; display: inline-block; color: var(--red); }
.credentials { display: inline-block; margin: 0 0 1.7rem; padding: .72rem 1rem; color: #fff; background: var(--red); box-shadow: 10px 10px 0 var(--gold); font-size: clamp(.82rem,1.05vw,1rem); font-weight: 900; letter-spacing: .14em; }
.hero-intro { max-width: 560px; margin: 1.2rem 0 2rem; color: var(--muted); font-size: clamp(1.06rem,1.5vw,1.38rem); }
.primary-link { display: inline-flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem .9rem 1.35rem; color: #fff; background: var(--ink); border-radius: 100px; box-shadow: 0 12px 30px rgba(17,16,18,.18); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: transform .25s ease,box-shadow .25s ease; }
.primary-link span { display: grid; place-items: center; width: 31px; height: 31px; color: var(--ink); background: var(--gold); border-radius: 50%; transition: transform .25s ease; }
.primary-link:hover { transform: translateY(-3px); box-shadow: 0 17px 36px rgba(17,16,18,.22); }
.primary-link:hover span { transform: translateY(3px); }
.hero-portrait { align-self: end; min-height: 75vh; padding-top: 2rem; }
.portrait-frame { position: relative; isolation: isolate; height: 75vh; min-height: 630px; overflow: visible; }
.portrait-frame img { position: absolute; z-index: 2; right: -3%; bottom: -10%; width: min(100%,760px); height: 112%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 24px 22px rgba(47,0,4,.28)); transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.hero-portrait:hover img { transform: translateY(-7px) rotate(.5deg); }
.hero-portrait > p { position: absolute; z-index: 6; right: 0; bottom: 1.1rem; display: flex; align-items: center; gap: 1rem; margin: 0; padding: .6rem .8rem; color: #fff; background: rgba(17,16,18,.88); border-radius: 100px; font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; backdrop-filter: blur(8px); }
.hero-portrait > p span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); background: var(--gold); border-radius: 50%; }
.formula { position: absolute; z-index: 5; display: grid; place-items: center; color: #fff; background: var(--ink); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 12px 25px rgba(28,0,3,.2); font-size: .73rem; font-weight: 900; letter-spacing: .12em; }
.formula-a { right: 2%; top: 16%; width: 92px; height: 92px; border-radius: 50%; }
.formula-b { left: 6%; bottom: 24%; width: 62px; height: 62px; background: var(--orange); border-radius: 18px; transform: rotate(-7deg); }
.hero-dragon { position: absolute; z-index: 2; top: 15%; right: 1%; width: min(68vw,1050px); opacity: .2; mix-blend-mode: multiply; transform: rotate(-3deg); pointer-events: none; }
.hero-index { position: absolute; z-index: 5; left: 1.5rem; bottom: 2.5rem; color: #817976; font-size: .65rem; font-weight: 800; letter-spacing: .19em; writing-mode: vertical-rl; transform: rotate(180deg); }

/* Origin */
.story { background: #fff; }
.story::before { content: "ORIGIN"; position: absolute; right: -1.5%; top: -2%; color: rgba(183,13,27,.045); font-size: clamp(8rem,23vw,24rem); font-weight: 900; letter-spacing: -.08em; pointer-events: none; }
.story::after { content: "C₆H₁₂O₆"; position: absolute; right: 5%; bottom: 3%; color: var(--red); font-size: clamp(3rem,7vw,7rem); font-weight: 900; letter-spacing: -.06em; opacity: .07; transform: rotate(-6deg); }
.story-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem,8vw,9rem); margin-top: clamp(3rem,7vw,7rem); }
.story-lead { position: relative; padding: clamp(2rem,4vw,4rem); color: #fff; background: linear-gradient(145deg,var(--red),#750711); border-radius: 30px; box-shadow: 22px 22px 0 var(--gold); font-size: clamp(1.2rem,1.8vw,1.65rem); line-height: 1.5; transform: rotate(-1deg); }
.story-lead::before { content: "“"; position: absolute; right: 1.5rem; top: .2rem; color: rgba(255,255,255,.16); font-family: Georgia,serif; font-size: 8rem; line-height: 1; }
.story-lead strong { color: var(--gold); }
.story-notes { border-top: 1px solid var(--line); }
.note { position: relative; display: grid; grid-template-columns: 58px 190px 1fr; gap: 1.2rem; padding: 2.25rem 1rem; border-bottom: 1px solid var(--line); transition: background .3s ease,transform .3s ease,border-radius .3s ease; }
.note:hover { z-index: 2; background: #f7f3ee; border-radius: 18px; transform: translateX(-8px); }
.note-code { color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.note h3 { font-size: 1.08rem; }
.note p { margin: 0; color: var(--muted); }
.bio-ribbon { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; margin-top: 7rem; color: #7c7470; font-size: .68rem; font-weight: 900; letter-spacing: .2em; white-space: nowrap; }
.bio-ribbon i { flex: 1; height: 3px; background: linear-gradient(90deg,var(--red),var(--orange),var(--gold)); border-radius: 100px; }

/* Reflection */
.biochemistry { color: #fff; background: radial-gradient(circle at 85% 10%,rgba(238,38,55,.28),transparent 25%),linear-gradient(145deg,#171214,#09090a 68%); }
.biochemistry::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle,#fff 1.3px,transparent 1.6px); background-size: 33px 33px; mask-image: linear-gradient(90deg,transparent,#000,transparent); }
.biochemistry::after { content: "BIO / CHEM"; position: absolute; right: -2rem; top: 42%; color: rgba(255,255,255,.035); font-size: clamp(6rem,15vw,15rem); font-weight: 900; letter-spacing: -.09em; transform: rotate(90deg); }
.light .section-no { color: var(--gold); }
.light h2 em { color: #ff5060; }
.reflection-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .75fr; gap: clamp(3rem,8vw,8rem); margin-top: 5rem; }
.reflection-main { padding: clamp(2rem,4vw,4rem); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 28px; backdrop-filter: blur(8px); font-size: clamp(1.04rem,1.35vw,1.25rem); line-height: 1.8; }
.reflection-main p { color: #d9d2d1; }
.reflection-main .dropcap::first-letter { float: left; margin: .07em .13em 0 0; color: var(--gold); font-size: 6.2rem; font-weight: 900; line-height: .7; }
.reflection-aside { padding-top: 1rem; }
.reflection-aside blockquote { margin: 2.3rem 0 3.2rem; padding: 0; font-size: clamp(1.55rem,2.4vw,2.6rem); font-weight: 900; line-height: 1.18; letter-spacing: -.045em; }
.molecule-mark { position: relative; width: 140px; height: 72px; }
.molecule-mark::before,.molecule-mark::after { content: ""; position: absolute; top: 33px; width: 116px; height: 3px; background: linear-gradient(90deg,var(--orange),var(--gold)); border-radius: 10px; transform-origin: left; }
.molecule-mark::after { transform: rotate(-27deg); }
.molecule-mark b { position: absolute; z-index: 1; width: 15px; height: 15px; border: 3px solid #121012; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.molecule-mark b:nth-child(1) { left: 0; top: 27px; }
.molecule-mark b:nth-child(2) { left: 55px; top: 1px; background: var(--gold); }
.molecule-mark b:nth-child(3) { left: 110px; top: 27px; }
.molecule-mark b:nth-child(4) { left: 68px; top: 53px; background: #fff; }
.molecule-mark b:nth-child(5) { left: 127px; top: 0; background: #fff; }
.gratitude { position: relative; padding: 1.7rem 1.7rem 1.7rem 2rem; overflow: hidden; background: linear-gradient(130deg,var(--red),#7a0710); border-radius: 22px; box-shadow: 14px 14px 0 rgba(255,190,46,.9); }
.gratitude::after { content: "ATP"; position: absolute; right: -.2rem; bottom: -2.2rem; color: rgba(255,255,255,.1); font-size: 6rem; font-weight: 900; }
.gratitude span { color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .18em; }
.gratitude p { position: relative; z-index: 1; margin: .8rem 0 0; color: #fff; font-size: .92rem; }
.learning-signals { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 5rem; }
.signal { min-height: 235px; padding: 2rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; transition: background .28s ease,transform .28s ease,border-color .28s ease; }
.signal:hover { background: rgba(238,38,55,.14); border-color: rgba(255,190,46,.6); transform: translateY(-9px) rotate(-.5deg); }
.signal span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); background: var(--gold); border-radius: 14px; font-size: .72rem; font-weight: 900; }
.signal h3 { margin: 1.5rem 0 .65rem; font-size: 1.55rem; }
.signal p { margin: 0; color: #bcb3b1; }

/* Readiness */
.training { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(3rem,7vw,7rem); align-items: center; background: linear-gradient(115deg,#fff 0 67%,#f2ede6 67%); }
.training::after { content: "READY"; position: absolute; right: -2%; bottom: -7%; color: rgba(183,13,27,.04); font-size: clamp(8rem,22vw,23rem); font-weight: 900; letter-spacing: -.08em; }
.training-photo { position: relative; min-height: 680px; overflow: hidden; background: #171416; border-radius: 34px; box-shadow: 22px 22px 0 var(--orange); transform: rotate(-1.5deg); }
.training-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 52%,rgba(17,16,18,.68)); pointer-events: none; }
.training-photo img { width: 100%; height: 680px; object-fit: cover; object-position: center 27%; filter: saturate(.78) contrast(1.04); transition: transform .7s ease,filter .5s ease; }
.training-photo:hover img { transform: scale(1.035); filter: saturate(1); }
.training-photo span { position: absolute; z-index: 2; left: 1.2rem; bottom: 1.2rem; padding: .7rem 1rem; color: var(--ink); background: var(--gold); border-radius: 100px; font-size: .68rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.training-copy { position: relative; z-index: 2; }
.training-intro { max-width: 730px; margin-bottom: 3rem; color: var(--muted); font-size: 1.1rem; }
.credential-list { display: grid; grid-template-columns: repeat(2,1fr); gap: .85rem; }
.credential { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; background: #f6f2ed; border: 1px solid var(--line); border-radius: 20px; transition: transform .26s ease,background .26s ease,color .26s ease,box-shadow .26s ease; }
.credential:hover { color: #fff; background: var(--red); box-shadow: 10px 10px 0 var(--gold); transform: translate(-4px,-4px); }
.credential strong { color: var(--red); font-size: 2rem; line-height: 1; }
.credential:hover strong { color: var(--gold); }
.credential span { color: var(--muted); }
.credential:hover span { color: #fff; }

/* Field notes */
.field-notes { background: #f2eee8; }
.field-notes::before { content: ""; position: absolute; right: 3%; top: 2%; width: 260px; height: 260px; border: 42px solid rgba(255,91,33,.09); border-radius: 50%; }
.gallery-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.45fr .75fr; grid-template-rows: 350px 270px; gap: 1rem; margin-top: 4rem; }
.gallery-card { position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 28px; background: #ddd; box-shadow: 0 16px 35px rgba(40,30,25,.13); text-align: left; cursor: zoom-in; }
.gallery-feature { grid-row: 1 / 3; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s cubic-bezier(.2,.8,.2,1),filter .35s ease; }
.gallery-card:hover img { transform: scale(1.045); filter: contrast(1.05) saturate(1.08); }
.gallery-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.78)); }
.gallery-card span { position: absolute; z-index: 2; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; color: #fff; font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.gallery-card span b { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--gold); border-radius: 50%; }
.gallery-card span i { font-style: normal; opacity: .72; }
.gallery-statement { position: relative; display: grid; place-content: center; padding: 2rem; overflow: hidden; color: #fff; background: linear-gradient(140deg,var(--red),#710711); border-radius: 28px; text-align: center; box-shadow: 12px 12px 0 var(--orange); }
.gallery-statement::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 20px; }
.gallery-statement p { position: relative; z-index: 2; margin: 0; font-size: clamp(2.2rem,4vw,4.2rem); font-weight: 900; letter-spacing: -.07em; line-height: .88; }
.gallery-statement span { position: relative; z-index: 2; margin: .35rem 0; color: var(--gold); font-family: Georgia,serif; font-style: italic; }
.gallery-statement small { position: relative; z-index: 2; max-width: 290px; margin-top: 1.5rem; color: #f7dfe1; }

/* Community */
.community { color: #fff; background: radial-gradient(circle at 18% 15%,rgba(255,190,46,.22),transparent 20%),linear-gradient(125deg,#1b1718,#09090a); }
.community h2 em { color: var(--gold); }
.community .section-no { color: #ff8f5e; }
.community-intro { max-width: 650px; margin: 1rem 0 4rem auto; color: #bfb7b5; font-size: 1.1rem; }
.logo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.logo-card { display: flex; min-width: 0; min-height: 315px; flex-direction: column; align-items: center; justify-content: space-between; padding: 2rem 1.5rem 1.35rem; background: #fff; border-radius: 24px; transition: transform .3s ease,box-shadow .3s ease; }
.logo-card:nth-child(even) { transform: translateY(24px); }
.logo-card:hover { z-index: 2; transform: translateY(-8px) rotate(-1deg); box-shadow: 0 24px 55px rgba(0,0,0,.3),0 0 0 3px var(--gold); }
.logo-card:nth-child(even):hover { transform: translateY(10px) rotate(1deg); }
.logo-card img { width: 100%; height: 220px; object-fit: contain; }
.logo-card p { align-self: stretch; margin: 1rem 0 0; padding-top: 1rem; color: var(--ink); border-top: 1px solid var(--line); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-align: center; text-transform: uppercase; }

/* Contact and dedication */
.contact { padding-bottom: 0; color: #fff; background: linear-gradient(135deg,var(--red) 0 58%,var(--orange) 58% 100%); }
.contact::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.22) 1px,transparent 1px); background-size: 55px 55px; }
.contact > *:not(.contact-dragon) { position: relative; z-index: 2; }
.contact .section-no { color: var(--gold); }
.contact h2 em { color: var(--ink); }
.contact-copy > p:last-child { max-width: 590px; color: #f9dcdf; font-size: 1.12rem; }
.contact-dragon { position: absolute; z-index: 0; right: -8%; bottom: 0; width: min(75vw,1100px); opacity: .13; mix-blend-mode: multiply; transform: rotate(-3deg); pointer-events: none; }
.contact-links { max-width: 1040px; margin-top: 4rem; }
.contact-links a { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 1rem; margin-bottom: .75rem; padding: 1.25rem 1.35rem; color: var(--ink); background: rgba(255,255,255,.93); border-radius: 18px; box-shadow: 0 10px 28px rgba(99,0,8,.18); text-decoration: none; transition: transform .25s ease,box-shadow .25s ease; }
.contact-links a:hover { transform: translateX(8px); box-shadow: 0 15px 36px rgba(99,0,8,.25); }
.contact-links span { color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.contact-links strong { font-size: clamp(1.05rem,2vw,1.65rem); }
.contact-links i { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--ink); border-radius: 50%; font-size: 1.2rem; font-style: normal; transition: transform .25s ease; }
.contact-links a:hover i { transform: rotate(12deg); }
.contact footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; margin-top: 6rem; padding: 1.4rem 0 0; border-top: 1px solid rgba(255,255,255,.38); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact footer p { margin: 0; }
.contact footer p:nth-child(2) { color: #f9cdd1; }
.contact footer a { justify-self: end; font-weight: 900; text-decoration: none; }
.contact footer .dedication { grid-column: 1 / -1; margin-top: 1rem; padding: 1.15rem; color: var(--ink); background: var(--gold); border-radius: 18px 18px 0 0; font-size: clamp(.8rem,1.3vw,1rem); font-weight: 900; letter-spacing: .14em; text-align: center; }
.lightbox { width: min(1050px,92vw); max-width: none; padding: 0; border: 0; border-radius: 26px; background: #111; box-shadow: 0 30px 90px rgba(0,0,0,.5); overflow: hidden; }
.lightbox::backdrop { background: rgba(15,11,11,.86); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 1rem 1.25rem; color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.lightbox-close { position: absolute; z-index: 2; top: .8rem; right: .8rem; display: grid; place-items: center; width: 44px; height: 44px; border: 0; color: #fff; background: var(--red); border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .8s ease,transform .8s cubic-bezier(.2,.75,.25,1); transition-delay: var(--delay,0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width:1100px) {
  .site-nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr .78fr; }
  .hero h1 { font-size: clamp(4.3rem,8.5vw,7rem); }
  .hero-dragon { right: -8%; }
  .note { grid-template-columns: 50px 150px 1fr; }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .logo-card:nth-child(even) { transform: none; }
}
@media (max-width:820px) {
  html { scroll-padding-top: 5.5rem; }
  .site-header { top: 10px; width: calc(100% - 22px); height: 62px; border-radius: 18px; }
  .brand-mark { width: 42px; height: 42px; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 11px auto; display: grid; gap: 0; padding: 1rem 1.25rem 1.3rem; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px rgba(20,14,12,.16); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform .3s ease,opacity .3s ease; }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { width: calc(100% - 16px); margin: 8px auto; padding-top: 7rem; padding-bottom: 7rem; border-radius: 28px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 7rem var(--pad) 0; border-radius: 0 0 36px 36px; }
  .hero::before { right: -30%; bottom: -5%; width: 115vw; }
  .hero::after { mask-image: linear-gradient(#000,transparent 70%); }
  .school-lockup { margin-bottom: 3rem; }
  .hero h1 { font-size: clamp(4.2rem,16vw,7rem); }
  .hero-copy { z-index: 7; }
  .hero-portrait { min-height: 620px; padding-top: 0; }
  .portrait-frame { height: 620px; min-height: 620px; }
  .portrait-frame img { right: -15%; width: 110%; height: 108%; }
  .hero-dragon { top: 47%; right: -30%; width: 145vw; opacity: .17; }
  .hero-index { display: none; }
  .story-grid,.reflection-grid,.training { grid-template-columns: 1fr; }
  .story-grid { gap: 4rem; }
  .story-lead { transform: none; }
  .note { grid-template-columns: 48px 1fr; }
  .note p { grid-column: 2; }
  .learning-signals { grid-template-columns: 1fr; }
  .training { background: #fff; }
  .training-photo { min-height: 610px; }
  .training-photo img { height: 610px; }
  .training-copy { grid-row: 1; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 540px 400px auto; }
  .gallery-feature { grid-row: auto; }
  .gallery-statement { min-height: 290px; }
  .contact-links a { grid-template-columns: 100px 1fr auto; }
  .contact footer { grid-template-columns: 1fr auto; align-items: start; gap: .55rem 1rem; }
  .contact footer p:nth-child(2) { grid-column: 1 / -1; }
  .contact footer a { grid-column: 2; grid-row: 1; }
}
@media (max-width:540px) {
  .brand small { display: none; }
  h2 { font-size: clamp(2.65rem,14vw,4.25rem); }
  .hero h1 { font-size: clamp(3.7rem,17vw,5.4rem); }
  .school-lockup img { width: 41px; height: 41px; }
  .school-lockup p { display: none; }
  .credentials { box-shadow: 7px 7px 0 var(--gold); font-size: .73rem; letter-spacing: .1em; }
  .hero-portrait { min-height: 520px; }
  .portrait-frame { height: 520px; min-height: 520px; }
  .formula-a { width: 70px; height: 70px; }
  .formula-b { left: 1%; bottom: 20%; }
  .hero-portrait > p { left: 0; right: auto; bottom: 1rem; }
  .note { grid-template-columns: 1fr; gap: .45rem; }
  .note p { grid-column: 1; }
  .bio-ribbon span:nth-of-type(2),.bio-ribbon span:nth-of-type(3) { display: none; }
  .training-photo,.training-photo img { min-height: 510px; height: 510px; }
  .credential-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-rows: 430px 360px auto; }
  .logo-grid { grid-template-columns: 1fr; }
  .contact { background: linear-gradient(155deg,var(--red) 0 72%,var(--orange) 72%); }
  .contact-links a { grid-template-columns: 1fr auto; gap: .25rem 1rem; }
  .contact-links span { grid-column: 1; }
  .contact-links strong { overflow-wrap: anywhere; }
  .contact-links i { grid-column: 2; grid-row: 1 / 3; }
  .contact footer { grid-template-columns: 1fr; }
  .contact footer a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .8rem; }
  .contact footer .dedication { grid-column: 1; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
