/* ==========================================================================
   Orange Pine Studios — landing page
   Concept: old-growth craft. Dark pine, cream type, one ember accent.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  --pine:      #22281E;  /* page base */
  --well:      #1A1F17;  /* footer, recesses */
  --moss:      #3A4032;  /* panels, surfaces */
  --ember:     #C75B24;  /* primary accent — spend once per viewport */
  --ember-hi:  #D9682C;  /* ember hover */
  --resin:     #E5A83D;  /* micro accent: focus, underlines */
  --cream:     #F3EFE4;  /* primary text */
  --sage:      #A9AC9C;  /* secondary text */
  --hairline:  rgba(243, 239, 228, 0.14);
  --hairline-soft: rgba(243, 239, 228, 0.09);
  --raise:     #2C3226;  /* raised surface: moss 42% over pine — one step above the page */
  --ghost:     rgba(243, 239, 228, 0.035);  /* gutter marginalia whisper tone */

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(64px, 8vw, 104px);
}

/* ---------- Reset / base ---------- */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  /* NOTE (Session 5): no overflow-x guard needed — the gutter marginalia are
     calc-clamped and cannot overflow. Verification tip: headless Chrome clamps
     its viewport to a 500px minimum, so "mobile" screenshots must be captured
     at width 500; smaller window sizes clip the paint and fake an overflow. */
}

body {
  margin: 0;
  background: var(--pine);
  color: var(--cream);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

::selection { background: var(--ember); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--resin);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Film grain — material, not decoration; sits over everything, never intercepts */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Light rig: one warm source above the column (fixed, so it reads as a constant
   lamp while content scrolls). Depends on body background propagation — if html
   ever gets its own background, this layer vanishes. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    1100px 780px at 50% 6%,
    rgba(229, 168, 61, 0.05),
    rgba(229, 168, 61, 0.02) 42%,
    transparent 70%
  );
}

@media (min-width: 1200px) {
  body::before {
    background:
      radial-gradient(
        1100px 780px at 50% 6%,
        rgba(229, 168, 61, 0.05),
        rgba(229, 168, 61, 0.02) 42%,
        transparent 70%
      ),
      linear-gradient(
        90deg,
        rgba(12, 15, 10, 0.55) 0%,
        rgba(12, 15, 10, 0.2) 9%,
        transparent 22%,
        transparent 78%,
        rgba(12, 15, 10, 0.2) 91%,
        rgba(12, 15, 10, 0.55) 100%
      );
  }
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

/* The bar is its own element: solid well-green, ember keyline above, hairline below.
   Sticky, so it stays in view while the photo begins right beneath it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--well);
  border-top: 3px solid var(--ember);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%; /* circular crop: the medallion sits cleanly on any dark surface */
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav a {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 430;
  letter-spacing: 0.01em;
  color: rgba(243, 239, 228, 0.82);
  text-decoration: none;
  padding-block: 6px;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--resin);
  font-style: italic;
}

.site-nav a[aria-current="page"] {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: large photo, title right under it ---------- */

.hero {
  position: relative;
}

.hero-photo {
  position: relative;
  margin: 0;
  height: clamp(220px, 42svh, 480px);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ease the photo into the page and ground the overlapping headline */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(34, 40, 30, 0) 0%,
    rgba(34, 40, 30, 0) 42%,
    rgba(34, 40, 30, 0.22) 68%,
    rgba(34, 40, 30, 0.75) 90%,
    var(--pine) 100%
  );
}

.hero-title {
  position: relative;
  z-index: 2;
  margin-top: clamp(-96px, -7vw, -40px);
  max-width: 820px;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.hero-title h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 350;
  letter-spacing: -0.015em;
}

.hero-sub {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--sage);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(22px, 2.4vw, 30px);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-pad);
  border-top: 0;
}

/* Section rule becomes a rule of light: brightest under the lamp, dissolving into the sides */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(243, 239, 228, 0) 0%,
    rgba(243, 239, 228, 0.05) 14%,
    rgba(243, 239, 228, 0.13) 50%,
    rgba(243, 239, 228, 0.05) 86%,
    rgba(243, 239, 228, 0) 100%
  );
}

.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* Column rails: at >=1200px the content column is bounded by two faint vertical
   hairlines — the gutters become ruled plate margins. Everything raised sits
   inside the rules; all marginalia outside them. */
@media (min-width: 1200px) {
  .section::after,
  .site-footer::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: max(0px, calc((100% - var(--wrap)) / 2));
    right: max(0px, calc((100% - var(--wrap)) / 2));
    border-left: 1px solid var(--hairline-soft);
    border-right: 1px solid var(--hairline-soft);
    pointer-events: none;
  }
}

/* ---------- Manifesto ---------- */

.manifesto-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.manifesto-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 56px);
}

.manifesto-cols p {
  max-width: 58ch;
  color: var(--sage);
  font-size: 17px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--hairline-soft);
}

.facts div {
  display: flex;
  flex-direction: column;
}

.facts dt {
  order: 2;
  font-size: 13px;
  color: var(--sage);
}

.facts dd {
  order: 1;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 350;
}

/* ---------- Services: editorial index, not cards ---------- */

/* One quiet surface keeps the editorial rows together without a raised slab. */
.service-index {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--raise);
  border: 1px solid rgba(243, 239, 228, 0.10);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: none;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  position: relative;
  padding: clamp(28px, 3.4vw, 42px) clamp(24px, 3.4vw, 44px);
  border-top: 1px solid var(--hairline-soft);
  transition: background 0.25s ease;
}

.service-row:first-child { border-top: 0; }

.service-row:hover { background: rgba(243, 239, 228, 0.035); }

/* Resin tick: the hovered entry's bookmark ribbon */
.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 30%;
  bottom: 30%;
  width: 2px;
  background: var(--resin);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-row:hover::after { opacity: 0.9; }

.service-row h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 380;
}

.service-row p {
  max-width: 56ch;
  color: var(--sage);
  font-size: 16px;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.work-item-wide  { grid-column: span 7; }
.work-item-narrow {
  grid-column: span 5;
  margin-top: clamp(40px, 6vw, 88px); /* deliberate stagger */
}

/* A fine mat preserves the image edge without a heavy frame. */
.work-media {
  display: block;
  overflow: hidden;
  position: relative;
  padding: 4px;
  background: var(--well);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  box-shadow: 0 12px 28px -20px rgba(10, 13, 8, 0.4);
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.5s ease;
}

.work-item-wide  .work-media img { aspect-ratio: 16 / 10; }
.work-item-narrow .work-media img { aspect-ratio: 4 / 5; }

.work-media img {
  width: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.78);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.work-item:hover .work-media img {
  transform: scale(1.025);
  filter: saturate(0.95) brightness(0.92);
}

/* The plate's top edge catches the lamp; overlay sits over the img so the
   inset light isn't painted underneath it */
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(243, 239, 228, 0.09),
    inset 0 0 0 1px rgba(243, 239, 228, 0.05);
}

.work-item:hover .work-media,
.work-media:focus-visible {
  transform: translateY(-2px);
  border-color: var(--hairline);
  box-shadow: 0 16px 32px -20px rgba(10, 13, 8, 0.45);
}

/* Captions sit directly below the image, aligned to its edge. */
.work-caption {
  position: relative;
  margin: 0;
  padding: 22px 0 0;
}

.work-caption h3 {
  font-size: 24px;
  font-weight: 400;
}

.work-caption p {
  margin-top: 8px;
  max-width: 48ch;
  color: var(--sage);
  font-size: 15px;
}

.work-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--sage);
  opacity: 1;
}

.work-note {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: 15px;
  font-style: italic;
  font-family: var(--serif);
  color: var(--sage);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.about-photo {
  grid-column: 1 / 6;
  margin: 0;
  position: relative;
  overflow: hidden;
  padding: 4px;
  background: var(--well);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
  box-shadow: 0 12px 28px -20px rgba(10, 13, 8, 0.4);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(243, 239, 228, 0.08),
    inset 0 0 0 1px rgba(243, 239, 228, 0.05);
}

.about-photo img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
}

.about-body {
  grid-column: 7 / 13;
  padding-block: 8px;
}

.about-body h2 { margin-bottom: clamp(24px, 3vw, 36px); }

.about-body p {
  max-width: 54ch;
  color: var(--sage);
  font-size: 17px;
}

.about-body p + p { margin-top: 1.2em; }

.about-team { color: var(--cream); }

/* ---------- Contact ---------- */

.contact h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  max-width: 12ch;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.contact-sub {
  max-width: 40ch;
  color: var(--sage);
  font-size: 17px;
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-intro   { grid-column: 1 / 6; }
/* A restrained tonal surface distinguishes the form from the page. */
.contact-formwrap {
  grid-column: 6 / 13;
  background: var(--raise);
  border: 1px solid rgba(243, 239, 228, 0.12);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 12px 28px -22px rgba(10, 13, 8, 0.3);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 32px);
}

.field { margin: 0 0 26px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 228, 0.28);
  border-radius: 0;
  color: var(--cream);
  font: 400 17px/1.55 var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:hover,
.field textarea:hover {
  border-bottom-color: rgba(243, 239, 228, 0.5);
}

/* Focus: the underline warms to resin and doubles in weight */
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--resin);
  box-shadow: 0 1px 0 var(--resin);
}

.field.invalid input,
.field.invalid textarea {
  border-bottom-color: var(--ember-hi);
}

.field.invalid label { color: var(--ember-hi); }

/* Honeypot: present in markup, absent from human experience */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile { margin: 4px 0 28px; }

.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.form-status {
  font-size: 14px;
  color: var(--sage);
}

.form-status.is-error { color: var(--ember-hi); }

.form-success-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 380;
  margin: 0 0 10px;
}

.form-success p {
  color: var(--sage);
  max-width: 44ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Crisp color and a quiet edge replace the physical bevel. */
.btn-ember {
  background: var(--ember);
  color: var(--cream);
}

.btn-ember:hover {
  background: var(--ember-hi);
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.btn-ghost {
  border-color: rgba(243, 239, 228, 0.35);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(243, 239, 228, 0.06);
}

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--well);
  border-top: 0;
  padding-block: clamp(40px, 5vw, 56px) 28px;
}

/* The step down into the well gets the same dissolving light rule */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(243, 239, 228, 0) 0%,
    rgba(243, 239, 228, 0.05) 14%,
    rgba(243, 239, 228, 0.12) 50%,
    rgba(243, 239, 228, 0.05) 86%,
    rgba(243, 239, 228, 0) 100%
  );
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner .brand-name { font-size: 17px; }

.footer-inner .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--sage);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--cream); }

.footer-line {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
}

.footer-line p {
  font-size: 13px;
  color: var(--sage);
  opacity: 1;
}

/* ---------- Motion: one orchestrated entrance, then stillness ---------- */

@keyframes settle {
  from { transform: scale(1.045); filter: brightness(0.85) saturate(0.9); }
  to   { transform: scale(1);     filter: brightness(1) saturate(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.is-loaded .hero-photo img  { animation: settle 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

body.is-loaded .site-header     { animation: rise 0.7s ease-out 0.1s both; }
body.is-loaded .hero-title h1   { animation: rise 0.8s ease-out 0.45s both; }
body.is-loaded .hero-sub        { animation: rise 0.8s ease-out 0.65s both; }
body.is-loaded .hero-actions    { animation: rise 0.8s ease-out 0.8s both; }

/* ---------- Marginalia (Session 5) ---------- */

/* Decorative margin elements belong only to their wide-screen layouts. */
.gutter-word, .gutter-branch, .manifesto-mark { display: none; }

/* Ghost words: one oversized Fraunces word per section, alternating sides,
   vertical like page-edge folios; the left one reads bottom-up. */
@media (min-width: 1400px) {
  .gutter-word {
    display: block;
    position: absolute;
    top: clamp(76px, 9vw, 128px);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: min(112px, calc((100vw - var(--wrap)) / 2 - 52px));
    line-height: 1.1;
    letter-spacing: 0.05em;
    writing-mode: vertical-rl;
    white-space: nowrap;
    color: var(--ghost);
    pointer-events: none;
    user-select: none;
  }

  .gutter-word--right { right: clamp(14px, 2vw, 52px); }

  .gutter-word--left {
    left: clamp(14px, 2vw, 52px);
    transform: rotate(180deg);
  }
}

/* Pine branch: hand-drawn line art, two placements only, mirrored. */
@media (min-width: 1400px) {
  .gutter-branch {
    display: block;
    position: absolute;
    width: min(124px, calc((100vw - var(--wrap)) / 2 - 28px));
    height: 400px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 380' fill='none' stroke='%23F3EFE4' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M86 10C78 70 68 140 60 210C54 265 48 315 42 368'/%3E%3Cpath d='M80 48C64 52 44 58 26 72'/%3E%3Cpath d='M80 48C88 60 96 70 108 84'/%3E%3Cpath d='M74 96C58 102 40 108 20 124'/%3E%3Cpath d='M74 96C82 108 90 120 102 134'/%3E%3Cpath d='M68 144C52 150 34 156 14 172'/%3E%3Cpath d='M68 144C76 156 84 168 96 182'/%3E%3Cpath d='M62 192C46 198 28 204 10 220'/%3E%3Cpath d='M62 192C70 204 78 216 88 230'/%3E%3Cpath d='M56 240C42 248 28 258 14 276'/%3E%3Cpath d='M56 240C63 252 70 262 78 276'/%3E%3Cpath d='M51 288C39 296 28 306 16 324'/%3E%3Cpath d='M51 288C57 300 63 310 70 324'/%3E%3Cpath d='M46 334C36 342 28 352 18 368'/%3E%3Cpath d='M46 334C52 344 57 354 63 366'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.13;
    pointer-events: none;
  }

  .gutter-branch--left {
    left: clamp(10px, 1.4vw, 44px);
    bottom: clamp(64px, 8vw, 110px);
  }

  .gutter-branch--right {
    right: clamp(10px, 1.4vw, 44px);
    top: clamp(96px, 12vw, 170px);
    transform: scaleX(-1);
  }
}

/* Manifesto full stop: an oversized Fraunces period sealing the epigraph,
   hung in the left inner margin. */
@media (min-width: 1200px) {
  .manifesto .wrap { position: relative; }

  .manifesto-mark {
    display: block;
    position: absolute;
    left: clamp(-60px, -3.6vw, -16px);
    top: -0.42em;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(150px, 13vw, 230px);
    line-height: 1;
    color: var(--ghost);
    pointer-events: none;
    user-select: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 96px; /* bar height (92) + keyline borders (4) */
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--well);
    border-bottom: 1px solid var(--hairline-soft);
  }

  body.nav-open .site-nav { display: flex; }

  .site-nav a {
    padding: 18px var(--gutter);
    border-top: 1px solid var(--hairline-soft);
    font-size: 20px;
  }

  .site-nav a:hover { text-decoration: none; }

  .work-item-wide,
  .work-item-narrow {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .about-photo,
  .about-body { grid-column: 1 / -1; }

  .about-photo { max-width: 520px; }

  .contact-intro,
  .contact-formwrap { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-photo { height: clamp(180px, 32svh, 300px); }

  .hero-title { margin-top: -48px; }

  .facts { grid-template-columns: 1fr 1fr; }

  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@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;
  }
}
