/* ═══════════════════════════════════════════════════
   PORTFOLIO — Yen Pham / Ninety Four
   ═══════════════════════════════════════════════════ */

/* Font: itc-avant-garde-gothic-pro — loaded via Adobe Typekit in HTML <head>
   @link https://use.typekit.net/sbr7ttg.css                                  */

/* ── Design tokens ──────────────────────────────────── */

@import url('https://fonts.cdnfonts.com/css/hooney-vibes-free');

:root {
  /* Portfolio palette — matches Ninety Four source */
  --bg:           #ffffff;
  --text:         #30332F;
  --text-muted:   #565656;
  --text-ghost:   rgba(48,51,47,0.055);
  --accent:       #FFC509;    /* yellow */
  --charcoal:     #181a18;
  --gridline:     rgba(48,51,47,0.10);

  /* Solutions-component compatibility tokens */
  --swatch--charcoal:       #181a18;
  --swatch--brand-inkwell:  #1e201e;
  --swatch--hark-white:     #f5f5f3;
  --swatch--gray-3:         rgba(38, 38, 35, 0.22);
  --swatch--brand-laguna:   #FFC509;
  --swatch--light-100-o20:  rgba(255, 246, 249, 0.534);
  --swatch--brand-text:     #30332F;

  /* Spacing tokens (solutions compat) */
  --sizes--6-5rem:    6.5rem;
  --sizes--4-5rem:    4.5rem;
  --sizes--4rem:      4rem;
  --sizes--3-75rem:   3.75rem;
  --sizes--3rem:      3rem;
  --sizes--2-75rem:   2.75rem;
  --sizes--2-5rem:    2.5rem;
  --sizes--2rem:      2rem;
  --sizes--1-875rem:  1.875rem;
  --sizes--1-25rem:   1.25rem;
  --sizes--1rem:      1rem;
  --sizes--0-875rem:  0.875rem;
  --sizes--0rem:      0rem;
  --sizes--10rem:     10rem;
  --radius--x-small:  6px;

  /* Layout */
  --nav-h:  4rem;
  --pad-x:  clamp(1.5rem, 3rem, 4.5rem);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  overflow-x: hidden;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1 {
  font-size: clamp(3.5rem, 12vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--swatch--hark-white);
  padding-top: 4rem;
}
/* ── Utility: container ─────────────────────────────── */
.u-container {
  width: 100%;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ── Utility: 12-col grid ───────────────────────────── */
.u-grid-above {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(0.5rem, 1vw, 1rem);
}

.u-column-2  { grid-column: span 2; }
.u-column-3  { grid-column: span 3; }
.u-column-4  { grid-column: span 4; }
.u-column-5  { grid-column: span 5; }
.u-column-6  { grid-column: span 6; }
.u-column-8  { grid-column: span 8; }
.u-column-12 { grid-column: span 12; }

/* Solutions-specific column positioning */
.solutions-item_body.u-column-3 { grid-column: 6 / span 3; }
.solutions-item_no.u-column-3   { grid-column: 10 / span 3; }

/* ── Utility: text styles ───────────────────────────── */
.u-text-style-h1 {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.0;
}
.u-text-style-h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
}
.u-text-style-h5 {
  font-size: clamp(0.9rem, 1.4vw, 1.125rem);
  font-weight: 600;
}
.u-text-style-h6 {
  font-size: clamp(0.8rem, 1vw, 0.9375rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.u-text-style-large {
  font-size: clamp(0.8rem, 1.1vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.7;
}
.u-text-style-small {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--swatch--light-100-o20);
}
.u-text-style-display {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: clamp(6rem, 13vw, 15rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

/* ══════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════ */
.pf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.4rem var(--pad-x);
  color: var(--text);
  transition: color 0.4s ease;
  font-size: .6rem;
   /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

}

.page_wrap.dark .pf-nav { color: var(--swatch--hark-white); }

.pf-logo {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pf-nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pf-nav-links a::after { content: '.'; }

/* ══════════════════════════════════════════════════════
   HOME — HERO  (s-hero / s-scene two-scene + gooey mask)
   Adapted from Ninety Four source: index-cd227f7b.html
   ══════════════════════════════════════════════════════ */

/* Wrapper clips both scenes; cursor:none bubbles inward */
.hero-wrapper {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  cursor: none;
}

/* ── Front scene ────────────────────────────────── */
.s-hero {
  position: absolute;
  inset: 0;
  background: #ffffff;
  color: var(--text);
}

.s__nav {
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-start;
  padding: 1.25rem var(--pad-x);
  position: fixed; /* Keeps it at the top while scrolling */

  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  /* Make sure it stays above other content */
  z-index: 100;
}

.s__logo {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.s__nav-links {
  display: flex;
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  list-style: none;
  gap: 2rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.s__nav-links a { text-decoration: none; color: inherit;}
.s__nav-links a:hover { opacity: 0.6; }
.s__nav-links li { cursor: none; }

/* Bio block — lower-left */
.s__bio {
  position: absolute;
  left: var(--pad-x);
  top: 42vh;
  max-width: 45.5ch;
  z-index: 3;
}
.s__bio-name {
  font-size: clamp(0.55rem, 0.95vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text);
}
.s__bio-text {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Giant "1994" + portrait overlay */
.s__year {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.s__year-word {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 3rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 96vw;
  font-weight: 800;
  font-size: clamp(6rem, 17.15vw, 25rem);
  line-height: 0.88;
  color: var(--text);
  letter-spacing: clamp(-0.48rem, -0.65vw, -0.5rem);
  white-space: nowrap;
}

.portrait-anchor {
  position: relative;
  display: inline-block;
}

.s__portrait {
  position: absolute;
  left: calc(50% + 3rem); /* move 1.5rem left */
  bottom: calc(0.06em + 2rem); /* move 2rem up */
  width: clamp(9rem, 20vw, 22rem);
  height: clamp(18rem, 58vh, 43rem);
  transform: translateX(-50%);
  z-index: 2;
}

.figure-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.s__portrait img {
  position: absolute;
  left: 50%;
  bottom: -0.08em;
  width: 150%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
}
@media screen and (max-width: 991px) {
  .hero-wrapper { min-height: 560px; }

  .s__year-word {
    bottom: clamp(1.75rem, 7vh, 4rem);
    font-size: clamp(5.5rem, 20vw, 14rem);
  }

  .s__portrait {
    width: clamp(8.5rem, 30vw, 18rem);
    height: clamp(18rem, 54vh, 36rem);
  }
}

@media screen and (max-width: 767px) {
  .hero-wrapper {
    height: 100svh;
    min-height: 620px;
  }

  .s__year-word {
    bottom: clamp(2.75rem, 13vh, 6.25rem);
    font-size: clamp(3.9rem, 17vw, 8rem);
    letter-spacing: -0.18rem;
  }

  .s__portrait {
    width: clamp(7.25rem, 36vw, 12rem);
    height: clamp(17rem, 50vh, 28rem);
  }

  .s__portrait img { width: 165%; }
}

@media screen and (max-width: 480px) {
  .s__year-word {
    bottom: clamp(3.5rem, 15vh, 7rem);
    font-size: clamp(3.15rem, 16vw, 5.35rem);
    letter-spacing: -0.13rem;
  }

  .s__portrait {
    width: clamp(6.5rem, 40vw, 9rem);
    height: clamp(15rem, 47vh, 24rem);
  }

  .s__portrait img { width: 172%; }
}

/* Marquee strip */
.s__marquee {
  position: absolute;
  bottom: -2rem;
  left: 0;
  width: 100%;
  overflow: hidden;
  height: clamp(2.5rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  z-index: 4;
}
.s__marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 12s linear infinite;
}
.s__marquee-text {
  font-weight: 900;
  font-size: clamp(0.6rem, 0.9vw, 1rem);
  letter-spacing: 1px;
  color: var(--accent);
  padding-right: 3vw;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Back scene (revealed by gooey cursor mask) ─── */
.s-scene {
  position: absolute;
  inset: 0;
  background: #ffffff;
  color: var(--text);
  -webkit-mask: url(#mask);
  mask: url(#mask);
  pointer-events: none;
  z-index: 1;
}
.s-scene .s__nav { color: var(--text); }
.s-scene .s__logo {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.s-scene .s__marquee-text { color: var(--text); }

/* Photo in back scene */
.s__illustration {
  position: absolute;
  right: -10%;
  bottom: -1.5rem;
  width: 55%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.s__illustration img {
  width: 416px;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

/* ── Custom cursor ────────────────────────────────── */
.cursor {
  position: fixed;
  top: -1.5rem;
  left: -1.5rem;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  border-radius: 50%;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ── SVG gooey mask ───────────────────────────────── */
.s-svg {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ══════════════════════════════════════════════════════
   STORY — HERO BANNER
   ══════════════════════════════════════════════════════ */
.story-hero {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Vertical accent lines */
.story-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--gridline);
  pointer-events: none;
  z-index: 3;
}
.story-line:nth-child(1) { left: 19%; }
.story-line:nth-child(2) { left: 57%; }

/* Left text */
.story-left {
  position: absolute;
  left: var(--pad-x);
  bottom: 18%;
  z-index: 3;
  max-width: 36ch;
}

.story-name {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.story-bio-text {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.85;
  color: var(--text);
}

/* Photo */
.story-photo-wrap {
  position: absolute;
  right: 4%;
  top: var(--nav-h);
  bottom: 5%;
  width: 48%;
  z-index: 2;
}

.story-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.story-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(196,106,75,0.03),
    rgba(196,106,75,0.06)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Giant year */
.story-year {
  position: absolute;
  bottom: -0.06em;
  left: 0;
  right: 0;
  z-index: 1;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: clamp(9rem, 22vw, 25rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  padding-left: var(--pad-x);
  pointer-events: none;
  user-select: none;
}

/* ══════════════════════════════════════════════════════
   SOLUTIONS COMPONENT — full styles
   (all selectors kept identical to harkcap.com source)
   ══════════════════════════════════════════════════════ */

/* Sol-hero */
.sol-hero_section {
  width: 100%;
  color: var(--swatch--hark-white);
  position: relative;
}

.sol-hero_wrap { position: relative; }

.sol-hero_contain.u-container {
  position: relative;
  container-name: threshold-medium;
}

.sol-hero_layout {
  height: 90dvh;
  padding-bottom: var(--sizes--6-5rem);
  flex-flow: column;
  justify-content: flex-end;
  align-items: flex-start;
  display: flex;
  position: relative;
}

.sol-hero_top-abs {
  align-items: center;
  width: 100%;
  height: 100svh;
  display: flex;
  position: absolute;
  inset: -6% 0% auto;
}

.sol-hero_title_wrap { transform-origin: 0 0; }
.sol-hero_title { transform-origin: left center; }

.sol-intro_wrap.u-grid-above { width: 100%; }

/* Scroll-bg panels */
.scroll-bg_wrap {
  background-color: var(--swatch--brand-inkwell);
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  inset: 0%;
  z-index: -1;
}

.scroll-bg {
  background-color: var(--swatch--charcoal);
  width: 33.3333%;
  height: 0%;
  position: relative;
}

.sol-trigger { height: 150svh; }

/* Solutions section */
.solutions_section {
  background-color: var(--swatch--charcoal);
  color: var(--swatch--hark-white);
  position: relative;
}

.page-home .solutions_contain.u-container,
.page-story .solutions_contain.u-container {
  padding-top: 0;
  padding-bottom: 0;
}

.solutions_contain.u-container {
  flex-flow: column;
  display: flex;
  position: relative;
  container-name: threshold-medium;
}

.solutions-content_layout {
  flex-flow: column;
  display: flex;
}

.solutions-item_wrap { color: var(--swatch--light-100-o20); }

/* Hairline rule — starts at 0%, GSAP animates to 100% */
.solutions-item_line {
  background-color: var(--swatch--gray-3);
  opacity: 0.5;
  width: 0%;
  height: 0.5px;
  position: absolute;
  inset: 0% 0% auto auto;
  overflow: clip;
}

.solutions-item-content_layout.u-grid-above {
  width: 100%;
  padding-top: var(--sizes--1-875rem);
  padding-bottom: var(--sizes--3rem);
  background-color: var(--swatch--charcoal);
  color: var(--swatch--hark-white);
  position: relative;
}

.sticky_wrapper {
  grid-row-gap: var(--sizes--2rem);
  flex-flow: column;
  justify-content: flex-end;
  display: flex;
  position: relative;
}

/* Mouse-tracking highlight line — yellow accent */
.solutions-line_highlight {
  background-image: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    #FFC509 50%,
    rgba(255,197,9,0) 100%
  );
  width: 30%;
  height: 100%;
  position: absolute;
  inset: 0% auto auto 0%;
  pointer-events: none;
  transform: translateX(-50%);
}

@media (max-width: 1024px) and (pointer: coarse) {
  .solutions-line_highlight { display: none; }
}

/* Sol-intro number label */
.sol-no.u-text-style-display {
  padding-top: var(--sizes--1rem);
}

/* Section-title pill */
.section-title_wrap.is-alt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,242,238,0.45);
}

.section-title_icon.is-alt-2 {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Cleanse/quote section */
.cleanse_section {
  background-color: var(--bg);
}

.cleanse_contain.u-container {}

.cleanse_layout {
  height: 100svh;
  padding-right: var(--sizes--10rem);
  padding-left: var(--sizes--10rem);
  justify-content: center;
  align-items: center;
  display: flex;
}

.cleanse_text.u-text-style-h3 {
  text-align: center;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════ */
.contact-page {
  min-height: 100dvh;
  background: var(--charcoal);
  color: var(--swatch--hark-white);
  padding: var(--nav-h) var(--pad-x) 4rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4rem;
}

/* Override nav color on contact page */
.contact-nav { color: var(--swatch--hark-white); }

.contact-heading {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: clamp(3.5rem, 12vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--swatch--hark-white);
  padding-top: 1.5rem;
}

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--swatch--hark-white);
}

.contact-info-block + .contact-info-block { margin-top: 2.5rem; }

.contact-info-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 0.4rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(243,242,238,0.18);
  padding: 1.25rem 0 0.5rem;
}

.form-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--swatch--hark-white);
  margin-bottom: 0.3rem;
}

.form-input,
.form-select,
.form-textarea {
  background: none;
  border: none;
  outline: none;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 0.8125rem;
  color: rgba(243,242,238,0.45);
  padding: 0.35rem 0;
  -webkit-appearance: none;
}

.form-select { cursor: pointer; }
.form-select option { background: var(--charcoal); color: var(--swatch--hark-white); }

.form-textarea { resize: none; min-height: 3rem; }

.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '∨';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: rgba(243,242,238,0.4);
  pointer-events: none;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: rgba(243,242,238,0.55);
  cursor: pointer;
}

.form-checkbox input[type="radio"] {
  width: 13px; height: 13px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-submit { margin-top: 1.75rem; }

.btn-submit {
  background: var(--swatch--hark-white);
  color: var(--charcoal);
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: background 0.25s, color 0.25s;
}
.btn-submit:hover { background: var(--accent); color: var(--swatch--hark-white); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.pf-footer {
  padding: 2.5rem var(--pad-x);
  background: var(--charcoal);
  color: rgba(243,242,238,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.pf-footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pf-footer-links a:hover,
.pf-nav-links a:hover { opacity: 0.6; }

/* ══════════════════════════════════════════════════════
   MY WORK — project cards strip
   ══════════════════════════════════════════════════════ */
.work-section {
  background: var(--bg);
  padding-top: 5rem;
  padding-bottom: 0;
}

/* Section label */
.work-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 var(--pad-x) 2.5rem;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.work-section-label::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Horizontal scroll strip */
.work-cards-strip {
  display: flex;
  gap: 1.25rem;
  padding: 0 var(--pad-x) 5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.work-cards-strip::-webkit-scrollbar { display: none; }

.work-card {
  flex: 0 0 calc((100vw - (var(--pad-x) * 2) - 3.75rem) / 4);
  min-width: 200px;
  max-width: 400px;
  cursor: pointer;
}
.work-card-img {
  overflow: hidden;
  background: #e8e8e4;
  border-radius: 3px;
  position: relative;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-card-img img { transform: scale(1.04); }
.work-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.work-card-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.75rem;
}
.work-card-no {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.work-card-name {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════
   MY WORK — numbered list table
   ══════════════════════════════════════════════════════ */
.work-list-section {
  padding: 20vh var(--pad-x) 6rem;
}

.work-heading {
  font-size: clamp(4rem, 11vw, 13rem);
  font-weight: 900;
  line-height: 0.88;
  color: var(--text);
  margin-bottom: 3.5rem;
}

.work-table-header,
.work-table-row {
  display: grid;
  grid-template-columns: 3rem 1fr 15rem 4.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--gridline);
  column-gap: 1rem;
  align-items: center;
}
.work-table-row:last-child { border-bottom: 1px solid var(--gridline); }

.work-table-header {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-table-row {
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: default;
}
.work-table-row:hover { opacity: 0.55; }
.work-table-header-link {
  display: contents;
}

.work-no {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
}
.work-title {
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
}
.work-pub {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
}
.work-year {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: right;
}

/* ══════════════════════════════════════════════════════
   TAGLINE SECTION — "Seamless UI. / Automated Workflows."
   Replaces the cleanse quote section on the home page
   ══════════════════════════════════════════════════════ */
/* .tagline-section {
  background: var(--bg);
  padding: 6rem var(--pad-x) 8rem;
  border-top: 1px solid var(--gridline);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: clamp(2rem, 5vw, 6rem);
}

.tagline-stack { display: flex; flex-direction: column; }

.tagline-line {
  font-size: clamp(2.5rem, 8.5vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.tagline-line.is-dark   { color: var(--text); }
.tagline-line.is-accent { color: var(--accent); }

.tagline-desc {
  max-width: 45.5ch;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
} */

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media screen and (max-width: 991px) {
  /* Hero */
  .s__bio {
    top: auto;
    bottom: 40%;
    max-width: 40ch;
  }
  .s__bio-name { font-size: 0.7rem; }
  .s__bio-text { font-size: 0.6rem; }
  .s__year p { font-size: clamp(10rem, 28vw, 24rem); }
  .s__portrait { width: 52vw; }
  .cursor, .s-svg { display: none; } /* disable gooey on touch */

  /* Story */
  .story-hero { min-height: auto; }
  .story-line { display: none; }
  .story-left {
    position: relative;
    left: auto; bottom: auto;
    max-width: none;
    padding: 3rem var(--pad-x) 2rem;
  }
  .story-photo-wrap {
    position: relative;
    right: auto; top: auto; bottom: auto;
    width: 100%;
    height: 70vw;
    min-height: 280px;
  }
  .story-year { font-size: 24vw; bottom: -0.04em; }

  /* Solutions grid → flex on mobile */
  .u-grid-above {
    display: flex;
    flex-wrap: wrap;
  }
  .solutions-item_body.u-column-3,
  .solutions-item_no.u-column-3 {
    grid-column: unset;
  }
  .solutions_contain.u-container {
    padding-top: 5rem;
    padding-bottom: 1rem;
  }
  .solutions-item-content_layout.u-grid-above {
    padding-top: var(--sizes--2-75rem);
    padding-bottom: var(--sizes--2-75rem);
    column-gap: 0;
    row-gap: 0;
  }
  .solutions-item_title.u-column-3 {
    padding-bottom: var(--sizes--2-75rem);
    width: 100%;
    flex: 0 0 100%;
  }
  .solutions-item_body.u-column-3 {
    padding-bottom: var(--sizes--3-75rem);
    width: 100%;
    flex: 0 0 100%;
  }
  .solutions-item_no.u-column-3 {
    width: 100%;
    flex: 0 0 100%;
    margin-top: var(--sizes--2-5rem);
  }
  .sol-no.u-text-style-display { text-align: right; }

  /* Cleanse */
  .cleanse_layout {
    padding-left: 0;
    padding-right: 0;
    height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .cleanse_text.u-text-style-h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  /* Contact */
  .contact-body { grid-template-columns: 1fr; }
  .contact-heading { font-size: clamp(3rem, 15vw, 8rem); }

  /* Work section */
  .work-card {
    flex-basis: clamp(220px, 70vw, 360px);
  }
  .work-table-header,
  .work-table-row { grid-template-columns: 2.5rem 1fr 5rem; }
  .work-pub { display: none; }
  .work-heading { font-size: clamp(3rem, 14vw, 8rem); }

  /* Tagline */
  .tagline-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem var(--pad-x) 5rem;
  }
  .tagline-desc { max-width: none; }
}

@media screen and (max-width: 767px) {
  .s__nav-links { display: none; }
  .pf-nav-links  { display: none; }
  .s__bio {
    top: auto;
    bottom: 60%;
    max-width: 80vw;
  }
  .s__year p { font-size: clamp(7rem, 22vw, 16rem); }
  .s__portrait { width: 65vw; }
  .sol-hero_layout { padding-bottom: var(--sizes--2rem); }
  .form-row { grid-template-columns: 1fr; }
}



  /* ── STORY SECTION ── */
  .story {
    position: relative;
    width: 100vw;
    height: 112vh;
    overflow: hidden;
    background: #fff;
  }

  /* ── BIG HEADING ── */
  /* Sits behind the photo (z-index 1) */
  .story__heading {
    position: absolute;
    top: 5.25rem;
    left: 3.75rem;
    font-size: clamp(3.5rem, 12vw, 13rem);
    font-weight: 900;
    line-height: 0.88;
    color: #67676747;
    letter-spacing: -0.0;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    z-index: 200;
    mix-blend-mode: multiply;
  }

  /* ── PHOTO ── */
  /* Centered, bottom-anchored, sits over heading */
  .story__photo {
    position: absolute;
    bottom: -2rem;
    right: -8rem;
    height: 75vh;
    z-index: 2;
  }

  .story__photo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
  }

  /* ── CONTENT: quote + sig + bio ── */
  /* Bottom-right, sits in front of everything */
  .story__content {
    position: absolute;
    left: 4.5rem;
    bottom: 4.5rem;
    width: 400px;
    z-index: 3;
  }

  .story__quote {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.005em;
    color: #202020;
    margin-bottom: 2rem;
  }

  /* Row: [sig + label] | [bio paragraph] */
  .story__footer {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
  }

  .story__sig-col {
    flex-shrink: 0;
    min-width: 110px;
  }

  .story__signature {
    font-family: 'Hooney Vibes Free', sans-serif;                                             
    font-size: 2.875rem;
    font-weight: 300;
    color: #5C5959;
    line-height: 1;
    margin-bottom: 5rem;
  }

  .story__label {
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.55;
    color: #5C5959;
  }

  .story__bio {
    font-size: 0.675rem;
    font-weight: 300;
    line-height: 1.85;
    color: #555;
  }

/* ══════════════════════════════════════════════════════
   NAV — contrast handling (sits above the yellow cursor,
   flips light/dark depending on the section behind it)
   ══════════════════════════════════════════════════════ */

/* Keep the nav above the gooey cursor (z-index 999) so the
   links are always crisp and never washed out by the blob. */
.pf-nav, .s__nav { z-index: 1000; }
.pf-nav-links, .s__nav-links { position: relative; z-index: 2; }

/* default = dark text (for the light backgrounds that dominate the page) */
.pf-nav-links a,
.s__nav-links a,
.s__nav-links li {
  color: #14160f;
  transition: color 0.45s ease, opacity 0.3s ease;
  /* animated underline */
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
}
.pf-nav-links a:hover,
.s__nav-links a:hover { opacity: 1; background-size: 100% 1px; }

/* logo transitions colour too */
.pf-logo, .s__logo { transition: color 0.45s ease; }

/* only when a dark section is behind the nav → light text */
.pf-nav.on-dark .pf-nav-links a,
.s__nav.on-dark .s__nav-links a,
.s__nav.on-dark .s__nav-links li,
.pf-nav-links.on-dark a,
.s__nav-links.on-dark a { color: #ffffff; }

.pf-nav.on-dark .pf-logo,
.s__nav.on-dark .s__logo,
.pf-nav.contact-nav .pf-logo { color: #ffffff; }


:root{
  --theme--background:#000;            /* dark theme used on the home page */
  --theme--text:#fff;
 
  /* Type families — original custom faces fall back to system fonts */
  --font--primary-family:"La Ivyprestodisplay","Times New Roman",serif;     /* display */
  --font--secondary-family:"LA Neue Montreal",Arial,sans-serif;             /* body    */
  --font--tertiary-family:"LA Playground",Tahoma,cursive;                   /* accent  */
  --display--font-family:var(--font--primary-family);
  --all-headings--heading-font-weight:100;
  --all-headings--heading-letter-spacing:-.03em;
 
  /* Sizing scale */
  --size--0rem:0rem; --size--0-5rem:.5rem; --size--1rem:1rem;
  --size--1-5rem:1.5rem; --size--2rem:2rem; --size--3rem:3rem;
  --size--4rem:4rem; --size--5rem:5rem; --size--6rem:6rem;
  --line-height--1em:1em; --line-height--1-1em:1.1em; --line-height--1-5em:1.5em;
 
  /* Layout */
  --container--main:82rem;
  --section-space--main:7rem;
  --section-space--small:5rem;
  --site--gutter:2rem;
 
  /* Grid column templates (referenced via var() by the original markup) */
  --grid-1:minmax(0,1fr);
  --grid-3:repeat(3,minmax(0,1fr));
  --grid-4:repeat(4,minmax(0,1fr));
}
/* ---- shared utilities ---- */
.u-container{
  max-width:var(--container--main);
  width:100%;
  margin-inline:auto;
  padding-block:var(--section-space--main);
  position:relative;
}
.u-grid-custom{
  display:grid;
  gap:var(--site--gutter);
  grid-template-columns:var(--grid-1);
}
.u-text-style-tertiary{font-family:var(--font--tertiary-family);}
 
 
/* ===========================================================================
   2. HOME GALLERY  (.home_gallery)
   The section is PINNED while you scroll a runway; over that scroll the 12
   artworks fly in from deep 3D space (pushed back + rotated + scaled + faded)
   and converge into the flat grid. JS drives every image's transform from
   scroll progress (a vanilla port of the original GSAP scrub + scatter math).
   =========================================================================== */
.home_gallery{
  position:relative;
  height:250vh;                          /* scroll runway (≈ original end "+=150%") */
  background-color:var(--theme--background);
}
.home_gallery_pin{                       /* the pinned viewport-height stage */
  position:sticky;
  top: 10vh;
  height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  container-type:inline-size;            /* enables cqw units on the heading */
}
.home_gallery_container.u-container{padding-block:0;width:100%;}
 
.home_gallery_grid.u-grid-custom{
  position:relative;
  gap:var(--size--1rem);
  grid-template-columns:var(--grid-4);
  perspective:1312px;                    /* matches original perspective */
  transform-style:preserve-3d;
}
.home_gallery_img{
  aspect-ratio:1;
  height:100%;
  object-fit:cover;
  pointer-events:none;
  transform-style:preserve-3d;
  will-change:transform,opacity;
  opacity:0;                             /* JS sets the real per-frame values */
}
 
.home_gallery_absolute{
  position:absolute;
  top: 5rem;
  inset:0;
  z-index:5;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:var(--size--0-5rem);
  pointer-events:none;     
}
.home_gallery_eyebrow{
  font-family:var(--font--tertiary-family);
  font-size:var(--size--3rem);
  line-height:var(--line-height--1em);
}
.home_gallery_heading{
  margin-bottom:var(--size--2rem);
  font-family:var(--display--font-family);
  font-size:12cqw;
  line-height:1.2;
  letter-spacing:var(--all-headings--heading-letter-spacing);
}
.home_gallery_logo{width:4.6875rem;height:2.5rem;}
 
 :root{
  --bg-project:#171717;
  --bg-footer:#040508;
  --light:#d8d8d8;
  --light-50:rgba(216,216,216,.5);
  --light-60:rgba(216,216,216,.6);
  --dark-font:#434343;
  --cream:#e6e4e2;
  --line:#2f323b;
  --line-2:#24262e;
  --grid-dot:#2a2c31;
         /* used very sparingly */

  --font-display:"Familjen Grotesk",system-ui,sans-serif;
  --font-body:"Familjen Grotesk",system-ui,sans-serif;
  --font-label:"Martian Mono",ui-monospace,monospace;

  --ease:cubic-bezier(.4,0,.2,1);
  --container:1728px;
  --pad:2rem;
}
/* ============================================================
   PROJECT  (sticky left / scrolling right split)
   ============================================================ */
.project{
  position:relative;
  background:var(--bg-project);
  overflow:visible;
  padding:4rem;
}
.project-grid{
  display:grid;grid-template-columns:1fr 2fr;gap:3rem;
  padding-top:4rem;
}
/* left column sticks */
.left-block{
  position:sticky;
  top:4rem;
  align-self:start;
  min-height:calc(100dvh - 4rem);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:5rem 0 4rem;
  gap:2.5rem;
}
.left-block .project-title {
  color: #eaeaea;
  margin: 2rem 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
}
.backlink{
  margin-bottom:1rem;display:inline-block; color: #5C5959;
}
.backlink:hover{
  color: var(--accent);
}
.line-plus{position:relative;height:1px;background:rgba(216,216,216,.2);width:100%}
.title-block h1{margin:1.6rem 0 1rem}
.subtitle{color:var(--light-60);max-width:22rem; font-size: .875rem;}
.cats{margin-top:1.6rem;display:flex;flex-direction:column;gap:.15rem; list-style: none;}
.cats li{font-size:1.0625rem;color:var(--light); font-size: .75rem; margin: .35rem 0;}

/* tabs */
.tabs{display:flex;gap:1.6rem;border-bottom:1px solid var(--line);margin-bottom:1.25rem;flex-wrap:wrap}
.tab{
  background:none;border:none;cursor:pointer;color:var(--light);
  font-family:var(--font-label);text-transform:uppercase;font-size:.72rem;
  padding-bottom:.6rem;opacity:.4;transition:opacity .3s var(--ease);position:relative;
}
.tab:hover{opacity:1}
.tab.active{opacity:1}
.tab.active::after{content:"";position:absolute;left:0;bottom:-1px;width:100%;height:2px;background:var(--light)}
.tab-panels{position:relative;min-height:9.5rem}
.tab-panel{
  position:absolute;inset:0;opacity:0;visibility:hidden;margin-top: 2rem;
  transition:opacity .5s var(--ease);pointer-events:none;
}
.tab-panel.active{opacity:1;visibility:visible;pointer-events:auto;position:relative; font-size: .75rem; margin-top: 2rem; color: #a2a2a2; line-height: 1.5;}
.tab-panel ul{margin-top: 2rem; display:flex;flex-direction:column;gap:.5rem;list-style: none;}
.tab-panel li{position:relative;padding-left:1.1rem;color:var(--light)}
.tab-panel li::before{content:"+";position:absolute;left:0;color:var(--light-50)}

/* view button with sliding arrow */
.btn-link{
  display:inline-flex;align-items:center;gap:.6rem;position:relative;
  font-family:var(--font-label);text-transform:uppercase;font-size:.72rem;
  padding-bottom:.4rem;color:var(--light);width:max-content;
}
.btn-link .ul{position:absolute;left:0;bottom:0;height:1px;width:100%;background:var(--light);
  transform:scaleX(1);transform-origin:right;transition:transform .35s var(--ease)}
.btn-link:hover .ul{transform:scaleX(0)}
.btn-link .arrow{transition:transform .35s var(--ease)}
.btn-link:hover .arrow{transform:translateX(4px)}

.project-nav{
  border-top:1px solid rgba(216,216,216,.2);padding-top:1rem;
  display:flex;justify-content:space-between;
}
.project-nav:hover {
  color: var(--accent);
}
/* right column = scrolling gallery */
.right-block{
  padding:5rem 0 6rem;
  display:grid;
  gap:1.5rem;
}
@media screen and (max-width: 991px) {
  .project{
    padding:4rem var(--pad-x);
  }

  .project-grid{
    grid-template-columns:1fr;
  }

  .left-block{
    position:relative;
    top:auto;
    min-height:auto;
    height:auto;
    padding:4rem 0 2rem;
  }

  .right-block{
    padding:2rem 0 5rem;
  }
}
.shot{
  width:100%;border-radius:.6rem;overflow:hidden;position:relative;
  display:flex;align-items:center;justify-content:center;
  height: auto;
}
.shot::after{
  content:attr(data-label);
  font-family:var(--font-label);text-transform:uppercase;font-size:.72rem;
  color:var(--light-50);letter-spacing:.06em;
}
.shot:nth-child(2){background:radial-gradient(120% 120% at 100% 0%,#2a2330 0%,#1a1620 55%,#121016 100%)}
.shot:nth-child(3){background:radial-gradient(120% 120% at 50% 100%,#202a2c 0%,#161d1f 55%,#101618 100%)}
.shot:nth-child(4){background:radial-gradient(120% 120% at 0% 100%,#2b2722 0%,#1c1a16 55%,#141210 100%)}
.shot:nth-child(5){background:radial-gradient(120% 120% at 100% 50%,#222530 0%,#161922 100%)}


.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  z-index: 1002;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 1.45rem;
  height: 1px;
  background: currentColor;
  margin-left: auto;
  transition: transform 0.35s ease;
}

.nav-toggle span + span {
  margin-top: 0.45rem;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(0.225rem) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-0.225rem) rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .nav-toggle { display: block; }

.pf-nav,
.s__nav {
  align-items: center;
}

.pf-nav-links,
.s__nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 22rem);
  height: 100dvh;
  padding: 6rem 2rem 2rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #14160f !important;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  transform: translateX(105%);
  transition: transform 0.45s ease;
  z-index: 1001;
}
.nav-open .pf-nav-links a, .pf-nav.on-dark .pf-nav-links a {
  color: #14160f;
}
.nav-open .pf-nav-links,
.nav-open .s__nav-links {
  transform: translateX(0);
}
}

    .site-viewer{
      position:relative;
      width:100%;
      border-radius:12px;
      overflow:hidden;
      background:#171717;
      box-shadow:0 20px 60px rgba(0,0,0,.25);
    }

    .site-viewer iframe{
      display:block;width:100%;
      height:clamp(520px,120vh,1300px);
      border:0;background:#171717;
    }


    @media screen and (max-width: 991px) {
  .hero-wrapper { min-height: 560px; }

  .s__year-word {
    bottom: clamp(1.75rem, 7vh, 4rem);
    font-size: clamp(5.5rem, 20vw, 14rem);
  }

  .s__portrait {
    width: clamp(8.5rem, 30vw, 18rem);
    height: clamp(18rem, 54vh, 36rem);
  }
}

@media screen and (max-width: 767px) {
  .hero-wrapper {
    height: 100svh;
    min-height: 620px;
  }

  .s__year-word {
    bottom: clamp(2.75rem, 13vh, 6.25rem);
    font-size: clamp(3.9rem, 17vw, 8rem);
    letter-spacing: -0.18rem;
  }

  .s__portrait {
    width: clamp(7.25rem, 36vw, 12rem);
    height: clamp(17rem, 50vh, 28rem);
  }

  .s__portrait img { width: 165%; }
}

@media screen and (max-width: 480px) {
  .s__year-word {
    bottom: clamp(3.5rem, 15vh, 7rem);
    font-size: clamp(3.15rem, 16vw, 5.35rem);
    letter-spacing: -0.13rem;
  }

  .s__portrait {
    width: clamp(6.5rem, 40vw, 9rem);
    height: clamp(15rem, 47vh, 24rem);
  }

  .s__portrait img { width: 172%; }
}



/* ── tokens copied from portfolio.css :root (delete on integration) ───────── */
:root{
  --bg:#ffffff; --text:#30332F; --text-muted:#565656; --accent:#FFC509;
  --charcoal:#181a18; --swatch--hark-white:#f5f5f3;
  --gridline:rgba(48,51,47,0.10);
  --pad-x:clamp(1.5rem,3rem,4.5rem);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;-webkit-font-smoothing:antialiased;}
body{background:var(--bg);color:var(--text);font-family:"itc-avant-garde-gothic-pro",sans-serif;overflow-x:hidden;}

/* ── base .tagline-section styles copied verbatim from portfolio.css ──────── */
.tagline-section{
  background:var(--bg);
  padding:5rem var(--pad-x) 6rem;
  border-top:1px solid var(--gridline);
  display:grid;
  grid-template-columns:1fr auto;
  align-items:flex-end;
  gap:clamp(2rem,5vw,6rem);
}
.tagline-stack{display:flex;flex-direction:column;}
.tagline-line{
  font-size:clamp(2.5rem,4.5vw,6rem);
  font-weight:800;line-height:0.95;letter-spacing:-0.035em;
  display:inline-block;
}
.tagline-line.is-dark{color:var(--text);}
.tagline-line.is-accent{color:var(--accent);}
.tagline-desc{
  max-width:45.5ch;font-size:0.75rem;font-weight:300;line-height:1.8;
  letter-spacing:1px;color:var(--text-muted);padding-bottom:0.35rem;
}


/* ════════════════════════════════════════════════════════════════════════
   BLOCK B — APPEND TO portfolio.css   (existing tokens only, no new colors)
   ════════════════════════════════════════════════════════════════════════ */

.tagline-section{
  position:relative;
  transition:background-color .6s ease, border-color .6s ease;
}
.tagline-line,.tagline-desc{transition:color .55s ease;}

/* ── HOVER-DARK reveal: .is-active toggled by JS while any line is hovered ── */
.tagline-section.is-active{
  background:var(--charcoal);
  border-top-color:color-mix(in srgb,var(--swatch--hark-white) 14%,transparent);
}
.tagline-section.is-active .tagline-line.is-dark{color:var(--swatch--hark-white);}
.tagline-section.is-active .tagline-desc{color:color-mix(in srgb,var(--swatch--hark-white) 66%,transparent);}
.tagline-desc{transition:color .55s ease, opacity .25s ease;}

/* ── row = one tagline-line + its own cluster, stacked in normal flow ── */
.tagline-row{display:flex;flex-direction:column;}

/* ── per-line cluster: collapsed by default, expands in normal flow ──
   grid-template-rows 0fr -> 1fr is what gives a smooth "auto height"
   transition without JS measuring pixel heights. ── */
.hover-cluster{
  display:grid;
  grid-template-rows:0fr;
  opacity:0;
  margin:0;
  transition:grid-template-rows .6s cubic-bezier(.22,1,.36,1),
             opacity .4s ease,
             margin .6s cubic-bezier(.22,1,.36,1);
}
.hover-cluster.is-open{
  grid-template-rows:1fr;
  opacity:1;
  margin:clamp(1.25rem,3vw,2.5rem) 0;
}
.hover-cluster-inner{
  overflow:hidden;min-height:0;
  display:flex;flex-direction:column;align-items:flex-start;gap:1rem;
}

/* preview images */
.hover-images{display:flex;justify-content:flex-start;align-items:flex-start;gap:clamp(10px,1.4vw,18px);}
.hover-img-wrap{
  margin:0;border-radius:14px;overflow:hidden;
  opacity:0;transform:scale(.96);
  transition:opacity .6s ease,transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay:.08s;
}
.hover-cluster.is-open .hover-img-wrap{opacity:1;transform:scale(1);}
.hover-img{
  display:block;width:100%;height:100%;object-fit:cover;color:transparent;
  background:color-mix(in srgb,var(--swatch--hark-white) 10%,transparent);
  animation:hoverFloat var(--ft,6.5s) ease-in-out infinite;animation-delay:var(--fd,0s);
}
.hover-img--landscape{width:clamp(200px,26vw,320px);aspect-ratio:16/10;}
.hover-img--portrait {width:clamp(135px,17vw,190px);aspect-ratio:3/4;}

/* the five pill tags, per cluster */
.hover-pills{position:relative;width:min(560px,48vw);height:clamp(170px,20vh,210px);overflow:hidden;}
.hover-pill{
  position:absolute;
  opacity:0;transform:translateY(14px);
  transition:opacity .5s ease,transform .5s cubic-bezier(.22,1,.36,1);
  transition-delay:var(--ed,0s);
  pointer-events:none;cursor:grab;
}
.hover-cluster.is-open .hover-pill{opacity:1;transform:translateY(0);pointer-events:auto;}
.hover-pill:active{cursor:grabbing;}
.hover-pill__inner{
  display:inline-block;padding:8px 16px;border-radius:999px;white-space:nowrap;
  font-size:clamp(12px,1vw,14px);font-weight:400;
  color:var(--swatch--hark-white);
  background:color-mix(in srgb,var(--swatch--hark-white) 12%,transparent);
  border:1px solid color-mix(in srgb,var(--swatch--hark-white) 22%,transparent);
  backdrop-filter:blur(3px);
  animation:pillFloat var(--ft,7s) ease-in-out infinite;animation-delay:var(--fd,0s);
}

/* scatter — shared geometry across all three clusters, only labels differ */
.hover-pill--1{left:1%;  top:6px;  --rot:-5deg; --ed:.05s; --ft:6.2s; --fd:-.4s;}
.hover-pill--2{left:25%; top:22px; --rot: 4deg; --ed:.11s; --ft:7.1s; --fd:-1.6s;}
.hover-pill--3{left:54%; top:4px;  --rot:-3deg; --ed:.17s; --ft:6.6s; --fd:-.9s;}
.hover-pill--4{left:36%; top:80px; --rot: 5deg; --ed:.23s; --ft:7.4s; --fd:-2.3s;}
.hover-pill--5{left:62%; top:96px; --rot:-5deg; --ed:.29s; --ft:6.9s; --fd:-1.1s;}

/* while physics drives the pills, JS owns position — freeze CSS motion */
.hover-pills.is-dropping .hover-pill{transition:none;}
.hover-pills.is-dropping .hover-pill__inner{animation:none;transform:none;}

/* idle float (rotation baked in so it composes with the resting tilt) */
@keyframes hoverFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}
@keyframes pillFloat{
  0%,100%{transform:rotate(var(--rot,0deg)) translateY(0);}
  50%    {transform:rotate(var(--rot,0deg)) translateY(-7px);}
}

/* small screens: no hover/physics — keep the section as plain stacked lines */
@media screen and (max-width:680px){
  .hover-cluster{display:none;}
}

/* reduced motion: keep the dark reveal + desc swap but make it instant */
@media (prefers-reduced-motion:reduce){
  .tagline-section,.tagline-line,.tagline-desc,
  .hover-cluster,.hover-img-wrap,.hover-pill{transition:none!important;}
  .hover-img,.hover-pill__inner{animation:none!important;}
  .hover-pill__inner{transform:rotate(var(--rot,0deg));}
  .hover-cluster.is-open .hover-pill{transform:none;}
}