:root {
  --paper: #f3efe7;
  --paper-2: #e9e3d7;
  --card: #fffdf9;
  --ink: #141413;
  --ink-2: #2b2a27;
  --muted: #5e5a52;
  --line: rgba(20, 20, 19, 0.13);
  --accent: #ff5a1f;
  --yolk: #ffc247;
  --blue: #5b7cfa;
  --wa: #147a47;

  --font-sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --space-section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --radius: 22px;

  --text-sm: 0.875rem;
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-h2: clamp(2.2rem, 1.4rem + 3vw, 4rem);
  --text-hero: clamp(3rem, 1.6rem + 5vw, 6.4rem);

  --shadow-card: 0 1px 2px rgba(20, 20, 19, 0.04), 0 30px 60px -30px rgba(20, 20, 19, 0.22);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --duration-fast: 180ms;
  --duration-normal: 400ms;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

section[id] { scroll-margin-top: 6rem; }

::selection { background: var(--yolk); color: var(--ink); }

a { color: inherit; }
ul, ol, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }

/* accent words are handwritten, like a note on a sketch */
em {
  font-family: var(--font-hand);
  font-style: normal;
  font-weight: 700;
  font-size: 1.12em;
  letter-spacing: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
}
.muted { color: var(--muted); }

.h2 {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0.6rem 0 1.25rem;
}
.h2 em { color: var(--accent); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { top: 1rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-expo), background-color var(--duration-fast);
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: var(--text-sm); }

.btn svg { width: 18px; height: 18px; flex: none; }
.btn .cal-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btn .wa-icon { fill: currentColor; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0f5f39; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.contact__phone { margin-top: 1.25rem; font-size: var(--text-sm); }
.contact__phone a { color: var(--ink); font-weight: 500; }

.link-arrow {
  display: inline-flex;
  gap: 0.4rem;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow span { transition: transform var(--duration-normal) var(--ease-out-expo); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), 72rem);
  margin: 12px auto 0;
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04), 0 12px 32px -18px rgba(20, 20, 19, 0.25);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  transition: box-shadow var(--duration-normal), background-color var(--duration-normal);
}
.nav.is-scrolled { background: rgba(255, 255, 255, 0.88); box-shadow: 0 1px 2px rgba(20, 20, 19, 0.05), 0 16px 40px -18px rgba(20, 20, 19, 0.32); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand__mark { width: 26px; height: 26px; fill: var(--ink); }
.brand__crack {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linejoin: round;
  transition: transform var(--duration-normal) var(--ease-spring);
}
.brand:hover .brand__crack { transform: translateY(-2px); }

.nav__links { display: flex; gap: 2rem; font-size: var(--text-sm); font-weight: 500; }
.nav__links a { position: relative; text-decoration: none; color: var(--ink-2); transition: color var(--duration-fast); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scale(1); }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  min-height: calc(100svh - 76px);
  max-width: 84rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.hero__title {
  margin: 1.5rem 0 1.25rem;
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.hero__title em { color: var(--accent); padding-right: 0.04em; }

.hero__lede { max-width: 34ch; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--ink-2); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__proof div { display: flex; flex-direction: column-reverse; gap: 0.15rem; }
.hero__proof dd { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.hero__proof div:first-child dd { color: var(--accent); }
.hero__proof dt { font-size: var(--text-sm); color: var(--muted); }

.numbers div:first-child dd { color: var(--accent); }

/* ---------- STAGE (design canvas) ---------- */
.stage {
  position: relative;
  width: 100%;
  max-width: 38rem;
  justify-self: end;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stage__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.stage__dots { display: inline-flex; gap: 6px; }
.stage__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); }
.stage__file { flex: 1; font-weight: 500; color: var(--ink-2); }
.stage__replay {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast);
}
.stage__replay:hover { background: var(--paper); border-color: rgba(20, 20, 19, 0.2); }
.stage__replay svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.canvas {
  display: block;
  width: 100%;
  height: auto;
  background-image: radial-gradient(rgba(20, 20, 19, 0.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}
.canvas * { transform-box: fill-box; transform-origin: center; }

.shadow { fill: rgba(20, 20, 19, 0.08); }
.shell__fill { fill: #fff; }
.shell__line,
.egg__outline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.egg__outline { fill: #fff; }
.crack { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 320; }

.bulb__glass { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.bulb__filament { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bulb__neck { fill: #fff; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.bulb__cap { fill: var(--ink); }
.bulb__rays { fill: none; stroke: var(--yolk); stroke-width: 4; stroke-linecap: round; }

.site__frame { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.site__rule { fill: none; stroke: #e5e1d8; stroke-width: 1.5; }
.beam { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 320; }

.select__box { fill: none; stroke: var(--blue); stroke-width: 1.5; }
.select__handle { fill: #fff; stroke: var(--blue); stroke-width: 1.5; }
.select__tag { fill: var(--blue); }
.select__text { font-family: var(--font-sans); font-size: 11px; font-weight: 500; fill: #fff; }
.cursor__arrow { fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.cursor { transform-box: view-box; transform-origin: 0 0; transform: translate(233px, 201px); }

/* Timeline, runs once when .is-playing:
   0.2s wobble → 1.0s crack → 1.55s hatch → 1.8s idea rises → 2.3s idea lights up
   → 3.0s idea steps aside → 3.4s website assembles → 4.8s selected → 6s cursor clicks */
.is-playing .egg { transform-origin: 50% 100%; animation: wobble 1.2s ease-in-out 0.2s both; }
.is-playing .crack { animation: draw 0.45s ease-out 1s both, hide 0.01s linear 1.55s forwards; }
.is-playing .egg__outline { animation: hide 0.01s linear 1.55s forwards; }
.is-playing .shell__line { animation: show 0.01s linear 1.55s both; }
.is-playing .shell-top { animation: toss 1.2s cubic-bezier(0.3, 0.6, 0.4, 1) 1.55s both; }
.is-playing .shell-bottom { animation: settle 0.6s ease-out 1.55s both; }
.is-playing .glow { animation: bloom 1s var(--ease-out-expo) 1.6s both, breathe 4s ease-in-out 3s infinite; }
.is-playing .swatches { animation: fly-out 1s var(--ease-spring) 2s both; }
.is-playing .swatches__float { animation: float 5s ease-in-out 3s infinite; }

.is-playing .bulb-rise { animation: rise 0.9s var(--ease-out-expo) 1.75s both; }
.is-playing .bulb__glass { animation: light-up 0.6s linear 2.3s both; }
.is-playing .bulb__glow { animation: bloom 0.8s var(--ease-out-expo) 2.4s both; }
.is-playing .bulb__rays { animation: burst 0.8s var(--ease-spring) 2.45s both; }
.is-playing .bulb-move { animation: step-aside 0.9s var(--ease-out-expo) 3s both; }
.is-playing .bulb-float { animation: float 4.5s ease-in-out 4s infinite; }
.is-playing .beam { animation: draw 0.5s ease-out 3.4s both; }

.is-playing .piece { animation: pop-in 0.55s var(--ease-spring) both; }
.is-playing .piece:nth-child(1) { animation-delay: 3.45s; }
.is-playing .piece:nth-child(2) { animation-delay: 3.6s; }
.is-playing .piece:nth-child(3) { animation-delay: 3.75s; }
.is-playing .piece:nth-child(4) { animation-delay: 3.85s; }
.is-playing .piece:nth-child(5) { animation-delay: 3.95s; }
.is-playing .piece:nth-child(6) { animation-delay: 4.05s; }
.is-playing .piece:nth-child(7) { animation-delay: 4.15s; }
.is-playing .piece:nth-child(8) { animation-delay: 4.25s; }
.is-playing .site__btn { animation: pop-in 0.55s var(--ease-spring) 3.95s both, press 0.3s ease-in-out 6s; }

.is-playing .select { animation: fade-in 0.4s ease-out 4.8s both; }
.is-playing .cursor { animation: cursor-path 1.6s var(--ease-out-expo) 4.4s both, click 0.3s ease-in-out 6s; }

.stage.is-paused * { animation-play-state: paused !important; }

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-5deg); }
  35% { transform: rotate(4deg); }
  55% { transform: rotate(-3deg); }
  75% { transform: rotate(2deg); }
}
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes hide { to { opacity: 0; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toss {
  0% { transform: none; }
  40% { transform: translate(90px, -110px) rotate(70deg) scale(0.7); }
  100% { transform: translate(168px, 150px) rotate(172deg) scale(0.52); }
}
@keyframes settle { 0% { transform: none; } 40% { transform: translateY(7px) scaleX(1.02); } 100% { transform: translateY(2px); } }
@keyframes bloom { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes breathe { 50% { transform: scale(1.08); } }
@keyframes burst { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(120px); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes light-up {
  0% { fill: #fff; }
  30% { fill: var(--yolk); }
  45% { fill: #fff; }
  65%, 100% { fill: var(--yolk); }
}
@keyframes step-aside { to { transform: translate(-150px, -10px) scale(0.72); } }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes fly-out { from { transform: translate(160px, -110px) scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes press { 50% { transform: scale(0.92); } }
@keyframes cursor-path {
  0% { transform: translate(480px, 470px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(233px, 201px); opacity: 1; }
}
@keyframes click { 50% { transform: translate(233px, 201px) scale(0.85); } }

/* ---------- INTRO ---------- */
.intro,
.services,
.work,
.studio,
.contact { padding: var(--space-section) var(--gutter) 0; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  margin-top: clamp(1rem, 3vw, 3rem);
}
.intro__text {
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 28ch;
}
.intro__text em { color: var(--accent); }

/* ---------- SERVICES ---------- */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.services__aside { position: sticky; top: 6rem; display: grid; gap: 1rem; justify-items: start; }
.services__aside .h2 { margin: 0; }
.services__aside .muted { max-width: 32ch; }

.svc-group + .svc-group { margin-top: 2.5rem; }
.svc-group__name {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
}

.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc summary {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc__no { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc__name {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  transition: color var(--duration-fast), transform var(--duration-normal) var(--ease-out-expo);
}
.svc summary:hover .svc__name { color: var(--accent); transform: translateX(4px); }

.svc__plus { position: relative; width: 14px; height: 14px; justify-self: end; color: var(--muted); }
.svc__plus::before,
.svc__plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.svc__plus::after { transform: rotate(90deg); }
.svc[open] .svc__plus { color: var(--accent); }
.svc[open] .svc__plus::after { transform: rotate(0); }

.svc__body {
  padding: 0 0 1.5rem 3.5rem;
  animation: open var(--duration-normal) var(--ease-out-expo);
}
.svc__body p { color: var(--ink-2); max-width: 46ch; }
.svc__body ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 0.4rem 1.5rem; margin-top: 1rem; }
.svc__body li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.95rem; color: var(--ink-2); }
.svc__body li::before { content: ""; flex: none; width: 10px; height: 1.5px; background: var(--accent); transform: translateY(-4px); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- WORK ---------- */
.work__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}
.work__head .h2 { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.filters button {
  position: relative;
  padding: 0.3rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.filters button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.filters button:hover,
.filters button.is-active { color: var(--ink); }
.filters button.is-active::after { transform: scaleX(1); }

.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.75rem;
  margin: 0 -0.75rem;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color var(--duration-fast), opacity var(--duration-normal);
}
.work-row:hover { background: var(--card); }
.work-row.is-dimmed { opacity: 0.25; }
.work-row__no { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-row h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; }
.work-row p { color: var(--muted); font-size: 0.95rem; }
.work-row__tag {
  justify-self: end;
  font-size: var(--text-sm);
  color: var(--muted);
  white-space: nowrap;
}

/* featured projects: two large, three small */
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.feature { grid-column: span 2; }
.feature--lg { grid-column: span 3; }
.feature__link { display: grid; gap: 0.75rem; text-decoration: none; }
.feature__shot {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
  transition: box-shadow var(--duration-normal) var(--ease-out-expo), transform var(--duration-normal) var(--ease-out-expo);
}
.feature__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease-out-expo); }
.feature__link:hover .feature__shot { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature__link:hover .feature__shot img { transform: scale(1.03); }
.feature__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
.feature__name { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.03em; }
.feature__url { font-size: var(--text-sm); color: var(--muted); transition: color var(--duration-fast); }
.feature__link:hover .feature__url { color: var(--accent); }
.feature__desc { color: var(--muted); font-size: 0.95rem; max-width: 46ch; }

.feature--app .feature__shot { display: grid; place-items: center; aspect-ratio: 16 / 10; }
.feature--app .feature__shot img { width: 34%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(20, 20, 19, 0.18)); }
.feature--framlet .feature__shot img { width: 27%; border-radius: 22%; }
.feature--framlet .feature__shot { background: radial-gradient(circle at 50% 45%, #ffe2cc, var(--paper-2) 70%); }
.feature--voicetext .feature__shot { background: radial-gradient(circle at 50% 45%, #d6e4ff, var(--paper-2) 70%); }
.feature__link:hover .feature--app img,
.feature--app .feature__link:hover .feature__shot img { transform: scale(1.06) rotate(-3deg); }

.work__sub { margin-bottom: 0.75rem; font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
.work-row h3 a { text-decoration: none; transition: color var(--duration-fast); }
.work-row h3 a:hover { color: var(--accent); }
.work-row .ext { font-size: 0.7em; color: var(--muted); }

/* ---------- STUDIO ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.studio__intro .h2 { max-width: 16ch; }

.lineage { margin-top: 2rem; border-top: 1px solid var(--line); }
.lineage li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.lineage b { color: var(--ink); font-weight: 500; }
.lineage .is-now span,
.lineage .is-now b { color: var(--accent); }

.founder {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.founder__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 22%;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  background: var(--paper-2);
}
.founder__name {
  margin: 0.25rem 0 0.85rem;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.founder__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.founder__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color var(--duration-fast);
}
.founder__links a:hover { color: var(--accent); }

.numbers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.numbers div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--paper-2);
}
.numbers dt { font-size: var(--text-sm); color: var(--muted); }
.numbers dd {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- CONTACT ---------- */
.contact { padding-bottom: var(--space-section); }
.contact__big {
  margin: 0.75rem 0 2rem;
  font-size: clamp(3rem, 1rem + 8vw, 9rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.contact__big em { color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* ---------- FOOTER ---------- */
.footer { padding: 0 var(--gutter); overflow: hidden; border-top: 1px solid var(--line); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.25rem 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--accent); }
.footer__word {
  font-size: 22vw;
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.045em;
  white-space: nowrap;
  margin: 0.5rem 0 -0.06em -0.03em;
  color: var(--ink);
}
.fit-row { display: inline-block; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .intro,
  .services,
  .studio { grid-template-columns: 1fr; }
  .services__aside { position: static; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature,
  .feature--lg { grid-column: span 3; }
}

@media (max-width: 640px) {
  .nav__links { gap: 1.1rem; }
  .eyebrow { gap: 0.45rem; padding: 0.3rem 0.7rem 0.3rem 0.55rem; font-size: 0.75rem; white-space: nowrap; }
  .eyebrow .dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15); }
  .nav__links li:first-child,
  .nav__links li:last-child,
  .nav > .btn--sm { display: none; }
  .nav { padding-right: 1.1rem; }
  .svc__body { padding-left: 0; }
  .feature,
  .feature--lg { grid-column: 1 / -1; }
  .work-row { grid-template-columns: 2rem minmax(0, 1fr) auto; row-gap: 0.25rem; }
  .work-row p { grid-column: 2 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
.studio__more { margin-top: 1.5rem; }
.nav__links a[aria-current="page"] { color: var(--accent); }
