:root {
  --cream: #f2f0e9;
  --paper: rgba(255, 255, 255, .78);
  --white: #fff;
  --ink: #181917;
  --secondary: #666863;
  --line: rgba(32, 34, 31, .13);
  --green: #c8ff4d;
  --blue: #c8d0d3;
  --peach: #d1c3ba;
  --lavender: #cbc9d0;
  --yellow: #ddd4ad;
  --accent: #6f5cff;
  --night: #0b0b0a;
  --night-soft: #151613;
  --mono: "DM Mono", monospace;
  --sans: "Instrument Sans", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 14px 42px rgba(54, 50, 40, .08), 0 2px 8px rgba(54, 50, 40, .05);
  --ease-expo: cubic-bezier(.76, 0, .24, 1);
}

/* Hero responsive and motion safeguards. */
@media (max-width: 620px) {
  .hero-title-line { white-space: normal; }
  .hero-subtitle { max-width: 18ch; font-size: 26px; }
  .hero-orbit-one { width: 310px; height: 310px; right: -175px; top: -38px; }
  .hero-orbit-two { width: 170px; height: 170px; left: 48%; bottom: -110px; }
  .hero-star-one { left: 51%; top: 20%; }
  .hero-star-two { display: none; }
  .hero-coordinate { right: 2px; }
}

/* Keep the six Hero artifacts visually proportional while the layout is stacked on tablets. */
@media (min-width:681px) and (max-width:1100px) {
  .hero-visual-wrap .agent-doodle {
    width:clamp(240px,30vw,360px);
    font-size:clamp(28px,3.4vw,40px);
    line-height:1.02;
  }
  .hero-visual-wrap .agent-arrow-pencil {
    width:clamp(88px,9vw,116px);
    height:clamp(176px,18vw,232px);
  }
  .hero-visual-wrap .decor-terminal {
    width:clamp(112px,11.5vw,150px);
    height:clamp(112px,11.5vw,150px);
  }
  .hero-visual-wrap .decor-claude {
    width:clamp(64px,6.8vw,84px);
    height:clamp(64px,6.8vw,84px);
  }
  .hero-visual-wrap .decor-palette {
    width:clamp(142px,14vw,184px);
    height:clamp(142px,14vw,184px);
  }
  .hero-visual-wrap .decor-laptop {
    width:clamp(138px,13.5vw,176px);
    height:clamp(116px,11.4vw,148px);
  }
  .hero-visual-wrap .decor-folder {
    width:clamp(105px,10.5vw,136px);
    height:clamp(96px,9.6vw,124px);
  }
  .hero-visual-wrap .decor-figma {
    width:clamp(68px,7vw,88px);
    height:clamp(68px,7vw,88px);
    border-radius:clamp(17px,1.8vw,22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit, .hero-star, .hero-letter { animation: none !important; transition: none !important; }
}

/* Field Notes collection preview — reuses the existing About card visual area. */
.field-notes-montage{position:relative;display:block;width:100%;height:100%;min-height:112px}.field-notes-montage i{position:absolute;display:block;width:42%;height:58%;border:1px solid rgba(17,17,17,.22);background:#f6f3ec;box-shadow:0 8px 18px rgba(0,0,0,.11)}.field-notes-montage i:after{content:"";position:absolute;left:12%;right:12%;top:22%;height:2px;background:#74192b;box-shadow:0 9px #bbb,0 18px #bbb}.field-notes-montage i:nth-child(1){left:6%;top:10%;transform:rotate(-5deg)}.field-notes-montage i:nth-child(2){left:31%;top:22%;transform:rotate(3deg);background:#e8eefb}.field-notes-montage i:nth-child(2):after{background:#3366cc}.field-notes-montage i:nth-child(3){right:3%;top:4%;transform:rotate(7deg);background:#111}.field-notes-montage i:nth-child(3):after{background:#fff;box-shadow:0 9px #777,0 18px #777}
.ai-lab-montage{position:relative;display:block;width:100%;height:100%;min-height:112px;background-image:linear-gradient(rgba(17,17,17,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(17,17,17,.08) 1px,transparent 1px);background-size:18px 18px}.ai-lab-montage i{position:absolute;width:34px;height:34px;border:1px solid #17171a;border-radius:50%;background:#f3f1eb;box-shadow:4px 4px 0 rgba(112,91,255,.25)}.ai-lab-montage i:after{content:"";position:absolute;left:33px;top:16px;width:52px;height:1px;background:#17171a}.ai-lab-montage i:nth-child(1){left:8%;top:18%}.ai-lab-montage i:nth-child(2){left:42%;top:48%;background:#d8ff68}.ai-lab-montage i:nth-child(3){right:8%;top:16%;background:#dedcff}.ai-lab-montage i:nth-child(3):after{display:none}.ai-lab-montage b{position:absolute;left:8%;bottom:5%;font:8px var(--mono);letter-spacing:.03em}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 0;
  overflow-x: hidden;
  background: var(--night);
  color: #f2f0e9;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 1.05s var(--ease-expo), color .65s ease;
}
body.page-theme-dark { background: var(--night); color: #f2f0e9; }
body.page-theme-light { background: var(--cream); color: var(--ink); }
body.is-loading { overflow: hidden; }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

/* Grid and scrolling children must be allowed to shrink at narrow widths. */
.section-wrap > *,
.inner-hero-grid > *,
.work-index-hero > * { min-width: 0; }
.inner-page :is(h1, h2, h3, p) { overflow-wrap: break-word; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(242,240,233,.68);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.page-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: hidden;
  background: var(--night);
  color: #f2f0e9;
  transition: opacity .35s ease .34s, visibility .35s ease .34s;
}
.loader-meta {
  position: absolute;
  z-index: 3;
  left: 28px;
  right: 28px;
  top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
}
.loader-meta span:nth-child(2) { justify-self: end; }
.loader-center-progress {
  position: absolute;
  z-index: 1;
  left: 17%;
  right: 17%;
  top: 50%;
  height: 1px;
  overflow: visible;
  background: rgba(242,240,233,.2);
}
.loader-center-progress i {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  background: #f2f0e9;
}
.loader-center-progress i::after {
  content: "✦";
  position: absolute;
  right: -8px;
  top: 50%;
  color: #ffc968;
  font: 16px/1 var(--sans);
  transform: translate(50%, -50%);
  filter: drop-shadow(0 0 9px rgba(255,201,104,.42));
}
.loader-stack {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: clamp(124px, 13vw, 190px);
  aspect-ratio: .78;
  transform: translate(-50%, -50%);
  perspective: 900px;
}
.loader-card {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow:hidden;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(20px) scale(.92);
  transition: transform .48s var(--ease-expo), opacity .3s ease;
}
.loader-card img { width:100%; height:100%; object-fit:cover; }
.loader-card-one { z-index: 1; background: #f2f0e9; }
.loader-card-two { z-index: 2; background: var(--accent); }
.loader-card-three { z-index: 3; background: #d7d3cc; }
.loader-card-four { z-index: 4; background: #c8ff4d; }
.loader-card-five { z-index: 5; background:#f2f0e9; }
.page-loader[data-stage="1"] .loader-card-one,
.page-loader[data-stage="2"] .loader-card-one,
.page-loader[data-stage="3"] .loader-card-one,
.page-loader[data-stage="4"] .loader-card-one {
  opacity: 1;
  transform: rotate(-2deg) scale(1);
}
.page-loader[data-stage="2"] .loader-card-two,
.page-loader[data-stage="3"] .loader-card-two,
.page-loader[data-stage="4"] .loader-card-two {
  opacity: 1;
  transform: rotate(1.5deg) scale(.985);
}
.page-loader[data-stage="3"] .loader-card-three,
.page-loader[data-stage="4"] .loader-card-three {
  opacity: 1;
  transform: rotate(-1deg) scale(.97);
}
.page-loader[data-stage="4"] .loader-card-four {
  opacity: 1;
  transform: rotate(.7deg) scale(.955);
}
.page-loader .loader-card { animation:loader-photo-stack .72s var(--ease-expo) forwards; }
.page-loader .loader-card-one { animation-delay:.12s; --loader-rest:rotate(-7deg) translate(-9px,4px) scale(.94); }
.page-loader .loader-card-two { animation-delay:.92s; --loader-rest:rotate(5deg) translate(8px,-5px) scale(.955); }
.page-loader .loader-card-three { animation-delay:1.72s; --loader-rest:rotate(-3deg) translate(-5px,1px) scale(.97); }
.page-loader .loader-card-four { animation-delay:2.52s; --loader-rest:rotate(3.5deg) translate(6px,-2px) scale(.985); }
.page-loader .loader-card-five { animation-delay:3.32s; --loader-rest:rotate(-1.5deg) translate(1px,0) scale(1); }
@keyframes loader-photo-stack {
  0% { opacity:0; transform:translateY(34px) rotate(0) scale(.88); }
  100% { opacity:1; transform:var(--loader-rest); }
}
.loader-progress {
  position: absolute;
  z-index: 3;
  inset: 50% 0 auto;
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  pointer-events: none;
}
.loader-progress > span {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
}
.loader-progress > span:first-child {
  right: calc(83% + 18px);
  white-space: nowrap;
}
.loader-progress > span:last-child {
  left: calc(83% + 18px);
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.page-loader.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader.is-complete .loader-stack { transform: translate(-50%, -50%); }

.section-wrap {
  width: 100%;
  padding-inline: max(32px, calc((100vw - 1440px) / 2));
}
.surface {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  position: relative;
  z-index: 90;
  width: 100%;
  padding: 26px max(32px, calc((100vw - 1440px) / 2)) 10px;
  background: transparent;
  color: #f2f0e9;
}
.header-inner {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}
.identity-name {
  font-size: 17px;
  font-weight: 600;
}
.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #d8d4e4;
  color: var(--ink);
  font: 500 12px var(--mono);
}
.avatar-small { width: 38px; height: 38px; flex: none; }

.primary-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  justify-self: center;
  padding: 5px;
  border-radius: 999px;
  background: rgba(245,243,237,.95);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(32,34,31,.08);
  backdrop-filter: blur(16px);
}
.primary-nav a {
  position: relative;
  z-index: 2;
  min-width: 70px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.primary-nav a.is-active { color: white; }
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-preview-target { color: white; }
.primary-nav.is-previewing a.is-active:not(.is-preview-target) { color: var(--ink); }
.primary-nav > i {
  position: absolute;
  z-index: 1;
  left: 5px;
  top: 5px;
  width: 70px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform .32s, width .32s;
}
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-contact {
  min-height: 44px;
  border-radius: 8px;
}
.site-header .header-contact,
.site-header .header-cv,
.site-header .header-linkedin,
.site-header .header-instagram {
  border-color: #f2f0e9;
  background: #f2f0e9;
  color: var(--ink);
}
.site-header .header-contact:hover,
.site-header .header-contact:focus-visible,
.site-header .header-cv,
.site-header .header-linkedin:hover,
.site-header .header-linkedin:focus-visible,
.site-header .header-instagram {
  opacity: 1;
  background: #f2f0e9;
  color: var(--ink);
}
.site-header .header-cv,
.site-header .header-instagram { cursor: default; }
.site-header .header-cv:hover,
.site-header .header-instagram:hover { transform: none; opacity: 1; }

.floating-nav nav {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
}
.floating-nav nav a {
  position: relative;
  z-index: 2;
  min-width: 70px;
  padding: 9px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color .2s;
}
.floating-nav nav a.is-active { color: var(--cream); }
.floating-nav nav a:hover,
.floating-nav nav a:focus-visible,
.floating-nav nav a.is-preview-target { color: var(--cream); }
.floating-nav nav.is-previewing a.is-active:not(.is-preview-target) { color: var(--ink); }
.floating-nav i {
  position: absolute;
  z-index: 1;
  left: 5px;
  top: 5px;
  width: 70px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform .32s, width .32s;
}
.button,
.icon-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, opacity .2s, background .2s, color .2s;
}
.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible { transform: translateY(-2px); opacity: .8; }
.button-dark { background: var(--ink); color: white; }
.button-light, .icon-button { background: rgba(242,240,233,.68); color: var(--ink); }
.button-disabled { cursor: default; opacity: .6; }
.button-disabled:hover { transform: none; opacity: .6; }
.icon-button { width: 44px; padding: 0; }
.icon-button span { font-weight: 700; }
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button .icon-dot { fill: currentColor; stroke: none; }
.header-contact > span:last-child,
.header-cv {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.icon-button .linkedin-mark {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}
.icon-button .linkedin-mark circle,
.icon-button .linkedin-mark path {
  fill: currentColor;
  stroke: none;
}
.icon-button .linkedin-mark rect {
  fill:none;
  stroke:none;
}
.mail-icon {
  width: 15px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}
.mail-icon::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: -4px auto 0;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  rotate: 45deg;
}

.floating-nav {
  position: fixed;
  z-index: 100;
  left: max(32px, calc((100vw - 1440px) / 2));
  right: max(32px, calc((100vw - 1440px) / 2));
  top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateY(-18px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s, opacity .3s;
}
.floating-nav::after { content: ""; }
.floating-nav.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.floating-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: color .65s ease;
}
.floating-identity { min-width: auto; padding: 0; }
.floating-identity .avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.5);
}
.floating-nav nav {
  padding: 5px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(32,34,31,.1);
  backdrop-filter: blur(16px);
}
.floating-nav nav a { min-width: 70px; padding: 10px 12px; font-size: 13px; }
.floating-nav i { left: 5px; top: 5px; width: 70px; height: calc(100% - 10px); }
.floating-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
}
.floating-actions .header-contact,
.floating-actions .header-cv,
.floating-actions .icon-button {
  border-color: #f2f0e9;
  background: #f2f0e9;
  color: var(--ink);
}
.floating-actions .header-contact:hover,
.floating-actions .header-contact:focus-visible,
.floating-actions .header-cv,
.floating-actions .header-linkedin:hover,
.floating-actions .header-linkedin:focus-visible,
.floating-actions .header-instagram {
  opacity: 1;
  background: #f2f0e9;
  color: var(--ink);
}
.floating-actions .header-cv,
.floating-actions .header-instagram { cursor: default; }
.floating-actions .header-cv:hover,
.floating-actions .header-instagram:hover { transform: none; opacity: 1; }

.hero.section-dark {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: 28px;
  padding-bottom: 42px;
  background:
    radial-gradient(ellipse 54% 66% at 80% 53%,rgba(123,85,239,.5),rgba(123,85,239,.24) 40%,rgba(123,85,239,.09) 62%,transparent 80%),
    radial-gradient(ellipse 42% 46% at 63% 27%,rgba(245,182,210,.2),rgba(245,182,210,.06) 54%,transparent 76%),
    var(--night);
}
.section-dark {
  background: transparent;
  color: inherit;
}
.section-light {
  background: transparent;
  color: inherit;
}
main,
.section-dark,
.section-light,
.section-kicker,
.section-label,
.about-carousel-heading > p:last-child,
.section-heading > p:last-child {
  transition: color .65s ease;
}
body.page-theme-dark .section-kicker,
body.page-theme-dark .section-label,
body.page-theme-dark .about-carousel-heading > p:last-child,
body.page-theme-dark .section-heading > p:last-child {
  color: rgba(242,240,233,.68);
}
body.page-theme-light .section-kicker,
body.page-theme-light .section-label,
body.page-theme-light .about-carousel-heading > p:last-child,
body.page-theme-light .section-heading > p:last-child {
  color: var(--secondary);
}
.hero .section-kicker { color: rgba(242,240,233,.6); }
.hero-panel {
  position: relative;
  max-width: 1200px;
  min-height: 720px;
  margin: auto;
  padding: 62px 0 72px;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 48px;
  align-items: end;
}
.section-kicker,
.section-label,
.work-meta,
.bento-number {
  margin: 0;
  color: var(--secondary);
  font: 500 11px/1.4 var(--mono);
  text-transform: uppercase;
}
.hero h1 {
  max-width: 820px;
  margin: 24px 0 46px;
  font-size: clamp(104px, 9.9vw, 150px);
  font-stretch: 86%;
  line-height: .82;
  font-weight: 560;
  letter-spacing: -.065em;
}
.hero-copy { position: relative; z-index: 3; align-self:end; }
.hero-wave-title { cursor: default; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-title-line:first-child { font-size:.8em; line-height:.88; letter-spacing:-.05em; }
.hero-title-line-name {
  margin-top:.09em;
  color:#f2f0e9;
  font-family:var(--sans);
  font-size:1.12em;
  font-style:normal;
  font-weight:560;
  line-height:.8;
  letter-spacing:-.075em;
}
.hero-word { display: inline-block; white-space: nowrap; }
.hero-word:not(:last-child) { margin-right: .15em; }
.hero-letter {
  --wave-lift: 0px;
  --wave-rotate: 0deg;
  display: inline-block;
  transform: translateY(var(--wave-lift)) rotate(var(--wave-rotate));
  transform-origin: 50% 85%;
  transition: transform .42s cubic-bezier(.2,.8,.2,1), color .22s ease;
  will-change: transform;
}
.hero-letter-star-dot { position:relative; }
.hero-letter-star-dot::after {
  content:"✦";
  position:absolute;
  left:50%;
  top:-.14em;
  color:#ffd38a;
  font:400 .22em/1 Georgia,serif;
  text-shadow:0 0 10px rgba(255,211,138,.42);
  transform:translateX(-50%);
  pointer-events:none;
}
.hero-wave-title:hover .hero-letter { color: #f7f5ef; }
.hero-wave-title:hover .hero-title-line-name .hero-letter { color:#f7f5ef; }
.hero-wave-title.is-rippling .hero-letter {
  animation: hero-letter-ripple .82s cubic-bezier(.2,.75,.2,1) both;
  animation-delay: calc(var(--glyph-index) * 34ms);
}
@keyframes hero-letter-ripple {
  0%,100% { transform: translateY(var(--wave-lift)) rotate(var(--wave-rotate)); }
  42% { transform: translateY(calc(var(--wave-lift) - 18px)) rotate(var(--wave-rotate)); }
}
.hero-subtitle {
  max-width: 39ch;
  margin: 0 0 26px;
  color: #f5b6d2;
  font-family: var(--serif);
  font-size: clamp(34px, 2.5vw, 40px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.hero-summary {
  max-width: 58ch;
  margin: 0;
  color: rgba(242,240,233,.62);
  font-size: 16px;
  line-height: 1.6;
}
.hero-atmosphere { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.hero-star {
  position:absolute;
  width:38px;
  aspect-ratio:1;
  display:grid;
  place-items:center;
  background:none;
  opacity:.38;
  color:#ffd38a;
  font:400 1em/1 Georgia,serif;
  text-shadow:0 0 18px rgba(255,211,138,.42);
  animation:hero-spark-glint 5.4s ease-in-out infinite;
  transition:transform .48s cubic-bezier(.16,1,.3,1),opacity .35s ease;
}
.hero-star::before { content:"✦"; font-size:inherit; }
.hero-star-one { left:46%; top:14%; width:11px; font-size:11px; }
.hero-star-two { right:2%; top:10%; width:46px; font-size:46px; color:#d8bcff; animation-delay:-1.7s; }
.hero-star-three { left:50%; bottom:5%; width:25px; font-size:25px; animation-delay:-3.2s; }
.hero-star-four { left:2%; bottom:4%; width:12px; font-size:12px; color:#f5b6d2; animation-delay:-2.4s; }
.hero-star-five { right:24%; top:4%; width:22px; font-size:22px; color:#d8bcff; animation-delay:-4.1s; }
.hero-star-six { right:1%; bottom:3%; width:10px; font-size:10px; color:#8fc987; animation-delay:-.8s; }
.hero-star-seven { left:36%; top:8%; width:16px; font-size:16px; color:#f5b6d2; animation-delay:-3.5s; }
.hero-star-eight { left:57%; bottom:2%; width:8px; font-size:8px; color:#ffd38a; animation-delay:-1.1s; }
@keyframes hero-spark-glint { 0%,100% { transform:scale(.62) rotate(-4deg); opacity:.2; } 46% { transform:scale(1.38) rotate(9deg); opacity:.82; } 58% { transform:scale(1.02) rotate(12deg); opacity:.5; } }
.hero-panel:hover .hero-star { transform:scale(1.42) rotate(10deg); opacity:.86; }
.hero-playground { z-index:2; }
.hero-visual-wrap { position:relative; z-index:1; width:100%; min-width:0; max-width:620px; margin:0 auto; align-self:end; isolation:isolate; }
.hero-visual-wrap::before {
  content:"";
  position:absolute;
  z-index:-1;
  left:22%;
  top:1%;
  width:92%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle at 55% 45%,rgba(123,85,239,.7) 0,rgba(123,85,239,.3) 34%,rgba(245,182,210,.15) 52%,transparent 72%);
  filter:blur(38px);
  opacity:.95;
  transform:translate3d(0,0,0);
  pointer-events:none;
}
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.hero .button-dark {
  border-color: #f2f0e9;
  background: #f2f0e9;
  color: var(--ink);
}
.hero .button-dark:hover,
.hero .button-dark:focus-visible {
  opacity: 1;
  background: transparent;
  color: #f2f0e9;
}
.hero-playground {
  position: relative;
  width:100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #b8adc8;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  overflow: visible;
  transition: transform .25s, box-shadow .25s;
}
.hero-playground::before,
.hero-playground::after {
  content:"✦";
  position:absolute;
  z-index:3;
  width:30px;
  aspect-ratio:1;
  pointer-events:none;
  color:#ffd38a;
  font:400 23px/1 Georgia,serif;
  text-shadow:0 0 16px rgba(255,211,138,.35);
  animation:hero-spark-glint 4.8s ease-in-out infinite;
}
.hero-playground::before { left:-13px; top:18%; }
.hero-playground::after { right:-12px; bottom:12%; width:20px; animation-delay:-2.1s; }
.hero-playground:hover { transform: translateY(-5px) rotate(.35deg); box-shadow: 0 22px 50px rgba(54,50,40,.14); }
.hero-playground:focus-visible { transform: translateY(-5px) rotate(.35deg); box-shadow: 0 22px 50px rgba(54,50,40,.14); }
.portrait-stage {
  position: relative;
  height: 438px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,242,218,.3),transparent 34%),
    radial-gradient(circle at 14% 88%,rgba(111,83,166,.2),transparent 38%),
    #b8adc8;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.26);
}
.portrait-back-card {
  position:absolute;
  z-index:1;
  left:50%;
  top:50%;
  width:84%;
  height:78%;
  border-radius:10px;
  background:#8b7bd1;
  box-shadow:0 18px 36px rgba(67,43,59,.16);
  transform:translate(-49%,-49%) rotate(-3.5deg);
  pointer-events:none;
}
.hero-person-mask {
  position:absolute;
  z-index:3;
  inset:-112px 0 0;
  overflow:hidden;
  border-radius:0 0 12px 12px;
  pointer-events:none;
}
.portrait-card {
  position:absolute;
  z-index:1;
  inset:22px 18px 20px;
  width:auto;
  aspect-ratio:auto;
  padding: 12px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 34px rgba(32,34,31,.16);
  rotate: -2deg;
  transition: rotate .4s, transform .4s;
}
.hero-person {
  position:absolute;
  z-index:1;
  left:0;
  top:0;
  bottom:auto;
  height:112%;
  width:auto;
  max-width:none;
  object-fit:contain;
  object-position:left bottom;
  pointer-events:none;
  clip-path:polygon(0 0,100% 0,100% 91%,82% 91%,82% 100%,0 100%);
  filter:drop-shadow(0 20px 24px rgba(18,18,16,.18));
  transform-origin:28% 92%;
  transition:transform .55s cubic-bezier(.16,1,.3,1);
}
.hero-playground:hover .hero-person,
.hero-playground:focus-visible .hero-person { transform:translateY(-7px) rotate(-.7deg); }
.agent-doodle {
  position:absolute;
  z-index:4;
  right:11%;
  top:25%;
  width:190px;
  color:#291943;
  text-align:right;
  transform:rotate(-3deg);
  pointer-events:none;
  font:700 clamp(22px,1.7vw,27px)/1.02 "Bradley Hand","Comic Sans MS",cursive;
  letter-spacing:-.02em;
}
.agent-doodle > span { display:block; white-space:nowrap; }
.agent-arrow-pencil {
  position:absolute;
  z-index:4;
  right:11%;
  top:39%;
  width:76px;
  height:152px;
  object-fit:fill;
  opacity:.54;
  filter:sepia(.26) saturate(1.4) hue-rotate(232deg) brightness(.58);
  transform:rotate(1deg);
  mix-blend-mode:multiply;
  pointer-events:none;
}
.hero-card-decorations { display:contents; }
.hero-card-decor {
  position:absolute;
  z-index:7;
  display:block;
  width:64px;
  height:64px;
  object-fit:cover;
  object-position:center top;
  clip-path:inset(0 0 12% 0 round 13px);
  pointer-events:auto;
  cursor:default;
  opacity:0;
  transform:rotate(var(--decor-rotate,0deg));
  filter:drop-shadow(0 8px 12px rgba(14,11,20,.18));
  animation:hero-decor-arrive .62s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay:var(--decor-delay,0s);
  transition:transform .45s cubic-bezier(.16,1,.3,1),filter .35s;
}
.decor-terminal { left:-5%; top:12%; width:110px; height:110px; padding:0; border:0; border-radius:0; background:transparent; clip-path:none; object-fit:contain; box-shadow:none; filter:none !important; --decor-rotate:-10deg; --decor-delay:.18s; }
.decor-claude { left:6%; top:-5%; width:58px; height:58px; object-fit:contain; clip-path:none; --decor-rotate:13deg; --decor-delay:.08s; }
.decor-palette { right:7%; top:-15%; width:138px; height:138px; object-fit:contain; clip-path:none; --decor-rotate:8deg; --decor-delay:.25s; }
.decor-laptop { right:-12%; top:47%; width:132px; height:112px; object-fit:contain; clip-path:none; --decor-rotate:13deg; --decor-delay:.32s; }
.decor-folder { left:-10%; bottom:16%; width:96px; height:88px; object-fit:contain; clip-path:none; --decor-rotate:-8deg; --decor-delay:.39s; }
.decor-figma { right:13%; bottom:-6%; width:60px; height:60px; padding:1px; border:.75px solid rgba(150,150,150,.38); border-radius:17px; background:#0d0d0d; object-fit:contain; clip-path:none; filter:none !important; --decor-rotate:14deg; --decor-delay:.46s; }
.hero-card-decor:hover { filter:drop-shadow(0 11px 14px rgba(14,11,20,.22)); }
.hero-visual-wrap:has(.hero-playground:hover) .decor-terminal { transform:translate(-5px,-4px) rotate(-12deg); }
.hero-visual-wrap:has(.hero-playground:hover) .decor-claude { transform:translate(3px,-3px) rotate(16deg); }
.hero-visual-wrap:has(.hero-playground:hover) .decor-palette { transform:translate(6px,-5px) rotate(11deg); }
.hero-visual-wrap:has(.hero-playground:hover) .decor-laptop { transform:translate(6px,3px) rotate(15deg); }
.hero-visual-wrap:has(.hero-playground:hover) .decor-folder { transform:translate(-6px,4px) rotate(-10deg); }
.hero-visual-wrap:has(.hero-playground:hover) .decor-figma { transform:translate(4px,5px) rotate(17deg); }
.decor-terminal:hover { transform:translate(-1px,-8px) scale(1.02) rotate(-11deg); filter:drop-shadow(0 10px 13px rgba(14,11,20,.16)) !important; }
.decor-claude:hover { transform:translate(1px,-8px) scale(1.025) rotate(15deg); }
.decor-palette:hover { transform:translate(1px,-8px) scale(1.02) rotate(10deg); }
.decor-laptop:hover { transform:translate(-1px,-8px) scale(1.02) rotate(12deg); }
.decor-folder:hover { transform:translate(1px,-8px) scale(1.02) rotate(-6deg); }
.decor-figma:hover { transform:translateY(-8px) scale(1.02) rotate(12deg); filter:drop-shadow(0 10px 12px rgba(14,11,20,.16)) !important; }
@keyframes hero-decor-arrive {
  from { opacity:0; filter:blur(4px) drop-shadow(0 8px 12px rgba(14,11,20,.1)); }
  to { opacity:1; filter:blur(0) drop-shadow(0 8px 12px rgba(14,11,20,.18)); }
}
.hero-playground:hover .portrait-card { rotate: 1deg; transform: translateY(-5px) scale(1.012); }
.hero-playground:focus-visible .portrait-card { rotate: 1deg; transform: translateY(-5px) scale(1.012); }
.portrait-label {
  display: block;
  margin-bottom: 9px;
  font: 9px var(--mono);
  text-transform: uppercase;
}
.portrait-placeholder {
  height: calc(100% - 23px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(145deg, #cbc7d5, #d8c9c0);
}
.portrait-placeholder span {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(32,34,31,.55);
  border-radius: 50%;
  font: 500 26px var(--mono);
}
.cursor-note {
  position: absolute;
  padding: 7px 10px;
  border-radius: 5px;
  color: white;
  font: 9px var(--mono);
  text-transform: uppercase;
  box-shadow: 0 5px 12px rgba(32,34,31,.15);
  animation: float 4s ease-in-out infinite;
}
.cursor-note::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 12px solid currentColor;
  rotate: -35deg;
}
.cursor-note-one { left: 5%; top: 14%; color: var(--accent); background: var(--accent); }
.cursor-note-two { right: 5%; bottom: 12%; color: var(--accent); background: var(--accent); animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }
.prompt-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 9px; }
.prompt-row button {
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.prompt-row button:hover,
.prompt-row button:focus-visible { background: white; }

.ai-card-message {
  position: absolute;
  z-index:5;
  left: 22px;
  right: 22px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 17px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 28px rgba(32,34,31,.12);
  backdrop-filter: blur(12px);
}
.ai-spark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lavender);
}
.ai-card-message strong, .ai-card-message small { display: block; }
.ai-card-message strong { color:#6f6269; font-size: 16px; }
.ai-card-message small { margin-top: 3px; color: var(--secondary); font-size: 11px; }
.ai-card-message b { font-size: 21px; transition: transform .2s; }
.hero-playground:hover .ai-card-message b { transform: translate(3px,-3px); }
.hero-playground:focus-visible .ai-card-message b { transform: translate(3px,-3px); }

.about-preview {
  position: relative;
  padding-top: 78px;
  padding-bottom: 80px;
  overflow: visible;
}
.about-preview > *,
.side-projects > *,
.testimonials > * { position: relative; z-index: 1; }
.about-preview-panel {
  max-width: 1200px;
  margin: auto;
}
.about-preview h2,
.section-heading h2,
.testimonials h2,
.profile h2,
.contact h2 {
  margin: 17px 0 0;
  font-size: 60px;
  line-height: 1;
  font-stretch: 88%;
  font-weight: 560;
  letter-spacing: 0;
}
.about-preview h2,
.contact h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  line-height: .92;
}
.about-preview-bottom {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 354px 1fr;
  gap: 48px;
  align-items: center;
}
.placeholder-media {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 8px solid #ede7de;
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(32,34,31,.12) 49%, rgba(32,34,31,.12) 51%, transparent 52%),
    #d9e6ef;
  color: var(--secondary);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.about-preview-copy p {
  max-width: 690px;
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: 23px;
  line-height: 1.35;
}

.about-carousel-heading { display: block; }
.about-carousel-heading h2 { margin-top: 16px; white-space:nowrap; }
#about-title { width:100%; max-width:none; white-space:nowrap !important; text-wrap:nowrap; }
.about-carousel-heading > p:last-child { max-width:56ch; margin:22px 0 0; color:var(--secondary); font-size:15px; line-height:1.55; }
.touch-instruction { display: none; }
.about-carousel {
  --about-card-width: 286px;
  height: 440px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 30px 8px;
  transition: gap .5s cubic-bezier(.2,.8,.2,1);
}
.about-carousel:hover, .about-carousel:focus-within { gap: 12px; }
.about-card {
  position: relative;
  flex: 0 0 var(--about-card-width);
  width: var(--about-card-width);
  min-width: var(--about-card-width);
  height: 340px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(54,50,40,.13);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s, margin .5s;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.about-card:nth-child(1) { z-index: 2; rotate: -5deg; background: #d4d9d9; color: var(--ink); }
.about-card:nth-child(2) { z-index: 4; margin-left: -30px; rotate: 3deg; background: #d8d1ee; color: var(--ink); }
.about-card:nth-child(3) { z-index: 5; margin-left: -14px; rotate: -2deg; background: var(--accent); color: white; }
.about-card:nth-child(4) { z-index: 2; margin-left: -28px; rotate: 5deg; background: var(--green); color: var(--ink); }
.about-card:nth-child(1) .about-card-copy p { color: rgba(20,21,19,.72); }
.about-card:nth-child(3) .about-card-copy p { color: rgba(255,255,255,.84); }
.about-card:nth-child(4) .about-card-copy p { color: rgba(20,21,19,.74); }
.about-carousel:hover .about-card, .about-carousel:focus-within .about-card { margin-left: 0; filter: saturate(.88); }
.about-card:hover, .about-card:focus-visible, .about-card:focus-within {
  z-index: 10;
  transform: translateY(-18px) scale(1.04);
  filter: none !important;
  animation: cardWiggle .55s ease;
}
.about-carousel-controls {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.about-carousel-controls span {
  font: 500 10px var(--mono);
  text-transform: uppercase;
}
.about-carousel-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, opacity .2s;
}
.about-carousel-controls button:not(:disabled):hover,
.about-carousel-controls button:not(:disabled):focus-visible {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}
.about-carousel-controls button:disabled { cursor: default; opacity: .28; }
@keyframes cardWiggle {
  0%, 100% { rotate: 0deg; }
  35% { rotate: -2deg; }
  70% { rotate: 1.5deg; }
}
.about-card-index { font: 10px var(--mono); }
.about-card:not(.about-card-video)::after {
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:50px;
  height:1px;
  background:currentColor;
  opacity:.14;
}
.about-card-icon {
  position:absolute;
  top:72px;
  right:24px;
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  margin:0;
  font-size:50px;
  font-weight:600;
  line-height:1;
  transition:transform .45s;
}
.about-card-icon .ai-lab-montage,
.about-card-icon .field-notes-montage { min-height:0; width:72px; height:72px; }
.about-card-events .about-card-icon { color:#6b55ee; }
.ai-lab-orbit {
  position:relative;
  width:68px;
  height:68px;
  display:block;
}
.ai-lab-orbit i {
  position:absolute;
  inset:10px 3px;
  border:8px solid #fff4d6;
  border-radius:48% 52% 45% 55% / 58% 43% 57% 42%;
  transform:rotate(0deg);
  opacity:.88;
}
.ai-lab-orbit i:nth-child(2) {
  border-color:#fff4d6;
  transform:rotate(60deg);
}
.ai-lab-orbit i:nth-child(3) {
  border-color:#fff4d6;
  transform:rotate(120deg);
}
.ai-lab-orbit b {
  position:absolute;
  inset:23px;
  border-radius:50%;
  background:#6b55ee;
  box-shadow:0 5px 14px rgba(46,42,78,.16);
}
.about-card-impact .field-notes-montage i,
.about-card-impact .field-notes-montage i:nth-child(2),
.about-card-impact .field-notes-montage i:nth-child(3) {
  border:0;
  background:#27205f;
  box-shadow:0 0 0 3px #c8ff4d;
}
.about-card-impact .field-notes-montage i::after,
.about-card-impact .field-notes-montage i:nth-child(2)::after,
.about-card-impact .field-notes-montage i:nth-child(3)::after {
  display:none;
}
.about-card:hover .about-card-icon,
.about-card:focus-visible .about-card-icon,
.about-card:focus-within .about-card-icon { transform: scale(1.13) rotate(7deg); }
.about-card-copy { margin-top:auto; }
.about-card-copy h3 { max-width:210px; margin:0 0 10px; font-size:29px; line-height:1.02; letter-spacing:-.04em; }
.about-card-copy p {
  max-height:none;
  margin:0;
  overflow: hidden;
  opacity: .72;
  color: #4f544d;
  font-size:12.5px;
  line-height:1.42;
  transition: max-height .4s, opacity .35s, margin .35s;
}
.about-card:hover .about-card-copy p, .about-card:focus-within .about-card-copy p { max-height:none; margin-bottom:0; opacity:1; }
.about-card.about-card-video {
  padding:0;
  overflow:visible;
  user-select:none;
  isolation:isolate;
  background:#171716 url("assets/video/anli-introduction-poster.png") center/cover no-repeat;
}
.about-card-video::before {
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(8,8,7,.18),transparent 34%,rgba(8,8,7,.12));
  pointer-events:none;
}
.about-video-preview {
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  border-radius:inherit;
  object-fit:cover;
  object-position:50% 50%;
  pointer-events:none;
  opacity:0;
  transition:opacity .45s ease;
}
.about-card-video.is-video-ready .about-video-preview { opacity:1; }
.about-card-video .about-card-index {
  position:absolute;
  z-index:5;
  left:20px;
  top:20px;
  color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,.45);
}
.about-video-play {
  position:absolute;
  z-index:3;
  left:50%;
  top:50%;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  padding-left:4px;
  border-radius:50%;
  border:0;
  background:#f4f2ec;
  color:var(--ink);
  font-size:18px;
  box-shadow:0 12px 30px rgba(0,0,0,.2);
  opacity:.92;
  transform:translate(-50%,-50%) scale(.94);
  transition:opacity .24s ease,transform .4s cubic-bezier(.16,1,.3,1);
}
.about-video-prompt {
  position:absolute;
  z-index:4;
  left:18px;
  right:auto;
  top:auto;
  bottom:18px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:12px;
  background:rgba(15,15,14,.48);
  color:#fff;
  font:650 13px/1 var(--sans);
  letter-spacing:-.01em;
  white-space:nowrap;
  text-align:left;
  opacity:1;
  transform:none;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:opacity .3s,transform .45s cubic-bezier(.16,1,.3,1);
  text-shadow:0 2px 12px rgba(0,0,0,.28);
  pointer-events:none;
}
.about-card-video:hover .about-video-play,
.about-card-video:focus-visible .about-video-play {
  opacity:1;
  transform:translate(-50%,-50%) scale(1.08);
}
.about-card-video:hover .about-video-prompt,
.about-card-video:focus-visible .about-video-prompt { opacity:1; transform:translateY(-2px); }

.work {
  padding-top: 150px;
  padding-bottom: 60px;
  background: transparent;
}
.section-heading {
  max-width: 1200px;
  margin: 0 auto 64px;
}
.section-heading h2 { margin-bottom: 20px; }
.section-heading > p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.6;
}
.timeline { max-width: 1200px; margin: auto; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding-bottom: 32px;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 45px;
  bottom: -4px;
  width: 1px;
  background: rgba(32,34,31,.22);
}
.timeline-marker { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.timeline-marker span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  font: 500 10px var(--mono);
}
.timeline-marker i { width: 7px; height: 7px; margin-top: 12px; border-radius: 50%; background: var(--ink); }
.work-card {
  min-height: 520px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  overflow: hidden;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.work-card-lime { background: #d9d7d0; }
.work-card-blue { background: var(--blue); }
.work-card-peach { background: var(--peach); }
.work-card-copy { padding: 36px; display: flex; flex-direction: column; }
.work-meta { display: flex; justify-content: space-between; gap: 12px; }
.work-card h3 {
  margin: auto 0 18px;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
}
.work-card-copy > p {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span {
  padding: 7px 10px;
  border: 1px solid rgba(32,34,31,.25);
  border-radius: 999px;
  font: 9px var(--mono);
  text-transform: uppercase;
}
.case-link {
  width: fit-content;
  margin-top: 32px;
  border-bottom: 1px solid;
  font-size: 13px;
  font-weight: 700;
}
.case-link b { display: inline-block; transition: transform .2s; }
.work-card:hover .case-link b,
.work-card:focus-visible .case-link b { transform: translate(4px,-4px); }
.work-media { min-width: 0; padding: 20px 20px 20px 0; }
.media-window {
  position: relative;
  height: 100%;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 9px solid rgba(255,255,255,.5);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}
.media-window > span {
  position: absolute;
  left: 18px;
  top: 16px;
  font: 9px var(--mono);
  text-transform: uppercase;
}
.demo-ui {
  width: 76%;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 38px rgba(32,34,31,.12);
  rotate: 2deg;
  transition: transform .5s, rotate .5s;
}
.work-card:hover .demo-ui,
.work-card:focus-visible .demo-ui { transform: translateY(-8px); rotate: 0deg; }
.demo-ui i { height: 80px; border-radius: 8px; background: #d9e7c9; }
.demo-ui b { grid-column: span 3; height: 18px; border-radius: 5px; background: #ebece8; }
.demo-grid { width: 80%; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.demo-grid i {
  aspect-ratio: 1;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 20px rgba(32,34,31,.08);
  transition: transform .35s;
}
.work-card:hover .demo-grid i:nth-child(odd),
.work-card:focus-visible .demo-grid i:nth-child(odd) { transform: translateY(-8px) rotate(-2deg); }
.work-card:hover .demo-grid i:nth-child(even),
.work-card:focus-visible .demo-grid i:nth-child(even) { transform: translateY(8px) rotate(2deg); }
.demo-orbit {
  position: relative;
  width: 240px;
  aspect-ratio: 1;
  border: 1px solid rgba(32,34,31,.25);
  border-radius: 50%;
  transition: rotate 1s;
}
.work-card:hover .demo-orbit,
.work-card:focus-visible .demo-orbit { rotate: 35deg; }
.demo-orbit i, .demo-orbit b, .demo-orbit em {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--peach);
  border: 1px solid var(--ink);
}
.demo-orbit i { width: 75px; height: 75px; left: 82px; top: 82px; background: var(--yellow); }
.demo-orbit b { width: 42px; height: 42px; left: -12px; top: 98px; background: var(--lavender); }
.demo-orbit em { width: 28px; height: 28px; right: 18px; top: 12px; background: var(--green); }

.side-projects {
  position: relative;
  margin-top: 0;
  padding-top: 90px;
  padding-bottom: 90px;
}
.side-projects .section-label { color: var(--secondary); }
.side-projects .bento {
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.side-projects .bento-wide { background: #efeee9; color: var(--ink); }
.side-projects .bento-tall { background: #c8cdca; color: var(--ink); }
.side-projects .bento-small { background: var(--accent); color: white; }
.side-projects .bento-small p { color: rgba(255,255,255,.9); }
.compact-heading { margin-bottom: 40px; }
.bento-grid {
  max-width: 1200px;
  min-height: 620px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 1fr .65fr;
  gap: 18px;
}
.bento {
  position: relative;
  min-width: 0;
  padding: 32px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s;
}
.bento:hover,
.bento:focus-visible { transform: translateY(-4px); }
.bento-wide { grid-row: span 2; background: rgba(255,255,255,.8); }
.bento-tall { background: rgba(218,231,247,.82); }
.bento-small { background: rgba(245,219,132,.8); }
.bento h3 { max-width: 540px; margin: 14px 0; font-size: 34px; line-height: 1.05; }
.bento p { max-width: 480px; margin: 0; color: var(--secondary); line-height: 1.55; }
.stacked-sheets { position: absolute; left: 16%; right: 8%; bottom: -80px; height: 330px; }
.stacked-sheets i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 30px rgba(32,34,31,.1);
}
.stacked-sheets i:nth-child(1) { transform: translate(-35px,18px) rotate(-7deg); background: var(--peach); }
.stacked-sheets i:nth-child(2) { transform: translate(20px,0) rotate(6deg); background: var(--lavender); }
.stacked-sheets i:nth-child(3) { transform: translateY(-12px); }
.microphone {
  position: absolute;
  right: 12%;
  bottom: -10px;
  width: 110px;
  height: 210px;
}
.microphone i {
  position: absolute;
  left: 25px;
  top: 0;
  width: 60px;
  height: 105px;
  border: 7px solid var(--ink);
  border-radius: 40px;
  background: white;
}
.microphone b { position: absolute; left: 52px; top: 103px; width: 7px; height: 95px; background: var(--ink); }
.pixel-face { position: absolute; right: 30px; bottom: 24px; width: 98px; height: 98px; border: 5px solid var(--ink); border-radius: 22px; }
.pixel-face i { position: absolute; top: 28px; width: 10px; height: 10px; background: var(--ink); }
.pixel-face i:first-child { left: 24px; }
.pixel-face i:nth-child(2) { right: 24px; }
.pixel-face b { position: absolute; left: 28px; bottom: 24px; width: 34px; height: 5px; background: var(--ink); }

.testimonials {
  position: relative;
  margin-top: 0;
  padding-top: clamp(96px,10vw,144px) !important;
  padding-bottom: clamp(72px,8vw,110px);
  background-color: var(--cream);
  background-image: none;
}
.testimonials-panel { max-width: 1200px; margin: auto; padding: clamp(34px,4vw,52px); color: var(--ink); }
.testimonials-panel header { display:block; padding-bottom:clamp(40px,5vw,68px); border-bottom:1px solid var(--line); }
.collaborator-words { display:grid; grid-template-columns:1.12fr .88fr 1fr; }
.collaborator-quote {
  position:relative;
  min-width:0;
  margin:0;
  padding:clamp(34px,4vw,58px) clamp(24px,3vw,42px) clamp(30px,3.5vw,48px) 0;
  outline:none;
}
.collaborator-quote + .collaborator-quote { padding-left:clamp(24px,3vw,42px); border-left:1px solid var(--line); }
.collaborator-quote p {
  max-width:18ch;
  margin:0;
  font:560 clamp(25px,2.35vw,36px)/1.08 var(--sans);
  letter-spacing:-.045em;
  text-wrap:balance;
  transition:transform .4s var(--ease-expo),color .25s ease;
}
.collaborator-quote footer { margin-top:clamp(42px,5vw,72px); color:var(--secondary); font:500 10px/1.4 var(--mono); letter-spacing:.04em; text-transform:uppercase; }
.collaborator-quote::after {
  content:"0" attr(data-memory-slot);
  position:absolute;
  right:clamp(20px,2.5vw,34px);
  bottom:clamp(30px,3.5vw,48px);
  color:rgba(17,17,17,.24);
  font:500 9px var(--mono);
  transition:color .25s ease,transform .4s var(--ease-expo);
}
.collaborator-quote:is(:hover,:focus-visible) p { color:#5e3fd0; transform:translateY(-4px); }
.collaborator-quote:is(:hover,:focus-visible)::after { color:#ff6e9f; transform:rotate(8deg) scale(1.14); }

.profile {
  padding-top: 150px;
  padding-bottom: 70px;
  background: transparent;
}
.profile .surface,
.site-footer .surface {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #f2f0e9;
}
.profile .section-label,
.profile-grid dt,
.site-footer a,
.site-footer .footer-pending,
.site-footer .footer-panel > p { color: rgba(242,240,233,.62); }
.profile-grid { border-color: rgba(255,255,255,.16); }
.profile-grid div { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.14); }
.profile-panel { max-width: 1200px; margin: auto; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.profile-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.profile-grid div {
  min-height: 130px;
  padding: 20px;
  background: rgba(255,255,255,.035);
  border-right: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.profile-grid div:nth-child(2n) { border-right: 0; }
.profile-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.profile-grid dt { color: var(--secondary); font: 10px var(--mono); text-transform: uppercase; }
.profile-grid dd { margin: 34px 0 0; font-size: 16px; font-weight: 600; }
.section-dark .profile-grid dt { color: rgba(242,240,233,.62); }

.contact {
  padding-top: clamp(170px,16vw,240px);
  padding-bottom: 60px;
  background-color: var(--night);
  background-image: linear-gradient(180deg,
    var(--cream) 0,
    #d7d1cc 18%,
    #8f878e 40%,
    #393541 64%,
    #15141b 82%,
    var(--night) 100%);
  background-repeat: no-repeat;
  background-size: 100% clamp(170px,16vw,240px);
}
.contact-panel {
  position: relative;
  max-width: 1200px;
  min-height: 560px;
  margin: auto;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--green);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.contact h2 { max-width: 900px; font-size: 70px; }
.contact .section-label { color: #4c5348; }
.contact-panel > p:not(.section-label) { max-width: 580px; color: #4c5348; font-size: 18px; line-height: 1.55; }
.contact-actions { display: flex; align-items:center; gap: 8px; margin-top: 28px; }
.contact-action-primary {
  min-height: 48px;
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.contact-action-icon {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-color: var(--ink);
  background: #f2f0e9;
  color: var(--ink);
}
.contact-action-cv {
  cursor: default;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.contact-action-cv:hover,
.contact-action-instagram:hover { transform:none; opacity:1; }
.contact-doodles span { position: absolute; font: 500 12px var(--mono); text-transform: uppercase; }
.contact-doodles span:nth-child(1) { right: 12%; top: 16%; rotate: 7deg; padding: 12px 16px; border: 1px solid; border-radius: 50%; background: var(--yellow); }
.contact-doodles span:nth-child(2) { right: 7%; bottom: 17%; rotate: -8deg; padding: 10px 14px; border: 1px solid; background: white; }
.contact-doodles span:nth-child(3) { right: 30%; top: 22%; font-size: 34px; animation: float 3s ease-in-out infinite; }

.site-footer { padding-top: 20px; padding-bottom: 100px; }
.footer-panel { max-width: 1200px; margin: auto; padding: 38px; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; }
.footer-panel div { display: flex; flex-direction: column; gap: 10px; }
.footer-panel h3 { margin: 0 0 8px; font-size: 22px; }
.footer-panel a { width: fit-content; color: var(--secondary); text-decoration: none; }
.footer-panel a:hover { color: #f2f0e9; }
.footer-pending { color: var(--secondary); }
.footer-panel > p { justify-self: end; align-self: end; margin: 0; color: var(--secondary); font: 10px var(--mono); text-transform: uppercase; }
.site-footer .footer-panel a,
.site-footer .footer-pending,
.site-footer .footer-panel > p { color: rgba(242,240,233,.62); }

.mobile-nav { display: none; }
.floating-ai-cta {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  min-width: 190px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(32,34,31,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 36px rgba(32,34,31,.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px) scale(.92);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  backdrop-filter: blur(14px);
}
.floating-ai-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-ai-cta:hover,
.floating-ai-cta:focus-visible { transform: translateY(-3px); }
.floating-ai-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lavender);
  font: 500 10px var(--mono);
}
.floating-ai-cta strong, .floating-ai-cta small { display: block; text-align: left; }
.floating-ai-cta strong { font-size: 13px; }
.floating-ai-cta small { margin-top: 2px; color: var(--secondary); font-size: 9px; }
.floating-ai-cta i { color: var(--accent); font-style: normal; }
.cursor-glow {
  position: fixed;
  z-index: 950;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  transition: opacity .18s ease;
  isolation: auto;
}
.cursor-core {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(24,25,23,.48);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  transition:
    width .34s var(--ease-expo),
    height .34s var(--ease-expo),
    border-color .25s ease,
    background .22s ease,
    transform .18s ease,
    box-shadow .25s ease;
}
body.has-custom-cursor .cursor-glow { opacity: 1; }
.cursor-glow.is-interactive {
  mix-blend-mode: difference;
}
.cursor-glow.is-interactive .cursor-core {
  width: 58px;
  height: 58px;
  border-color: transparent;
  background: #fff;
  box-shadow: none;
}
.cursor-glow.is-pressed .cursor-core {
  transform: translate(-50%, -50%) scale(.82);
}
.cursor-glow.is-hidden { opacity: 0 !important; }
.cursor-glow.is-over-dark:not(.is-interactive) .cursor-core {
  border-color: rgba(242,240,233,.7);
}
.hero h1::after,
.about-carousel-heading h2::after,
.section-heading h2::after {
  content: "✦";
  width:auto;
  display: inline-block;
  margin-left: .18em;
  color:#ffd38a;
  font-family:Georgia,serif;
  font-size:clamp(14px,1.2vw,18px);
  vertical-align: top;
  transform: rotate(10deg);
  opacity: .42;
  animation: heading-star-breathe 5.2s ease-in-out infinite;
}
.hero h1::after { display:none; }
@keyframes heading-star-breathe { 0%,100% { opacity:.24; transform:scale(.7) rotate(3deg); } 50% { opacity:.76; transform:scale(1.34) rotate(13deg); } }
.work .section-heading h2::after { display:none; }
.side-projects .section-heading h2::after { color:#7b55ef; }
.chat-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(32,34,31,.28);
}
.chat-dialog::backdrop { background: rgba(32,34,31,.35); backdrop-filter: blur(5px); }
.chat-dialog form { margin: 0; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.chat-header > div { display: flex; align-items: center; gap: 10px; }
.chat-header strong, .chat-header small { display: block; }
.chat-header small { margin-top: 3px; color: var(--secondary); font-size: 11px; }
.chat-header > button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: white; cursor: pointer; font-size: 22px; transition: transform .2s, background .2s, color .2s; }
.chat-header > button:hover,
.chat-header > button:focus-visible { background: var(--ink); color: white; transform: rotate(4deg); }
.chat-body { min-height: 220px; padding: 22px; }
.chat-message, .chat-answer { max-width: 88%; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-message { background: white; }
.chat-answer { margin: 16px 0 0 auto; background: var(--lavender); }
.chat-composer {
  margin: 0 18px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.chat-composer input { min-width: 0; padding: 6px 8px; border: 0; outline: 0; background: transparent; font: 14px var(--sans); }
.chat-composer button { width: 44px; height: 44px; border: 0; border-radius: 9px; background: var(--ink); color: white; cursor: pointer; transition: transform .2s, opacity .2s; }
.chat-composer button:hover,
.chat-composer button:focus-visible { transform: translateY(-2px); opacity: .8; }

.intro-video-dialog {
  width:min(960px, calc((100vh - 32px) * 1.5315), calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100vh - 32px);
  padding: 0;
  overflow:hidden;
  border: 0;
  border-radius:18px;
  background:transparent;
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0,0,0,.38);
}
.intro-video-dialog::backdrop { background: rgba(8,8,7,.72); backdrop-filter: blur(10px); }
.intro-video-dialog form { position:relative; margin:0; padding:0; }
.intro-video-header { position:absolute; z-index:3; top:14px; right:14px; margin:0; padding:0; }
.intro-video-header button { width:44px; height:44px; display:grid; place-items:center; padding:0; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:rgba(8,8,7,.62); color:white; font-size:24px; cursor:pointer; backdrop-filter:blur(7px); transition:transform .25s,background .25s,color .25s; }
.intro-video-header button:hover, .intro-video-header button:focus-visible { transform:rotate(6deg); background:var(--ink); color:white; }
.intro-video-stage { position:relative; width:100%; aspect-ratio:1654/1080; display:block; overflow:hidden; border-radius:inherit; background:transparent; }
.intro-video-player { display:block; width:100%; height:100%; object-fit:cover; background:transparent; }
@media (max-width: 560px) {
  .intro-video-dialog { width:min(calc(100vw - 20px), calc((100vh - 20px) * 1.5315)); max-height:calc(100vh - 20px); border-radius:14px; }
  .intro-video-header { top:10px; right:10px; }
  .intro-video-header button { width:40px; height:40px; }
}

.reveal { opacity: 1; transform: none; transition: opacity .65s, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.pre-reveal { opacity: 0; transform: translateY(24px); }
.reveal.pre-reveal.visible { opacity: 1; transform: none; }
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

@media (max-width: 1100px) {
  body[data-page="home"] :is(.about-carousel-heading,.section-heading,.testimonials,.profile,.contact) {
    min-width:0;
  }
  body[data-page="home"] :is(.about-carousel-heading,.section-heading,.testimonials,.profile,.contact) h2 {
    width:100%;
    max-width:100%;
    white-space:normal;
    text-wrap:balance;
    overflow-wrap:normal;
  }
  body[data-page="home"] #about-title {
    max-width:100%;
    white-space:normal !important;
    text-wrap:wrap;
    font-size:clamp(50px,6.6vw,64px);
    line-height:.94;
  }
  body[data-page="home"] :is(.about-carousel-heading,.section-heading) > p:last-child {
    width:100%;
    max-width:min(100%,62ch);
    white-space:normal;
    overflow-wrap:break-word;
  }
  .hero-panel {
    grid-template-columns:1fr;
    gap:48px;
    align-items:stretch;
  }
  .hero-copy { padding:18px 6px 0; }
  .hero-actions { margin-top:24px; }
  .hero-visual-wrap {
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    margin:0 auto;
    padding:92px 22px 22px;
    overflow:hidden;
    contain:paint;
    clip-path:inset(0 round 20px);
    border:0;
    border-radius:20px;
    background:transparent;
  }
  .hero-playground {
    box-sizing:border-box;
    width:100%;
    max-width:none;
    margin:0;
    border:0;
  }
  .portrait-stage { width:100%; height:auto; min-height:0; aspect-ratio:1.38; }
  .decor-terminal { left:0; top:18%; width:96px; height:96px; }
  .decor-claude { left:9%; top:3%; width:54px; height:54px; }
  .decor-palette { right:4%; top:1%; width:116px; height:116px; }
  .decor-laptop { right:-2%; top:50%; width:116px; height:98px; }
  .decor-folder { left:-2%; bottom:12%; width:88px; height:80px; }
  .decor-figma { right:11%; bottom:2%; width:56px; height:56px; }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .hero-panel { grid-template-columns: 1fr; gap: 48px; align-items: stretch; }
  .hero-copy { padding: 18px 6px 0; }
  .hero-actions { margin-top: 24px; }
  .hero-visual-wrap {
    width:100%;
    max-width:100%;
    margin-top: 0;
    padding: 92px 22px 22px;
    overflow: hidden;
    contain:paint;
    clip-path:inset(0 round 20px);
    border: 0;
    border-radius: 20px;
    background: transparent;
  }
  .hero h1 { font-size: 58px; }
  .hero-playground { max-width: none; width: 100%; margin: auto; border: 0; }
  .portrait-stage { width:100%; height:auto; min-height:0; aspect-ratio:1.38; }
  .decor-terminal { left:0; top:18%; width:96px; height:96px; }
  .decor-claude { left:9%; top:3%; width:54px; height:54px; }
  .decor-palette { right:4%; top:1%; width:116px; height:116px; }
  .decor-laptop { right:-2%; top:50%; width:116px; height:98px; }
  .decor-folder { left:-2%; bottom:12%; width:88px; height:80px; }
  .decor-figma { right:11%; bottom:2%; width:56px; height:56px; }
  .about-carousel { padding-inline: 20px; }
  .work-card { grid-template-columns: 1fr; }
  .work-card-copy { min-height: 390px; }
  .work-media { height: 460px; padding: 0 20px 20px; }
  .media-window { min-height: 0; }
  .profile-panel { grid-template-columns: 1fr; }
  .floating-nav { display: none; }
}

@media (max-width: 1260px) {
  .pointer-instruction { display: none; }
  .touch-instruction { display: inline; }
  .about-carousel {
    height: 460px;
    margin-top: 44px;
    padding: 72px 20px 30px 0;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .about-carousel::-webkit-scrollbar { display: none; }
  .about-carousel:hover,
  .about-carousel:focus-within { gap: 16px; }
  .about-card,
  .about-carousel:hover .about-card,
  .about-carousel:focus-within .about-card {
    flex: 0 0 var(--about-card-width);
    width: var(--about-card-width);
    min-width: var(--about-card-width);
    margin-left: 0;
    rotate: 0deg;
    scroll-snap-align: start;
  }
  .about-card:first-child { transform-origin: left center; }
  .about-card:first-child:focus-visible { outline-offset: -4px; }
  .about-card:hover,
  .about-card:focus-visible,
  .about-card:focus-within {
    transform: translateY(-10px) scale(1.02);
  }
  /* Keep the label anchored inside the video card. Setting only `top` here
     used to leave the desktop `bottom` value active too, stretching the
     label into a tall dark panel at laptop widths. */
  .about-video-prompt {
    top: auto;
    right: auto;
    bottom: 18px;
  }
  .about-carousel-controls {
    display: flex;
    margin-top: 10px;
  }
}

@media (max-width: 1100px) {
  body { padding-bottom: 104px; }
  .primary-nav,
  .floating-nav { display: none; }
  .header-inner {
    display: flex;
    justify-content: flex-end;
  }
  .site-header .identity { display: none; }
  .header-actions {
    position: fixed;
    z-index: 130;
    top: 16px;
    right: max(16px, calc((100vw - 1440px) / 2));
  }
  .header-cv,
  .header-instagram,
  .header-linkedin { display: none; }
  .header-contact {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .header-contact > span:last-child { display: none; }
  .side-projects { padding-top: 72px; padding-bottom: 72px; }
  .side-projects .section-heading { margin-bottom: 34px; }
  .bento-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }
  .bento,
  .bento-wide,
  .bento-tall,
  .bento-small {
    grid-row: auto;
    width: 100%;
    min-height: 320px;
    padding: 28px;
  }
  .bento-wide { min-height: 500px; }
  .bento h3 {
    max-width: min(680px, calc(100% - 12px));
    overflow-wrap: anywhere;
    font-size: clamp(30px, 5.2vw, 48px);
  }
  .stacked-sheets {
    left: 12%;
    right: 8%;
    bottom: -86px;
    height: 310px;
  }
  .microphone { right: 10%; transform: scale(.82); transform-origin: bottom right; }
  .pixel-face { right: 28px; bottom: 24px; transform: scale(.82); transform-origin: bottom right; }
  .mobile-nav {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: min(500px, calc(100% - 24px));
    min-height: 58px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(4, minmax(58px, 1fr)) 44px;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(32,34,31,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 44px rgba(32,34,31,.18);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
  }
  .mobile-nav > i {
    position: absolute;
    z-index: 1;
    left: 5px;
    top: 5px;
    width: 70px;
    height: calc(100% - 10px);
    border-radius: 999px;
    background: var(--ink);
    pointer-events: none;
    transition: transform .32s, width .32s;
  }
  .mobile-nav a {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 44px;
    padding: 11px 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--ink);
    text-align: center;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s, background .2s, transform .2s;
  }
  .mobile-nav a.is-active {
    color: white;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus-visible,
  .mobile-nav a.is-preview-target { color: white; }
  .mobile-nav a:focus-visible { transform: translateY(-1px); }
  .mobile-nav.is-previewing a.is-active:not(.is-preview-target) { color: var(--ink); }
  .mobile-nav .mobile-nav-avatar {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 2px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(32,34,31,.12);
    border-radius: 50%;
    background: #f2eee5;
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
  }
  .mobile-nav-avatar span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lavender);
    color: var(--ink);
    font: 500 10px var(--mono);
  }
  .floating-ai-cta { display: none; }
}

@media (hover: hover) and (max-width: 1100px) {
  .mobile-nav a:not(.is-active):hover { transform: translateY(-1px); }
  .mobile-nav a.is-active:hover { transform: translateY(-1px); }
  .mobile-nav-avatar:hover {
    border-color: rgba(24,25,23,.32);
    background: white;
    transform: translateY(-1px) rotate(3deg);
  }
}

@media (max-width: 1100px) {
  .mobile-nav-avatar:focus-visible {
    border-color: rgba(24,25,23,.32);
    background: white;
    transform: translateY(-1px) rotate(3deg);
  }
}

@media (max-width: 680px) {
  body { padding-bottom: 98px; }
  .section-wrap { padding-inline: 16px; }
  .site-header { padding: 20px 16px 10px; }
  .header-inner { display: flex; justify-content: flex-end; }
  .header-linkedin, .header-instagram { display: none; }
  .header-contact {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .loader-meta { left: 16px; right: 16px; top: 18px; grid-template-columns: 1fr auto; }
  .loader-meta span:nth-child(2) { display: none; }
  .loader-center-progress { left: 28%; right: 28%; }
  .loader-stack { width: 124px; }
  .loader-progress { font-size: 8px; }
  .loader-progress > span:first-child { right: calc(72% + 12px); }
  .loader-progress > span:last-child { left: calc(72% + 12px); }
  .hero { padding-top: 18px; }
  .hero-panel { min-height: 0; padding: 26px 0 20px; gap: 40px; align-items:stretch; }
  .hero-copy { padding: 18px 6px 0; }
  .hero h1 { font-size: 40px; }
  .hero-summary { font-size: 16px; }
  .hero-actions { margin-top: 20px; flex-direction: column; align-items: stretch; }
  .hero-visual-wrap {
    margin-top: 0;
    padding: 70px 12px 12px;
    clip-path:inset(0 round 16px);
    border-radius: 16px;
  }
  .hero-playground { padding: 0; }
  .portrait-stage { height:auto; aspect-ratio:1.08; }
  .hero-person-mask { inset:-76px 0 0; }
  .hero-person { height:108%; }
  .agent-doodle { right:8%; top:24%; width:156px; font-size:clamp(17px,5.4vw,22px); }
  .agent-arrow-pencil { right:8%; top:38%; width:60px; height:120px; }
  .ai-card-message { left:5%; right:5%; bottom:3%; }
  .decor-terminal { left:-3%; top:23%; width:76px; height:76px; }
  .decor-claude { left:10%; top:4%; width:45px; height:45px; }
  .decor-palette { right:3%; top:2%; width:86px; height:86px; }
  .decor-laptop { right:-4%; top:55%; width:88px; height:74px; }
  .decor-folder { left:-4%; bottom:14%; width:70px; height:64px; }
  .decor-figma { right:10%; bottom:2%; width:48px; height:48px; border-radius:14px; }
  .portrait-card { width: 78%; }
  .about-preview { display: block; padding-top: 64px; padding-bottom: 50px; }
  body[data-page="home"] #about-title {
    max-width:100%;
    font-size:clamp(39px,11.5vw,48px);
    line-height:.96;
  }
  .about-carousel-heading { display: block; }
  .about-carousel-heading > p:last-child { margin-top: 20px; }
  .about-carousel {
    width: calc(100% + 16px);
    height: 452px;
    margin-right: -16px;
    margin-top: 36px;
    padding-top: 64px;
    padding-bottom: 30px;
    justify-content: flex-start;
    gap: 16px;
  }
  .about-card, .about-carousel:hover .about-card, .about-carousel:focus-within .about-card {
    flex: 0 0 var(--about-card-width);
    width: var(--about-card-width);
    min-width: var(--about-card-width);
    height: 340px;
    margin-left: 0;
    rotate: 0deg;
    scroll-snap-align: start;
  }
  .about-card:hover,
  .about-card:focus-visible,
  .about-card:focus-within { transform: translateY(-8px) scale(1.01); }
  .about-card-copy p { max-height: 100px; margin-bottom: 12px; opacity: 1; }
  .work { padding-top: 76px; }
  .section-heading { margin-bottom: 38px; }
  .about-preview h2, .section-heading h2, .testimonials h2, .profile h2, .contact h2 { font-size: 39px; }
  .timeline-item { display: block; }
  .timeline-item::before, .timeline-marker { display: none; }
  .work-card { min-height: 0; }
  .work-card-copy { min-height: 390px; padding: 24px; }
  .work-card h3 { font-size: 42px; }
  .work-media { height: 320px; padding: 0 10px 10px; }
  .media-window { border-width: 5px; }
  .demo-orbit { width: 180px; }
  .demo-orbit i { left: 55px; top: 55px; }
  .side-projects { padding-top: 52px; padding-bottom: 52px; }
  .bento,
  .bento-wide,
  .bento-tall,
  .bento-small { min-height: 280px; padding: 24px; }
  .bento-wide { min-height: 430px; }
  .bento h3 { font-size: 31px; }
  .stacked-sheets { left: 15%; height: 230px; }
  .testimonials { padding-top:112px!important; }
  .testimonials-panel { padding:30px 22px; }
  .testimonials-panel header { padding-bottom:30px; }
  .collaborator-words { grid-template-columns:1fr; }
  .collaborator-quote { padding:30px 0; border-bottom:1px solid var(--line); }
  .collaborator-quote + .collaborator-quote { padding-left:0; border-left:0; }
  .collaborator-quote:last-child { border-bottom:0; }
  .collaborator-quote p { max-width:24ch; font-size:clamp(24px,7.4vw,30px); }
  .collaborator-quote footer { margin-top:24px; }
  .profile-panel { padding: 26px 22px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .profile-grid div:last-child { border-bottom: 0 !important; }
  .contact-panel { min-height: 600px; padding: 40px 24px; justify-content: flex-end; }
  .contact h2 { font-size: 44px; }
  .contact-doodles span:nth-child(1) { right: 12%; top: 12%; }
  .contact-doodles span:nth-child(2) { display: none; }
  .contact-doodles span:nth-child(3) { right: 18%; top: 32%; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .footer-panel { padding: 26px 22px; grid-template-columns: 1fr 1fr; }
  .footer-panel > p { grid-column: 1 / -1; justify-self: start; }
  .site-footer { padding-bottom: 20px; }
  .mobile-nav {
    width: min(430px, calc(100% - 16px));
    min-height: 56px;
    padding: 5px;
    grid-template-columns: repeat(4, minmax(46px, 1fr)) 44px;
    gap: 2px;
  }
  .mobile-nav a { padding: 10px 4px; font-size: 10px; }
  .mobile-nav .mobile-nav-avatar { width: 44px; height: 44px; }
  .floating-ai-cta {
    display: none;
  }
  .floating-ai-cta > span:nth-child(2),
  .floating-ai-cta > i { display: none; }
  .cursor-glow { display: none; }
}

@media (max-width: 360px) {
  .about-carousel,
  .about-carousel:hover,
  .about-carousel:focus-within { gap: 8px; }
}

/* A single decorative language across the Homepage: typographic four-point stars. */
body[data-page="home"] :is(.about-preview,.work,.side-projects,.testimonials,.profile,.contact) { position:relative; }
body[data-page="home"] :is(.about-preview,.work,.side-projects,.testimonials,.profile,.contact)::before,
body[data-page="home"] :is(.about-preview,.work,.side-projects,.testimonials,.profile,.contact)::after {
  content:"✦";
  position:absolute;
  z-index:1;
  width:auto;
  pointer-events:none;
  color:#ffd38a;
  font:400 clamp(17px,1.8vw,26px)/1 Georgia,serif;
  text-shadow:0 0 18px color-mix(in srgb,currentColor 34%,transparent);
  animation:homepage-glint 5.8s ease-in-out infinite;
}
body[data-page="home"] .section-light::before {
  color:#ff6e9f;
}
body[data-page="home"] .section-light::after { color:#7b55ef; }
body[data-page="home"] .about-preview::before { left:6%; top:13%; }
body[data-page="home"] .about-preview::after { right:6%; bottom:14%; color:#f5b6d2; animation-delay:-3.6s; }
body[data-page="home"] .work::before { left:5%; right:auto; top:10%; animation-delay:-1.2s; }
body[data-page="home"] .work::after { right:5%; top:48%; color:#70b96a; animation-delay:-3.8s; }
body[data-page="home"] .side-projects::before { right:10%; top:8%; animation-delay:-2.1s; }
body[data-page="home"] .side-projects::after { left:6%; bottom:10%; color:#7b55ef; animation-delay:-4.4s; }
body[data-page="home"] .testimonials::before { left:12%; top:5%; width:24px; animation-delay:-3s; }
body[data-page="home"] .testimonials::after { right:8%; bottom:12%; color:#70b96a; animation-delay:-1.8s; }
body[data-page="home"] .profile::before { right:7%; top:11%; width:32px; animation-delay:-4s; }
body[data-page="home"] .profile::after { left:8%; bottom:9%; color:#d8bcff; animation-delay:-2.2s; }
body[data-page="home"] .contact::before { left:8%; top:12%; width:26px; animation-delay:-2.6s; }
body[data-page="home"] .contact::after { right:9%; bottom:16%; color:#ffb3cf; animation-delay:-4.5s; }
@keyframes homepage-glint { 0%,100%{transform:scale(.62) rotate(-5deg);opacity:.22} 48%{transform:scale(1.38) rotate(9deg);opacity:.82} }

/* Secondary edge accents keep decoration present without crossing content. */
body[data-page="home"] :is(.about-preview-panel,.timeline,.testimonials-panel,.profile-panel,.contact-panel) { position:relative; }
body[data-page="home"] :is(.about-preview-panel,.timeline,.testimonials-panel,.profile-panel,.contact-panel)::before,
body[data-page="home"] :is(.about-preview-panel,.timeline,.testimonials-panel,.profile-panel,.contact-panel)::after {
  content:"✦";
  position:absolute;
  z-index:4;
  pointer-events:none;
  font:400 clamp(10px,1.05vw,15px)/1 Georgia,serif;
  color:#ffd38a;
  text-shadow:0 0 12px color-mix(in srgb,currentColor 30%,transparent);
  animation:homepage-glint 5.6s ease-in-out infinite;
}
body[data-page="home"] .about-preview-panel::before { right:1%; top:34%; color:#d8bcff; }
body[data-page="home"] .about-preview-panel::after { left:1%; bottom:17%; color:#f5b6d2; animation-delay:-2.7s; }
body[data-page="home"] .timeline::before { right:-20px; top:24%; color:#7b55ef; animation-delay:-1.3s; }
body[data-page="home"] .timeline::after { left:-17px; top:67%; color:#70b96a; animation-delay:-3.6s; }
body[data-page="home"] .testimonials-panel::before { right:18px; top:22px; color:#ff6e9f; }
body[data-page="home"] .testimonials-panel::after { left:18px; bottom:18px; color:#7b55ef; animation-delay:-2.1s; }
body[data-page="home"] .profile-panel::before { right:18px; top:20px; color:#d8bcff; animation-delay:-1.8s; }
body[data-page="home"] .profile-panel::after { left:18px; bottom:18px; color:#ffd38a; animation-delay:-4s; }
body[data-page="home"] .contact-panel::before { right:20px; top:22px; color:#f5b6d2; }
body[data-page="home"] .contact-panel::after { left:20px; bottom:22px; color:#8fc987; animation-delay:-3.1s; }

/* One eyebrow hierarchy for every top-level Homepage section. */
body[data-page="home"] .section-label {
  font:500 10px/1.3 var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}
body[data-page="home"] .testimonials-panel h2.section-label {
  width:auto!important;
  max-width:none!important;
  margin:0;
  font-family:var(--mono)!important;
  font-size:10px!important;
  font-weight:500!important;
  line-height:1.3!important;
  letter-spacing:.08em!important;
  text-transform:uppercase;
  white-space:nowrap;
}

@media (min-width:1101px) {
  body[data-page="home"] .work .section-heading > p:last-child {
    max-width:none;
    white-space:nowrap;
    text-wrap:nowrap;
  }
}

@media (max-width:620px) {
  .hero-title-line:first-child { font-size:.82em; }
  .hero-title-line-name { margin-top:.12em; font-size:1.07em; letter-spacing:-.075em; }
  body[data-page="home"] :is(.about-preview,.work,.side-projects,.testimonials,.profile,.contact)::before,
  body[data-page="home"] :is(.about-preview,.work,.side-projects,.testimonials,.profile,.contact)::after { font-size:24px; }
}

/* Final display scale: the hero remains the dominant typographic level. */
@media (max-width: 980px) {
  body[data-page="home"] .hero h1 { font-size: clamp(96px, 14.5vw, 126px); }
}

@media (max-width: 620px) {
  body[data-page="home"] .hero h1 {
    margin-bottom: 30px;
    font-size: clamp(56px, 17vw, 96px);
    line-height: .86;
  }
  body[data-page="home"] .hero-title-line { white-space: nowrap; }
  body[data-page="home"] .hero-subtitle { max-width: 24ch; font-size: clamp(23px,7vw,27px); line-height: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Multi-page foundation */
.inner-page main { min-height: 100vh; }

.work-index-page .site-header {
  color: var(--ink);
}

.work-index-page .site-header .header-contact,
.work-index-page .site-header .header-linkedin {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.inner-hero {
  min-height: 850px;
  padding-top: 110px;
  padding-bottom: 100px;
}

.inner-hero-grid {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .55fr);
  gap: 80px;
  align-items: end;
}

.inner-hero h1,
.work-index-hero h1 {
  max-width: 1050px;
  margin: 18px 0 0;
  font: italic 500 clamp(72px, 9vw, 142px)/.82 var(--serif);
  letter-spacing: 0;
}

.inner-hero-aside {
  padding-bottom: 12px;
  color: rgba(242,240,233,.68);
  font-size: 18px;
  line-height: 1.55;
}

.inner-hero-aside p { margin: 0 0 28px; }
.inner-hero-aside a { font-weight: 650; text-underline-offset: 6px; }

.about-portrait-composition {
  position: relative;
  max-width: 1440px;
  min-height: 390px;
  margin: 92px auto 0;
}

.about-portrait-main {
  position: absolute;
  left: 23%;
  top: 0;
  width: min(530px, 48vw);
  height: 360px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.2);
  background: #d1c3ba;
  color: var(--ink);
  rotate: -2deg;
}

.about-portrait-main span {
  font: 10px var(--mono);
  text-transform: uppercase;
}

.about-portrait-main b {
  align-self: center;
  margin-bottom: 92px;
  font: 500 64px var(--sans);
}

.about-portrait-note {
  position: absolute;
  right: 6%;
  top: 74px;
  width: 300px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.22);
  background: var(--accent);
  font-size: 20px;
  line-height: 1.3;
  rotate: 3deg;
}

.about-portrait-composition > i {
  position: absolute;
  left: 13%;
  top: 74px;
  color: var(--green);
  font-size: 34px;
  font-style: normal;
}

.about-principles,
.experience-section {
  padding-top: 130px;
  padding-bottom: 130px;
}

.inner-section-heading {
  max-width: 1440px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: .45fr 1.55fr;
  gap: 60px;
  align-items: start;
}

.inner-section-heading h2,
.experiment-index-heading h2,
.about-notes-heading h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 500;
  line-height: .95;
}

.principle-grid {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle-card {
  min-height: 420px;
  padding: 28px 30px 40px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.principle-card:last-child { border-right: 0; }
.principle-card > span { font: 10px var(--mono); }
.principle-card h3 {
  margin: auto 0 18px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
}
.principle-card p { max-width: 380px; margin: 0; color: var(--secondary); line-height: 1.55; }

.experience-list {
  max-width: 1440px;
  margin: auto;
  border-top: 1px solid var(--line);
}

.experience-row {
  padding: 34px 0;
  display: grid;
  grid-template-columns: .45fr .65fr 1fr;
  gap: 50px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.experience-row > span { font: 10px/1.5 var(--mono); text-transform: uppercase; }
.experience-row h3 { margin: 0; font-size: 26px; }
.experience-row p { max-width: 540px; margin: 0; color: var(--secondary); line-height: 1.55; }

.about-notes,
.experiment-index {
  padding-top: 140px;
  padding-bottom: 130px;
}

.about-notes-heading,
.experiment-index-heading {
  max-width: 1440px;
  margin: 0 auto 82px;
}

.about-notes-heading .section-label,
.experiment-index-heading .section-label { color: rgba(242,240,233,.55); }

.about-note-grid {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
}

.about-note {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.18);
}

.about-note:last-child { border-right: 0; }
.about-note span { font: 10px var(--mono); text-transform: uppercase; color: var(--green); }
.about-note p { max-width: 330px; margin: 120px 0 0; color: rgba(242,240,233,.72); font-size: 18px; line-height: 1.5; }

.next-page-link {
  position: relative;
  max-width: 1440px;
  margin: 100px auto 0;
  padding: 34px 0;
  display: grid;
  grid-template-columns: .45fr 1.5fr auto;
  gap: 40px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
  text-decoration: none;
}

.next-page-link span { font: 10px var(--mono); text-transform: uppercase; }
.next-page-link strong { font-size: clamp(34px, 5vw, 70px); font-weight: 500; }
.next-page-link i { font-size: 48px; font-style: normal; transition: transform .3s var(--ease-expo); }
.next-page-link:hover i { transform: translate(8px, -8px); }

.work-index-hero {
  max-width: 100%;
  min-height: 700px;
  padding-top: 120px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .4fr);
  gap: 90px;
  align-items: end;
}

.work-index-hero > * { max-width: 1440px; }
.work-index-hero h1 { font-family: var(--sans); font-style: normal; font-weight: 500; }
.work-index-hero > p {
  max-width: 430px;
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.55;
}

.featured-work-index {
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 24px;
}

.project-index-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  text-decoration: none;
  background: #222;
}

.project-index-card-wide { grid-column: span 6; }
.project-index-card-narrow { grid-column: span 4; }
.project-index-card-half { grid-column: span 5; min-height: 520px; }

.project-index-card img,
.project-index-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-index-card img {
  object-fit: cover;
  transition: transform .8s var(--ease-expo);
}

.project-index-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.04) 42%, rgba(0,0,0,.72));
}

.project-index-card:hover img { transform: scale(1.035); }

.project-index-meta,
.project-index-copy {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
}

.project-index-meta {
  top: 26px;
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  text-transform: uppercase;
}

.project-index-copy { bottom: 28px; }
.project-index-copy h2 { margin: 0 0 10px; font-size: clamp(38px, 4vw, 68px); line-height: .95; }
.project-index-copy p { max-width: 540px; margin: 0 0 28px; color: rgba(255,255,255,.78); }
.project-index-copy > span { font-weight: 650; text-decoration: underline; text-underline-offset: 6px; }

.project-index-placeholder { background: var(--accent); }
.project-placeholder-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.project-placeholder-visual i {
  position: absolute;
  width: 180px;
  aspect-ratio: .72;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
}
.project-placeholder-visual i:nth-child(1) { rotate: -12deg; }
.project-placeholder-visual i:nth-child(2) { rotate: 4deg; }
.project-placeholder-visual i:nth-child(3) { rotate: 16deg; }
.project-placeholder-visual b { z-index: 1; font: italic 500 38px var(--serif); }

.experiment-index-heading {
  display: grid;
  grid-template-columns: .38fr 1.1fr .5fr;
  gap: 50px;
  align-items: start;
}
.experiment-index-heading > p:last-child { margin: 0; color: rgba(242,240,233,.62); line-height: 1.55; }

.experiment-grid {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.experiment-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #252623;
  color: white;
  text-decoration: none;
}

.experiment-card-large { grid-column: 1 / -1; min-height: 700px; }
.experiment-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .75s var(--ease-expo); }
.experiment-card:hover img { transform: scale(1.025); }
.experiment-card > div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  background: rgba(11,11,10,.72);
  backdrop-filter: blur(14px);
}
.experiment-card span { font: 9px var(--mono); text-transform: uppercase; }
.experiment-card h3 { margin: 12px 0 8px; font-size: 34px; }
.experiment-card p { margin: 0; color: rgba(255,255,255,.7); }

/* Shell-less global footer */
.site-footer {
  padding-top: 80px;
  padding-bottom: 110px;
}

.site-footer .footer-inner {
  max-width: 1440px;
  margin: auto;
  padding: 54px 0 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, .7fr);
  gap: 48px;
  border-top: 1px solid rgba(242,240,233,.22);
}

.footer-inner > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand div { display: flex; flex-direction: column; gap: 5px; }
.footer-brand strong { font-size: 16px; }
.footer-brand div span { color: rgba(242,240,233,.48); font-size: 13px; }
.footer-inner h3 { margin: 0 0 12px; color: white; font-size: 13px; }
.footer-inner a,
.footer-inner .footer-pending { color: rgba(242,240,233,.58); text-decoration: none; }
.footer-inner a:hover { color: white; }
.footer-inner > p {
  grid-column: 1 / -1;
  margin: 42px 0 0;
  color: rgba(242,240,233,.42);
  font: 9px var(--mono);
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .inner-hero-grid,
  .work-index-hero { grid-template-columns: 1fr; gap: 42px; }
  .inner-hero { padding-top: 70px; }
  .inner-hero-aside { max-width: 620px; }
  .about-portrait-main { left: 8%; width: min(560px, 65vw); }
  .about-portrait-note { right: 3%; }
  .inner-section-heading { grid-template-columns: 1fr; gap: 24px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-row { grid-template-columns: .4fr .7fr 1fr; gap: 24px; }
  .about-note-grid { grid-template-columns: 1fr; }
  .about-note { min-height: 220px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .about-note p { margin-top: 72px; }
  .featured-work-index { gap: 16px; }
  .project-index-card-wide,
  .project-index-card-narrow,
  .project-index-card-half { grid-column: 1 / -1; min-height: 620px; }
  .experiment-index-heading { grid-template-columns: 1fr; }
  .site-footer .footer-inner { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 680px) {
  .inner-hero { min-height: auto; padding-top: 58px; padding-bottom: 70px; }
  .inner-hero h1,
  .work-index-hero h1 { font-size: 54px; }
  .about-portrait-composition { min-height: 390px; margin-top: 64px; }
  .about-portrait-main { left: 4%; width: 88%; height: 320px; }
  .about-portrait-note { right: 0; top: 260px; width: 68%; padding: 20px; font-size: 16px; }
  .about-portrait-composition > i { left: 0; top: 20px; }
  .about-principles,
  .experience-section,
  .about-notes,
  .experiment-index { padding-top: 82px; padding-bottom: 82px; }
  .inner-section-heading,
  .about-notes-heading,
  .experiment-index-heading { margin-bottom: 46px; }
  .inner-section-heading h2,
  .experiment-index-heading h2,
  .about-notes-heading h2 { font-size: 46px; }
  .principle-card { min-height: 290px; padding-inline: 0; }
  .experience-row { grid-template-columns: 1fr; gap: 12px; }
  .experience-row p { margin-top: 10px; }
  .about-note { padding-inline: 0; }
  .next-page-link { grid-template-columns: 1fr auto; gap: 20px; }
  .next-page-link span { grid-column: 1 / -1; }
  .next-page-link strong { font-size: 34px; }
  .work-index-hero { min-height: 610px; padding-top: 70px; padding-bottom: 70px; }
  .featured-work-index { padding-bottom: 80px; }
  .project-index-card-wide,
  .project-index-card-narrow,
  .project-index-card-half { min-height: 510px; }
  .project-index-meta,
  .project-index-copy { left: 20px; right: 20px; }
  .project-index-copy h2 { font-size: 40px; }
  .experiment-grid { grid-template-columns: 1fr; gap: 16px; }
  .experiment-card,
  .experiment-card-large { grid-column: auto; min-height: 480px; }
  .site-footer { padding-top: 52px; padding-bottom: 60px; }
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 42px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-inner > p { margin-top: 10px; }
}

/* 2026-07-13 — preserve homepage navigation and Portfolio AI identity across widths */
@media (max-width: 1100px) {
  body[data-page="home"] { padding-bottom: 0; }
  body[data-page="home"] .mobile-nav { display: none; }

  body[data-page="home"] .site-header {
    padding: 26px max(32px, calc((100vw - 1440px) / 2)) 10px;
  }

  body[data-page="home"] .header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-content: initial;
    gap: 20px;
  }

  body[data-page="home"] .site-header .identity,
  body[data-page="home"] .primary-nav { display: flex; }

  body[data-page="home"] .header-actions {
    position: static;
    z-index: auto;
    top: auto;
    right: auto;
    justify-self: end;
    display: flex;
  }

  body[data-page="home"] .header-contact {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 8px;
  }

  body[data-page="home"] .header-contact > span:last-child { display: inline; }

  body[data-page="home"] .floating-nav {
    left: max(32px, calc((100vw - 1440px) / 2));
    right: max(32px, calc((100vw - 1440px) / 2));
    top: 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  body[data-page="home"] .floating-ai-cta {
    right: 22px;
    bottom: 22px;
    width: 54px;
    min-width: 54px;
    height: 54px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 5px;
    border-radius: 50%;
  }

  body[data-page="home"] .floating-ai-cta > span:nth-child(2),
  body[data-page="home"] .floating-ai-cta > i { display: none; }

  body[data-page="home"] .floating-ai-avatar {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  body[data-page="home"] .header-instagram,
  body[data-page="home"] .header-cv,
  body[data-page="home"] .header-linkedin,
  body[data-page="home"] .floating-actions .header-instagram,
  body[data-page="home"] .floating-actions .header-cv,
  body[data-page="home"] .floating-actions .header-linkedin { display: none; }
}

@media (max-width: 680px) {
  body[data-page="home"] .site-header { padding: 20px 16px 10px; }

  body[data-page="home"] .header-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
  }

  body[data-page="home"] .site-header .identity,
  body[data-page="home"] .site-header .header-actions {
    display: none;
    pointer-events: none;
  }

  body[data-page="home"] .primary-nav { grid-column: 2; }

  body[data-page="home"] .floating-nav {
    left: 16px;
    right: 16px;
    grid-template-columns: 1fr auto 1fr;
  }

  body[data-page="home"] .floating-identity,
  body[data-page="home"] .floating-actions {
    display: none;
    pointer-events: none;
  }

  body[data-page="home"] .floating-nav nav { grid-column: 2; }
}

@media (max-width: 360px) {
  body[data-page="home"] .site-header { padding-inline: 8px; }
  body[data-page="home"] .floating-nav { left: 8px; right: 8px; }
}

/* Homepage capability summary: a user-controlled sticky transition into experience. */
.philosophy-bridge {
  --bridge-progress: 0;
  --bridge-dark: 0;
  --bridge-exit: 0;
  position: relative;
  z-index: 2;
  height: 420svh;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}
.philosophy-bridge::before { content: none; }
.philosophy-sticky {
  z-index:1;
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: #f2f0e9;
}
.philosophy-sticky::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 48% 42%,rgba(111,92,255,.2),transparent 30%),
    radial-gradient(circle at 75% 72%,rgba(245,182,210,.08),transparent 28%),
    #0b0b0a;
  opacity: var(--bridge-dark);
}
.philosophy-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: calc(var(--bridge-dark) * .42);
  background-image:
    linear-gradient(rgba(216,188,255,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(216,188,255,.07) 1px,transparent 1px);
  background-size: clamp(80px,12.5vw,180px) clamp(80px,12.5vw,180px);
  background-position: center;
  mask-image: radial-gradient(circle at center,#000 18%,transparent 76%);
}
.philosophy-field { position: absolute; inset: 0; pointer-events: none; }
.philosophy-star {
  position: absolute;
  margin: 0;
  color: #ffd38a;
  font: 400 1em/1 Georgia,serif;
  font-style: normal;
  text-shadow: 0 0 18px rgba(255,211,138,.42);
  opacity: calc(.12 + var(--bridge-progress) * .68 - var(--bridge-exit) * .55);
  transform: scale(calc(.22 + var(--bridge-progress) * 1.28));
  transition: opacity .12s linear;
}
.philosophy-star-one { left: 9%; top: 16%; font-size: 18px; }
.philosophy-star-two { right: 12%; top: 12%; font-size: 36px; color: #d8bcff; transform: scale(calc(.18 + var(--bridge-progress) * 1.65)); }
.philosophy-star-three { left: 18%; bottom: 18%; font-size: 52px; color: #f5b6d2; transform: scale(calc(.12 + var(--bridge-progress) * 1.9)); }
.philosophy-star-four { right: 20%; bottom: 17%; font-size: 20px; color: #8fc987; }
.philosophy-star-five { left: 47%; top: 9%; font-size: 12px; transform: scale(calc(.28 + var(--bridge-progress) * 1.1)); }
.philosophy-star-six { right: 5%; top: 52%; font-size: 14px; color: #f5b6d2; }
.philosophy-system {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw,900px);
  aspect-ratio: 1;
  opacity: calc(var(--bridge-dark) * .9 - var(--bridge-exit) * .42);
  transform: translate(-50%,-50%) scale(calc(.58 + var(--bridge-progress) * .72)) rotate(calc(-18deg + var(--bridge-progress) * 28deg));
  filter: drop-shadow(0 0 52px rgba(111,92,255,.22));
  pointer-events: none;
  will-change: transform,opacity;
}
.philosophy-orbit,.philosophy-node,.philosophy-core { position: absolute; display: block; }
.philosophy-orbit {
  left: 50%;
  top: 50%;
  border: 1.5px solid rgba(216,188,255,.3);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.philosophy-orbit-one { width: 38%; height: 38%; }
.philosophy-orbit-two { width: 66%; height: 46%; transform: translate(-50%,-50%) rotate(38deg); border-color: rgba(245,182,210,.28); }
.philosophy-orbit-three { width: 88%; height: 62%; transform: translate(-50%,-50%) rotate(-34deg); border-color: rgba(245,182,210,.22); }
.philosophy-node {
  width: clamp(10px,1.15vw,17px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8bcff;
  box-shadow: 0 0 0 7px rgba(216,188,255,.08),0 0 24px rgba(216,188,255,.48);
}
.philosophy-node-one { left: 20%; top: 31%; }
.philosophy-node-two { right: 16%; top: 48%; background: #ffd38a; }
.philosophy-node-three { left: 38%; bottom: 13%; background: #f5b6d2; }
.philosophy-core {
  left: 50%;
  top: 50%;
  color: #f5b6d2;
  font: 400 clamp(38px,5vw,72px)/1 Georgia,serif;
  text-shadow: 0 0 34px rgba(245,182,210,.42);
  transform: translate(-50%,-50%) rotate(calc(18deg - var(--bridge-progress) * 28deg));
}
.philosophy-narrative {
  position: relative;
  z-index: 2;
  width: min(1180px,calc(100vw - 112px));
  height: min(760px,calc(100svh - 120px));
  text-align: center;
}
.philosophy-chapter {
  --chapter-opacity: 0;
  --chapter-shift: 42px;
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: var(--chapter-opacity);
  transform: translateY(var(--chapter-shift));
  pointer-events: none;
  will-change: transform,opacity;
}
.philosophy-chapter > p,.philosophy-chapter > small {
  display: block;
  font: 500 10px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.philosophy-chapter > p { margin: 0 0 clamp(24px,3vw,42px); color: rgba(242,240,233,.55); }
.philosophy-chapter > p span { margin-right: 12px; color: #ffd38a; }
.philosophy-chapter > small { margin-top: clamp(28px,3vw,44px); color: #ffd38a; }
.philosophy-chapter h3 {
  width: 100%;
  margin: 0 auto;
  font: 570 clamp(62px,7.7vw,118px)/.9 var(--sans);
  letter-spacing: -.065em;
  text-wrap: balance;
}
.philosophy-chapter h3 > span {
  display: block;
  opacity: var(--line-progress,1);
  transform: translateY(calc((1 - var(--line-progress,1)) * 42px));
}
.philosophy-chapter h3 em { color: #f5b6d2; font: italic 500 1.03em/.9 var(--serif); }
.philosophy-chapter-one { color: #f2f0e9; }
.philosophy-chapter-one > p { justify-self: center; color: rgba(242,240,233,.55); }
.philosophy-chapter-one > p span { color: #f5b6d2; }
.philosophy-chapter-one h3,
.philosophy-chapter-two h3,
.philosophy-chapter-three h3 {
  position: relative;
  max-width: 12ch;
  font: 690 clamp(58px,7.35vw,112px)/1 var(--sans);
  letter-spacing: -.055em;
  text-align: center;
  text-transform: uppercase;
}
.philosophy-chapter-one h3 > span,
.philosophy-chapter-two h3 > span,
.philosophy-chapter-three h3 > span { white-space: nowrap; }
.philosophy-chapter-one h3,.philosophy-chapter-two h3 { transform: none; }
.philosophy-chapter-three h3 { max-width: 13ch; transform: none; font-size: clamp(58px,7vw,108px); }
.philosophy-chapter-one h3 > span:nth-child(1) { color: rgba(242,240,233,.48); }
.philosophy-chapter-one h3 > span:nth-child(3) { color: #f5b6d2; }
.philosophy-chapter-two > p { justify-self: center; }
.philosophy-chapter-two h3 > span:nth-child(1) { color: rgba(242,240,233,.52); }
.philosophy-chapter-two h3 > span:nth-child(2) { color: #f5b6d2; }
.philosophy-chapter-two h3 > span:nth-child(3) { color: #f2f0e9; }
.philosophy-chapter-three > p { justify-self: center; }
.philosophy-chapter-three h3 > span:nth-child(1) { color: rgba(242,240,233,.52); }
.philosophy-chapter-three h3 > span:nth-child(2) { color: #f2f0e9; }
.philosophy-chapter-three h3 > span:nth-child(3) { color: #f5b6d2; }
.philosophy-chapter-four { justify-items: center; }
.philosophy-chapter-four h3 { max-width: 11.5ch; font-size: clamp(72px,10vw,154px); line-height: .82; }

.experience-summary {
  --experience-reveal: 1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(72px,7vw,112px);
  align-items: start;
  padding-top: clamp(112px,9vw,148px);
  padding-bottom: clamp(96px,9vw,136px);
  padding-inline: max(32px,calc((100vw - 1200px) / 2));
  color: var(--ink);
  background-color: var(--cream);
  background-image: none;
  isolation: isolate;
  overflow: hidden;
}

/*
  Desktop homepage transitions share one pinned viewport. The last project card
  remains underneath the philosophy stage while the dark surface fades in. At
  the other end, Experience begins one viewport early underneath that same
  stage, so the dark surface can fade away without exposing a section seam.
*/
@media (min-width: 901px) {
  body[data-page="home"] .timeline {
    padding-bottom: 0;
  }
  body[data-page="home"] .timeline-item:last-child {
    position: relative;
    align-items: start;
    padding-bottom: 200svh;
    z-index: 1;
  }
  body[data-page="home"] .timeline-item:last-child > .timeline-marker,
  body[data-page="home"] .timeline-item:last-child > .work-card {
    position: relative;
    align-self: start;
    translate: 0 var(--final-card-pin,0px);
    will-change: translate;
  }
  body[data-page="home"] .philosophy-bridge {
    margin-top: -200svh;
  }
  body[data-page="home"] .experience-summary {
    margin-top: -100svh;
    padding-top: clamp(88px,7vw,112px);
  }
}
.experience-summary::before {
  content: none;
}
.experience-summary::after {
  content: none;
}
.experience-summary > .experience-intro,
.experience-summary > .experience-accordion {
  opacity: clamp(0,calc((var(--experience-reveal) - .12) * 1.22),1) !important;
  transform: translateY(calc((1 - var(--experience-reveal)) * 22px));
  will-change: transform,opacity;
}
.experience-intro { position: sticky; top: 112px; padding-top: 2px; }
.experience-intro h2 {
  max-width: 10.5ch!important;
  margin: 18px 0 24px;
  font: 560 clamp(48px,4.35vw,66px)/.96 var(--sans)!important;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.experience-intro h2 .no-break { white-space: nowrap; }
.experience-intro > p:last-of-type { max-width: 42ch; margin: 0; color: rgba(20,20,19,.64); font-size: 16px; line-height: 1.6; }
.experience-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.experience-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid rgba(20,20,19,.24); border-radius: 12px; background: rgba(242,240,233,.58); color: var(--ink); font-size: 12px; font-weight: 650; text-decoration: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .3s,color .3s,transform .3s var(--ease-expo); }
.experience-links a:hover,.experience-links a:focus-visible { background: var(--ink); color: #f2f0e9; transform: translateY(-2px); }
.experience-accordion { border-top: 1px solid rgba(20,20,19,.22); }
.experience-accordion details { border-bottom: 1px solid rgba(20,20,19,.22); }
.experience-accordion summary { min-height: 138px; display: grid; grid-template-columns: 28px minmax(0,1fr) 32px; gap: 18px; align-items: start; padding: 22px 0 20px; box-sizing: border-box; cursor: pointer; list-style: none; }
.experience-accordion summary::-webkit-details-marker { display: none; }
.experience-accordion summary > span { margin-top: 13px; color: rgba(20,20,19,.48); font: 500 10px/1.4 var(--mono); }
.experience-accordion summary strong { font-size: clamp(23px,2.4vw,34px); font-weight: 520; letter-spacing: -.035em; }
.experience-accordion summary strong b { display: block; font: inherit; }
.experience-company-logo { display: flex; align-items: center; height: 62px; max-width: min(100%,280px); }
.experience-company-logo img { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.experience-company-logo--bytedance img { height: 60px; margin-left: -11px; }
.experience-company-logo--ogilvy img { height: 50px; margin-left: -10px; }
.experience-accordion summary strong small { display: block; margin-top: 8px; color: rgba(20,20,19,.52); font: 500 10px/1.5 var(--mono); letter-spacing: .025em; }
.experience-accordion summary i { position: relative; width: 32px; height: 32px; margin-top: 6px; border: 1px solid rgba(20,20,19,.28); border-radius: 50%; }
.experience-accordion summary i::before,.experience-accordion summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%,-50%); transition: transform .35s var(--ease-expo); }
.experience-accordion summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.experience-accordion details[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.experience-accordion details > div { padding: 0 50px 32px 46px; color: rgba(20,20,19,.68); }
.experience-accordion details > div p { max-width: 58ch; margin: 0 0 20px; font-size: 16px; line-height: 1.6; }
.experience-accordion ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.experience-accordion li { padding: 8px 11px; border: 1px solid rgba(20,20,19,.16); border-radius: 999px; color: rgba(20,20,19,.78); font: 500 9px var(--mono); }

@media (max-width: 900px) {
  .philosophy-bridge { height: 280svh; }
  .philosophy-narrative { width: calc(100vw - 48px); }
  .philosophy-chapter h3 { font-size: clamp(56px,10vw,92px); }
  .philosophy-chapter-two h3,.philosophy-chapter-three h3 { font-size: clamp(48px,8.5vw,78px); }
  .philosophy-chapter-four h3 { font-size: clamp(64px,12vw,104px); }
  .experience-summary { grid-template-columns: 1fr; }
  .experience-intro { position: static; }
}
@media (max-width: 620px) {
  .philosophy-sticky { min-height: 560px; }
  .philosophy-narrative { width: calc(100vw - 32px); height: calc(100svh - 112px); min-height: 448px; }
  .philosophy-chapter { padding-inline: 2px; }
  .philosophy-system { width: min(128vw,540px); opacity: calc(var(--bridge-dark) * .5); }
  .philosophy-chapter > p { margin-bottom: 26px; font-size: 9px; }
  .philosophy-chapter > small { margin-top: 30px; }
  .philosophy-chapter h3 { font-size: clamp(44px,13vw,62px); line-height: .92; }
  .philosophy-chapter-one > p,.philosophy-chapter-two > p,.philosophy-chapter-three > p { justify-self: center; margin-left: 0; margin-right: 0; }
  .philosophy-chapter-one h3,.philosophy-chapter-two h3,.philosophy-chapter-three h3 {
    max-width: 100%;
    font-size: clamp(24px,8vw,36px);
    line-height: 1;
    transform: none;
  }
  .philosophy-chapter-three h3 { max-width: 100%; font-size: clamp(23px,7.8vw,34px); }
  .philosophy-chapter-four h3 { max-width: 8ch; font-size: clamp(54px,17vw,76px); line-height: .84; }
  .philosophy-star-three { left: 8%; font-size: 34px; }
  .experience-summary { gap: 64px; padding: 196px 16px 96px; }
  .experience-intro h2 { font-size: clamp(44px,13vw,62px)!important; }
  .experience-accordion summary { min-height: 106px; grid-template-columns: 28px minmax(0,1fr) 32px; gap: 12px; }
  .experience-accordion summary strong { font-size: 22px; }
  .experience-company-logo { height: 54px; max-width: 230px; }
  .experience-company-logo--bytedance img { height: 52px; margin-left: -10px; }
  .experience-company-logo--ogilvy img { height: 42px; margin-left: -8px; }
  .experience-accordion details > div { padding: 0 0 30px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .timeline-item:last-child { padding-bottom: 32px; }
  body[data-page="home"] .timeline-item:last-child > .timeline-marker,
  body[data-page="home"] .timeline-item:last-child > .work-card { translate: none; }
  body[data-page="home"] .philosophy-bridge,
  body[data-page="home"] .experience-summary { margin-top: 0; }
  body[data-page="home"] .experience-summary { padding-top: clamp(112px,9vw,148px); }
  .philosophy-bridge { height: auto; }
  .philosophy-sticky { position: relative; min-height: 0; padding: clamp(96px,12vw,160px) 0; background: var(--night); }
  .philosophy-sticky::before { opacity: 1; }
  .philosophy-narrative { height: auto; display: grid; gap: clamp(96px,14vw,170px); }
  .philosophy-chapter { position: relative; min-height: 60svh; opacity: 1; transform: none; }
  .philosophy-chapter-one { color: #f2f0e9; }
  .philosophy-chapter-one > p { color: rgba(242,240,233,.55); }
  .philosophy-chapter h3 > span { opacity: 1; transform: none; }
  .philosophy-star { opacity: .5; transform: none; }
}

/* Homepage closing pair: a full-width contact field echoing the Hero portrait surface. */
body[data-page="home"] .contact {
  padding-top: clamp(96px,9vw,136px);
  padding-bottom: clamp(72px,8vw,108px);
  overflow: clip;
  isolation: isolate;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 56% 62% at 84% 68%,rgba(123,85,239,.52),rgba(123,85,239,.24) 40%,rgba(123,85,239,.08) 64%,transparent 82%),
    radial-gradient(ellipse 42% 38% at 61% 58%,rgba(245,182,210,.34),rgba(245,182,210,.1) 54%,transparent 78%),
    radial-gradient(ellipse 34% 34% at 10% 92%,rgba(216,188,255,.18),transparent 76%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
body[data-page="home"] .contact-panel {
  max-width: 1200px;
  min-height: 410px;
  padding: clamp(42px,4.4vw,64px);
  display: grid;
  grid-template-columns: minmax(0,1.18fr) minmax(280px,.82fr);
  align-items: stretch;
  gap: clamp(40px,6vw,88px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
body[data-page="home"] .contact-copy { min-width: 0; align-self: center; }
body[data-page="home"] .contact .section-label {
  margin: 0 0 20px;
  color: rgba(24,25,23,.58);
}
body[data-page="home"] .contact h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font: italic 500 clamp(46px,4.8vw,68px)/.94 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
body[data-page="home"] .contact-copy > p:not(.section-label) {
  max-width: 60ch;
  margin: 24px 0 0;
  color: rgba(24,25,23,.68);
  font-size: 16px;
  line-height: 1.6;
}
body[data-page="home"] .contact-copy > p + p { margin-top: 6px; }
body[data-page="home"] .contact-invitation {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px,3vw,42px);
  border-left: 1px solid rgba(24,25,23,.16);
}
body[data-page="home"] .contact-sticker {
  position: absolute;
  right: 16%;
  top: 12%;
  padding: 11px 16px;
  border: 1px solid rgba(24,25,23,.68);
  border-radius: 50%;
  background: rgba(255,244,216,.84);
  color: var(--ink);
  font: italic 600 12px/1 var(--mono);
  text-transform: uppercase;
  rotate: 7deg;
  box-shadow: 0 10px 24px rgba(48,37,66,.12);
  animation: float 4.6s ease-in-out infinite;
}
body[data-page="home"] .contact-spark {
  position: absolute;
  left: 16%;
  top: 25%;
  color: #ffd38a;
  font: 400 30px/1 Georgia,serif;
  text-shadow: 0 0 16px rgba(255,211,138,.4);
  animation: hero-spark-glint 4.8s ease-in-out infinite;
}
body[data-page="home"] .contact-actions {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 10px;
  align-items: start;
}
body[data-page="home"] .contact-action-primary {
  width: 100%;
  min-height: 54px;
  justify-content: center;
  padding-inline: 20px;
  border-color: var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #f2f0e9;
  font-size: 14px;
}
body[data-page="home"] .contact-action-primary:hover,
body[data-page="home"] .contact-action-primary:focus-visible {
  background: transparent;
  color: var(--ink);
}
body[data-page="home"] .contact-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
body[data-page="home"] .contact-action-secondary {
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(24,25,23,.28);
  border-radius: 12px;
  background: rgba(242,240,233,.58);
  color: var(--ink);
  font: 650 12px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: border-color .25s ease, background .25s ease, transform .25s var(--ease-expo);
}
body[data-page="home"] a.contact-action-secondary:hover,
body[data-page="home"] a.contact-action-secondary:focus-visible,
body[data-page="home"] button.contact-action-secondary:hover,
body[data-page="home"] button.contact-action-secondary:focus-visible {
  border-color: rgba(24,25,23,.72);
  background: rgba(255,255,255,.78);
  transform: translateY(-2px);
}
body[data-page="home"] .contact-action-secondary > span:nth-last-child(1)[aria-hidden="true"] { margin-left: auto; }
body[data-page="home"] .contact-action-secondary small {
  margin-left: auto;
  font: 600 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
body[data-page="home"] .contact-action-secondary.is-disabled {
  opacity: .48;
  cursor: default;
}
body[data-page="home"] .contact-copy-status {
  min-height: 14px;
  color: rgba(24,25,23,.64);
  font: 600 9px/1.4 var(--mono);
  letter-spacing: .04em;
}

/* Quiet editorial site index beneath the closing card. */
body[data-page="home"] .site-footer {
  padding: 0 0 clamp(42px,5vw,72px);
  background: var(--night);
  color: #f2f0e9;
}
body[data-page="home"] .site-footer .footer-inner {
  max-width: none;
  margin: 0;
  padding-top: 0;
  padding-inline: max(32px,calc((100vw - 1200px) / 2));
  display: block;
  border-top: 0;
}
body[data-page="home"] .footer-index {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(48px,5vw,72px) 0 clamp(52px,6vw,84px);
  display: grid;
  grid-template-columns: 1.25fr .85fr .75fr 1.15fr;
  gap: clamp(28px,4vw,64px);
  border-top: 1px solid rgba(242,240,233,.2);
  border-bottom: 1px solid rgba(242,240,233,.14);
}
body[data-page="home"] .footer-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
body[data-page="home"] .footer-group h2 {
  margin: 0 0 17px;
  color: rgba(242,240,233,.92);
  font: 600 12px/1.3 var(--sans);
  letter-spacing: -.01em;
  text-transform: uppercase;
  font-size: 12px !important;
}
body[data-page="home"] .footer-group h2 span {
  margin-right: 10px;
  color: rgba(242,240,233,.34);
  font: 500 9px/1 var(--mono);
}
body[data-page="home"] .footer-group a,
body[data-page="home"] .footer-group .footer-pending {
  width: fit-content;
  color: rgba(242,240,233,.58);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .25s ease, transform .25s var(--ease-expo);
}
body[data-page="home"] .footer-group a:hover,
body[data-page="home"] .footer-group a:focus-visible {
  color: #f2f0e9;
  transform: translateX(3px);
}
body[data-page="home"] .footer-group .footer-pending { opacity: .46; }
body[data-page="home"] .footer-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
body[data-page="home"] .footer-identity > div { display: block; }
body[data-page="home"] .footer-identity strong { display: block; font-size: 17px; }
body[data-page="home"] .footer-identity p {
  margin: 9px 0 24px;
  color: rgba(242,240,233,.58);
  font-size: 13px;
  line-height: 1.5;
}
body[data-page="home"] .footer-identity small {
  color: rgba(242,240,233,.4);
  font: 500 10px/1.6 var(--mono);
}
body[data-page="home"] .footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: rgba(242,240,233,.38);
  font: 500 9px/1.4 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
body[data-page="home"] .footer-bottom a {
  color: rgba(242,240,233,.58);
  text-decoration: none;
  transition: color .25s ease, transform .25s var(--ease-expo);
}
body[data-page="home"] .footer-bottom a:hover,
body[data-page="home"] .footer-bottom a:focus-visible { color: #f2f0e9; transform: translateY(-2px); }
body[data-page="home"] .footer-bottom > span:last-child { justify-self: end; margin-right: 190px; }

@media (max-width: 1260px) {
  body[data-page="home"] .footer-bottom > span:last-child { margin-right: 0; }
}

@media (max-width: 900px) {
  body[data-page="home"] .contact-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  body[data-page="home"] .contact-invitation {
    min-height: 170px;
    padding: 28px 0 0;
    border-top: 1px solid rgba(24,25,23,.16);
    border-left: 0;
  }
  body[data-page="home"] .contact-sticker { top: 28px; right: 8%; }
  body[data-page="home"] .contact-spark { top: 40px; left: auto; right: 34%; }
  body[data-page="home"] .footer-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 52px 32px; }
}

@media (max-width: 620px) {
  body[data-page="home"] .contact {
    padding-top: 112px;
    padding-bottom: 64px;
    background-size: 100% 100%;
  }
  body[data-page="home"] .contact-panel { padding: 30px 24px; border-radius: 0; }
  body[data-page="home"] .site-footer .footer-inner { padding-inline: 16px; }
  body[data-page="home"] .contact h2 { font-size: clamp(42px,12.6vw,54px); }
  body[data-page="home"] .contact h2 br { display: none; }
  body[data-page="home"] .contact-copy > p:not(.section-label) { font-size: 15px; }
  body[data-page="home"] .contact-invitation { min-height: 154px; }
  body[data-page="home"] .contact-sticker { top: 24px; right: 4%; transform: scale(.9); }
  body[data-page="home"] .contact-spark { top: 34px; right: 34%; font-size: 24px; }
  body[data-page="home"] .contact-secondary-actions { gap: 8px; padding-right: 0; }
  body[data-page="home"] .footer-index { grid-template-columns: 1fr 1fr; gap: 46px 24px; padding-top: 48px; }
  body[data-page="home"] .footer-identity { grid-column: 1 / -1; padding-top: 8px; }
  body[data-page="home"] .footer-bottom { grid-template-columns: 1fr auto; gap: 14px; }
  body[data-page="home"] .footer-bottom a { margin-right: 64px; }
  body[data-page="home"] .footer-bottom > span:last-child { display: none; }
}

@media (max-width: 380px) {
  body[data-page="home"] .contact-panel { padding: 26px 20px; gap: 22px; }
  body[data-page="home"] .contact-copy > p:not(.section-label) { margin-top: 18px; font-size: 14px; line-height: 1.5; }
  body[data-page="home"] .contact-copy > p + p { margin-top: 4px; }
  body[data-page="home"] .contact-invitation { min-height: 126px; padding-top: 22px; }
  body[data-page="home"] .contact-sticker { top: 18px; }
  body[data-page="home"] .contact-spark { top: 28px; }
  body[data-page="home"] .contact-secondary-actions { grid-template-columns: 1fr; }
  body[data-page="home"] .footer-index { grid-template-columns: 1fr; }
  body[data-page="home"] .footer-identity { grid-column: auto; }
}

/* Exact visual parity: floating navigation reuses primary navigation parameters. */
body[data-page="home"] .primary-nav,
body[data-page="home"] .floating-nav nav {
  width: 294px;
  height: 46px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(245,243,237,.95);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(32,34,31,.08);
  backdrop-filter: blur(16px);
}

body[data-page="home"] .primary-nav a,
body[data-page="home"] .floating-nav nav a {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  color: var(--ink);
}

body[data-page="home"] .primary-nav a:is(.is-active,.is-preview-target),
body[data-page="home"] .primary-nav a:is(:hover,:focus-visible),
body[data-page="home"] .floating-nav nav a:is(.is-active,.is-preview-target),
body[data-page="home"] .floating-nav nav a:is(:hover,:focus-visible) {
  color: var(--cream);
}

/* Fluid responsive navigation: preserve one component while adapting its geometry. */
@media (max-width: 680px) {
  body[data-page="home"] .primary-nav,
  body[data-page="home"] .floating-nav nav {
    /* 294px is the hard ceiling; below the laptop layout the pill only gets shorter. */
    width: min(294px, calc(12.2vw + 211px));
    height: auto;
  }

  body[data-page="home"] .primary-nav a,
  body[data-page="home"] .floating-nav nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: clamp(8px, calc(.554vw + 6.23px), 10px)
      clamp(5px, calc(1.94vw - 1.19px), 12px);
    font-size: clamp(11px, calc(.554vw + 9.23px), 13px);
    line-height: normal;
    white-space: nowrap;
  }

  body[data-page="home"] .primary-nav > i,
  body[data-page="home"] .floating-nav nav > i {
    width: calc((100% - 10px) / 4);
  }

  body[data-page="home"] .floating-ai-cta {
    right: 16px;
    bottom: 16px;
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  body[data-page="home"] .floating-ai-avatar {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .floating-ai-cta {
    right: 12px;
    bottom: 12px;
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  body[data-page="home"] .floating-ai-avatar {
    width: 34px;
    height: 34px;
  }
}

/* Responsive containment must remain last so later component tuning cannot reintroduce overflow. */
@media (max-width: 680px) {
  body[data-page="home"] .hero { overflow: hidden; }
  body[data-page="home"] .work { overflow: hidden; }
  body[data-page="home"] .decor-laptop { right: 0; width: 80px; }
  body[data-page="home"] .about-preview { overflow: hidden; }
  body[data-page="home"] .about-carousel {
    width: 100%;
    margin-right: 0;
    padding-right: 16px;
    contain: layout paint;
    overscroll-behavior-inline: contain;
  }
  body[data-page="home"] .about-card:hover,
  body[data-page="home"] .about-card:focus-visible,
  body[data-page="home"] .about-card:focus-within { transform: none; }
  body[data-page="home"] h2 { font-size: clamp(39px, 12vw, 48px) !important; }
  body[data-page="home"] :is(.primary-nav, .floating-nav nav) a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body[data-page="home"] .floating-ai-cta { min-width: 44px !important; min-height: 44px; }
  .work-index-hero h1 { font-size: clamp(44px, 14vw, 54px); }
}
