/* Homepage: colour chapters. Each .chapter is one flat field; --bg and --ink drive the buttons, header and text inside it. */
.home {
  --pad: clamp(20px, 3vw, 40px);
  --lilac: #cfc3f8;
  --violet: #a58ff0;
  --cyan: #2fd6cf;
  --night: #1f1147; --deep: #2e1d63; --floor: #170b33; --studio: #0e0620;
  --brand: #6d4ad0; --panel: #5b3bb5; --bright: #8566e0; --mist: #f6f4fb; --white: #fff;
  --magenta: #e04fb0; --pink: #ff8fd3; --fail: #a1226f; --row: #3b2882; --row-hover: #4a339a; --deck: #7b5fe0; --blush: #f7b8e1;
  background: var(--floor);
}
.home h1, .home h2, .home h3 { color: inherit; }
.chapter { background: var(--bg); color: var(--ink); }

/* ---- Header takes the colours of the chapter beneath it (set by home.js) ---- */
.home .site-header {
  background: var(--hdr-bg, var(--night));
  border-bottom: 0;
  backdrop-filter: none; /* taste-skill-ignore */
  transition: background 300ms ease;
}
.home .header-inner { max-width: none; padding: 0 var(--pad); }
.home .site-header.scrolled { box-shadow: none; } /* taste-skill-ignore */
.home .brand-name,
.home .brand-tagline,
.home .primary-nav a { color: var(--hdr-ink, var(--white)); transition: color 300ms ease; }
.home .brand-name em { color: inherit; opacity: 0.7; }
.home .brand-tagline { opacity: 0.75; }
.home .primary-nav a:hover { opacity: 0.75; }
.home .primary-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.home .nav-cta { background: var(--hdr-ink, var(--white)); color: var(--hdr-bg, var(--night)) !important; transition: background 300ms ease, color 300ms ease; }
.home .nav-cta:hover { background: var(--hdr-ink, var(--white)) !important; opacity: 0.85; }
.home .nav-toggle span { background: var(--hdr-ink, var(--white)); }
.home .brand-mark { filter: hue-rotate(55deg) brightness(1.5) saturate(0.8); }

/* ---- Keyboard focus, visible on every chapter ---- */
.home a:focus-visible, .home button:focus-visible { outline: 3px solid var(--ink, var(--white)); outline-offset: 3px; }
.home .site-header a:focus-visible, .home .site-header button:focus-visible { outline-color: var(--hdr-ink, var(--white)); }

/* ---- Buttons invert with their chapter ---- */
.home .btn-primary { background: var(--ink); color: var(--bg); }
.home .btn-primary:hover { background: var(--ink); opacity: 0.88; }
.home .btn:active { transform: scale(0.97); }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: opacity 200ms; }
.text-link:hover { opacity: 0.75; }

/* ---- Entrance (content stays visible without JS) ---- */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity 700ms ease, transform 700ms ease; transition-delay: var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: none; }

/* ---- Hero ---- */
.home .hero { display: block; min-height: 0; grid-template-columns: none; --bg: var(--night); --ink: var(--white); padding: calc(var(--header-h) + 56px) var(--pad) 88px; }
.hero h1 {
  font-size: clamp(2.2rem, 7.3vw, 8.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 56px;
}
.home .hero-copy { padding: 0; align-self: start; }
.hero-row > * { min-width: 0; }
.hero-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: calc(var(--pad) * 2); align-items: start; }
.hero-sub { color: inherit; font-size: 1.25rem; line-height: 1.55; max-width: 36ch; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---- The live workflow ---- */
.runner { background: var(--deep); border-radius: 16px; padding: clamp(20px, 2.4vw, 32px); }
.runner-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.runner-title { font-size: 1.5rem; }
.runner-status { font-weight: 600; color: var(--lilac); }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li { margin-bottom: 8px; }
.job {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--row);
  color: var(--white);
  font: 600 1.05rem/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
}
.job:hover { background: var(--row-hover); }
.job:active { transform: scale(0.985); }
.job:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.job-state { color: var(--lilac); font-weight: 500; }
.job.will-fail .job-state { color: var(--pink); font-weight: 700; }
.job.is-running { background: var(--brand); }
.job.is-running .job-state { color: var(--white); }
.job.is-ok .job-state { color: var(--cyan); font-weight: 700; }
.job.is-failed { background: var(--fail); }
.job.is-failed .job-state { color: var(--white); font-weight: 700; }
.runner-foot { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.runner-foot .btn { flex: none; background: var(--white); color: var(--night); }
.runner-foot .btn:disabled { opacity: 0.5; cursor: default; }
.runner-log { color: var(--lilac); font-size: 1rem; line-height: 1.4; }
.wave { display: flex; align-items: center; gap: 4px; height: 0; margin-top: 0; overflow: hidden; transition: height 500ms ease, margin-top 500ms ease; }
.wave.on { height: 64px; margin-top: 22px; }
.wave i { flex: 1; min-width: 0; height: 100%; border-radius: 3px; background: var(--cyan); transform-origin: center; animation: eq 1.4s ease-in-out infinite; animation-delay: calc(var(--n) * -90ms); }
.wave i:nth-child(3n) { background: var(--magenta); }
.wave i:nth-child(3n+1) { background: var(--lilac); }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.2); } }

/* ---- Statements on colour fields ---- */
.field {
  min-height: 78svh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--pad);
  row-gap: 56px;
  padding: 64px var(--pad) var(--pad);
}
.field-text { grid-column: 8 / 13; grid-row: 1; }
.field-text p { font-size: 1.2rem; line-height: 1.5; max-width: 32ch; margin-bottom: 20px; }
.field-text li { font-size: 1.05rem; line-height: 1.5; margin-bottom: 4px; }
.field-phrase {
  grid-column: 1 / 13;
  grid-row: 2;
  align-self: end;
  font-size: clamp(3rem, 9vw, 9.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.field--support .field-text, .field--ai .field-text { grid-column: 2 / 7; }
.field--support .field-phrase, .field--ai .field-phrase { justify-self: end; text-align: right; }
.field--auto { --bg: var(--brand); --ink: var(--white); }
.field--support { min-height: 90svh; --bg: var(--lilac); --ink: var(--night); }
.field--consult { --bg: var(--deep); --ink: var(--white); }
.field--ai { --bg: var(--violet); --ink: var(--night); }
.field--web { --bg: var(--mist); --ink: var(--night); min-height: 100svh; }
.stats { margin-top: 28px; font-size: 1.05rem; }
.stats strong { font-weight: 700; }

/* ---- Lineage: four real pictures ---- */
.lineage { --bg: var(--lilac); --ink: var(--night); padding: 120px var(--pad); }
.lineage-head { margin-bottom: 64px; }
.lineage-head h2 { font-size: clamp(3rem, 8vw, 8rem); line-height: 0.92; letter-spacing: -0.04em; margin-bottom: 28px; }
.lineage-head p { font-size: 1.2rem; line-height: 1.5; max-width: 46ch; margin-left: 41.66%; }
.lineage-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.5fr 1fr; gap: 12px; align-items: end; }
.lineage figure { margin: 0; }
.lineage img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; transition: transform 500ms ease; }
.lineage figure { overflow: hidden; }
.lineage figure:nth-child(2) img { aspect-ratio: 1 / 1; }
.lineage figure:nth-child(3) img { aspect-ratio: 4 / 3; }
.lineage figure:nth-child(4) img { aspect-ratio: 4 / 5; }
.lineage figure:hover img { transform: scale(1.04); }
.lineage figcaption { margin-top: 12px; font-size: 1rem; font-weight: 500; }

/* ---- Creative Studio ---- */
.creative { --bg: var(--studio); --ink: var(--white); padding: 120px var(--pad) 0; overflow: hidden; }
.creative-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); align-items: end; margin-bottom: 72px; }
.creative-head h2 { grid-column: 1 / 9; font-size: clamp(3rem, 8vw, 8rem); line-height: 0.92; letter-spacing: -0.04em; }
.creative-head p { grid-column: 9 / 13; font-size: 1.2rem; line-height: 1.5; }
.creative-body { display: grid; grid-template-columns: 5fr 7fr; gap: calc(var(--pad) * 2); align-items: start; }
.creative-cols { display: grid; gap: 48px; }
.clip { margin: 0; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--night); display: block; }
.clip figcaption { margin-top: 12px; font-size: 1rem; }
.creative-cols h3 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 10px; color: var(--cyan); }
.creative-cols > div:nth-child(2) h3 { color: var(--pink); }
.creative-cols p { font-size: 1.15rem; margin-bottom: 18px; }
.creative-cols li { font-size: 1.3rem; line-height: 1.5; }
.deck { display: flex; align-items: flex-end; gap: 6px; height: 220px; margin: 80px calc(var(--pad) * -1) 0; }
.deck i { flex: 1; height: 100%; background: var(--cyan); transform-origin: bottom; animation: deck 2.4s ease-in-out infinite; animation-delay: calc(var(--n) * -140ms); }
.deck i:nth-child(3n) { background: var(--magenta); }
.deck i:nth-child(3n+1) { background: var(--deck); }
@keyframes deck { 0%, 100% { transform: scaleY(0.9); } 50% { transform: scaleY(0.15); } }

/* ---- About ---- */
.about { --bg: var(--mist); --ink: var(--night); padding: 140px var(--pad); }
.about-text { font-size: clamp(1.4rem, 2.2vw, 2.25rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; columns: 2; column-gap: calc(var(--pad) * 2); hyphens: auto; }
.about mark, .about .m5 { color: var(--night); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.about .m1 { background: var(--lilac); }
.about .m2 { background: var(--violet); }
.about .m3 { background: var(--cyan); }
.about .m4 { background: var(--blush); }
.about .m5 { background: var(--brand); color: var(--white); font-weight: 700; transition: background 200ms; }
.about .m5:hover { background: var(--night); }

/* ---- Contact ---- */
.contact { --bg: var(--brand); --ink: var(--white); padding: 120px var(--pad); }
.contact-head { margin-bottom: 56px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); align-items: end; }
.contact-head h2 { grid-column: 1 / 9; font-size: clamp(3rem, 6.6vw, 6.6rem); line-height: 0.95; letter-spacing: -0.035em; }
.contact-head p { grid-column: 9 / 13; font-size: 1.15rem; line-height: 1.5; }
.contact .contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: calc(var(--pad) * 2); margin: 0; }
.contact .contact-form { padding: 0; background: none; box-shadow: none; /* taste-skill-ignore */ border: 0; }
.contact .contact-form label { color: var(--white); font-weight: 600; font-size: 1rem; margin: 20px 0 8px; display: block; }
.contact .contact-form label:first-child { margin-top: 0; }
.contact .contact-form input,
.contact .contact-form select,
.contact .contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--night);
  color: var(--white);
  font: 500 1.05rem/1.4 var(--font-body);
  padding: 16px 18px;
  box-shadow: none; /* taste-skill-ignore */
  transition: background 200ms ease;
}
.contact .contact-form input:focus,
.contact .contact-form select:focus,
.contact .contact-form textarea:focus { background: var(--row); outline: 3px solid var(--white); outline-offset: 2px; border: 0; box-shadow: none; /* taste-skill-ignore */ }
.contact .contact-form button { margin-top: 28px; }
.form-note { margin-top: 16px; font-size: 1.05rem; line-height: 1.5; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.contact-direct h3 { font-size: 1.1rem; margin-bottom: 14px; }
.contact-direct a { color: var(--white); font-size: clamp(1.4rem, 2.2vw, 2.2rem); font-weight: 700; word-break: break-word; }
.contact-direct a:hover { text-decoration: underline; }

/* ---- Footer: the name opens it ---- */
.home-footer { --bg: var(--floor); --ink: var(--white); padding: 96px var(--pad) 40px; }
.footer-word { font-family: var(--font-display); font-weight: 700; font-size: 16.2vw; line-height: 0.82; letter-spacing: -0.05em; color: var(--bright); white-space: nowrap; margin-bottom: 72px; }
.footer-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); row-gap: 40px; }
.footer-places { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 6px; }
.footer-places a { font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 600; color: var(--lilac); }
.footer-places a:hover, .footer-links a:hover, .credits a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-links { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 1.05rem; }
.credits { margin: 72px 0 32px; font-size: 0.95rem; line-height: 1.6; max-width: 80ch; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }

.home .brand-tagline { font-size: 0.82rem; }

/* ---- Phones and tablets ---- */
@media (max-width: 860px) {
  .hero { padding-bottom: 56px; }
  .hero-row { grid-template-columns: 1fr; }
  .field, .field--support { min-height: 64svh; }
  .field-text { grid-column: 1 / 13; max-width: 85%; }
  .field--support .field-text, .field--ai .field-text { grid-column: 1 / 13; }
  .field--support .field-phrase, .field--ai .field-phrase { justify-self: start; text-align: left; }
  .field-phrase { font-size: 13vw; }
  .lineage, .creative, .contact { padding-top: 80px; padding-bottom: 80px; }
  .creative { padding-bottom: 0; }
  .lineage-head, .creative-head, .contact-head { display: block; margin-bottom: 40px; }
  .lineage-head p, .creative-head p, .contact-head p { margin-top: 20px; margin-left: 0; }
  .lineage-head h2 { font-size: 13vw; }
  .creative-head h2 { font-size: 9.2vw; }
  .contact-head h2 { font-size: 9vw; }
  .home .hero h1 { font-size: 8.2vw; }
  .home .primary-nav { border-bottom: 0; background: var(--hdr-bg, var(--night)); }
  .home .primary-nav a { border-bottom: 0; }
  .lineage-grid { grid-template-columns: 1fr 1fr; }
  .creative-body, .contact .contact-grid { grid-template-columns: 1fr; }
  .creative-body { gap: 48px; }
  .lineage figure:nth-child(n) img { aspect-ratio: 1 / 1; }
  .deck { height: 140px; margin-top: 56px; gap: 2px; }
  .about { padding: 80px var(--pad); }
  .about-text { columns: 1; font-size: 1.35rem; hyphens: none; }
  .footer-row { display: block; }
  .footer-links { margin-top: 32px; margin-bottom: 40px; }
  .footer-legal { font-size: 0.9rem; }
}

/* ============ Team page (team.html) ============ */
.team-hero { padding-bottom: 96px; }
.team-hero .hero-sub { max-width: 44ch; margin-bottom: 0; }
.team-person { --bg: var(--lilac); --ink: var(--night); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); align-items: start; padding: 96px var(--pad); }
.team-photo { grid-column: 1 / 6; }
.team-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.team-about { grid-column: 7 / 13; }
.team-about h2 { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; }
.team-person .team-role { font-size: 1.25rem; font-weight: 600; color: inherit; margin: 16px 0 36px; }
.team-person .team-bio { color: inherit; margin: 0; font-size: clamp(1.3rem, 1.9vw, 1.9rem); line-height: 1.4; letter-spacing: -0.01em; font-weight: 500; }
.team-person .btn { margin-top: 36px; }
.team-skills-list a { display: inline-block; transition: opacity 200ms; }
.team-skills-list a:hover { opacity: 0.75; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.team-how { --bg: var(--deep); --ink: var(--white); padding: 112px var(--pad); }
.team-how h2 { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 56px; }
.team-phases { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px calc(var(--pad) * 2); }
.team-phases h3 { font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--lilac); margin-bottom: 14px; }
.team-phases p { font-size: 1.2rem; line-height: 1.5; max-width: 44ch; }
.team-person .team-bio + .team-bio { margin-top: 24px; }
.team-skills-field { --bg: var(--brand); --ink: var(--white); padding: 112px var(--pad); }
.team-skills-field h2 { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 56px; }
.team-skills-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: calc(var(--pad) * 2); list-style: none; padding: 0; }
.team-skills-list li { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 3.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; padding: 10px 0; }
@media (max-width: 860px) {
  .team-hero { padding-bottom: 56px; }
  .home .team-hero h1 { font-size: 9.5vw; }
  .team-about h2, .team-skills-field h2 { font-size: 8.5vw; }
  .team-person { display: block; padding: 64px var(--pad); }
  .team-photo { margin-bottom: 40px; }
  .team-skills-field, .team-how { padding: 72px var(--pad); }
  .team-how h2 { font-size: 8.5vw; margin-bottom: 36px; }
  .team-phases { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .team-skills-list { grid-template-columns: 1fr; }
}

/* ============ Featured project (ShiftDex) ============ */
.project { --bg: var(--brand); --ink: var(--white); padding: 120px var(--pad); }
.project-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); align-items: end; margin-bottom: 64px; }
.project-head h2 { grid-column: 1 / 9; font-size: clamp(3rem, 7.4vw, 7.4rem); line-height: 0.92; letter-spacing: -0.04em; }
.project-copy { grid-column: 9 / 13; }
.project-copy p { font-size: 1.2rem; line-height: 1.5; margin-bottom: 28px; }
.project-cover { margin: 0; }
.project-cover img { width: 100%; height: auto; border-radius: 10px; display: block; }
@media (max-width: 860px) {
  .project { padding: 80px var(--pad); }
  .project-head { display: block; margin-bottom: 40px; }
  .project-head h2 { font-size: 11vw; }
  .project-copy { margin-top: 24px; }
}

/* ============ Studio tracks (Creative Studio) ============ */
.tracks { display: grid; grid-template-columns: 5fr 7fr; gap: calc(var(--pad) * 2); align-items: start; margin-top: 96px; }
.tracks-head h3 { font-size: clamp(1.8rem, 3vw, 3rem); color: var(--cyan); margin-bottom: 12px; }
.tracks-head p { font-size: 1.15rem; line-height: 1.5; max-width: 40ch; }
.tracks-list { display: grid; gap: 12px; }
.track { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 20px 22px; background: var(--night); border-radius: 10px; }
.track-play { min-width: 76px; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--white); color: var(--night); font: 600 1rem/1 var(--font-body); cursor: pointer; transition: opacity 200ms, transform 150ms; }
.track-play:hover { opacity: 0.88; }
.track-play:active { transform: scale(0.97); }
.track-name { font: 600 1.25rem/1.2 var(--font-body); margin-bottom: 10px; }
.track-bar { width: 100%; height: 24px; margin: 0; background: none; accent-color: var(--cyan); cursor: pointer; }
.track-time { font-variant-numeric: tabular-nums; color: var(--lilac); font-size: 1rem; min-width: 3.2em; text-align: right; }
.track.is-playing { background: var(--deep); }
@media (max-width: 860px) {
  .tracks { display: block; margin-top: 64px; }
  .tracks-list { margin-top: 28px; }
  .track { gap: 14px; padding: 16px; }
}

/* ============ Legal page (privacy.html), uses the Team hero ============ */
.legal { --bg: var(--mist); --ink: var(--night); padding: 96px var(--pad) 120px; }
.legal-sec { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); padding: 40px 0; }
.legal-sec:first-child { padding-top: 0; }
.legal-sec h2 { grid-column: 1 / 6; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.legal-text { grid-column: 6 / 13; }
.legal-text p { font-size: 1.2rem; line-height: 1.6; margin-bottom: 14px; }
.legal-text a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; font-weight: 600; }
@media (max-width: 860px) { .legal { padding: 64px var(--pad) 80px; } .legal-sec { display: block; padding: 28px 0; } .legal-sec h2 { margin-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-r] { opacity: 1; transform: none; transition: none; }
  .wave i, .deck i { animation: none; }
  .lineage figure:hover img { transform: none; }
}

/* ---- Audit fixes: touch targets and the studio clip control ---- */
.home .primary-nav a:not(.nav-cta) { padding: 10px 0; }
.footer-links { gap: 0; }
.footer-links a { padding: 10px 0; }
.text-link { display: inline-block; padding: 10px 0; }
.clip-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 12px; }
.clip-bar figcaption { margin-top: 0; }
.clip-toggle { background: none; border: 0; padding: 10px 0; color: inherit; font: 600 1rem/1 var(--font-body); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; cursor: pointer; }
.clip-toggle:hover { opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .home .site-header, .home .brand-name, .home .brand-tagline, .home .primary-nav a { transition: none; } }

/* ============ Work page (work.html) ============ */
.work { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); align-items: center; padding: 96px var(--pad); }
.work-a { --bg: var(--deep); --ink: var(--white); }
.work-b { --bg: var(--lilac); --ink: var(--night); }
.work-c { --bg: var(--brand); --ink: var(--white); }
.work-d { --bg: var(--deep); --ink: var(--white); }
.work-copy { grid-column: 1 / 6; }
.work-num { font-variant-numeric: tabular-nums; font-weight: 600; margin-bottom: 16px; }
.work-copy h2 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 24px; }
.work-copy p:not(.work-num) { font-size: 1.2rem; line-height: 1.5; margin-bottom: 32px; max-width: 40ch; }
.work-shot { grid-column: 6 / 13; display: block; }
.work-shot img { width: 100%; height: auto; display: block; border-radius: 10px; }
@media (max-width: 860px) {
  .work { display: block; padding: 64px var(--pad); }
  .work-shot { margin-top: 36px; }
}

/* ============ Demos ============ */
.demos { --bg: var(--lilac); --ink: var(--night); padding: 120px var(--pad); }
.demos-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); align-items: end; margin-bottom: 56px; }
.demos-head h2 { grid-column: 1 / 9; font-size: clamp(3rem, 7.4vw, 7.4rem); line-height: 0.92; letter-spacing: -0.04em; }
.demos-head p { grid-column: 9 / 13; font-size: 1.2rem; line-height: 1.5; }
.demo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--pad); }
.demo { display: block; color: inherit; text-decoration: none; }
.demo-thumb, .demo > img { aspect-ratio: 16 / 10; width: 100%; height: auto; border-radius: 10px; display: block; object-fit: cover; margin-bottom: 16px; }
.demo-thumb { background: var(--violet); }
a.demo:hover .demo-thumb, a.demo:hover > img { outline: 3px solid var(--night); outline-offset: 3px; }
.demo h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.demo p { font-size: 0.98rem; line-height: 1.45; }
.demo-tag { display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 600; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 10px; }
@media (max-width: 1100px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .demos { padding: 80px var(--pad); }
  .demos-head { display: block; margin-bottom: 40px; }
  .demos-head h2 { font-size: 11vw; }
  .demos-head p { margin-top: 24px; }
}
@media (max-width: 520px) { .demo-grid { grid-template-columns: 1fr; } }
