/* ==========================================================
   Tinapay — plum editorial
   Cream paper, one deep plum accent, big serif type.
   ========================================================== */

:root {
  --cream: #ece5da;
  --cream-2: #e2d9cb;
  --cream-3: #d8cdbc;
  --plum: #3d1426;
  --plum-soft: #7a4459;
  --ink: #2a161f;
  --muted: #5f4b54;
  --line: rgba(61, 20, 38, 0.18);
  --line-light: rgba(236, 229, 218, 0.22);
  --rose: #c48a9b;
  --on-dark-muted: rgba(236, 229, 218, 0.72); /* body text on plum */
  --on-dark-faint: rgba(236, 229, 218, 0.35); /* outlines on plum */
  --ink-soft: #3b2a32;
  --white: #fff;
  --ok: #3f8f5a;
  --error: #a3324f;
  --header-bg: rgba(236, 229, 218, 0.86);

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --heading: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4.4vw, 64px);
  /* space between side-by-side columns: tight for compact rows, wide for big two-column splits */
  --col-gap-tight: clamp(20px, 4vw, 64px);
  --col-gap: clamp(24px, 5vw, 80px);
  --col-gap-wide: clamp(32px, 6vw, 96px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  /* type scale */
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.05rem, 1.2vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 2vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 2.4vw, 2.2rem);
  --fs-2xl: clamp(2.2rem, 4.6vw, 4.2rem);
  --fs-3xl: clamp(3rem, 6.8vw, 6.6rem);
  --fs-4xl: clamp(3.4rem, 10vw, 9.5rem);

  /* spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* shape, depth, motion */
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-code: 6px;
  --radius-phone: 36px;
  --shadow-soft: 0 40px 60px -30px rgba(42, 15, 27, 0.6);
  --shadow-deep: 0 50px 90px -50px rgba(42, 15, 27, 0.55);
  --dur-fast: 0.3s;
  --dur: 0.45s;
  --dur-slow: 0.8s;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
::selection { background: var(--plum); color: var(--cream); }

:focus-visible { outline: 1.5px solid var(--plum); outline-offset: 4px; }
.dark :focus-visible { outline-color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--plum); color: var(--cream);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */

.cap {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.9;
}

.rule {
  display: block;
  width: 34px;
  height: 1px;
  margin: var(--space-4) 0;
  background: currentColor;
  opacity: 0.8;
}

.it { font-family: var(--heading); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

.display {
  font-family: var(--heading);
  font-weight: 500;
  font-size: var(--fs-4xl);
  line-height: 1;
  letter-spacing: -0.04em;
}
.display em,
.title em {
  font-family: var(--heading);
  font-style: italic;
  color: var(--plum);
}
.dark .display em,
.dark .title em { color: var(--cream-3); }

.title {
  font-family: var(--heading);
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--muted);
  max-width: 34em;
}
.dark .lead { color: var(--on-dark-muted); }

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2) 0; }
.tags li { color: var(--muted); }
.tags li:not(:last-child)::after { content: "·"; margin: 0 0.8em; opacity: 0.6; }
.dark .tags li { color: var(--on-dark-muted); }

/* ---------- links & buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--plum);
  color: var(--cream);
  border: 1px solid var(--plum);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: inherit;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
}
.btn:hover { background: transparent; color: var(--plum); gap: var(--space-5); }
.dark .btn { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.dark .btn:hover { background: transparent; color: var(--cream); }

.dark { background: var(--plum); color: var(--cream); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--gutter) var(--space-5);
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur);
}
.site-header.is-scrolled {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { justify-self: start; font-family: var(--display); font-weight: 500; font-size: var(--fs-md); letter-spacing: 0.14em; line-height: 1.2; color: var(--plum); }

.site-nav ul { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-nav a { position: relative; padding-bottom: var(--space-1); }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0.32em; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-foot { display: none; }

.menu-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  background: none; border: 0;
  color: inherit; cursor: pointer;
  font: inherit;
  transition: color var(--dur-fast);
}
.menu-toggle .bars { position: relative; width: 26px; height: 9px; }
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 8px; }
.menu-open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: max(700px, 100svh);
  overflow: hidden;
  isolation: isolate;
}
.hero-name {
  position: absolute;
  left: 0; right: 0;
  top: 27%;
  z-index: 1;
  text-align: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(5rem, 18.6vw, 17.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--plum);
  white-space: nowrap;
}
.hero-name .ch { display: inline-block; }
.hero-shadow {
  position: absolute;
  left: 8%; top: 32%;
  width: 30vw; height: 22vw;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.12;
  filter: blur(56px);
  z-index: 0;
}
.hero-plinth {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(58vw, 860px);
  aspect-ratio: 1.6;
  translate: -50% 63%;
  border-radius: 50%;
  background: var(--plum);
  z-index: 1;
}
.hero-portrait {
  position: absolute;
  left: 50%; bottom: 0;
  height: min(91svh, 840px);
  width: auto;
  max-width: none;
  translate: -50% 0;
  z-index: 2;
}
.hero-left {
  position: absolute;
  bottom: clamp(16px, 13vh - 84px, 124px); /* sits low so the taller block clears the wordmark */
  z-index: 3;
}
.hero-left { left: var(--gutter); }
.hero-left .it { font-size: var(--fs-xl); line-height: 1.08; color: var(--plum); }
.hero-status { margin-top: var(--space-3); font-size: var(--fs-sm); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-4); }
/* stacked on the home hero so the link never sits on the plum plinth */
.hero-left .hero-actions { flex-direction: column; align-items: flex-start; }
.hero-left .cap { margin-top: var(--space-3); }
.hero-role { margin-top: var(--space-1); font-size: var(--fs-base); color: var(--ink); }
/* ---------- sections ---------- */

.section { position: relative; padding: clamp(6rem, 16vh, 11rem) 0; }
.section + .section:not(.dark):not(.tint) { border-top: 1px solid var(--line); }
.tint { background: var(--cream-2); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2.4fr;
  gap: var(--space-6) var(--col-gap);
  align-items: end;
  margin-bottom: clamp(3.5rem, 9vh, 6rem);
}
.sec-head .lead { margin-top: var(--space-5); }

/* intro */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2.4fr;
  gap: var(--space-7) var(--col-gap);
}
.intro-statement {
  font-family: var(--heading);
  font-size: var(--fs-2xl);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.intro-statement em { font-style: italic; color: var(--plum); }
.intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  color: var(--muted);
}
.intro-cols .text-link { grid-column: 1 / -1; justify-self: start; }

/* skill rows */
.skill-list { border-top: 1px solid var(--line); }
.skill {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr;
  gap: var(--space-4) var(--col-gap);
  align-items: baseline;
  padding: clamp(1.6rem, 4vh, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.skill h3 {
  font-family: var(--heading);
  font-size: var(--fs-xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.skill-note { margin-top: var(--space-7); color: var(--muted); }
.skill-note .it { color: var(--plum); font-size: 1.2em; }

/* journey (dark) */
.journey { overflow: hidden; }
.journey .bowl {
  position: absolute;
  right: -12vw; top: -18vw;
  width: 46vw; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  pointer-events: none;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line-light);
}
.cert {
  padding: var(--space-6) var(--space-6) var(--space-6) 0;
  border-bottom: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.cert-grid + .cert-grid { border-top: 0; }
.cert + .cert { padding-left: var(--space-6); border-left: 1px solid var(--line-light); }
.cert .meta { display: flex; justify-content: space-between; gap: var(--space-3); color: var(--cream-3); }
.cert h3 { font-family: var(--heading); font-size: var(--fs-lg); line-height: 1.15; }
.cert p { color: var(--on-dark-muted); font-size: var(--fs-base); }
.cert .cred { margin-top: auto; color: var(--cream-3); }
.cert.is-next h3 { font-style: italic; }
.journey-foot { margin-top: var(--space-7); }

/* featured work */

/* quote */
.quote {
  position: relative;
  text-align: center;
  padding: clamp(6rem, 16vh, 11rem) 0 clamp(9rem, 22vh, 15rem);
  overflow: hidden;
}
.quote blockquote {
  max-width: 17em;
  margin: var(--space-6) auto var(--space-6);
  font-family: var(--heading);
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.quote blockquote em { font-style: italic; color: var(--plum); }
.quote .drop {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(70vw, 900px); aspect-ratio: 1.8;
  translate: -50% 72%;
  border-radius: 50%;
  background: var(--plum);
}
.quote .rule { margin: 0 auto; }

/* closing */
.closing {
  position: relative;
  padding: clamp(6rem, 16vh, 10rem) 0 clamp(4rem, 10vh, 6rem);
  overflow: hidden;
}
.closing-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-7);
  align-items: end;
}
.closing .display { font-size: var(--fs-3xl); }
.closing-side { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.closing-side .lead { color: var(--on-dark-muted); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--plum);
  color: var(--cream);
  padding: 0 0 var(--space-5);
  overflow: hidden;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line-light);
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.footer-links a, .to-top { opacity: 0.8; transition: opacity var(--dur-fast); }
.footer-links a:hover, .to-top:hover { opacity: 1; }
.footer-word {
  font-family: var(--display);
  font-weight: 500;
  /* The word is ~4.5em wide, so size it to the footer width and keep it on one line. */
  font-size: min(20rem, calc((100vw - 2 * var(--gutter)) / 5));
  line-height: 0.8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--on-dark-faint);
  margin-top: var(--space-3);
  user-select: none;
}

/* ---------- inner page hero ---------- */

.page-hero {
  position: relative;
  padding: clamp(10rem, 26vh, 14rem) 0 clamp(4rem, 10vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2.4fr;
  gap: var(--space-6) var(--col-gap);
  align-items: end;
}
.page-hero .display { font-size: var(--fs-4xl); }
.page-hero .lead { margin-top: var(--space-6); }
.page-hero .side { align-self: start; padding-top: var(--space-4); }
.page-hero .side .it { font-size: var(--fs-lg); line-height: 1.15; color: var(--plum); }
.page-hero .orb {
  position: absolute;
  right: -6vw; bottom: 0;
  width: min(34vw, 480px); aspect-ratio: 1;
  translate: 0 78%; /* only the top rises into view, clear of the headline */
  border-radius: 50%;
  background: var(--plum);
  z-index: -1;
}
.page-hero .hero-shadow { left: auto; right: 22%; top: 20%; width: 24vw; height: 18vw; }

/* about hero with portrait */
.about-hero { padding-bottom: 0; }
.about-hero .display { font-size: var(--fs-3xl); }
.about-hero .hero-shadow { display: none; }
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5) var(--col-gap);
  align-items: end;
}
.about-hero-copy { padding-bottom: clamp(4rem, 10vh, 7rem); }
.about-visual { position: relative; align-self: stretch; min-height: 520px; }
.about-visual img {
  position: absolute;
  left: 50%; bottom: 0;
  height: 100%; max-height: 720px; width: auto; max-width: none;
  translate: -50% 0;
  z-index: 2;
}
.about-visual .orb {
  right: auto; left: 50%;
  width: 115%;
  aspect-ratio: 1.6;
  translate: -50% 60%;
  z-index: 1;
}

/* rows (experience, education) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 1.2fr 1.2fr;
  gap: var(--space-3) var(--col-gap);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}
.row .when { color: var(--muted); }
.row .org { color: var(--plum-soft); }
.row h3 { font-family: var(--heading); font-size: var(--fs-xl); line-height: 1.1; margin-top: var(--space-1); }
.row p { color: var(--muted); }

/* beyond the screen */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7) var(--col-gap-wide);
  align-items: center;
}
/* four words; the filled one follows the scroll */
.word-stack {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-3xl);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.word-stack span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--plum-soft);
  transition: color var(--dur) var(--ease), -webkit-text-stroke-color var(--dur);
}
.word-stack span.is-on { color: var(--plum); -webkit-text-stroke-color: var(--plum); font-style: italic; }
.split p + p { margin-top: var(--space-4); }
.split .copy > p { color: var(--muted); }
.split .title { margin: var(--space-4) 0 var(--space-6); }

/* growth */
.growth { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.growth article { padding: var(--space-6) var(--space-6) var(--space-6) 0; }
.growth article + article { padding-left: var(--space-6); border-left: 1px solid var(--line-light); }
.growth .when { font-family: var(--heading); font-style: italic; font-size: var(--fs-2xl); line-height: 1; margin-bottom: var(--space-4); }
.growth p:not(.when) { color: var(--on-dark-muted); }

/* projects page */
.feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-7) var(--col-gap-wide);
  align-items: center;
  padding: clamp(3rem, 8vh, 5rem) 0;
  border-top: 1px solid var(--line);
}
.feature:nth-child(odd) .live { order: 2; }
.feature-links { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); margin-top: var(--space-3); }
.feature-body { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.feature-body .kind { color: var(--plum-soft); }
.feature-body h3 { font-family: var(--heading); font-size: var(--fs-2xl); line-height: 1; letter-spacing: -0.015em; }
.feature-body > p { color: var(--muted); }

/* index list (practice, articles) */
.index { border-top: 1px solid var(--line); }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 2fr auto;
  gap: var(--space-2) var(--col-gap-tight);
  align-items: baseline;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.index-row::before {
  content: "";
  position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--plum);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--dur) var(--ease);
  z-index: -1;
}
.index-row h2,
.index-row h3 { font-family: var(--heading); font-size: var(--fs-xl); line-height: 1.15; transition: color var(--dur-fast); }
.index-row p { color: var(--muted); font-size: var(--fs-base); transition: color var(--dur-fast); }
.index-row .arrow { font-size: var(--fs-lg); transition: transform var(--dur) var(--ease), color var(--dur-fast); }
@media (hover: hover) {
  a.index-row:hover::before { transform: scaleY(1); }
  a.index-row:hover h3, a.index-row:hover h2,
  a.index-row:hover .arrow { color: var(--cream); }
  a.index-row:hover p { color: var(--on-dark-muted); }
  a.index-row:hover .arrow { transform: translate(4px, -4px); }
}
.soon { display: inline-block; margin-top: var(--space-3); color: var(--plum); }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-7) var(--col-gap-wide);
  align-items: start;
}
.contact-aside .title { margin: var(--space-4) 0 var(--space-5); }
.contact-aside .lead { margin-bottom: var(--space-7); }
.form { display: grid; gap: var(--space-6); }
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: var(--space-5) 0 var(--space-3);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-family: var(--heading);
  font-size: var(--fs-lg);
  resize: vertical;
}
.field textarea { min-height: 150px; line-height: 1.4; }
.field input:focus,
.field textarea:focus { outline: none; }
.field label {
  position: absolute; left: 0; top: 28px;
  color: var(--muted);
  pointer-events: none;
  transition: top var(--dur-fast) var(--ease), font-size var(--dur-fast) var(--ease), letter-spacing var(--dur-fast) var(--ease), color var(--dur-fast);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { top: 0; font-size: var(--fs-2xs); color: var(--plum); }
.field .bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--plum);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.field input:focus ~ .bar,
.field textarea:focus ~ .bar { transform: scaleX(1); }
.form-foot { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.form-note { color: var(--plum); min-height: 1.9em; }

.socials { border-top: 1px solid var(--line-light); }
.social-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--heading);
  font-size: var(--fs-2xl);
  line-height: 1;
  transition: padding var(--dur) var(--ease), color var(--dur-fast);
}
.social-row .arrow { font-family: var(--sans); font-size: var(--fs-lg); transition: transform var(--dur) var(--ease); }
.social-row:hover { padding-left: var(--space-4); color: var(--cream-3); }
.social-row:hover .arrow { transform: translate(4px, -4px); }
.social-row .handle { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; margin-left: auto; margin-right: var(--space-6); }

/* ---------- motion ---------- */

.js:not(.has-gsap) [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0s);
}
.js:not(.has-gsap) [data-reveal].is-in { opacity: 1; transform: none; }

.js:not(.has-gsap) .hero-name .ch {
  transform: translateY(70%);
  opacity: 0;
  transition: transform 1.3s var(--ease), opacity var(--dur-slow) var(--ease);
}
.js:not(.has-gsap) .hero-portrait { opacity: 0; translate: -50% 40px; transition: opacity 1.4s var(--ease) 0.35s, translate 1.6s var(--ease) 0.35s; }
.js:not(.has-gsap) .hero-plinth { scale: 0.4 0.4; transition: scale 1.6s var(--ease) 0.1s; }
.js:not(.has-gsap) .hero-shadow { opacity: 0; transition: opacity 2s var(--ease) 0.8s; }
.js:not(.has-gsap) .is-loaded .hero-name .ch { transform: none; opacity: 1; }
.js:not(.has-gsap) .is-loaded .hero-portrait { opacity: 1; translate: -50% 0; }
.js:not(.has-gsap) .is-loaded .hero-plinth { scale: 1 1; }
.js:not(.has-gsap) .is-loaded .hero-shadow { opacity: 0.12; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 110px var(--gutter) var(--space-7);
    background: var(--plum); color: var(--cream);
    clip-path: circle(0% at calc(100% - 40px) 40px);
    transition: clip-path var(--dur-slow) var(--ease);
    visibility: hidden;
  }
  .menu-open .site-nav { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
  .menu-open .site-header { color: var(--cream); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: var(--space-1); }
  .site-nav a {
    display: flex; align-items: baseline; gap: var(--space-4);
    font-family: var(--heading); font-size: clamp(2.6rem, 11vw, 4.4rem);
    letter-spacing: -0.01em; text-transform: none; line-height: 1.15;
  }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { font-style: italic; }
  .nav-foot { display: block; margin-top: var(--space-7); opacity: 0.7; }

  .sec-head, .intro-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 1fr; }
  .closing-grid, .split, .contact-grid, .feature { grid-template-columns: 1fr; }
  .feature:nth-child(odd) .live { order: 0; }
  .row { grid-template-columns: 1fr 1.4fr; }
  .row p { grid-column: 2; }
  .index-row { grid-template-columns: 1fr auto; }
  .index-row p { grid-column: 1; }
  .index-row .arrow { grid-row: 1; grid-column: 2; }
  .growth { grid-template-columns: 1fr; }
  .growth article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .cert + .cert { padding-left: 0; border-left: 0; }
  .cert { padding-right: 0; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-hero-copy { padding-bottom: 0; }
  .about-visual { min-height: 0; height: min(110vw, 620px); }
}

@media (max-width: 720px) {
  .hero { min-height: 0; height: auto; display: flex; flex-direction: column; padding-top: 128px; }
  .hero-name { position: relative; top: auto; font-size: 19.5vw; letter-spacing: 0; }
  .hero-stage { position: relative; height: 128vw; margin-top: -12vw; }
  .hero-portrait { height: 100%; }
  .hero-plinth { width: 120vw; }
  .hero-shadow { width: 60vw; height: 40vw; top: 18%; left: -10%; }
  .hero-left { position: relative; inset: auto; padding: 0 var(--gutter); }
  .hero-left { order: -1; margin-bottom: var(--space-6); }

  .intro-cols { grid-template-columns: 1fr; gap: var(--space-4); }
  .row { grid-template-columns: 1fr; }
  .row p { grid-column: auto; }
  .index-row { grid-template-columns: 1fr auto; }
  .index-row h2, .index-row h3 { grid-column: 1; }
  .index-row p { grid-column: 1 / -1; }
  .index-row .arrow { grid-row: 1; grid-column: 2; }
  .social-row .handle { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 721px) {
  .hero-stage { position: absolute; inset: 0; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: 0.01ms !important; transition-delay: 0s !important; }
  .js:not(.has-gsap) [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================
   Live previews — real websites in a browser window
   ========================================================== */

.live {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.live-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.live-dots { display: flex; gap: var(--space-2); flex-shrink: 0; }
.live-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--cream-3); }
.live-dots i:first-child { background: var(--plum); }
.live-url {
  flex: 1;
  min-width: 0;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--cream-2);
  color: var(--muted);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-modes {
  display: flex;
  flex-shrink: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.live-modes button {
  padding: var(--space-1) var(--space-3);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font: 500 var(--fs-2xs)/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.live-modes button[aria-pressed="true"] { background: var(--plum); color: var(--cream); }
.live-open {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.live-open:hover { background: var(--plum); color: var(--cream); }

.live-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-2);
}
.live-screen::before {
  content: "Loading live site…";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--heading); font-style: italic;
  font-size: var(--fs-lg);
  color: var(--plum-soft);
}
.live-viewport {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  background: var(--white);
}
.live-viewport iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
  background: var(--white);
  pointer-events: none;
}
.live.is-active iframe { pointer-events: auto; }
.live[data-mode="mobile"] .live-viewport {
  border-radius: var(--radius-phone);
  overflow: hidden;
  box-shadow: 0 0 0 10px var(--plum), var(--shadow-soft);
}
.live.is-fill .live-viewport { border-radius: 0; box-shadow: none; }
.live-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  transition: opacity var(--dur-slow) var(--ease);
}
.live.is-loaded .live-poster { opacity: 0; pointer-events: none; }
.live-cover {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: var(--space-5);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.live-cover span {
  padding: var(--space-3) var(--space-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-pill);
  background: var(--plum);
  color: var(--cream);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.live:hover .live-cover span,
.live-cover:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .live-cover span { opacity: 1; transform: none; } }
.live.is-active .live-cover { display: none; }
.live:not(.is-requested) .live-screen::before { content: "Tap to load the live site"; }
.live-note {
  display: flex; gap: var(--space-3); align-items: baseline;
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--plum);
  background: var(--cream-2);
  color: var(--ink);
  font-size: var(--fs-sm);
}
.live-note b { font-weight: 600; color: var(--plum); }

/* ---------- home: live works scroller ---------- */

.works { position: relative; overflow: hidden; padding: clamp(5rem, 12vh, 8rem) 0; }
.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.works-head .lead { margin-top: var(--space-4); }
.works-progress { height: 1px; background: var(--line); margin-top: var(--space-4); width: 160px; margin-left: auto; overflow: hidden; }
.works-progress i { display: block; height: 100%; background: var(--plum); transform: scaleX(0); transform-origin: left; }
.works-track {
  display: flex;
  gap: var(--col-gap-tight);
  padding: 0 var(--gutter) var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.works-track::-webkit-scrollbar { display: none; }
.works.is-pinned { padding: var(--space-9) 0 var(--space-5); height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.works.is-pinned .works-track { overflow: visible; width: max-content; padding-bottom: 0; }
.works.is-pinned .works-head { margin-bottom: clamp(1.2rem, 3vh, 2.4rem); }
.work-slide {
  flex-shrink: 0;
  width: min(62vw, 920px, calc((100svh - 470px) * 1.6)); /* leaves room for the summary and links under the preview */
  scroll-snap-align: center;
}
.work-slide-info {
  display: grid;
  gap: var(--space-2);
  max-width: 62ch;
  padding-top: var(--space-5);
}
.work-slide-info .summary { font-size: var(--fs-base); line-height: 1.5; color: var(--ink-soft); }
.work-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-2); }
.work-slide-info h3 { font-family: var(--heading); font-size: var(--fs-xl); line-height: 1.1; }
.work-end {
  flex-shrink: 0;
  width: min(34vw, 460px);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-5);
  padding: 0 2vw;
  scroll-snap-align: center;
}
.work-end .title { font-size: var(--fs-2xl); }

/* ---------- quote → plum circle reveal ---------- */

.quote .wrap { position: relative; z-index: 2; }
@media (min-width: 721px) {
  .has-gsap .quote { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}
.quote .drop { z-index: 1; will-change: transform; }

.footer-word { overflow: hidden; }
.footer-word .ch, .hero-name .ch, .ch-in { display: inline-block; }

@media (max-width: 960px) {
  .work-slide { width: 86vw; }
  .work-end { width: 70vw; }
  .works-head { flex-direction: column; align-items: flex-start; }
  .works-progress { display: none; }
  .live-modes { display: none; }
}
@media (max-width: 720px) {
  .live-screen { aspect-ratio: 4 / 5; }
}

/* Sans headings read better a touch heavier and tighter */
.skill h3, .cert h3, .row h3, .feature-body h3, .index-row h3, .index-row h2, .work-slide-info h3, .intro-statement, .quote blockquote, .social-row {
  font-weight: 500;
  letter-spacing: -0.025em;
}
.intro-statement, .quote blockquote { line-height: 1.18; }
.field input, .field textarea { font-weight: 500; letter-spacing: -0.01em; }

/* Room for descenders (g, y, p) inside the masked line reveals */
.title > *, .display > * { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* Contact: direct email line */
.form-note a { color: var(--plum); text-decoration: underline; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ==========================================================
   Case studies
   ========================================================== */
.case-hero { padding-bottom: clamp(3rem, 7vh, 5rem); }
.case-hero .cap a { border-bottom: 1px solid currentColor; }
.case-hero .display { margin-top: var(--space-4); }
.case-hero .lead { margin-top: var(--space-5); max-width: 40em; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  border-top: 1px solid var(--line);
}
.case-meta div { padding: var(--space-4) var(--space-4) 0 0; }
.case-meta dt { color: var(--plum-soft); }
.case-meta dd { margin: var(--space-2) 0 0; font-weight: 500; }
.case-meta a { border-bottom: 1px solid var(--line); }
.case-meta a:hover { color: var(--plum); border-color: var(--plum); }
.case-preview { padding-bottom: clamp(4rem, 10vh, 7rem); }
.case-preview .live { max-width: 1200px; margin: 0 auto; }
.case-preview .live-screen { aspect-ratio: 16 / 9.4; }
.case-preview .live-note { max-width: 1200px; margin: var(--space-4) auto 0; }
.case-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2.4fr;
  gap: var(--space-6) var(--col-gap);
}
.case-copy > p { color: var(--muted); max-width: 40em; margin-top: var(--space-4); }
.dark .case-copy > p { color: var(--on-dark-muted); }
.case-copy .title { margin-bottom: var(--space-2); }
.case-small { font-size: var(--fs-sm); }
/* links inside running text: always underlined, so they read as links without hover */
.case-copy > p a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.case-copy > p a:hover { text-decoration-thickness: 2px; }
.dark .case-copy > p a { color: var(--cream); }
.case-list { margin-top: var(--space-5); border-top: 1px solid var(--line); }
.case-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.case-list b { color: var(--ink); font-weight: 600; margin-right: var(--space-2); }
.case-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.case-cards article { padding: var(--space-5); background: var(--cream-2); border-radius: 0; } /* flat paper: the 14px card shape is only for live previews */
.case-cards h3 { font-weight: 600; font-size: var(--fs-md); letter-spacing: -0.01em; margin-bottom: var(--space-2); color: var(--plum); }
.case-cards p { color: var(--muted); font-size: var(--fs-base); }

/* ==========================================================
   Articles
   ========================================================== */
.post-wrap { max-width: 860px; }
.post-hero { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.post-hero .cap a { border-bottom: 1px solid currentColor; }
.post-title { margin-top: var(--space-4); font-size: var(--fs-2xl); }
.post-hero .lead { margin-top: var(--space-5); font-size: var(--fs-md); }
.post-body { padding-bottom: clamp(5rem, 12vh, 8rem); font-size: var(--fs-base); line-height: 1.8; }
.post-body > * + * { margin-top: var(--space-4); }
.post-body > * { max-width: 34em; } /* comfortable measure, about 65–75 characters */
.post-body > .live { max-width: none; margin-top: var(--space-6); }
.post-caption { font-size: var(--fs-sm); color: var(--muted); }
.post-body h2 { margin-top: var(--space-7); font-family: var(--heading); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; }
.post-body p, .post-body li { color: var(--ink-soft); }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body ul { list-style: disc; padding-left: 1.3em; }
.post-body li + li { margin-top: var(--space-2); }
.post-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--cream-2); padding: 2px var(--space-2); border-radius: var(--radius-code); }
.post-body pre { background: var(--plum); color: var(--cream); padding: var(--space-5) var(--space-5); border-radius: var(--radius-code); overflow-x: auto; line-height: 1.6; }
.post-body pre code { background: none; padding: 0; color: inherit; font-size: var(--fs-sm); }
.post-end { margin-top: var(--space-7) !important; }
a.index-row .soon { color: var(--plum); }

@media (max-width: 960px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* About: résumé + availability */
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-6); }
.status { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--plum); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }

/* Certificates: course list */
.courses { padding: var(--space-6) 0 var(--space-2); }
.courses-head { color: var(--cream-3); margin-bottom: var(--space-3); }
.course-list li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: var(--space-2) var(--space-6);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line-light);
}
.quote .cap { margin-top: var(--space-3); }
.section-flush { padding-top: 0; }
.course-list .cap { color: var(--cream-3); }
.course-list b { font-weight: 500; font-size: var(--fs-base); letter-spacing: -0.01em; }
.course-list span:last-child { color: var(--on-dark-muted); font-size: var(--fs-sm); text-align: right; }
@media (max-width: 720px) {
  .course-list li { grid-template-columns: 1fr; }
  .course-list span:last-child { text-align: left; }
}

/* ---------- floating outline shapes ---------- */
.shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.page-hero > .wrap, .section > .wrap, .closing > .wrap { position: relative; z-index: 1; }
.shape {
  position: absolute;
  display: block;
  width: var(--s);
  aspect-ratio: 1;
  border: 1.5px solid var(--c, var(--plum-soft));
  opacity: 0.55;
}
.shape.ring { border-radius: 50%; }
.shape.square { rotate: var(--r, 18deg); }
.shape.dot { border-radius: 50%; border: 0; background: var(--c, var(--plum-soft)); }
.shape.rose { --c: var(--rose); }
.dark .shape { --c: var(--on-dark-faint); }
.js:not(.has-gsap) .shape { animation: shape-float 9s ease-in-out infinite alternate; }
.js:not(.has-gsap) .shape:nth-child(2n) { animation: 12s; animation-delay: -4s; }
@keyframes shape-float { to { transform: translateY(-18px) rotate(10deg); } }
@media (max-width: 720px) {
  .shape { width: calc(var(--s) * 0.6); }
  .shape:nth-child(4), .shape.dot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shape { animation: none !important; } }

/* ---------- minimal: no section numbers or repeat labels ---------- */
.spacer { display: none; }
.sec-head, .intro-grid, .case-grid { grid-template-columns: minmax(0, 1fr); }
.intro-grid > div, .case-copy { max-width: 980px; }

/* ---------- project text: one clear title, one line, quiet details ---------- */
.feature-body { gap: var(--space-4); }
.feature-body .kind { font-size: var(--fs-2xs); color: var(--plum-soft); }
.feature-body h3 { margin-bottom: 2px; }
.feature-text {
  max-width: 30em;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
}
.stack {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.85;
}
.dark .stack { color: var(--on-dark-muted); }
.feature-body .live-note {
  padding: 0; border: 0; background: none;
  font-size: var(--fs-sm); font-style: italic; color: var(--muted);
}
.feature-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-4); }

.btn-sm { padding: var(--space-3) var(--space-5); gap: var(--space-3); font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur) var(--ease), color var(--dur-fast);
}
.text-link span { transition: transform var(--dur-fast) var(--ease); }
.text-link:hover { color: var(--plum); background-size: 100% 1px; }
.text-link:hover span { transform: translateX(3px); }
.text-link[target="_blank"]:hover span { transform: translate(2px, -2px); }
.dark .text-link { color: var(--cream); }


.cert .text-link { align-self: flex-start; font-size: var(--fs-sm); }

/* menu toggle hover */
@media (hover: hover) {
  .menu-toggle:hover { color: var(--plum); }
}

/* form errors */
.field-error {
  position: absolute; left: 0; top: 100%;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--error);
}
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--error); }
.field.is-invalid label { color: var(--error); }
.field.is-invalid .bar { background: var(--error); transform: scaleX(1); }

/* header logo: hidden at the top of Home, where the big TINAPAY already shows */
.brand { transition: opacity var(--dur) var(--ease); }
.js body:has(.hero) .site-header:not(.is-scrolled) .brand { opacity: 0; pointer-events: none; }

/* bigger tap areas on touch screens, without moving the layout */
@media (pointer: coarse) {
  .text-link { padding-block: var(--space-2); margin-block: calc(var(--space-2) * -1); }
  .footer-links a, .to-top, .brand { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .case-hero .cap a, .post-hero .cap a, .case-meta a { display: inline-block; padding-block: 13px; margin-block: -13px; }
}

/* preview "open" button: easier to tap on touch screens */
@media (pointer: coarse) {
  .live-open { width: 40px; height: 40px; }
}

/* writing page: what's coming, said quietly */
.coming-next { margin-top: var(--space-5); font-size: var(--fs-sm); font-style: italic; color: var(--muted); }
@media (max-width: 720px) { .page-hero .orb { width: 46vw; } }
.page-hero .display:last-child { margin-bottom: var(--space-7); }

/* ---------- live hosting: brand list + one live clip ---------- */
.hosting {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-7) var(--col-gap-wide);
  align-items: center;
}
.brand-list { border-top: 1px solid var(--line); }
.brand-list li {
  border-bottom: 1px solid var(--line);
  font-family: var(--heading); font-weight: 500; font-size: var(--fs-xl);
  letter-spacing: -0.025em; line-height: 1.15;
}
.brand-list .on-screen { flex-shrink: 0; font: 500 var(--fs-sm)/1.4 var(--sans); letter-spacing: 0; color: var(--plum); }
.brand-list .brand-pick {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  width: 100%; padding: var(--space-4) 0; border: 0; background: none; /* the whole row is the target */
  font: inherit; letter-spacing: inherit; color: var(--ink); text-align: left;
  cursor: pointer; transition: color var(--dur-fast);
}
.brand-list .brand-pick:hover { color: var(--plum); }
.brand-list .brand-pick .on-screen { visibility: hidden; }
.brand-list .brand-pick[aria-pressed="true"] { color: var(--plum); }
.brand-list .brand-pick[aria-pressed="true"] .on-screen { visibility: visible; }
.brand-also { margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--muted); }
.live-clip img { display: block; width: 100%; height: 100%; border-radius: calc(var(--radius-phone) - var(--space-2)); object-fit: cover; object-position: 50% 0; }
.live-clip img[hidden], .live-clip video[hidden], .live-clip-toggle[hidden] { display: none; }
.live-clip { justify-self: center; width: min(100%, 320px); margin: 0; }
.live-clip-screen {
  position: relative;
  aspect-ratio: 360 / 780; /* the whole phone screen, as recorded */
  padding: var(--space-2);
  border-radius: var(--radius-phone);
  background: var(--plum);
  box-shadow: var(--shadow-soft);
}
.live-clip video {
  display: block; width: 100%; height: 100%;
  border-radius: calc(var(--radius-phone) - var(--space-2));
  object-fit: cover;
  background: var(--plum);
}
.live-clip-toggle {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--plum); border-radius: var(--radius-pill);
  background: var(--plum); color: var(--cream);
  font: 500 var(--fs-sm)/1.4 var(--sans);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.live-clip-toggle:hover { background: transparent; color: var(--plum); border-color: var(--plum); }
.live-clip figcaption { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-top: var(--space-5); text-align: center; font-size: var(--fs-sm); color: var(--muted); }
@media (pointer: coarse) { .live-clip-toggle { padding: var(--space-3) var(--space-4); } }
@media (max-width: 960px) {
  .hosting { grid-template-columns: 1fr; }
  .live-clip { order: -1; width: min(100%, 280px); }
}
