/* ============================================================
   Ayaz Abbasi, Portfolio
   Vanilla CSS, mobile-first.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
img, svg, video { display: block; max-width: 100%; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #1a1209; }

/* ---------- Design tokens ---------- */
:root {
  --bg:           #0b0a09;
  --bg-soft:      #100e0c;
  --bg-panel:     #161311;
  --bg-elev:      #1a1715;
  --text:         #f4efe8;
  --text-mute:    rgba(244,239,232,0.62);
  --text-dim:     rgba(244,239,232,0.42);
  --text-faint:   rgba(244,239,232,0.22);
  --border:       rgba(244,239,232,0.10);
  --border-hi:    rgba(244,239,232,0.20);
  --accent:       #e7a867;
  --accent-hi:    #f0bc83;
  --accent-soft:  rgba(231,168,103,0.14);
  --shadow-lg:    0 30px 80px -20px rgba(0,0,0,0.6);
  --shadow-card:  0 8px 24px -8px rgba(0,0,0,0.5);

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --container-max: 1240px;
  --container-pad: clamp(20px, 5vw, 56px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.2, 0.65, 0.2, 1);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Lenis (smooth scroll lib) sets these classes when active. Disabling native
   smooth-scroll prevents it from fighting Lenis's animation. */
html.lenis { scroll-behavior: auto; }
html.lenis-smooth { scroll-behavior: auto; }
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 100;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: 760px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -40px;
  background: var(--accent); color: #1a1209;
  padding: 8px 12px; border-radius: 6px;
  font-weight: 600; font-size: 14px;
  transition: top 0.2s var(--ease-out);
  z-index: 100;
}
.skip-link:focus { top: 8px; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-title {
  font-size: clamp(32px, 5.5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 22ch;
}
.section-subhead {
  margin-top: var(--sp-4);
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-mute);
  max-width: 60ch;
  line-height: 1.55;
}
.section-intro { margin-bottom: var(--sp-7); }
.section-intro .eyebrow { margin-bottom: var(--sp-4); }
.section-intro--center { text-align: center; }
.section-intro--center .section-title,
.section-intro--center .section-subhead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out),
              background-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
  cursor: pointer;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn--primary { background: var(--text); color: #1a1209; }
.btn--primary:hover { background: var(--accent-hi); color: #1a1209; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn--ghost:hover { border-color: var(--text); background: rgba(244,239,232,0.04); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--container-pad);
  background: linear-gradient(to bottom, rgba(11,10,9,0.88), rgba(11,10,9,0.0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}
.site-header__left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.site-header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
/* Hamburger button: hidden on desktop, shown on mobile to reveal LinkedIn+Resume */
.site-header__menu-btn {
  display: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header__menu-btn:hover {
  border-color: var(--border-hi);
  background: rgba(244,239,232,0.04);
}
.site-header__menu-btn .menu-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}
.site-header__menu-btn .menu-icon span {
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
.site-header__menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.site-header__menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}
.site-header__menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-role { font-size: 12px; color: var(--text-mute); }

.site-header__pill {
  display: inline-flex;
  background: rgba(244,239,232,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.pill-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  color: var(--text-mute);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.pill-link:hover { color: var(--text); }
.pill-link--active {
  background: rgba(244,239,232,0.12);
  color: var(--text);
}

.site-header__links {
  display: flex;
  gap: var(--sp-5);
  justify-content: flex-end;
}
.site-header__links a {
  font-size: 14px;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s var(--ease-out);
}
.site-header__links a:hover { color: var(--text); }
.site-header__links a[data-link-type="link"]::after     { content: "↗"; font-size: 13px; transform: translateY(-1px); display: inline-block; }
.site-header__links a[data-link-type="download"]::after { content: "↓"; font-size: 13px; transform: translateY(-1px); display: inline-block; }

/* Mobile header: hamburger + brand on the left, tabs pill on the right.
   Dropdown anchored to the hamburger (left side). */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    height: var(--header-h);
    padding: 0 var(--container-pad);
    column-gap: 10px;
  }
  .site-header__menu-btn { display: inline-flex; }
  .site-header__left  { grid-column: 1; grid-row: 1; }
  .site-header__pill  { grid-column: 2; grid-row: 1; justify-self: end; padding: 3px; }
  .site-header__pill .pill-link { padding: 6px 12px; font-size: 12px; }

  .brand-name { font-size: 14px; white-space: nowrap; }
  .brand-role { display: none; }

  .site-header__links {
    position: fixed;
    top: calc(var(--header-h) - 2px);
    left: var(--container-pad);
    right: auto;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-panel);
    border: 1px solid var(--border-hi);
    border-radius: var(--r-md);
    padding: 6px;
    box-shadow: 0 14px 32px -12px rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    z-index: 60;
    min-width: 170px;
  }
  .site-header__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-header__links a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    justify-content: space-between;
    gap: 12px;
  }
  .site-header__links a:hover {
    background: rgba(244,239,232,0.06);
  }
}
@media (max-width: 420px) {
  .site-header { padding: 0 14px; column-gap: 8px; }
  .brand-name { font-size: 13px; }
  .site-header__pill .pill-link { padding: 5px 10px; font-size: 11px; }
  .site-header__menu-btn { width: 30px; height: 30px; }
}

/* ============================================================
   Tab system (Who Am I / What I Do)
   ============================================================ */
.tab {
  /* Tabs sit immediately below the fixed header. Each tab's first section
     adds its own top breathing room. */
  padding-top: var(--header-h);
  opacity: 1;
  transition: opacity 0.22s var(--ease-out);
}
.tab[hidden] { display: none; }
.tab.is-fading {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Hero blocks
   ============================================================ */
.who-hero { padding: var(--sp-7) 0 var(--sp-9); }

/* WHAT I DO hero — editorial layout with browser chrome and big glow headline */
.what-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-6);
}
.browser-chrome {
  height: 30px;
  margin: 0 var(--container-pad);
  background: linear-gradient(180deg, #cfcfcf, #909090);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.browser-chrome__lights {
  display: flex;
  gap: 7px;
}
.browser-chrome__lights span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.browser-chrome__lights span:nth-child(1) { background: #ff5f57; }
.browser-chrome__lights span:nth-child(2) { background: #febc2e; }
.browser-chrome__lights span:nth-child(3) { background: #28c840; }
.browser-chrome__plus {
  margin-left: auto;
  color: #2a2a2a;
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  opacity: 0.7;
}

.what-hero__container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(40px, 7vw, 96px) clamp(28px, 5vw, 64px) var(--sp-9);
  background: linear-gradient(180deg, rgba(244,239,232,0.02), transparent 40%);
  border-radius: 0 0 12px 12px;
  margin: 0 var(--container-pad);
  max-width: none;
}
.what-hero__headline {
  font-size: clamp(48px, 9.5vw, 148px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-shadow:
    0 0 60px rgba(244, 239, 232, 0.18),
    0 0 120px rgba(244, 239, 232, 0.08);
}
.what-hero__headline em {
  /* Gradient fade from solid to muted, mimicking the reference's serif italic accent */
  background: linear-gradient(90deg, rgba(244,239,232,1) 0%, rgba(244,239,232,0.45) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  font-variation-settings: "opsz" 120;
}

.what-hero__credit {
  align-self: flex-end;
  margin-top: var(--sp-7);
  text-align: right;
  max-width: 38ch;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.what-hero__credit-main {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.what-hero__credit-sub {
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--text-mute);
  line-height: 1.5;
}

.what-hero__scroll {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text-mute);
  font-size: 20px;
  transition: color 0.25s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}
.what-hero__scroll:hover { color: var(--text); }
.what-hero__scroll span {
  display: inline-block;
  animation: scroll-bob 2.2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (max-width: 720px) {
  .browser-chrome { height: 26px; margin: 0 12px; padding: 0 10px; }
  .browser-chrome__lights span { width: 9px; height: 9px; }
  .what-hero__container {
    margin: 0 12px;
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-10);
  }
  .what-hero__headline { font-size: clamp(36px, 11vw, 64px); max-width: 100%; }
  .what-hero__credit {
    position: static;
    margin-top: var(--sp-7);
    text-align: left;
    max-width: 100%;
  }
  .what-hero__scroll { bottom: var(--sp-4); }
}

/* Numbers strip (achievements) shared utility */
.numbers__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  border-block: 1px solid var(--border);
  padding-block: var(--sp-7);
}
@media (max-width: 1000px) { .numbers__strip { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }
@media (max-width: 480px)  { .numbers__strip { grid-template-columns: 1fr; } }
.numbers__cell {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-inline: var(--sp-3);
}
.numbers__cell + .numbers__cell { border-left: 1px solid var(--border); }
@media (max-width: 1000px) {
  .numbers__cell:nth-child(odd) { border-left: 0; }
  .numbers__cell:nth-child(n+3) { padding-top: var(--sp-6); border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .numbers__cell { border-left: 0 !important; padding-top: var(--sp-5) !important; border-top: 1px solid var(--border); }
  .numbers__cell:first-child { border-top: 0; padding-top: 0 !important; }
}
.numbers__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
}
.numbers__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* WHO AM I hero */
.who-hero__name {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-top: var(--sp-4);
}
.who-hero__title {
  margin-top: var(--sp-3);
  color: var(--text-mute);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -0.005em;
}
/* Intro video container (Who Am I hero) — YouTube-style 16:9 frame */
.intro-video {
  margin: var(--sp-7) auto 0;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #1c1816, #0a0908);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
/* Mobile: smaller corner radius so the rounded edges don't crop the video,
   and a smaller top margin so the video sits cleanly inside the hero. */
@media (max-width: 720px) {
  .intro-video {
    margin-top: var(--sp-5);
    border-radius: 10px;
  }
  .intro-video__play span {
    width: 56px; height: 40px;
    border-radius: 10px;
  }
}
.intro-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(231,168,103,0.16), transparent 55%);
  pointer-events: none;
}
.intro-video__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.intro-video iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.intro-video.is-playing .intro-video__play { display: none; }
.intro-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.10);
  transition: background 0.25s var(--ease-out);
  border: 0;
  cursor: pointer;
}
.intro-video__play:hover { background: rgba(0,0,0,0.25); }
.intro-video__play span {
  width: 72px; height: 50px;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.55);
  transition: transform 0.25s var(--ease-out);
}
.intro-video__play:hover span { transform: scale(1.05); }
.intro-video__play span::after {
  content: "";
  width: 0; height: 0;
  border: 12px solid transparent;
  border-left: 18px solid #1a1209;
  margin-left: 5px;
}
.intro-video__label {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(244,239,232,0.55);
  padding-inline: var(--sp-5);
}

/* Portrait device frame (shared) */
.portrait {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(244,239,232,0.05), rgba(244,239,232,0.01));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.portrait__inner {
  width: 100%; height: 100%;
  border-radius: 20px;
  border: 2px dashed rgba(244,239,232,0.18);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(231,168,103,0.10), transparent 60%),
    linear-gradient(160deg, #1c1816, #0f0d0b);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.portrait__label {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 26ch;
  line-height: 1.5;
}

/* ============================================================
   Who Am I sections
   ============================================================ */
.who-achievements,
.who-skills,
.who-results,
.who-testimonials { padding: var(--sp-9) 0; }
.who-skills,
.who-testimonials { background: var(--bg-soft); border-block: 1px solid var(--border); }

.who-achievements__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 720px) { .who-achievements__grid { grid-template-columns: 1fr; } }
.who-ach-card {
  padding: var(--sp-7);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.who-ach-card__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.who-ach-card__label {
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: -0.005em;
}

.who-skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}
.who-skill-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.who-skill-card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.who-skill-card__badge::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
.who-skill-card__label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.who-skill-card__note {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.55;
}

/* Testimonials: one horizontal + one vertical video, click-to-play */
.who-testimonials__grid,
.what-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  justify-items: center;
}
@media (min-width: 880px) {
  .who-testimonials__grid,
  .what-testimonials__grid {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--sp-7);
    align-items: stretch;
    justify-items: stretch;
  }
}
/* Mobile: cap video size so the vertical doesn't fill the viewport, and
   show the vertical video first (DOM order is horizontal then vertical). */
@media (max-width: 879px) {
  .who-testimonials__grid > :nth-child(1),
  .what-testimonials__grid > :nth-child(1) { order: 2; }
  .who-testimonials__grid > :nth-child(2),
  .what-testimonials__grid > :nth-child(2) { order: 1; }
  .testimonial-video--9-16 { max-width: 280px; width: 100%; }
  .testimonial-video--16-9 { max-width: 460px; width: 100%; }
}
.testimonial-video {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1c1816, #0a0908);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.testimonial-video__frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
}
.testimonial-video--16-9 .testimonial-video__frame { aspect-ratio: 16/9; }
.testimonial-video--9-16 .testimonial-video__frame { aspect-ratio: 9/16; }
.testimonial-video__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial-video__frame iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.testimonial-video__frame.is-playing .testimonial-video__play { display: none; }
.testimonial-video__play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.35));
  transition: background 0.25s var(--ease-out);
  border: 0;
  cursor: pointer;
}
.testimonial-video__play:hover { background: rgba(0,0,0,0.20); }
.testimonial-video__play span {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.94);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.55);
  transition: transform 0.25s var(--ease-out);
}
.testimonial-video__play:hover span { transform: scale(1.05); }
.testimonial-video__play span::after {
  content: ""; width: 0; height: 0;
  border: 11px solid transparent;
  border-left: 16px solid #1a1209;
  margin-left: 4px;
}
.testimonial-video__meta {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.testimonial-video__name { font-size: 15px; font-weight: 500; }
.testimonial-video__role { font-size: 13px; color: var(--text-mute); }

/* Experience timeline (Who Am I) */
.who-experience {
  padding: var(--sp-10) 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}
.experience-list {
  position: relative;
  padding-left: 32px;
  margin-top: var(--sp-3);
  list-style: none;
  counter-reset: exp;
}
.experience-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 50%, transparent),
    var(--border) 20%,
    var(--border) 80%,
    color-mix(in srgb, var(--accent) 50%, transparent));
}
.experience-item {
  position: relative;
  padding: 0 0 var(--sp-7) 0;
}
.experience-item:last-child { padding-bottom: 0; }
.experience-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-soft);
}
.experience-item__period {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.experience-item__role {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.experience-item__company {
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 2px;
  margin-bottom: var(--sp-2);
}
.experience-item__outcome {
  font-size: 15px;
  color: rgba(244,239,232,0.78);
  line-height: 1.55;
  max-width: 62ch;
}

/* Big bridge CTA, sits between Who Am I and What I Do */
.who-cta {
  padding: var(--sp-10) 0;
  text-align: center;
}
.who-cta .eyebrow { margin-bottom: var(--sp-3); }
.who-cta__title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: var(--sp-4);
  max-width: 18ch;
  margin-inline: auto;
}
.who-cta__subhead {
  color: var(--text-mute);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
  max-width: 52ch;
  margin-inline: auto;
}
.who-cta__btn {
  display: inline-flex;
  align-self: center;
}

/* Results section: before/after channel growth cards, two variants:
   - with-before  : taller, has stacked before + after images
   - after-only   : shorter, single image */
.who-results {
  padding: var(--sp-10) 0;
}
.result-card {
  flex-shrink: 0;
  width: clamp(260px, 78vw, 340px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.result-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
}
.result-card__image-stack {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.result-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0e0c0a;
}
.result-card__image-wrap + .result-card__image-wrap {
  border-top: 1px solid var(--border);
}
.result-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.result-card__label {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  pointer-events: none;
}
.result-card__label--before { background: rgba(238,120,120,0.85); }
.result-card__label--after  { background: rgba(120,217,160,0.85); color: #0a1a14; }

.result-card__meta {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-card__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.result-card__channel {
  font-size: 12px;
  color: var(--text-mute);
}
.result-card__subs {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.result-card__contrib {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(244,239,232,0.72);
  line-height: 1.55;
}
.result-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.result-card__cta:hover { color: var(--accent-hi); }

/* Pair container: two after-only cards stacked vertically inside one slot.
   Fills the same vertical space a with-before card uses so all column slots
   line up cleanly. Each inner card flexes to take half the available height. */
.result-stack {
  flex-shrink: 0;
  width: clamp(260px, 78vw, 340px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-self: stretch;
}
.result-stack .result-card {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
}
/* Inside a pair, let the image fill whatever vertical space is left after
   the meta block, instead of using a fixed aspect ratio. */
.result-stack .result-card__image-stack {
  flex: 1 1 0;
  min-height: 0;
}
.result-stack .result-card__image-wrap {
  height: 100%;
  aspect-ratio: auto;
  flex: 1 1 0;
  min-height: 0;
}
.result-stack .result-card__image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
/* Tighter meta so two cards fit within a with-before card's height. */
.result-stack .result-card__meta {
  padding: var(--sp-3) var(--sp-4);
  gap: 3px;
}
.result-stack .result-card__contrib {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
}

/* ============================================================
   Horizontal scroller (results, past work, pieces)
   ============================================================ */
.hscroll {
  position: relative;
  margin-top: var(--sp-3);
}
.hscroll__track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--sp-3) var(--container-pad) var(--sp-6);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.hscroll__track.is-grabbing { cursor: grabbing; }
.hscroll__track::-webkit-scrollbar { display: none; height: 0; width: 0; }
.hscroll__track > * { scroll-snap-align: start; flex-shrink: 0; }
/* Auto-marquee variants: disable scroll-snap and smooth scrolling so the
   JS-driven scrollLeft increment runs cleanly. */
.hscroll--auto .hscroll__track {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.hscroll--auto .hscroll__track > * { scroll-snap-align: none; }

.hscroll__controls {
  position: absolute;
  top: -56px; right: var(--container-pad);
  display: flex;
  gap: 8px;
}
.hscroll__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--bg-panel);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.hscroll__btn:hover { background: var(--accent); color: #1a1209; border-color: var(--accent); }
.hscroll__btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============================================================
   Strategy diagram (reuse from process)
   ============================================================ */
.strategy { padding: var(--sp-10) 0; background: var(--bg-soft); border-block: 1px solid var(--border); }
.process__diagram {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: 1fr clamp(280px, 40vw, 480px) 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
}
.process__svg-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
}
.process__svg { width: 100%; max-width: 480px; height: auto; }
.process__node-desc {
  position: relative;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.process__node-desc h3 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: var(--sp-2);
}
.process__node-desc h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-2);
}
.process__node-desc p {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.55;
  max-width: 36ch;
}
.process__node-desc[data-key="research"]     { grid-column: 1; grid-row: 1; text-align: right; }
.process__node-desc[data-key="strategy"]     { grid-column: 3; grid-row: 1; text-align: left; }
.process__node-desc[data-key="execution"]    { grid-column: 3; grid-row: 2; text-align: left; }
.process__node-desc[data-key="optimization"] { grid-column: 1; grid-row: 2; text-align: right; }
.process__node-desc[data-key="research"] p,
.process__node-desc[data-key="optimization"] p { margin-left: auto; }
.process__node-desc.is-active {
  border-color: var(--border-hi);
  background: rgba(231,168,103,0.05);
}
.process-node circle {
  fill: var(--bg-panel);
  stroke: var(--border-hi);
  stroke-width: 1.5;
  transition: stroke 0.3s var(--ease-out), fill 0.3s var(--ease-out);
}
.process-node text {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.process-node text.process-node__label {
  font-size: 7px;
  letter-spacing: 0.16em;
  fill: var(--text-mute);
  text-transform: uppercase;
}
.process-node:hover circle,
.process-node.is-active circle {
  stroke: var(--accent);
  fill: color-mix(in srgb, var(--accent) 12%, var(--bg-panel));
}
.process-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 6 9;
  opacity: 0.6;
  animation: process-flow 6s linear infinite;
}
@keyframes process-flow { to { stroke-dashoffset: -120; } }
@media (max-width: 880px) {
  .process__diagram {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: var(--sp-5);
  }
  .process__svg-wrap { grid-column: 1; grid-row: 1; }
  .process__svg { max-width: 320px; }
  .process__node-desc { grid-column: 1 !important; text-align: left !important; padding: var(--sp-3) 0; border-top: 1px solid var(--border); border-radius: 0; }
  .process__node-desc[data-key="research"]     { grid-row: 2; }
  .process__node-desc[data-key="strategy"]     { grid-row: 3; }
  .process__node-desc[data-key="execution"]    { grid-row: 4; }
  .process__node-desc[data-key="optimization"] { grid-row: 5; }
  .process__node-desc p { margin-left: 0 !important; }
}

/* ============================================================
   Help (capabilities) grid
   ============================================================ */
.help { padding: var(--sp-10) 0; }
.help__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 1100px) { .help__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .help__grid { grid-template-columns: 1fr; } }

.help-card {
  padding: var(--sp-5);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.help-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
}
.help-card__icon {
  width: 32px; height: 32px;
  color: var(--accent);
}
.help-card__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.help-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.help-card p {
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
}

/* ============================================================
   Pieces (platform tabs)
   ============================================================ */
.pieces { padding: var(--sp-10) 0; background: var(--bg-soft); border-block: 1px solid var(--border); }
.pieces__panels {
  margin-top: var(--sp-7);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hscroll--pieces {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.hscroll--pieces .hscroll__track {
  padding-inline: 0;
}
.pieces__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-4);
  padding: 4px;
  background: rgba(244,239,232,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.pieces__tab {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  color: var(--text-mute);
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
  text-align: center;
  white-space: nowrap;
}
/* Only un-active tabs lighten on hover. Hovering the active tab used to wipe
   its dark text against the cream background. */
.pieces__tab:not(.pieces__tab--active):hover { color: var(--text); }
.pieces__tab--active,
.pieces__tab--active:hover {
  background: var(--text);
  color: #1a1209;
}

/* Mobile: switch tabs to a 3-up grid so they fit cleanly and the pill shape
   stays unbroken. Also tighten the surrounding spacing so the section doesn't
   waste vertical real estate. */
@media (max-width: 600px) {
  .pieces {
    padding: var(--sp-7) 0;
  }
  .pieces .section-intro {
    margin-bottom: var(--sp-4);
  }
  .pieces .section-intro .eyebrow {
    margin-bottom: var(--sp-2);
  }
  .pieces .section-subhead {
    margin-top: var(--sp-3);
  }
  .pieces__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    padding: 3px;
    margin-top: var(--sp-4);
  }
  .pieces__tab {
    padding: 8px 8px;
    font-size: 11.5px;
  }
  .pieces__panels {
    margin-top: var(--sp-5);
  }
}
.pieces__panel { display: none; margin-top: var(--sp-7); }
.pieces__panel--active { display: block; }

/* Platform piece cards */
.piece { flex-shrink: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.piece-card { flex-shrink: 0; background: var(--bg-panel); }

/* YouTube piece — real thumbnail, click-to-play iframe, Watch full video button */
.piece-yt { width: clamp(280px, 80vw, 520px); }
.piece-yt__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  cursor: pointer;
}
.piece-yt__thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.piece-yt__thumb iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.piece-yt__thumb.is-playing { cursor: default; }
.piece-yt__thumb.is-playing .piece-yt__play { display: none; }

.piece-yt__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out);
}
.piece-yt__thumb:hover .piece-yt__play { background: rgba(0,0,0,0.15); }
.piece-yt__play span {
  width: 64px; height: 46px;
  background: #ff0000;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.55);
  transition: transform 0.25s var(--ease-out);
}
.piece-yt__thumb:hover .piece-yt__play span { transform: scale(1.05); }
.piece-yt__play span::after {
  content: ""; width: 0; height: 0;
  border: 11px solid transparent;
  border-left: 16px solid #fff;
  margin-left: 4px;
}

.piece-yt__meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-inline: 4px;
}
.piece-yt__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.piece-yt__channel { font-size: 13px; color: var(--text-mute); }
.piece-yt__metric  { font-size: 12px; color: var(--text-dim); }

.piece-yt__desc {
  margin-top: var(--sp-3);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
  padding-inline: 4px;
}
.piece-yt__watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
  margin-left: 4px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.piece-yt__watch:hover { color: var(--accent-hi); }
.piece-yt__watch .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}
.piece-yt__watch:hover .arrow { transform: translate(2px, -2px); }

/* IG / TikTok piece — real Drive thumbnail, click opens the original post */
.piece-ig {
  width: clamp(240px, 65vw, 300px);
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.piece-ig__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.piece-ig__thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.piece-ig__icon {
  position: absolute; top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.piece-ig__icon svg { width: 22px; height: 22px; }
.piece-ig__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  transition: background-color 0.25s var(--ease-out);
  z-index: 1;
}
.piece-ig__thumb:hover .piece-ig__play { background: rgba(0,0,0,0.18); }
.piece-ig__play > span {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.94);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.55);
  transition: transform 0.25s var(--ease-out);
}
.piece-ig__thumb:hover .piece-ig__play > span { transform: scale(1.05); }
.piece-ig__play > span::after {
  content: "";
  width: 0; height: 0;
  border: 9px solid transparent;
  border-left: 13px solid #1a1209;
  margin-left: 3px;
}

.piece-ig__meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-inline: 4px;
}
.piece-ig__caption {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.piece-ig__author { font-size: 12px; color: var(--text-mute); }
.piece-ig__metric { font-size: 11px; color: var(--text-dim); }

.piece-ig__desc {
  margin-top: var(--sp-3);
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
  padding-inline: 4px;
}
.piece-ig__watch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
  margin-left: 4px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.piece-ig__watch:hover { color: var(--accent-hi); }
.piece-ig__watch .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}
.piece-ig__watch:hover .arrow { transform: translate(2px, -2px); }

/* LinkedIn piece — image preview from Drive, click opens the post in a new tab */
.piece-li-card {
  width: clamp(280px, 75vw, 420px);
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.piece-li-card__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.piece-li-card__thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.piece-li-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  width: 28px; height: 28px;
  background: #0a66c2;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.35);
}
.piece-li-card__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.15));
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.piece-li-card__thumb:hover .piece-li-card__tint { opacity: 1; }

.piece-li-card__meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-inline: 4px;
}
.piece-li-card__caption {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.piece-li-card__author { font-size: 12px; color: var(--text-mute); }
.piece-li-card__metric { font-size: 11px; color: var(--text-dim); }
.piece-li-card__desc {
  margin-top: var(--sp-3);
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
  padding-inline: 4px;
}
.piece-li-card__view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
  margin-left: 4px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.piece-li-card__view:hover { color: var(--accent-hi); }
.piece-li-card__view .arrow { transition: transform 0.2s var(--ease-out); }
.piece-li-card__view:hover .arrow { transform: translate(2px, -2px); }

/* LinkedIn piece (text post) */
.piece-li {
  width: clamp(280px, 85vw, 420px);
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e2e2e2;
  box-shadow: var(--shadow-card);
}
.piece-li__head { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.piece-li__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #c7d2ec, #8d99c6);
}
.piece-li__name { font-weight: 600; font-size: 14px; color: #111; }
.piece-li__title { font-size: 12px; color: #555; }
.piece-li__time { font-size: 11px; color: #6e6e6e; margin-top: 2px; }
.piece-li__body {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1a1a1a;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.piece-li__metric { margin-top: 14px; padding-top: 10px; border-top: 1px solid #ececec; font-size: 12px; color: #0a66c2; font-weight: 600; }
/* Wrap link around the mockup card so the whole thing is clickable */
.piece-li-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.piece-li-link:hover { transform: translateY(-3px); }

.piece-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.piece-metrics span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--text-faint);
}

/* ============================================================
   Tools (single-row marquee loop)
   ============================================================ */
.tools { padding: var(--sp-10) 0; }
/* Tools scroller: a hscroll variant with mask gradient and slightly tighter
   gap. Drag/swipe controlled via wireHScrolls + wireAutoMarquee. */
.hscroll--tools {
  margin-top: var(--sp-3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hscroll--tools .hscroll__track {
  gap: var(--sp-4);
  padding-block: var(--sp-3);
}

.tool-card {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  aspect-ratio: 1 / 1;
  padding: var(--sp-4);
  background: rgba(244,239,232,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              background-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  background: rgba(244,239,232,0.05);
  box-shadow: 0 14px 32px -16px rgba(0,0,0,0.5);
}
.tool-icon {
  width: 36px; height: 36px;
  background-color: var(--text-mute);
  -webkit-mask: var(--icon-url) center / contain no-repeat;
          mask: var(--icon-url) center / contain no-repeat;
  transition: background-color 0.3s var(--ease-out);
}
.tool-card:hover .tool-icon { background-color: var(--text); }
.tool-icon--fallback {
  background-color: transparent !important;
  -webkit-mask: none !important; mask: none !important;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-mute);
  border: 1px dashed var(--border-hi);
  border-radius: 8px;
}
.tool-name {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: -0.01em;
  text-align: center;
}

/* ============================================================
   Q&A accordion
   ============================================================ */
.qa { padding: var(--sp-10) 0; background: var(--bg-soft); border-block: 1px solid var(--border); }
.qa__list {
  margin-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.qa-item {
  border-bottom: 1px solid var(--border);
}
.qa-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  text-align: left;
  font-family: inherit;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.2s var(--ease-out);
}
.qa-item__q:hover { color: var(--accent); }
.qa-item__q::after {
  content: "+";
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), color 0.2s var(--ease-out);
}
.qa-item.is-open .qa-item__q::after { transform: rotate(45deg); color: var(--accent); }
/* Grid-template-rows trick: animates 0fr -> 1fr (which is collapsed -> auto)
   smoothly regardless of content length, with no max-height guessing. */
.qa-item__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s cubic-bezier(0.32, 0.72, 0.18, 1),
              opacity 0.3s ease;
}
.qa-item__a > * {
  overflow: hidden;
  min-height: 0;
}
.qa-item.is-open .qa-item__a {
  grid-template-rows: 1fr;
  opacity: 1;
}
.qa-item__a-inner {
  padding: 0 0 var(--sp-6) 0;
  max-width: 78ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(244,239,232,0.82);
}

/* ============================================================
   Tab CTA (closes each tab before shared contact section)
   ============================================================ */
.tab-cta {
  padding: var(--sp-10) 0;
  text-align: center;
}
.tab-cta__headline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
}
.tab-cta__hint { display: flex; justify-content: center; }

/* ============================================================
   Contact (shared)
   ============================================================ */
.contact { padding: var(--sp-9) 0 var(--sp-10); text-align: center; border-top: 1px solid var(--border); background: var(--bg); }
.contact__headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: var(--sp-7);
}
.contact__form {
  display: flex; flex-direction: column; gap: var(--sp-4);
  text-align: left;
  margin-bottom: var(--sp-8);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea {
  background: rgba(244,239,232,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
  font-family: var(--font-sans);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(231,168,103,0.06);
}
.form-footer { display: flex; justify-content: center; margin-top: var(--sp-3); }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn__label::after { content: "..."; }

.form-status {
  margin: var(--sp-6) auto 0;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--border);
  max-width: 60ch;
}
.form-status[data-state="success"] {
  background: rgba(123,217,178,0.06);
  border-color: rgba(123,217,178,0.30);
  color: #c8f3df;
}
.form-status[data-state="error"] {
  background: rgba(238,120,120,0.05);
  border-color: rgba(238,120,120,0.30);
  color: #ffd5d5;
}

.email-large {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-5) var(--sp-3);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s var(--ease-out);
}
.email-large:hover { color: var(--accent); }
.email-large__hint {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-variation-settings: normal;
}
.contact__socials {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.contact__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center; justify-content: center;
  color: var(--text-mute);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.contact__socials a:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(244,239,232,0.04);
}
.contact__socials svg { width: 16px; height: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding: var(--sp-9) 0 var(--sp-6); background: var(--bg-soft); border-top: 1px solid var(--border); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-8);
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.footer-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.footer-tagline {
  color: var(--text-mute);
  max-width: 44ch;
  line-height: 1.55;
  font-size: 14px;
}
.footer-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--sp-4);
}
.footer-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-list a {
  font-size: 14px;
  color: var(--text-mute);
  transition: color 0.25s var(--ease-out);
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-list a:hover { color: var(--text); }
.footer-list a[data-external="true"]::after { content: "↗"; font-size: 12px; color: var(--text-faint); }
.site-footer__rule { height: 1px; background: var(--border); margin-block: var(--sp-5); }
.site-footer__bottom {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #1a1209;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 100;
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
