/* ==========================================================================
   Real Roots Media — site styles
   Paper above ground, soil below. One stylesheet, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f4f0e8;
  --paper-2: #ece6da;
  --card: #faf8f3;
  --ink: #1c2420;
  --ink-2: #48514b;
  --ink-3: #5e655f;
  --rule: #dcd5c7;
  --rule-2: #cfc6b5;

  --moss: #2f4b3b;
  --moss-2: #243b2e;
  --soil: #1d2a22;
  --soil-2: #263629;
  --leaf: #79a35a;
  --leaf-2: #a6cb85;
  --clay: #9f4d28;
  --clay-soft: #e9c9a8;
  --cream: #f4f0e8;
  --cream-2: #c9c3b6;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --shadow-1: 0 1px 2px rgb(28 36 32 / 0.06), 0 8px 24px -12px rgb(28 36 32 / 0.18);
  --shadow-2: 0 2px 4px rgb(28 36 32 / 0.06), 0 24px 48px -24px rgb(28 36 32 / 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 450;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}
h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
::selection {
  background: var(--leaf-2);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--plain::before {
  display: none;
}
.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
}
.hand {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--clay);
  line-height: 1.1;
}
.mono {
  font-family: var(--font-mono);
}
.muted {
  color: var(--ink-3);
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  max-width: 16em;
}
.section-head .lead {
  margin: 0;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 48px;
  }
}

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--moss);
  --btn-fg: var(--cream);
  --btn-bd: var(--moss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  --btn-bg: var(--moss-2);
  --btn-bd: var(--moss-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgb(36 59 46 / 0.6);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--rule-2);
}
.btn--ghost:hover {
  --btn-bg: var(--card);
  --btn-bd: var(--ink);
  box-shadow: none;
}
.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--soil);
  --btn-bd: var(--cream);
}
.btn--light:hover {
  --btn-bg: #fff;
  --btn-bd: #fff;
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: rgb(244 240 232 / 0.35);
}
.btn--outline-light:hover {
  --btn-bg: rgb(244 240 232 / 0.08);
  --btn-bd: var(--cream);
  box-shadow: none;
}
.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--moss);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--ease);
}
.link:hover {
  background-size: 100% 1.5px;
}
.link svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.prose a,
.inline-link {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgb(47 75 59 / 0.35);
  transition: text-decoration-color 0.2s;
}
.prose a:hover,
.inline-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(244 240 232 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg);
}
/* Logo mark: sprout above the horizon, roots below. Colours flip in the footer. */
.brand-mark {
  --mk-line: var(--moss);
  --mk-soil: var(--moss);
  --mk-leaf: var(--leaf);
  --mk-root: var(--cream);
}
.mk-soil {
  fill: var(--mk-soil);
}
.mk-line {
  fill: none;
  stroke: var(--mk-line);
  stroke-width: 2.4;
}
.mk-stem {
  fill: none;
  stroke: var(--mk-line);
  stroke-width: 4.6;
  stroke-linecap: round;
}
.mk-leaf {
  fill: var(--mk-leaf);
}
.mk-roots {
  fill: none;
  stroke: var(--mk-root);
  stroke-linecap: round;
}
.site-footer .brand-mark {
  --mk-line: var(--cream);
  --mk-soil: var(--cream);
  --mk-leaf: var(--leaf-2);
  --mk-root: var(--soil);
}
.brand-name {
  display: grid;
  line-height: 1;
}
.brand-name b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.brand-name small {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-list a:hover {
  color: var(--ink);
  background: rgb(28 36 32 / 0.05);
}
.nav-list a[aria-current="page"] {
  color: var(--ink);
}
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--leaf);
}
.nav .btn {
  margin-left: 10px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before {
  top: -7px;
}
.nav-toggle span::after {
  top: 7px;
}
.nav-open .nav-toggle span {
  background: transparent;
}
.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 22px;
    padding: 18px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 30px 40px -30px rgb(28 36 32 / 0.35);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-list {
    display: grid;
    gap: 0;
  }
  .nav-list li + li {
    border-top: 1px solid var(--rule);
  }
  .nav-list a {
    display: flex;
    padding: 14px 2px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 450;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .nav-list a:hover {
    background: none;
  }
  .nav-list a[aria-current="page"]::after {
    left: auto;
    right: 4px;
    top: 50%;
    bottom: auto;
    width: 8px;
    height: 8px;
    margin: -4px 0 0;
  }
  .nav .btn {
    margin: 0;
    width: 100%;
  }
  .nav-open {
    overflow: hidden;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 88px) clamp(8px, 2vw, 24px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}
.hero h1 {
  font-size: clamp(2.6rem, 1.55rem + 4.6vw, 5.05rem);
  line-height: 1.01;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero h1 em {
  position: relative;
  white-space: nowrap;
  color: var(--moss);
}
.squiggle {
  position: absolute;
  left: -2%;
  bottom: -0.2em;
  width: 104%;
  height: auto;
  overflow: visible;
  color: var(--clay);
  pointer-events: none;
}
.squiggle path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s 0.9s var(--ease) forwards;
}
.hero .lead {
  margin-bottom: 34px;
}
.hero .lead strong {
  color: var(--ink);
  font-weight: 600;
}
.live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-3);
}
.live-row li:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.live-row a:hover {
  color: var(--ink);
}
.dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--leaf);
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2.4s var(--ease) infinite;
}
.dot--soon {
  background: #d4a13a;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* The plate: hero illustration */
.plate-fig {
  margin: 0;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}
.plate {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.plate-fig figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plate .p-grid {
  stroke: var(--rule);
  stroke-width: 0.6;
  fill: none;
}
.plate .p-soil {
  fill: var(--moss);
}
.plate .p-pebbles {
  fill: var(--cream);
  opacity: 0.09;
}
.plate .p-horizon {
  stroke: var(--ink);
  stroke-width: 2;
}
.plate .p-grass {
  fill: none;
  stroke: var(--moss);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.plate .p-lbl {
  font: 500 13px var(--font-mono);
  letter-spacing: 0.08em;
  fill: var(--ink);
}
.plate .p-sub {
  font: italic 400 15px var(--font-display);
  fill: var(--ink-3);
}
.plate .p-rlbl {
  font: 500 12.5px var(--font-mono);
  letter-spacing: 0.1em;
  fill: var(--cream);
}
.plate .p-tick {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.1em;
  fill: var(--ink-3);
}
.plate .p-note {
  font: 600 20px var(--font-hand);
  fill: var(--clay);
}
.plate .p-note--soil {
  fill: var(--clay-soft);
}
.plate .p-arrow {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plate .p-arrow--soil {
  stroke: var(--clay-soft);
}
.plate .p-stem {
  fill: none;
  stroke: var(--moss);
  stroke-width: 4;
  stroke-linecap: round;
}
.plate .p-leaf {
  fill: var(--leaf);
}
.plate .p-root {
  fill: none;
  stroke: var(--cream);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plate .p-node {
  fill: var(--cream);
}
.plate .p-leader {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
@media (max-width: 600px) {
  .plate .p-lbl {
    font-size: 17px;
  }
  .plate .p-sub {
    font-size: 19px;
  }
  .plate .p-rlbl {
    font-size: 16px;
  }
  .plate .p-note {
    font-size: 25px;
  }
  .plate .p-tick {
    display: none;
  }
}

/* Plate growth animation (CSS only; content is fully drawn without it) */
.plate .p-root,
.plate .p-arrow {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.plate .p-stem {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.plate .p-leaf {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .plate .p-root {
    stroke-dashoffset: 1;
    animation: draw 1.6s var(--d, 0.4s) var(--ease) forwards;
  }
  .plate .p-node,
  .plate .p-rlbl,
  .plate .p-lbl,
  .plate .p-sub,
  .plate .p-leader,
  .plate .p-note {
    opacity: 0;
    animation: fade 0.8s var(--d, 1.4s) var(--ease) forwards;
  }
  .plate .p-arrow {
    stroke-dashoffset: 1;
    animation: draw 0.9s var(--d, 2.2s) var(--ease) forwards;
  }
  .plate .p-stem {
    transform: scaleY(0);
    animation: grow 1s var(--d, 0.2s) var(--ease) forwards;
  }
  .plate .p-leaf {
    transform: scale(0);
    animation: pop 0.7s var(--d, 1s) var(--ease) forwards, sway 5.5s calc(var(--d, 1s) + 0.7s) ease-in-out infinite alternate;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}
@keyframes grow {
  to {
    transform: scaleY(1);
  }
}
@keyframes pop {
  to {
    transform: scale(1);
  }
}
@keyframes sway {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(5deg);
  }
}

/* ---------- Work / projects ---------- */
.projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(88px, 11vw, 150px);
}
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .project {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }
  .project:nth-child(even) .project-media {
    order: 2;
  }
}
.project-media {
  position: relative;
  padding: 0 0 clamp(36px, 8%, 64px) clamp(44px, 14%, 108px);
}
.project:nth-child(even) .project-media {
  padding: 0 clamp(44px, 14%, 108px) clamp(36px, 8%, 64px) 0;
}
.browser {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--rule-2);
  background: var(--card);
  box-shadow: var(--shadow-2);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.browser-dots {
  display: flex;
  gap: 6px;
  flex: none;
}
.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule-2);
}
.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-inline: auto;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url svg {
  width: 11px;
  height: 11px;
  flex: none;
}
.browser-spacer {
  width: 39px;
  flex: none;
}
.browser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(88px, 22%, 152px);
  margin: 0;
  padding: 5px;
  border-radius: 24px;
  background: var(--ink);
  box-shadow: var(--shadow-2);
  transition: transform 0.6s var(--ease);
}
.project:nth-child(even) .phone {
  left: auto;
  right: 0;
}
.phone img {
  width: 100%;
  aspect-ratio: 390 / 760;
  object-fit: cover;
  object-position: top;
  border-radius: 19px;
}
.project-media:hover .browser {
  transform: translateY(-4px);
}
.project-media:hover .phone {
  transform: translateY(-10px) rotate(-1.5deg);
}
.project:nth-child(even) .project-media:hover .phone {
  transform: translateY(-10px) rotate(1.5deg);
}
.project-note {
  position: absolute;
  z-index: 2;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--clay);
  pointer-events: none;
}
.project-note svg {
  width: 46px;
  height: 34px;
  margin-top: 2px;
  overflow: visible;
}
.project-note svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 700px) {
  .project-note {
    display: none;
  }
}

.project-body .eyebrow {
  margin-bottom: 14px;
}
.project-body h3 {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem);
  margin-bottom: 6px;
}
.project-tagline {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.32rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--moss);
}
.project-body > p {
  color: var(--ink-2);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.project-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.project-top .eyebrow {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0;
  border-block: 1px solid var(--rule);
}
.stats div {
  padding: 16px 12px 14px 0;
}
.stats div + div {
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.stats dt {
  order: 2;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-3);
}
.stats dd {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.stats div {
  display: flex;
  flex-direction: column;
}
.stats dd {
  order: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.84rem;
  color: var(--ink-2);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

/* ---------- Upcoming project ---------- */
.next-up > .eyebrow {
  margin-bottom: 22px;
}
.upcoming {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(16px, 3vw, 36px);
  border: 1.5px dashed var(--rule-2);
  border-radius: calc(var(--radius) + 8px);
  background: rgb(250 248 243 / 0.6);
}
@media (min-width: 960px) {
  .upcoming {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}
.upcoming-art,
.case-art {
  margin: 0;
}
.case-art {
  max-width: 900px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.upcoming-art figcaption,
.case-art figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Not live yet: a hollow, still dot instead of a pulsing one. */
.dot--seed {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--clay);
}
.dot--seed::after {
  display: none;
}

/* Plate II: the Swiss cheese model */
.hs-face {
  fill: var(--card);
  stroke: var(--ink-3);
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.hs-hole {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
}
.hs-hole--lined-up {
  stroke: var(--clay);
  stroke-width: 1.4;
}
.hs-line {
  fill: none;
  stroke: var(--clay);
  stroke-width: 2.2;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
}
.hs-head,
.hs-arrow {
  fill: none;
  stroke: var(--clay);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hs-head {
  stroke-width: 2.2;
}
.hs-arrow {
  stroke-width: 1.8;
}
.hs-start {
  fill: var(--clay);
}
.hs-lbl {
  font: 500 11.5px var(--font-mono);
  letter-spacing: 0.1em;
  fill: var(--ink-3);
}
.hs-key {
  font: 500 13px var(--font-mono);
  letter-spacing: 0.1em;
  fill: var(--ink);
}
.hs-note {
  font: 600 21px var(--font-hand);
  fill: var(--clay);
}
@media (max-width: 600px) {
  .hs-lbl {
    font-size: 17px;
  }
  .hs-key {
    font-size: 18px;
  }
  .hs-note {
    font-size: 26px;
  }
}

/* ---------- Soil band (services) ---------- */
.soil {
  position: relative;
  background: var(--soil);
  color: var(--cream);
  overflow: hidden;
}
.soil h2,
.soil h3 {
  color: var(--cream);
}
.soil .eyebrow {
  color: var(--cream-2);
}
.soil .lead {
  color: var(--cream-2);
}
.soil .link {
  color: var(--leaf-2);
}
.soil-roots {
  position: absolute;
  top: 0;
  right: -40px;
  width: min(520px, 60vw);
  height: auto;
  color: var(--cream);
  opacity: 0.08;
  pointer-events: none;
}
.soil .wrap {
  position: relative;
}
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(244 240 232 / 0.16);
}
.service-list li {
  border-bottom: 1px solid rgb(244 240 232 / 0.16);
}
.service-list a {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: baseline;
  padding: 26px 0;
  text-decoration: none;
  color: inherit;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease);
}
.service-list .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--leaf-2);
}
.service-list h3 {
  font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.15rem);
  font-weight: 400;
}
.service-list p {
  grid-column: 2 / 3;
  margin: 0;
  max-width: 40em;
  color: var(--cream-2);
}
.service-list .arrow {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgb(244 240 232 / 0.2);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-list .arrow svg {
  width: 18px;
  height: 18px;
}
.service-list a:hover {
  padding-left: 10px;
}
.service-list a:hover .arrow {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--soil);
  transform: rotate(-45deg);
}
@media (min-width: 900px) {
  .service-list a {
    grid-template-columns: 4rem minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
    align-items: center;
  }
  .service-list p {
    grid-column: 3;
  }
  .service-list .arrow {
    grid-column: 4;
    grid-row: 1;
  }
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 18px;
  padding-bottom: 34px;
}
.step::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--leaf), var(--moss));
  border-radius: 2px;
  opacity: 0.55;
}
.step:last-child::before {
  display: none;
}
.step-icon {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--rule-2);
  color: var(--moss);
}
.step-icon svg {
  width: 26px;
  height: 26px;
}
.step h3 {
  align-self: end;
  font-size: 1.55rem;
  font-weight: 450;
  padding-top: 4px;
}
.step h3 span {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  vertical-align: 0.3em;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  max-width: 32em;
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 0;
  }
  .step::before {
    left: 60px;
    right: -22px;
    top: 26px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--leaf), var(--moss));
  }
  .step-icon {
    grid-row: auto;
  }
  .step h3 {
    padding-top: 8px;
  }
}

/* ---------- Note from Afif ---------- */
.note-band {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.note-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 960px) {
  .note-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}
.note-grid h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
}
.letter {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
}
.letter::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  background: rgb(185 171 140 / 0.35);
  transform: rotate(-2deg);
  border-radius: 2px;
}
.letter p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.letter p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.8;
  font-weight: 500;
  color: var(--moss);
}
.signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule-2);
}
.signature {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--moss);
  transform: rotate(-4deg);
  transform-origin: left bottom;
}
.signoff small {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.signoff small b {
  color: var(--ink);
  font-weight: 600;
}

.studio-facts {
  display: grid;
  margin: 36px 0 0;
  max-width: 26rem;
  border-top: 1px solid var(--rule-2);
}
.studio-facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-2);
}
.studio-facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.studio-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  text-align: right;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  background: var(--moss);
  color: var(--cream);
  isolation: isolate;
}
.cta h2 {
  color: var(--cream);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  max-width: 12em;
  margin-bottom: 18px;
}
.cta p:not(.eyebrow) {
  max-width: 32em;
  color: var(--cream-2);
  font-size: 1.15rem;
  margin-bottom: 32px;
}
.cta-roots {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: min(460px, 70%);
  height: auto;
  color: var(--cream);
  opacity: 0.1;
  z-index: -1;
}

/* ---------- Page heads (inner pages) ---------- */
.page-head {
  padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px);
}
.page-head h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 13em;
  margin-bottom: 24px;
}
.page-head .lead {
  margin: 0;
}

/* ---------- Case studies (work page) ---------- */
.case-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.case-index a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.case-index a:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.case-index span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--clay);
}
.case {
  padding-block: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--rule);
}
.case-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.case-head h2 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
}
.case-head .project-tagline {
  margin: 0;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
}
.case-shot {
  position: relative;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding: 0 0 clamp(30px, 5%, 56px) clamp(44px, 10%, 120px);
}
.case-head .project-top {
  justify-content: flex-start;
  margin-bottom: 4px;
}
.case-shot .phone {
  width: clamp(96px, 20%, 200px);
}
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 960px) {
  .case-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 72px;
    align-items: start;
  }
}
.case-body h3 {
  margin: 40px 0 14px;
  font-size: 1.6rem;
  font-weight: 450;
}
.case-body h3:first-child {
  margin-top: 0;
}
.case-body p {
  color: var(--ink-2);
  max-width: 40em;
}
.check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  max-width: 40em;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 16px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M0 9.6C1.2 4.4 5.6 0.6 13.4 0.8C11.4 5.6 6.8 9 0 9.6Z' fill='%2379a35a'/%3E%3C/svg%3E")
    no-repeat center / contain;
}
.facts {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
}
.facts div {
  padding: 16px 0;
}
.facts div + div {
  border-top: 1px solid var(--rule);
}
.facts dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}
.facts .link {
  font-size: 0.98rem;
}

/* ---------- Services page ---------- */
.svc {
  display: grid;
  gap: 28px;
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}
@media (min-width: 960px) {
  .svc {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}
.svc-title .num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--clay);
}
.svc-title h2 {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  font-weight: 400;
}
.svc-title p {
  margin: 14px 0 0;
  color: var(--ink-3);
}
.svc h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.svc-problem p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 350;
  color: var(--ink);
  font-variation-settings: "SOFT" 50;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}
.prose {
  max-width: 38em;
}
.prose p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 {
  margin: 56px 0 18px;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
}
.prose h2:first-child {
  margin-top: 0;
}
.pullquote {
  margin: 40px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--leaf);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  line-height: 1.4;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--moss);
}
.card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
}
.card h2,
.card h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.biz {
  margin: 0;
  display: grid;
}
.biz div {
  display: grid;
  gap: 2px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}
.biz dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.biz dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.biz a {
  color: var(--moss);
  text-decoration: none;
}
.biz a:hover {
  text-decoration: underline;
}
.stamp {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.stamp svg {
  width: 56px;
  height: 56px;
  flex: none;
}
.stamp b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
}
.stamp span {
  font-size: 0.9rem;
  color: var(--ink-3);
}
.principles {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.principle {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
}
.principle svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--moss);
}
.principle h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.principle p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}
.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
}
.form {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--rule-2);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348514b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #727871;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--moss);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(121 163 90 / 0.22);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.form-foot p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 26em;
}
.form-status {
  display: none;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgb(121 163 90 / 0.14);
  border: 1px solid rgb(121 163 90 / 0.45);
}
.form-status.is-visible {
  display: block;
}
.form-status h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.form-status p {
  margin-bottom: 14px;
  color: var(--ink-2);
}
.form-status .btn-row {
  gap: 10px;
}
.form-status--error {
  background: rgb(176 88 47 / 0.1);
  border-color: rgb(176 88 47 / 0.4);
}
.aside-stack {
  display: grid;
  gap: 18px;
}
.email-big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.email-big a {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  color: var(--moss);
  text-decoration: none;
  word-break: break-all;
}
.email-big a:hover {
  text-decoration: underline;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink-2);
  font: 500 0.8rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.copy-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.copy-btn svg {
  width: 14px;
  height: 14px;
}
.copy-btn.is-copied {
  border-color: var(--leaf);
  color: var(--moss);
}
.next-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
}
.next-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.next-steps li::before {
  counter-increment: n;
  content: "0" counter(n);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  padding-top: 3px;
}
.book {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.calendly-shell {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.calendly-shell .calendly-inline-widget {
  min-height: 700px;
}
.calendly-fallback {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--ink-3);
}

/* ---------- Legal pages ---------- */
.legal {
  padding-bottom: clamp(72px, 9vw, 120px);
}
.legal .prose {
  max-width: 44em;
}
.legal .prose h2 {
  margin: 44px 0 12px;
  font-size: 1.6rem;
}
.legal .prose p,
.legal .prose li {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal .prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.legal .prose li + li {
  margin-top: 6px;
}
.legal-meta {
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.callout {
  margin: 0 0 32px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--leaf);
}
.callout p:last-child {
  margin: 0;
}

/* ---------- 404 ---------- */
.lost {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(72px, 10vw, 140px);
}
.lost svg.lost-mark {
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
}
.lost-q {
  fill: none;
  stroke: var(--clay);
  stroke-width: 3.2;
  stroke-linecap: round;
}
.lost-dot {
  fill: var(--clay);
}
.lost h1 {
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem);
  margin-bottom: 16px;
}
.lost .lead {
  margin: 0 auto 32px;
}
.lost .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 0;
  padding: clamp(56px, 7vw, 88px) 0 32px;
  background: var(--soil);
  color: var(--cream-2);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--moss), var(--leaf), var(--moss));
  opacity: 0.8;
}
.footer-roots {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1100px;
  max-width: none;
  height: auto;
  margin-left: -550px;
  color: var(--cream);
  opacity: 0.05;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
    gap: 48px;
  }
}
.site-footer .brand {
  color: var(--cream);
}
.site-footer .brand-name small {
  color: var(--cream-2);
}
.footer-about p {
  max-width: 24em;
  margin: 20px 0 0;
  font-size: 0.98rem;
}
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-2);
}
.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.98rem;
  opacity: 0.85;
  transition: opacity 0.2s;
  word-break: break-word;
}
.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgb(244 240 232 / 0.14);
  font-size: 0.88rem;
}
.footer-base p {
  margin: 0;
}
.footer-base b {
  color: var(--cream);
  font-weight: 600;
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--rd, 0s);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .squiggle path {
    stroke-dashoffset: 0;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta,
  .nav-toggle {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

.chip-soon {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}
