/* ---------- Tokens ---------- */
:root {
  /* Dark (default): a white tree at night */
  --bg: #0b0f0d;
  --bg-2: #111714;
  --bg-3: #18201c;
  --fg: #f2efe6;
  --fg-2: #e6e2d6;
  --mist: #a9b3ad;
  --mist-2: #6f7a74;
  --moss: #b8c9b0;
  --line: rgba(242, 239, 230, 0.12);
  --line-strong: rgba(242, 239, 230, 0.24);
  --nav-bg: rgba(11, 15, 13, 0.9);
  --glow: rgba(184, 201, 176, 0.14);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  --dot-glow: rgba(242, 239, 230, 0.45);
  --todo-bg: rgba(184, 201, 176, 0.14);
  --todo-line: rgba(184, 201, 176, 0.5);
  --err: #e8a79a;
  /* the "Báncrann" band is always the opposite of the page */
  --inv-bg: #f2efe6;
  --inv-fg: #0b0f0d;
  --inv-muted: #6f7a74;
  --inv-text: #3b433f;
  /* read by main.js for the canvas tree and drifting seeds */
  --tree: #f2efe6;
  --bud: #f2efe6;
  --mote: 242, 239, 230;
  color-scheme: dark;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

/* Light: birch bark by day (only when the visitor picks it with the toggle) */
:root[data-theme="light"] {
  --bg: #f4f1e8; --bg-2: #ece8dc; --bg-3: #e2ddcf;
  --fg: #121915; --fg-2: #2b342f;
  --mist: #56615a; --mist-2: #7b847e;
  --moss: #4c6a45;
  --line: rgba(18, 25, 21, 0.12); --line-strong: rgba(18, 25, 21, 0.26);
  --nav-bg: rgba(244, 241, 232, 0.9);
  --glow: rgba(76, 106, 69, 0.12);
  --shadow: 0 40px 80px -45px rgba(30, 40, 32, 0.35);
  --dot-glow: rgba(18, 25, 21, 0.25);
  --todo-bg: rgba(76, 106, 69, 0.1); --todo-line: rgba(76, 106, 69, 0.5); --err: #b0442f;
  --inv-bg: #0f1512; --inv-fg: #f2efe6; --inv-muted: #8f9a93; --inv-text: #c9cfc9;
  --tree: #1f2a23; --bud: #4c6a45; --mote: 31, 42, 35;
  color-scheme: light;
}

/* smooth colour change when the toggle is pressed (not on first load) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), fill .5s, stroke .5s !important;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center;
  margin-left: 18px; position: relative; overflow: hidden;
}
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .i-sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
:root[data-theme-now="light"] .theme-toggle .i-sun { transform: none; opacity: 1; }
:root[data-theme-now="light"] .theme-toggle .i-moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
.nav-right { display: flex; align-items: center; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--fg); color: var(--bg); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }


.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mist); margin: 0 0 20px; font-weight: 500;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: var(--nav-bg);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; color: var(--fg); transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.08); }
.brand-word { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-word em { font-weight: 400; font-size: 1.12em; margin-left: 2px; color: var(--mist); }
.brand-word.small { font-size: 16px; }

.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.nav-links a { position: relative; color: var(--fg-2); transition: color .3s; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s !important;
}
.nav-cta:hover { background: var(--fg); color: var(--bg) !important; border-color: var(--fg); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
  will-change: transform;
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 120px 0 80px;
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-glow {
  position: absolute; z-index: 0; width: 70vw; height: 70vw; right: -15vw; bottom: -30vw;
  background: radial-gradient(circle, var(--glow), transparent 60%);
}

.hero-tree {
  position: absolute; z-index: 2; right: -7vw; bottom: 0;
  width: min(60vw, 880px); height: 96%;
  pointer-events: none; will-change: transform;
}
/* A soft wash of the page colour between the tree and the words, so branches
   fade where they pass behind the text but stay clear on the open side. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 88%, transparent) 30%,
    color-mix(in srgb, var(--bg) 55%, transparent) 46%,
    transparent 62%);
}
.hero-title, .hero-sub, .hero .eyebrow { text-shadow: 0 0 28px var(--bg), 0 0 12px var(--bg); }
.hero-tree canvas, .contact-tree canvas { display: block; width: 100%; height: 100%; }
/* the sway moves the finished canvas as one GPU layer, so nothing redraws */
.hero-tree canvas, .contact-tree canvas { transform-origin: 50% 100%; animation: sway 11s ease-in-out infinite; will-change: transform; }
@keyframes sway { 0%,100% { transform: rotate(-0.6deg); } 50% { transform: rotate(0.7deg); } }


.hero-inner {
  position: relative; z-index: 3; width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 var(--gutter);
}
.hero-title {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(46px, 8.4vw, 124px); line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 32px; max-width: 12ch;
}
.hero-title em { font-size: 1.06em; letter-spacing: -0.01em; color: var(--fg); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span {
  display: inline-block; transform: translateY(110%);
  animation: rise 1.3s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: .25s; }
.hero-title .line:nth-child(2) > span { animation-delay: .4s; }
.hero-title .line:nth-child(3) > span { animation-delay: .55s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub { max-width: 46ch; color: var(--fg-2); font-size: clamp(16px, 1.4vw, 19px); margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--fg); border-radius: 2px; animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track {
  display: flex; gap: 40px; width: max-content; align-items: center;
  animation: marquee 38s linear infinite;
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); white-space: nowrap; color: var(--fg-2);
}
.marquee-track i { font-style: normal; font-size: 0.45em; color: var(--mist-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Meaning ---------- */
.meaning { background: var(--inv-bg); color: var(--inv-fg); padding: clamp(90px, 13vw, 170px) 0; }
.meaning .eyebrow, .meaning-word .phon { color: var(--inv-muted); }
.meaning-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.meaning-word .word {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(64px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.02em;
}
.meaning-word .phon { display: block; margin-top: 18px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist-2); }
.meaning-copy .lead { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; margin: 0 0 20px; letter-spacing: -0.01em; }
.meaning-copy .lead em { font-size: 1.15em; }
.meaning-copy p { margin: 0; color: var(--inv-text); max-width: 46ch; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(48px, 7vw, 90px); }
.section-title {
  margin: 0; font-weight: 300; font-size: clamp(40px, 6vw, 84px);
  line-height: 1; letter-spacing: -0.03em;
}
.section-title em { font-size: 1.06em; color: var(--moss); }

/* ---------- Work ---------- */
.work { padding: clamp(100px, 14vw, 180px) 0 clamp(70px, 10vw, 120px); }
.project {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (min-width: 961px) { .project-media { position: sticky; top: 110px; } }
.project-media {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: var(--shadow);
}
.project-media img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.project-media:hover img { transform: scale(1.04); }
.project-visit {
  position: absolute; right: 18px; bottom: 18px;
  background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease);
}
.project-media:hover .project-visit, .project-media:focus-visible .project-visit { opacity: 1; transform: none; }

.project-meta { display: flex; gap: 18px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-2); margin-bottom: 18px; }
.project-meta span:first-child { color: var(--fg); }
.project-title { margin: 0 0 8px; font-weight: 400; font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -0.03em; line-height: 1; }
.project-tag { margin: 0 0 22px; color: var(--moss); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; }
.project-body > p:not(.project-tag) { color: var(--fg-2); margin: 0 0 22px; }
.project-points { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--line); }
.project-points li { padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-2); position: relative; }
.project-points li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 1px; background: var(--moss); }
.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mist); }
.link-arrow { display: inline-flex; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .3s, gap .4s var(--ease); }
.link-arrow:hover { border-color: var(--fg); gap: 12px; }

.project-next {
  margin-top: clamp(60px, 9vw, 110px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.project-next::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); z-index: 0;
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.project-next > * { position: relative; z-index: 1; transition: color .5s var(--ease), transform .6s var(--ease); }
.project-next:hover::before { transform: scaleY(1); }
.project-next:hover > * { color: var(--bg); }
.project-next:hover .next-title { transform: translateX(16px); }
.project-next:hover .next-arrow { transform: rotate(-45deg); }
.next-num { font-size: 12px; letter-spacing: 0.16em; color: var(--mist-2); padding-left: 8px; }
.next-title { font-size: clamp(26px, 4vw, 54px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
.next-arrow { font-size: clamp(26px, 3.5vw, 44px); padding-right: 8px; }

/* Bracketed text you still need to fill in (remove the class once it's real) */
.todo { background: var(--todo-bg); outline: 1px dashed var(--todo-line); outline-offset: 3px; border-radius: 3px; }


/* ---------- About ---------- */
.about { padding: clamp(100px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-photo { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; color: var(--fg); }
.about-ph { position: absolute; inset: 6.4%; border-radius: 50%; overflow: hidden; background: var(--bg-3); }
.about-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 4% 42%; transition: transform 1.4s var(--ease); }
.about-photo:hover .about-ph img { transform: scale(1.04); }
.about-branch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.about-branch .ring { stroke-opacity: 0.22; }
/* the branch draws itself in when the section scrolls into view */
.about-branch .br { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) 0.3s; }
.about-branch .tw { transition-duration: 0.9s; transition-delay: 1.2s; }
.about-branch .buds circle { opacity: 0; transition: opacity 0.9s var(--ease) 1.8s; }
.about-photo.in .br { stroke-dashoffset: 0; }
.about-photo.in .buds circle { opacity: var(--o, 1); }
.about-copy .section-title { margin-bottom: 30px; }
.about-lead { font-size: clamp(20px, 2vw, 25px); line-height: 1.45; margin: 0 0 20px; letter-spacing: -0.01em; }
.about-copy > p:not(.eyebrow):not(.about-lead) { color: var(--mist); margin: 0 0 36px; max-width: 52ch; }
.about-facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.about-facts div { padding: 18px 16px 0 0; }
.about-facts dt { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-2); margin-bottom: 6px; }
.about-facts dd { margin: 0; font-size: 15px; }

/* ---------- Services ---------- */
.services { padding: clamp(70px, 10vw, 140px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service {
  padding: 36px 28px 44px 0; border-right: 1px solid var(--line); position: relative;
}
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service-layer {
  display: block; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--moss); margin-bottom: 54px;
}
.service h3 { margin: 0 0 12px; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.service p { margin: 0; color: var(--mist); font-size: 15.5px; }
.service::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.service:hover::after { transform: scaleX(1); }

/* ---------- Process ---------- */
.process { padding: clamp(100px, 14vw, 180px) 0; position: relative; }
.process .container { position: relative; }
.steps { list-style: none; margin: 0; padding: 0 0 0 clamp(40px, 7vw, 96px); display: grid; gap: clamp(36px, 5vw, 60px); }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: baseline; max-width: 760px; }
.step-num { font-family: var(--serif); font-size: 22px; color: var(--mist-2); }
.step h3 { margin: 0 0 6px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; }
.step p { margin: 0; color: var(--mist); max-width: 52ch; }
.process-line {
  position: absolute; left: calc(var(--gutter) + 6px); top: calc(clamp(48px, 7vw, 90px) + 130px); bottom: 0;
  width: 1px; background: var(--line);
}
.process-line span { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--fg); transition: height .2s linear; }
.process-line span::after {
  content: ""; position: absolute; bottom: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--fg); box-shadow: 0 0 18px 4px var(--dot-glow);
}

/* ---------- Promises ---------- */
.promises { padding: clamp(70px, 10vw, 120px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 64px); }
.promise-big { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(56px, 7vw, 100px); line-height: 1; margin-bottom: 14px; }
.promise p { margin: 0; color: var(--mist); max-width: 30ch; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 190px) 0 clamp(110px, 14vw, 190px); }
.contact-tree { position: absolute; left: 22%; bottom: 0; transform: translateX(-50%); width: min(90vw, 900px); height: 100%; opacity: 0.14; pointer-events: none; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-intro { position: sticky; top: 120px; }
.contact-title { margin: 0 0 22px; font-weight: 300; font-size: clamp(50px, 7.4vw, 112px); letter-spacing: -0.04em; line-height: 0.95; }
.contact-title em { font-size: 1.05em; color: var(--moss); }
.contact-sub { color: var(--fg-2); max-width: 40ch; margin: 0 0 28px; }
.contact-alt { margin: 0; color: var(--mist); font-size: 15px; }
.contact-alt a { color: var(--fg); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .3s; overflow-wrap: anywhere; }
.contact-alt a:hover { border-color: var(--fg); }

/* ---------- Enquiry form ---------- */
.enquiry {
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 3.4vw, 44px);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-body { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--fg-2); padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { color: var(--mist-2); font-weight: 400; margin-left: 6px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field textarea::placeholder { color: var(--mist-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px var(--todo-bg); }
.field-error { display: none; font-size: 13px; color: var(--err); }
.field.invalid input:not([type="checkbox"]):not([type="radio"]), .field.invalid textarea { border-color: var(--err); }
.field.invalid .field-error { display: block; }

.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-pick label { position: relative; cursor: pointer; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.chips-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips-pick span {
  display: inline-block; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--fg-2); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chips-pick label:hover span { border-color: var(--fg); }
.chips-pick input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips-pick input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }

.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-submit { border: 0; cursor: pointer; font-family: inherit; }
.form-submit[disabled] { opacity: 0.6; cursor: progress; }
.form-submit.sending .arrow { animation: nudge 0.9s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.form-status { margin: 0; font-size: 14px; color: var(--mist); }
.form-status.error { color: var(--err); }
.form-status a { text-decoration: underline; }

.form-sent { text-align: center; padding: clamp(30px, 5vw, 60px) 10px; outline: none; }
.form-sent svg { width: 54px; height: 54px; color: var(--moss); margin: 0 auto 22px; display: block; }
.form-sent h3 { margin: 0 0 10px; font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; }
.form-sent p { margin: 0 auto; color: var(--mist); max-width: 36ch; }
.form-sent:not([hidden]) { animation: sentIn .9s var(--ease) both; }
.form-sent:not([hidden]) svg { animation: sentTree 1.4s var(--ease) .1s both; }
@keyframes sentIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes sentTree { from { opacity: 0; transform: scale(0.6) translateY(10px); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--mist-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand-word { color: var(--fg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(0.75s + var(--rd, 0s)); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .meaning-grid, .project, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .contact-tree { left: 50%; }
  .about-photo { max-width: 280px; justify-self: center; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .promise-grid { grid-template-columns: 1fr; }
  .hero-tree { right: -26vw; width: 100vw; opacity: 0.5; }
  .hero::after {
    background: linear-gradient(180deg,
      transparent 0%,
      color-mix(in srgb, var(--bg) 70%, transparent) 22%,
      color-mix(in srgb, var(--bg) 80%, transparent) 72%,
      color-mix(in srgb, var(--bg) 40%, transparent) 100%);
  }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; z-index: 2; }
  .theme-toggle { z-index: 2; margin-left: 0; margin-right: 6px; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--bg); font-size: 28px; font-family: var(--serif);
    opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-cta { font-family: var(--sans); font-size: 16px; padding: 14px 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .about-photo { max-width: 240px; }
  .service, .service + .service { padding: 30px 0 34px; border-right: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .service-layer { margin-bottom: 24px; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .step-num { font-size: 18px; }
  .steps { padding-left: 28px; }
  .process-line { left: var(--gutter); }
  .project-next { grid-template-columns: 1fr auto; }
  .next-num { display: none; }
  .hero-tree { right: -42vw; width: 130vw; height: 80%; opacity: 0.4; }
  .scroll-cue { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
