/* Navigation motion stays on controls and editorial content, never whole pages. */
main{animation:none}
/* Preserve the graphics compositor when moving between full-screen HMI pages. */
body.aether-home main,body:has(.automotive-intro) main{animation:none}
body.aether-home .aether-home-content,body:has(.automotive-intro) .automotive-intro-copy{
  animation:editorial-arrive 440ms cubic-bezier(.16,.82,.19,1) both;
}
/* Let typography arrive independently while imagery and live demos remain fixed. */
.pageintro:not(.automotive-intro) h1,.motion-experience .motion-intro h1{
  animation:editorial-arrive 430ms cubic-bezier(.16,.82,.19,1) both;
}
.pageintro:not(.automotive-intro) .lede,.motion-experience .motion-intro-aside{
  animation:editorial-arrive 470ms cubic-bezier(.16,.82,.19,1) 65ms both;
}
@keyframes editorial-arrive{from{opacity:.86;translate:0 6px}to{opacity:1;translate:0 0}}
header nav a.route-pending{color:var(--accent);text-shadow:0 0 12px #9dcfa655}
header nav a.route-pending::after{content:"";position:absolute;bottom:.25rem;left:0;width:100%;height:2px;background:var(--accent);animation:route-pending-signal 110ms ease-out both}
body.aether-home>header nav a.route-pending{color:#c7ffe6}
body.aether-home>header nav a.route-pending::after{background:#b4ffdc}
@keyframes route-pending-signal{from{transform:scaleX(.2);opacity:.35}to{transform:scaleX(1);opacity:1}}
@media(prefers-reduced-motion:reduce){body.aether-home .aether-home-content,body:has(.automotive-intro) .automotive-intro-copy,.pageintro:not(.automotive-intro) h1,.motion-experience .motion-intro h1,.pageintro:not(.automotive-intro) .lede,.motion-experience .motion-intro-aside,header nav a.route-pending::after{animation:none}}
:root {
  --snap: cubic-bezier(.15,.8,.22,1); --brass: #c9d799;
  /* Two semantic layers: the authored portfolio and the interactive product. */
  --author-paper:#eaf0e9; --author-ink:#15352e; --author-muted:#4b6559;
  --author-accent:#55795e; --author-type:"DM Sans","Helvetica Neue",Arial,sans-serif;
  --hmi-field:#06151b; --hmi-ink:#eff8f4; --hmi-signal:#b7efce;
  --hmi-type:"Manrope","Outfit",system-ui,sans-serif;
  --hmi-data-type:"IBM Plex Mono",ui-monospace,monospace;
}
/* Authored text uses natural reading rhythm; instruments own their own data UI. */
.portfolio-editorial{font-family:var(--author-type)}
.portfolio-editorial p:not(.eyebrow){text-wrap:pretty}
.experience-surface{background:var(--hmi-field);color:var(--hmi-ink)}
body { background: #f5f4ee; }
header { position: relative; }
nav a:after, nav a[aria-current]:after, nav a:hover:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--snap);
}
nav a[aria-current]:after, nav a:hover:after, nav a:focus-visible:after { transform: scaleX(1); }
.reading-progress { position: fixed; z-index: 8; pointer-events: none; inset: 0 0 auto; height: 2px; background: #658157; transform: scaleX(0); transform-origin: left; }
.hero-copy > *, .pageintro > * { animation: arrive .78s var(--snap) backwards; }
.hero-copy > :nth-child(2), .pageintro h1 { animation-delay: .06s; }
.hero-copy > :nth-child(3), .pageintro .lede { animation-delay: .1s; }
.hero-copy > :nth-child(4) { animation-delay: .14s; }
.hero-copy > :nth-child(5) { animation-delay: .18s; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
.reveal-pending { opacity: 0; transform: translateY(12px); }
.reveal-ready { animation: arrive .65s var(--snap) backwards; }
.action, .textlink, .featurelink strong { transition: color .24s, background-color .24s; }
.textlink { background: linear-gradient(currentColor,currentColor) left bottom/0 2px no-repeat; transition: background-size .3s; }
.textlink:hover, .textlink:focus-visible { background-size: 100% 2px; }
.action > span { transition: translate .3s var(--snap); }
.action:hover > span, .action:focus-visible > span { translate: 2px -2px; }
.clusterhero {
  --signal: #d9e9ae;
  background: radial-gradient(ellipse at 50% 35%,#34453c 0%,#26352e 42%,#17221e 83%);
  position: relative; isolation: isolate; padding: clamp(19px,2.3vw,35px);
  min-height: 0; align-self: center; width: 100%; aspect-ratio: 1.14;
  grid-template-rows: auto minmax(0,1fr) auto auto; align-content: stretch;
  box-shadow: inset 0 0 0 1px #59665b, inset 0 0 0 5px #ffffff04, 0 12px 22px -22px #1d342d;
}
.clusterhero::before,.instrument::before {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:-1;
  opacity:.25; background-image:linear-gradient(to right,#acc1a513 1px,transparent 1px),linear-gradient(to bottom,#acc1a513 1px,transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(120deg,#000,transparent 65%,#000);
}
.clusterhead,.clusterhero figcaption { position:relative; border-color:#67766980; }
.clusterhead:after,.clusterhero figcaption:after { content:""; position:absolute; bottom:-1px; left:0; width:1.8rem; height:2px; background:#a5b493; }
.clusterhero figcaption:after { top:-1px; bottom:auto; width:.8rem; }
.dial { max-width:none; width:auto; height:100%; max-height:100%; aspect-ratio:1; margin:0 auto; }
.dial:before,.dial:after { display:none; }
.precision-dial { width:100%; height:100%; display:block; overflow:visible; }
.precision-dial .rim,.precision-dial .rail,.active-rail { fill:none; }
.rim { stroke:#b5c5a4; stroke-opacity:.17; stroke-width:.8; }
.rail { stroke:#455449; stroke-width:3; }
.active-rail { stroke:var(--signal); stroke-width:3; }
.precision-dial line { stroke:#a3b19f; }
.precision-dial .major { stroke:#c3d0ba; stroke-width:1.8; }
.precision-dial .minor { stroke-width:1; }
.precision-dial text { text-anchor:middle; fill:#afbcab; font:11px ui-monospace,monospace; letter-spacing:.01em; }
.pointer { fill:var(--signal); }
.speed strong { font-size:clamp(3.3rem,5.1vw,6.5rem); letter-spacing:-.075em; line-height:1.12; }
.speed small,.speed span,.drive-caption small { font: .75rem ui-monospace,monospace; }
.gears { margin-top:-8%; z-index:1; font-size:.75rem; }
.drive-caption { display:grid; gap:.16rem; }
.drive-caption small { color:#a7b5a8; letter-spacing:0; }
.clusterhero figcaption { margin-top:1rem; }
.clusterhero button { min-height:44px; min-width:100px; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.cycle-icon { font-size:1.22rem; }
.instrument { isolation:isolate; position:relative; background:linear-gradient(115deg,#17241e,#25372d 72%,#1b2721); }
.dialbody { overflow:hidden; }
.controlbar button,.action,#drive-mode { position:relative; overflow:hidden; isolation:isolate; }
.controlbar button::after,.action::after,#drive-mode::after { content:"";position:absolute;inset:0;background:currentColor;opacity:0;transition:opacity .25s;pointer-events:none; }
.controlbar button:hover::after,.action:hover::after,#drive-mode:hover::after { opacity:.07; }
.controlbar button:focus-visible,#drive-mode:focus-visible { outline-color:#d9e9ae; }
.controlbar button { min-height:44px; transition:background .32s,color .32s,border-color .32s; }
.controlbar button[aria-pressed=true] { border-color:#d9e9ae; }
.adjust input { min-height:32px; cursor:pointer; }
.contact-wave { position:absolute; z-index:1; pointer-events:none; border:1px solid currentColor; width:22px; height:22px; margin:-11px; border-radius:50%; animation:contact .5s ease-out forwards; }
@keyframes contact { from { opacity:.35; transform:scale(.4); } to { opacity:0; transform:scale(7); } }
@media(min-width:761px) and (max-width:960px) {
  .hero { grid-template-columns:1fr 1fr; gap:1.5rem; }
  .clusterhero { aspect-ratio:.88; }
}
@media(max-width:760px) {
  .clusterhero { aspect-ratio:1.15; min-height:310px; padding:18px; }
  .clusterhero figcaption { padding-top:.55rem; margin-top:.55rem; }
  .clusterhead { padding-bottom:.6rem; }
  .speed strong { font-size:2.7rem; }
}
@media(prefers-reduced-motion:reduce) {
  .reveal-pending { opacity:1; transform:none; }
  .contact-wave { display:none; }
}
@media print {
  .reveal-pending,.reveal-ready { opacity:1; transform:none; }
  .reading-progress { display:none; }
}
.demosintro { padding-bottom:clamp(2rem,5vw,5rem); }
.demo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(2.5rem,5vw,5rem) clamp(1.1rem,2vw,2.5rem); padding:0 var(--edge) 5rem; }
.demo-card { display:flex; flex-direction:column; --cover:#233931; --mark:#d3dfb2; min-width:0; }
.demo-card.auto { --cover:#c6d2c6; --mark:#365249; }
.demo-card.vent { --cover:#cbc5b6; --mark:#52493d; }
.demo-card.field { --cover:#495a57; --mark:#dce4d5; }
.demo-card.pro { --cover:#c4cdd2; --mark:#354c54; }
.demo-card.cabin { --cover:#dddfcd; --mark:#48573c; }
.demo-card.thread { --cover:#3f4350; --mark:#ded9c9; }
.demo-cover { position:relative; display:grid; place-items:center; aspect-ratio:1.75; overflow:hidden; isolation:isolate; background:var(--cover); color:var(--mark); }
.demo-cover:before { content:""; position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(to right,currentColor 1px,transparent 1px),linear-gradient(to bottom,currentColor 1px,transparent 1px); background-size:26px 26px; opacity:.065; transition:opacity .4s; }
.demo-cover svg { width:53%; height:84%; fill:none; stroke:currentColor; stroke-width:1.4; transition:transform .5s var(--snap); }
.demo-cover span { position:absolute; bottom:.6rem; left:.8rem; font:.75rem ui-monospace,monospace; }
.demo-card:hover svg,.demo-card:focus-within svg { transform:translateY(-2px) scale(1.05); }
.demo-card:hover .demo-cover:before,.demo-card:focus-within .demo-cover:before { opacity:.12; }
.demo-copy { flex:1; display:flex; flex-direction:column; align-items:flex-start; padding:1.1rem 0 .85rem; border-bottom:1px solid var(--line); }
.demo-copy small { color:var(--muted); font:.79rem ui-monospace,monospace; }
.demo-copy h2 { font-size:clamp(1.65rem,2.45vw,3rem); margin:.55rem 0; line-height:1.1; }
.demo-copy p { margin:0 0 1rem; color:var(--muted); line-height:1.52; }
.demo-actions { margin-top:auto; display:flex; gap:1.2rem; align-items:center; }
.demo-actions a { font-size:.92rem; font-weight:600; padding:.55rem 0; text-decoration:underline; text-underline-offset:.28em; text-decoration-color:transparent; transition:text-decoration-color .2s; }
.demo-actions a:hover,.demo-actions a:focus-visible { text-decoration-color:currentColor; }
.demo-actions a:last-child { color:var(--muted); }
@media(max-width:960px){.demo-grid{grid-template-columns:repeat(2,minmax(0,1fr));}nav{gap:1rem;}}
@media(max-width:760px){nav{gap:.4rem;flex-wrap:wrap}nav a{font-size:.83rem}}
@media(max-width:530px){.demo-grid{grid-template-columns:1fr}.demo-cover{aspect-ratio:2.15}}
@media(prefers-reduced-motion:reduce){.demo-card:hover svg,.demo-card:focus-within svg{transform:none}}
.contact-link { font-weight:600; color:var(--ink); text-decoration:underline; text-underline-offset:.3em; text-decoration-color:var(--line); }
.contact-link:hover,.contact-link:focus-visible { text-decoration-color:currentColor; }

/* Career narrative: the personality of the work, not a condensed résumé. */
.profile-depth { padding-top:clamp(5rem,9vw,10rem); padding-bottom:clamp(5rem,9vw,10rem); grid-template-columns:minmax(245px,.74fr) minmax(0,1.26fr); gap:clamp(2.5rem,7vw,10rem); }
.profile-aside { position:sticky; top:2.5rem; min-width:0; }
.identity-manifest { display:grid; border-top:1px solid var(--line); margin:clamp(2rem,5vw,5rem) 0 2rem; }
.identity-manifest span { font-size:clamp(1.7rem,3.2vw,3.8rem); letter-spacing:-.075em; font-weight:500; line-height:1.05; padding:.62rem 0 .68rem; border-bottom:1px solid var(--line); transition:padding-left .4s var(--snap),color .3s; }
.identity-manifest span:nth-child(2) { color:#60766a; }
.identity-manifest span:nth-child(3) { color:#39734c; }
.identity-manifest span:nth-child(4) { color:#819487; }
.identity-manifest span:hover { padding-left:.55rem; color:var(--ink); }
.profile-depth .identity-origin { color:var(--muted); font: .82rem/1.9 "IBM Plex Mono",ui-monospace,monospace; margin:0; }
.profile-story { max-width:750px; }
.profile-story h2 { font-size:clamp(3.8rem,6.8vw,8rem); line-height:.96; margin:0 0 clamp(2.1rem,4vw,4rem); }
.profile-story .story-lead { font-size:clamp(1.45rem,2.1vw,2.3rem); line-height:1.3; letter-spacing:-.035em; color:var(--ink); margin-bottom:1.7rem; }
.profile-story p:not(.story-lead) { font-size:clamp(1.05rem,1.25vw,1.23rem); line-height:1.78; max-width:62ch; margin:0 0 1.4rem; }
.profile-story strong,.story-ledger strong { color:var(--ink); font-weight:650; }
.profile-story .textlink { margin-top:1rem; }
.ownership { padding:clamp(4rem,8vw,9rem) var(--edge) clamp(5rem,8vw,8rem); background:#e5ebe0; }
.ownership-intro { display:grid; grid-template-columns:.74fr 1.26fr; gap:clamp(2.5rem,7vw,10rem); align-items:start; }
.ownership h2 { font-size:clamp(3rem,5.35vw,6.5rem); margin:0 0 clamp(3rem,5vw,5rem); line-height:1.05; letter-spacing:-.065em; }
.ownership-tracks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid #b5c2b5; }
.ownership-tracks article { min-width:0; padding:1.5rem clamp(1rem,2.2vw,2.8rem) 2rem 0; border-right:1px solid #b5c2b5; }
.ownership-tracks article + article { padding-left:clamp(1rem,2.2vw,2.8rem); }
.ownership-tracks article:last-child { border-right:0; }
.ownership-tracks span { display:block; color:#4c7054; font: .78rem/1.5 "IBM Plex Mono",ui-monospace,monospace; letter-spacing:.065em; margin-bottom:2rem; }
.ownership-tracks h3 { font-size:clamp(1.45rem,2vw,2.45rem); line-height:1.15; font-weight:520; letter-spacing:-.045em; max-width:19ch; margin-bottom:1rem; }
.ownership-tracks p { color:#53685a; line-height:1.65; max-width:44ch; }

/* Professional journey: typography carries the visual experience. */
.practice-hero { min-height:clamp(490px,70svh,790px); display:flex; flex-direction:column; justify-content:center; border-bottom:1px solid var(--line); }
.practice-hero h1 { font-size:clamp(5.2rem,11.5vw,13rem); margin:clamp(2rem,5vw,4.5rem) 0 2.2rem; }
.practice-hero .lede { max-width:55ch; font-size:clamp(1.35rem,2.35vw,2.55rem); line-height:1.32; }
.practice-thesis { padding:clamp(5rem,11vw,12rem) var(--edge); display:grid; grid-template-columns:.74fr 1.26fr; gap:2rem clamp(2.5rem,7vw,10rem); }
.practice-thesis h2 { font-size:clamp(3.1rem,5.7vw,7.2rem); font-weight:450; line-height:1.08; letter-spacing:-.064em; }
.practice-thesis p { grid-column:2; max-width:65ch; color:var(--muted); font-size:clamp(1.1rem,1.4vw,1.35rem); line-height:1.7; }
.client-section { padding:clamp(4rem,7vw,8rem) var(--edge) clamp(5rem,9vw,10rem); background:#21362d; color:#e8eee5; }
.section-rail { display:grid; grid-template-columns:.74fr 1.26fr; gap:clamp(2.5rem,7vw,10rem); border-bottom:1px solid #62796a; padding-bottom:clamp(2rem,4vw,4rem); margin-bottom:clamp(2rem,5vw,5rem); }
.section-rail .eyebrow { color:#b6cab5; }
.section-rail p { max-width:60ch; font-size:clamp(1rem,1.25vw,1.25rem); color:#c1cfc3; line-height:1.55; }
.client-wall h2 { font-size:clamp(2.8rem,5vw,6rem); font-weight:430; letter-spacing:-.065em; margin-bottom:clamp(2rem,5vw,5rem); }
.client-type { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:clamp(.65rem,1.4vw,1.6rem); row-gap:clamp(.5rem,1vw,1.3rem); }
.client-type span { display:inline-block; font-size:clamp(1.65rem,3.8vw,5rem); font-weight:460; letter-spacing:-.072em; line-height:1.08; color:#edf2e9; transition:color .28s,transform .4s var(--snap); }
.client-type span:not(:last-child)::after { content:" /"; color:#779c81; font-size:.6em; font-weight:300; margin-left:.15em; }
.client-type span:hover { color:#c4eea3; transform:translateY(-3px); }
.story-ledger { background:var(--paper); }
.story-ledger h2 { font-size:clamp(3rem,6vw,7rem); max-width:16ch; margin-bottom:clamp(3rem,6vw,7rem); }
.story-ledger article { padding:clamp(2rem,3.2vw,3.4rem) 0; grid-template-columns:.74fr 1.26fr; gap:clamp(2.5rem,7vw,10rem); }
.story-ledger h3 { font-size:clamp(1.45rem,2.1vw,2.5rem); line-height:1.15; max-width:19ch; }
.story-ledger article p { font-size:clamp(1.05rem,1.25vw,1.2rem); line-height:1.72; }
.story-ledger article p+p { margin-top:1.15rem; }
.skills-section { padding:clamp(5rem,8vw,9rem) var(--edge); background:#dbe5d9; }
.skills-section h2 { font-size:clamp(3.6rem,6.2vw,7.8rem); margin:clamp(2rem,3vw,3rem) 0 clamp(3rem,6vw,7rem); }
.skill-rails { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:clamp(2rem,6vw,8rem); }
.skill-rails > div { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:1rem; padding:clamp(1.4rem,2vw,2.3rem) 0; border-top:1px solid #aabbab; }
.skill-rails h3 { font-size:clamp(1.15rem,1.6vw,1.8rem); line-height:1.24; font-weight:530; letter-spacing:-.035em; }
.skill-rails p { color:#4c6554; line-height:1.65; }
.education-section { display:grid; grid-template-columns:.74fr 1.26fr; gap:1rem clamp(2.5rem,7vw,10rem); padding:clamp(5rem,10vw,11rem) var(--edge); }
.education-heading h2 { font-size:clamp(2.8rem,4.7vw,5.7rem); margin-top:3rem; line-height:1.02; letter-spacing:-.065em; }
.background-lines { border-top:1px solid var(--line); }
.background-lines > div { display:grid; grid-template-columns:90px minmax(0,1fr) 110px; gap:1.2rem; align-items:baseline; padding:1.4rem 0; border-bottom:1px solid var(--line); }
.background-lines span,.background-lines small,.language-line .eyebrow { font: .76rem/1.5 "IBM Plex Mono",ui-monospace,monospace; letter-spacing:.02em; color:var(--muted); }
.background-lines strong { font-size:clamp(1.05rem,1.4vw,1.43rem); font-weight:540; line-height:1.3; letter-spacing:-.02em; }
.background-lines small { text-align:right; }
.language-line { grid-column:2; padding:clamp(2rem,3vw,3rem) 0 0; display:grid; grid-template-columns:90px 1fr; gap:1.2rem; }
.language-line p { font-size:clamp(1.1rem,1.5vw,1.5rem); line-height:1.85; letter-spacing:-.025em; }
.language-line p small { display:inline; font-size:.68em; color:var(--muted); letter-spacing:0; }
.education-section .location-note { grid-column:2; padding-top:2rem; margin-top:1rem; border-top:1px solid var(--line); color:var(--muted); }
@media(max-width:1040px) {
  .skill-rails > div { grid-template-columns:1fr; gap:.75rem; }
  .background-lines > div { grid-template-columns:70px minmax(0,1fr); gap:.5rem 1rem; }
  .background-lines small { grid-column:2; text-align:left; }
}
@media(max-width:760px) {
  .profile-depth,.ownership-intro,.practice-thesis,.section-rail,.story-ledger article,.education-section { grid-template-columns:1fr; }
  .profile-aside { position:static; }
  .identity-manifest { grid-template-columns:repeat(2,minmax(0,1fr)); margin:2rem 0 1rem; }
  .identity-manifest span { font-size:clamp(1.35rem,5vw,2rem); }
  .identity-manifest span:nth-child(odd) { margin-right:.6rem; }
  .profile-depth { gap:3.5rem; }
  .profile-story h2 { font-size:clamp(3.6rem,11vw,6rem); }
  .ownership-intro { gap:1.4rem; }
  .ownership h2 { font-size:clamp(2.8rem,8vw,5rem); }
  .ownership-tracks { grid-template-columns:1fr; }
  .ownership-tracks article,.ownership-tracks article + article { border-right:0; border-bottom:1px solid #b5c2b5; padding:1.5rem 0 2rem; }
  .ownership-tracks article:last-child { border-bottom:0; }
  .ownership-tracks span { margin-bottom:1rem; }
  .practice-hero { min-height:min(640px,70svh); }
  .practice-hero h1 { font-size:clamp(4.1rem,14vw,7rem); }
  .practice-thesis h2 { font-size:clamp(2.85rem,8.5vw,5rem); }
  .practice-thesis p,.language-line,.education-section .location-note { grid-column:1; }
  .client-type span { font-size:clamp(1.65rem,6vw,3rem); }
  .story-ledger article { gap:1.2rem; }
  .skills-section h2 { font-size:clamp(3.1rem,8.5vw,5.5rem); }
  .skill-rails { grid-template-columns:1fr; }
  .education-heading h2 { margin:1.6rem 0 3rem; }
  .language-line { grid-template-columns:1fr; gap:.6rem; }
  .education-section .location-note { margin-top:1rem; }
}
@media(max-width:420px) {
  .background-lines > div { grid-template-columns:1fr; }
  .background-lines small { grid-column:1; }
  .profile-depth .identity-origin { font-size:.76rem; }
}
@media(prefers-reduced-motion:reduce) {
  .identity-manifest span:hover,.client-type span:hover { transform:none; padding-left:0; }
}

/* V4: Scandinavian instrument / portfolio-wide art direction. */
:root { --paper:#edf1ec; --ink:#10332c; --muted:#486559; --line:#aebfb4; --accent:#2d7654; --acid:#dbf2a8; }
body { background:var(--paper); color:var(--ink); }
body::selection { background:var(--acid); color:var(--ink); }
header { z-index:30; position:sticky; top:0; min-height:76px; padding:0 var(--edge); margin:0; background:#edf1eceb; backdrop-filter:blur(22px) saturate(1.2); -webkit-backdrop-filter:blur(22px) saturate(1.2); border-bottom:1px solid #aabcb1a8; }
.brand b { font-size:2.2rem; }
.brand { letter-spacing:-.03em; }
nav a { font-size:.95rem; font-weight:520; }
nav a[aria-current] { color:var(--accent); }
nav a::after { bottom:.48rem; }
.reading-progress { height:3px; z-index:40; background:#7cb27a; }

.hero { position:relative; isolation:isolate; overflow:hidden; min-height:min(860px,calc(100svh - 76px)); gap:clamp(1rem,3.5vw,5rem); padding-top:clamp(4rem,7vh,7rem); padding-bottom:clamp(3rem,6vh,6rem); background:radial-gradient(ellipse 55% 68% at 74% 48%,#b5cec0 0%,transparent 80%),linear-gradient(145deg,#e5eee8 0%,#d4e3d9 59%,#e3ebe4 100%); border-bottom:1px solid #b2c6b9; }
.hero::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.2; background-image:linear-gradient(to right,#739888 1px,transparent 1px),linear-gradient(to bottom,#739888 1px,transparent 1px); background-size:80px 80px; mask-image:linear-gradient(to right,transparent 0%,#000 52%,#000); }
.hero-copy { z-index:2; position:relative; }
.hero .eyebrow { font-size:.82rem; font-weight:600; letter-spacing:.075em; }
.hero h1 { font-size:clamp(5rem,8.4vw,11rem); line-height:.88; letter-spacing:-.083em; margin:clamp(2.6rem,5vw,5rem) 0 clamp(2rem,3vw,3.2rem); }
.hero h1 em { color:#3b6a50; }
.hero .lede { font-size:clamp(1.6rem,2.15vw,2.6rem); line-height:1.2; max-width:24ch; letter-spacing:-.05em; font-weight:530; }
.hero .intro { font-size:clamp(1.03rem,1.15vw,1.2rem); max-width:50ch; margin:1.8rem 0 2.2rem; line-height:1.65; }
.hero .action { padding:.88rem 1.6rem; border-radius:3rem; background:var(--ink); }
.cta-line { display:inline-block; width:20px; height:1px; background:var(--acid); transform-origin:left; transition:scale .3s var(--snap); }
.action:hover .cta-line { scale:1.5 1; }
.clusterhero { --signal:#287654; background:transparent; box-shadow:none; border:0; padding:clamp(1rem,2vw,2.3rem) 0; min-height:0; width:100%; aspect-ratio:1; align-self:center; isolation:isolate; overflow:visible; }
.clusterhero::before { z-index:-2; inset:5%; background:radial-gradient(circle,#87b69b3e 0%,#92c5a525 31%,transparent 70%); opacity:1; border-radius:50%; mask-image:none; }
.clusterhero::after { content:""; position:absolute; inset:10% 9%; border:1px solid #5e927a33; border-radius:50%; z-index:-1; pointer-events:none; animation:instrument-breathe 7s ease-in-out infinite alternate; }
@keyframes instrument-breathe { from { transform:scale(.98); opacity:.55; } to { transform:scale(1.055); opacity:1; } }
.clusterhead,.clusterhero figcaption { border-color:#8da99a; color:#466f5b; }
.clusterhead span:last-child,.clusterhero figcaption>span { color:#426a59; }
.clusterhead:after,.clusterhero figcaption:after { background:#347858; }
.precision-dial .rim { stroke:#4b8069; stroke-opacity:.26; }
.precision-dial .rail { stroke:#abc3b4; }
.precision-dial .active-rail { stroke:#297a55; }
.precision-dial line,.precision-dial .major { stroke:#2f6852; }
.precision-dial .minor { stroke:#7ba58d; }
.precision-dial text { fill:#46745e; }
.precision-dial .pointer { fill:#296d4d; }
.hero .precision-dial { transform:translate3d(var(--drift-x,0px),var(--drift-y,0px),0); will-change:transform; }
.speed strong { color:#154d38; }
.speed small,.speed span,.drive-caption small { color:#537d67; }
.gears { color:#567962; }
.gears b { color:#124c33; border-color:#60936f; }
.clusterhero button { color:#194d39; border-color:#84ac94; background:#dcebe077; }
.clusterhero button:hover { background:#b7d9c3b8; }
.clusterhero button:focus-visible { outline-color:#1b7148; }

/* The first decision is editorial and usable, not a row of generic cards. */
.portfolio-index { background:#0e332b; color:#e5f2e6; display:grid; grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr); gap:clamp(2.5rem,6vw,8rem); padding:clamp(5rem,9vw,10rem) var(--edge); position:relative; overflow:hidden; isolation:isolate; }
.portfolio-index::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#0e332bb0 0%,#0e332b5e 27%,transparent 55%,#0e332b8a 100%)}
.portfolio-index-intro,.portfolio-routes{position:relative;z-index:3}
.portfolio-index-intro{pointer-events:none}
.portfolio-index .eyebrow { color:#b8d1bb; }
.portfolio-index-intro h2 { font-size:clamp(3.1rem,5.1vw,6.4rem); letter-spacing:-.07em; line-height:1.03; margin:clamp(2rem,4vw,4rem) 0 1.5rem; }
.portfolio-index-intro em { color:#bfdda8; }
.portfolio-index-intro p { max-width:34ch; font-size:clamp(1.05rem,1.3vw,1.32rem); line-height:1.65; color:#b5cfc0; }
.portfolio-ambient{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:auto}
.portfolio-ambient iframe{
  display:block;position:absolute;inset:0;border:0;outline-offset:3px;background:transparent;width:100%;
  height:100%;overflow:hidden;
  /* Lift only the points into the green material; even a browser that draws
     the transparent GL canvas against dark pixels cannot show a black tile. */
  mix-blend-mode:screen;
  -webkit-mask-image:radial-gradient(ellipse 96% 84% at 50% 51%,#000 34%,#000c 72%,transparent 100%);
  mask-image:radial-gradient(ellipse 96% 84% at 50% 51%,#000 34%,#000c 72%,transparent 100%);
}
.portfolio-ambient-caption{display:flex;justify-content:flex-start;align-items:center;gap:clamp(14px,2vw,28px);flex-wrap:wrap;color:#b7d4bf;font:600 10px/1.5 ui-monospace,"SFMono-Regular",monospace;letter-spacing:.07em;opacity:.9;margin-top:clamp(32px,4vw,62px);pointer-events:none}
.portfolio-ambient-caption span:last-child{color:#d2efbc;white-space:nowrap}
.portfolio-routes { border-top:1px solid #628174; }
.portfolio-route { position:relative; display:flex; flex-direction:column; gap:.85rem; padding:1.7rem 1.2rem 2rem 0; border-bottom:1px solid #628174; min-height:174px; transition:padding-left .42s var(--snap),background-color .3s; }
.portfolio-route:hover,.portfolio-route:focus-visible { padding-left:1.25rem; background:#ffffff0b; }
.route-kind { color:#b0d0bd; font:500 .8rem/1.4 "IBM Plex Mono",ui-monospace,monospace; letter-spacing:.055em; }
.portfolio-route strong { font-size:clamp(2rem,3vw,3.6rem); line-height:1.08; font-weight:480; letter-spacing:-.062em; }
.route-detail { color:#bbd0c0; font-size:.99rem; }
.route-bar { position:absolute; bottom:-1px; left:0; width:100%; height:2px; background:var(--acid); transform:scaleX(0); transform-origin:left; transition:transform .55s var(--snap); }
.portfolio-route:hover .route-bar,.portfolio-route:focus-visible .route-bar { transform:scaleX(1); }

/* More assertive typography across the deeper pages. */
.pageintro:not(.practice-hero) { background:radial-gradient(ellipse at 85% 20%,#d1e2d7,transparent 52%); }
.pageintro h1 { font-size:clamp(4.5rem,8vw,10rem); max-width:13ch; }
.pageintro .lede { font-size:clamp(1.3rem,2.15vw,2.4rem); line-height:1.38; }
/* The original graphite AURORA lives behind Sandeep's typography. Rather
   than remove its visual atmosphere or controls, we reserve the left for
   the editorial introduction and let its complete HMI occupy the right. */
.automotive-intro{position:relative;isolation:isolate;overflow:hidden;height:clamp(520px,calc(100svh - 76px),840px);min-height:0;padding-top:clamp(46px,4.5vw,84px);padding-bottom:30px;display:flex;align-items:flex-start;background:#07090d!important;color:#eef3ef}
.automotive-intro::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#07090df2 0%,#07090dd6 31%,#07090d61 46%,transparent 56%)}
.automotive-intro-copy{position:relative;z-index:3;width:min(51%,900px)}
.automotive-intro .eyebrow{color:#b5c8bf}
.automotive-intro h1{color:#f1f6f2;line-height:.97}
.automotive-intro h1 em{color:#b7d4bf}
.automotive-intro-copy .lede{max-width:36ch;color:#c4d4ce}
.automotive-intro-visual{position:absolute;z-index:1;inset:0;overflow:hidden}
.automotive-intro-visual iframe{display:block;width:100%;height:100%;border:0;background:#07090d;outline-offset:-3px}
@media(max-width:1270px){.automotive-intro-copy{width:50%}.automotive-intro h1{font-size:clamp(3.9rem,7vw,7.7rem)}.automotive-intro .lede{font-size:clamp(1.15rem,1.8vw,2rem)}}
@media(max-width:840px){.automotive-intro{display:block;height:auto;min-height:0;padding-bottom:0}.automotive-intro::before{display:none}.automotive-intro-copy{width:100%;padding-bottom:clamp(28px,5vw,50px)}.automotive-intro-copy .lede{max-width:38ch}.automotive-intro-visual{position:relative;inset:auto;width:calc(100% + 2 * var(--edge));height:clamp(560px,79svh,750px);margin:0 calc(-1 * var(--edge))}}
@media(max-width:480px){.automotive-intro{padding-top:38px}.automotive-intro h1{font-size:clamp(3.35rem,12.2vw,5rem)}.automotive-intro .lede{font-size:clamp(1.16rem,4.7vw,1.5rem)}.automotive-intro-visual{height:610px}}
.practice-hero { background:radial-gradient(ellipse at 82% 35%,#d0e3d5,transparent 59%); }
.practice-hero h1 { font-size:clamp(4.6rem,9.1vw,10rem); max-width:12ch; line-height:1.01; }
.profile-story h2,.ownership h2,.skills-section h2,.story-ledger h2 { text-wrap:balance; }
.client-section { background:#0e332b; }
.client-type span { color:#eef8ec; }
.client-type span:hover { color:var(--acid); }
.demo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(3rem,5vw,6rem) clamp(1.2rem,3vw,3.6rem); }
.demo-card.helios { grid-column:1 / -1; display:grid; grid-template-columns:1.2fr .8fr; align-items:stretch; }
.demo-card.helios .demo-cover { aspect-ratio:auto; min-height:clamp(310px,30vw,510px); }
.demo-card.helios .demo-cover svg { width:66%; height:75%; }
.demo-card.helios .demo-copy { justify-content:center; padding:clamp(2rem,4vw,5rem); border-top:1px solid var(--line); }
.demo-card.helios .demo-copy h2 { font-size:clamp(3rem,5.5vw,7rem); }
.demo-card.helios .demo-copy p { font-size:clamp(1.08rem,1.35vw,1.3rem); max-width:40ch; }
.demo-cover { transition:background-color .4s; }
.demo-cover::after { content:""; position:absolute; width:74%; height:150%; border:1px solid currentColor; opacity:.1; border-radius:50%; transform:rotate(25deg) translateX(65%); pointer-events:none; transition:transform .8s var(--snap),opacity .45s; }
.demo-card:hover .demo-cover::after,.demo-card:focus-within .demo-cover::after { transform:rotate(25deg) translateX(18%); opacity:.28; }
.demo-copy h2 { font-size:clamp(2rem,3vw,4rem); }
.demo-actions a:first-child { color:var(--ink); text-decoration-color:currentColor; text-decoration-thickness:1px; }
.demo-actions a:first-child:hover { text-decoration-thickness:2px; }
.instrument { background:radial-gradient(ellipse at 63% 31%,#2d5141,#0d3028 72%); }
.featurelink { background:#d0e1d3; }
.featurelink:hover strong { color:#24764f; }

@media(max-width:1050px) {
  .hero { grid-template-columns:1fr 1fr; gap:1rem; }
  .clusterhero { aspect-ratio:.92; }
  .portfolio-index { grid-template-columns:1fr 1fr; }
  .portfolio-index-intro h2 { font-size:clamp(3rem,5vw,5rem); }
}
@media(max-width:760px) {
  header { min-height:0; padding:1rem var(--edge) .6rem; }
  nav { gap:.2rem; }
  nav a { font-size:.88rem; padding:.65rem 0; }
  .hero { grid-template-columns:1fr; min-height:0; padding-top:clamp(3rem,8vw,5rem); padding-bottom:2rem; gap:3rem; }
  .hero::before { background-size:48px 48px; }
  .hero h1 { font-size:clamp(4.2rem,13vw,7rem); margin:2.3rem 0 2rem; }
  .hero .lede { font-size:clamp(1.55rem,5.4vw,2.4rem); }
  .hero .intro { margin:1.4rem 0 1.9rem; }
  .clusterhero { aspect-ratio:1.05; min-height:300px; padding:1rem 0; margin-top:0; }
  .clusterhero .speed strong { font-size:clamp(2.5rem,9.5vw,4.5rem); }
  .portfolio-index { grid-template-columns:1fr; gap:3rem; }
  .portfolio-index-intro h2 { font-size:clamp(3.1rem,8.5vw,5rem); }
  .portfolio-ambient{top:clamp(155px,28vw,260px);bottom:auto;height:clamp(440px,110vw,580px)}
  .portfolio-ambient iframe{height:100%}
  .portfolio-ambient-caption{font-size:9px;gap:8px}
  .portfolio-ambient-caption span:last-child{white-space:normal;text-align:right}
  .portfolio-route { min-height:155px; }
  .portfolio-route strong { font-size:clamp(2rem,7vw,3rem); }
  .practice-hero h1 { font-size:clamp(3.3rem,10vw,5.3rem); }
  .pageintro h1 { font-size:clamp(4rem,11vw,6.2rem); }
  .demo-card.helios { display:flex; grid-column:auto; }
  .demo-card.helios .demo-cover { min-height:0; aspect-ratio:1.75; }
  .demo-card.helios .demo-copy { padding:1.1rem 0 .85rem; border-top:0; }
  .demo-card.helios .demo-copy h2 { font-size:clamp(2rem,3vw,4rem); }
}
@media(max-width:560px) {
  .demo-grid { grid-template-columns:1fr; }
  .clusterhero { min-height:0; aspect-ratio:1.13; }
  .clusterhero::after { inset:14%; }
}
@media(prefers-reduced-motion:reduce) {
  .clusterhero::after { animation:none; }
  .portfolio-route:hover,.portfolio-route:focus-visible { padding-left:0; }
}

/* Real project surfaces: cinematic galleries, never invented icon art. */
.demo-cover.project-view { display:block; cursor:pointer; background:#112b25; overflow:hidden; border:1px solid #0b29221c; box-shadow:0 24px 38px -34px #061a1f8a; }
.demo-cover.project-view img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; display:block; filter:saturate(.96) contrast(1.015); transform:scale(1); transition:transform .9s cubic-bezier(.13,.78,.2,1),filter .45s; }
.demo-cover.project-view::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(to bottom,transparent 54%,#041c1782 100%); opacity:.72; mask-image:none; transform:none; transition:opacity .4s; }
.demo-cover.project-view::after { content:""; position:absolute; inset:0 auto 0 -110%; z-index:2; width:85%; height:100%; border:0; border-radius:0; opacity:.65; pointer-events:none; background:linear-gradient(105deg,transparent 21%,#ffffff21 49%,transparent 72%); transform:skewX(-12deg); transition:left 1.1s cubic-bezier(.16,.78,.25,1); }
.demo-card:hover .project-view img,.demo-card:focus-within .project-view img { transform:scale(1.035); filter:saturate(1.08) contrast(1.02); }
.demo-card:hover .project-view::before,.demo-card:focus-within .project-view::before { opacity:.94; }
.demo-card:hover .project-view::after,.demo-card:focus-within .project-view::after { left:125%; opacity:.65; transform:skewX(-12deg); }
.demo-cover.project-view span { z-index:3; left:1.1rem; bottom:1rem; padding:.45rem .7rem; color:#eff8ef; background:#09251fdd; border:1px solid #ffffff24; font:500 .76rem/1.3 "IBM Plex Mono",ui-monospace,monospace; letter-spacing:.015em; backdrop-filter:blur(12px); }
.demo-cover.project-view:focus-visible { outline:3px solid #5caa84; outline-offset:4px; }
.demo-card.helios .project-view { min-height:clamp(330px,31vw,540px); }
.demo-card:not(.helios) .project-view { aspect-ratio:1.74; }
@media(max-width:760px) {
  .demo-card.helios .project-view { min-height:0; aspect-ratio:1.74; }
  .demo-cover.project-view span { left:.7rem; bottom:.7rem; font-size:.72rem; }
}
@media(prefers-reduced-motion:reduce) {
  .demo-card:hover .project-view img,.demo-card:focus-within .project-view img { transform:none; }
  .demo-card:hover .project-view::after,.demo-card:focus-within .project-view::after { left:-110%; }
}
/* A factual, two-line About introduction rather than a four-line billboard. */
.practice-hero h1{font-size:clamp(4.1rem,7.3vw,8.5rem);max-width:16ch}
@media(max-width:760px){.practice-hero h1{font-size:clamp(3.2rem,10vw,5.3rem)}}
