/* Asaf Guluzade — Portfolio | recreated from Figma "Personal" */
:root {
  --ink: #0d0d0d;
  --grey-1: #404040;
  --grey-2: #4d4d4d;
  --card: #f9f9f9;
  --blue: #0d52fa;
  --white: #ffffff;
  --radius-card: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 60px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  height: 79px;
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo svg { display: block; }

.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 150ms ease, color 150ms ease;
  position: relative;
}
.nav a:hover { opacity: 0.55; }
.nav a.active { color: var(--blue); }

/* ---------- Glyphs ---------- */
.glyph { position: absolute; }
.glyph .h, .glyph .v { position: absolute; background: var(--ink); }

/* ---------- Wave marquee band ---------- */
.wave-band {
  position: relative;
  overflow: hidden;
  width: 100%;
  contain: layout style paint;
  pointer-events: none;
}
.wave-track {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  animation: wave-drift 24s linear infinite;
}
.wave-svg { display: block; flex: none; }

/* Single composited animation: linear X drift + gentle Y undulation,
   merged into one keyframe track so only ONE transform animation runs. */
@keyframes wave-drift {
  0%    { transform: translate3d(0, 0, 0); }
  12.5% { transform: translate3d(-6.25%, -6px, 0); }
  25%   { transform: translate3d(-12.5%, 0, 0); }
  37.5% { transform: translate3d(-18.75%, -6px, 0); }
  50%   { transform: translate3d(-25%, 0, 0); }
  62.5% { transform: translate3d(-31.25%, -6px, 0); }
  75%   { transform: translate3d(-37.5%, 0, 0); }
  87.5% { transform: translate3d(-43.75%, -6px, 0); }
  100%  { transform: translate3d(-50%, 0, 0); }
}

.pattern-svg, .particles { position: absolute; inset: 0; }

@media (prefers-reduced-motion: reduce) {
  .wave-track, .particles { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 90px; }
.hero .wave-band { height: 220px; margin-top: 10px; }

.quote {
  max-width: 900px;
  margin: 90px auto 0;
  text-align: center;
  padding: 0 20px;
}
.quote h1 {
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.quote p {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 500;
  color: var(--grey-1);
  line-height: 1.5;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  padding: 0 44px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  transition: background 200ms ease, color 200ms ease;
}
.pill:hover { background: var(--blue); color: var(--white); }

.pill--dark { border-color: var(--ink); color: var(--ink); }
.pill--dark:hover { background: var(--ink); color: var(--white); }

.categories {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 30px 0 60px;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 564px 1fr;
  gap: 100px;
  padding: 60px 0 90px;
  align-items: start;
}
.about h2 { font-size: 76px; font-weight: 700; line-height: 1.4; }
.about .role {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 140px;
}
.about .bio { margin-top: 46px; font-size: 15px; line-height: 1.85; color: var(--grey-1); }
.about .bio p + p { margin-top: 22px; }
.about .contact-line {
  margin-top: 36px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--grey-2);
}
.about .contact-line a { color: var(--blue); }

/* portrait placeholder — halftone silhouette w/ flickering particles */
.portrait {
  position: relative;
  width: 480px;
  height: 500px;
  background: var(--card);
  justify-self: end;
  margin-top: 200px;
  overflow: hidden;
}
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* particle flicker = cross-fading static layers (opacity only, GPU-friendly) */
.portrait .particles { will-change: opacity; }
.portrait .p-ink  { animation: fade-ink  3s steps(2) infinite; }
.portrait .p-grey { animation: fade-grey 3s steps(2) infinite; opacity: 0; }
.portrait .p-blue { animation: fade-blue 3s steps(2) infinite; opacity: 0; }
@keyframes fade-ink  { 0%, 35%, 95%, 100% { opacity: 1; } 40%, 90% { opacity: 0; } }
@keyframes fade-grey { 0%, 35%, 65%, 100% { opacity: 0; } 40%, 60% { opacity: 1; } }
@keyframes fade-blue { 0%, 65%, 95%, 100% { opacity: 0; } 70%, 90% { opacity: 1; } }

/* ---------- CV & Portfolio ---------- */
.cvp { position: relative; padding-bottom: 60px; }
.cvp .wave-band { height: 200px; margin-top: 20px; }
.big-pills {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  margin-top: -150px;
  position: relative;
  z-index: 2;
}
.big-pill {
  width: 680px;
  max-width: 90vw;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  transition: background 200ms ease, color 200ms ease;
}
.big-pill:hover { background: var(--blue); color: var(--white); }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 100px;
  padding: 90px 0;
}
.milestones {
  max-width: 600px;
  justify-self: end; /* keep the writing on the right side */
  display: flex;
  flex-direction: column;
  gap: 14px; /* tight, back-to-back rhythm — identical between every entry */
}
.milestones p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Game of Life (timeline left) — frameless ---------- */
.gol {
  position: relative;
  background: var(--white);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 700px;
}
.gol canvas {
  flex: 1;
  width: 100%;
  cursor: crosshair;
}
.gol-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gol-presets button {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: transparent;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.gol-presets button:hover,
.gol-presets button.active { background: var(--blue); color: var(--white); }

/* ---------- In short ---------- */
.in-short { position: relative; padding-bottom: 60px; }
.in-short .wave-band { height: 140px; margin-top: 10px; }
.in-short h3 { font-size: 34px; font-weight: 700; margin: 40px 0 0 80px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 46px 60px;
}
.site-footer .home-link { font-size: 16px; }
.site-footer .name { font-size: 16px; font-weight: 600; }
.site-footer .tag { font-size: 14px; color: var(--grey-1); }
.site-footer a:hover { color: var(--blue); }

/* ---------- Category pages ---------- */
.cat-hero { padding: 60px 0 20px; }
.cat-hero h1 {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 900px;
}
.cat-hero .subline {
  margin-top: 26px;
  font-size: 16px;
  color: var(--grey-2);
}
.cat-wave { height: 150px; margin: 40px 0 20px; }

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 60px 40px;
  padding: 40px 0 80px;
}
.project-card {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13, 13, 13, 0.08);
}
.project-media {
  position: relative;
  height: 230px;
  background: var(--card);
  overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; background: #fff; }
.project-media .glyph .h, .project-media .glyph .v { background: #d5d5d5; }
.project-body { padding: 26px 32px 40px; }
.project-body h2 { font-size: 26px; font-weight: 700; color: var(--blue); }
.project-body p { margin-top: 10px; font-size: 14px; color: var(--grey-2); line-height: 1.6; max-width: 496px; }

/* ---------- Scroll reveal ---------- */
/* Hidden only when JS is present (the .js class is added in <head>);
   with JS off, .reveal content stays visible instead of a blank page. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about, .timeline { grid-template-columns: 1fr; gap: 60px; }
  .portrait { justify-self: center; margin-top: 0; }
  .gol { height: 480px; }
}
@media (max-width: 760px) {
  .site-header { padding: 20px 24px; flex-wrap: wrap; gap: 14px; }
  .nav { gap: 14px 18px; flex-wrap: wrap; }
  .nav a { font-size: 14px; }
  .container { padding: 0 24px; }
  .quote { margin-top: 50px; }
  .quote h1 { font-size: 28px; }
  .quote p { font-size: 18px; }
  .hero .wave-band { height: 140px; }
  .about h2 { font-size: 40px; }
  .about .role { max-width: none; }
  .cat-hero h1 { font-size: 34px; }
  .cat-wave { height: 100px; }
  .projects { grid-template-columns: 1fr; gap: 32px; }
  .portrait { width: 100%; max-width: 480px; }
  .pill { height: 54px; padding: 0 32px; font-size: 13px; }
  .categories { gap: 24px; }
  .big-pill { height: 72px; font-size: 15px; }
  .big-pills { margin-top: -110px; }
  .cvp .wave-band, .in-short .wave-band { height: 130px; }
  .gol { height: 380px; }
  .milestones { justify-self: stretch; }
  .milestones p { font-size: 15px; }
  .in-short h3 { margin-left: 24px; font-size: 26px; }
  .site-footer { flex-direction: column; gap: 10px; text-align: center; }
}
/* ---------- v3 additions ---------- */
/* Selected work on landing */
.selected-title {
  font-size: 34px;
  font-weight: 700;
  margin: 40px 0 10px;
}
.selected-work { padding-top: 20px; }

/* In short — finish the thought + CTA */
.in-short-body { margin: 40px 0 20px 80px; max-width: 620px; }
.in-short-body h3 { font-size: 34px; font-weight: 700; }
.in-short-body p { margin: 16px 0 24px; font-size: 17px; line-height: 1.7; color: var(--grey-1); }
@media (max-width: 760px) {
  .in-short-body { margin-left: 24px; margin-right: 24px; }
}

/* Gentle page fade-in */
@media (prefers-reduced-motion: no-preference) {
  body { animation: page-in 420ms ease-out; }
  @keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Selected work: always one row of three */
.selected-work { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.selected-work .project-media { height: 190px; }
.selected-work .project-body { padding: 20px 24px 30px; }
.selected-work .project-body h2 { font-size: 20px; }
@media (max-width: 760px) {
  .selected-work { grid-template-columns: 1fr; }
}

/* Category pills: one line, like Selected work */
.categories { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 24px; }
@media (max-width: 760px) {
  .categories { gap: 14px; }
}

/* Interactive heroes: shorter on phones so control pills never crowd */
@media (max-width: 760px) {
  section.bells-hero, section.mobas-hero, section.ca-hero {
    height: 44vh;
    min-height: 320px;
  }
  section.bells-hero .sound-toggle,
  section.mobas-hero .adapt-toggle,
  section.ca-hero .ca-controls button {
    padding: 7px 13px;
    font-size: 10px;
  }
  section.mobas-hero .state-pills button { padding: 7px 12px; font-size: 10px; }
  .ca-gen { bottom: 64px; }
}

/* Bio teaser on landing */
.bio-teaser {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: center;
  padding: 70px 0 30px;
}
.bio-teaser h2 { font-size: 40px; font-weight: 700; }
.bio-teaser p { margin-top: 16px; font-size: 16px; line-height: 1.8; color: var(--grey-1); max-width: 620px; }
.bio-teaser-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.bio-teaser-links .pill { height: 52px; padding: 0 30px; font-size: 12px; }
.bio-teaser-photo img { width: 100%; border-radius: 20px; display: block; }
@media (max-width: 760px) {
  .bio-teaser { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 10px; }
  .bio-teaser-photo { max-width: 300px; }
}

/* "Interactive" tag on playable project cards */
.tag-live {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Three-across project grids on category pages */
.projects.three-col { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.projects.three-col .project-media { height: 200px; }
@media (max-width: 1000px) { .projects.three-col { grid-template-columns: 1fr; } }

/* In short: align with the container like every other section */
.in-short-body {
  max-width: 1440px;
  margin: 40px auto 20px;
  padding: 0 60px;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .in-short-body { padding: 0 24px; margin-left: auto; margin-right: auto; }
}
/* keep landing rhythm after removing the pills row */
.hero { padding-bottom: 40px; }

/* =====================================================================
   MOBILE COMPACT PASS — the phone version scales down, not just stacks.
   body-prefixed selectors so these win over page-inline styles.
   ===================================================================== */
@media (max-width: 760px) {
  /* frame */
  body .container { padding: 0 20px; }
  body .site-header { padding: 14px 20px; height: auto; }
  body .nav { gap: 8px 14px; }
  body .nav a { font-size: 12.5px; }
  body .logo svg { transform: scale(0.85); }

  /* landing */
  body .hero { padding-bottom: 24px; }
  body .hero .wave-band { height: 100px; }
  body .quote { margin-top: 30px; }
  body .quote h1 { font-size: 22px; line-height: 1.45; }
  body .quote p { font-size: 14px; margin-top: 14px; }
  body .bio-teaser { padding: 30px 0 6px; gap: 22px; }
  body .bio-teaser h2 { font-size: 26px; }
  body .bio-teaser p { font-size: 13.5px; line-height: 1.7; margin-top: 10px; }
  body .bio-teaser-links { gap: 10px; margin-top: 16px; }
  body .bio-teaser-links .pill { height: 42px; padding: 0 20px; font-size: 11px; }
  body .bio-teaser-photo { max-width: 220px; }
  body .selected-title { font-size: 22px; margin: 24px 0 4px; }
  body .selected-work { gap: 16px; padding-top: 12px; }
  body .in-short .wave-band { height: 80px; }
  body .in-short-body { margin: 22px auto 8px; }
  body .in-short-body h3 { font-size: 22px; }
  body .in-short-body p { font-size: 14px; margin: 10px 0 16px; }
  body .in-short-body .pill { height: 44px; padding: 0 24px; font-size: 11px; }

  /* cards, all tabs */
  body .projects { gap: 16px; padding: 20px 0 40px; }
  body .project-media, body .projects.three-col .project-media,
  body .selected-work .project-media { height: 160px; }
  body .project-body { padding: 16px 18px 22px; }
  body .project-body h2 { font-size: 17px; }
  body .project-body p { font-size: 12.5px; line-height: 1.55; margin-top: 6px; }
  body .tag-live { font-size: 8.5px; padding: 3px 9px; margin-bottom: 6px; }

  /* category + project heroes */
  body .cat-hero { padding: 28px 0 8px; }
  body .cat-hero h1 { font-size: 26px; line-height: 1.3; }
  body .cat-hero .subline { font-size: 12.5px; margin-top: 12px; }
  body .cat-wave { height: 70px; margin: 20px 0 8px; }
  body .project-hero-text { padding: 30px 0 4px; }
  body .project-hero-text .kicker { font-size: 10.5px; letter-spacing: 0.16em; }
  body .project-hero-text h1 { font-size: 25px; line-height: 1.3; margin-top: 8px; }
  body .project-hero-text .lede { font-size: 14px; line-height: 1.65; margin-top: 12px; }

  /* facts + body text on project pages */
  body .facts { gap: 8px; padding: 20px 0 8px; }
  body .fact { padding: 7px 14px; font-size: 11px; border-width: 1px; }
  body .project-body-grid { padding: 22px 0 28px; gap: 24px; }
  body .project-body-grid h2 { font-size: 18px; margin-bottom: 10px; }
  body .project-body-grid p { font-size: 13.5px; line-height: 1.7; }
  body .press { padding: 4px 0 28px; }
  body .press .outlets { font-size: 13px; gap: 8px 20px; }
  body .gallery { gap: 14px; padding-bottom: 40px; }

  /* about page */
  body .about { padding: 26px 0 30px; gap: 26px; }
  body .about h2 { font-size: 30px; line-height: 1.25; }
  body .about .role { font-size: 16px; margin-top: 10px; }
  body .about .bio { margin-top: 18px; font-size: 13.5px; line-height: 1.7; }
  body .about .bio p + p { margin-top: 12px; }
  body .about .contact-line { margin-top: 18px; font-size: 12.5px; }
  body .portrait { height: 320px; }
  body .cvp .wave-band { height: 80px; }
  body .big-pills { margin-top: -70px; gap: 14px; }
  body .big-pill { height: 56px; font-size: 12px; letter-spacing: 0.2em; }
  body .timeline { padding: 30px 0; gap: 26px; }
  body .gol { height: 300px; margin-top: 10px; gap: 10px; }
  body .gol-presets button { width: 30px; height: 30px; font-size: 11px; }
  body .milestones { gap: 9px; }
  body .milestones p { font-size: 12.5px; line-height: 1.55; }

  /* interactive heroes + controls */
  body section.bells-hero, body section.mobas-hero, body section.ca-hero {
    height: 38vh; min-height: 280px;
  }
  body .bells-hint, body .mobas-hint, body .ca-hint {
    font-size: 9px; letter-spacing: 0.14em; bottom: 64px;
    width: 90%; text-align: center;
  }
  body .sound-toggle, body .adapt-toggle,
  body .ca-controls button, body .state-pills button {
    padding: 6px 11px; font-size: 9.5px;
  }
  body .ca-controls, body .state-pills { left: 14px; bottom: 12px; gap: 6px; }
  body .sound-toggle { right: 14px; bottom: 12px; }
  body #wind-toggle { left: 14px !important; }
  body .ca-gen { right: 14px; bottom: 48px; font-size: 10px; }

  /* story nav + footer */
  body .story-nav { margin: 16px 0 34px; font-size: 13px; }
  body .site-footer { padding: 22px 20px; gap: 6px; }
  body .site-footer .home-link, body .site-footer .name, body .site-footer .tag { font-size: 12.5px; }
}

/* very small phones */
@media (max-width: 380px) {
  body .quote h1 { font-size: 19px; }
  body .cat-hero h1, body .project-hero-text h1 { font-size: 22px; }
  body .about h2 { font-size: 26px; }
}

/* ---------- burger nav + landing refinements ---------- */
.site-header { position: relative; }
.nav-burger { display: none; }

/* photo removed from landing: teaser is a single column */
.bio-teaser { grid-template-columns: 1fr; }
.bio-teaser-photo { display: none; }

@media (max-width: 760px) {
  /* burger button: three dashes in the site's glyph language */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* nav collapses into a dropdown panel */
  body .site-header { display: flex; justify-content: space-between; align-items: center; }
  body .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 14px 30px rgba(13,13,13,0.06);
    z-index: 50;
  }
  body .nav.open { display: flex; }
  body .nav a {
    font-size: 14px;
    padding: 13px 24px;
    border-top: 1px solid #f2f2f2;
  }

  /* About me · CV · Portfolio on ONE line */
  body .bio-teaser-links {
    flex-wrap: nowrap;
    gap: 8px;
  }
  body .bio-teaser-links .pill {
    flex: 1;
    height: 40px;
    padding: 0 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    justify-content: center;
  }
}

/* ---------- UX round: pulse, crumbs, swipe, footer mail, cursor ---------- */

/* 1. one-time pulsing ring inviting the Sound button (stops once on) */
#sound-toggle { position: absolute; }
#sound-toggle:not(.on)::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  opacity: 0;
  animation: invite-pulse 1.9s ease-out 2.5s 5;
  pointer-events: none;
}
@keyframes invite-pulse {
  0%   { opacity: 0.9; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.45); }
  100% { opacity: 0;   transform: scale(1.45); }
}

/* 2. breadcrumb above project titles */
.crumb {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-2);
  margin-bottom: 14px;
  transition: color 150ms ease;
}
.crumb:hover { color: var(--blue); }

/* 3. Selected work: horizontal swipe row on phones */
@media (max-width: 760px) {
  body .selected-work {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 12px 4px 18px;
    scrollbar-width: none;
  }
  body .selected-work::-webkit-scrollbar { display: none; }
  body .selected-work .project-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

/* 4. footer email link (injected by main.js) */
.footer-mail { color: var(--blue); font-size: 14px; font-weight: 500; margin-top: 8px; }
.footer-mail:hover { opacity: 0.7; }
@media (max-width: 760px) { body .footer-mail { font-size: 13px; } }

/* 5a. custom 十 cursor on precise pointers */
@media (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17'%3E%3Crect x='0' y='7.25' width='17' height='2.5' fill='%230d0d0d'/%3E%3Crect x='7.25' y='0' width='2.5' height='17' fill='%230d0d0d'/%3E%3C/svg%3E") 8 8, auto;
  }
  a, button, .pill, .project-card {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17'%3E%3Crect x='0' y='7.25' width='17' height='2.5' fill='%230d52fa'/%3E%3Crect x='7.25' y='0' width='2.5' height='17' fill='%230d52fa'/%3E%3C/svg%3E") 8 8, pointer;
  }
}

/* 5b. consistent hover on fact pills */
.fact { transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
span.fact:hover { background: var(--ink); color: #fff; }
span.fact.blue:hover, a.fact.blue:hover { background: var(--blue); color: #fff; }

/* In short: heading aligns with its own text and button (kill legacy offset) */
.in-short .in-short-body h3 { margin: 0; }
.in-short .in-short-body p { margin: 14px 0 22px; }

/* About: portrait sits lower, centred against the text column */
.about .portrait { align-self: center; margin-top: 90px; }
@media (max-width: 1100px) { .about .portrait { margin-top: 0; } }

/* "Coming soon" state: quiet grey, no link behaviour */
.soon, .big-pill.soon, .fact.soon, .pill.soon {
  border-color: #c9c9c9 !important;
  color: #9a9a9a !important;
  background: transparent !important;
  cursor: default !important;
  pointer-events: none;
}

/* ---------- Media strip: horizontal scroll gallery of small photos/videos ---------- */
.media-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 16px;
  scrollbar-width: none;
}
.media-strip::-webkit-scrollbar { display: none; }
.media-strip .media-item {
  flex: 0 0 340px;
  scroll-snap-align: start;
}
.media-strip .media-item figure {
  margin: 0;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.media-strip .media-item img,
.media-strip .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0d0d0d;
}
.media-strip .media-item figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey-2);
  line-height: 1.5;
}
.media-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 20px 0 2px;
}
@media (max-width: 760px) {
  .media-strip .media-item { flex-basis: 80%; }
}

/* ---------- Media strip: arrows, drag, expand affordance, lightbox ---------- */
.media-wrap { position: relative; }
.media-strip { cursor: grab; }
.media-strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.media-strip.dragging * { pointer-events: none; }

.strip-arrow {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}
.strip-arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.strip-arrow.prev { left: -6px; }
.strip-arrow.next { right: -6px; }
.strip-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .strip-arrow { display: none; } }

/* expand hint on each media item */
.media-item figure { position: relative; }
.media-item .expand {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(13,13,13,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 3;
  opacity: 0.85;
  transition: background 160ms ease;
}
.media-item .expand:hover { background: var(--blue); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,12,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video {
  max-width: 94vw; max-height: 88vh;
  border-radius: 10px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border: none; background: none;
  color: #fff; font-size: 30px;
  cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  border: none; background: rgba(255,255,255,0.12);
  color: #fff; font-size: 24px; border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav.prev { left: 3vw; }
.lightbox-nav.next { right: 3vw; }
@media (max-width: 760px) { .lightbox-nav { display: none; } }

/* type-on caret for the landing quote */
.tw-caret::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 4px;
  background: var(--blue);
  vertical-align: -0.1em;
  animation: tw-blink 0.8s steps(1) infinite;
}
@keyframes tw-blink { 50% { opacity: 0; } }

/* ===== landing upgrades ===== */
.hero-stage-wrap { margin-top: 6px; }
.hero-stage {
  position: relative; height: 58vh; min-height: 380px;
  border-radius: 26px; border: 1px solid rgba(13,13,13,0.08);
  background: #fbfbfd; overflow: hidden;
  box-shadow: 0 34px 80px -46px rgba(13,13,13,0.32), inset 0 1px 0 rgba(255,255,255,0.85);
}
.hero-stage .hero-3d, .hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; transition: opacity .6s ease; }
.hero-explore {
  position: absolute; right: 20px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; background: #0d0d0d; color: #fff;
  font-size: 13px; font-weight: 500; text-decoration: none; transition: background .18s ease;
}
.hero-explore:hover { background: #0d52fa; }

.spotlight {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 0; margin-top: 8px;
  border: 1px solid #ececec; border-radius: 22px; overflow: hidden;
  text-decoration: none; color: inherit; background: #fff;
  box-shadow: 0 30px 70px -50px rgba(13,13,13,0.28);
  transition: box-shadow .25s ease, transform .25s ease;
}
.spotlight:hover { box-shadow: 0 42px 92px -50px rgba(13,13,13,0.42); transform: translateY(-2px); }
.spotlight-media { position: relative; min-height: 330px; background: #f2f2f4; }
.spotlight-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: 42px 44px; display: flex; flex-direction: column; justify-content: center; }
.spotlight-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #0d52fa; }
.spotlight-body h2 { font-size: 32px; font-weight: 600; letter-spacing: -.01em; margin: 12px 0; }
.spotlight-body p { font-size: 15px; line-height: 1.65; color: #333; }
.spotlight-press { margin-top: 14px; font-size: 12px; color: #6b6b6b; }
.spotlight-cta { margin-top: 22px; font-size: 14px; font-weight: 600; color: #0d52fa; }

.in-short-portrait { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; display: block; }
.in-short-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.pill-solid { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.pill-solid:hover { background: #0d52fa; border-color: #0d52fa; color: #fff; }

@media (max-width: 760px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 210px; }
  .spotlight-body { padding: 26px 22px; }
  .spotlight-body h2 { font-size: 24px; }
  .hero-stage { height: 42vh; min-height: 300px; }
}

/* ===== contact close — single centered, consistent block (overrides earlier .in-short-body rules) ===== */
body .in-short { padding-top: 20px; padding-bottom: 72px; }
body .in-short-body {
  max-width: 620px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
body .in-short-portrait { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 0 22px; }
body .in-short-body h3 { font-size: 32px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
body .in-short-body p { font-size: 16px; line-height: 1.7; color: #555; margin: 16px 0 0; max-width: 46ch; }
body .in-short-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 760px) {
  body .in-short-body h3 { font-size: 23px; }
  body .in-short-body p { font-size: 14px; }
  body .in-short-portrait { width: 72px; height: 72px; }
}

/* ===== Lusion-style landing hero ===== */
.hero-l { padding: 14px 0 0; }
.hero-l .container { padding-top: 22px; }
.hero-l-title { font-size: clamp(27px,4.2vw,50px); font-weight:700; line-height:1.12; letter-spacing:-0.02em; max-width:20ch; margin:0 auto; text-align:center; text-wrap:balance; }
.hero-l-sub { margin:16px auto 0; font-size:16px; color:#555; text-align:center; max-width:52ch; }
.hero-l-panel { position:relative; margin:26px clamp(16px,4vw,48px) 0; height:64vh; min-height:430px; border-radius:28px; overflow:hidden; background:#0e0e13; box-shadow:0 44px 100px -54px rgba(13,13,13,0.45); }
.hero-l-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-l-panel::after { content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to bottom, rgba(0,0,0,0.16), rgba(0,0,0,0) 26%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.34)); }
.hero-tick { position:absolute; width:15px; height:15px; opacity:0.5; z-index:2; }
.hero-tick::before,.hero-tick::after { content:''; position:absolute; background:#fff; }
.hero-tick::before { left:50%; top:0; width:1.5px; height:100%; transform:translateX(-50%); }
.hero-tick::after { top:50%; left:0; height:1.5px; width:100%; transform:translateY(-50%); }
.hero-tick.tl{left:16px;top:16px}.hero-tick.tr{right:16px;top:16px}.hero-tick.bl{left:16px;bottom:16px}.hero-tick.br{right:16px;bottom:16px}
.hero-l-tag { position:absolute; left:20px; bottom:18px; z-index:3; display:inline-flex; align-items:center; gap:6px; padding:10px 16px; border-radius:999px; background:rgba(18,18,24,0.62); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:#fff; font-size:12.5px; font-weight:500; text-decoration:none; transition:background .2s ease; }
.hero-l-tag:hover { background:#0d52fa; }
.hero-l-scroll { position:absolute; left:50%; transform:translateX(-50%); bottom:22px; z-index:3; color:rgba(255,255,255,0.72); font-size:10.5px; letter-spacing:0.3em; text-transform:uppercase; }
@media (prefers-reduced-motion: no-preference){ .hero-l-img { animation: heroZoom 26s ease-in-out infinite alternate; } }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.12) translateY(-1.5%); } }
@media (max-width:760px){
  .hero-l-panel { height:52vh; min-height:340px; margin:18px 16px 0; }
  .hero-l-scroll { display:none; }
  .hero-l-sub { font-size:14px; }
}

/* ===== Lusion proportions v2 (overrides) ===== */
.hero-l { padding-top: 4px; }
.hero-l-head { text-align:center; padding: 14px 24px 0; }
.hero-l-title { font-size: clamp(23px,3vw,40px); font-weight:600; line-height:1.18; letter-spacing:-0.01em; max-width:22ch; margin:0 auto; }
.hero-l-sub { margin:12px auto 0; font-size:15px; color:#666; max-width:52ch; }
.hero-l-panel { margin:18px clamp(12px,2.6vw,34px) 0; height:66vh; min-height:440px; }
.hero-l-panel::after { background:linear-gradient(to bottom, rgba(0,0,0,0.14), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.22)); }
.hero-l-foot { display:flex; align-items:center; justify-content:space-between; padding:12px clamp(12px,2.6vw,34px) 0; }
.hero-l-foot .tk { font-size:16px; color:#0d0d0d; opacity:.75; line-height:1; }
.hero-l-foot .hero-l-scroll { position:static; transform:none; color:#0d0d0d; opacity:.65; font-size:10.5px; letter-spacing:.3em; text-transform:uppercase; }
@media (max-width:760px){
  .hero-l-panel { height:56vh; min-height:360px; margin:14px 14px 0; }
  .hero-l-title { font-size:22px; }
  .hero-l-foot .tk:nth-child(2), .hero-l-foot .tk:nth-child(4){ display:none; }
}

/* ===== hero v3: smaller headline up + live 3D panel ===== */
.hero-l { padding-top: 2px; }
.hero-l-head { padding: 8px 24px 0; }
.hero-l-title { font-size: clamp(21px,2.5vw,33px); font-weight:600; line-height:1.16; }
.hero-l-sub { font-size:14px; margin-top:9px; color:#777; }
.hero-l-panel { margin-top:14px; height:70vh; min-height:460px; }
.hero-l-panel::after { display:none; }
.hero-l-panel .hero-3d, .hero-l-panel #hero-canvas, .hero-l-panel canvas { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.hero-l-hint { position:absolute; right:18px; bottom:16px; z-index:3; color:rgba(255,255,255,0.55); font-size:10px; letter-spacing:.28em; text-transform:uppercase; }
@media (max-width:760px){
  .hero-l-panel { height:56vh; min-height:360px; }
  .hero-l-title { font-size:20px; }
  .hero-l-hint { display:none; }
}

/* ===== landing v4: one-screen hero + approach + featured work ===== */
.hero-l { min-height: calc(100vh - 74px); display:flex; flex-direction:column; padding: 6px clamp(16px,3vw,40px) 0; }
.hero-l-head { text-align:left; padding: 4px 0 10px; }
.hero-l-title { font-size: clamp(19px,2.3vw,31px); font-weight:600; line-height:1.16; letter-spacing:-0.01em; max-width:24ch; margin:0; }
.hero-l-sub { display:none; }
.hero-l-panel { position:relative; flex:1 1 auto; min-height:260px; margin:0; border-radius:24px; overflow:hidden; background:#0b0c10; border:1px solid rgba(13,13,13,0.08); box-shadow:0 34px 80px -46px rgba(13,13,13,0.32); }
.hero-l-panel .hero-3d, .hero-l-panel #hero-canvas, .hero-l-panel canvas { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.hero-l-foot { padding: 12px 0 14px; }

.approach { position:relative; overflow:hidden; padding: clamp(64px,11vh,150px) 0; }
.approach-curve { position:absolute; top:0; left:-6%; width:112%; height:100%; z-index:0; opacity:0.92; pointer-events:none; }
.approach-curve path { stroke-dasharray:1000; stroke-dashoffset:1000; }
.approach.in .approach-curve path { transition: stroke-dashoffset 1.7s cubic-bezier(.6,0,.2,1); stroke-dashoffset:0; }
.approach-inner { position:relative; z-index:1; }
.approach-title { font-size: clamp(38px,7.5vw,104px); font-weight:700; letter-spacing:-0.03em; line-height:0.98; margin:0 0 clamp(30px,6vh,68px); will-change:transform; }
.approach-grid { display:grid; grid-template-columns: minmax(240px,380px) 1fr; gap: clamp(30px,5vw,80px); align-items:center; }
.approach-video { border-radius:20px; overflow:hidden; aspect-ratio:4/5; background:#0b0c10; box-shadow:0 30px 70px -44px rgba(13,13,13,.42); }
.approach-video video { width:100%; height:100%; object-fit:cover; display:block; }
.approach-copy p { font-size: clamp(16px,1.4vw,20px); line-height:1.7; color:#333; max-width:44ch; }
.approach-copy .pill { margin-top:26px; }

.fwork { padding: clamp(48px,8vh,110px) 0; }
.fwork-head { display:flex; justify-content:space-between; align-items:flex-end; gap:30px; flex-wrap:wrap; margin-bottom: clamp(28px,5vh,58px); }
.fwork-title { font-size: clamp(38px,7.5vw,100px); font-weight:700; letter-spacing:-0.03em; line-height:1; margin:0; }
.fwork-sub { font-size:12.5px; letter-spacing:.05em; color:#6b6b6b; text-transform:uppercase; max-width:34ch; line-height:1.7; }
.fwork-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: clamp(24px,3vw,48px); }
.fcard { text-decoration:none; color:inherit; display:block; }
.fcard-media { position:relative; aspect-ratio:16/10; border-radius:16px; overflow:hidden; background:#f0f0f3; }
.fcard-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.fcard:hover .fcard-media img { transform:scale(1.04); }
.fcard-tags { margin-top:16px; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#8a8a8a; }
.fcard-title { margin-top:6px; font-size: clamp(21px,2.3vw,32px); font-weight:600; display:flex; align-items:center; gap:12px; }
.fcard-title .arw { color:#0d52fa; transition:transform .3s ease; }
.fcard:hover .fcard-title .arw { transform:translateX(6px); }

@media (max-width:760px){
  .hero-l { min-height: calc(100vh - 60px); }
  .hero-l-title { font-size:18px; }
  .approach-grid { grid-template-columns:1fr; }
  .approach-video { max-width:300px; margin:0 auto; }
  .fwork-grid { grid-template-columns:1fr; }
  .fwork-head { flex-direction:column; align-items:flex-start; gap:12px; }
}

/* hero v5: smaller 3D panel, headline sized to reference, distributed to one screen */
.hero-l { justify-content: space-between; padding-bottom: 12px; }
.hero-l-title { font-size: clamp(22px,2.8vw,38px); font-weight:600; max-width:22ch; line-height:1.14; }
.hero-l-panel { flex:0 0 auto; height:50vh; min-height:300px; max-height:580px; margin:0 clamp(2px,0.8vw,16px); }
@media (max-width:760px){
  .hero-l-panel { height:44vh; min-height:270px; }
  .hero-l-title { font-size:19px; }
}

/* hero v6: force flush-left question, group at top, scroll pinned to bottom */
.hero-l { justify-content: flex-start; align-items: stretch; }
body .hero-l-head { text-align:left !important; margin:0 !important; padding:6px 0 0 !important; width:100%; }
body .hero-l-title { text-align:left !important; margin:0 !important; }
.hero-l-panel { margin-top:16px; }
.hero-l-foot { margin-top:auto; }
@media (max-width:760px){ body .hero-l-title { font-size:19px; text-align:left !important; } }

/* hero v7: match Lusion 1:1 — lavender ground, regular centred headline, big panel */
body { background:#ececf3; }
.hero-l { justify-content: flex-start; }
.hero-l-head { display:flex; justify-content:center; padding-top:2px; }
body .hero-l-title { text-align:left !important; font-weight:400 !important; font-size:clamp(21px,2.15vw,33px) !important; line-height:1.12 !important; letter-spacing:-0.005em !important; max-width:30ch; margin:0 !important; }
.hero-l-panel { flex:1 1 auto; height:auto !important; max-height:none !important; min-height:320px; margin:16px clamp(16px,2vw,28px) 0; border-radius:18px; background:#0c0c10; }
.hero-l-foot { margin-top:0; padding:12px clamp(16px,2vw,28px) 12px; }
.hero-l-foot .tk, .hero-l-foot .hero-l-scroll { color:#0d0d0d; }
@media (max-width:760px){ .hero-l-head{justify-content:flex-start} body .hero-l-title{font-size:19px !important} }

/* ===== landing v8: wordmark, black scroll, animated sub, More, reel, fwork stack ===== */
.logo.wordmark { font-weight:700; font-size:20px; letter-spacing:-0.01em; color:#0d0d0d; text-decoration:none; }
body .hero-l-head { flex-direction:column; }
body .hero-l-sub { display:block !important; text-align:center; font-size:13px; font-weight:400; color:#5a5a5a; margin:8px 0 0; letter-spacing:.01em; }
body .hero-l-foot .hero-l-scroll { color:#0d0d0d !important; opacity:1 !important; }
body .hero-l-foot .tk { color:#0d0d0d !important; opacity:1 !important; }
/* curve now driven by scroll (JS sets dash-offset) */
.approach-curve path { transition:none; }
/* reel: full-width 16:9 with play button, grows on scroll */
.reel { padding: clamp(20px,4vh,60px) 0 clamp(30px,6vh,80px); }
.reel-frame { position:relative; aspect-ratio:16/9; border-radius:22px; overflow:hidden; background:#0b0c10; transform-origin:center; box-shadow:0 40px 90px -50px rgba(13,13,13,.4); }
.reel-frame video { width:100%; height:100%; object-fit:cover; display:block; }
.reel-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:88px; height:88px; border-radius:50%; background:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 14px 40px rgba(0,0,0,.25); transition:transform .2s ease; }
.reel-play:hover { transform:translate(-50%,-50%) scale(1.06); }
.reel-play svg { margin-left:4px; }
.reel-play.muted svg path { fill:#0d52fa; }
/* Featured Work: subtext under the title */
body .fwork-head { flex-direction:column; align-items:flex-start; gap:14px; }
@media (max-width:760px){ .reel-play{ width:64px;height:64px } .logo.wordmark{ font-size:16px } }

.footer-social{ color:#0d52fa; font-size:13px; font-weight:500; margin-top:2px; text-decoration:none; }
.footer-social:hover{ text-decoration:underline; }

/* ===== v9 fixes: hero align, reel uncropped, play btn, footer ===== */
body .hero-l-head { align-items:flex-start !important; text-align:left !important; }
body .hero-l-title { text-align:left !important; margin:0 !important; }
body .hero-l-sub { text-align:left !important; margin:8px 0 0 !important; }

.reel-frame video { object-fit:contain !important; background:#0b0c10; }
.reel-frame { transform:none !important; }
.reel-play { width:84px; height:84px; }
.reel-play-icon { width:0; height:0; margin-left:5px; border-style:solid; border-width:13px 0 13px 22px; border-color:transparent transparent transparent #0d0d0d; }
.reel-play.muted .reel-play-icon { border-left-color:#0d52fa; }

/* proper aligned footer */
.site-footer { display:block !important; flex-direction:unset; padding:30px clamp(20px,4vw,60px) !important; border-top:1px solid #d9d9e2; text-align:left; }
.footer-inner { max-width:1320px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:22px; flex-wrap:wrap; }
.footer-brand { display:flex; align-items:center; gap:13px; text-decoration:none; color:#0d0d0d; }
.footer-portrait { width:46px; height:46px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.footer-id { display:flex; flex-direction:column; font-size:13px; line-height:1.45; color:#0d0d0d; }
.footer-id b { font-weight:600; }
.footer-links { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.footer-links a { font-size:13px; color:#0d0d0d; text-decoration:none; }
.footer-links a:hover { color:#0d52fa; }
.footer-links .footer-mail { color:#0d52fa; }
@media (max-width:640px){ .footer-inner{ flex-direction:column; align-items:flex-start; gap:16px; } }

/* ===== v11: heading ABOVE the panel, pointer-through 3D, robust morph ===== */
/* hover fix: poster + any overlay never eat pointer events; canvas receives them */
.hero-l-panel { position:relative; }
.hero-l-panel .hero-poster { pointer-events:none; z-index:1; transition:opacity .8s ease; }
.hero-l-panel .hero-3d, .hero-l-panel #hero-canvas, .hero-l-panel canvas { z-index:0; }

/* heading sits above the 3D panel, left-aligned to the panel edge (not inside it) */
.hero-l { min-height: calc(100vh - 74px); display:flex; flex-direction:column; }
body .hero-l-head { position:static; z-index:auto; pointer-events:auto;
  display:block; text-align:left; margin:0; padding: clamp(6px,1vw,14px) clamp(4px,1vw,10px) clamp(10px,1.4vw,16px); max-width:none; }
body .hero-l-title { color:#0d0d0d !important; text-align:left !important; font-weight:500 !important;
  font-size:clamp(21px,2.5vw,36px) !important; line-height:1.14 !important; letter-spacing:-0.01em !important;
  max-width:26ch; margin:0 !important; text-shadow:none; }
body .hero-l-sub { color:#5a5a5a !important; text-align:left !important; display:block !important;
  font-size:clamp(13px,1.05vw,15px) !important; margin:8px 0 0 !important; font-weight:400 !important; }
.hero-l-panel { flex:1 1 auto; }
@media (max-width:760px){
  body .hero-l-title { font-size:19px !important; max-width:24ch; }
  body .hero-l-sub { font-size:12.5px !important; }
}

/* morph: portrait reel grows into a full-page landscape video */
.morph { position:relative; background:#ececf3; }
.morph-stage { position:relative; height:100vh; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.morph-frame { position:relative; width:300px; height:520px; border-radius:22px; overflow:hidden; background:#0b0c10; box-shadow:0 44px 110px -54px rgba(13,13,13,.5); will-change:width,height,border-radius; }
.morph-vid { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; background:#0b0c10; }
.morph-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:84px; height:84px; border-radius:50%; background:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 14px 40px rgba(0,0,0,.28); opacity:0; pointer-events:none; transition:transform .2s ease, opacity .3s ease; z-index:4; }
.morph-play:hover { transform:translate(-50%,-50%) scale(1.06); }
.morph-play.muted .reel-play-icon { border-left-color:#0d52fa; }
@media (max-width:760px){
  .morph-frame { width:210px; height:372px; }
  .morph-play { width:64px; height:64px; }
}
.reel { display:none; }

/* ===== v12: align heading left edge exactly to the 3D panel left edge ===== */
.hero-l { padding-left: clamp(16px,3vw,40px) !important; padding-right: clamp(16px,3vw,40px) !important; }
body .hero-l-head { padding-left:0 !important; padding-right:0 !important; padding-top:clamp(6px,1vw,14px) !important; padding-bottom:clamp(10px,1.4vw,16px) !important; }
.hero-l-panel { margin-left:0 !important; margin-right:0 !important; }
.hero-l-foot { padding-left:0 !important; padding-right:0 !important; }
