/* Pixel Aware: design tokens from the Figma file "Pixel Aware — Website Design" */
:root {
  --green: #4c8774;
  --green-deep: #3d7262;
  --green-soft: #8cc4af;
  --green-mist: #cfe5dc;
  --yellow: #ffe69b;
  --yellow-mist: #fff5d6;
  --lime: #bed96f;
  --lime-deep: #536b17;
  --ink: #40463f;
  --ink-muted: #5c635b;
  --charcoal: #40463f;
  --charcoal-deep: #2e332d;
  --paper: #fcfffe;
  --paper-grid: #f5f5f2;
  --white: #fff;
  --muted-on-dark: #c9cfc7;
  --border: rgba(64, 70, 63, 0.18);
  --border-on-dark: rgba(252, 255, 254, 0.18);
  --grid-line: rgba(76, 135, 116, 0.15);

  --font-display: 'Jura', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 5.5vw, 80px);
  --max: 1280px;
  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow-px: 4px 4px 0 var(--charcoal);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/28px var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- type ---------- */
.h1 { font: 600 clamp(40px, 5.6vw, 64px)/1.06 var(--font-display); letter-spacing: -0.01em; }
.display { font: 600 clamp(52px, 8vw, 96px)/.95 var(--font-display); letter-spacing: -0.02em; }
.h2 { font: 600 clamp(30px, 3.6vw, 44px)/1.14 var(--font-display); }
.h3 { font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--font-display); }
.h4 { font: 700 16px/28px var(--font-display); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-muted); }
.lead--ink { color: var(--ink); }
.body { font-size: 17px; line-height: 28px; }
.muted { color: var(--ink-muted); }
.caption { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.strong { font-weight: 600; font-size: 17px; line-height: 28px; text-decoration: none; }
.kicker { font: 700 13px/16px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.kicker--lime { color: var(--lime-deep); }
.kicker--lime-base { color: var(--lime); }
.kicker--ink { color: var(--ink); }
.on-dark { color: var(--paper); }
.on-dark-muted { color: var(--muted-on-dark); }
.yellow { color: var(--yellow); }
.hint { font-size: 14px; opacity: .7; color: var(--ink-muted); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--green-deep); text-transform: uppercase; }
.eyebrow--small { font: 700 13px/16px var(--font-display); letter-spacing: .1em; }
.eyebrow--small .glyph { width: 11px; height: 16px; }
.eyebrow--title { font: 600 clamp(32px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -0.01em; gap: 12px; }
.eyebrow--title .glyph { width: auto; height: clamp(32px, 3.4vw, 40px); }
.eyebrow--yellow { color: var(--yellow); }
.glyph--light { filter: brightness(0) invert(1); opacity: .95; }

.text-link { color: var(--green-deep); font-weight: 600; font-size: 16px; line-height: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
  font: 600 16px/24px var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}
.btn--primary { background: var(--green-deep); color: var(--paper); }
.btn--primary:hover { box-shadow: 0 6px 0 -2px var(--charcoal); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(0,0,0,.25); transition-duration: 80ms; }
.btn--secondary { border-color: var(--charcoal); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--yellow); }
.btn--secondary:active { box-shadow: inset 0 2px 0 rgba(0,0,0,.15); transition-duration: 80ms; }
.btn--spark { background: var(--green-soft); border-color: var(--charcoal); border-radius: 4px; color: var(--ink); box-shadow: var(--shadow-px); }
.btn--spark-yellow { background: var(--yellow); }
.btn--spark:hover { box-shadow: 2px 2px 0 var(--charcoal); transform: translate(2px, 2px); }
.btn--spark:active { box-shadow: 0 0 0 var(--charcoal); transform: translate(4px, 4px); transition-duration: 80ms; }
.btn--pill { background: var(--green-deep); color: var(--paper); border-color: var(--paper); border-radius: 999px; box-shadow: 4px 4px 0 var(--charcoal-deep); }
.btn--pill:hover { box-shadow: 2px 2px 0 var(--charcoal-deep); transform: translate(2px, 2px); }
.btn--block { width: 100%; justify-content: flex-start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.btn-row--center { justify-content: center; }
.btn[disabled] { opacity: .6; cursor: progress; }

.spark { width: 18px; height: 18px; flex: none; shape-rendering: crispEdges; }
.spark .sp-line { fill: var(--green); }
.spark .sp-fill { fill: var(--yellow-mist); }
.btn--pill .spark .sp-line, .spark--light .sp-line { fill: var(--paper); }
.btn--pill .spark .sp-fill { fill: var(--yellow); }
.btn--spark:hover .spark { animation: pulse 600ms steps(3) 1; }
@keyframes pulse { 50% { transform: scale(1.25); } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border-top: 1px solid var(--green-soft); padding: 6px 10px; font: 700 13px/16px var(--font-display); letter-spacing: .1em; color: var(--green-deep); text-transform: uppercase; }

.px-motif { width: 29px; height: 19px; flex: none; shape-rendering: crispEdges; margin-top: 6px; }
.pixel-band {
  height: 16px; width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='16' shape-rendering='crispEdges'%3E%3Cg fill='%234c8774'%3E%3Crect x='0' width='8' height='8'/%3E%3Crect x='16' width='8' height='8'/%3E%3Crect x='8' y='8' width='8' height='8'/%3E%3Crect x='80' width='8' height='8'/%3E%3Crect x='72' y='8' width='8' height='8'/%3E%3Crect x='88' y='8' width='8' height='8'/%3E%3C/g%3E%3Cg fill='%23ffe69b'%3E%3Crect x='32' width='8' height='8'/%3E%3Crect x='24' y='8' width='8' height='8'/%3E%3Crect x='40' y='8' width='8' height='8'/%3E%3Crect x='96' width='8' height='8'/%3E%3Crect x='112' width='8' height='8'/%3E%3Crect x='104' y='8' width='8' height='8'/%3E%3C/g%3E%3Cg fill='%238cc4af'%3E%3Crect x='48' width='8' height='8'/%3E%3Crect x='64' width='8' height='8'/%3E%3Crect x='56' y='8' width='8' height='8'/%3E%3Crect x='128' width='8' height='8'/%3E%3Crect x='120' y='8' width='8' height='8'/%3E%3Crect x='136' y='8' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top;
}
.dissolve { width: min(556px, 100%); height: auto; }

.grid-paper, .grid-paper--soft, .bg-grid {
  background-color: var(--paper-grid);
}
.grid-paper {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); height: var(--nav-h); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.nav-logo { display: block; flex: none; }
.logo-full { width: 220px; height: auto; }
.logo-mark { display: none; height: 46px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-link { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 2px; text-decoration: none; font: 500 16px/24px var(--font-body); color: var(--ink); }
.px-underline { display: flex; gap: 4px; height: 4px; opacity: 0; transition: opacity 150ms; }
.px-underline::before, .px-underline::after, .px-underline { --s: 8px; }
.px-underline { background: linear-gradient(90deg, var(--green) 0 8px, transparent 8px 12px, var(--yellow) 12px 20px, transparent 20px 24px, var(--lime-deep) 24px 32px, transparent 32px); width: 32px; }
.nav-link:hover .px-underline { opacity: .5; }
.nav-link.is-active .px-underline { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1.5px solid var(--charcoal); border-radius: var(--radius); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-icon { display: flex; flex-direction: column; gap: 4px; }
.menu-icon i { display: block; width: 20px; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); }
.menu-icon i:nth-child(2) { background: var(--ink); }

.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mm-top { height: var(--nav-h); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--white); }
.mm-top img { height: 52px; width: auto; }
.mm-close { width: 46px; height: 51px; border: 1.5px solid var(--charcoal); border-radius: var(--radius); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.mm-body { flex: 1; display: flex; flex-direction: column; gap: 28px; padding: 32px 16px 24px; }
.mm-body .eyebrow--title { font-size: 32px; }
.mm-links { border-top: 1px solid var(--border); }
.mm-links a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); text-decoration: none; font-family: var(--font-display); font-weight: 500; }
.mm-num { font-size: 14px; color: var(--ink-muted); width: 38px; }
.mm-label { font-size: 32px; flex: 1; line-height: 1.1; }
.mm-spark { width: 24px; height: 24px; opacity: 0; transition: opacity 150ms; }
.mm-spark .sp-line { fill: var(--yellow-mist); } .mm-spark .sp-fill { fill: var(--yellow); }
.mm-links a:active .mm-label, .mm-links a:hover .mm-label { color: var(--green-deep); }
.mm-links a:active .mm-spark, .mm-links a:hover .mm-spark { opacity: 1; filter: drop-shadow(0 0 0 var(--green)); }
.mm-links a:hover .mm-spark .sp-line { fill: var(--green); }
.mm-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mm-email { color: var(--green-deep); font-weight: 500; text-decoration: none; }
.mm-small { font-size: 14px; color: var(--ink-muted); }
.mm-small a { text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
/* hero visual: see "animated components" below */

/* ---------- work ---------- */
.work { padding: 50px 0; overflow: hidden; }
.skills-marquee { display: flex; flex-direction: column; gap: 14px; padding: 24px 0 56px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee--right .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  font: 700 16px/28px var(--font-display); padding: 14px 26px; white-space: nowrap; color: var(--ink);
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}
.chip--lime { background: var(--lime); } .chip--yellow { background: var(--yellow); } .chip--soft { background: var(--green-soft); }
.chip--mist { background: var(--green-mist); }
.chip--green { background: var(--green); color: var(--paper); } .chip--deep { background: var(--green-deep); color: var(--paper); }
.chip--charcoal { background: var(--charcoal); color: var(--paper); }

.section-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 48px; }
.section-head .lead { max-width: 720px; }

.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2)) 28px; scrollbar-width: none;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.carousel-track::-webkit-scrollbar { display: none; }
.project-card {
  flex: 0 0 min(560px, 84vw); scroll-snap-align: start; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px; text-decoration: none; display: flex; flex-direction: column;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--yellow); }
.pc-image { border-radius: 16px; overflow: hidden; aspect-ratio: 532 / 360; background: var(--paper-grid); }
.pc-image img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 6px 6px; }
.pc-title { font: 600 30px/36px var(--font-display); }
.pc-text { color: var(--ink-muted); }
.project-card .tags { padding: 6px 0; }
.project-card:hover .text-link { text-decoration: underline; }

/* ---------- process ---------- */
.process { background: var(--green-deep); padding: clamp(50px, 6vw, 80px) 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 10px 0; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: 6px 6px 0 var(--yellow); display: flex; flex-direction: column; gap: 4px; transition: transform 200ms var(--ease); }
.step:hover { transform: translateY(-4px); }
.step-kicker { display: flex; align-items: center; gap: 4px; font: 700 13px/16px var(--font-display); letter-spacing: .1em; color: var(--green-deep); }
.glyph--step { height: 36px; width: auto; padding: 0 6px 0 4px; }
.spark--step { width: 36px; height: 36px; }
.spark--step .sp-fill { fill: var(--yellow); }
.step-title { font: 700 16px/28px var(--font-display); }

/* ---------- stats band ---------- */
.stats-band { background: var(--green-deep); padding: 32px 0 80px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 3px solid var(--green-soft); color: var(--paper); }
.stat:nth-child(2) { border-color: var(--lime); }
.stat:nth-child(3) { border-color: var(--yellow); }
.stat-n { font: 600 44px/48px var(--font-display); color: var(--yellow); min-width: 56px; }
.stat-n--lime { color: var(--lime); }

/* ---------- about ---------- */
.about { padding: 50px 0; }
.about-inner { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 80px; align-items: center; }
.about-photo img { width: 100%; }
.about-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ---------- philosophy ---------- */
.philosophy { padding: clamp(80px, 9vw, 128px) 0; }
.philosophy .wrap { gap: 48px; }
.philo-line { width: min(1170px, 100%); height: 7px; background: url("/assets/dissolve-line.svg") left center / auto 100% no-repeat; display: none; }
.philo-quote { font: 300 clamp(32px, 4vw, 48px)/1.17 var(--font-display); letter-spacing: -0.01em; max-width: 1100px; }
.philosophy .lead { max-width: 760px; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-grid); padding: 50px 0 80px; }
.faq-inner { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 80px; }
.faq-intro { display: flex; flex-direction: column; gap: 20px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 24px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; font: 700 16px/28px var(--font-display); }
.faq-q span { flex: 1; }
.faq-toggle { position: relative; width: 36px; height: 36px; background: var(--yellow); flex: none; transition: background 150ms; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 200ms; }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-toggle { background: var(--lime); }
.faq-q[aria-expanded="true"] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.faq-q:hover .faq-toggle { background: var(--green-soft); }
.faq-a { padding: 0 60px 24px 0; color: var(--ink-muted); }

/* ---------- home contact / footer ---------- */
.home-contact { position: relative; background: var(--charcoal); color: var(--paper); overflow: hidden; }
.hc-inner { position: relative; z-index: 1; gap: 24px; padding-top: clamp(80px, 9vw, 128px); padding-bottom: 96px; }
.home-contact .display { max-width: 1100px; }
.hc-email { font: 600 clamp(22px, 2.4vw, 30px)/36px var(--font-display); color: var(--green-soft); }
.hc-links { display: flex; gap: 32px; padding-top: 16px; font-weight: 500; }
.hc-links a { text-decoration: none; } .hc-links a:hover { text-decoration: underline; }
.hc-deco i { position: absolute; width: 48px; height: 48px; background: var(--green); opacity: .5; }
.hc-deco i:nth-child(1) { left: 0; top: 98px; width: 72px; }
.hc-deco i:nth-child(2) { left: 48px; top: 146px; background: var(--yellow); opacity: .35; }
.hc-deco i:nth-child(3) { left: 96px; top: 194px; background: var(--green-soft); opacity: .3; }
.hc-deco i:nth-child(4) { right: 0; bottom: 140px; width: 96px; }
.hc-deco i:nth-child(5) { right: 96px; bottom: 188px; background: var(--lime); opacity: .3; }
.hc-deco i:nth-child(6) { right: 48px; bottom: 92px; background: var(--yellow); opacity: .3; }
.footer-bar { border-top: 1px solid var(--border-on-dark); padding: 24px 0; }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted-on-dark); }

/* ---------- contact page ---------- */
.contact { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 80px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 24px; }
.availability { display: flex; align-items: center; gap: 12px; background: var(--yellow-mist); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; font-weight: 600; }
.px-status { width: 10px; height: 10px; background: var(--green); flex: none; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.channels { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-link { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: background 200ms, border-color 200ms; }
.contact-link span { flex: 1; display: flex; flex-direction: column; }
.contact-link small { font: 700 13px/16px var(--font-display); letter-spacing: .1em; color: var(--lime-deep); }
.contact-link b { font-family: var(--font-display); transition: transform 200ms; }
.contact-link:hover { background: var(--yellow-mist); border-color: var(--charcoal); }
.contact-link:hover b { transform: translateX(4px); }
.form-card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--charcoal); padding: clamp(24px, 3.5vw, 40px); transition: transform 400ms var(--ease); }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 16px; line-height: 24px; padding: 0; }
.field legend { margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%; font: 400 17px/28px var(--font-body); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; transition: border-color 150ms, box-shadow 150ms;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--lime); }
.field-error { display: none; font-size: 14px; line-height: 20px; color: #9b3b24; }
.field.has-error input, .field.has-error textarea { border-color: #b85a3f; }
.field.has-error .field-error { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 4px; background: var(--white); font-weight: 500; font-size: 16px; line-height: 24px; cursor: pointer; transition: all 150ms; }
.px-check { display: none; width: 8px; height: 8px; background: var(--charcoal-deep); }
.choice input:checked + span { background: var(--yellow); box-shadow: 3px 3px 0 var(--charcoal); }
.choice input:checked + span .px-check { display: block; }
.choice input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.choice span:hover { border-color: var(--charcoal); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.form-status:empty { display: none; }
.form-status a { color: var(--green-deep); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px 0; animation: pop-in 400ms var(--ease); }
.sent[hidden] { display: none; }
.spark--big { width: 54px; height: 54px; }
.spark--big .sp-fill { fill: var(--yellow); }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } }
.contact-footer { background: var(--charcoal); color: var(--paper); padding: 32px 0; }
.contact-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }

/* ---------- case study ---------- */
.case-hero { background: var(--white); padding-top: 56px; }
.case-hero .wrap { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.back-link { font-weight: 600; color: var(--green-deep); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.title-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.title-logo { display: block; border-radius: 12px; overflow: hidden; }
.title-logo img { height: clamp(56px, 6vw, 78px); width: auto; }
.case-summary { max-width: 820px; }
.case-meta { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 48px; border-top: 1.5px solid var(--border); padding-top: 24px; }
.case-meta div { display: flex; flex-direction: column; gap: 8px; }
.case-hero-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; animation: rise 900ms var(--ease) both; }
.case-hero-img img { width: 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.cs-section { padding: clamp(56px, 7vw, 80px) 0; }
.cs-section .wrap > .kicker, .cs-section .wrap > .h2 { margin-bottom: 16px; }
.cs-problem { padding: clamp(64px, 8vw, 120px) 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: start; margin-bottom: 48px; }
.cs-problem .two-col { margin-bottom: 0; }
.two-col .kicker { margin-bottom: 20px; }
.two-col .prose { padding-top: 36px; display: flex; flex-direction: column; gap: 20px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-muted); }
.cs-research .lead { max-width: 1200px; margin-bottom: 48px; }
.stat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.stat-block { display: flex; flex-direction: column; gap: 5px; padding: 15px 22px; border-bottom: 1px solid var(--green); }
.sb-n { font: 600 44px/48px var(--font-display); color: var(--green-deep); }
.stat-block--dark .sb-n { color: var(--charcoal); }
.h4 { margin-bottom: 14px; }
.findings { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.findings li { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; }
.findings--dark li { color: var(--paper); }
.cs-research .findings { margin-bottom: 40px; }

.diagram { display: flex; flex-direction: column; gap: 40px; overflow-x: auto; padding: 8px 0 16px; }
.lane { display: flex; flex-direction: column; gap: 16px; min-width: max-content; }
.chain { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.flow-node { display: inline-block; padding: 12px 18px; background: var(--white); border: 1.5px solid var(--charcoal); font-weight: 600; font-size: 16px; line-height: 24px; white-space: nowrap; }
.flow-node--start { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.flow-node--highlight { background: var(--lime); border-color: var(--lime); }
.flow-node--muted { background: var(--paper-grid); border-color: var(--border); color: var(--ink-muted); text-decoration: line-through; text-decoration-color: rgba(64,70,63,.35); }
.flow-arrow { width: 28px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'%3E%3Cpath d='M0 8h24M18 2l6 6-6 6' fill='none' stroke='%2340463f' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.sitemap { display: flex; flex-direction: column; align-items: center; min-width: 900px; }
.sm-root { position: relative; padding-bottom: 24px; }
.sm-root::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 2px; height: 24px; background: var(--charcoal); }
.sm-sections { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; position: relative; border-top: 2px solid var(--charcoal); }
.sm-sections { border-image: linear-gradient(90deg, transparent 10%, var(--charcoal) 10% 90%, transparent 90%) 1; }
.sm-col { display: flex; flex-direction: column; align-items: center; padding-top: 24px; position: relative; }
.sm-col::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 24px; background: var(--charcoal); }
.sm-pages { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 16px; padding-top: 0; position: relative; }

.scroll-x { overflow-x: auto; margin-top: 24px; }
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.zoomable img { width: 100%; transition: transform 300ms var(--ease); }
.zoomable:hover img { transform: scale(1.01); }
.wide-img { min-width: 900px; }
.brand-mini { margin-top: 24px; height: 48px; width: auto; border-radius: 8px; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.swatch { display: flex; flex-direction: column; gap: 8px; }
.swatch i { display: block; height: 72px; border-radius: var(--radius); border: 1px solid var(--border); }

.cs-solution .h2 { margin-bottom: 64px !important; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 688px); gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.feature:last-child { margin-bottom: 0; }
.feature--flip { grid-template-columns: minmax(0, 688px) minmax(0, 1fr); }
.feature--flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 12px; }
.feature-img { border-radius: var(--radius-lg); }

.annotated { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 0; align-items: center; margin-top: 32px; }
.annotated-screen { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 40px rgba(46,51,45,.15); }
.callouts { display: flex; flex-direction: column; gap: 96px; }
.callout { display: flex; align-items: center; gap: 12px; }
.callout > div { width: 250px; display: flex; flex-direction: column; gap: 6px; }
.callout--left { justify-content: flex-end; text-align: right; }
.callout--right { flex-direction: row-reverse; justify-content: flex-end; }
.leader { width: 64px; height: 2px; background: var(--charcoal); position: relative; flex: none; }
.callout--left .leader::after, .callout--right .leader::after { content: ''; position: absolute; top: -4px; width: 10px; height: 10px; background: var(--green); }
.callout--left .leader::after { right: -10px; } .callout--right .leader::after { left: -10px; }

.cs-results { background: var(--charcoal); padding: clamp(72px, 8vw, 112px) 0; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 32px 0 48px; }
.result-n { font: 600 clamp(56px, 7vw, 96px)/.95 var(--font-display); letter-spacing: -0.02em; color: var(--lime); margin-bottom: 8px; }
.cs-results .findings { margin-bottom: 0; }

.cs-quote { background: var(--green-mist); padding: clamp(72px, 8vw, 112px) 0; }
.cs-quote .wrap { gap: 20px; }
.quote-motif { width: 72px; height: 72px; shape-rendering: crispEdges; }
.cs-quote blockquote { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.cs-quote blockquote p { font: 300 clamp(30px, 4vw, 48px)/1.17 var(--font-display); color: var(--green-deep); letter-spacing: -0.01em; }
.cs-quote footer { color: var(--ink-muted); }

.cs-next .wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cs-next .lead { max-width: 860px; }
.cs-next .dissolve { margin: 8px 0 32px; }
.next-card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--green-mist); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 48px); text-decoration: none; transition: box-shadow 200ms, transform 200ms; }
.next-card > span:first-child { display: flex; flex-direction: column; gap: 8px; }
.next-card:hover { box-shadow: 6px 6px 0 var(--green-deep); transform: translate(-2px, -2px); }
.next-arrow { font: 600 clamp(56px, 7vw, 96px)/.95 var(--font-display); color: var(--green-deep); transition: transform 200ms; }
.next-card:hover .next-arrow { transform: translateX(8px); }

.case-footer { background: var(--charcoal); color: var(--paper); padding: clamp(64px, 7vw, 96px) 0 48px; }
.case-footer .wrap { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cf-title { font: 600 clamp(30px, 3.6vw, 44px)/1.14 var(--font-display); max-width: 900px; }
.cf-sub { font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--font-display); color: var(--yellow); }
.cf-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cf-email { font-size: 20px; text-decoration: none; } .cf-email:hover { text-decoration: underline; }
.cf-legal { width: 100%; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 56px; font-size: 14px; color: var(--green-soft); }
.cf-legal a { text-decoration: none; } .cf-legal a:hover { text-decoration: underline; }

/* ---------- modals ---------- */
.modal { border: 0; padding: 16px; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; }
.modal[open] { display: grid; place-items: center; overflow-y: auto; }
.modal::backdrop { background: rgba(46, 51, 45, .55); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; margin: auto;
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--charcoal);
  padding: 28px clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; animation: pop-in 250ms var(--ease);
}
.modal-card--wide { width: min(880px, 100%); padding: clamp(24px, 4vw, 48px); gap: 24px; }
.modal-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.modal-head > div { display: flex; flex-direction: column; gap: 4px; }
.close-btn { flex: none; width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--white); font: 700 22px/1 var(--font-display); cursor: pointer; }
.close-btn:hover { background: var(--yellow); border-color: var(--charcoal); }
.resume-group { display: flex; flex-direction: column; }
.resume-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.resume-row > div { flex: 1 1 220px; }
.resume-row a.strong:hover { color: var(--green-deep); text-decoration: underline; }
body.modal-open { overflow: hidden; }

.pop-body { display: flex; flex-direction: column; gap: 24px; }
.pop-intro { font-size: 17px; line-height: 28px; color: var(--ink-muted); }
.pop-body h3 { font: 700 16px/24px var(--font-display); margin-bottom: 12px; }
.pop-section ul { display: flex; flex-direction: column; gap: 12px; }
.pop-item { display: flex; gap: 12px; align-items: flex-start; }
.pop-item .px-bullet { width: 20px; height: 13px; flex: none; margin-top: 7px; background: linear-gradient(var(--green), var(--green)) 0 100%/7px 7px no-repeat, linear-gradient(var(--yellow), var(--yellow)) 7px 0/7px 7px no-repeat, linear-gradient(var(--lime), var(--lime)) 14px 100%/6px 7px no-repeat; }
.pop-item div { display: flex; flex-direction: column; }
.pop-item strong { font-weight: 600; font-size: 17px; line-height: 28px; }
.pop-item span { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.pop-item div > span:only-child { font-size: 16px; color: var(--ink); }
.pop-note { background: var(--yellow-mist); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; font-weight: 500; }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pop-tile { background: var(--paper-grid); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tile-eyebrow { font: 700 13px/16px var(--font-display); letter-spacing: .1em; color: var(--lime-deep); }
.tile-name { font: 600 22px/28px var(--font-display); }
.tile-text { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.tile-quote { font: 300 18px/24px var(--font-display); color: var(--green-deep); }
.pop-tile .pop-section h3 { margin-bottom: 8px; font-size: 14px; }
.pop-figure { border-radius: 16px; overflow: hidden; }
.pop-figure img { width: 100%; }
.pop-block { display: flex; flex-direction: column; gap: 12px; }

.lightbox[open] { padding: 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); width: auto; margin: auto; border-radius: 12px; background: var(--white); }
.close-btn--float { position: fixed; top: 16px; right: 16px; z-index: 2; }

.not-found { padding: 120px 0; min-height: 60vh; }
.not-found .wrap { gap: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annotated { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .annotated-screen { order: -1; width: min(300px, 100%); }
  .callouts { gap: 16px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .callout, .callout--left, .callout--right { flex-direction: row; justify-content: flex-start; text-align: left; }
  .callout .leader { width: 10px; height: 10px; background: var(--green); order: -1; margin-top: 8px; align-self: flex-start; }
  .callout .leader::after { display: none; }
  .callout > div { width: auto; }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav-links { display: none; }
  .logo-full { display: none; }
  .logo-mark { display: block; }
  .menu-btn { display: inline-flex; }
  .nav-actions .btn--spark { padding: 10px 16px; }
  .hero-inner, .about-inner, .faq-inner, .contact-inner, .two-col, .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature-copy { order: 0; }
  .hero-inner { gap: 48px; }
  .hero-visual { justify-self: center; width: min(62%, 340px); margin: 24px 10% 32px 0; }
  .about-inner { gap: 40px; }
  .about-photo { max-width: 440px; }
  .two-col .prose { padding-top: 0; }
  .faq-inner, .contact-inner { gap: 40px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stat-blocks, .results { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .palette { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 26px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .case-meta { grid-template-columns: minmax(0, 1fr); }
  .callouts { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
  .nav-actions .btn--spark span { font-size: 15px; }
  .faq-a { padding-right: 0; }
  .hc-links { flex-direction: column; gap: 8px; align-items: center; }
  .next-arrow { display: none; }
  .project-card { flex-basis: 86vw; }
  .modal { padding: 8px; }
  .modal-card { max-height: calc(100vh - 16px); }
  .wide-img { min-width: 720px; }
}
@media (max-width: 600px) { .hc-deco { display: none; } }

/* =====================================================================
   Prototype behaviours (from the Figma prototype's smart-animate states)
   ===================================================================== */

/* Buttons: Primary lifts a pixel shadow, Secondary fills yellow, Spark "sinks" 4→2→0 */
.btn { transition: box-shadow 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out; }
.btn--primary:hover { transform: none; box-shadow: 4px 4px 0 var(--charcoal); }
.btn--primary:active { transform: none; box-shadow: inset 2px 2px 0 var(--charcoal); transition-duration: 80ms; }
.btn--secondary:hover { background: var(--yellow); }
.btn--secondary:active { background: var(--yellow); box-shadow: inset 2px 2px 0 var(--charcoal); transition-duration: 80ms; }
.btn--spark:hover { transform: none; box-shadow: 2px 2px 0 var(--charcoal); }
.btn--spark:active { transform: none; box-shadow: 0 0 0 var(--charcoal); transition-duration: 80ms; }
.btn--pill:hover { transform: none; }
.text-link { transition: color 150ms ease-out; text-underline-offset: 3px; }
a:hover > .text-link, .text-link:hover { color: var(--ink); text-decoration: underline; }
.text-link:active { color: var(--lime-deep); }

/* Nav link: hover turns green and shows the pixel underline (200ms) */
.nav-link span { transition: color 200ms ease-out; }
.px-underline { transition: opacity 200ms ease-out; }
.nav-link:hover span { color: var(--green); }
.nav-link:hover .px-underline { opacity: 1; }

/* Skills marquee: pixel "plus" tags over the pixel background, 9.7s / 12s loops */
.skills-marquee { position: relative; gap: 42px; padding: 40px 0 64px; }
.skills-marquee::before {
  content: ''; position: absolute; inset: 22px 0 auto; height: 117px; pointer-events: none;
  background: url('/assets/img/pixel-bg.webp') left top / 1440px 117px repeat-x;
}
.skills-marquee::after {
  content: ''; position: absolute; inset: 142px 0 auto; height: 117px; pointer-events: none;
  background: url('/assets/img/pixel-bg.webp') -300px top / 1440px 117px repeat-x;
}
.marquee { position: relative; z-index: 1; mask-image: none; -webkit-mask-image: none; padding: 14px 0; }
.marquee-track { gap: 28px; animation: marquee var(--dur, 24s) linear infinite; }
.marquee--right .marquee-track { --dur: 24s; }
.marquee--left .marquee-track { --dur: 19.5s; }
.chip {
  --t1: 7px; --t2: 14px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 170px; padding: calc(var(--t2) + 1px) 26px; font: 700 16px/26px var(--font-display);
  clip-path: polygon(0 var(--t2), calc(50% - 12px) var(--t2), calc(50% - 12px) var(--t1), calc(50% - 6px) var(--t1), calc(50% - 6px) 0, calc(50% + 6px) 0, calc(50% + 6px) var(--t1), calc(50% + 12px) var(--t1), calc(50% + 12px) var(--t2), 100% var(--t2), 100% calc(100% - var(--t2)), calc(50% + 12px) calc(100% - var(--t2)), calc(50% + 12px) calc(100% - var(--t1)), calc(50% + 6px) calc(100% - var(--t1)), calc(50% + 6px) 100%, calc(50% - 6px) 100%, calc(50% - 6px) calc(100% - var(--t1)), calc(50% - 12px) calc(100% - var(--t1)), calc(50% - 12px) calc(100% - var(--t2)), 0 calc(100% - var(--t2)));
}
.chip--deep { background: var(--green-deep); color: var(--paper); }
.chip--green { background: var(--green); color: var(--paper); }
.chip--yellow { background: var(--yellow); color: var(--ink); }
.chip--charcoal { background: var(--charcoal); color: var(--paper); }
.chip--outline-green, .chip--outline-grey { background: var(--green-deep); color: var(--ink); }
.chip--outline-grey { background: #c9cfc7; }
.chip--outline-green::before, .chip--outline-grey::before {
  content: ''; position: absolute; inset: 1.5px; background: var(--paper-grid); clip-path: inherit; z-index: -1;
}
.chip--outline-green, .chip--outline-grey { isolation: isolate; }

/* Project card hover: charcoal border + 4px pixel shadow, link turns ink and underlines (250ms) */
.project-card { transition: border-color 250ms ease-in-out, box-shadow 250ms ease-in-out; }
.project-card:hover { transform: none; border-color: var(--charcoal); box-shadow: 4px 4px 0 var(--charcoal); }
.project-card:nth-child(odd) .pc-image { background: var(--green-soft); }
.project-card:nth-child(even) .pc-image { background: var(--yellow); }

/* Process step: click to select (mist fill, charcoal pixel shadow, outputs appear) */
.step { cursor: pointer; text-align: left; border: 0; font: inherit; color: inherit; width: 100%;
  transition: background-color 300ms ease-in-out, box-shadow 300ms ease-in-out; }
.step:hover { transform: none; }
.step-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms ease-in-out, opacity 300ms ease-in-out; opacity: 0; }
.step-more > span { overflow: hidden; display: block; }
.step-more hr { border: 0; height: 2px; background: rgba(64,70,63,.2); margin: 14px 0 8px; }
.step-out { display: block; font: 700 13px/16px var(--font-display); letter-spacing: .06em; color: var(--lime-deep); }
.step[aria-pressed="true"] { background: var(--green-mist); box-shadow: 6px 6px 0 var(--charcoal); }
.step[aria-pressed="true"] .step-more { grid-template-rows: 1fr; opacity: 1; }
.steps { align-items: start; }

/* FAQ: answer slides open (300ms), toggle turns deep green with a white minus */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms ease-out, padding 300ms ease-out; padding-bottom: 0; }
.faq-a[hidden] { display: grid; }
.faq-a > p { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; padding-bottom: 24px; }
.faq-item:not(.is-open) .faq-a { transition-duration: 250ms; }
.faq-toggle { transition: background-color 300ms ease-out; }
.faq-toggle::before, .faq-toggle::after { background: var(--ink); transition: transform 300ms ease-out, background-color 300ms; }
.faq-q[aria-expanded="true"] .faq-toggle { background: var(--green-deep); }
.faq-q[aria-expanded="true"] .faq-toggle::before, .faq-q[aria-expanded="true"] .faq-toggle::after { background: #fff; }
.faq-q:hover .faq-toggle { background: var(--yellow); }
.faq-q[aria-expanded="true"]:hover .faq-toggle { background: var(--green-deep); }

/* Contact form: chips select lime, fields focus deep green + lime ring, errors red */
.choice span { transition: background-color 150ms ease-out, box-shadow 150ms ease-out; }
.choice input:checked + span { background: var(--lime); box-shadow: 3px 3px 0 var(--charcoal); }
.field input, .field textarea { transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.field input:focus, .field textarea:focus { border: 2px solid var(--green-deep); padding: 13.5px 15.5px; box-shadow: 0 0 0 3px var(--lime); }
.field.has-error input, .field.has-error textarea { border: 2px solid #b3261e; padding: 13.5px 15.5px; }
.field-error { color: #b3261e; }
.contact-link:hover { border-color: var(--border); }

/* Contact form → "Sent" card morph (400ms) */
.form-card { transition: min-height 400ms ease-in-out; }
.contact-form, .sent { transition: opacity 400ms ease-in-out, transform 400ms ease-in-out; }
.form-card.is-sending .contact-form { opacity: 0; transform: scale(.98); }
.sent { animation: sent-in 400ms ease-in-out; }
@keyframes sent-in { from { opacity: 0; transform: scale(.98); } }
.sent .sent-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Overlays dissolve in (250ms ease-out) */
.modal-card { animation: none; }
.modal[open] { animation: dissolve 250ms ease-out; }
.modal[open]::backdrop { animation: dissolve 250ms ease-out; }
@keyframes dissolve { from { opacity: 0; } }

/* Mobile menu: moves in from the right on the home page (300ms), dissolves elsewhere (250ms) */
.mobile-menu { animation: dissolve 250ms ease-out; }
.page-home .mobile-menu { animation: move-in 300ms ease-out; }
@keyframes move-in { from { transform: translateX(100%); } }
.mm-label { transition: color 150ms ease-out; }

/* Page navigation: dissolve (300ms ease-out) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; animation-timing-function: ease-out; }
body { animation: dissolve 300ms ease-out; }
html { scroll-behavior: smooth; }

/* ---------- animated components ---------- */
/* Home hero visual: component box 529×500, artwork stage 804×669 offset (-94,-84) */
.hero-visual { position: relative; justify-self: end; width: min(100%, 529px); aspect-ratio: 529 / 500; --s: 1; }
.hv-stage { position: absolute; left: calc(-94px * var(--s)); top: calc(-84px * var(--s)); width: 804px; height: 669px; transform: scale(var(--s)); transform-origin: 0 0; }
.hv-stage > * { position: absolute; transform-origin: 0 0; transition: transform 800ms ease-in-out, opacity 800ms ease-in-out; }
.hv-stage > [class*="hv-pa"], .hv-stage > [class*="hv-pb"] { transform-origin: 50% 50%; }
.hv-stage img { display: block; max-width: none; }
.hv-green { background: #4c8774; border-radius: 24px; }
.hv-photo { left: 439px; top: 141px; width: 268px; height: 479px; }
.hv-logo { left: 45px; top: 74px; width: 447px; height: 259px; }
.hv-stage [class*="hv-p"]:not(.hv-photo) { will-change: transform, opacity; }
.hv-stage > .hv-pt { opacity: 0; }
.hv-stage.is-expand > * { transition: transform 1000ms ease-in-out, opacity 1000ms ease-in-out; }
.hv-stage.is-contract > * { transition: transform 1100ms ease-in-out, opacity 1100ms ease-in-out; }
.hv-stage.is-hover > * { transition: transform 500ms ease-out, opacity 500ms ease-out; }

/* Case-study hero: 1200×640 stage, loop Rest → Float → Slide off → Rest, hover phones → Fan */
.case-hero-anim { position: relative; width: 100%; aspect-ratio: 1200 / 640; border-radius: var(--radius-lg); overflow: hidden; --s: 1; }
.ch-stage { position: absolute; left: 0; top: 0; width: 1200px; height: 640px; transform: scale(var(--s)); transform-origin: 0 0; }
.ch-stage > * { position: absolute; display: block; max-width: none;
  transition: transform 900ms cubic-bezier(.34, 1.56, .64, 1), opacity 900ms cubic-bezier(.34, 1.56, .64, 1); }
.ch-stage.is-float > * { transition: transform 1400ms ease-in-out, opacity 1400ms ease-in-out; }
.ch-stage.is-slide > * { transition: transform 700ms ease-in, opacity 700ms ease-in; }
.ch-stage.is-fan > * { transition: transform 450ms cubic-bezier(.34, 1.56, .64, 1), opacity 450ms; }
.ch-stage.is-pop > * { transition: transform 400ms cubic-bezier(.5, 1.9, .4, .8); }
.ch-phones { cursor: pointer; }
.ch--fease .ch-content { cursor: pointer; }
.case-hero-img { animation: none; }
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  .hero-visual { justify-self: center; width: min(62%, 340px); margin: 24px 12% 40px 0; }
}
.contact-form[hidden] { display: none; }
