/* =========================================================
   Sections: hero, What I do, case films, toolkit tray, notes,
   contact, About page. Final (resting) layouts live here; the
   motion scenes only animate *into* these states.
   ========================================================= */

/* ---------- Ink strokes (AnimatedUnderline, SVG half) ---------- */
.ink-path {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= HERO ================= */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  min-width: 0;
}
.hero-title {
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .9;
  margin-top: var(--s-2);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 .12em .2em 0;
  margin-bottom: -.2em;
}
.hero-title .line > span { display: inline-block; }
.ink-word { position: relative; display: inline-block; }
.ink-under {
  position: absolute;
  left: -2%;
  width: 104%;
  bottom: -.02em;
  height: .2em;
  overflow: visible;
}
.ink-under .ink-path { stroke-width: 5; }
.ink-sparkle {
  display: inline-block;
  width: .36em;
  height: .36em;
  margin-left: .06em;
  vertical-align: top;
  overflow: visible;
}
.ink-sparkle .ink-path { stroke-width: 4; }
.tagline {
  font-size: var(--t-xl);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.01em;
  max-width: 30ch;
  text-wrap: pretty;
}
.sub { color: var(--c-ink-soft); max-width: 52ch; }
.cta-row { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-2); }
.maker-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin-top: var(--s-3); }
.maker-pill {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.maker-pill::before {
  content: "";
  width: 9px; height: 9px; border-radius: 3px;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,.6), inset -1px -1px 2px rgba(0,0,0,.15);
}
.maker-pill:nth-child(1)::before { background: var(--c-lavender); }
.maker-pill:nth-child(2)::before { background: var(--c-sage); }
.maker-pill:nth-child(3)::before { background: var(--c-butter); }

.hero-stage-wrap { position: relative; min-width: 0; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 500 / 430; }
.ground {
  position: absolute;
  left: 0; right: 0; bottom: 2%;
  height: 10%;
  background: radial-gradient(closest-side, rgba(42, 36, 64, .16), transparent);
}
.obj {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
}
.obj svg { width: 100%; height: auto; overflow: visible; }
.o-l1 { --x: 4; --y: 69.8; --w: 24; }
.o-l2 { --x: 4; --y: 45.6; --w: 24; }
.o-r1 { --x: 72; --y: 69.8; --w: 24; }
.o-r2 { --x: 72; --y: 45.6; --w: 24; }
.o-dl { --x: 28.4; --y: 45.6; --w: 18; }
.o-dr { --x: 53.6; --y: 45.6; --w: 18; }
.o-key { --x: 46; --y: 44.6; --w: 8; }
.o-v1 { --x: 40.4; --y: 26.6; --w: 19.2; }
.o-note { --x: 8; --y: 26.4; --w: 16; transform: rotate(-6deg); }
.o-bubble { --x: 74; --y: 25.4; --w: 20; }
.o-bug { --x: 60; --y: 76; --w: 11; }
.hero-thread, .hero-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-thread { opacity: 0; }
.hero-thread .ink-path { stroke: var(--c-ink); stroke-opacity: .45; stroke-width: 2.5; }
.hero-ticks .ink-path { stroke-width: 3.5; }
.intro-skip {
  position: absolute;
  right: 0;
  bottom: -8px;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  background: rgba(255,255,255,.7);
  border: var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  color: var(--c-ink-soft);
}

/* Headline reveal runs in CSS from first paint, so the words never wait
   for JavaScript (html.intro-text is set in <head>, once per session). */
.intro-text .hero-title .line > span { animation: lineUp 700ms cubic-bezier(.16, 1, .3, 1) both; }
.intro-text .hero-title .line:nth-child(2) > span { animation-delay: 80ms; }
.intro-text .hero-reveal { animation: fadeIn 450ms var(--ease-out) both; animation-delay: calc(250ms + var(--d, 0ms)); }
.intro-text .tagline { --d: 60ms; }
.intro-text .sub { --d: 120ms; }
.intro-text .cta-row { --d: 180ms; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Stage and ink hold (html.intro is set in <head>; JS takes over within ~1s) */
.intro .maker-pill { opacity: 0; }
.intro .hero-stage { visibility: hidden; }
.intro .ink-word .ink-path, .intro .ink-sparkle .ink-path, .intro .hero-ticks .ink-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage-wrap { width: 100%; max-width: 440px; margin-inline: auto; }
}

/* ================= SCENES (shared) ================= */
.scene {
  aspect-ratio: 240 / 150;
  border-radius: var(--r-md);
  background: var(--c-canvas);
  box-shadow: inset 2px 3px 8px rgba(42, 36, 64, .1), inset -1px -1px 0 rgba(255,255,255,.8);
  margin-bottom: var(--s-5);
  overflow: hidden;
}
.scene svg { width: 100%; height: 100%; overflow: visible; }

/* ================= WHAT I DO ================= */
.do-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.do-card {
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-4) var(--s-6);
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.do-card h3, .do-card p { padding-inline: var(--s-2); }
.do-card p { color: var(--c-ink-soft); }
.sa-tick { stroke-width: 4.5; }
@media (max-width: 900px) {
  .do-grid { grid-template-columns: 1fr; max-width: 520px; }
  .do-card { display: grid; grid-template-columns: 1fr; }
}

/* ================= CASE FILMS ================= */
.case-list { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.case {
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 44px);
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}
.case-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 40ch; }
.case-tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.case-head h3 { font-size: var(--t-xl); }
.film { position: relative; }
.beats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  position: relative;
  z-index: 1;
}
.beat { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; position: relative; }
.beat h4 { font-size: var(--t-lg); margin-top: var(--s-2); }
.beat p { color: var(--c-ink-soft); max-width: 36ch; }
.beat-icon {
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--c-canvas);
  box-shadow: inset 2px 3px 7px rgba(42, 36, 64, .12), inset -1px -1px 0 rgba(255,255,255,.9), 0 0 0 6px var(--c-paper);
}
.beat-icon svg { width: 54px; height: 54px; overflow: visible; }
.beat-track {
  position: absolute;
  top: 35px;
  left: 36px;
  width: calc((100% + var(--s-6)) * 2 / 3);
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--c-line) 0 8px, transparent 8px 14px);
}
.beat-track-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--c-accent);
  transform-origin: left center;
}

@media (max-width: 900px) {
  .beats { grid-template-columns: 1fr; gap: var(--s-6); }
  .beat { padding-left: 92px; min-height: 72px; }
  .beat-icon { position: absolute; left: 0; top: 0; }
  .beat h4 { margin-top: 0; }
  .beat-track { display: none; }
  .beat:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 35px;
    top: 84px;
    bottom: calc(-1 * var(--s-6) + 8px);
    width: 3px;
    border-radius: 2px;
    background: var(--c-accent);
    transform-origin: top center;
    transition: transform var(--dur-lg) var(--ease-out) var(--dur-sm);
  }
  .case.film-armed .beat:not(:last-child)::after { transform: scaleY(0); }
  .case.film-armed .beat.is-lit::after { transform: none; }
  .case.film-armed .beat .beat-icon svg { transform: scale(.6); opacity: .4; transition: transform var(--dur-md) var(--ease-spring), opacity var(--dur-md) var(--ease-out); }
  .case.film-armed .beat.is-lit .beat-icon svg { opacity: 1; }
  .case.film-armed .beat.is-lit .beat-icon svg { transform: none; }
}

/* ================= TOOLKIT TRAY ================= */
.tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: calc(var(--r-lg) + 6px);
  background: linear-gradient(160deg, #FFFFFF, #EFEAE1);
  box-shadow: var(--sh-lg), inset 0 -4px 0 rgba(42, 36, 64, .06);
}
.tray-group {
  border-radius: var(--r-lg);
  background: var(--c-canvas);
  box-shadow: inset 2px 4px 10px rgba(42, 36, 64, .12), inset -1px -1px 0 rgba(255,255,255,.9);
  padding: var(--s-5) var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}
.tray-label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--c-ink-soft);
}
.tray-slot { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.chip {
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: var(--sh-clay);
  color: var(--c-ink);
}
.chip--lav { background: radial-gradient(circle at 30% 20%, #EDEBFB, var(--c-lavender) 62%, #B3ACDD); }
.chip--sage { background: radial-gradient(circle at 30% 20%, #E2F0E8, var(--c-sage) 62%, #9DBCA9); }
.chip--blush { background: radial-gradient(circle at 30% 20%, #FCE7EA, var(--c-blush) 62%, #E0B1B8); }
.chip--butter { background: radial-gradient(circle at 30% 20%, #FFF3C8, var(--c-butter) 62%, #E2C463); }
@media (max-width: 1000px) { .tray { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tray { grid-template-columns: 1fr; }
  .tray-slot { flex-direction: row; flex-wrap: wrap; }
}

/* ================= NOTES ================= */
.notes-list { list-style: none; border-top: 1.5px solid var(--c-ink); }
.note {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--s-2) var(--s-6);
  align-items: baseline;
  padding-block: clamp(20px, 3vw, 32px);
  border-bottom: var(--border);
}
.note h3 {
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  max-width: 30ch;
}
.note-meta { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.note .date { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-ink-soft); }
.note-status {
  font-family: var(--f-mono);
  font-size: .7rem;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(244, 217, 122, .55);
  color: var(--c-ink);
}
@media (max-width: 720px) { .note { grid-template-columns: 1fr; } }

/* ================= CONTACT / FOOTER ================= */
.contact { padding-block: clamp(64px, 8vw, 112px) var(--s-6); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--c-ink);
  color: #EDEBF2;
  border-radius: calc(var(--r-lg) + 8px);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--sh-lg);
}
.contact-main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); min-width: 0; }
.contact-main .eyebrow { color: #BDBAC8; }
.contact-main h2 { color: #FFFFFF; font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -.04em; }
.contact-main p:not(.eyebrow) { color: #C9C6D3; max-width: 48ch; }
.contact-cta { margin-top: var(--s-3); max-width: 100%; overflow-wrap: anywhere; }
.contact-desk {
  position: relative;
  min-height: 260px;
  border-radius: var(--r-lg);
  background: #2F2F37;
  box-shadow: inset 2px 4px 14px rgba(0,0,0,.35), inset -1px -1px 0 rgba(255,255,255,.05);
  touch-action: none;
}
.desk-blocks {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 230px;
  height: 140px;
  transform: translateX(-50%);
}
.desk-block {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--sh-clay);
}
.desk-block--lav { left: 0; bottom: 0; width: 82px; height: 64px; background: radial-gradient(circle at 30% 22%, #EDEBFB, var(--c-lavender) 60%, #A49DD3); }
.desk-block--blush { right: 0; bottom: 0; width: 82px; height: 64px; background: radial-gradient(circle at 30% 22%, #FCE7EA, var(--c-blush) 60%, #D9A3AC); }
.desk-block--sage { left: 52px; bottom: 68px; width: 126px; height: 40px; background: radial-gradient(circle at 30% 22%, #E2F0E8, var(--c-sage) 60%, #8FB09D); }
.desk-block--key { left: 96px; bottom: 0; width: 38px; height: 64px; border-radius: 12px; background: radial-gradient(circle at 30% 22%, #F27A62, var(--c-accent) 60%, #A42814); }

.poke-note {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 136px;
  min-height: 120px;
  padding: 16px 14px;
  border: 0;
  border-radius: 6px 6px 22px 6px;
  background: radial-gradient(circle at 28% 18%, #FFF3C8, var(--c-butter) 62%, #DDBF5E);
  box-shadow: var(--sh-clay);
  transform: rotate(-5deg);
  cursor: grab;
  text-align: left;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.poke-note:active { cursor: grabbing; }
.poke-note-text {
  font-family: var(--f-hand);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.05;
  color: var(--c-ink);
  display: block;
}
.poke-note:focus-visible { outline-color: #8AB0FF; }

.foot-links {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-top: var(--s-7);
}
.foot-links a { font-weight: 500; padding-block: var(--s-2); }
.foot-bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: var(--border);
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
}
.foot-peaks { width: 110px; height: 20px; flex-basis: 100%; max-width: 110px; }
.foot-peaks path { fill: none; stroke: var(--c-ink-soft); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-desk { min-height: 240px; }
}

/* contact CTA sparkle pop */
.pop-spark {
  position: fixed;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 60;
}
.pop-spark path { fill: none; stroke: var(--c-butter); stroke-width: 3; stroke-linecap: round; }
.pop-spark:nth-child(odd) path { stroke: var(--c-accent); }

/* ================= ABOUT ================= */
.about-hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); min-width: 0; }
.about-hero h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 360px;
  justify-self: center;
}
.portrait-frame {
  position: absolute;
  inset: 0;
  border-radius: 46% 46% var(--r-lg) var(--r-lg);
  background: radial-gradient(circle at 32% 20%, #FFFFFF, #EFEAE1 60%, #DCD3C4);
  box-shadow: var(--sh-lg), inset 0 0 0 10px var(--c-paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-initial {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(5rem, 12vw, 8rem);
  letter-spacing: -.06em;
  color: var(--c-lavender);
  text-shadow: 2px 3px 0 rgba(255,255,255,.9), -2px -2px 6px rgba(42,36,64,.12);
}
.portrait-block {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--sh-clay);
}
.portrait-block--a { left: -6%; bottom: 10%; width: 22%; aspect-ratio: 1; background: radial-gradient(circle at 30% 22%, #E2F0E8, var(--c-sage) 60%, #8FB09D); transform: rotate(-8deg); }
.portrait-block--b { right: -5%; top: 18%; width: 16%; aspect-ratio: 1 / 1.4; background: radial-gradient(circle at 30% 22%, #F27A62, var(--c-accent) 60%, #A42814); border-radius: 12px; transform: rotate(6deg); }
.portrait-block--c { right: 10%; bottom: -4%; width: 26%; aspect-ratio: 1.5; background: radial-gradient(circle at 30% 22%, #FFF3C8, var(--c-butter) 60%, #D8B851); }
.portrait-pin {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.bio {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
}
.bio div {
  background: var(--c-paper);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--sh-sm), inset 0 0 0 1px var(--c-line);
  min-width: 0;
}
.bio dt { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-ink-soft); }
.bio dd { margin: var(--s-1) 0 0; font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); letter-spacing: -.015em; line-height: 1.2; }
@media (max-width: 900px) { .bio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .bio { grid-template-columns: 1fr; } }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.story-grid h2 { position: sticky; top: 104px; }
.story-text { display: flex; flex-direction: column; gap: var(--s-4); max-width: var(--measure); }
.story-text p { font-size: var(--t-lg); line-height: 1.65; color: var(--c-ink-soft); }
.story-text p:first-child { color: var(--c-ink); font-size: var(--t-xl); line-height: 1.45; letter-spacing: -.01em; }
.story-text strong { color: var(--c-ink); }
@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid h2 { position: static; }
}

/* four highlight cards as notes pinned to a desk */
.fact-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}
.fact-card {
  border-radius: 8px 8px 24px 8px;
  padding: var(--s-5);
  box-shadow: var(--sh-clay);
  transform: rotate(var(--tilt, 0deg));
  transition: transform var(--dur-md) var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.fact-card:nth-child(1) { --tilt: -2deg; background: radial-gradient(circle at 28% 18%, #FFF3C8, var(--c-butter) 70%, #E2C463); }
.fact-card:nth-child(2) { --tilt: 1.5deg; background: radial-gradient(circle at 28% 18%, #FCE7EA, var(--c-blush) 70%, #E0B1B8); margin-top: var(--s-5); }
.fact-card:nth-child(3) { --tilt: -1deg; background: radial-gradient(circle at 28% 18%, #E2F0E8, var(--c-sage) 70%, #9DBCA9); }
.fact-card:nth-child(4) { --tilt: 2deg; background: radial-gradient(circle at 28% 18%, #EDEBFB, var(--c-lavender) 70%, #B3ACDD); margin-top: var(--s-5); }
@media (hover: hover) and (pointer: fine) {
  .fact-card:hover { transform: rotate(0deg) translateY(-4px); }
}
.fact-card h3 { font-size: var(--t-lg); }
.fact-card ul { padding-left: 1.1em; display: flex; flex-direction: column; gap: 2px; }
.fact-card p, .fact-card li { font-size: .95rem; line-height: 1.5; }
@media (max-width: 1000px) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-card:nth-child(n) { margin-top: 0; }
}
@media (max-width: 520px) { .fact-grid { grid-template-columns: 1fr; } }

/* Translation Station */
.ts-head { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.ts-toggle {
  display: inline-flex;
  padding: 5px;
  margin-top: var(--s-3);
  background: var(--c-canvas);
  border-radius: var(--r-pill);
  box-shadow: inset 2px 3px 7px rgba(42, 36, 64, .12), inset -1px -1px 0 rgba(255,255,255,.9);
}
.ts-toggle button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
  transition: background-color var(--dur-sm) var(--ease-out), color var(--dur-sm) var(--ease-out), box-shadow var(--dur-sm) var(--ease-out);
}
.ts-toggle button[aria-pressed="true"] { background: var(--c-paper); color: var(--c-ink); box-shadow: var(--sh-sm); }
.ts-toggle button.tech[aria-pressed="true"] { background: var(--c-ink); color: var(--c-butter); }
.ts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.ts-card {
  border-radius: var(--r-lg);
  padding: var(--s-5);
  background: var(--c-paper);
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: background-color var(--dur-md) var(--ease-out), color var(--dur-md) var(--ease-out);
}
.ts-card h3 { font-size: var(--t-lg); }
.ts-card p { color: var(--c-ink-soft); }
.ts-card.tech { background: var(--c-ink); }
.ts-card.tech h3 { color: var(--c-butter); }
.ts-card.tech p { color: #CFCCD8; font-family: var(--f-mono); font-size: .86rem; line-height: 1.6; }
@media (max-width: 900px) { .ts-list { grid-template-columns: 1fr; max-width: 560px; } }
