/* Standalone styles for /index.html. No dependency on the portfolio stylesheet. */
@font-face {
  font-family: Aileron;
  src: url('/assets/optimized/Aileron-Regular-latin-09aadf30f33d.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Aileron;
  src: url('/assets/optimized/Aileron-SemiBold-latin-5ec2c43dae53.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Aileron;
  src: url('/assets/optimized/Aileron-Bold-latin-571271ce97b3.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Aileron;
  src: url('/assets/optimized/Aileron-Black-latin-48f233f6e114.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root { --page-background: #9784c4; color-scheme: dark; background: var(--page-background); color: #fff; font-family: Aileron, Arial, sans-serif; font-weight: 600; font-synthesis: none; }
* { box-sizing: border-box; }
::selection { background-color: rgb(255 255 76 / 75%); color: #000; text-shadow: none; }
body { margin: 0; background: var(--page-background); padding: 32px 0 30px; font-size: 18px; line-height: 1.4; }
p, h1 { margin: 0; }
a { color: #000; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 32px; min-height: 200px; padding: 0 32px; }
.header-copy { display: flex; flex-direction: column; gap: 8px; }
.positioning-copy { white-space: nowrap; }
.header-copy a { font-weight: 700; align-self: flex-start; }
.header-copy a:hover, .faq-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-copy-right, .footer-copy-right { text-align: right; }
.header-copy-right a, .footer-copy-right a { align-self: flex-end; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 32px; margin: 96px auto 0; padding: 0 32px; }
@media (min-width: 701px) {
  .site-footer .header-copy { align-self: end; }
}
.brand { width: 230.594px; height: var(--logo-height); }
.brand-logo { display: block; overflow: visible; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 32px; margin: 16px auto 0; padding: 0 100px; }
#hero-title { text-wrap: balance; font-size: 86.4px; line-height: .93; letter-spacing: -2px; font-weight: 900; text-align: center; }
.hero-description { width: 100%; text-align: center; }
.hero > .contact-button { margin-block: 8px; }
@media (min-width: 1024px) {
  .header-copy p { font-weight: 400; }
  .hero-description { max-width: calc(100% - 200px); }
}
.contact-button { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 65px; padding: 20px 24px; border-radius: 64px; background: rgba(255,255,255,.3); color: #000; font-weight: 700; line-height: 18px; text-align: center; -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -1px 1px rgba(255,255,255,.3), 0 6px 20px rgba(53,29,101,.16); }
.contact-button:hover { background: rgba(255,255,255,.42); }
.contact-button span { position: relative; z-index: 1; }
.contact-button canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; opacity: 0; }
.contact-button[data-glass="webgpu"] { -webkit-backdrop-filter: none; backdrop-filter: none; }
.contact-button[data-glass="webgpu"] canvas { opacity: 1; }
.contact-button:focus-visible { outline-color: #fff; }
.showreel-placeholder { --ribbon-height: clamp(500px, calc(500px + (100vw - 700px) * 0.4054054054), 760px); width: 100%; margin: 57px 0 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: auto; }
.showreel-placeholder::-webkit-scrollbar { display: none; }
.showreel-placeholder:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ribbon-track { display: flex; gap: 8px; width: max-content; padding-inline: 16px; }
.ribbon-card { position: relative; --ribbon-radius: 56px; flex: 0 0 auto; height: var(--ribbon-height); border-radius: var(--ribbon-radius); overflow: hidden; }
.ribbon-card::before { content: ""; position: absolute; inset: 0; background: var(--ribbon-poster) center / cover no-repeat; pointer-events: none; }
.ribbon-card video[data-frame-ready="true"] { opacity: 1; }
.ribbon-card video { position: relative; opacity: 0; display: block; width: auto; max-width: none; height: 100%; }
.ribbon-card--cropped { width: calc(var(--ribbon-height) - 64px); }
.ribbon-card--cropped video { width: 100%; object-fit: cover; object-position: center; }
/* Recalculated from the native video width by ribbon.mjs as the ribbon resizes. */
.ribbon-card[data-item="alfa-site"]::before, .ribbon-card[data-item="alfa-site"] video { transform: scale(var(--ribbon-video-scale, 1.06)); transform-origin: center; }
.ribbon-card[data-corners="smooth"] { border-radius: 0; -webkit-mask-image: var(--ribbon-mask); mask-image: var(--ribbon-mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; mask-mode: alpha; }
@media (min-width: 1600px) {
  .hero { max-width: 1600px; }
}
@media (max-width: 1100px) {
  .header { padding: 0 24px; gap: 24px; }
  .site-footer { padding: 0 24px; gap: 24px; }
  .header-copy { font-size: 16px; }
  .hero { padding: 0 40px; }
  #hero-title { font-size: calc(clamp(42px, 6.25vw, 68px) * 1.2); letter-spacing: -.025em; }
  .desktop-break { display: none; }
}
@media (max-width: 700px) {
  body { padding-top: 24px; padding-bottom: 16px; font-size: 16px; }
  .header { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 0; padding: 0 20px; min-height: auto; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; padding: 0 20px; gap: 32px 16px; }
  .site-footer .header-copy { grid-row: 2; }
  .brand { grid-column: 1 / -1; grid-row: 2; justify-self: center; /* Scale the wrapper, preserving the exported SVG dimensions. */ width: 202.92272px; height: calc(var(--logo-height) * .88); }
  .brand-logo { transform: scale(.88); transform-origin: top left; }
  .header-copy { grid-row: 1; font-size: clamp(12px, 3.5vw, 16px); }
  .header-copy a { display: inline-flex; align-items: flex-start; min-height: 44px; }
  .hero { margin-top: 24px; padding: 0 20px; gap: 24px; }
  #hero-title { font-size: calc(clamp(36px, 8.8vw, 58px) * 1.2); line-height: .98; }
  .hero-description { max-width: 540px; }
  .contact-button { min-height: 56px; font-size: 16px; }
  .showreel-placeholder { margin-top: 44px; }
  .ribbon-track { gap: 6px; padding-inline: 8px; }
  .ribbon-card { --ribbon-radius: 40px; }
  /* No-JS fallback at the mobile 500px height. */
  .ribbon-card[data-item="alfa-site"]::before, .ribbon-card[data-item="alfa-site"] video { transform: scale(var(--ribbon-video-scale, 1.096)); }
}

/* Flow / Duotone / Smooth. Scale 50%, distortion 55%.
   Static fallback for browsers without WebGL; animation is rendered by flow.mjs. */
/* Safari 26 can sample the body rather than theme-color. Keep its opaque
   base aligned with the root; the isolated gradient still paints above it. */
body { isolation: isolate; }
.flow-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--page-background);
  background-image:
    radial-gradient(at 20% 26%, #9784c4 0px, transparent 62%),
    radial-gradient(at 80% 22%, #ecb6dd 0px, transparent 62%),
    radial-gradient(at 72% 80%, #d6ccf0 0px, transparent 62%),
    radial-gradient(at 24% 76%, #745bf0 0px, transparent 62%);
}
.flow-background canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.flow-background[data-renderer="webgl"] canvas { opacity: 1; }

/* Blend iOS browser-chrome edges into the animated (or fallback) background.
   Keep the fades inside the background layer, below all page content. */
@supports (-webkit-touch-callout: none) {
 .flow-background::before, .flow-background::after {
  content: ""; position: absolute; left: 0; right: 0; height: 64px;
  z-index: 1; pointer-events: none;
 }
 .flow-background::before { top: 0; background: linear-gradient(to bottom, var(--page-background), transparent); }
 .flow-background::after { bottom: 0; background: linear-gradient(to top, var(--page-background), transparent); }
}

/* Glass replaces the lettering; the SVG remains the accessible static fallback. */
.brand { position: relative; }
.logo-glass { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); pointer-events: none; opacity: 0; }
.brand[data-glass="webgl"] .logo-glass { opacity: 1; }
.brand[data-glass="webgl"] [data-logo-letters] { opacity: 0; }

/* Foundation / deliverables. Keep mobile descriptions in the title column. */
.foundation { width: min(1200px, calc(100% - 64px)); margin: 72px auto 0; display: grid; gap: 64px; scroll-margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
 html { scroll-behavior: smooth; }
}
.foundation-intro { width: min(660px, 100%); margin: 0 auto; display: grid; gap: 42px; text-align: center; }
.foundation-desktop-break { display: none; }
@media (min-width: 1024px) {
 .foundation-intro { width: 100%; }
 .foundation-description { max-width: 900px; margin-inline: auto; }
 .foundation-desktop-break { display: initial; }
}
.foundation-list { min-width: 0; }
.foundation h2 { margin: 0; font-size: 64px; line-height: .93; letter-spacing: -2px; font-weight: 900; }
.deliverables { list-style: none; padding: 0; margin: 0; }
.foundation-divider { height: 1px; overflow: hidden; }
.foundation-divider img { display: block; max-width: none; }
@media (max-width: 1023px) {
 .deliverable[data-active="true"] > .foundation-divider { visibility: hidden; }
}
.deliverable-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 120px; align-items: center; padding: 40px 0; }
.deliverable-label { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: center; }
.deliverable-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; min-width: 0; }
.deliverable-heading, .faq-question { font-size: 24px; font-weight: 600; line-height: 1.4; }
.deliverable-heading > span:first-child { min-width: 0; }
.deliverable-description { min-width: 0; }
.deliverable-description .pitchu-link { color:#000; font-weight:600; text-decoration:none; text-underline-offset:4px; }
.deliverable-description .pitchu-link:hover { text-decoration:underline; }
.deliverable-description, .faq-answer { font-weight: 400; }
.glass-badge, .benefit-chip { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; -webkit-backdrop-filter: blur(8px) saturate(1.25); backdrop-filter: blur(8px) saturate(1.25); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 -1px 1px rgba(255,255,255,.2), 0 3px 10px rgba(53,29,101,.08); }
.glass-badge > span { position: relative; z-index: 1; }
.glass-badge canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; opacity: 0; }
.glass-badge[data-glass="webgpu"] { -webkit-backdrop-filter: none; backdrop-filter: none; }
.glass-badge[data-glass="webgpu"] canvas { opacity: 1; }
.deliverable-number, .faq-toggle { width: 30px; height: 30px; font-size: 18px; line-height: 1.4; }
.soon-badge { padding: 2px 8px; font-size: 18px; line-height: 1.4; white-space: nowrap; }
@media (min-width: 1024px) {
 .soon-badge { font-weight: 600; }
 .foundation { margin-top: 88px; gap: 32px; }
 /* Match the title's left inset: 30px number gutter + 16px gap. */
 .deliverable-row { padding-right: 46px; }
}
@media (max-width: 1100px) {
 .foundation { width: calc(100% - 48px); }
 .foundation h2 { font-size: clamp(42px, 5.6vw, 64px); letter-spacing: -.03em; }
 .deliverable-row { column-gap: 48px; }
}
@media (max-width: 700px) {
 .foundation { width: calc(100% - 40px); margin-top: 64px; gap: 40px; }
 .foundation-intro { gap: 24px; }
 .foundation h2 { font-size: clamp(36px, 8.8vw, 48px); line-height: .98; }
 .deliverable-row { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 28px 0; align-items: start; }
 .deliverable-label { display: contents; }
 .deliverable-number, .faq-toggle { width: 24px; height: 24px; font-size: 14px; }
 .deliverable-heading { grid-column: 2; min-height: 24px; gap: 8px; }
 .deliverable-heading, .faq-question { font-size: 20px; font-weight: 700; }
 .deliverable-description { grid-column: 2; }
 .soon-badge { font-size: 14px; }
}

/* Service previews: cursor-follow on desktop, centered sticky bubble on touch. */
.deliverable:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 6px; }
.foundation[data-preview-ready] .deliverable-number { opacity: 0; transform: scale(.5); transition: opacity .2s ease-out, transform .2s ease-out; }
.foundation[data-preview-ready] .deliverable[data-active="true"] .deliverable-number { opacity: 1; transform: scale(1); }
/* Animate the silhouette itself, keeping a circular footprint and an opaque mask. */
.service-preview { display: none; position: fixed; left: 0; top: 0; width: min(410px, calc(100vw - 32px), calc(100svh - 32px)); aspect-ratio: 1; z-index: 5; pointer-events: none; }
.foundation[data-preview-ready] .service-preview { display: block; }
.service-preview-card { width: 100%; height: 100%; border: 0; border-radius: 50%; overflow: hidden; background: transparent; box-shadow: 0 8px 32px rgba(53,29,101,.1); opacity: 0; transform: scale(.5); transition: opacity .2s ease-out, transform .2s ease-out; animation: service-bubble-active 5s ease-in-out infinite; animation-play-state: paused; }
.service-preview[data-visible="true"] .service-preview-card { opacity: 1; transform: scale(1); animation-play-state: running; }
.service-preview-color { width: 100%; height: 100%; background: var(--preview-color, #b6e9cd); transition: background-color .35s ease; }
.service-preview-demo, .service-preview-landing, .service-preview-product, .service-preview-branding { display: none; width: 100%; height: 100%; object-fit: cover; }
.service-preview[data-active="0"] .service-preview-color, .service-preview[data-active="1"] .service-preview-color, .service-preview[data-active="2"] .service-preview-color, .service-preview[data-active="3"] .service-preview-color { display: none; }
.service-preview[data-active="0"] .service-preview-demo { display: block; }
.service-preview[data-active="1"] .service-preview-landing { display: block; }
.service-preview[data-active="2"] .service-preview-product { display: block; }
.service-preview[data-active="3"] .service-preview-branding { display: block; }
/* Decoded artwork layers crossfade without ever exposing an unloaded image. */
.service-preview[data-artwork-ready] .service-preview-card { position: relative; }
.service-preview[data-artwork-ready] .service-preview-card img { display: none; position: absolute; inset: 0; opacity: 0; transition: opacity 160ms ease-out; }
.service-preview[data-artwork-ready] .service-preview-card img[data-loaded="true"] { display: block; }
.service-preview[data-artwork-ready] .service-preview-card img[data-current="true"] { opacity: 1; z-index: 1; }
.service-preview[data-scrolling="true"] .service-preview-card { animation-play-state: paused; }
@keyframes service-bubble-active {
 0%, 100% { border-radius: 50% 50% 45% 55% / 50% 44% 56% 50%; }
 33% { border-radius: 40% 60% 47% 53% / 59% 41% 58% 42%; }
 66% { border-radius: 59% 41% 60% 40% / 41% 59% 42% 58%; }
}
@keyframes service-bubble-breathe {
 0%, 100% { border-radius: 50% 50% 47% 53% / 50% 46% 54% 50%; }
 33% { border-radius: 43% 57% 48% 52% / 56% 44% 55% 45%; }
 66% { border-radius: 56% 44% 57% 43% / 44% 56% 45% 55%; }
}
@media (max-width: 1023px), (hover: none) {
 .foundation { --service-number-size: 30px; --service-number-gap: 16px; --service-row-padding: 40px; --service-bubble-size: min(70vw, 320px, 42svh); --service-bubble-top: calc(24px + env(safe-area-inset-top, 0px)); }
 /* Normal block flow avoids stale grid track heights in WebKit after resizing. */
 .deliverable-row { display: block; position: relative; padding: var(--service-row-padding) calc(var(--service-number-size) + var(--service-number-gap)); }
 .deliverable-label { display: block; }
 .deliverable-number { position: absolute; left: 0; top: var(--service-row-padding); }
 .deliverable-description { margin-top: 12px; }
 .foundation[data-preview-ready] .deliverable { opacity: var(--service-row-opacity, 1); }
 /* Keep the list item's measured bounds stable; shrink only its visual content. */
 .foundation[data-preview-ready] .deliverable-row { scale: var(--service-row-scale, 1); transform-origin: center top; }
 /* The in-flow sticky bubble starts below the intro; rows fade before reaching it. */
 /* Extend only the return-scroll sticky boundary; compensate in layout. */
 .foundation-list[data-scroll-direction="up"] { margin-bottom: -48px; }
 .foundation-list[data-scroll-direction="up"]::after { content: ""; display: block; height: 48px; }
 .service-preview { position: sticky; top: var(--service-bubble-top); left: auto; width: var(--service-bubble-size); margin: 0 auto 24px; transform: none !important; }
}
@media (max-width: 700px) {
 .foundation { --service-number-size: 24px; --service-number-gap: 12px; --service-row-padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
 .foundation[data-preview-ready] .deliverable-number, .service-preview-card, .service-preview-color { transition: none; }
 .service-preview-card { animation: none; border-radius: 50%; }
 .service-preview[data-artwork-ready] .service-preview-card img { transition: none; }
 .foundation[data-preview-ready] .deliverable-row { scale: 1; }
}


/* About: native disclosure keeps the career history usable without JavaScript. */
.about { width: min(1200px, calc(100% - 64px)); margin: 96px auto 48px; display: grid; gap: 64px; scroll-margin-top: 24px; }
.about-intro { display: grid; gap: 42px; text-align: center; }
.about-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.benefit-chip { padding: 6px 14px; border: 1px solid rgba(255,255,255,.24); box-shadow: none; font: inherit; white-space: nowrap; }
.benefit-chip > canvas.button-metal-rim { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border-radius: inherit; pointer-events: none; opacity: 0; }
.benefit-chip[data-metal="ready"] > canvas.button-metal-rim { opacity: 1; }
.about-intro h2 { max-width: 800px; margin: 0 auto; font-size: 64px; line-height: .93; letter-spacing: -2px; font-weight: 900; text-wrap: balance; }
.about-card { --about-card-radius: 48px; width: min(960px, 100%); margin: 0 auto; padding: 48px 32px 20px; border: 1px solid rgba(255,255,255,.24); border-radius: var(--about-card-radius); display: flex; flex-direction: column; align-items: center; gap: 32px; background: rgba(255,255,255,.025); }
.about-portrait-shell { width: 180px; height: 180px; overflow: hidden; padding: 0; background: rgba(255,255,255,.16); box-shadow: 0 8px 24px rgba(53,29,101,.12); animation: service-bubble-breathe 6s ease-in-out infinite; animation-play-state: paused; }
.about-portrait-shell[data-in-view="true"] { animation-play-state: running; }
.about-portrait-shell::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 2px 2px 3px rgba(255,255,255,.7), inset -2px -3px 5px rgba(53,29,101,.18), inset 0 0 0 1px rgba(255,255,255,.25); }
.about-portrait { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transform: translateY(6px); }
.about-identity { display: grid; justify-items: center; gap: 5px; width: 100%; text-align: center; }
.about-role { max-width: 440px; font-size: 18px; line-height: 1.4; font-weight: 400; opacity: .85; text-align: center; }
.about-card h3 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; text-align: center; }
.about-details { width: 100%; min-width: 0; margin-top: -12px; font-weight: 400; }
.about-bio-paragraph { display: block; margin-bottom: 12px; }
.about-bio-paragraph:last-child { display: inline; margin-bottom: 0; }
.about-experience-intro { margin: 12px 0 0; }
.about-details summary { display: block; list-style: none; cursor: pointer; }
.about-details summary, .about-expanded { padding-inline: 16px; }
.about-details summary::-webkit-details-marker { display: none; }
.about-details summary:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.about-toggle { color: #000; font-weight: inherit; white-space: nowrap; opacity: .5; }
.about-details:not([data-link-controls]) summary:hover .about-toggle { text-decoration: underline; text-underline-offset: 4px; }
.about-show-less, .about-details[open] .about-show-more { display: none; }
.about-details[open] .about-show-less { display: inline; }
.about-details[data-link-controls] summary { cursor: auto; }
.about-expand, .about-collapse { border: 0; padding: 0; background: none; font: inherit; cursor: pointer; }
.about-expand:hover, .about-collapse:hover { text-decoration: underline; text-underline-offset: 4px; }
.about-expand:focus-visible, .about-collapse:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.about-experience { display: grid; gap: 15px; margin: 0; padding: 20px 0 0; list-style: none; }
.about-experience li { display: grid; grid-template-columns: 1em minmax(0, 1fr); column-gap: .25em; align-items: start; }
.about-experience li::before { content: "✦"; grid-column: 1; }
.about-experience li > span { grid-column: 2; min-width: 0; }
.about-contact { width: 100%; max-width: 100%; justify-self: stretch; }
.about-actions { display: grid; width: 100%; max-width: 100%; gap: 28px; }
.about-socials { display: flex; align-items: center; justify-content: center; gap: 48px; width: 100%; min-width: 0; }
.about-socials a { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px; }
.about-socials img { display: block; width: 56px; height: 56px; }
.contact-icon-glass { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.about-socials a[data-glass="webgl"] img { opacity: 0; }
.about-socials a[data-glass="webgl"] .contact-icon-glass { opacity: 1; }
.about-socials a:hover { opacity: .75; }
@media (min-width: 1024px) {
 .about { gap: 32px; }
 .about-card { width: min(860px, 100%); padding-inline: 64px; padding-bottom: 28px; }
}
@media (max-width: 1100px) {
 .about { width: calc(100% - 48px); }
 .about-intro h2 { font-size: clamp(42px, 5.6vw, 64px); letter-spacing: -.03em; }
}
@media (max-width: 700px) {
 .about { width: calc(100% - 16px); margin-top: 64px; margin-bottom: 24px; gap: 40px; }
 .about-intro { gap: 24px; margin-inline: 12px; }
 .about-intro h2 { font-size: clamp(36px, 8.8vw, 48px); line-height: .98; }
 .about-card { --about-card-radius: 32px; padding: 40px 20px 28px; gap: 24px; }
 .about-portrait-shell { width: 129.6px; height: 129.6px; }
 .about-card h3 { font-size: 28px; }
 .about-role { font-size: 16px; }
 .about-details { margin-top: -4px; font-weight: 600; }
 .about-details summary, .about-expanded { padding-inline: 8px; }
 .about-actions { margin-top: 8px; }
}

.about-card[data-corners="smooth"] { border-color: transparent; border-radius: 0; background: var(--about-card-surface) center / 100% 100% no-repeat border-box; }

/* FAQ: native details provides mouse, touch, keyboard and no-JS disclosure.
   The circular controls reuse the page's shared glass material/renderer. */
.testimonials { width: min(1200px, calc(100% - 64px)); margin: 96px auto 48px; display: grid; gap: 48px; }
.testimonials h2 { margin: 0; font-size: 64px; line-height: .93; letter-spacing: -2px; font-weight: 900; text-align: center; }
.testimonials-viewport { position: relative; min-width: 0; }
.testimonials-track { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card:first-child { margin-inline-start: auto; }
.testimonial-card:last-child { margin-inline-end: auto; }
.testimonials-track[data-overflow="true"] { cursor: grab; }
.testimonials-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.testimonials-track:focus-visible { outline: 2px solid white; outline-offset: 6px; border-radius: 8px; }
.testimonial-card { --testimonial-radius: 48px; flex: 0 0 285px; max-width: 100%; scroll-snap-align: start; position: relative; min-width: 0; min-height: 320px; padding: 24px; display: flex; flex-direction: column; gap: 24px; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: var(--testimonial-radius); }
.testimonial-card[data-placeholder="true"] { border-style: dashed; }
.testimonial-card[data-corners="smooth"] { border-color: transparent; }
.testimonial-card[data-corners="smooth"]::before { content: ""; position: absolute; inset: -1px; pointer-events: none; background: var(--testimonial-outline) center / 100% 100% no-repeat; }
.testimonial-quote { margin: 0; font-size: 15px; line-height: 20px; font-weight: 400; overflow-wrap: anywhere; }
.testimonial-paragraph-gap { display: block; height: .5lh; }
.testimonial-more[hidden], .testimonial-remainder[hidden] { display: none; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar { display: block; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card:not([data-placeholder="true"]) .testimonial-avatar { outline: 1px solid rgba(255,255,255,.3); outline-offset: -1px; }
.testimonial-identity { min-width: 0; overflow-wrap: anywhere; }
.testimonial-name { font-size: 15px; line-height: 20px; font-weight: 600; }
.testimonial-role { margin-top: 2px; font-size: 12px; line-height: 15px; font-weight: 400; opacity: .75; }
@media (min-width: 1024px) {
 .testimonial-quote, .testimonial-name { font-size: 16px; line-height: 23px; }
}
@media (max-width: 1100px) {
 .testimonials { width: calc(100% - 48px); }
 .testimonials h2 { font-size: clamp(42px, 5.6vw, 64px); letter-spacing: -.03em; }
}
.testimonials-viewport[data-overflow-left="true"], .testimonials-viewport[data-overflow-right="true"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--testimonials-edge-left, 0px), #000 calc(100% - var(--testimonials-edge-right, 0px)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--testimonials-edge-left, 0px), #000 calc(100% - var(--testimonials-edge-right, 0px)), transparent); }
.testimonials-viewport::before, .testimonials-viewport::after { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 1; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s ease-out; }
.testimonials-viewport::before { left: 0; width: var(--testimonials-edge-left, 0px); -webkit-mask-image: linear-gradient(to right, #000, transparent); mask-image: linear-gradient(to right, #000, transparent); }
.testimonials-viewport::after { right: 0; width: var(--testimonials-edge-right, 0px); -webkit-mask-image: linear-gradient(to right, transparent, #000); mask-image: linear-gradient(to right, transparent, #000); }
.testimonials-viewport[data-overflow-left="true"]::before, .testimonials-viewport[data-overflow-right="true"]::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
 .testimonials-track { scroll-snap-type: none; }
}
@media (max-width: 1023px) {
 .testimonials-track { gap: 16px; }
 .testimonial-card { gap: 28px; }
}
@media (max-width: 700px) {
 .testimonials { width: calc(100% - 40px); margin-top: 64px; margin-bottom: 24px; gap: 24px; }
 .testimonials h2 { font-size: clamp(36px, 8.8vw, 48px); line-height: .98; }
 .testimonial-card { --testimonial-radius: 32px; min-height: 300px; padding: 20px; gap: 20px; }
}
.faq { width: min(1200px, calc(100% - 64px)); margin: 96px auto 48px; display: grid; gap: 48px; scroll-margin-top: 24px; }
.faq h2 { max-width: 800px; margin: 0 auto; font-size: 64px; line-height: .93; letter-spacing: -2px; font-weight: 900; text-align: center; text-wrap: balance; }
.faq-list { min-width: 0; }
.faq-item, .faq-contact { padding-inline: 46px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.24); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 92px; padding: 24px 0; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.faq-question { min-width: 0; }
.faq-toggle { scale: 1; transition: scale .18s ease; }
.faq-item summary:hover .faq-toggle { background: rgba(255,255,255,.24); }
@media (hover: hover) and (pointer: fine) {
 /* Keep the full summary as a stable hit target while the glass shrinks. */
 .faq-item summary:hover .faq-toggle { scale: .9; }
}
.faq-symbol { width: 1em; height: 1em; }
.faq-symbol::before, .faq-symbol::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.faq-symbol::before { width: 1em; height: 2px; left: 0; top: calc(50% - 1px); }
.faq-symbol::after { width: 2px; height: 1em; left: calc(50% - 1px); top: 0; transform: scaleY(1); transition: transform .18s ease; }
.faq-item[open]:not([data-expanded="false"]) .faq-symbol::after { transform: scaleY(0); }
.faq-answer { max-width: 956px; padding: 0 62px 28px 0; }
.faq-contact a { display: flex; align-items: center; min-height: 92px; padding: 24px 0; color: #000; text-decoration: none; }
.faq-contact a:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 4px; }
.closing-logo { display: flex; justify-content: center; margin: 0; }
@media (max-width: 1100px) {
 .faq { width: calc(100% - 48px); }
 .faq h2 { font-size: clamp(42px, 5.6vw, 64px); letter-spacing: -.03em; }
}
@media (max-width: 700px) {
 .faq { width: calc(100% - 40px); margin-top: 64px; margin-bottom: 24px; gap: 24px; }
 .faq h2 { font-size: clamp(36px, 8.8vw, 48px); line-height: .98; }
 .faq-item, .faq-contact { padding-inline: 0; }
 .faq-item summary { gap: 16px; min-height: 80px; padding: 20px 0; }
 .faq-contact a { min-height: 80px; padding: 20px 0; }
 .faq-question { font-size: 18px; line-height: 24px; }
 .faq-answer { padding: 0 0 24px; }
 .closing-logo { grid-column: 1 / -1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
 .about-portrait-shell { animation: none; border-radius: 50%; }
 .faq-symbol::after, .faq-toggle { transition: none; }
}

/* Local liquid-glass card experiment. The portrait aperture contains no glass. */
.about-card, .about-card[data-corners="smooth"] { position: relative; isolation: isolate; background: transparent; border-color: transparent; border-radius: var(--about-card-radius); }
.about-card > :not(.about-glass-surface) { position: relative; z-index: 1; }
.about-card::after { content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.about-card[data-corners="smooth"]::after { border-radius: 0; box-shadow: none; background: var(--about-card-outline) center / 100% 100% no-repeat; }
.about-glass-surface { position: absolute; inset: -1px; z-index: 0; pointer-events: none; border-radius: var(--about-card-radius); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: inset 0 1px 1.5px rgba(255,255,255,.6), inset 0 -1px 3px rgba(53,29,101,.16); --portrait-hole-y: 139px; --portrait-hole-r: 96px; -webkit-mask-image: var(--about-card-mask, radial-gradient(circle at 50% var(--portrait-hole-y), transparent var(--portrait-hole-r), #fff calc(var(--portrait-hole-r) + 1px))); mask-image: var(--about-card-mask, radial-gradient(circle at 50% var(--portrait-hole-y), transparent var(--portrait-hole-r), #fff calc(var(--portrait-hole-r) + 1px))); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.about-glass-surface::after { content: ""; position: absolute; inset: 0; background: var(--about-card-rim) center / 100% 100% no-repeat; }
.about-card-glass { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
/* WebGL already cuts the silhouette and portrait aperture. A second SVG mask
   would reload asynchronously on every height change and can flash at the rim. */
.about-card[data-glass="webgl"] .about-glass-surface { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; -webkit-mask-image: none; mask-image: none; }
.about-card[data-glass="webgl"] .about-glass-surface::after { display: none; }
.about-card[data-glass="webgl"] .about-card-glass { opacity: 1; }
.about-portrait-shell { position: relative; flex: none; overflow: visible; clip-path: circle(calc(50% + 6px) at 50% 50%); border-radius: 50%; background: transparent; box-shadow: none; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.about-portrait-shell::after { display: none; }
@media (max-width: 700px) {
 .about-glass-surface { --portrait-hole-y: 105.8px; --portrait-hole-r: 70.8px; }
}

/* Metal-fx adds only a one-pixel animated perimeter above the existing glass. */
.contact-button canvas.button-metal-rim, .glass-badge canvas.button-metal-rim { z-index: 2; opacity: 0; border-radius: inherit; pointer-events: none; }
.contact-button[data-metal="ready"] canvas.button-metal-rim, .glass-badge[data-metal="ready"] canvas.button-metal-rim { opacity: 1; }
.contact-button[data-metal="ready"] { box-shadow: 0 6px 20px rgba(53,29,101,.16); }
.logo-metal-rim { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); z-index: 2; pointer-events: none; opacity: 0; }
.brand[data-metal="ready"] .logo-metal-rim { opacity: 1; }

/* Decorative metal never intercepts the card's controls or fills the photo hole. */
.about-card > canvas.about-metal-rim { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); z-index: 3; pointer-events: none; opacity: 0; }
.about-card[data-metal="ready"] > canvas.about-metal-rim { opacity: 1; }
.about-socials a[aria-label="LinkedIn"] { top: -1px; }

@media (min-width: 701px) {
 /* Tighten only the logo gaps, keeping headings and edge copy in place. */
 .header > .brand { top: 12px; }
 .site-footer .closing-logo { position: relative; top: -16px; }
}

.brand-logo[data-motion="ready"] [data-logo-static], .brand[data-glass="webgl"] [data-logo-static] { display: none; }

/* Direct Pitchu link lands on the pitch service, clear of the mobile artwork. */
#pitch-deck-landing { scroll-margin-top:24px; }
@media (max-width:1023px), (hover:none) {
 #pitch-deck-landing { scroll-margin-top:calc(var(--service-bubble-top) + var(--service-bubble-size) + 24px); }
}

/* Match Pitchu FAQ's full-bleed desktop carousel and independent card heights. */
.testimonials-track { scroll-snap-type: none; }
@media (min-width: 1024px) {
 .testimonials { width: 100%; }
 .testimonials-track { padding: 4px 16px; scroll-padding-inline: 16px; align-items: flex-start; }
 .testimonial-card { flex-basis: 384px; }
}
