/**
 * carlosclassen.com - visual style guide
 * 1. Theme tokens / 2. Header & hero / 3. Sections & lists
 * 4. Traces & contact / 5. Responsive layout.
 * Colors are monochrome: black, white and neutral grays.
 * Set your colors in :root and :root[data-theme="light"] below.
 */
:root{
  --bg:#000;
  --ink:#fff;
  --dim:#c9c9c9;
  --soft:#9a9a9a;
  --border:rgba(255,255,255,.19);
  --subtle:rgba(255,255,255,.08);
  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono',monospace;
  --gutter:clamp(20px,3.8vw,56px);
  --max:1460px;
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#fff;
  --ink:#000;
  --dim:#4b4b4b;
  --soft:#686868;
  --border:rgba(0,0,0,.14);
  --subtle:rgba(0,0,0,.05);
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.55 Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,summary:focus-visible,#portrait:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.skip-link{position:absolute;top:-999px;left:10px;z-index:100;padding:10px;background:var(--bg);border:1px solid var(--border)}
.skip-link:focus{top:12px}
.site-header{height:76px;padding:0 var(--gutter);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:clamp(16px,2.8vw,42px);position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 94%, transparent);backdrop-filter:blur(8px)}
.signature{font:700 33px/1 var(--mono);letter-spacing:-.08em;flex:none}
.primary-nav{display:flex;gap:clamp(12px,2vw,28px);align-items:center;min-width:0;overflow-x:auto;scrollbar-width:none}
.primary-nav::-webkit-scrollbar{display:none}
.primary-nav a,.theme-button,.mobile-menu summary{font:400 11px/1.15 var(--mono);white-space:nowrap}
.primary-nav a{padding:7px 0;border-bottom:1px solid transparent}
.primary-nav a:hover,.primary-nav a.active{border-color:var(--ink)}
.mobile-menu{display:none;position:relative}
.mobile-menu summary{list-style:none;cursor:pointer;border:1px solid var(--border);padding:8px 10px}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);display:grid;gap:8px;padding:12px;min-width:160px;background:var(--bg);border:1px solid var(--border)}
.theme-button{margin-left:auto;display:flex;align-items:center;gap:8px;background:var(--bg);color:var(--ink);border:1px solid var(--border);padding:9px 11px;flex:none}
.theme-symbol{font-size:18px;line-height:10px;color:var(--ink)}
/* Shared header layout: homepage, project and legal pages. */
.header-controls{display:flex;align-items:center;gap:7px;margin-left:auto;flex:none}
.header-controls .theme-button{margin-left:0;height:36px}
.hero{max-width:var(--max);min-height:calc(100svh - 76px);padding:44px var(--gutter) 70px;margin:auto;display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);align-items:center;gap:clamp(25px,3vw,64px)}
.index-label{font:400 11px/1.3 var(--mono);margin:0;color:var(--soft);padding-top:2px}
.section .index-label{font:500 clamp(14px,1.26vw,17px)/1.4 var(--mono);letter-spacing:-.02em;color:var(--ink)}
h1,h3,p{margin-top:0} 
h1{font-size:clamp(50px,6.1vw,103px);font-weight:800;line-height:.96;letter-spacing:-.065em;margin:0 0 30px}
.dot{color:var(--ink)}
.hero-name{font-size:clamp(21px,2vw,29px);letter-spacing:-.025em;margin:0 0 7px}
.roles{font:400 clamp(11px,1.04vw,14px)/1.7 var(--mono);margin:0 0 26px}
.roles span{color:var(--ink)}
.hero-text,.section-intro{font-size:clamp(16px,1.32vw,21px);line-height:1.55;max-width:40ch;color:var(--dim);margin:0}
.quiet-link{display:inline-flex;align-items:center;gap:19px;font:400 11px/1.2 var(--mono);padding:6px 0 11px;border-bottom:1px solid var(--border);margin-top:28px}
.quiet-link span{font:400 20px/1 Arial,sans-serif;color:var(--ink)}
.portrait-space{width:100%;height:min(70svh,710px);min-height:400px;position:relative;touch-action:pan-y}
#portrait{display:block;width:100%;height:100%;cursor:crosshair}
.section{max-width:var(--max);margin:auto;padding:clamp(64px,7.7vw,104px) var(--gutter);border-top:1px solid var(--border)}
.section-grid{display:grid;grid-template-columns:180px minmax(0,1fr);gap:clamp(22px,4vw,64px)}
.section-body{position:relative;padding-left:26px;border-left:1px solid var(--border)}
.timeline-heading,.project-toolbar,.traces-columns,.contact-form,.cv-link{margin-top:28px}
.timeline-heading{display:flex;justify-content:space-between;gap:18px;align-items:baseline}
.timeline-heading p,.minor-label{font:400 11px/1.3 var(--mono);color:var(--ink);margin:0}
.timeline-heading span{font-size:13px;color:var(--soft)}
.timeline{position:relative;padding-left:18px;border-left:1px solid var(--border)}
.timeline-item{position:relative;margin:0;padding:0 0 0 14px;border-bottom:1px solid var(--border)}
.timeline-item::before{content:'';position:absolute;left:-23px;top:21px;width:7px;height:7px;border-radius:50%;background:var(--ink)}
.timeline-item summary{list-style:none;display:grid;grid-template-columns:120px minmax(0,1fr) 24px;gap:16px;padding:16px 0;cursor:pointer;align-items:baseline}
.timeline-item summary::-webkit-details-marker{display:none}
.timeline-period,.timeline-kind,.entry-kind,.list-footnote,.cv-link,.form-bottom p{font:400 10px/1.35 var(--mono);color:var(--soft)}
.timeline-title{font-size:19px;line-height:1.3}
.timeline-expand{text-align:right;color:var(--ink);font-size:20px;line-height:1}
.timeline-item[open] .timeline-expand{transform:rotate(45deg)}
.timeline-detail{padding:0 0 18px 136px}
.timeline-detail p{margin:8px 0 0;max-width:44ch;color:var(--dim)}
.timeline-detail a{display:inline-block;margin-top:12px;border-bottom:1px solid var(--border);padding-bottom:4px}
.cv-link a{border-bottom:1px solid var(--border);padding-bottom:5px}
.project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filter-button,.sort-button{border:1px solid var(--border);background:transparent;color:var(--ink);padding:9px 11px;font:400 11px/1.2 var(--mono)}
.filter-button[aria-pressed="true"],.sort-button:hover,.filter-button:hover{background:var(--ink);color:var(--bg)}
.entries{border-top:1px solid var(--border);margin-top:20px}
.entry{display:grid;grid-template-columns:58px minmax(0,1fr) 170px;gap:18px;align-items:start;padding:18px 0;border-bottom:1px solid var(--border)}
.entry-no{font:400 10px/1.35 var(--mono);color:var(--soft);padding-top:5px}
.entry-title{font-size:clamp(22px,2vw,31px);line-height:1.12;letter-spacing:-.035em;font-weight:700;margin:0}
.entry-title a:hover,.entry-title a:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.entry-desc{margin:10px 0 0;max-width:42ch;color:var(--dim);font-size:15px;line-height:1.5}
.entry-kind{text-align:right;padding-top:6px}
.list-footnote{margin:14px 0 0}
/* TRACES: conversational navigation without boxes, colored accents or
   moving decorative indicators. The current tab is simply underlined.
   The inactive labels remain legible in both light and dark themes. */
.traces-explorer{margin-top:clamp(27px,3.8vw,48px);max-width:900px}
.trace-tabs{display:flex;align-items:baseline;gap:clamp(20px,4vw,52px);flex-wrap:wrap}
.trace-tab{appearance:none;border:0;background:transparent;color:var(--soft);
  padding:0 0 8px;font:400 clamp(18px,1.78vw,25px)/1.28 Arial,Helvetica,sans-serif;
  letter-spacing:-.025em;position:relative;cursor:pointer;
  transition:color .2s ease}
.trace-tab:hover,.trace-tab[aria-selected="true"]{color:var(--ink)}
.trace-tab[aria-selected="true"]::after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background:currentColor}
.trace-panels{padding-top:clamp(16px,2.5vw,30px);min-height:170px}
.trace-panel[hidden]{display:none!important}
.trace-panel .entries{margin-top:0;max-width:850px}
.trace-enter{animation:trace-enter .32s ease-out both}
@keyframes trace-enter{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.trace-panel .entry{grid-template-columns:56px minmax(0,1fr) 175px;gap:16px;padding:19px 0}
.trace-panel .entry-title{font-size:clamp(20px,1.7vw,26px)}
.trace-panel .entry-kind{grid-column:auto;grid-row:auto;text-align:right;padding-top:3px}

/* Contact deliberately uses hairline boxes instead of heavy buttons/cards. */
.contact-form{display:grid;gap:18px;max-width:660px}
.form-row{display:grid;gap:7px}
.form-row label{font:400 11px/1.3 var(--mono);color:var(--dim)}
.form-row input,.form-row textarea{width:100%;padding:13px 14px;border:1px solid var(--border);background:transparent;color:var(--ink);font-size:16px;line-height:1.45;border-radius:2px;transition:border-color .18s ease,background .18s ease}
.form-row input::placeholder,.form-row textarea::placeholder{color:var(--soft);opacity:1}
.form-row input:focus,.form-row textarea:focus{border-color:var(--ink);background:var(--subtle);box-shadow:none;outline:none}
.form-bottom{display:flex;align-items:baseline;justify-content:space-between;gap:22px;padding-top:5px}
.send-button{border:0;border-bottom:1px solid var(--ink);background:transparent;color:var(--ink);padding:7px 0 9px;font:400 12px/1.3 var(--mono)}
.send-button span{margin-left:17px;color:var(--ink);font-size:17px;vertical-align:middle}
.send-button:hover{border-color:var(--ink);color:var(--ink)}
.send-button:disabled{opacity:.4;cursor:wait}
#form-status{margin:0;min-height:1.5em;max-width:38ch;line-height:1.45}
#form-status[data-kind="success"]{color:var(--ink)}
#form-status[data-kind="error"]{color:var(--ink);font-weight:700}
/* Honeypot must not take visual space, but remains part of the POST. */
.bot-field{position:absolute;width:1px;height:1px;left:-9999px;overflow:hidden;pointer-events:none}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:34px}
  .portrait-space{order:-1;height:min(56svh,520px);min-height:300px}
  .section-grid{grid-template-columns:1fr;gap:18px}
  .section-body{padding-left:12px;border-left:0}
}
@media (max-width: 760px){
  html{scroll-padding-top:64px}
  .site-header{height:64px;gap:10px}
  .signature{font-size:29px}
  .primary-nav{display:none}
  .mobile-menu{display:block;margin-left:auto}
  .theme-button{margin-left:0;padding:8px}
  .header-controls{margin-left:0;gap:5px}
  .header-controls .theme-button{height:33px}
  .theme-name{display:none}
  .hero{padding-top:22px;gap:14px}
  h1{font-size:clamp(40px,13vw,66px)}
  .hero-name{font-size:19px}
  .hero-text,.section-intro{font-size:16px}
  .portrait-space{height:50svh;min-height:290px;position:relative;background:var(--bg)}
  .timeline-heading{display:block}
  .timeline-heading span{display:block;margin-top:6px}
  .timeline-item summary{grid-template-columns:84px minmax(0,1fr) 18px;gap:10px}
  .timeline-detail{padding-left:94px}
  .project-toolbar,.form-bottom{display:block}
  .trace-tabs{gap:clamp(16px,5vw,28px)}
  .trace-tab{font-size:clamp(18px,4.7vw,22px)}
  .trace-panel .entry{grid-template-columns:50px minmax(0,1fr);gap:8px 12px}
  .trace-panel .entry-kind{grid-column:2;text-align:left;padding-top:0}
  .filters{margin-bottom:12px}
  .entry{grid-template-columns:50px minmax(0,1fr);gap:8px 12px}
  .entries-small .entry{grid-template-columns:40px minmax(0,1fr);gap:7px 12px}
  .entry-kind{grid-column:2;text-align:left;padding-top:0}
}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}.trace-enter{animation:none}.trace-tab{transition:none}}

/* ================================================================
 * CONSTRUCTIVIST REVISION - art direction & scroll chapters
 * ---------------------------------------------------------------
 * The image layers reuse assets/art-etched.webp, derived from the supplied
 * black/ivory circuit diagram. None of them intercept clicks or get read
 * by screen readers. `effects.js` moves them a few pixels while scrolling.
 * The v14 overrides below keep content surfaces in the current theme.
 * ================================================================ */
:root{
  --display:'DejaVu Sans Condensed','Arial Narrow',Arial,sans-serif;
  --art-filter:invert(0);
  --trace-bg:#fff;
  --trace-ink:#000;
  --trace-muted:rgba(0,0,0,.65);
  --trace-line:rgba(0,0,0,.2);
}
:root[data-theme="light"]{
  --art-filter:invert(1);
  --trace-bg:#000;
  --trace-ink:#fff;
  --trace-muted:rgba(255,255,255,.72);
  --trace-line:rgba(255,255,255,.23);
}
/* Monospace is the default editorial voice. Heavy condensed grotesk is
   reserved for the big hello and headings; no external font requests. */
body{font-family:var(--mono);letter-spacing:-.015em}
.hero{position:relative;z-index:1;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr)}
.hero::after{content:'[ experiment / 001 ]';position:absolute;left:var(--gutter);bottom:22px;color:var(--soft);font:10px/1 var(--mono);letter-spacing:.02em}
h1{font-family:var(--display);font-weight:900;font-stretch:condensed;font-size:clamp(56px,7.1vw,115px);line-height:.89;letter-spacing:-.075em;text-transform:lowercase}
.hero-name{font-family:var(--mono);font-size:clamp(17px,1.75vw,24px);font-weight:600;letter-spacing:-.04em;line-height:1.4}
.hero-text,.section-intro{font:400 clamp(15px,1.25vw,19px)/1.65 var(--mono);letter-spacing:-.035em;max-width:44ch}
.hero-stamp{margin:24px 0 0;padding:7px 10px;border-left:4px solid var(--ink);display:inline-block;color:var(--soft);font:10px/1.4 var(--mono);text-transform:uppercase;letter-spacing:.04em}
.hero-stamp span{color:var(--ink);padding:0 5px}
.roles{font-weight:600;letter-spacing:-.025em;text-transform:lowercase}
.site-header{border-bottom:2px solid var(--ink)}
.primary-nav a{padding:2px 0 3px;border-bottom:2px solid transparent;font-size:11px;letter-spacing:-.035em}
.primary-nav a.active,.primary-nav a:hover{border-color:currentColor}
.section{position:relative;isolation:isolate;overflow:hidden}
.section .section-grid{position:relative;z-index:2}
.section .index-label{font:800 clamp(16px,1.55vw,21px)/1.25 var(--mono);letter-spacing:-.05em;text-transform:lowercase;white-space:nowrap}
.section-body{border-left:2px solid var(--border)}
.timeline-title,.entry-title{font-family:var(--mono);font-weight:700;letter-spacing:-.05em}
.timeline-heading p{font-weight:700;text-transform:lowercase}
/* Sparse mechanical crop at Projects: acts as a prelude to the darker Traces. */
.section-projects{min-height:550px}
.section-art{position:absolute;pointer-events:none;inset:0;z-index:0;overflow:hidden;--art-shift:0px;--art-turn:0deg}
.section-art::before{content:'';position:absolute;background-image:url('assets/art-etched.webp');background-repeat:no-repeat;background-position:center;background-size:cover;transform:translate3d(0,var(--art-shift),0) rotate(var(--art-turn));will-change:transform;filter:var(--art-filter)}
.section-art--project::before{width:clamp(320px,63vw,980px);height:clamp(220px,39vw,680px);right:-14%;top:-24%;opacity:.18;mask-image:linear-gradient(to left,black 20%,transparent 95%)}
.section-projects::after{content:'/// 003  -  FILED MATERIAL';font:10px/1 var(--mono);position:absolute;top:19px;right:var(--gutter);color:var(--soft);letter-spacing:.08em}
/* Project tiles are still semantic articles rendered from content.js. */
#project-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-top:0;margin-top:22px}
#project-list .entry{padding:0;display:flex;flex-direction:column;gap:13px;border:1px solid var(--border);min-width:0;position:relative;background:var(--bg)}
#project-list .entry-visual{height:clamp(125px,12vw,188px);width:100%;display:block;overflow:hidden;position:relative;background-color:var(--ink);background-image:url('assets/art-etched.webp');background-size:170% auto;background-position:20% 50%;filter:grayscale(1)}
#project-list .entry:nth-child(2) .entry-visual{background-position:80% 30%;background-size:210% auto}
#project-list .entry:nth-child(3) .entry-visual{background-position:43% 80%;background-size:230% auto}
#project-list .entry-visual img{display:block;width:100%;height:100%;object-fit:cover;filter:grayscale(1)}
#project-list .entry-visual::after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 0 1px var(--border);pointer-events:none}
#project-list .entry-no{padding:0 16px;font-weight:700;color:var(--soft)}
#project-list .entry>div:nth-of-type(2){padding:0 16px;min-height:140px}
#project-list .entry-title{font-size:clamp(17px,1.65vw,24px);line-height:1.12}
#project-list .entry-desc{font:12px/1.55 var(--mono);color:var(--dim);margin-top:10px}
#project-list .entry-kind{padding:10px 16px 14px;border-top:1px solid var(--border);width:100%;text-align:left;font:10px/1.45 var(--mono)}
#project-list .entry:hover .entry-visual{background-size:185% auto}
@media(hover:hover){#project-list .entry:has(.entry-title a):hover{border-color:var(--ink)}}
#project-list .entry:focus-within{outline:2px solid var(--ink);outline-offset:2px}
/* Unboxed category filters with a black/white selected line, not colored chips. */
.filter-button,.sort-button{background:transparent;color:var(--soft);padding:2px 0 4px;border:0;border-bottom:2px solid transparent;border-radius:0;font:500 12px/1.2 var(--mono)}
.filter-button[aria-pressed="true"],.filter-button:hover,.sort-button:hover{background:transparent;color:var(--ink);border-bottom-color:var(--ink)}
.filters{gap:clamp(16px,2.8vw,35px)}
.sort-button{color:var(--ink)}
/* Full-bleed chapter break; v14 theme tokens keep the content in the current theme. */
#traces.section{max-width:none;width:100%;margin:0;background:var(--trace-bg);color:var(--trace-ink)}
#traces .section-grid{max-width:calc(var(--max) - 2 * var(--gutter));margin:0 auto}
#traces .section-intro{max-width:45ch}
#traces .section-body{border-color:var(--trace-line)}
#traces .section-art--traces{opacity:1}
.section-art--traces::before{width:clamp(580px,85vw,1600px);height:clamp(370px,58vw,920px);top:-22%;right:-26%;opacity:.20;mask-image:linear-gradient(to right,transparent 0%,black 44%)}
:root[data-theme="light"] .section-art--traces::before{filter:none}
:root[data-theme="dark"] .section-art--traces::before{filter:invert(1)}
#traces .signal-reticle{position:absolute;right:clamp(15px,4vw,65px);bottom:18px;z-index:1;font:15px/1 var(--mono);color:var(--trace-muted);letter-spacing:.1em}
#traces .signal-reticle span{font-size:10px;margin-left:8px}
#traces::before{content:'';position:absolute;left:0;right:0;top:0;height:13px;background:repeating-linear-gradient(90deg,var(--trace-ink) 0 12px,transparent 12px 18px);opacity:.2;z-index:1;pointer-events:none}
#traces .trace-tabs{gap:clamp(20px,4vw,48px)}
#traces .trace-tab{font:600 clamp(20px,2.3vw,30px)/1.2 var(--mono);color:var(--trace-muted);padding:0 0 3px;letter-spacing:-.055em}
#traces .trace-tab[aria-selected="true"],#traces .trace-tab:hover{color:var(--trace-ink)}
#traces .trace-tab[aria-selected="true"]::after{bottom:0;height:2px;background:currentColor}
#traces .trace-panel .entry{background:color-mix(in srgb,var(--trace-bg) 88%,transparent);border-color:var(--trace-line)}
#traces .trace-panel .entry-title a:hover{opacity:.68;color:var(--trace-ink)}
/* Contact returns to the ordinary page palette; the source image survives
   only as a receding, low-contrast fragment at the bottom right. */
#contact{padding-bottom:clamp(110px,16vw,260px)}
.section-art--contact::before{width:clamp(520px,74vw,1200px);height:clamp(300px,42vw,760px);right:-22%;bottom:-52%;opacity:.13;mask-image:linear-gradient(to bottom,transparent 0%,black 67%)}
#contact .section-body{border-color:var(--border)}
#contact .form-row input,#contact .form-row textarea{border:0;border-bottom:1px solid var(--ink);border-radius:0;background:transparent;padding:12px 0}
#contact .form-row input:focus,#contact .form-row textarea:focus{background:transparent;border-bottom:2px solid var(--ink)}
#contact .send-button{font:700 13px/1.2 var(--mono);text-transform:lowercase}
#contact .send-button span{color:var(--ink)}
@media(max-width:920px){.hero{grid-template-columns:1fr}.section-art--traces::before{right:-55%;width:120%;opacity:.16}}
@media(max-width:760px){
  .hero::after{bottom:8px}
  #project-list{grid-template-columns:1fr;gap:17px}
  #project-list .entry-visual{height:180px}
  #project-list .entry>div:nth-of-type(2){min-height:auto;padding-bottom:16px}
  .section-art--project::before{right:-72%;width:190%}
  .section-art--traces::before{right:-82%;width:180%;opacity:.16}
  .section-art--contact::before{right:-86%;width:170%}
  .section .index-label{font-size:clamp(16px,4.3vw,19px)}
  #traces .section-grid{max-width:none}
  #traces .trace-tab{font-size:clamp(18px,5vw,23px)}
}
@media(prefers-reduced-motion:reduce){.section-art::before{will-change:auto;transform:none!important;transition:none!important}}
/* Small oddities, never a second heavy animation system. */
/* Brackets animate independently; the header never shifts. */
.hero-stamp::before{content:'';display:inline-block;width:6px;height:6px;background:var(--ink);margin-right:10px;vertical-align:1px;animation:signal-pulse 3.4s steps(1,end) infinite}
#project-list .entry-visual{transition:background-size .9s ease}
#traces .signal-reticle::before{content:'';display:inline-block;width:16px;height:16px;border:1px dashed currentColor;border-radius:50%;vertical-align:-4px;margin-right:9px;animation:signal-turn 30s linear infinite}
.section-art--traces::before{animation:art-flicker 14s ease-in-out infinite alternate}
@keyframes signal-pulse{0%,70%,100%{opacity:.95}71%,78%{opacity:.2}}
@keyframes signal-turn{to{transform:rotate(360deg)}}
@keyframes art-flicker{from{opacity:.13}to{opacity:.22}}
@media(prefers-reduced-motion:reduce){.hero-stamp::before,#traces .signal-reticle::before,.section-art--traces::before{animation:none}.signature,#project-list .entry-visual{transition:none}}

/* ===== v14: quieter opening, consistent themes, entangled chapter art ===== */
/* The headline is a single text line in normal desktop layouts, with a natural
   wrap on very narrow screens. The typewriter face contrasts with the body mono. */
.hero::after{content:none}
.hero h1{font-family:'Courier New',Courier,monospace;font-size:clamp(32px,4.15vw,64px);font-weight:700;line-height:1.06;letter-spacing:-.085em;text-transform:none;margin-bottom:24px}
.hero-name{font-weight:400;font-size:clamp(16px,1.48vw,21px);letter-spacing:-.04em}
.roles span,.quiet-link span,.theme-symbol{color:var(--ink)}
.hero .roles{margin-bottom:19px}
/* Persistent selected underline only. Hover can brighten a label, but cannot
   leave a misleading line behind when a filter is toggled off. */
.filter-button{padding:0 0 2px;line-height:1.15;border-bottom:2px solid transparent}
.filter-button:hover{border-bottom-color:transparent;color:var(--ink)}
.filter-button[aria-pressed="true"],.filter-button[aria-pressed="true"]:hover{border-bottom-color:var(--ink);color:var(--ink)}
.primary-nav a{padding:0 0 1px;line-height:1.15}
#traces .trace-tab{padding-bottom:1px}
/* The same black/white palette for every content surface. The art alone
   reverses and overlaps in decorative fragments, never the cards. */
:root,:root[data-theme="light"]{--trace-bg:var(--bg);--trace-ink:var(--ink);--trace-muted:var(--dim);--trace-line:var(--border)}
#traces.section{background:var(--bg);color:var(--ink)}
#traces .trace-panel .entry,#project-list .entry{background:var(--bg);color:var(--ink)}
#project-list .entry-visual{background-color:var(--bg);background-image:none;filter:none;border-bottom:1px solid var(--border)}
/* Empty example thumbnails carry a theme-matched geometric mark, not a
   reversed black panel. Real uploaded images retain their own tones. */
#project-list .entry-visual:not(:has(img))::before{content:'';position:absolute;inset:15%;background-image:url('assets/art-etched.webp');background-size:cover;background-position:20% 50%;filter:var(--art-filter);opacity:.52}
#project-list .entry:nth-child(2) .entry-visual::before{background-position:80% 30%;background-size:155% auto}
#project-list .entry:nth-child(3) .entry-visual::before{background-position:43% 80%;background-size:180% auto}
#project-list .entry-visual img{filter:none}
/* Multiple layers from the same source: one drifting crop, a second crop
   counter-moving across it, and two very slow independent orbital rings. */
.section-art{--art-cross:0px;color:var(--ink)}
.section-art::before{transform:translate3d(var(--art-cross),var(--art-shift),0) rotate(var(--art-turn));will-change:auto}
.section-art::after{content:'';position:absolute;background:url('assets/art-etched.webp') center/cover no-repeat;filter:var(--art-filter);width:clamp(230px,40vw,650px);height:clamp(210px,36vw,550px);left:-16%;bottom:-25%;opacity:.14;transform:translate3d(calc(-1 * var(--art-cross)),calc(-1 * var(--art-shift)),0) rotate(calc(-1 * var(--art-turn) - 18deg));mask-image:radial-gradient(ellipse,black 15%,transparent 73%)}
.section-art--about::before{width:clamp(320px,48vw,730px);height:clamp(250px,32vw,530px);right:-18%;top:-40%;opacity:.10;mask-image:radial-gradient(ellipse,black 15%,transparent 72%)}
.section-art--about::after{opacity:.05}
.section-art--project::before{opacity:.23;right:-12%;top:-14%}
.section-art--project::after{opacity:.18;left:-12%;bottom:-34%}
.section-art--traces::before,:root[data-theme="light"] .section-art--traces::before,:root[data-theme="dark"] .section-art--traces::before{filter:var(--art-filter);animation:none;opacity:.25;top:-23%;right:-15%;mask-image:linear-gradient(90deg,transparent 8%,black 70%)}
.section-art--traces::after{opacity:.24;left:-10%;bottom:-38%;width:clamp(280px,55vw,850px)}
.section-art--contact::before{opacity:.19;bottom:-26%}
.section-art--contact::after{opacity:.10;bottom:-30%}
.art-motif{position:absolute;width:clamp(240px,40vw,600px);height:auto;right:-7%;top:6%;opacity:.20;transform:translate3d(calc(-1 * var(--art-cross)),calc(-1 * var(--art-shift)),0) rotate(calc(-1 * var(--art-turn)));pointer-events:none}
.section-art--about .art-motif{opacity:.10;right:-12%;top:-18%}
.section-art--project .art-motif{right:-4%;top:17%;opacity:.25}
.section-art--traces .art-motif{right:5%;top:-2%;opacity:.26}
.section-art--contact .art-motif{right:-10%;top:39%;opacity:.14}
.orbit-turn,.orbit-inner{transform-origin:250px 250px;animation-play-state:paused}
.orbit-turn{animation:orbit-clock 44s linear infinite;animation-play-state:paused}
.orbit-inner{animation:orbit-clock 29s linear infinite reverse;animation-play-state:paused}
.art-visible .orbit-turn,.art-visible .orbit-inner{animation-play-state:running}
@keyframes orbit-clock{to{transform:rotate(360deg)}}
#traces::before{opacity:.14}
.section-projects::after{content:none}
@media(max-width:920px){.hero h1{font-size:clamp(32px,6vw,60px)}}
@media(max-width:760px){.hero h1{font-size:clamp(28px,8vw,48px);margin-bottom:18px}.art-motif{width:76vw;right:-25%;opacity:.15}.section-art--traces .art-motif{right:-18%}.section-art--project::before{right:-52%;opacity:.18}.section-art--traces::before{right:-60%;opacity:.18}.section-art::after{opacity:.10}}
@media(prefers-reduced-motion:reduce){.section-art::after,.art-motif{transform:none!important}.orbit-turn,.orbit-inner{animation:none!important}}

/* ===== v15: four distinct chapter studies =====
   The original artwork stays in the project thumbnail placeholders/source.
   All chapter art follows currentColor and never changes content surfaces. */
.section-art::before,.section-art::after{content:none;animation:none}
.chapter-study{position:absolute;display:block;right:-3%;width:clamp(440px,68vw,1000px);height:auto;pointer-events:none;opacity:.27;transform:translate3d(var(--art-cross),var(--art-shift),0);}
.section-art--about .chapter-study{width:clamp(480px,64vw,940px);right:-4%;top:-16%;opacity:.27}
.section-art--project .chapter-study{right:-7%;top:-12%;opacity:.30}
.section-art--traces .chapter-study{right:-5%;top:-14%;opacity:.29}
/* The round rotating artwork is exclusive to contact; it sits to the right
   of the relatively narrow form instead of crossing the input fields. */
.section-art--contact .art-motif{width:clamp(290px,35vw,520px);right:0;top:17%;opacity:.48;transform:translate3d(0,var(--art-shift),0)}
#contact .contact-form{position:relative;max-width: min(660px,100%);background:var(--bg)}
#about .timeline{background:var(--bg)}
#about .section-intro,#projects .section-intro,#traces .section-intro,#contact .section-intro{background:color-mix(in srgb,var(--bg) 86%,transparent)}
#traces .trace-tabs,#projects .project-toolbar{position:relative;background:color-mix(in srgb,var(--bg) 76%,transparent)}
@media(max-width:1100px){.section-art--contact .art-motif{right:-14%;top:31%;opacity:.30}}
@media(max-width:760px){
  .chapter-study{width:135vw!important;right:-48%!important;top:-4%!important;opacity:.20!important}
  .section-art--contact .art-motif{width:86vw;right:-20%;top:auto;bottom:-5%;opacity:.30}
  #contact{padding-bottom:clamp(185px,53vw,275px)}
}
@media(prefers-reduced-motion:reduce){.chapter-study{transform:none!important}}


/* ===== v16: soft matter, woven margins, monochrome controls ===== */
/* Solid membranes occupy the free upper-right of About. The actual timeline
   and prose remain in the foreground, with opaque backgrounds as needed. */
.section-art--about .chapter-study{width:clamp(400px,48vw,690px);right:-1%;top:-2%;opacity:.73}
#about .section-intro{background:var(--bg)}
#about .timeline-heading{background:var(--bg)}
/* The network is a real layout element, not a background behind the cards. */
.project-margin{min-width:0;align-self:start}
.project-margin .section-art--project{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:240/410;margin-top:30px;overflow:hidden}
.project-margin .section-art--project .woven-study{position:static;width:100%;height:100%;opacity:.88;transform:none}
/* No colored plus or accent hover on expanding timeline entries. Keep a
   keyboard-visible outline, but make it monochrome. */
.timeline-expand,.timeline-item:hover .timeline-expand,.timeline-item[open] .timeline-expand{color:var(--ink)}
.timeline-item summary:focus-visible{outline-color:var(--ink)}
/* Send: line first, then four edges grow in on hover or keyboard focus.
   On pointer-down the button flips black/white; submission JS is unchanged. */
#contact .send-button{position:relative;isolation:isolate;border:0;background:transparent;color:var(--ink);padding:10px 15px;white-space:nowrap;transition:background-color .28s cubic-bezier(.2,.7,.25,1),color .2s ease}
#contact .send-button span{color:currentColor}
#contact .send-button::before,#contact .send-button::after{content:"";position:absolute;inset:0;pointer-events:none;transition:transform .28s cubic-bezier(.2,.7,.25,1),opacity .2s}
#contact .send-button::before{border-top:1px solid currentColor;border-bottom:1px solid currentColor;transform:scaleX(.35);transform-origin:center;opacity:0}
#contact .send-button::after{border-left:1px solid currentColor;border-right:1px solid currentColor;transform:scaleY(.15);opacity:0}
#contact .send-button:hover:not(:disabled)::before,#contact .send-button:focus-visible::before,#contact .send-button:hover:not(:disabled)::after,#contact .send-button:focus-visible::after{transform:scale(1);opacity:1}
#contact .send-button:hover{color:var(--ink);border-color:var(--ink)}
#contact .send-button:hover:not(:disabled),#contact .send-button:focus-visible,#contact .send-button:disabled{background:var(--bg)}
#contact .send-button:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
#contact .send-button:active:not(:disabled),#contact .send-button.send-pulse{background:var(--ink);color:var(--bg)}
#contact .send-button:disabled{opacity:1;cursor:wait}
#contact .send-button:disabled:not(.send-pulse){color:var(--dim)}
@media(max-width:920px){.project-margin .section-art--project{width:100%;height:154px;aspect-ratio:auto;margin-top:12px}.project-margin .section-art--project .woven-study{width:100%;height:100%;object-fit:contain}}
@media(max-width:760px){.section-art--about .chapter-study{width:94vw!important;right:-25%!important;top:2%!important;opacity:.24!important}.project-margin .section-art--project .woven-study{width:100%!important;height:100%;opacity:.83!important;right:auto!important;top:auto!important}}
@media(prefers-reduced-motion:reduce){#contact .send-button,#contact .send-button::before,#contact .send-button::after{transition:none}}

/* ===== v18: contour landscape, marginal weave, quiet chapter break ===== */
/* Full-section terrain sits behind About, with low contrast so the CV and
   introduction remain readable. Opaque text panels are no longer necessary. */
#about .section-art--about .topo-study{position:absolute;inset:0;width:100%;height:100%;transform:none;opacity:.23}
#about .section-intro,#about .timeline-heading,#about .timeline{background:transparent}
#about .section-body{background:transparent}
/* Restore the artwork below the Projects heading. It stretches along the
   left margin even if the list grows, without touching the opaque cards. */
.project-margin{align-self:stretch;display:flex;flex-direction:column}
.project-margin .section-art--project{flex:1;min-height:260px;max-height:920px;aspect-ratio:auto;margin-top:22px}
.project-margin .section-art--project .woven-study{position:absolute;inset:0;width:100%;height:100%;opacity:.91;transform:none}
/* The old thick striped band was a decorative ::before, not a card border. */
#traces::before{content:none}
#traces.section{border-top:1px solid var(--border)}
/* Let the original orbital study show through the transparent form. */
#contact .contact-form,#contact .section-intro{background:transparent}
#contact .form-row input,#contact .form-row textarea{background:transparent}
.section-art--contact .art-motif{right:-7%;top:19%;opacity:.48}
@media(max-width:1100px){.section-art--contact .art-motif{right:-15%;top:31%}}
@media(max-width:920px){.project-margin .section-art--project{flex:none;min-height:0;height:154px;margin-top:12px}}
@media(max-width:760px){
  #about .section-art--about .topo-study{width:100%!important;height:100%;inset:0!important;opacity:.19!important}
  .project-margin .section-art--project .woven-study{width:100%!important;inset:0!important;opacity:.85!important}
  .section-art--contact .art-motif{right:-24%;bottom:-4%;top:auto}
}
/* A quiet overlap with the right edge of the transparent message field. */
#contact .section-art--contact .art-motif{width:clamp(330px,39vw,560px);right:2%;top:19%;opacity:.30}
@media(max-width:1100px){#contact .section-art--contact .art-motif{right:-5%;top:31%;opacity:.25}}
@media(max-width:760px){#contact .section-art--contact .art-motif{width:86vw;right:-21%;top:auto;bottom:12%;opacity:.20}}


/* ===== v19: corner index, monochrome orbital depth, live message count ===== */
/* Separate the chapter number from the greeting, in the same margin as
   the header signature. On narrow screens reserve room above the portrait. */
.hero{padding-top:clamp(64px,7vw,92px)}
.hero > .hero-index{position:absolute;left:var(--gutter);top:24px;
  font:800 clamp(16px,1.55vw,21px)/1.25 var(--mono);letter-spacing:-.05em;color:var(--ink);z-index:3}
@media(max-width:920px){.hero{padding-top:66px}}
@media(max-width:760px){.hero{padding-top:55px}.hero > .hero-index{top:18px;font-size:clamp(16px,4.3vw,19px)}}
/* Tonal variation is applied inside the SVG, not as a color filter.
   The parent opacity keeps the transparent form readable in both themes. */
#contact .section-art--contact .art-motif{opacity:.76}
@media(max-width:1100px){#contact .section-art--contact .art-motif{opacity:.40}}
@media(max-width:760px){#contact .section-art--contact .art-motif{opacity:.27}}
/* Place the count in the field's lower-right corner, above its baseline.
   Bottom padding prevents typed content from running underneath it. */
.message-field{position:relative;min-width:0}
#contact .message-field textarea{display:block;padding-bottom:34px;resize:vertical}
.message-count{position:absolute;right:8px;bottom:9px;color:var(--dim);font:11px/1 var(--mono);font-variant-numeric:tabular-nums;pointer-events:none;background:var(--bg);padding:3px 4px}
.message-count.at-limit{color:var(--ink);font-weight:700}

/* ===== v20: small refinements, equal bracket displacement ===== */
.hero > .hero-index{top:38px}
@media(max-width:920px){.hero{padding-top:78px}.hero > .hero-index{top:34px}}
@media(max-width:760px){.hero{padding-top:66px}.hero > .hero-index{top:29px}}
.signature{display:inline-flex;align-items:center;gap:.31em;letter-spacing:-.08em;white-space:nowrap}
.signature span{display:inline-block;transition:transform .25s cubic-bezier(.2,.7,.3,1)}
.signature:hover .bracket-left,.signature:focus-visible .bracket-left{transform:translateX(-4px)}
.signature:hover .bracket-right,.signature:focus-visible .bracket-right{transform:translateX(4px)}
@media(prefers-reduced-motion:reduce){.signature span{transition:none}}

/* v23 / CV link: transparent interior keeps the terrain visible.
   A stable monochrome border gains a soft halo on hover or keyboard focus.
   The button never fills in; layout and text contrast stay constant. */
#about .cv-outline{display:inline-flex;align-items:center;gap:20px;margin-top:24px;padding:11px 14px;color:var(--ink);font:500 12px/1.3 var(--mono);text-decoration:none;border:1px solid var(--ink);background:transparent;transition:box-shadow .2s ease}
#about .cv-outline:hover,#about .cv-outline:focus-visible{box-shadow:0 0 10px color-mix(in srgb,var(--ink) 34%,transparent),inset 0 0 5px color-mix(in srgb,var(--ink) 10%,transparent)}
#about .cv-outline:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
@media(prefers-reduced-motion:reduce){#about .cv-outline{transition:none}}

/* ===== v24: personal introduction and smooth timeline disclosure ===== */
.hero .hero-name{margin-bottom:20px}
/* A slightly longer headline than v23: keep its existing font and fit. */
.hero h1{font-size:clamp(30px,3.8vw,59px)}
@media(max-width:920px){.hero h1{font-size:clamp(30px,5.6vw,56px)}}
@media(max-width:760px){.hero h1{font-size:clamp(26px,7.25vw,45px)}}
.timeline-item .timeline-expand{transition:transform .52s cubic-bezier(.22,.68,.24,1)}
.timeline-item.timeline-closing .timeline-expand{transform:rotate(0deg)}
@media(prefers-reduced-motion:reduce){.timeline-item .timeline-expand{transition:none}}

/* ===== v25: wider copy, hex identifiers, content-wide phase field ===== */
#about .section-intro{max-width:66ch}
#about .timeline-heading{margin-bottom:8px}
.timeline-code{display:block;margin-top:4px;font:400 10px/1.2 var(--mono);color:var(--soft);letter-spacing:.04em}
/* The phase field occupies only the content column; the chapter label stays clear. */
#traces .section-body{isolation:isolate}
#traces .section-intro{max-width:none;position:relative;background:transparent}
#traces .section-art--traces{position:absolute;inset:0 0 0 26px;z-index:-1}
#traces .section-art--traces .chapter-study{position:absolute;inset:0!important;width:100%!important;height:100%;opacity:.27!important;transform:none}
#traces .trace-tabs{background:transparent}
@media(max-width:920px){#traces .section-art--traces{inset:0}}
@media(max-width:760px){#traces .section-art--traces .chapter-study{opacity:.19!important}}
/* Start the mathematical study just below the introduction, preventing
   its tiny coordinate labels from overprinting the prose. */
#traces .section-art--traces{top:40px}
@media(max-width:760px){#traces .section-art--traces{top:84px}}

/* ===== v26: uncluttered phase field and contact copy ===== */
/* Reserve enough vertical room to show the curves without squashing them.
   Stay within the content column; keep its section heading unobstructed. */
#traces .section-body{min-height:clamp(340px,30vw,460px)}
#traces .section-art--traces{top:12px;bottom:0}
#contact .section-intro{max-width:none}
#contact #form-status:empty{display:none}
@media(max-width:760px){
  #traces .section-body{min-height:330px}
  #traces .section-art--traces{top:64px;bottom:0}
}

/* ===== v27: geographic CV groups and transparent traces ===== */
.timeline-groups{display:grid;gap:28px}
.timeline-group{min-width:0}
.timeline-group-title{font:600 12px/1.4 var(--mono);margin:0 0 8px;color:var(--dim)}
.timeline-location{display:block;margin-top:4px;color:var(--ink);font:500 11px/1.35 var(--mono)}
#about .timeline-period{font-size:11px}
#traces .trace-panel .entry{background:transparent}
@media(max-width:760px){.timeline-groups{gap:24px}.timeline-title{font-size:clamp(15px,4.1vw,19px)}}

/* ===== v28: degree subtitles and the unified chronological traces archive ===== */
.timeline-qualification{display:block;margin-top:4px;color:var(--dim);font:400 11px/1.45 var(--mono);letter-spacing:normal}
#traces .traces-explorer{max-width:none;margin-top:28px;position:relative}
#traces .trace-toolbar{margin-top:0;background:transparent;gap:18px 30px}
#traces .trace-periods{margin-left:auto;gap:20px}
#trace-list{margin-top:18px;min-height:96px}
#trace-list .entry{grid-template-columns:92px minmax(0,1fr) minmax(100px,150px);gap:16px;padding:15px 0;background:transparent;color:var(--ink);border-color:var(--border)}
#trace-list .entry-no{padding-top:3px}
#trace-list .trace-date{display:block;margin-top:5px;white-space:nowrap;font:400 10px/1.3 var(--mono);color:var(--dim)}
#trace-list .entry-title{font-size:clamp(17px,1.65vw,23px);line-height:1.25;letter-spacing:-.035em}
#trace-list .entry-title a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
#trace-list .entry-title a::after{content:' \2197';font-weight:400;font-size:.75em}
#trace-list .entry-desc{max-width:none;font:400 12px/1.5 var(--mono);margin-top:6px}
#trace-list .entry-kind{font:400 10px/1.4 var(--mono);text-align:right;padding-top:4px}
@media(max-width:760px){
  #traces .trace-periods{margin-left:0}
  #trace-list .entry{grid-template-columns:76px minmax(0,1fr);gap:6px 12px;padding:14px 0}
  #trace-list .entry-kind{grid-column:2;text-align:left;padding-top:0}
}

/* v28 / Contact: deforming orbital ribbons, no exterior decoration.
   Keep the strongest shapes beside the form and the softer tones behind it. */
#contact .section-art--contact .aperture-study{opacity:.76}
@media(max-width:1100px){#contact .section-art--contact .aperture-study{opacity:.40}}
@media(max-width:760px){#contact .section-art--contact .aperture-study{opacity:.27}}

/* v29 / A quiet opening gesture and a more open orbital study. */
#projects .section-intro{max-width:none}
.hero .quiet-link{position:relative;color:var(--ink);border-color:var(--border);transition:border-color .3s ease}
.hero .quiet-link::after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.hero .quiet-link span{display:inline-block;transition:transform .35s cubic-bezier(.2,.7,.3,1)}
.hero .quiet-link:hover::after,.hero .quiet-link:focus-visible::after{transform:scaleX(1)}
.hero .quiet-link:hover span,.hero .quiet-link:focus-visible span{transform:translate(4px,4px)}
.hero .quiet-link:focus-visible{outline-color:var(--ink)}
@media(prefers-reduced-motion:reduce){.hero .quiet-link,.hero .quiet-link::after,.hero .quiet-link span{transition:none}.hero .quiet-link:hover span,.hero .quiet-link:focus-visible span{transform:none}}
/* Keep the full title readable on publication and long conference pages. */
.subpage[data-page="trace"] .detail-title{max-width:22ch;font-size:clamp(36px,5.5vw,86px);line-height:1;overflow-wrap:anywhere}

/* v31: the margin artwork follows the project grid, including filtering.
   It grows from 260px to at most 920px; mobile retains a short horizontal
   strip. The SVG uses the same bounded number of paths at every height. */
/* The archive needs just a type/date column and the entry itself. */
#trace-list .entry{grid-template-columns:92px minmax(0,1fr)}
#trace-list .entry-no{color:var(--dim)}
#trace-list .trace-date{margin-top:5px}
@media(max-width:760px){#trace-list .entry{grid-template-columns:76px minmax(0,1fr)}}

/* v38 / inverse theme preview. The hover shows the opposite palette. */
.theme-button{transition:background-color .28s ease,color .28s ease,border-color .28s ease}
.theme-button:hover,.theme-button:focus-visible{background-color:var(--ink);color:var(--bg);border-color:var(--ink)}
@media(prefers-reduced-motion:reduce){.theme-button{transition:none}}

/* Preserve card geometry while the archive height is interpolated. */
#project-list{align-content:start}
.theme-button .theme-symbol{color:currentColor}

/* v41 / Current research: a quiet, always-visible inset, not a hero card. */
.research-feature{position:relative;margin:24px 0 32px;padding:15px 0 16px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:transparent;max-width:100%;min-width:0}
.research-feature[hidden]{display:none}
.research-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;font:400 11px/1.5 var(--mono);color:var(--dim)}
.research-feature h3{font:700 clamp(16px,1.65vw,22px)/1.25 var(--mono);letter-spacing:-.035em;margin:10px 0 4px}
.research-affiliation{font:400 11px/1.5 var(--mono);margin:0 0 10px;color:var(--dim)}
.research-description{font:400 13px/1.65 var(--mono);margin:0;max-width:76ch}
/* Strong trajectories alternate with finer, lower-contrast paths. */
#traces .section-art--traces .chapter-study{opacity:.68!important}
@media(max-width:760px){#traces .section-art--traces .chapter-study{opacity:.42!important}}


/* ===== v42: current coordinate and local reading contrast =====
   The artwork keeps moving. Only the area behind the selected text fades.
   No box outlines, strobing, global dimming or additional animation clock. */
#about .research-feature{margin:15px 0 27px;padding:0;border:0;background:transparent}
#about .research-feature .timeline-group-title{margin-bottom:8px}
#about .research-coordinate{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;position:relative;padding:13px 0 14px 32px;border-left:1px solid var(--border)}
#about .research-coordinate::before{content:'';position:absolute;left:-4px;top:20px;width:7px;height:7px;border:1px solid var(--ink);border-radius:50%;background:var(--bg)}
#about .research-meta{display:block;font:400 11px/1.45 var(--mono);color:var(--dim)}
#about .research-feature h3{font:700 19px/1.3 var(--mono);letter-spacing:-.05em;margin:0 0 5px}
#about .research-affiliation{margin:0 0 8px;color:var(--dim);font:400 11px/1.5 var(--mono)}
#about .research-description{font:400 13px/1.65 var(--mono);margin:0;max-width:76ch;color:var(--dim)}
/* The initial veil is very light in About; Traces has higher contrast art,
   so it needs a stronger baseline underneath its smaller lettering. */
#about .reading-segment,#traces .reading-segment{
  --reading-rest:16%;--reading-focus:96%;
  background-color:color-mix(in srgb,var(--bg) var(--reading-rest),transparent);
  transition:background-color .58s cubic-bezier(.22,.68,.24,1),box-shadow .58s cubic-bezier(.22,.68,.24,1);
  box-shadow:0 0 10px 4px color-mix(in srgb,var(--bg) var(--reading-rest),transparent);
}
#traces .reading-segment{--reading-rest:56%}
#about .section-intro.reading-segment,#traces .section-intro.reading-segment,#trace-list .entry.reading-segment{background-color:color-mix(in srgb,var(--bg) var(--reading-rest),transparent)}
:is(#about,#traces) .reading-segment:is(:focus-within,.reading-active),
#about .timeline-item[open]:not(.timeline-closing){
  background-color:color-mix(in srgb,var(--bg) var(--reading-focus),transparent);
  box-shadow:0 0 14px 5px color-mix(in srgb,var(--bg) 72%,transparent);
  transition-duration:.72s;
}
#about .section-intro.reading-segment:is(:focus-within,.reading-active),#traces .section-intro.reading-segment:is(:focus-within,.reading-active),#trace-list .entry.reading-segment:is(:focus-within,.reading-active){background-color:color-mix(in srgb,var(--bg) var(--reading-focus),transparent)}
@media(hover:hover){
  #about .reading-segment:hover,#traces .reading-segment:hover,#trace-list .entry.reading-segment:hover,#about .section-intro.reading-segment:hover,#traces .section-intro.reading-segment:hover{
    background-color:color-mix(in srgb,var(--bg) var(--reading-focus),transparent);
    box-shadow:0 0 14px 5px color-mix(in srgb,var(--bg) 72%,transparent);
    transition-duration:.72s;
  }
}
.reading-segment:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
/* Keep the original crop treatment but anchor the selected artworks centrally. */
#project-list .entry-visual:has(img){background:none;background-color:#000}
#project-list .entry-visual img{object-position:center;filter:none}
@media(max-width:760px){
  #about .research-coordinate{grid-template-columns:84px minmax(0,1fr);gap:10px;padding-left:32px}
  #about .research-feature h3{font-size:clamp(15px,4.1vw,19px)}
  #traces .reading-segment{--reading-rest:38%}
}
@media(prefers-reduced-motion:reduce){#about .reading-segment,#traces .reading-segment,#trace-list .entry.reading-segment{transition:none!important}}

/* Nimbus Sans Bold greeting, drawn as a fixed scalable wordmark. */
.hero h1{font-size:clamp(32px,3.9vw,60px);line-height:1.08;min-height:1.08em;display:flex;align-items:center;position:relative}
.hello-title-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hello-wordmark{display:block;width:8.6512em;max-width:100%;height:auto;flex:none}
#about .research-feature{margin-top:28px;margin-bottom:0}
#about .research-feature + .timeline-heading{margin-top:28px}
@media(max-width:920px){.hero h1{font-size:clamp(32px,5.5vw,56px)}}
@media(max-width:760px){.hero h1{font-size:clamp(27px,7.3vw,43px)}}

/* v46.1 / small, accessible legal links; no decorative footer. */
.legal-footer{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:7px var(--gutter) 13px;max-width:var(--max);margin:auto;color:var(--soft);font:12px/1.5 var(--mono);letter-spacing:0}
.legal-footer a,.contact-privacy a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.legal-footer a{padding:5px 0}
.legal-footer a:hover,.contact-privacy a:hover{color:var(--ink)}
.legal-footer a:focus-visible,.legal-main a:focus-visible,.legal-reset:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
.contact-privacy{font:12px/1.5 var(--mono);color:var(--dim);margin:0;justify-self:start;background:var(--bg)}
.legal-page{min-height:100svh;display:flex;flex-direction:column}
.legal-page .legal-footer{width:100%;margin-top:auto;margin-bottom:0}
.legal-main{width:100%;max-width:820px;margin:0 auto;padding:clamp(40px,7vw,100px) var(--gutter) 72px;font:14px/1.8 var(--mono);overflow-wrap:anywhere}
.legal-main h1{font:800 clamp(38px,7vw,72px)/1.1 var(--mono);letter-spacing:-.07em;margin:12px 0}
.legal-kicker,.legal-subtitle{color:var(--dim);font-size:13px}
.legal-main h2{font:700 15px/1.5 var(--mono);margin:32px 0 10px;scroll-margin-top:100px}
.legal-main section{scroll-margin-top:100px}
.legal-main section+section{border-top:1px solid var(--border);margin-top:40px;padding-top:10px}
.legal-main address{font-style:normal}
.legal-main p{margin:0 0 14px}
.legal-main a{text-decoration:underline;text-underline-offset:3px}
.legal-reset{font:12px/1.6 var(--mono);color:var(--ink);background:transparent;border:1px solid var(--ink);padding:8px 12px;cursor:pointer}
.legal-reset:hover{background:var(--ink);color:var(--bg)}

/* v46.15 / reversible encryption motion and legible controls. */
#contact .form-bottom{display:grid;gap:0;align-items:start;justify-content:stretch;padding-top:0}
.contact-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}
#contact .encrypt-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 10px;border:1px solid transparent;border-radius:0;background:var(--bg);color:var(--dim);font:400 12px/1.2 var(--mono);cursor:pointer;white-space:nowrap;transition:background-color .42s ease,color .42s ease,border-color .42s ease;isolation:isolate}
#contact .encrypt-button[aria-pressed="false"]:hover:not(:disabled){color:var(--ink);border-color:var(--border)}
#contact .encrypt-button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
#contact .encrypt-button:focus-visible,.encryption-close:focus-visible,.contact-key a:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
#contact .encrypt-button:disabled{opacity:.45;cursor:wait}
#contact .send-button{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;cursor:pointer}
#contact .send-button #send-label{display:inline-block;margin:0;font:inherit;vertical-align:baseline}
#contact .send-button .send-arrow{font-size:17px;margin-left:17px}
.contact-lock{width:18px;height:18px;flex:none;overflow:visible}
.contact-lock .lock-shackle{transform-box:view-box;transform-origin:7px 11px;transform:rotate(-35deg);transition:transform .56s cubic-bezier(.45,0,.25,1)}
.encrypt-button[aria-pressed="true"] .lock-shackle{transform:rotate(0)}
.encryption-info-motion{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;min-width:0;transition:grid-template-rows .56s cubic-bezier(.45,0,.25,1),opacity .40s ease,visibility 0s linear .56s}
.encryption-info-motion[data-open="true"]{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows .56s cubic-bezier(.45,0,.25,1),opacity .44s ease .06s,visibility 0s}
.encryption-info-clip{min-height:0;min-width:0;overflow:hidden}
.encryption-info{position:relative;margin-top:12px;padding:14px 15px 13px;border:1px solid var(--ink);background:var(--bg);font:400 11px/1.65 var(--mono);color:var(--ink);min-width:0}
#contact #form-status:not(:empty){margin-top:12px}
.encryption-info-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.encryption-info h3{font:700 13px/1.3 var(--mono);margin:0}
.encryption-close{border:0;background:transparent;color:var(--ink);font:inherit;padding:5px;cursor:pointer;flex:none}
.encryption-flow{display:block;width:min(100%,300px);height:auto;margin:12px auto 7px}
.encryption-info p{font:inherit;color:inherit;margin:7px 0 0;max-width:none}
.contact-key{font:400 11px/1.6 var(--mono);color:var(--dim);margin:15px 0 0;max-width:660px;overflow-wrap:anywhere;background:transparent;container-type:inline-size}
.contact-key-links{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 24px;min-width:0}
.contact-key-value{max-width:100%;min-width:0}
.contact-key a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.contact-key code{font:inherit;min-width:0;overflow-wrap:normal;word-break:normal}
@container(max-width:540px){.contact-key-value{flex-basis:100%}}
@media(max-width:420px){#contact .encrypt-button{font-size:11px;padding:8px 5px;gap:5px}#contact .send-button{font-size:11px;padding:8px 5px}#contact .send-button .send-arrow{margin-left:9px;font-size:15px}.contact-actions{gap:6px}.contact-lock{width:17px;height:17px}}
@media(max-width:340px){#contact .encrypt-button,#contact .send-button{font-size:10px;padding:8px 3px;gap:4px}#contact .send-button .send-arrow{margin-left:5px}.contact-key{font-size:10px}}
@media(prefers-reduced-motion:reduce){#contact .encrypt-button,.contact-lock .lock-shackle{transition:none}.encryption-info-motion,.encryption-info-motion[data-open="true"]{transition:none}}

/* ===== v46.18: counter, full-card links, mobile menu ===== */
#contact .message-count{
  border:1px solid var(--ink);
  border-radius:0;
  padding:4px 6px;
  background:var(--bg);
}
#project-list .project-entry:has(.entry-title a){
  position:relative;
  cursor:pointer;
  transition:border-color .28s ease,box-shadow .28s ease;
}
/* Stretch the existing real link; preserve keyboard and native link actions. */
#project-list .project-entry .entry-title a::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:2;
}
#project-list .project-entry .entry-visual img{
  transition:transform .36s cubic-bezier(.22,.68,.24,1);
}
@media(hover:hover){
  #project-list .project-entry:has(.entry-title a):hover{
    border-color:var(--ink);
    box-shadow:0 0 0 1px var(--ink);
  }
  #project-list .project-entry:has(.entry-title a):hover .entry-visual img{
    transform:scale(1.035);
  }
  #project-list .project-entry:hover .entry-title a{
    text-decoration:underline;
    text-underline-offset:3px;
    text-decoration-thickness:1px;
  }
}
#project-list .project-entry:has(.entry-title a:focus-visible){
  outline:2px solid var(--ink);
  outline-offset:2px;
}
#project-list .project-entry:has(.entry-title a):active{
  border-color:var(--ink);
  box-shadow:0 0 0 1px var(--ink);
}
@media(prefers-reduced-motion:reduce){
  #project-list .project-entry:has(.entry-title a),
  #project-list .project-entry .entry-visual img{transition:none}
  #project-list .project-entry:has(.entry-title a):hover .entry-visual img{transform:none}
}
