/* The same drafting paper, type scale and glass material run through the entire site. */
:root, body[data-page] {
  --paper:#f6f5f9; --bg:var(--paper); --ink:#191a25; --deep:#20212e;
  --ink-soft:#51525f; --muted:#585965; --line:#d0cfd9; --wash:#ebeaf2;
  --accent:#4540a2; --accent-dark:#373080; --teal:var(--accent);
  --sans:'Helvetica Neue',Arial,system-ui,sans-serif; --serif:var(--sans);
  --mono:ui-monospace,'SFMono-Regular',Consolas,'Liberation Mono',monospace;
  --tracing:rgba(74,66,106,.052);
  --grid:linear-gradient(90deg,var(--tracing) 1px,transparent 1px),linear-gradient(var(--tracing) 1px,transparent 1px);
}
html { background:var(--paper); }
body,button,.portfolio-header { font-family:var(--sans); }
body { color:var(--ink); background-color:var(--paper); }
body[data-page], .chapter-page .hero, .chapter-page .contact, .chapter-page .ao {
  background-image:var(--grid); background-size:clamp(74px,8.33vw,150px) clamp(74px,8.33vw,150px);
  background-position:center top;
}
body[data-page] { background-color:#f5f4f8; }
::selection { background:#dddbff; color:#201d3c; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid #5445ca; outline-offset:4px; }
.portfolio-header { background:#f5f4f9e8; border-color:#cfced7; backdrop-filter:blur(16px); }
.portfolio-brand {
  display:inline-flex; align-items:center; gap:.55rem; font:550 1.42rem/1 var(--sans);
  letter-spacing:-.064em; color:var(--ink);
}
.portfolio-brand::before { content:''; width:25px; height:25px; background:url('fluid-icon.png') center/contain no-repeat; }
.portfolio-nav .main-nav a { color:#393946; font-weight:540; }
.portfolio-nav .main-nav a:is(:hover,[aria-current="page"]) { color:var(--accent); text-decoration:none; box-shadow:inset 0 -1px var(--accent); }
.portfolio-nav .main-nav .nav-contact, .portfolio-nav .menu-toggle { color:var(--ink); background:transparent; border:1px solid #aaaab8; box-shadow:none; border-radius:4px; }
.portfolio-nav .main-nav .nav-contact:is(:hover,[aria-current="page"]), .portfolio-nav .menu-toggle:hover { color:white; background:var(--deep); border-color:var(--deep); }
.hero .eyebrow, .tinylabel, body[data-page] .eyebrow, .demo-bar, .ao-readout .eyelabel,
.core-kicker, .ao-status, .work-card small, .small-label, .meta-label, .visual-topline, .demo-foot strong {
  font-family:var(--mono); font-size:.69rem; line-height:1.5; font-weight:500; letter-spacing:.085em; text-transform:uppercase; color:#505064;
}
.hero .eyebrow::before, .eyebrow::before { display:none; }
body[data-page] :is(h1,h2,h3), .chapter-page :is(h1,h2,h3), .sheet h2, .ao-lockup b, .proofitem b, .mobileproof b, .profile-details h2 {
  font-family:var(--sans); font-style:normal;
}
body[data-page] :is(.page-header,.contact-intro) h1, .chapter-page .hero h1, .chapter-page .section h2, .chapter-page .contact h2 {
  color:var(--ink); font-weight:480; letter-spacing:-.075em; line-height:.99;
}
body[data-page] :is(h1,h2) em, .chapter-page .hero h1 em { color:#686780; font-weight:inherit; font-style:normal; }
body[data-page] h2 { font-weight:500; }
body[data-page] .button,.action,.action.primary,.action.secondary {
  border-radius:4px; min-height:44px; font:550 .89rem/1.25 var(--sans); padding:.83rem 1.14rem; box-shadow:none;
}
.action.primary, body[data-page] .button:not(.secondary) { color:white; background:#242430; border-color:#242430; }
.action.secondary, body[data-page] .button.secondary { color:#2b2a39; border-color:#b7b6c5; background:#f6f5fa80; }
.action.primary:hover, body[data-page] .button:not(.secondary):hover { background:#484386; border-color:#484386; }
.action.secondary:hover, body[data-page] .button.secondary:hover { background:#e9e7f3; border-color:#817c9a; }
.action:hover, body[data-page] .button:hover { transform:none; box-shadow:none; }
.text-link,.ao-detail-link { text-underline-offset:4px; }
.text-link:hover { color:var(--accent); }
.chapter-page .hero { background-color:#eeedf3; }
.chapter-page .herogrid { gap:clamp(1.25rem,4vw,4rem); grid-template-columns:minmax(0,1.02fr) minmax(0,1fr); }
.chapter-page .hero h1 { font-size:clamp(3.3rem,13.65cqw,7rem); margin:1.35rem 0; }
.hero .lead, .herofoot, .sheetlead { color:#50505f; }
.hero .lead b,.herofoot b { color:var(--ink); font-weight:580; }
.hero .lead { max-width:34em; line-height:1.52; }
.herofoot { font-size:.8rem; }
.chapter-page .model-stage {
  aspect-ratio:1.57; max-height:42svh; mix-blend-mode:multiply;
}
.chapter-page .model-stage::after { display:none; }
.orbit-film, .model-pose { inset:0; width:100%; height:100%; }
.orbit-camera,.orbit-rotor { transform:none; }
.model:not(.has-film) .model-pose { animation-name:material-drift; }
@keyframes material-drift { from { transform:scale(.99) rotate(-3deg); } to { transform:scale(1.015) rotate(3deg); } }
.fluid-study { position:relative; mix-blend-mode:multiply; min-width:0; }
.study-art { position:absolute; inset:0; pointer-events:none; }
.fluid-still,.fluid-film { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.fluid-film,.fluid-study.playing .fluid-still { opacity:0; }
.fluid-study.playing .fluid-film { opacity:1; }
.study-label {
  display:flex; align-items:center; gap:7px; position:absolute; z-index:2; white-space:nowrap; color:#3a394b;
  font:500 clamp(.53rem,.73vw,.69rem)/1.2 var(--mono); text-transform:uppercase; letter-spacing:.055em; pointer-events:none;
}
.study-label::before { content:''; width:clamp(18px,3.4vw,62px); height:1px; background:#9a96af; }
.study-input { left:1%; bottom:24%; flex-direction:row-reverse; }
.study-output { right:1%; top:22%; }
.study-play { position:absolute; right:0; bottom:1%; z-index:2; background:transparent; border:0; color:#595769; min-height:36px; padding:.5rem .15rem .5rem .8rem; font:500 .7rem/1 var(--mono); }
.study-play::before { content:''; display:inline-block; width:6px; height:8px; margin-right:.5em; border-inline:2px solid currentColor; box-sizing:border-box; }
.study-play[aria-label^="Play"]::before { width:0; height:0; border:4px solid transparent; border-right:0; border-left:6px solid currentColor; }
.study-play:hover { color:var(--accent); text-decoration:underline; }
.model-console {
  max-width:100%; margin:.5rem 0 0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none;
}
.model-controls { padding:0; gap:0; border-radius:0; background:transparent; border-block:1px solid #c5c4d1; }
.model-controls button { background:transparent; border-radius:0; color:#585765; font:500 .88rem var(--sans); }
.model-controls button+button { border-left:1px solid #d6d4df; }
.model-controls button[aria-pressed="true"] { background:#ffffff57; box-shadow:inset 0 -2px #5753a5; color:#312d75; }
.model-controls button:hover,.model-playback button:hover { color:var(--accent); }
.model-console button:focus-visible { outline-color:var(--accent); }
.model-toolbar { margin:.2rem 0 0; }
.model-playback button { font-family:var(--mono); font-size:.7rem; font-weight:500; color:#545361; }
.core-kicker { color:#58566c; }
.model-info { margin:0; }
#coreTitle { color:var(--ink); font:500 clamp(1.25rem,1.7vw,1.65rem)/1.14 var(--sans); letter-spacing:-.046em; }
#coreCaption { color:#50505c; }
.model-output { color:#575662; margin-top:.42rem; }
.model-output b { color:#454074; font-weight:550; }
.proofline, .proofgrid { background:#f7f6fa; border-color:var(--line); }
.proofitem b, .mobileproof b { font-weight:480; color:#302d45; }
.proofitem span, .mobileproof span { color:var(--ink-soft); }
.proofitem span strong { color:#353442; font-weight:580; }
.chapter-nav { background:#eeedf2dd; border:1px solid #cfccd9; border-radius:3px; box-shadow:none; }
.chapter-nav a::before { width:8px; height:1px; border-radius:0; background:#868195; }
.chapter-nav a[aria-current]::before { width:14px; height:2px; border-radius:0; background:var(--accent); }
.chapter-nav a span { background:#272538; }
.chapter-page .work { background:#f8f7fa; }
.work-items, .work-card { border-color:#c9c7d4; }
.work-card small { color:#514c76; }
.work-card h3 { color:var(--ink); font-weight:520; }
.work-card p,.work-card .foot,.sectop p { color:var(--ink-soft); }
.work-card .foot { font-weight:400; }
.chapter-page .ao { color:var(--ink); background-color:#e9e7f1; }
.ao .tinylabel,.ao .ao-lockup small,.ao-status { color:#534e6d; }
.ao .ao-head > p { color:#4c495a; }
.ao-art-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid #c9c5d8; margin:.5rem 0 1.2rem; }
.ao-art-row .fluid-study { flex:1; height:clamp(7.5rem,15vh,10rem); max-width:17rem; }
.ao-art-row .study-label { display:none; }
.ao-art-row .study-play { font-size:.63rem; }
.ao .ao-lockup { margin:0; }
.ao-detail-link { display:inline-flex; gap:.6rem; align-items:center; color:#373254; min-height:40px; font-size:.86rem; font-weight:560; }
.ao-detail-link span { display:block; width:.43rem; height:.43rem; border-top:1px solid; border-right:1px solid; transform:rotate(45deg); }
.ao-status { margin:1rem 0 .1rem; }
.ao .demo { border-radius:6px; color:#f4f3fb; background:#242332; border:1px solid #343242; box-shadow:0 12px 32px -22px #241b47a1; }
.demo-bar,.demo-foot { border-color:#4a465e; }
.demo-bar { background:#2d2b3b; color:#eeecf9; }
.demo-bar span:last-child { color:#c3bedb; }
.demo-head { font-weight:540; color:#faf9ff; }
.ao .demo-intro,.ao .ao-readout p,.ao .ao-stage p { color:#d2cfdf; }
.segment { background:#2c2a3a; color:#e6e3ef; border:1px solid #57536c; border-radius:3px; }
.segment small { color:#c4bfd4; }
.segment[aria-pressed=true] { color:white; background:#41405b; border-color:#b8b1f5; box-shadow:inset 2px 0 #c9c1ff; }
.segment:hover,.stage:hover { border-color:#c1b9ef; }
.ao-readout { border-color:#4a475c; }
.ao-readout .eyelabel { color:#beb6ee; }
.ao-readout h4,.ao-stage b { color:#faf9ff; }
.ao-readout strong { color:#ddd8ff; }
.stage { color:#e6e3ef; border-radius:3px; background:#2a2838; border:1px solid #56526a; }
.stage[aria-pressed=true] { color:#262039; border-color:#c8bff3; background:#c8bff3; }
.demo-foot { color:#c7c4d5; background:#2b2938; }
.chapter-page .contact { background-color:#efedf4; position:relative; isolation:isolate; overflow:hidden; }
.chapter-page .contact::before { content:''; position:absolute; z-index:-1; inset:0 10% 0 auto; width:34%; opacity:.30; mix-blend-mode:multiply; background:url('fluid-phase-3.webp') center/contain no-repeat; }
.chapter-page .contact .action { flex-shrink:0; }
.footer { background:#f5f4f8; border-color:var(--line); color:var(--ink-soft); }
.overlay { background:#22203469; }
.sheet,.modal { background:#f7f6fa; }
.sheet h2 { font-weight:500; }
.sheet :is(p,li), .sheet .sheetproof small { color:var(--ink-soft); }
.sheet .sheetproof b, .sheet h3 { color:#464064; }
.sheetclose, .close-modal { color:var(--ink); background:var(--wash); border-color:var(--line); }

body[data-page] .page-header { display:grid; grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr); align-items:center; gap:5%; padding-block:clamp(2.5rem,5vw,4.75rem); }
.page-header .fluid-study { height:clamp(13rem,22vw,21rem); }
body[data-page] .page-header h1 { font-size:clamp(2.95rem,5.3vw,5.55rem); margin:.9rem 0 1.15rem; }
body[data-page] .page-header .lede { max-width:36rem; font-size:clamp(1rem,1.23vw,1.18rem); color:var(--ink-soft); }
body[data-page] :is(.case-brief,.approach-visual,.research-launch,.result-band,.ao-research,.ao-product-visual) { border-radius:0; }
.case-brief,.result-band,.scope-note,.research-launch,.walk-intro,.ao-delivery,.ao-questions,.credentials,.site-footer,
.approach-workspace,.walkthrough,.ao-research,.profile-tabs,.split-workspace,.contact-path,.contact-about { border-color:#c5c2d2; }
.selection-list button { background:transparent; }
.selection-list button[aria-selected=true] { background:#eceaf4; box-shadow:inset 2px 0 #6d64b3; }
.selection-list button,.selection-list button[aria-selected=true] { padding-inline:.8rem; }
.selection-list button[aria-selected=true] .selection-name { color:#433987; }
.selection-list button:hover { background:#efedf5; }
.approach-visual { background:#f0eef5; border:1px solid var(--line); padding:1rem .4rem .3rem; }
.orbit-center::before { content:''; position:absolute; inset:-24%; z-index:0; background:url('fluid-phase-3.webp') center/contain no-repeat; opacity:.50; mix-blend-mode:multiply; }
.orbit-center span { position:relative; }
.orbit-center .orbit-word { font-weight:500; letter-spacing:-.06em; }
.orbit-node { background:#efedf5; }
.orbit-node::before { box-shadow:0 0 0 5px #efedf5; }
.orbit-node[aria-pressed=true]::before { box-shadow:0 0 0 4px #efedf5,0 0 0 5px #a79fd9; }
.orbit-base { stroke:#c9c4d7; }
.orbit-inner { stroke:#d1ccde; }
.case-brief dt,.ao-plan-detail dt,.approach-rows dt,.ao-research-points dt,.ao-beta strong,.profile-credentials .eyebrow { color:#4a4260; }
.walk-tabs button,.research-tabs button,.ao-stage-tabs button { background:transparent; }
.walk-tabs button[aria-selected=true],.research-tabs button[aria-selected=true] { background:#e8e5f3; color:#42357c; }
.walkthrough-panel, .ao-stage-panel, .walk-output { background:#f0eef5; }
body[data-page] .ao-stage-panel { border-left:2px solid #7971ac; padding-left:clamp(1rem,2.5vw,2rem); padding-right:1rem; }
.ao-screen-launch { border:1px solid #c7c1d6; border-radius:4px; }
.ao-screen-launch span { background:#292738; color:white; }
.contact-intro .fluid-study { height:clamp(9.5rem,14vw,13rem); margin-top:1.3rem; }
.contact-intro .contact-detail { margin-top:1.3rem; }
.contact-path:target { background:#ebe8f4; }
.profile-top .profile-summary,.profile-details { max-width:970px; margin-inline:auto; }
.profile-top .profile-summary { padding-block:1rem 2.3rem; border-top:1px solid var(--line); }
.profile-details { padding-top:1.2rem; }
.profile-summary h2 { font-weight:500; }
.profile-summary .proofgrid { background:transparent; }
.profile-summary>p { margin-top:1rem; }
.site-footer { background:transparent; }
body[data-page] .full-stat, .share-stat .big, .experience-result em { color:#494276; }
.bar-fill { background:#7166b1; }
.bar-fill.secondary { background:#a8a4ba; }
body[data-page] .not-found { background:url('fluid-phase-1.webp') right center/min(37%,23rem) auto no-repeat; }

@media(max-width:900px) {
  .portfolio-nav .main-nav { background:#f5f4f9; border-color:var(--line); }
  .portfolio-nav .main-nav a:is(:hover,[aria-current="page"]) { box-shadow:none; text-decoration:underline; }
  .study-label { font-size:.56rem; }
}
@media(max-width:780px) {
  .chapter-page .herogrid { gap:1.65rem; }
  .chapter-page .hero h1 { font-size:clamp(3.2rem,11.5vw,5.5rem); margin:.9rem 0; }
  .chapter-page .model-stage { max-height:none; aspect-ratio:1.68; }
  .chapter-page .model { width:100%; }
  .herofoot,.mobileproof { display:none; }
  .chapter-page .proofline { display:block; }
  .chapter-page .proofgrid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; padding:.85rem 0; }
  .chapter-page .proofitem,.chapter-page .proofitem+.proofitem { display:block; padding:0; margin:0; border:0; }
  .chapter-page .proofitem b { display:block; font-size:clamp(1.65rem,7vw,2.5rem); }
  .chapter-page .proofitem span { font-size:.67rem; line-height:1.3; display:block; }
  .chapter-page .proofitem span strong { font-size:.72rem; }
  .hero .heroactions { margin-top:1.1rem; }
  .model-toolbar { margin-inline:0; }
  .model-info { margin-inline:0; }
  .ao-art-row { margin:.4rem 0 .9rem; }
  .ao-art-row .fluid-study { height:8.4rem; }
  .chapter-page .contact::before { width:60%; inset:10% -12% 10% auto; opacity:.21; }
  body[data-page] .page-header { gap:3%; }
  .page-header .study-label { display:none; }
  .profile-summary .proofitem b { min-width:0; }
}
@media(max-width:680px) {
  body[data-page] .page-header { grid-template-columns:1fr; gap:1rem; padding-block:2.2rem 1rem; }
  body[data-page] .page-header h1 { font-size:clamp(2.75rem,10.5vw,4rem); }
  .page-header .fluid-study { height:clamp(9rem,41vw,13rem); }
  .page-header .study-label { display:flex; }
  .study-label::before { width:clamp(15px,5vw,32px); }
  .contact-intro .fluid-study { height:10rem; }
  .contact-intro .contact-detail { margin-top:1rem; }
  .selection-list button,.selection-list button[aria-selected=true] { padding-inline:.5rem; }
  .approach-visual { padding-inline:0; }
  .profile-summary .heroactions { margin-top:.5rem; }
  body[data-page] .not-found { background-position:100% 4%; background-size:24% auto; }
}
@media (prefers-reduced-motion:reduce) {
  .model:not(.has-film) .model-pose { animation:none; }
}
@media print {
  body,.chapter-page .hero,.chapter-page .contact,.chapter-page .ao { background:#fff; }
  .model-stage,.fluid-study,.study-play,.chapter-page .contact::before { display:none; }
  body[data-page] .page-header { display:block; }
}

/* Keep the wordmark in place as the next page settles onto the drafting grid. */
@media (prefers-reduced-motion:no-preference) {
  @view-transition { navigation:auto; }
  .portfolio-brand { view-transition-name:portfolio-signature; }
  ::view-transition-group(root), ::view-transition-group(portfolio-signature),
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration:180ms; }
}
