:root {
  --cream: #FFFDF9;
  --cream-2: #FFFFEB;
  --ink: #1A1A1A;
  --green: #034F46;
  --green-ink: #FFFFEB;
  --orange: #FFA946;
  --lilac: #F0D7FF;
  --sage: #E4E4D0;
  --muted: #6f6d66;
  --r-card: 2rem;
  --r-sm: 1rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green); color: var(--green-ink); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: "EB Garamond", serif; font-style: italic; font-weight: 400; }
.mono {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
}

/* ---------- nav ---------- */
header { padding: 20px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.wordmark .dot { color: var(--orange); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  background: var(--green); color: var(--green-ink);
  font-weight: 600; font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 79, 70, 0.25); }
.btn.small { padding: 10px 20px; font-size: 0.9rem; }
.btn.orange { background: var(--orange); color: var(--ink); }
.btn.orange:hover { box-shadow: 0 10px 24px rgba(255, 169, 70, 0.4); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero: washed-out castle loop in a color-block panel ---------- */
.hero { padding: 4px 20px 0; }
.hero-panel {
  position: relative; overflow: hidden;
  max-width: 1400px; margin: 0 auto;
  border-radius: var(--r-card);
  min-height: min(78vh, 720px);
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--sage); }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;
  filter: saturate(0.96) brightness(1.03) blur(3px);
  transform: scale(1.06); /* hide blur edge fringe; also crops the castle slightly off-frame */
  transition: opacity 1.2s ease;
}
.hero-media video.back { opacity: 0; }
/* videos stay invisible (poster showing) until playback actually starts */
.hero-media:not(.live) video { opacity: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,253,249,0.82) 0%, rgba(255,253,249,0.45) 38%, rgba(255,253,249,0) 62%);
}
/* film grain + fine dither sitting on top of the blurred footage */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, rgba(0,0,0,0.04) 0% 50%);
  background-size: 140px 140px, 2px 2px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.hero-content {
  position: relative; z-index: 2;
  padding: clamp(48px, 7vw, 96px);
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
}
.hero h1 .serif { font-size: 1.05em; letter-spacing: -0.01em; }
.hero p {
  margin-top: 24px; color: rgba(26,26,26,0.62);
  font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 40ch;
}
.hero .btn { margin-top: 36px; font-size: 1.05rem; padding: 16px 32px; }
@media (max-width: 640px) {
  .hero { padding: 4px 12px 0; }
  .hero-panel { min-height: 74vh; align-items: flex-end; }
  .hero-media video, .hero-media img { object-position: 78% center; }
  .hero-scrim {
    background: linear-gradient(0deg, rgba(255,253,249,0.88) 0%, rgba(255,253,249,0.5) 45%, rgba(255,253,249,0.05) 75%);
  }
}

/* ---------- services ---------- */
.services { padding: 20px 0 110px; }
.services .head { text-align: center; margin-bottom: 36px; }
.services .head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em;
  margin-top: 12px;
}
.grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.card {
  grid-column: span 2;
  border-radius: var(--r-card);
  padding: 34px 30px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 26, 26, 0.1); }
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.card .mono { color: rgba(26,26,26,0.55); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.icon { color: rgba(26,26,26,0.82); }
.icon svg { width: 60px; height: 60px; display: block; overflow: visible; stroke: currentColor; }
.icon [data-fill] { fill: currentColor; }
.c-green .icon { color: rgba(255,255,235,0.9); }

/* 01 — consulting: bars growing */
.i-bars rect { transform-box: fill-box; transform-origin: bottom; animation: barGrow 2.8s ease-in-out infinite; }
.i-bars rect:nth-child(2) { animation-delay: .35s; }
.i-bars rect:nth-child(3) { animation-delay: .7s; }
@keyframes barGrow { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }

/* 02 — saas: layers stacking */
.i-layers path { transform-box: fill-box; animation: layerBob 3.2s ease-in-out infinite; }
.i-layers path:nth-child(2) { animation-delay: .25s; }
.i-layers path:nth-child(3) { animation-delay: .5s; }
@keyframes layerBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* 03 — media: broadcast rings */
.i-signal .ring { transform-box: fill-box; transform-origin: left center; animation: ringPulse 2.6s ease-out infinite; opacity: 0; }
.i-signal .ring:nth-of-type(2) { animation-delay: .45s; }
.i-signal .ring:nth-of-type(3) { animation-delay: .9s; }
@keyframes ringPulse { 0% { opacity: 0; transform: scale(0.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }

/* 04 — ideation: lightbulb glow + rays */
.i-bulb .glow { animation: glowPulse 3s ease-in-out infinite; }
.i-bulb .ray { transform-box: fill-box; transform-origin: center; animation: rayPulse 3s ease-in-out infinite; }
.i-bulb .ray:nth-of-type(2) { animation-delay: .15s; }
.i-bulb .ray:nth-of-type(3) { animation-delay: .3s; }
.i-bulb .ray:nth-of-type(4) { animation-delay: .45s; }
@keyframes glowPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.85; } }
@keyframes rayPulse { 0%, 100% { opacity: 0.15; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1); } }

/* 05 — content: paper plane + marching trail */
.i-plane .trail { stroke-dasharray: 5 6; animation: trailMarch 1.6s linear infinite; }
.i-plane .plane { transform-box: fill-box; animation: planeFloat 3.4s ease-in-out infinite; }
@keyframes trailMarch { to { stroke-dashoffset: -22; } }
@keyframes planeFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(4deg); } }

@media (prefers-reduced-motion: reduce) { .icon * { animation: none !important; } }
.c-cream { background: var(--cream-2); }
.c-lilac { background: var(--lilac); }
.c-sage  { background: var(--sage); }
.c-orange { background: var(--orange); }
.c-green { background: var(--green); color: var(--green-ink); }
.c-green .mono { color: rgba(255,255,235,0.6); }
@media (max-width: 860px) {
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 3; min-height: 180px; }
}
@media (max-width: 560px) {
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 6; min-height: 150px; }
}

/* ---------- closer ---------- */
.closer { padding: 0 0 90px; }
.closer .inner {
  background: var(--green); color: var(--green-ink);
  border-radius: var(--r-card);
  text-align: center;
  padding: clamp(64px, 9vw, 110px) 32px;
}
.closer .mono { color: rgba(255,255,235,0.55); }
.closer h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.08;
  max-width: 20ch; margin: 14px auto 0;
}
.closer h2 .serif { font-size: 1.05em; }
.closer .btn { margin-top: 38px; font-size: 1.05rem; padding: 16px 32px; }
.closer .email {
  display: block; margin-top: 22px; color: rgba(255,255,235,0.65); font-size: 0.95rem;
  transition: color .2s ease;
}
.closer .email:hover { color: var(--green-ink); }

footer {
  padding: 0 0 36px;
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.88rem;
}
footer .wrap { display: flex; justify-content: space-between; width: 100%; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- service pages ---------- */
.svc-hero { padding: 4px 20px 0; }
.svc-panel {
  max-width: 1400px; margin: 0 auto;
  border-radius: var(--r-card);
  padding: clamp(52px, 8vw, 104px) clamp(28px, 6vw, 88px);
  min-height: min(56vh, 520px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
}
.svc-panel .icon svg { width: 88px; height: 88px; }
.svc-panel h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  max-width: 15ch;
}
.svc-panel .lede {
  margin-top: 18px; color: rgba(26,26,26,0.62);
  font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 44ch;
}
.svc-panel.c-green .lede { color: rgba(255,255,235,0.68); }
.svc-panel.c-green .mono { color: rgba(255,255,235,0.6); }
.svc-note { text-align: center; padding: 64px 24px 8px; }
.svc-pages-closer { padding-top: 104px; }
.back-link { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .2s ease; }
.back-link:hover { color: var(--ink); }

/* ---------- hero: CV scan overlay — image-anchored tagged detections ---------- */
/* Box geometry lives in data-rect (fractions of the 1920x1080 source image);
   JS projects it through the object-fit cover crop so tags track real features. */
.hero-scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  font-family: "IBM Plex Mono", monospace;
  --scan-ink: rgba(255, 255, 240, 0.95);
}
.scan-box {
  position: absolute; opacity: 0;
  border: 1px solid rgba(255,255,240,0.32);
  animation: tagPop 6.5s linear infinite;
}
.scan-box i {
  position: absolute; width: 9px; height: 9px;
  border: 0 solid var(--scan-ink);
}
.scan-box i:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.scan-box i:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.scan-box i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.scan-box i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.scan-box .tag {
  position: absolute; top: -22px; left: -1px;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.07em; white-space: nowrap;
  color: #FFFFEB; background: rgba(20, 20, 20, 0.52);
  padding: 2px 6px; border-radius: 4px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.scan-box.tag-below .tag { top: auto; bottom: -22px; }
@keyframes tagPop {
  0%       { opacity: 0; transform: scale(1.12); }
  3%       { opacity: 1; transform: scale(1); }
  40%      { opacity: 1; }
  45%,100% { opacity: 0; transform: scale(1); }
}
.sb-1  { animation-delay: 0s; }
.sb-2  { animation-delay: .45s; }
.sb-3  { animation-delay: .95s; }
.sb-4  { animation-delay: 1.6s; }
.sb-5  { animation-delay: 2.4s; }
.sb-6  { animation-delay: 3.1s; }
.sb-7  { animation-delay: 3.8s; }
.sb-8  { animation-delay: 4.5s; }
.sb-9  { animation-delay: 5.15s; }
.sb-10 { animation-delay: 5.8s; }
@media (max-width: 640px) {
  .hero-scan { display: none; } /* castle sits behind the text on mobile */
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan { display: none; }
}

/* ---------- service pages: deep sections ---------- */
.svc-section { padding: 84px 0 0; }
.svc-section .head { margin-bottom: 36px; max-width: 560px; }
.svc-section .head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600;
  letter-spacing: -0.02em; margin-top: 10px;
}
.svc-section .head p { color: var(--muted); margin-top: 10px; }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap {
  background: #FFFFEB; border: 1px solid rgba(26,26,26,0.07);
  border-radius: 1.25rem; padding: 26px 24px;
}
.cap h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step .mono { color: var(--muted); }
.step h3 { font-size: 1.1rem; font-weight: 600; margin: 6px 0 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* placeholder project slots — corner brackets echo the hero scan boxes */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
  position: relative; border-radius: 1.25rem; padding: 14px;
  background: #fff; border: 1px solid rgba(26,26,26,0.08);
}
.work-card .ph { position: absolute; inset: 8px; pointer-events: none; }
.work-card .ph i { position: absolute; width: 10px; height: 10px; border: 0 solid rgba(26,26,26,0.45); }
.work-card .ph i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.work-card .ph i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.work-card .ph i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.work-card .ph i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.work-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
  display: block; margin: 12px 4px 4px;
}
.work-card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 4px 10px; line-height: 1.35; }
.work-visual {
  aspect-ratio: 16 / 10; border-radius: 0.9rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.work-card.open { border-style: dashed; border-color: rgba(26,26,26,0.25); background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 32px 24px; min-height: 260px; }
.work-card.open .mono { color: var(--muted); }
.work-card.open h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.work-card.open p { color: var(--muted); font-size: 0.92rem; max-width: 24ch; margin-bottom: 16px; }

.svc-foot-space { padding-bottom: 24px; }

@media (max-width: 860px) {
  .cap-grid, .steps, .work-grid { grid-template-columns: 1fr; }
  .svc-section { padding-top: 64px; }
}

/* ---------- motion graphics inside work slots ---------- */
.mg { width: 100%; height: 100%; position: relative; color: inherit; }
.mg svg { width: 82%; height: 82%; position: absolute; left: 9%; top: 9%; overflow: visible; }

/* consulting: chart drawing itself */
.mg-chart .grid { stroke: currentColor; opacity: 0.14; stroke-width: 1; fill: none; }
.mg-chart .line {
  fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 330; animation: mgDraw 6s ease-in-out infinite;
}
.mg-chart .dot { fill: currentColor; animation: mgDotPop 6s ease-in-out infinite; }
@keyframes mgDraw {
  0% { stroke-dashoffset: 330; opacity: 1; }
  45% { stroke-dashoffset: 0; }
  78% { stroke-dashoffset: 0; opacity: 1; }
  86%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes mgDotPop {
  0%, 40% { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
  48%, 78% { opacity: 1; transform: scale(1); }
  86%, 100% { opacity: 0; }
}

/* saas: app window assembling */
.mg-app .win {
  position: absolute; inset: 12% 14%;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(26,26,26,0.12);
  border-radius: 10px; padding: 10px 12px;
}
.c-green .mg-app .win { background: rgba(255,255,235,0.12); border-color: rgba(255,255,235,0.25); }
.mg-app .dots { display: flex; gap: 4px; margin-bottom: 10px; }
.mg-app .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.mg-app .row { height: 9px; border-radius: 5px; background: currentColor; opacity: 0.16; margin-bottom: 7px; transform-origin: left; animation: mgRow 4.5s ease-in-out infinite; }
.mg-app .row.r2 { width: 82%; animation-delay: .25s; }
.mg-app .row.r3 { width: 60%; animation-delay: .5s; }
@keyframes mgRow { 0% { transform: scaleX(0); } 22% { transform: scaleX(1); } 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.mg-app .pill { height: 12px; width: 42%; border-radius: 999px; background: currentColor; opacity: 0.55; margin-top: 12px; animation: mgPill 4.5s ease-in-out infinite; transform-origin: left; }
@keyframes mgPill { 0%, 30% { transform: scaleX(0); } 55% { transform: scaleX(1); } 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* media: engagement chips rising */
.mg-social .ring {
  position: absolute; left: 50%; top: 58%; width: 46px; height: 46px;
  border: 1.5px solid currentColor; border-radius: 50%; opacity: 0;
  transform: translate(-50%, -50%); animation: mgRing 3.6s ease-out infinite;
}
.mg-social .ring:nth-child(2) { animation-delay: 1.2s; }
.mg-social .ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes mgRing { 0% { opacity: 0.7; transform: translate(-50%,-50%) scale(0.4); } 70%, 100% { opacity: 0; transform: translate(-50%,-50%) scale(2.6); } }
.mg-social .chip {
  position: absolute; font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; font-weight: 500;
  color: #FFFFEB; background: rgba(20,20,20,0.6); padding: 3px 8px; border-radius: 999px;
  opacity: 0; animation: mgChip 4.8s ease-in-out infinite;
}
.mg-social .chip.h1 { left: 22%; top: 62%; }
.mg-social .chip.h2 { left: 48%; top: 70%; animation-delay: 1.6s; }
.mg-social .chip.h3 { left: 66%; top: 58%; animation-delay: 3.2s; }
@keyframes mgChip {
  0%, 8% { opacity: 0; transform: translateY(10px); }
  16% { opacity: 1; transform: translateY(0); }
  46% { opacity: 1; transform: translateY(-16px); }
  58%, 100% { opacity: 0; transform: translateY(-26px); }
}

/* ideation: nodes connecting */
.mg-nodes .link { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 260; animation: mgLink 5.5s ease-in-out infinite; opacity: 0.65; }
@keyframes mgLink { 0% { stroke-dashoffset: 260; } 45% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 0.65; } 88%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.mg-nodes .node { fill: currentColor; animation: mgNode 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mg-nodes .node:nth-of-type(2) { animation-delay: .4s; }
.mg-nodes .node:nth-of-type(3) { animation-delay: .8s; }
.mg-nodes .node:nth-of-type(4) { animation-delay: 1.2s; }
.mg-nodes .node:nth-of-type(5) { animation-delay: 1.6s; }
@keyframes mgNode {
  0% { opacity: 0; transform: scale(0.3); }
  8% { opacity: 1; transform: scale(1.25); }
  14% { transform: scale(1); }
  80% { opacity: 1; }
  88%, 100% { opacity: 0; }
}

/* content: lines typing out */
.mg-type { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 18%; }
.mg-type .tl { height: 9px; border-radius: 5px; background: currentColor; opacity: 0.3; transform-origin: left; animation: mgTypeLine 5s steps(18) infinite; }
.mg-type .tl.l1 { width: 88%; }
.mg-type .tl.l2 { width: 70%; animation-delay: .9s; }
.mg-type .tl.l3 { width: 79%; animation-delay: 1.8s; }
.mg-type .tl.l4 { width: 46%; animation-delay: 2.7s; }
@keyframes mgTypeLine { 0% { transform: scaleX(0); } 18% { transform: scaleX(0); } 45% { transform: scaleX(1); } 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .mg *, .mg { animation: none !important; }
}

/* ---------- bespoke sub-page blocks ---------- */
.rowlist { list-style: none; }
.rowlist li {
  display: flex; align-items: baseline; gap: 26px;
  padding: 26px 4px; border-bottom: 1px solid rgba(26,26,26,0.1);
}
.rowlist li:first-child { border-top: 1px solid rgba(26,26,26,0.1); }
.rowlist .name { font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; min-width: 32%; }
.rowlist .desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.rowlist .meta {
  font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split .head { margin-bottom: 0; }
.split .mg-frame { border-radius: 1.25rem; aspect-ratio: 4 / 3; position: relative; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  border: 1px solid rgba(26,26,26,0.18); border-radius: 999px;
  padding: 9px 18px; font-weight: 500; font-size: 0.92rem; background: #fff;
}

.steps.five { grid-template-columns: repeat(5, 1fr); }
.steps.five .step p { font-size: 0.88rem; }

.agenda .item {
  display: flex; align-items: baseline; gap: 24px;
  padding: 20px 4px; border-bottom: 1px solid rgba(26,26,26,0.1);
}
.agenda .item:first-child { border-top: 1px solid rgba(26,26,26,0.1); }
.agenda .time {
  font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); min-width: 84px;
}
.agenda .what { font-weight: 600; font-size: 1.05rem; min-width: 22%; }
.agenda .note { color: var(--muted); font-size: 0.93rem; flex: 1; }

.manifesto { text-align: center; padding-top: 88px; }
.manifesto p {
  font-family: "EB Garamond", serif; font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3;
  max-width: 28ch; margin: 0 auto;
}

.toc { list-style: none; counter-reset: toc; }
.toc li {
  counter-increment: toc;
  display: flex; align-items: baseline; gap: 24px;
  padding: 24px 4px; border-bottom: 1px solid rgba(26,26,26,0.1);
}
.toc li:first-child { border-top: 1px solid rgba(26,26,26,0.1); }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "EB Garamond", serif; font-style: italic;
  font-size: 1.35rem; color: var(--muted);
}
.toc .name { font-weight: 600; font-size: 1.18rem; min-width: 28%; }
.toc .desc { color: var(--muted); font-size: 0.95rem; flex: 1; }

.work-grid.two { grid-template-columns: repeat(2, 1fr); }
.work-card.wide { grid-column: 1 / -1; }
.work-card.wide .work-visual { aspect-ratio: 21 / 8; }
.open-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; border: 1px dashed rgba(26,26,26,0.28); border-radius: 1.25rem;
  padding: 24px 28px; margin-top: 16px; text-decoration: none;
  transition: background .2s ease;
}
.open-row:hover { background: rgba(255,255,255,0.7); }
.open-row .lead h3 { font-size: 1.08rem; font-weight: 600; }
.open-row .lead p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .steps.five { grid-template-columns: 1fr; }
  .work-grid.two { grid-template-columns: 1fr; }
  .rowlist li, .toc li, .agenda .item { flex-direction: column; gap: 8px; }
  .rowlist .name, .toc .name, .agenda .what { min-width: 0; }
}
