/* Miami light, stable reading layouts and bounded, compositor-friendly movement. */
@layer utilities {
  :root { --type-hero: clamp(4rem,8.1vw,7.2rem); --type-title: clamp(2.5rem,4.7vw,4rem); --chapter-accent: var(--blue); }
  body { font-optical-sizing: auto; }
  .page-light { position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 75% 20%,rgba(169,111,194,.12),transparent 55%); }
  .page-light::before, .page-light::after, .hero::before, .hero::after { display: none; }
  .site-header, .site-header.is-scrolled { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -18px; pointer-events: none; background: rgba(17,18,42,.94); opacity: 0; transition: opacity 240ms ease; -webkit-mask-image: linear-gradient(#000 calc(100% - 22px),transparent); mask-image: linear-gradient(#000 calc(100% - 22px),transparent); }
  .site-header.is-scrolled::before { opacity: 1; }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header::before { background: rgba(17,18,42,.68); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
  }
  .brand-lockup { gap: 11px; font-size: 1rem; font-weight: 600; }
  .brand-mark { width: 48px; height: 32px; border-radius: 0; object-fit: contain; }
  .brand-name { display: flex; gap: .28em; }
  .desktop-nav { gap: 32px; }
  .desktop-nav a { font-size: .875rem; }
  .hero { position: relative; isolation: isolate; overflow: clip; }
  .hero-illumination { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .beam-core { position: absolute; top: -120px; left: 73%; width: 3px; height: 410px; background: linear-gradient(transparent,rgba(255,243,220,.85) 62%,rgba(238,126,159,.8) 90%,transparent); box-shadow: 0 0 12px 2px rgba(137,168,215,.38),0 0 40px 8px rgba(169,111,194,.23); transform: rotate(8deg); transform-origin: top; }
  .beam-halo { position: absolute; left: 54%; top: -20%; width: 39%; height: 90%; background: radial-gradient(ellipse at 50% 40%,rgba(137,168,215,.1),rgba(169,111,194,.06) 36%,transparent 68%); }
  .beam-spread { position: absolute; left: 34%; top: 190px; width: 75%; height: 390px; background: conic-gradient(from 156deg at 50% 0%,transparent 0deg,rgba(244,151,120,.08) 6deg,rgba(238,126,159,.14) 15deg,rgba(169,111,194,.12) 26deg,rgba(137,168,215,.13) 40deg,transparent 52deg); -webkit-mask-image: linear-gradient(#000,transparent); mask-image: linear-gradient(#000,transparent); }
  .beam-pool { position: absolute; left: 28%; right: -20%; top: 36%; height: 64%; background: radial-gradient(ellipse at 40% 45%,rgba(137,168,215,.13),transparent 47%),radial-gradient(ellipse at 69% 40%,rgba(238,126,159,.14),transparent 50%),radial-gradient(ellipse at 57% 57%,rgba(244,151,120,.06),transparent 48%); transform: translate3d(var(--beam-x,0px),var(--beam-y,0px),0); }
  .hero-copy { padding-top: calc(var(--header-height) + 90px); padding-bottom: 86px; }
  .hero-main { grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr); align-items: center; gap: clamp(28px,5vw,72px); min-height: 480px; }
  .hero-intro { text-align: left; justify-self: start; width: 100%; }
  .hero h1 { font-size: var(--type-hero); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; }
  .hero h1 span { display: block; width: max-content; max-width: 100%; }
  .hero-supporting { max-width: 30ch; margin-top: 32px; font-size: clamp(1.0625rem,1.6vw,1.375rem); line-height: 1.65; }
  .hero-portrait-frame { position: relative; width: min(100%,350px); aspect-ratio: 4 / 5; justify-self: end; perspective: 1100px; isolation: isolate; }
  .portrait-aura { position: absolute; z-index: -1; inset: -18%; background: radial-gradient(ellipse at 12% 45%,rgba(137,168,215,.19),transparent 55%),radial-gradient(ellipse at 84% 62%,rgba(238,126,159,.2),transparent 60%); transform: translate3d(calc(var(--pointer-x,0px) * -.7),calc(var(--pointer-y,0px) * -.7),0); }
  .portrait-aura, .expertise-stage-light, .beam-pool { -webkit-mask-image: radial-gradient(ellipse,#000 20%,transparent 72%); mask-image: radial-gradient(ellipse,#000 20%,transparent 72%); }
  .beam-spread { -webkit-mask-image: radial-gradient(ellipse at 50% 0%,#000,transparent 72%); mask-image: radial-gradient(ellipse at 50% 0%,#000,transparent 72%); }
  .glow-surface { position: relative; isolation: isolate; border: 1px solid transparent; border-radius: 24px; background: linear-gradient(140deg,#1b1c38,#15162e) padding-box,linear-gradient(135deg,rgba(137,168,215,.72),rgba(169,111,194,.16) 38%,rgba(238,126,159,.52) 75%,rgba(244,151,120,.48)) border-box; box-shadow: inset 0 1px rgba(255,243,220,.05),-12px -8px 48px -22px rgba(137,168,215,.4),16px 18px 56px -24px rgba(238,126,159,.35),0 24px 70px rgba(5,5,21,.24); }
  .glow-surface::before { content: ""; position: absolute; z-index: -1; inset: -16px; border-radius: inherit; background: radial-gradient(ellipse at var(--light-x,15%) var(--light-y,20%),rgba(137,168,215,.24),transparent 45%),radial-gradient(ellipse at 84% 80%,rgba(238,126,159,.2),transparent 48%); filter: blur(22px); opacity: .55; pointer-events: none; }
  .portrait-art { width: 100%; height: 100%; overflow: hidden; transform: translate3d(var(--pointer-x,0px),calc(var(--portrait-scroll,0px) + var(--pointer-y,0px)),0) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) rotateZ(-3deg); }
  .portrait-placeholder { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 80% 0%,rgba(169,111,194,.13),transparent 62%),radial-gradient(ellipse at 15% 100%,rgba(137,168,215,.12),transparent 60%); color: var(--ink-soft); }
  .photo-symbol { width: 48px; height: 48px; stroke: var(--blue); stroke-width: 1.3; opacity: .75; }
  .portrait-placeholder > span { margin-top: 20px; font-size: 1.125rem; font-weight: 500; }
  .portrait-placeholder > small { margin-top: 6px; font-size: .8125rem; color: var(--ink-muted); }
  .portrait-placeholder::before, .portrait-placeholder::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(203,195,210,.12); border-radius: 13px; pointer-events: none; }
  .portrait-placeholder::after { inset: auto 34px 34px; height: 1px; border: 0; background: linear-gradient(90deg,transparent,rgba(255,243,220,.3),transparent); }
  .portrait-photo { width: 100%; height: 100%; object-fit: cover; }
  .portrait-reflection { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at var(--light-x,25%) var(--light-y,10%),rgba(255,243,220,.09),transparent 48%); }
  .section-block { padding-block: clamp(80px,8vw,120px); }
  .section-title { line-height: 1.06; letter-spacing: -.045em; }
  .expertise { padding-top: 48px; }
  .expertise-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: clamp(40px,5vw,72px); margin-top: 64px; align-items: start; }
  .expertise-layout[data-active="1"] { --chapter-accent: var(--pink); }
  .expertise-layout[data-active="2"] { --chapter-accent: var(--orchid); }
  .expertise-layout[data-active="3"] { --chapter-accent: var(--peach); }
  .expertise-copy, .expertise-stage { min-width: 0; }
  .expertise-chapter { padding: 0 0 80px; }
  .expertise-chapter + .expertise-chapter { padding-top: 20px; }
  .expertise-chapter:last-child { padding-bottom: 0; }
  .expertise-heading { font-size: clamp(1.5rem,2.2vw,2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
  .expertise-summary { margin-top: 20px; padding-bottom: 0; font-size: 1.0625rem; line-height: 1.65; }
  .expertise-details { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; font-size: .9375rem; }
  .expertise-details li { border: 0; padding: 0; }
  .expertise-details h4 { color: var(--ink); font-size: .9375rem; line-height: 1.5; font-weight: 600; }
  .expertise-details p { margin-top: 5px; line-height: 1.7; }
  .expertise-stage { position: sticky; top: calc(var(--header-height) + 52px); aspect-ratio: 1; isolation: isolate; perspective: 1100px; }
  .expertise-stage-light { position: absolute; z-index: -1; inset: 8% -8%; background: radial-gradient(ellipse at 25% 40%,rgba(137,168,215,.15),transparent 56%),radial-gradient(ellipse at 78% 60%,rgba(238,126,159,.12),transparent 60%); transform: translate3d(calc(var(--art-x,0px) * -.7),calc(var(--art-y,0px) * -.7),0); }
  .expertise-artwork { position: relative; width: 116%; margin-left: -8%; aspect-ratio: 1; transform: translate3d(var(--art-x,0px),var(--art-y,0px),0) rotateX(var(--art-tilt-x,0deg)) rotateY(var(--art-tilt-y,0deg)); }
  .expertise-visual { position: absolute; inset: 0; opacity: var(--visual-opacity,0); transform: translate3d(0,var(--visual-y,0px),0) rotateZ(var(--visual-roll,0deg)) scale(var(--visual-scale,1)); pointer-events: none; }
  .expertise-visual.is-visible { --visual-opacity: 1; }
  .expertise-float { width: 100%; height: 100%; animation: material-float 7s ease-in-out infinite alternate; animation-play-state: paused; }
  .expertise-float img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
  .expertise-stage.is-animated .expertise-visual.is-visible .expertise-float { animation-play-state: running; }
  .hero.is-animated .beam-halo { animation: light-breathe 8s ease-in-out infinite alternate; }
  .glow-surface.is-animated::before { animation: light-breathe 7s ease-in-out infinite alternate; }
  @keyframes material-float { from { transform: translate3d(0,-7px,0) rotate(-1.3deg); } to { transform: translate3d(0,9px,0) rotate(1.5deg); } }
  @keyframes light-breathe { from { opacity: .5; transform: scale(.98); } to { opacity: .85; transform: scale(1.035); } }
  .journey { position: relative; }
  .journey-layout { margin-top: 56px; grid-template-columns: minmax(0,1.45fr) minmax(260px,.85fr); }
  .journey-development ol { border: 0; }
  .journey-development ol::before, .journey-development li::before { display: none; }
  .journey-development li { position: relative; padding-left: 34px; padding-bottom: 64px; }
  .journey-development li:last-child { padding-bottom: 0; }
  .journey-node { position: absolute; z-index: 2; left: -5px; top: calc(.75rem - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--border); box-shadow: 0 0 0 5px var(--canvas); transition: background 180ms ease,box-shadow 180ms ease; }
  .journey-connector { position: absolute; left: -.5px; top: .75rem; bottom: -.75rem; width: 1px; background: var(--border); overflow: hidden; }
  .journey-connector > span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--pink),var(--peach)); transform: scaleY(var(--step-progress,0)); transform-origin: top; }
  .journey-development li.is-current .journey-node { background: var(--pink); box-shadow: 0 0 0 5px var(--canvas),0 0 18px rgba(238,126,159,.32); }
  .journey-type { font-size: .875rem; }
  .journey-development h4 { margin-top: 10px; font-size: clamp(1.5rem,2.3vw,2rem); line-height: 1.2; }
  .journey-development li > p:last-of-type { margin-top: 16px; font-size: 1.0625rem; }
  .journey-practice { padding: 32px; }
  .journey-practice h3 { font-size: 1.75rem; }
  .personal-grid { align-items: start; gap: clamp(32px,5vw,72px); margin-top: 48px; }
  .personal-copy p { font-size: 1.125rem; line-height: 1.75; }
  .personal-copy p + p { margin-top: 26px; }
  .personal.has-location-pin > .page-shell { padding-top: calc(var(--header-height) + 24px); padding-bottom: 48px; }
  .location-frame { border-radius: 26px; grid-column: 1 / -1; padding: 1px; }
  .location-frame .location-story { border: 0; border-radius: 24px; }
  .personal-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-bottom: 80px; }
  .photo-tile { position: relative; aspect-ratio: 1.15; border: 1px solid rgba(203,195,210,.16); border-radius: 24px; overflow: hidden; background: linear-gradient(140deg,rgba(137,168,215,.08),rgba(169,111,194,.04)); }
  .photo-tile:nth-child(2) { background: linear-gradient(140deg,rgba(169,111,194,.08),rgba(238,126,159,.04)); }
  .photo-tile:nth-child(3) { background: linear-gradient(140deg,rgba(238,126,159,.07),rgba(244,151,120,.04)); }
  .photo-tile > img { width: 100%; height: 100%; object-fit: cover; }
  .photo-placeholder { display: flex; height: 100%; padding-bottom: 20px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink-muted); font-size: .8125rem; }
  .photo-placeholder .photo-symbol { width: 36px; height: 36px; opacity: .6; }
  .photo-tile figcaption { position: absolute; inset: auto 0 0; padding: 32px 22px 18px; background: linear-gradient(transparent,rgba(17,18,42,.75)); font-size: .875rem; }
  .contact { position: relative; padding-top: 96px; padding-bottom: 120px; overflow: clip; }
  .contact-inner { position: relative; isolation: isolate; text-align: center; }
  .contact-glow { position: absolute; z-index: -1; inset: -80px 8% -100px; pointer-events: none; background: radial-gradient(ellipse at 35% 45%,rgba(137,168,215,.09),transparent 55%),radial-gradient(ellipse at 66% 60%,rgba(238,126,159,.1),transparent 57%); }
  .contact .section-title { max-width: 15ch; margin: 20px auto 0; font-size: clamp(2.75rem,5.6vw,4.8rem); }
  .contact-copy { max-width: 42ch; margin: 26px auto 0; font-size: 1.125rem; }
  .contact-links { justify-content: center; margin-top: 34px; }
  .contact-links a { min-height: 52px; }
  .contact-pending { margin-top: 32px; color: var(--ink-muted); font-size: .875rem; }
  .site-footer { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 0; padding-top: 28px; padding-bottom: calc(36px + env(safe-area-inset-bottom,0px)); font-size: .8125rem; }
  .site-footer-nav { gap: 18px; }
  .footer-sources summary { min-height: 44px; }
  .footer-sources-panel { z-index: 40; max-width: calc(100vw - 48px); }
  .mobile-navigation .navigation-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  @media (max-width: 980px) {
    .hero-copy { padding-top: calc(var(--header-height) + 70px); padding-bottom: 64px; }
    .hero-main { min-height: 380px; grid-template-columns: minmax(0,1.2fr) minmax(0,.85fr); gap: 32px; }
    .hero h1 { font-size: clamp(3.4rem,7.8vw,5.3rem); }
    .hero-supporting { font-size: 1.0625rem; }
    .hero-portrait-frame { max-width: 290px; }
    .beam-core { left: 78%; }
    .expertise-layout { grid-template-columns: minmax(0,1.25fr) minmax(0,.9fr); gap: 28px; }
    .expertise-heading { font-size: 1.5rem; }
    .expertise-summary { font-size: 1rem; }
    .journey-layout, .personal-grid { grid-template-columns: 1fr; }
    .journey-practice { margin-left: 34px; max-width: 580px; }
    .personal.has-location-pin { height: auto; padding-block: 80px; }
    .personal.has-location-pin > .page-shell { position: relative; height: auto; display: block; padding-block: 0; }
    .personal-gallery { gap: 18px; }
  }
  @media (max-width: 700px) {
    :root { --page-pad: 24px; --type-title: clamp(2.25rem,9vw,2.5rem); }
    .brand-lockup { gap: 8px; font-size: .875rem; }
    .brand-mark { width: 39px; height: 26px; }
    .hero-copy { padding-top: calc(var(--header-height) + 50px); padding-bottom: 28px; }
    .hero-main { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
    .hero h1 { font-size: clamp(3.25rem,13vw,4.2rem); line-height: 1.03; }
    .hero-supporting { margin-top: 24px; max-width: 32ch; font-size: 1.0625rem; }
    .hero-portrait-frame { width: 250px; max-width: 78%; justify-self: center; margin: 4px 0 14px; }
    .beam-core { left: 72%; top: 320px; height: 210px; opacity: .8; }
    .beam-halo { top: 26%; left: 18%; width: 82%; height: 68%; }
    .beam-spread { top: 490px; left: -15%; width: 130%; height: 260px; }
    .beam-pool { top: 46%; left: -30%; right: -40%; height: 60%; }
    .section-block { padding-block: 64px; }
    .expertise { padding-top: 36px; }
    .section-title { font-size: var(--type-title); }
    .expertise-layout { display: flex; flex-direction: column; gap: 30px; margin-top: 28px; }
    .expertise-copy { width: 100%; }
    .expertise-stage { order: -1; z-index: 5; top: calc(var(--header-height) + 8px); width: 100%; height: 170px; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; background: var(--canvas); }
    .expertise-stage::after { content: ""; position: absolute; inset: auto -4px -24px; height: 26px; background: linear-gradient(var(--canvas),transparent); pointer-events: none; }
    .expertise-stage-light { inset: -10% 0 -15%; opacity: .8; }
    .expertise-artwork { width: 230px; height: 230px; aspect-ratio: 1; margin: 0; flex: 0 0 230px; }
    .expertise-chapter { padding-bottom: 72px; }
    .expertise-chapter + .expertise-chapter { padding-top: 0; }
    .expertise-heading { font-size: 1.5rem; line-height: 1.24; }
    .expertise-summary { margin-top: 16px; font-size: 1rem; }
    .expertise-details { gap: 20px; padding-top: 24px; font-size: .9375rem; }
    .journey-layout { margin-top: 36px; gap: 32px; }
    .journey-development li { padding-left: 26px; padding-bottom: 48px; }
    .journey-development h4 { font-size: 1.5rem; }
    .journey-development li > p:last-of-type { font-size: 1rem; }
    .journey-practice { margin-left: 0; padding: 28px; }
    .journey-practice h3 { font-size: 1.5rem; }
    .personal-grid { margin-top: 30px; gap: 32px; }
    .personal-copy p { font-size: 1.0625rem; }
    .personal-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-bottom: 30px; }
    .photo-tile { aspect-ratio: 4 / 5; border-radius: 20px; }
    .photo-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
    .photo-placeholder { font-size: .75rem; gap: 10px; }
    .photo-tile figcaption { padding: 28px 16px 14px; font-size: .8125rem; }
    .contact { padding-top: 80px; padding-bottom: 80px; }
    .contact .section-title { font-size: clamp(2.5rem,10vw,3rem); }
    .contact-copy { font-size: 1rem; }
    .contact-pending { font-size: .8125rem; }
    .site-footer { gap: 4px 16px; padding-top: 18px; padding-bottom: calc(24px + env(safe-area-inset-bottom,0px)); font-size: .75rem; }
    .footer-sources-panel { width: min(320px,calc(100vw - 48px)); }
  }
  .motion-lite .expertise-float, .motion-lite .hero .beam-halo, .motion-lite .glow-surface::before { animation: none; }
  @media (prefers-reduced-motion: reduce) {
    .portrait-art, .portrait-aura, .beam-pool, .expertise-artwork, .expertise-stage-light, .expertise-visual { transform: none; }
    .expertise-float, .hero.is-animated .beam-halo, .glow-surface.is-animated::before { animation: none; }
    .journey-connector > span { transform: none; }
    .expertise-stage { position: relative; top: 0; }
    .personal.has-location-pin { height: auto; padding-block: 64px; }
  }
  @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .site-header.is-scrolled::before { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .page-light, .hero-illumination, .portrait-aura, .portrait-reflection, .expertise-stage-light, .contact-glow, .glow-surface::before { display: none; }
    .glow-surface { background: var(--surface); border-color: var(--ink-muted); box-shadow: none; }
  }
}
