/* Education — 2026-10-30, refinement 4 — portrait, personality and responsive rhythm.
   One stylesheet. Shared by both Chinese locales; no personal-homepage rules. */
:root {
  --deco-star:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><path d='M30 3C28 23 23 28 3 30c20 2 25 7 27 27 2-20 7-25 27-27C37 28 32 23 30 3Z' fill='%23bd9b61'/><circle cx='52' cy='10' r='2.4' fill='%23b27a89'/></svg>");
  --deco-orbit:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 660' fill='none'><ellipse cx='260' cy='315' rx='247' ry='296' transform='rotate(-12 260 315)' stroke='%23c7aa78' stroke-width='1.2'/><ellipse cx='260' cy='315' rx='233' ry='310' transform='rotate(10 260 315)' stroke='%23b88090' stroke-opacity='.44' stroke-dasharray='2 8'/><circle cx='485' cy='207' r='6' fill='%23c7aa78'/><circle cx='54' cy='431' r='4' fill='%23b88090'/><path d='M72 47c-1 13-4 16-17 17 13 1 16 4 17 17 1-13 4-16 17-17-13-1-16-4-17-17ZM468 490c-1 10-3 12-13 13 10 1 12 3 13 13 1-10 3-12 13-13-10-1-12-3-13-13Z' fill='%23b88090'/></svg>");
  --deco-bow:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 76' fill='none' stroke-linecap='round' stroke-linejoin='round'><path d='M50 34C25 32 8 12 19 10 33 7 48 26 50 34ZM50 34C59 11 83 1 84 14 85 27 60 34 50 34Z' fill='%23efdae0' stroke='%23b78091' stroke-width='1.5'/><path d='M48 35c-4 10-7 18-18 24M53 35c5 11 10 15 18 18' stroke='%23b78091' stroke-width='2'/><ellipse cx='51' cy='34' rx='5' ry='4' fill='%23d2adba'/><path d='M85 47c-1 9-3 11-12 12 9 1 11 3 12 12 1-9 3-11 12-12-9-1-11-3-12-12Z' fill='%23c4a270' stroke='none'/></svg>");
  --deco-wave:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 96' fill='none'><path d='M9 49h142M80 8v79' stroke='%2312365f' stroke-opacity='.13'/><path d='M9 49C21 49 22 20 34 20S47 78 59 78 72 20 84 20 97 78 109 78 122 20 134 20 145 49 151 49' stroke='%23a06c7d' stroke-width='1.6'/><circle cx='34' cy='20' r='3.6' fill='%23c5a269'/><circle cx='109' cy='78' r='3.6' fill='%2312365f' fill-opacity='.55'/></svg>");

  --paper:#f6f3ed; --surface:#fbfaf7; --ink:#202b34; --navy:#12365f;
  --muted:#465762; --gold:#85652d; --rule:rgba(18,54,95,.18);
  --dark:#142a40; --dark-text:#e9edf1; --blue-soft:#e6edf0;
  --rose:#a46b7a; --rose-soft:#ecd8db; --gold-soft:#c9ac79;
  --body:1.0625rem; --meta:.875rem; --subhead:1.25rem; --heading:2rem;
  --header-height:72px;
  --sans:"PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Microsoft YaHei",system-ui,sans-serif;
}
html:lang(zh-Hant-TW) { --sans:"PingFang TC","Noto Sans CJK TC","Microsoft JhengHei",system-ui,sans-serif; }
* { box-sizing:border-box; }
html { background:var(--paper); scroll-behavior:smooth; scroll-padding-top:var(--header-height); }
body { margin:0; color:var(--ink); background:radial-gradient(ellipse at 89% 4%,rgba(229,199,204,.22),transparent 32rem),radial-gradient(ellipse at 8% 14%,rgba(219,203,169,.14),transparent 28rem),var(--paper); font:400 var(--body)/1.8 var(--sans); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
h1,h2,h3,h4,p,figure,dl,dd { margin:0; }
h1,h2,h3,h4 { font-weight:650; line-height:1.4; letter-spacing:0; }
h2 { font-size:var(--heading); color:var(--navy); text-wrap:balance; }
h3 { font-size:var(--subhead); color:var(--navy); }
h4 { font-size:var(--body); }
p,li,dt,dd { text-wrap:pretty; }
p+p { margin-top:14px; }
a { color:inherit; text-decoration:none; }
button { font:inherit; color:inherit; cursor:pointer; }
a,button,summary { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
img { display:block; max-width:100%; height:auto; }
strong { font-weight:650; }
[hidden] { display:none!important; }
.section-shell,.section-inner { width:min(1760px,calc(100% - clamp(48px,9vw,192px))); margin-inline:auto; }
.section-space,.band { padding-block:64px; }
section[id],aside[id],main[id] { scroll-margin-top:20px; }
.section-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); align-items:end; gap:48px; }
.section-head>p { max-width:40em; color:var(--muted); }
.kicker { color:var(--gold); font-size:var(--meta); font-weight:600; letter-spacing:.035em; margin-bottom:8px; }
.section-note,.secondary { font-size:var(--meta); color:var(--muted); line-height:1.75; }
.text-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; text-decoration:underline; text-underline-offset:5px; text-decoration-color:var(--rule); }
.text-link:hover { color:var(--navy); text-decoration-color:currentColor; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:20px; min-height:48px; padding:10px 20px; border:1px solid var(--navy); font-size:var(--body); font-weight:600; line-height:1.5; color:var(--navy); background:transparent; }
.btn-primary { background:var(--navy); color:#fff; }
.btn-secondary { border-color:#9ba8b0; }
.btn:hover { background:var(--blue-soft); }
.btn-primary:hover { background:#1e476f; }
.btn span[aria-hidden] { flex:none; }
.sr-only { position:absolute!important; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link { position:fixed; z-index:100; top:8px; left:16px; padding:8px 16px; background:var(--navy); color:#fff; transform:translateY(-160%); }
.skip-link:focus { transform:none; }
/* Navigation: the header height is measured, not counted twice at anchor targets. */
.site-header { position:sticky; top:0; z-index:20; background:rgba(246,243,237,.97); border-bottom:1px solid var(--rule); }
.nav { display:flex; align-items:center; gap:24px; min-height:72px; }
.brand { display:flex; align-items:baseline; gap:12px; min-width:0; }
.brand strong { font-size:1.125rem; white-space:nowrap; }
.brand span { font-size:var(--meta); color:var(--muted); }
.nav-links { display:flex; gap:24px; margin-left:auto; }
.nav-links a,.mobile-jump-nav a { position:relative; display:flex; align-items:center; min-height:44px; font-size:var(--meta); white-space:nowrap; color:var(--muted); }
.nav-links a[aria-current="location"],.mobile-jump-nav a[aria-current="location"] { color:var(--navy); }
.nav-links a[aria-current="location"]::after,.mobile-jump-nav a[aria-current="location"]::after { content:""; position:absolute; bottom:0; height:2px; left:0; right:0; background:var(--navy); }
.nav-links a:hover,.mobile-jump-nav a:hover { color:var(--navy); }
.header-cta { display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:8px 16px; background:var(--navy); color:#fff; font-size:var(--meta); white-space:nowrap; }
.mobile-jump-nav { display:none; }
/* Hero: one coherent text column, with the portrait kept at its original ratio. */
.hero { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr); gap:clamp(48px,5vw,96px); align-items:center; padding-block:48px 56px; }
.hero::before { content:"PHYSICS"; position:absolute; right:0; top:20px; z-index:-1; color:transparent; -webkit-text-stroke:1px rgba(18,54,95,.075); font:800 clamp(110px,12vw,210px)/1 Arial,sans-serif; letter-spacing:-.04em; pointer-events:none; }
.hero-copy { display:grid; gap:26px; min-width:0; max-width:50rem; }
.hero-heading h1 { position:relative; width:fit-content; max-width:100%; font-size:clamp(4rem,6vw,6rem); line-height:1.15; color:var(--navy); margin-block:10px 18px; }
.hero-focus { display:flex; flex-wrap:wrap; gap:0 18px; color:var(--navy); font-size:var(--body); font-weight:600; }
.hero-focus span { display:block; }
.hero-visual { position:relative; isolation:isolate; min-width:0; width:100%; max-width:380px; justify-self:center; }
.portrait { position:relative; border:1px solid rgba(133,101,45,.3); border-radius:5px 5px 0 0; padding:8px; box-shadow:0 18px 42px rgba(43,34,48,.12); background:var(--surface); }
.portrait img { width:100%; height:auto; }
.hero-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr)); gap:1px; background:#506071; color:#fff; border-radius:0 0 5px 5px; overflow:hidden; box-shadow:0 14px 26px rgba(43,34,48,.08); }
.hero-stats>div { min-width:0; padding:18px 20px; background:#1a3046; }
.hero-stats dt { font-size:var(--meta); color:#d5d9dd; line-height:1.6; }
.hero-stats dd { display:flex; align-items:baseline; gap:6px; margin-top:6px; line-height:1.2; font-variant-numeric:tabular-nums; }
.stat-number { font:700 2.25rem/1.2 Arial,var(--sans); }
.stat-unit { font-size:var(--meta); font-weight:500; color:#e0e3e6; }
.hero-biography { max-width:42em; color:#344653; padding-left:20px; border-left:2px solid #d8bdba; }
.hero-biography p+p { margin-top:16px; }
.hero-biography strong { color:var(--ink); }
.hero-specialty { display:block; margin-top:4px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
/* The original poster is only a thumbnail. Course information is readable HTML. */
.featured-course { padding-bottom:48px; }
.featured-course-inner { display:grid; grid-template-columns:88px minmax(0,1fr); gap:12px 28px; align-items:center; border-top:1px solid var(--rule); padding-top:28px; }
.course-poster { grid-column:1; grid-row:1; width:88px; height:auto; border:1px solid var(--rule); }
.featured-course-copy { grid-column:2; min-width:0; }
.featured-course-copy h2 { display:flex; flex-wrap:wrap; gap:0 16px; font-size:var(--subhead); margin-bottom:8px; text-wrap:initial; }
.course-subtitle { font-weight:500; }
.featured-course-copy>p:not(.kicker) { color:var(--muted); }
.featured-course-copy .kicker { margin-bottom:6px; }
.course-meta { display:flex; flex-wrap:wrap; gap:8px 24px; font-size:var(--meta); margin-top:6px; }
.course-meta strong { color:var(--navy); font-size:var(--body); font-variant-numeric:tabular-nums; }
details>summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:48px; font-size:var(--body); font-weight:600; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"＋"; font:400 1.25rem/1 Arial,sans-serif; flex:none; }
details[open]>summary::after { content:"−"; }
.course-details { grid-column:1/-1; border-top:1px solid var(--rule); margin-top:6px; }
.course-details>summary { padding-block:10px; color:var(--navy); }
.course-details>div { max-width:48em; padding:4px 0 8px; }
.course-details p { color:var(--muted); }
/* Records: numbers are prominent; approximation labels and units are not. */
.record-section { background:#182632; color:var(--dark-text); }
.record-section h2,.record-section h3 { color:#fff; }
.record-section .kicker { color:#d5ba85; }
.record-section .section-head>p,.record-section .section-note { color:#d0d8de; }
.school-records { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:28px; border-block:1px solid #45515b; }
.school-records>div { display:grid; grid-template-rows:1fr auto; gap:10px; min-width:0; padding:24px 28px; }
.school-records>div:first-child { padding-left:0; }
.school-records>div+div { border-left:1px solid #45515b; }
.school-records dt { font-weight:600; }
.school-alias { display:block; margin-top:4px; font-size:var(--meta); font-weight:400; color:#d0d8de; }
.school-records dd { display:flex; align-items:baseline; gap:8px; color:#b9d6e7; margin-top:0; white-space:nowrap; }
.school-records dd strong { font:700 2.75rem/1.2 Arial,var(--sans); font-variant-numeric:tabular-nums; }
.school-records dd span { font-size:var(--body); font-weight:400; color:#d0d8de; }
.eju-row { display:grid; grid-template-columns:210px minmax(0,1fr); align-items:center; margin-top:24px; border-bottom:1px solid #45515b; padding-bottom:24px; }
.eju-row h3 { font-size:var(--body); }
.eju-row dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.eju-row dl>div { min-width:0; }
.eju-row dt,.eju-row .score-note { font-size:var(--meta); color:#d0d8de; }
.eju-row dd:not(.score-note) { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 4px; font:700 2rem/1.5 Arial,var(--sans); font-variant-numeric:tabular-nums; }
.eju-row dd span { font-size:var(--meta); font-weight:400; color:#d0d8de; white-space:nowrap; }
.eju-row .score-note { margin-top:2px; font-weight:400; line-height:1.6; }
.record-section>.section-inner>.section-note { margin-top:18px; }
/* Curriculum */
.principle-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; padding-block:28px; border-block:1px solid var(--rule); margin-top:28px; }
.principle-grid h3 { margin-bottom:10px; }
.principle-grid p { color:var(--muted); }
.course-stage { margin-top:32px; border:1px solid var(--rule); background:var(--surface); }
.course-tabs { display:flex; border-bottom:1px solid var(--rule); }
.course-tabs button { flex:1; min-width:0; min-height:56px; padding:14px 20px; border:0; background:transparent; color:var(--navy); font-size:var(--body); font-weight:600; }
.course-tabs button+button { border-left:1px solid var(--rule); }
.course-tabs button[aria-selected="true"] { background:var(--navy); color:#fff; }
.course-tabs button:focus-visible { outline-offset:-5px; }
.no-js .course-tabs { display:none; }
.no-js .course-panel+.course-panel { border-top:1px solid var(--rule); }
.course-panel { padding:28px 32px; }
.course-panel>p { margin-top:12px; color:var(--muted); max-width:44em; }
.course-list { display:grid; grid-template-columns:1fr 1fr; gap:10px 32px; margin:22px 0 0; padding-left:20px; }
.course-list li { padding-left:3px; }
.course-list li::marker { color:var(--gold); }
.material-note { margin-top:24px; padding:20px; border-left:3px solid var(--gold); background:#f0eee8; }
.material-note h4 { color:var(--navy); }
.material-note p { margin-top:8px; color:var(--muted); }
.lab-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:36px; padding:28px 0; border-bottom:1px solid var(--rule); margin-top:8px; }
.lab-entry p:not(.kicker) { max-width:42em; color:var(--muted); margin-top:10px; }
.lab-entry .btn { white-space:nowrap; }
/* Admissions: label and explanation stay aligned without tiny side notes. */
.planning-section { background:var(--blue-soft); }
.planning-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-top:32px; }
.planning-grid>article { min-width:0; }
.planning-grid>article>p { margin-top:16px; }
.selection-list { margin-top:18px; }
.selection-list>div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:16px; padding:14px 0; border-top:1px solid var(--rule); }
.selection-list dt { font-weight:600; color:var(--navy); }
.selection-list dd { color:var(--muted); }
.plain-list { margin:18px 0 0; padding-left:22px; }
.plain-list li { padding-left:3px; margin-block:10px; }
.plain-list li::marker { color:var(--gold); }
/* Evidence: proportional, uncropped thumbnails with full-size originals on click. */
.student-media-grid { display:flex; gap:20px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scroll-padding:2px; margin-top:28px; padding:4px 2px 14px; scrollbar-width:thin; scrollbar-color:#8c989f transparent; }
.student-shot { flex:0 0 264px; min-width:0; scroll-snap-align:start; }
.student-shot>a { position:relative; display:flex; align-items:flex-start; justify-content:center; height:356px; background:var(--surface); border:1px solid var(--rule); padding:10px; cursor:zoom-in; }
.student-shot>a:hover { border-color:#768998; }
.student-shot img { width:100%; height:100%; object-fit:contain; object-position:center top; }
.student-shot figcaption { font-size:var(--meta); line-height:1.65; padding-top:10px; color:var(--muted); }
.gallery-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:12px; font-size:var(--meta); color:var(--muted); }
.gallery-buttons { display:flex; align-items:center; gap:8px; flex:none; }
.gallery-position { min-width:3em; margin-right:4px; font-variant-numeric:tabular-nums; text-align:center; }
.gallery-buttons button { width:44px; height:44px; border:1px solid var(--rule); background:transparent; font-size:1.25rem; }
.gallery-buttons button:hover:enabled { background:var(--blue-soft); border-color:#768998; }
.gallery-buttons button:disabled { color:#687783; border-color:transparent; cursor:default; }
.no-js .gallery-buttons { display:none; }
/* Graduate guidance: the section heading precedes the score on small screens. */
.graduate-section { background:var(--dark); color:var(--dark-text); }
.graduate-section h2,.graduate-section h3,.graduate-section h4 { color:#fff; }
.graduate-section .kicker { color:#d5ba85; }
.graduate-section .text-link { color:var(--dark-text); text-decoration-color:#738594; margin-top:12px; margin-right:24px; }
.graduate-grid { display:grid; grid-template-columns:minmax(280px,.7fr) minmax(0,1.6fr); grid-template-areas:"score heading" "score copy"; column-gap:64px; row-gap:18px; }
.graduate-heading { grid-area:heading; min-width:0; }
.graduate-score { grid-area:score; align-self:start; border-top:2px solid #b3cbdc; padding-top:20px; min-width:0; }
.graduate-score>p { color:#d0d8de; }
.graduate-score h3 { font-size:var(--body); margin-top:10px; }
.graduate-score .score-value { font:700 4.5rem/1.2 Arial,var(--sans); color:#b9d6e7; margin-block:14px 18px; font-variant-numeric:tabular-nums; }
.score-value span { font-size:1.5rem; font-weight:400; color:#d0d8de; white-space:nowrap; }
.graduate-copy { grid-area:copy; min-width:0; }
.graduate-copy>p { color:#dce3e9; max-width:44em; }
.graduate-copy>p+p { margin-top:16px; }
.graduate-subjects { margin-top:24px; }
.graduate-subjects>div { border-top:1px solid #526272; padding-block:16px; }
.graduate-subjects dt { font-weight:600; color:#c4ddeb; }
.graduate-subjects dd { margin-top:6px; }
.graduate-details { border-top:1px solid #526272; }
.graduate-details details { border-bottom:1px solid #526272; }
.graduate-details summary { padding-block:14px; }
.graduate-details .section-note { color:#c3cdd5; margin-bottom:10px; }
.scope-list { padding-bottom:18px; }
.scope-row { display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; padding-block:8px; }
.scope-row span { color:#dce3e9; }
/* Experience and course responsibilities */
.experience-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,30%); gap:clamp(40px,6vw,104px); margin-top:28px; }
.experience-list { min-width:0; border-top:1px solid var(--rule); }
.exp-row { padding-block:24px; border-bottom:1px solid var(--rule); }
.exp-meta { font-size:var(--meta); font-weight:600; color:var(--gold); margin-bottom:6px; }
.exp-position { font-size:var(--meta); color:var(--muted); margin-top:6px; }
.exp-row>p:not(.exp-meta):not(.exp-position) { margin-top:12px; }
.responsibility-heading { margin-top:24px; color:var(--navy); }
.project-list { margin-top:16px; padding-left:18px; border-left:2px solid #b49b6e; }
.project-list>div+div { margin-top:16px; }
.project-list dt { font-weight:600; color:var(--navy); }
.project-list dd { color:var(--muted); margin-top:4px; }
.tabito-block { min-width:0; align-self:start; background:var(--surface); border:1px solid var(--rule); }
.classroom-photo { width:100%; height:auto; }
.tabito-info { padding:24px; }
.tabito-info .company-name { font-size:var(--meta); margin-top:8px; }
.tabito-info address { font-style:normal; margin-top:20px; }
.tabito-links { display:flex; flex-wrap:wrap; gap:0 18px; margin-top:12px; font-size:var(--meta); }
/* Contact: QR image and label form a compact, readable row. */
.contact-section { background:#17212b; color:var(--dark-text); }
.contact-section h2,.contact-section h3 { color:#fff; }
.contact-section .kicker { color:#d5ba85; }
.contact-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:48px; }
.contact-copy { min-width:0; }
.contact-copy>p:not(.kicker) { margin-top:18px; color:#d0d8de; }
.contact-links { display:flex; flex-direction:column; align-items:flex-start; margin-top:18px; }
.contact-links .text-link { font-size:var(--meta); text-decoration-color:#738594; }
.contact-links .text-link:hover { color:#fff; }
.qr-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-self:start; }
.qr-item { display:flex; align-items:center; flex-wrap:wrap; gap:16px; padding:18px; border:1px solid #52606c; min-width:0; }
.qr-item>div { min-width:0; }
.qr-image-link { flex:none; cursor:zoom-in; }
.qr-item img { width:112px; height:112px; background:#fff; padding:6px; object-fit:contain; }
.qr-item h3 { font-size:var(--subhead); }
.qr-item p { margin-top:4px; overflow-wrap:anywhere; }
.qr-item .secondary { color:#d0d8de; }
.site-footer { display:flex; justify-content:space-between; align-items:center; gap:24px; padding-block:20px; font-size:var(--meta); color:var(--muted); }
.site-footer>div,.site-footer nav { display:flex; align-items:center; gap:24px; }
.site-footer a { display:inline-flex; align-items:center; min-height:44px; }
.site-footer [aria-current="page"] { color:var(--navy); text-decoration:underline; text-underline-offset:5px; }
/* The native dialog keeps keyboard focus and restores the originating link. */
.image-dialog { width:min(760px,calc(100% - 32px)); max-height:calc(100dvh - 40px); padding:0; border:1px solid var(--rule); background:var(--surface); color:var(--ink); overflow:auto; }
.image-dialog::backdrop { background:rgba(10,20,30,.76); }
.dialog-toolbar { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; background:var(--surface); border-bottom:1px solid var(--rule); }
.dialog-toolbar h2 { font-size:var(--body); text-wrap:initial; }
.dialog-toolbar button { width:44px; height:44px; border:1px solid var(--rule); background:transparent; font-size:1.5rem; flex:none; }
.dialog-image { max-width:100%; width:auto; height:auto; margin:20px auto; }
.image-dialog.is-qr .dialog-image { width:min(320px,calc(100% - 48px)); background:#fff; padding:20px; }
.no-js .image-dialog { display:none; }

/* Personal stationery details: original illustrations, fine orbit lines and rose/gold accents.
   All decoration is outside copy and pointer-inert; no photograph crop or scaling transform. */
.site-header { backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); box-shadow:0 3px 18px rgba(42,35,32,.025); }
.brand strong::after { content:""; display:inline-block; width:5px; height:5px; margin:0 0 7px 5px; border-radius:50%; background:var(--rose); }
.kicker { display:flex; align-items:center; gap:10px; }
.kicker::before { content:""; width:20px; height:1px; flex:none; background:linear-gradient(90deg,var(--rose),var(--gold-soft)); }
.hero-heading h1::after { content:""; position:absolute; right:-44px; top:6px; width:32px; height:32px; background:var(--deco-star) center/contain no-repeat; pointer-events:none; }
.hero-visual::before { content:""; position:absolute; inset:-38px -52px -24px; z-index:-1; background:var(--deco-orbit) center/contain no-repeat; pointer-events:none; }
.hero-visual::after { content:""; position:absolute; bottom:96px; left:-126px; width:136px; height:100px; background:url('/assets/decor-education.webp') center/contain no-repeat; transform:rotate(-8deg); pointer-events:none; }
.portrait::before { content:""; position:absolute; top:5px; left:-18px; width:68px; height:22px; border-inline:1px solid rgba(180,128,145,.18); background:rgba(224,184,196,.58); transform:rotate(-29deg); z-index:2; pointer-events:none; }
.portrait::after { content:""; position:absolute; width:94px; height:72px; right:-36px; top:-24px; background:var(--deco-bow) center/contain no-repeat; z-index:2; pointer-events:none; }
.hero-stats>div { position:relative; }
.hero-stats>div::before { content:""; position:absolute; left:20px; top:0; width:40px; height:2px; background:linear-gradient(90deg,#d5b77f,#d4acb7); }
.btn,.header-cta { border-radius:3px; transition:background-color .18s,box-shadow .18s,transform .18s; }
.btn-primary { box-shadow:0 5px 13px rgba(18,54,95,.09); }
.btn-secondary { background:rgba(251,250,247,.6); border-color:#ac9aa0; }
.featured-course-inner { position:relative; padding:26px 28px 12px; border:1px solid #dbcec5; border-radius:5px; background:linear-gradient(110deg,rgba(235,210,213,.26),rgba(251,250,247,.76) 48%,rgba(232,219,194,.25)); box-shadow:0 6px 22px rgba(76,52,56,.035); }
.featured-course-inner::before { content:""; position:absolute; right:28px; top:-1px; width:17px; height:34px; background:#b27c8b; clip-path:polygon(0 0,100% 0,100% 100%,50% 76%,0 100%); pointer-events:none; }
.featured-course-inner::after { content:""; position:absolute; right:66px; top:20px; width:176px; height:110px; background:url('/assets/decor-multimodal.webp') center/contain no-repeat; pointer-events:none; }
.featured-course-copy { padding-right:220px; }
.course-poster { box-shadow:0 4px 12px rgba(42,35,32,.12); border:3px solid var(--surface); }
.band { position:relative; isolation:isolate; overflow:clip; }
.record-section::before,.graduate-section::before { content:""; position:absolute; z-index:-1; width:470px; height:470px; border:1px solid rgba(210,177,125,.17); border-radius:50%; box-shadow:0 0 0 48px rgba(210,177,125,.025),0 0 0 96px rgba(210,177,125,.018); pointer-events:none; }
.record-section::before { right:-200px; top:-280px; }
.graduate-section::before { left:-230px; bottom:-280px; }
.school-records>div { position:relative; }
.school-records>div::after { content:""; position:absolute; width:18px; height:18px; right:24px; top:28px; background:var(--deco-star) center/contain no-repeat; opacity:.68; pointer-events:none; }
.section-head>div { position:relative; min-width:0; }
.teaching-section .section-head>div { padding-right:152px; }
.teaching-section .section-head>div::after { content:""; position:absolute; right:0; bottom:-8px; width:140px; height:96px; background:url('/assets/decor-education.webp') center/contain no-repeat; pointer-events:none; }
.principle-grid { gap:0; border-top-color:#ceb9b8; }
.principle-grid article { position:relative; padding-inline:28px; }
.principle-grid article:first-child { padding-left:0; }
.principle-grid article+article { border-left:1px solid var(--rule); }
.principle-grid article::before { display:block; font:italic 400 1rem/1.6 Georgia,serif; color:var(--rose); margin-bottom:8px; }
.principle-grid article:nth-child(1)::before { content:"01"; }
.principle-grid article:nth-child(2)::before { content:"02"; }
.principle-grid article:nth-child(3)::before { content:"03"; }
.course-stage { border-radius:5px; overflow:hidden; box-shadow:0 8px 28px rgba(42,35,32,.045); }
.course-tabs button[aria-selected="true"] { box-shadow:inset 0 -3px #c3a179; }
.material-note { border-radius:0 4px 4px 0; background:linear-gradient(100deg,#eee4e2,#f2eee6); }
.lab-entry { position:relative; padding:30px 32px 30px 168px; border:1px solid #c7cdd2; border-radius:5px; margin-top:28px; background:linear-gradient(110deg,#ede2e2,#edf0ef 44%,#e5edf2); }
.lab-entry::before { content:""; position:absolute; left:18px; top:50%; width:132px; height:90px; transform:translateY(-50%); background:var(--deco-wave) center/contain no-repeat; pointer-events:none; }
.planning-section { background:linear-gradient(120deg,#e6edf0 44%,#eee4e5); }
.planning-section .section-head>div { padding-right:156px; }
.planning-section .section-head>div::after { content:""; position:absolute; right:0; bottom:-14px; width:144px; height:104px; background:url('/assets/decor-personal.webp') center/contain no-repeat; transform:rotate(-5deg); pointer-events:none; }
.student-media-grid { padding-top:12px; }
.student-shot>a { border-radius:4px; box-shadow:0 5px 16px rgba(42,35,32,.055); }
.student-shot>a::before { content:""; position:absolute; top:-7px; left:calc(50% - 24px); width:48px; height:14px; background:rgba(207,171,184,.7); transform:rotate(-5deg); pointer-events:none; }
.student-shot:nth-child(even)>a::before { background:rgba(208,189,150,.7); transform:rotate(4deg); }
.gallery-buttons button { border-radius:50%; }
.graduate-heading { position:relative; padding-right:170px; }
.graduate-heading::after { content:""; position:absolute; right:0; top:-12px; width:152px; height:102px; background:url('/assets/decor-speech.webp') center/contain no-repeat; pointer-events:none; }
.graduate-score { position:relative; }
.graduate-score::after { content:""; position:absolute; width:22px; height:22px; right:0; top:18px; background:var(--deco-star) center/contain no-repeat; pointer-events:none; }
.experience-section .section-head>div { padding-right:150px; }
.experience-section .section-head>div::after { content:""; position:absolute; width:136px; height:92px; right:0; bottom:-8px; background:url('/assets/decor-multimodal.webp') center/contain no-repeat; pointer-events:none; }
.exp-row { position:relative; padding-left:24px; }
.exp-row::before { content:""; position:absolute; left:0; top:32px; width:7px; height:7px; border:1px solid var(--rose); border-radius:50%; background:var(--surface); }
.exp-current::before { background:var(--rose); box-shadow:0 0 0 4px rgba(164,107,122,.1); }
.tabito-block { border-radius:5px; overflow:hidden; box-shadow:0 10px 26px rgba(42,35,32,.065); }
.tabito-info { position:relative; }
.tabito-info::after { content:""; position:absolute; width:30px; height:30px; top:14px; right:14px; border-top:1px solid #c5a475; border-right:1px solid #c5a475; pointer-events:none; }
.qr-item { position:relative; border-radius:5px; background:rgba(255,255,255,.022); }
.qr-item::after { content:""; position:absolute; top:10px; right:10px; width:15px; height:15px; border-top:1px solid #d4b88b; border-right:1px solid #d4b88b; pointer-events:none; }
.site-footer { border-top:1px solid var(--rule); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .btn:hover,.header-cta:hover { transform:translateY(-2px); box-shadow:0 9px 22px rgba(18,54,95,.12); }
  .student-shot>a:hover { box-shadow:0 8px 24px rgba(42,35,32,.1); }
}
/* The name and the small physics sketch share a row; decorative marks never cross copy. */
.hero-name-row { display:flex; align-items:center; gap:clamp(48px,5vw,80px); min-width:0; }
.hero-name-row h1 { flex:none; }
.hero-name-row .hero-sketch { flex:none; width:116px; height:74px; background:var(--deco-wave) center/contain no-repeat; opacity:.85; }
.portrait-orbit { display:none; }
.portrait-caption { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:10px 8px 3px; color:var(--navy); }
.portrait-caption .signature { font-family:"Snell Roundhand","Segoe Print",Georgia,serif; font-size:1.625rem; font-style:italic; line-height:1.25; color:var(--rose); letter-spacing:.02em; }
.portrait-caption .portrait-subject { font-size:var(--meta); letter-spacing:.1em; }
.hero-visual::before { bottom:-2px; }
.portrait { border-radius:6px 6px 0 0; }
.portrait img { border-radius:2px; }
/* Match the introductory course ribbon to the same left and right edges. */
.featured-course-inner { border-radius:6px; }
.featured-course-inner .course-details>summary { font-weight:500; }
.featured-course-inner .course-details>summary::after { display:grid; place-items:center; width:28px; height:28px; border:1px solid #c8b2b4; border-radius:50%; color:var(--rose); font-size:1.125rem; }
@media (max-width:87.5rem) {
  .hero-visual::after { display:none; }
}
@media (min-width:112rem) {
  .hero-name-row .hero-sketch { width:144px; height:88px; }
}
@media (max-width:68.75rem) {
  .hero-name-row { gap:36px; }
  .hero-name-row .hero-sketch { width:84px; height:60px; }
}
@media (max-width:63.99rem) {
  .portrait-caption { padding:8px 3px 2px; }
  .portrait-caption .signature { font-size:1.25rem; }
  .portrait-caption .portrait-subject { font-size:.75rem; letter-spacing:.04em; }
  .portrait-orbit { display:block; position:absolute; inset:-10px -8px; border:1px solid rgba(182,143,82,.35); border-radius:50%; transform:rotate(-4deg); z-index:-1; pointer-events:none; }
  .portrait { isolation:isolate; }
}
@media (max-width:47.99rem) {
  .hero-name-row { display:block; }
  .hero-name-row .hero-sketch { display:none; }
  .portrait-caption { justify-content:center; padding:6px 0 0; }
  .portrait-caption .signature { font-size:1.125rem; }
  .portrait-caption .portrait-subject { display:none; }
  .portrait-orbit { inset:-12px -8px; }
  .portrait { margin-right:3px; }
  .hero-heading .kicker { gap:7px; }
  .hero-heading .kicker::before { width:14px; }
  .featured-course-inner .course-details>summary { font-size:var(--body); }
}

/* Larger displays use their width without turning copy into screen-wide lines. */
@media (min-width:112rem) {
  :root { --body:1.125rem; --meta:.9375rem; --subhead:1.375rem; --heading:2.25rem; }
  .hero { padding-block:56px 64px; }
  .hero-visual { max-width:440px; }
  .hero-copy { max-width:52rem; gap:30px; }
  .hero-biography { max-width:43em; }
  .graduate-grid { column-gap:80px; }
  .student-shot { flex-basis:292px; }
  .student-shot>a { height:390px; }
}
@media (min-width:137.5rem) {
  .section-shell,.section-inner { width:min(2040px,calc(100% - 16vw)); }
  :root { --body:1.25rem; --meta:1rem; --subhead:1.5rem; --heading:2.5rem; }
  .hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:80px; }
  .hero-copy { max-width:none; }
  .hero-biography { max-width:46em; }
  .hero-visual { max-width:500px; }
  .hero-heading h1 { font-size:7rem; }
}

@media (max-width:68.75rem) {
  .section-shell,.section-inner { width:calc(100% - 48px); }
  .brand span { display:none; }
  .nav-links { gap:18px; }
  .hero { grid-template-columns:minmax(0,1fr) 296px; gap:40px; padding-block:48px; }
  :root { --body:1rem; }
  .hero-heading h1 { font-size:4rem; }
  .hero-visual::after { left:-64px; bottom:86px; width:116px; height:80px; }
  .hero-visual::before { inset:-26px -24px -12px; }
  .portrait::after { right:-16px; }
  .featured-course-copy { padding-right:164px; }
  .featured-course-inner::after { width:134px; right:34px; }
  .teaching-section .section-head>div,.planning-section .section-head>div,.experience-section .section-head>div { padding-right:110px; }
  .teaching-section .section-head>div::after,.planning-section .section-head>div::after,.experience-section .section-head>div::after { width:100px; height:74px; }
  .experience-grid { grid-template-columns:minmax(0,1fr) 300px; gap:40px; }
  .graduate-grid { grid-template-columns:230px minmax(0,1fr); column-gap:40px; }
  .selection-list>div { grid-template-columns:1fr; gap:4px; }
  .contact-grid { grid-template-columns:1fr; gap:28px; }
  .qr-item { gap:20px; }
}
/* Intermediate layout: full-width biography instead of a squeezed tablet column. */
@media (min-width:48rem) and (max-width:63.99rem) {
  .hero { grid-template-columns:minmax(0,1fr) 216px; grid-template-areas:"heading portrait" "stats portrait" "bio bio" "actions actions"; gap:24px 40px; align-items:start; }
  .hero::before { display:none; }
  .hero-copy,.hero-visual { display:contents; }
  .hero-visual::before,.hero-visual::after { display:none; }
  .hero-heading { grid-area:heading; }
  .portrait { grid-area:portrait; align-self:center; }
  .hero-stats { grid-area:stats; max-width:440px; }
  .hero-biography { grid-area:bio; max-width:48em; }
  .hero-actions { grid-area:actions; }
  .hero-heading h1 { font-size:3.5rem; }
  .graduate-grid { grid-template-columns:1fr; grid-template-areas:"heading" "score" "copy"; gap:24px; }
  .graduate-score { max-width:100%; display:grid; grid-template-columns:1fr auto; gap:4px 24px; }
  .graduate-score>p:first-child,.graduate-score h3 { grid-column:1; margin:0; }
  .graduate-score .score-value { grid-column:2; grid-row:1 / span 2; font-size:3rem; margin:0; }
  .graduate-score>p:last-child { grid-column:1/-1; margin-top:8px; }
  .experience-grid { grid-template-columns:minmax(0,1fr) 280px; gap:32px; }
}
@media (max-width:53.75rem) {
  :root { --header-height:104px; }
  .nav { min-height:60px; gap:12px; justify-content:space-between; }
  .nav-links { display:none; }
  .header-cta { padding-inline:12px; }
  .mobile-jump-nav { display:flex; justify-content:space-between; gap:4px; overflow-x:auto; scrollbar-width:none; min-height:44px; }
  .mobile-jump-nav a { justify-content:center; flex:0 0 auto; min-width:44px; padding-inline:6px; }
  .mobile-jump-nav::-webkit-scrollbar { display:none; }
}
@media (max-width:47.99rem) {
  :root { --heading:1.75rem; }
  .section-shell,.section-inner { width:calc(100% - 40px); }
  .section-space,.band { padding-block:44px; }
  .section-head { grid-template-columns:1fr; gap:14px; }
  .section-head>p { max-width:none; }
  :root { --body:1rem; }
  .hero { grid-template-columns:minmax(0,1fr) min(34%,132px); grid-template-areas:"heading portrait" "stats stats" "actions actions" "bio bio"; gap:20px 16px; padding-block:28px 32px; align-items:start; }
  .hero::before { display:none; }
  .hero-copy,.hero-visual { display:contents; }
  .hero-visual::before,.hero-visual::after { display:none; }
  .hero-heading { grid-area:heading; align-self:center; min-width:0; }
  .hero-heading .kicker { line-height:1.65; letter-spacing:0; }
  .hero-heading h1::after { width:19px; height:19px; right:-22px; top:1px; }
  .portrait::before { width:36px; height:12px; left:-10px; top:3px; }
  .portrait::after { width:54px; height:42px; right:-14px; top:-16px; }
  .hero-heading h1 { font-size:2.75rem; line-height:1.2; margin-block:10px 14px; }
  .hero-focus { display:block; font-size:var(--meta); line-height:1.8; font-weight:500; }
  .portrait { grid-area:portrait; align-self:center; padding:4px; box-shadow:0 8px 18px rgba(19,43,70,.07); }
  .hero-stats { grid-area:stats; }
  .hero-stats>div { padding:12px 16px; }
  .stat-number { font-size:2rem; }
  .hero-actions { grid-area:actions; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr)); gap:12px; }
  .hero-actions .btn { padding-inline:10px; gap:12px; }
  .hero-biography { grid-area:bio; padding-top:4px; padding-left:14px; }
  .featured-course { padding-bottom:32px; }
  .featured-course-inner { grid-template-columns:minmax(0,1fr) 64px; gap:12px 16px; padding:22px 18px 10px; }
  .featured-course-inner::after { display:none; }
  .featured-course-inner::before { width:12px; height:22px; right:12px; }
  .featured-course-copy { grid-column:1; grid-row:1; padding-right:0; }
  .course-poster { grid-column:2; width:64px; align-self:start; }
  .featured-course-copy h2 { display:block; }
  .course-subtitle { display:block; }
  .featured-course-copy>p:not(.kicker):not(.course-meta) { font-size:var(--meta); }
  .course-details { margin-top:4px; }
  .school-records { grid-template-columns:1fr; margin-top:24px; }
  .school-records>div,.school-records>div:first-child { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto; align-items:center; gap:16px; padding:18px 0; }
  .school-records>div+div { border-left:0; border-top:1px solid #45515b; }
  .school-records>div::after { display:none; }
  .school-records dd { margin:0; gap:6px; }
  .school-records dd strong { font-size:2rem; }
  .eju-row { grid-template-columns:1fr; gap:18px; }
  .eju-row dl { gap:12px; }
  .eju-row dd:not(.score-note) { font-size:1.75rem; }
  .principle-grid { grid-template-columns:1fr; gap:0; padding:0; margin-top:24px; }
  .principle-grid article,.principle-grid article:first-child { padding:18px 0 18px 36px; }
  .principle-grid article::before { position:absolute; left:0; top:20px; }
  .principle-grid article+article { border-top:1px solid var(--rule); border-left:0; }
  .principle-grid h3 { margin-bottom:6px; }
  .course-stage { margin-top:24px; }
  .course-tabs button { padding:14px 8px; font-size:var(--meta); }
  .course-panel { padding:22px 20px; }
  .course-list { grid-template-columns:1fr; gap:8px; margin-top:18px; }
  .material-note { padding:16px; }
  .lab-entry { grid-template-columns:minmax(0,1fr); gap:20px; padding:22px 20px; margin-top:24px; }
  .lab-entry::before { width:78px; height:48px; top:15px; left:auto; right:12px; transform:none; opacity:.65; }
  .lab-entry .kicker,.lab-entry h3 { padding-right:70px; }
  .lab-entry .btn { width:100%; min-width:0; white-space:normal; }
  .planning-grid { grid-template-columns:1fr; gap:28px; margin-top:24px; }
  .planning-grid>article+article { border-top:1px solid var(--rule); padding-top:28px; }
  .selection-list>div { gap:6px; }
  .student-media-grid { gap:16px; margin-top:24px; }
  .student-shot { flex-basis:calc(100% - 32px); max-width:300px; }
  .student-shot>a { height:356px; }
  .gallery-toolbar { gap:12px; }
  .graduate-grid { grid-template-columns:1fr; grid-template-areas:"heading" "score" "copy"; gap:24px; }
  .graduate-heading { padding-right:90px; }
  .graduate-heading::after { width:84px; height:66px; top:0; }
  .graduate-score::after { display:none; }
  .graduate-score { display:grid; grid-template-columns:1fr auto; gap:4px 16px; padding-top:16px; }
  .graduate-score>p:first-child,.graduate-score h3 { grid-column:1; margin:0; }
  .graduate-score .score-value { grid-column:2; grid-row:1 / span 2; font-size:3rem; align-self:center; margin:0; }
  .score-value span { font-size:var(--body); }
  .graduate-score>p:last-child { grid-column:1/-1; margin-top:10px; }
  .scope-row { grid-template-columns:1fr; gap:4px; }
  .graduate-copy .text-link { margin-right:16px; }
  .experience-grid { grid-template-columns:1fr; gap:28px; margin-top:24px; }
  .exp-row { padding:22px 0 22px 20px; }
  .exp-row::before { top:30px; }
  .project-list { padding-left:16px; }
  .tabito-block { max-width:520px; width:100%; margin-inline:auto; }
  .tabito-info { padding:22px; }
  .qr-grid { grid-template-columns:1fr; gap:16px; }
  .qr-item { padding:18px; gap:20px; }
  .qr-item img { width:120px; height:120px; }
  .site-footer { align-items:flex-start; flex-direction:column; gap:2px; padding-block:18px; }
  .site-footer>div { width:100%; justify-content:space-between; }
  .image-dialog { width:calc(100% - 24px); max-height:calc(100dvh - 24px); }
  .dialog-image { margin:16px auto; }
}
@media (max-width:22.49rem) {
  .section-shell,.section-inner { width:calc(100% - 32px); }
  .hero { gap:20px 14px; }
  .hero-heading h1 { font-size:2.5rem; }
  .hero-stats>div { padding-inline:14px; }
  .featured-course-inner { grid-template-columns:minmax(0,1fr) 64px; gap:12px 16px; }
  .course-poster { width:64px; }
  .eju-row dl { gap:8px; }
  .eju-row dd:not(.score-note) { font-size:1.5rem; }
  .qr-item { gap:16px; padding:14px; }
  .qr-item img { width:104px; height:104px; }
  .graduate-score { display:block; }
  .graduate-score .score-value { margin-block:12px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
@media print {
  .site-header,.hero-actions,.image-dialog,.gallery-toolbar,.skip-link,.hero-sketch,.portrait-orbit,.portrait-caption { display:none!important; }
  .section-shell,.section-inner { width:100%; }
  .band,.section-space,.hero { padding-block:24px; background:#fff; color:#111; }
  h1,h2,h3,p,dt,dd,span { color:#111!important; }
  .course-panel[hidden] { display:block!important; }
  .course-tabs { display:none; }
  .student-media-grid { display:grid; grid-template-columns:repeat(3,1fr); overflow:visible; }
  .student-shot { max-width:100%; }
  .student-shot>a { height:240px; }
  .hero::before,.hero-visual::before,.hero-visual::after,.portrait::before,.portrait::after,.section-head>div::after,.graduate-heading::after,.featured-course-inner::after,.lab-entry::before { display:none; }
  .section-head,.experience-grid,.graduate-grid,.contact-grid { gap:24px; }
  body { font-size:11pt; }
  .section-note,.secondary,.kicker { font-size:10pt; }
}
