@font-face{font-family:Manrope;src:url('assets/fonts/manrope-latin.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap}
:root{--bg:#050505;--ink:#eeeae4;--muted:#aaa29d;--rose:#fb8cab;--line:#ffffff1c;--gutter:clamp(24px,3.3vw,64px);--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#3c3035 var(--bg)}body{margin:0;background:var(--bg);color:var(--ink);font:400 14px/1.6 Manrope,Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{color:inherit;font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid var(--rose);outline-offset:6px}button:disabled{cursor:default}button{touch-action:manipulation}img{max-width:100%}::selection{background:#fb8cab40;color:#fff}
#scene{position:fixed;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none}.grain{position:fixed;inset:0;pointer-events:none;z-index:5;opacity:.026;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.skip-link{position:fixed;top:-80px;left:20px;z-index:30;background:var(--ink);color:var(--bg);padding:12px}.skip-link:focus{top:15px}
header{position:fixed;top:0;left:0;right:0;z-index:10;padding:23px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;isolation:isolate;background:transparent}
/* Neutral glass fades into the page; no colored reflection or visible bottom edge. */
header::before{content:'';position:absolute;inset:0 0 -24px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#05050594,#0505052e 68%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);-webkit-mask-image:linear-gradient(180deg,#000 45%,transparent);mask-image:linear-gradient(180deg,#000 45%,transparent)}
.brand{display:flex;align-items:center;gap:12px;font-weight:500;white-space:nowrap}.avatar{position:relative;overflow:hidden;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff28;border-radius:50%;background:#24211f;font-size:0}.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.count{position:absolute;left:50%;transform:translateX(-50%);color:#716969;font-size:10px;font-variant-numeric:tabular-nums}.count b{color:var(--ink);font-weight:500}.count i{font-style:normal;margin:0 13px}.header-actions{display:flex;align-items:center;gap:24px}.header-contact{font-size:11px;color:#d9d0ca}.header-contact span{color:var(--rose);margin-left:12px}.header-contact:hover{color:#fff}#menu{display:none;padding:10px 0;background:none;border:0;font-size:11px}#menu span{padding-left:12px;color:var(--rose)}
#index{position:fixed;right:var(--gutter);top:106px;z-index:9;display:grid;gap:14px;font-size:10px}#index a{position:relative;display:flex;gap:16px;color:#716a68;transition:color .3s}#index a span{width:150px}#index a.active,#index a:hover{color:var(--ink)}#index a.active::before{content:'·';position:absolute;left:-12px;color:var(--rose)}
section{position:relative;min-height:115svh;display:flex;align-items:flex-end;padding:150px var(--gutter) 104px}#intro{min-height:100svh}.copy{width:100%;max-width:1040px;opacity:1;transform:none;transition:opacity 1.15s var(--ease),transform 1.35s var(--ease)}body.js-ready .copy{opacity:.15;transform:translateY(36px)}body.js-ready section.active .copy{opacity:1;transform:none}.eyebrow{font-size:9px;line-height:1.8;letter-spacing:1.7px;color:#a49a94;margin:0 0 24px}.eyebrow em{font-style:normal;color:var(--rose);margin-right:12px}h1,h2{font-size:clamp(42px,5.1vw,78px);font-weight:400;letter-spacing:-.06em;line-height:1.08;margin:0}h1{font-size:clamp(36px,3.8vw,60px);max-width:950px;line-height:1.13}.muted{color:#9b938d}.description{font-size:16px;line-height:1.85;color:var(--muted);max-width:700px;margin:27px 0}.intro-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:30px}.button-primary,.button-secondary,.copy-email{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:46px;padding:12px 19px;border:1px solid var(--line);border-radius:50px;font-size:11px;font-weight:500;transition:background .25s,border-color .25s,transform .25s}.button-primary{background:#eeeae4;background-image:none;color:#171014;-webkit-text-fill-color:#171014;border-color:#eeeae4;-webkit-appearance:none;appearance:none}.button-primary:link,.button-primary:visited{color:#171014;-webkit-text-fill-color:#171014}.button-secondary,.copy-email{background:#0c090b80;color:var(--ink)}.button-secondary:hover,.copy-email:hover{border-color:#fb8cab80;background:#fb8cab10}.button-secondary span,.copy-email span{color:var(--rose)}.intro-note{font-size:10px;color:#8d8480;letter-spacing:.3px;margin:20px 0 0}.vertical{position:absolute;right:42px;top:54%;writing-mode:vertical-rl;font-size:8px;letter-spacing:2px;color:#625a57}

/* Hero portrait composition */
.intro-composition{display:grid;grid-template-columns:1fr 1fr;gap:var(--gutter);align-items:center;width:100%;max-width:1400px}
.intro-composition .copy{max-width:none}
.hero-portrait{position:relative;display:flex;justify-content:flex-end;align-items:center}
.hero-portrait::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40%;background:linear-gradient(180deg,transparent 0%,var(--bg) 100%);pointer-events:none}.hero-portrait img{width:auto;max-width:100%;max-height:85vh;height:auto;object-fit:contain;filter:drop-shadow(0 0 80px #fb8cab33)}
.availability{margin-top:18px;font-size:11px;color:var(--rose);letter-spacing:.5px;opacity:.9;display:inline-flex;align-items:center;gap:8px}.availability-dot{width:7px;height:7px;border-radius:50%;background:var(--rose);box-shadow:0 0 8px #fb8cab80;flex:none}.title-role{display:inline-block;white-space:nowrap}

@media(min-width:701px) and (max-width:1100px){
  .intro-composition{gap:40px}
  .hero-portrait img{max-height:70vh}
}

  .hero-portrait{order:-1;width:100%;justify-content:center;margin-top:-40px}
  .hero-portrait img{max-width:280px;max-height:280px;filter:drop-shadow(0 0 60px #fb8cab22)}
  .availability{font-size:10px}
}
@media(max-width:380px){
  .hero-portrait img{max-width:220px;max-height:220px}
  .availability{font-size:9px}
}
@media(max-width:380px) and (max-height:650px){
  .hero-portrait{margin-top:-20px}
  .hero-portrait img{max-width:180px;max-height:180px}
}
@media(prefers-reduced-motion:reduce){
  .hero-portrait img{filter:none;transition:none}
  .intro-composition .copy{opacity:1;transform:none}
}.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.tags span{border:1px solid #ffffff24;border-radius:30px;font-size:10px;line-height:1.5;padding:8px 13px}.languages{display:flex;flex-wrap:wrap;gap:32px;margin-top:32px;font-size:11px;color:#9e9690}.languages b{display:block;font-size:10px;font-weight:400;color:#e7ded5;margin-top:7px}.text-link{display:inline-block;font-size:11px;line-height:1.5;padding-bottom:8px;border-bottom:1px solid #754254;margin-top:26px}.text-link:hover{color:var(--rose)}
.skill-lines{max-width:710px;margin-top:30px}.skill-lines>div{display:grid;grid-template-columns:135px 1fr;gap:20px;padding:16px 0;border-top:1px solid var(--line)}.skill-lines h3{font-size:11px;font-weight:500;margin:0}.skill-lines p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}
#work{padding-top:160px;min-height:120svh}.work-copy{max-width:1060px}.work-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:60px;margin-bottom:40px}.work-heading h2{font-size:clamp(42px,4.5vw,66px)}.work-intro{max-width:300px;padding-bottom:4px}.work-intro>p{font-size:13px;line-height:1.9;color:var(--muted);margin:0}.work-intro .text-link{margin-top:20px}.projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px}.project-card{display:block;width:100%;min-width:0;text-align:left;background:#0e0b0de8;border:1px solid var(--line);border-radius:12px;overflow:hidden;padding:0;transition:border-color .35s,transform .5s var(--ease),box-shadow .35s}.project-card:hover{transform:translateY(-5px);border-color:#fb8cab50;box-shadow:0 15px 45px #0005}.project-visual{position:relative;display:block;overflow:hidden;background:#161115;border-bottom:1px solid var(--line)}.project-cover{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;transition:transform .8s var(--ease)}.project-card:hover .project-cover{transform:scale(1.035)}.project-open{position:absolute;right:16px;bottom:16px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#0c080bba;border:1px solid #ffffff40;color:#fff;font-size:18px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:background .3s}.project-card:hover .project-open{background:#f4d8e5;color:#391222}.project-info{display:block;padding:23px}.project-number{display:block;font-size:8px;letter-spacing:1.6px;color:#b0929d;margin-bottom:12px}.project-info>strong{display:block;font-size:19px;line-height:1.4;font-weight:500;letter-spacing:-.5px}.project-summary{display:block;margin-top:10px;min-height:44px;font-size:11px;line-height:1.9;color:#aaa19b;max-width:370px}.project-stack{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:23px;padding-top:16px;border-top:1px solid var(--line);font-size:9px;color:#c3b7b0}.project-stack>span{color:var(--rose);white-space:nowrap}.project-hint{font-size:10px;line-height:1.7;color:#948882;margin:25px 0 0}
.journey-copy{max-width:900px}.journey-copy h2{font-size:clamp(42px,4vw,62px)}.timeline{margin-top:32px;display:grid;gap:24px}.timeline article{border-left:1px solid #fb8cab5c;padding-left:20px}.timeline article>span{font-size:9px;letter-spacing:.7px;color:#cfabb8}.timeline h3{font-size:14px;font-weight:500;margin:8px 0}.timeline p{font-size:12px;line-height:1.85;color:var(--muted);margin:0;max-width:680px}.interests{font-size:11px;line-height:1.8;color:#9c9089;margin-top:27px}.contact{display:inline-flex;align-items:center;gap:50px;border-bottom:1px solid #78616b;padding:16px 0;font-size:clamp(17px,2vw,28px);letter-spacing:-.8px;margin-top:6px}.contact span{color:var(--rose)}.contact-details,.social-links{display:flex;flex-wrap:wrap;gap:25px;font-size:12px;color:var(--muted);margin-top:25px}.social-links{color:var(--ink);gap:30px}.social-links a:hover{color:var(--rose)}.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.copy-feedback{min-height:18px;margin:8px 0 -8px;font-size:10px;color:#edb8cc}.rail{position:fixed;right:20px;top:58%;display:grid;gap:20px;z-index:8}.rail a{display:block;position:relative;width:12px;height:1px;background:#45403e}.rail a::after{content:'';position:absolute;inset:-10px -4px}.rail a.active{background:var(--rose);width:20px;transform:translateX(-8px);box-shadow:0 0 10px var(--rose)}.scroll{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);font-size:9px;color:#9b8e87;display:grid;gap:10px;text-align:center;transition:opacity .4s}.scroll span{color:var(--rose);font-size:18px}footer{display:flex;justify-content:space-between;gap:25px;padding:30px var(--gutter);font-size:10px;color:#9b8e87;border-top:1px solid var(--line)}
body.modal-open{overflow:hidden}dialog{width:min(1080px,94vw);max-height:90dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;color:var(--ink);background:#100d10;border:1px solid #ffffff26;border-radius:18px;padding:34px;box-shadow:0 35px 120px #000b}dialog::backdrop{background:#000b;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}#close{position:absolute;right:20px;top:18px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:50%;background:#171217;font-size:26px;line-height:1}#close:hover{border-color:#fb8cab88}.project-dialog-heading{padding-right:36px}.project-dialog-heading .eyebrow{font-size:9px;margin-bottom:12px}.project-dialog-heading h2{font-size:clamp(24px,3.3vw,40px);letter-spacing:-1.4px;line-height:1.2}.project-dialog-heading>p:last-child{font-size:12px;line-height:1.9;color:var(--muted);max-width:690px;margin:16px 0 25px}.project-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:30px;align-items:start}.gallery-panel{min-width:0}#project-art{display:grid;place-items:center;min-height:200px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#070607}#project-art img{display:block;width:100%;height:min(46vh,410px);object-fit:contain}#project-art[aria-busy=true]{opacity:1}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.gallery-controls button{flex:none;display:grid;place-items:center;background:#ffffff04;border:1px solid #ffffff26;border-radius:50%;width:36px;height:36px}.gallery-controls button:disabled{opacity:.25}#gallery-caption{font-size:9px;color:var(--muted);line-height:1.7;text-align:center}.case-eyebrow{font-size:8px;letter-spacing:1.8px;color:#b5909f;margin:0 0 20px}#project-details{display:grid;gap:19px;margin:0}#project-details dt{font-size:11px;font-weight:600;color:var(--ink);margin:0 0 7px}#project-details dd{font-size:11px;line-height:1.85;color:var(--muted);margin:0}.case-panel .tags{margin-top:23px;gap:6px}.case-panel .tags span{font-size:9px;padding:6px 10px}.case-panel .text-link{margin-top:23px}.case-links{display:flex;flex-wrap:wrap;gap:12px}.case-links:empty{display:none}.case-links a{font-size:11px;color:var(--rose);margin-top:20px}.project-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.project-dialog-footer>span{font-size:9px;color:#b397a2}#next-project{display:flex;align-items:center;gap:20px;background:none;border:0;padding:8px 0;font-size:11px}#next-project span{color:var(--rose)}
@media(min-width:701px) and (max-width:1100px){.copy{max-width:87%}.work-copy{max-width:100%}#index{right:22px;font-size:9px}#index a span{width:130px}.work-intro{max-width:230px}.project-summary{min-height:62px}.count{display:none}.project-info{padding:19px}}
@media(max-width:700px){:root{--gutter:24px}header{padding:18px 20px;gap:12px}.brand{font-size:10px;gap:9px}.avatar{width:30px;height:30px}.count{display:none}.header-actions{gap:16px}.header-contact{font-size:9px}.header-contact span{margin-left:5px}#menu{display:block;font-size:10px}#menu span{padding-left:6px}#index{display:none;top:75px;right:20px;max-height:70dvh;overflow:auto;padding:25px;background:#0d0a0df5;border:1px solid var(--line);border-radius:12px;gap:18px;font-size:11px}#index.open{display:grid}section{min-height:105svh;padding:130px var(--gutter) 90px}#intro{min-height:100svh;padding-bottom:120px}h1{font-size:clamp(27px,7vw,43px);line-height:1.18}h2{font-size:clamp(37px,10vw,52px)}.eyebrow{font-size:8px;letter-spacing:1.3px;max-width:280px;margin-bottom:20px}.description{font-size:13px;line-height:1.85;margin:22px 0}.desktop-break{display:none}.vertical{display:none}.intro-actions{gap:9px;margin-top:25px}.button-primary,.button-secondary,.copy-email{font-size:10px;min-height:43px;padding:11px 15px;gap:16px}.intro-note{font-size:9px;margin-top:17px}.tags{gap:6px}.tags span{padding:7px 11px;font-size:9px}.languages{gap:22px;font-size:10px}.languages b{font-size:9px}.skill-lines>div{grid-template-columns:1fr;gap:6px;padding:13px 0}.skill-lines p{font-size:11px}.rail{right:10px}.scroll{font-size:8px;bottom:13px;gap:7px}.work-heading{display:block;margin-bottom:27px}.work-intro{max-width:100%;margin-top:22px}.work-intro>p{font-size:12px;max-width:350px}.work-intro .text-link{margin-top:15px}#work{padding-top:130px}.work-heading h2{font-size:42px}.projects{grid-template-columns:1fr;gap:22px}.project-cover{aspect-ratio:16/10}.project-info{padding:21px}.project-info>strong{font-size:19px}.project-summary{min-height:0;font-size:11px}.project-stack{font-size:9px;margin-top:19px}.project-hint{font-size:9px}.journey-copy h2{font-size:39px}.timeline{gap:24px}.timeline h3{font-size:13px;line-height:1.6}.timeline p{font-size:11px}.timeline article>span{font-size:8px}.interests{font-size:10px}.contact{font-size:clamp(17px,5.3vw,23px);gap:22px;letter-spacing:-.7px}.contact-details{font-size:11px;gap:15px}.contact-actions{gap:9px;margin-top:25px}.social-links{font-size:11px}.project-layout{grid-template-columns:1fr;gap:26px}dialog{padding:26px 20px;width:94vw;max-height:92dvh}.project-dialog-heading{padding-right:25px}.project-dialog-heading h2{font-size:26px;letter-spacing:-1px}.project-dialog-heading>p:last-child{font-size:11px}#close{right:12px;top:12px;width:32px;height:32px}#project-art img{height:33vh}#project-art{min-height:170px}.case-eyebrow{margin-bottom:18px}.case-panel .tags{margin-top:20px}footer{padding:25px var(--gutter);font-size:8px;align-items:center}.intro-composition{display:flex;flex-direction:column;align-items:flex-start;gap:24px;padding-bottom:40px}.hero-portrait{order:-1;width:100%;justify-content:center;margin-top:0}.hero-portrait::after{height:30%}.hero-portrait img{max-width:280px;max-height:280px;filter:drop-shadow(0 0 60px #fb8cab22)}.availability{font-size:10px}}
@media(max-width:370px){.header-contact{display:none}.intro-actions{gap:8px}.button-primary,.button-secondary{padding:10px 12px;gap:12px}.project-info{padding:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.copy,.project-card,.project-cover,.button-primary,.button-secondary{transition:none}body.js-ready .copy{opacity:1;transform:none}.project-card:hover,.project-card:hover .project-cover,.button-primary:hover{transform:none}}

/* Contact actions share an explicit button style across links and native buttons. */
#contact .contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin: 28px 0 0;
  max-width: 100%;
}
#contact .contact-action {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 auto;
  gap: 22px;
  min-height: 46px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #ffffff28;
  border-radius: 50px;
  background: #100c1080;
  color: #eeeae4;
  font: 500 11px/1.6 Manrope, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
#contact .contact-action > span { color: inherit; }
#contact .contact-action > svg { flex: none; color: #fb8cab; }
#contact .contact-action:hover { border-color: #fb8cab80; background: #fb8cab10; }
#contact .copy-feedback { margin: 10px 0 0; min-height: 18px; max-width: 440px; }
#contact .social-links { margin-top: 22px; }
@media (max-width: 480px) {
  #contact .contact-actions { flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
  #contact .contact-action { width: 100%; min-height: 46px; font-size: 11px; }
}

/* Native cursors stay precise and work inside modal dialogs without a tracking overlay. */
@media (hover: hover) and (pointer: fine) {
  html body {
    cursor: url('assets/cursor-default.svg') 16 16, auto;
  }
  html body a,
  html body button,
  html body [role="button"],
  html body summary,
  html body label[for],
  html body #contact .contact-action {
    cursor: url('assets/cursor-action.svg') 20 20, pointer;
  }
  html body button:disabled,
  html body [aria-disabled="true"] {
    cursor: not-allowed;
  }
  html body input,
  html body textarea,
  html body [contenteditable="true"] {
    cursor: text;
  }
}

/* A viewport-sized stage, with native document scrolling as the story track. */
html.story-document { scrollbar-width: none; }
html.story-document::-webkit-scrollbar { display: none; }
body.story-ready { overflow-x: hidden; overflow-anchor: none; }
#story-scroll { display: none; }
body.story-ready #story-scroll { display: block; width: 1px; pointer-events: none; }
body.story-ready main { position: fixed; inset: 0; z-index: 2; overflow: clip; pointer-events: none; }
body.story-ready main > section,
body.story-ready #intro,
body.story-ready #work {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  width: 100%;
  padding: 104px var(--gutter) 48px;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
body.story-ready main > section.story-tall { align-items: flex-start; }
body.story-ready main > section.active.is-on,
body.story-ready #intro.active.is-on,
body.story-ready #work.active.is-on { pointer-events: auto; }
body.story-ready main > section .copy { opacity: 1 !important; transition: none !important; will-change: transform; }
body.story-ready #intro .copy { padding-bottom: 0; }
body.story-ready #work .work-heading { margin-bottom: 32px; }
.story-word { display: inline-flex; white-space: nowrap; }
.story-char { display: inline-block; }
body.story-ready .story-char {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0,.35em,0);
  transition: transform .9s cubic-bezier(.2,.7,.1,1), opacity .7s cubic-bezier(.2,.7,.1,1), filter .9s cubic-bezier(.2,.7,.1,1);
  transition-delay: calc(var(--char) * 28ms);
}
body.story-ready .is-on .story-char { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); }
body.story-ready footer { position: relative; z-index: 3; background: #050505; }
body.story-ready .rail { display: block; top: 50%; transform: translateY(-50%); height: min(46vh,380px); width: 22px; }
body.story-ready .rail::before,
.story-rail-fill { position: absolute; right: 10px; top: 0; width: 1px; height: 100%; background: #ffffff24; }
body.story-ready .rail::before { content: ''; }
.story-rail-fill { display: none; transform-origin: top; }
body.story-ready .story-rail-fill { display: block; background: var(--rose); box-shadow: 0 0 8px #fb8cab66; }
body.story-ready .rail a { position: absolute; right: 5px; transform: translateY(-50%); }
body.story-ready .rail a.active { right: 1px; transform: translateY(-50%); }
@media (max-width: 700px) {
  body.story-ready main > section,
  body.story-ready #intro,
  body.story-ready #work { padding: 96px var(--gutter) 36px; }
  body.story-ready #work .work-heading { margin-bottom: 25px; }
  body.story-ready .rail { right: 7px; }
  body.story-ready .vertical { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-char { opacity: 1; transform: none; filter: none; transition: none; }
}
body.story-ready main > section.story-tall,
body.story-ready #work.story-tall,
body.story-ready #intro.story-tall { align-items: flex-start; }
@media (max-width: 700px) {
  body.story-ready #intro { padding-bottom: 82px; }
}

/* Touch devices must not retain the desktop white hover state after a tap. */
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover {
    background-color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
  }
}
@media (hover: none), (pointer: coarse) {
  .button-primary:hover,
  .button-primary:active {
    background: #eeeae4;
    border-color: #eeeae4;
    color: #171014;
    -webkit-text-fill-color: #171014;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button-primary:hover { transform: none; }
}

/* A labelled icon control keeps the small-screen header compact. */
#menu .menu-glyph { position: relative; display: block; width: 18px; height: 16px; padding: 0; color: #eeeae4; }
#menu .menu-glyph::before,
#menu .menu-glyph::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .2s, top .2s; }
#menu .menu-glyph::before { top: 4px; }
#menu .menu-glyph::after { top: 11px; }
#menu[aria-expanded="true"] .menu-glyph { color: var(--rose); }
#menu[aria-expanded="true"] .menu-glyph::before { top: 7px; transform: rotate(45deg); }
#menu[aria-expanded="true"] .menu-glyph::after { top: 7px; transform: rotate(-45deg); }
@media (max-width: 700px) {
  .header-actions { gap: 12px; }
  #menu { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff20; border-radius: 50%; background: #100c1050; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
  #index { top: 88px; max-height: calc(100svh - 112px); gap: 6px; padding: 17px 22px; }
  #index a { min-height: 40px; align-items: center; padding: 7px 0; }
}
@media (prefers-reduced-motion: reduce) {
  #menu .menu-glyph::before, #menu .menu-glyph::after { transition: none; }
}
@media (max-width: 700px) {
  #index a:not(.active) { color: #b2aaa4; }
}

/* Drawn interface icons retain their line weight and colors on iOS. */
.ui-icon { display: inline-block; flex: none; width: 18px; height: 18px; vertical-align: middle; pointer-events: none; }
.button-primary .ui-icon { color: #171014; }
.button-secondary .ui-icon, .header-contact .ui-icon, .social-links .ui-icon, .text-link .ui-icon { color: var(--rose); }
.project-open .ui-icon { width: 18px; height: 18px; }
.project-stack .ui-icon { width: 14px; height: 14px; margin-left: 5px; }
.text-link .ui-icon { width: 15px; height: 15px; margin-left: 7px; }
.header-contact { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid #ffffff28; border-radius: 50px; background: #100c1080; color: var(--ink); -webkit-text-fill-color: currentColor; -webkit-appearance: none; appearance: none; font-size: 11px; font-weight: 500; line-height: 1.5; white-space: nowrap; touch-action: manipulation; }
.intro-actions > a { min-height: 48px; touch-action: manipulation; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links > a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; min-width: 138px; padding: 12px 16px; border: 1px solid #ffffff28; border-radius: 50px; background: #100c1080; color: var(--ink); -webkit-text-fill-color: currentColor; font: 500 12px/1.5 Manrope,Arial,sans-serif; text-decoration: none; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.scroll { z-index: 6; display: flex; align-items: center; justify-content: center; min-width: 56px; min-height: 64px; width: 56px; padding: 4px; bottom: max(14px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: transparent; color: var(--rose); -webkit-text-fill-color: currentColor; text-decoration: none; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
.scroll .scroll-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scroll > .ui-icon { width: 32px; height: 56px; color: var(--rose); filter: drop-shadow(0 0 6px #fb8cab60); animation: comet-drift 3.6s ease-in-out infinite; transition: color .4s, filter .4s; }
.scroll .comet-tail { opacity: .28; stroke-dasharray: 1 4; }
.scroll .comet-star { animation: comet-twinkle 3.6s ease-in-out infinite; }
.scroll:hover > .ui-icon, .scroll:focus-visible > .ui-icon { color: #fff0f6; filter: drop-shadow(0 0 9px #fb8cabb0); }
@keyframes comet-drift { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes comet-twinkle { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion:reduce) { .scroll > .ui-icon, .scroll .comet-star { animation: none; transition: none; } }
@media (hover: hover) and (pointer: fine) {
  .header-contact:hover, .social-links > a:hover { border-color: #fb8cab99; background: #27131e; color: var(--ink); }
}
@media (hover: none), (pointer: coarse) {
  .header-contact:active, .social-links > a:active { border-color: #fb8cab99; background: #27131e; }
}
@media (max-width: 700px) {
  .header-contact { font-size: 11px; padding: 10px 12px; gap: 8px; }
  .header-contact .ui-icon { width: 16px; height: 16px; }
  .intro-actions { gap: 10px; }
  .intro-actions > a { padding: 12px 16px; gap: 12px; font-size: 11px; line-height: 1.5; }
  .social-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 360px; gap: 12px; }
  .social-links > a { min-width: 0; width: 100%; gap: 12px; padding: 12px 15px; }
  body.story-ready #intro { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  body:not(.story-ready) #intro { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .intro-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .intro-actions > a { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) and (max-height: 650px) {
  #intro h1 { font-size: 25px; }
  #intro .description { font-size: 12px; line-height: 1.7; margin: 18px 0; }
  #intro .eyebrow { margin-bottom: 16px; }
  #intro .intro-actions { gap: 8px; margin-top: 20px; }
  #intro .intro-note { display: none; }
}
@media (max-width: 370px) {
  .header-contact { display: none; }
}
.scroll { font-size: 12px; }
@media (hover: none), (pointer: coarse) {
  .header-contact:hover, .social-links > a:hover { color: var(--ink); }
}

/* Opt-in ambient music, using the same glass controls as the rest of the header. */
.header-contact .header-contact-label { margin: 0; color: inherit; }
.music-toggle { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid #ffffff28; border-radius: 50px; background: #100c1080; color: var(--ink); -webkit-text-fill-color: currentColor; -webkit-appearance: none; appearance: none; font: 500 11px/1.5 Manrope,Arial,sans-serif; touch-action: manipulation; transition: border-color .25s, background .25s; }
.music-toggle.is-playing { border-color: #fb8cab66; background: #24101b99; }
.music-label { white-space: nowrap; }
.music-state { font-size: 9px; color: #8d8188; }
.music-toggle.is-playing .music-state { color: var(--rose); }
.music-meter { display: flex; flex: none; align-items: center; justify-content: center; gap: 2px; width: 18px; height: 18px; color: #aaa0a5; }
.music-meter i { display: block; width: 2px; height: 5px; border-radius: 2px; background: currentColor; transform-origin: center; }
.music-meter i:nth-child(2) { height: 11px; }
.music-meter i:nth-child(3) { height: 16px; }
.music-meter i:nth-child(4) { height: 8px; }
.is-playing .music-meter { color: var(--rose); }
.is-playing .music-meter i { animation: music-level 1.1s ease-in-out infinite alternate; }
.is-playing .music-meter i:nth-child(2) { animation-delay: -.7s; }
.is-playing .music-meter i:nth-child(3) { animation-delay: -.3s; }
.is-playing .music-meter i:nth-child(4) { animation-delay: -.9s; }
@keyframes music-level { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (hover: hover) and (pointer: fine) {
  .music-toggle:hover { border-color: #fb8cab80; background: #27131e; }
}
@media (max-width: 700px) {
  .header-actions { gap: 10px; }
  .music-toggle { width: 44px; height: 44px; padding: 0; }
  .music-toggle .music-label, .music-toggle .music-state, .header-contact .header-contact-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; margin: 0; white-space: nowrap; }
  .header-contact { width: 44px; height: 44px; min-width: 44px; padding: 0; gap: 0; }
  .header-contact .ui-icon { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle, .is-playing .music-meter i { transition: none; animation: none; }
}

/* Contact is a visible in-page action; email applications are an optional next step. */
#contact-dialog { width: min(560px,94vw); max-height: 90dvh; padding: 34px; border-color: #ffffff2b; background: #100d10; }
.contact-dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff26; border-radius: 50%; background: #ffffff04; color: var(--ink); touch-action: manipulation; }
#contact-dialog .eyebrow { margin: 0 48px 16px 0; color: var(--rose); }
#contact-dialog h2 { max-width: 390px; padding-right: 28px; font-size: 34px; line-height: 1.2; letter-spacing: -1.3px; }
#contact-dialog-description { margin: 19px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.contact-dialog-address { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-dialog-caption { display: block; margin-bottom: 10px; font-size: 8px; letter-spacing: 1.5px; color: #b594a3; }
#contact-dialog-email { display: block; font-size: clamp(17px,4.5vw,23px); letter-spacing: -.7px; user-select: text; -webkit-user-select: text; overflow-wrap: anywhere; }
.contact-dialog-copy, .contact-dialog-options a { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #ffffff2b; border-radius: 50px; background: #ffffff04; color: var(--ink); -webkit-text-fill-color: currentColor; -webkit-appearance: none; appearance: none; font: 500 11px/1.5 Manrope,Arial,sans-serif; touch-action: manipulation; }
.contact-dialog-copy { border-color: #fb8cab55; background: #fb8cab0a; }
.contact-dialog-copy .ui-icon, .contact-dialog-options .ui-icon { color: var(--rose); }
.contact-dialog-feedback { min-height: 20px; margin: 10px 0 15px; font-size: 11px; line-height: 1.8; color: #f1c3d4; }
.contact-dialog-options { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
@media (hover: hover) and (pointer: fine) {
  .contact-dialog-copy:hover, .contact-dialog-options a:hover, .contact-dialog-close:hover { border-color: #fb8cab99; background: #27131e; }
}
@media (max-width: 600px) {
  #contact-dialog { padding: 28px 22px; }
  #contact-dialog h2 { font-size: 29px; }
}
@media (max-width: 420px) {
  .contact-dialog-options { grid-template-columns: 1fr; }
}

/* Soft descending exits echo the drifting galactic background. */
dialog[open] { animation: galaxy-dialog-enter 560ms cubic-bezier(.16,1,.3,1) both; transform-origin: 50% 35%; }
dialog[open]::backdrop { animation: galaxy-backdrop-enter 560ms ease both; }
dialog[open].is-closing { animation: galaxy-dialog-exit 620ms cubic-bezier(.4,0,.2,1) both; pointer-events: none; }
dialog[open].is-closing::backdrop { animation: galaxy-backdrop-exit 620ms ease both; }
@keyframes galaxy-dialog-enter {
  from { opacity: 0; transform: translate3d(0,26px,0) scale(.975); filter: blur(6px); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}
@keyframes galaxy-dialog-exit {
  from { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translate3d(0,48px,0) scale(.965); filter: blur(8px); }
}
@keyframes galaxy-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes galaxy-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
@media (max-width:700px) {
  #index {
    display: grid; visibility: hidden; opacity: 0; pointer-events: none;
    transform: translate3d(0,18px,0) scale(.98); filter: blur(4px);
    transition: opacity 460ms ease, transform 520ms cubic-bezier(.16,1,.3,1), filter 460ms ease, visibility 0s linear 520ms;
  }
  #index.open {
    visibility: visible; opacity: 1; pointer-events: auto; transform: translate3d(0,0,0) scale(1); filter: blur(0);
    transition-delay: 0s;
  }
}
@media (prefers-reduced-motion:reduce) {
  dialog[open], dialog[open]::backdrop, dialog[open].is-closing, dialog[open].is-closing::backdrop { animation: none; }
  #index, #index.open { transition: none; transform: none; filter: none; }
}

#next-project:disabled { opacity: .45; cursor: default; }

/* Modal dialogs make the page header inert; keep music controls inside them. */
.music-toggle > * { pointer-events: none; }
.dialog-music-toggle { position: absolute; right: 68px; top: 16px; width: 44px; height: 44px; padding: 0; }
.dialog-music-toggle .music-label, .dialog-music-toggle .music-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#project .project-dialog-heading { padding-right: 90px; }
#contact-dialog .eyebrow { margin-right: 96px; }
@media (max-width:700px) { #project .dialog-music-toggle { right: 54px; top: 8px; width: 44px; height: 44px; min-height: 44px; } }






