/* ==========================================================================
   Calley Collins — Copy Editing & Proofreading
   Editorial identity: forest, parchment, terracotta, ink & muted gold.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --forest: #193B35;
  --forest-deep: #12302A;
  --forest-ink: #0E241F;
  --paper: #F7F2E9;
  --paper-light: #FFFCF6;
  --parchment: #EFE5D3;
  --terracotta: #D87965;
  --terracotta-light: #EC9784;
  --terracotta-text: #A44731;   /* AA on paper for small text */
  --terracotta-display: #C05C47; /* large display text on paper */
  --ink: #252A27;
  --ink-soft: #4B524D;
  --gold: #D4B878;
  --gold-deep: #85672A;         /* AA on paper for small text */
  --worm: #7BA567;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1320px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 1px 0 rgba(25, 59, 53, .06), 0 28px 60px -32px rgba(25, 59, 53, .45);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--terracotta); color: var(--forest-ink); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--paper);
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section { padding-block: clamp(5rem, 10vw, 9.5rem); }

/* ---------- Shared typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: 1.4rem;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow__rule { width: 2.5rem; height: 1px; background: currentColor; opacity: .7; }
.eyebrow__mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1;
}

.section-title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.022em;
  color: var(--forest);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}
.section-title em {
  color: var(--terracotta-display);
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.55rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 3px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--btn-shadow); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--btn-shadow); }
.btn--lg { padding: 1.15rem 1.85rem; font-size: 1rem; }

.btn--coral { background: var(--terracotta); color: var(--forest-ink); }
.btn--coral:hover { background: var(--terracotta-light); }

.btn--ghost-light { border-color: rgba(247, 242, 233, .45); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); border-color: var(--paper); color: var(--forest); }

.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow, .service__cta:hover .btn__arrow { transform: translateX(4px); }
.btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: var(--paper);
  padding-block: 1.35rem;
  transition: background-color .45s var(--ease), padding .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease);
}
.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-header.is-scrolled {
  background: rgba(247, 242, 233, .94);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  color: var(--forest);
  padding-block: .8rem;
  box-shadow: 0 1px 0 rgba(25, 59, 53, .12), 0 12px 30px -24px rgba(25, 59, 53, .5);
}

.brand { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.brand__tag {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .75;
}

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(1.5rem, 2.6vw, 2.6rem); }
.primary-nav a {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  padding-block: .4rem;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.btn--nav {
  padding: .72rem 1.2rem;
  font-size: .86rem;
  background: var(--terracotta);
  color: var(--forest-ink);
}
.site-header.is-scrolled .btn--nav { background: var(--forest); color: var(--paper); }
.site-header.is-scrolled .btn--nav:hover { --btn-shadow: var(--terracotta); }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: .7rem;
  padding: .55rem .2rem .55rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.menu-toggle__icon { position: relative; width: 26px; height: 12px; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease), width .4s var(--ease);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 10px; width: 70%; left: auto; }
.menu-open .menu-toggle__icon span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon span:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }
.menu-open .site-header { background: transparent; box-shadow: none; color: var(--paper); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 3rem;
  background: var(--forest) var(--grain);
  background-blend-mode: soft-light;
  color: var(--paper);
  overflow: hidden auto;
  opacity: 0;
  transform: translateY(-1.5rem);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__nav li { border-bottom: 1px solid rgba(247, 242, 233, .12); }
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: .85rem 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 330;
  line-height: 1.1;
  text-decoration: none;
  font-variation-settings: "SOFT" 50;
}
.mobile-menu__num { width: 2.6rem; font-size: 1rem; font-style: italic; color: var(--gold); }
.mobile-menu__foot { display: grid; gap: 1.25rem; justify-items: start; margin-top: 2.5rem; }
.mobile-menu__mail { font-size: .95rem; color: rgba(247, 242, 233, .8); }
.mobile-menu__worm { position: absolute; right: 1.5rem; bottom: -6px; width: 110px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(100svh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + clamp(2rem, 6vh, 4.5rem)) clamp(4.5rem, 9vh, 6.5rem);
  color: var(--paper);
  background:
    radial-gradient(60% 55% at 85% 18%, rgba(212, 184, 120, .13), transparent 70%),
    radial-gradient(55% 60% at 0% 100%, rgba(8, 24, 20, .55), transparent 70%),
    var(--forest);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: .07;
  pointer-events: none;
}
.hero__glyph {
  position: absolute;
  z-index: -1;
  left: 56%;
  top: 50%;
  translate: -50% -52%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(26rem, 46vw, 46rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 184, 120, .17);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(3.4rem, 1rem + 6.6vw, 8rem);
  line-height: .93;
  letter-spacing: -.028em;
  font-variation-settings: "SOFT" 60, "WONK" 0;
  margin-bottom: 2rem;
}
.hero__line { display: block; }
.hero__line--accent { position: relative; display: inline-block; padding-right: .08em; }
.hero__line--accent em {
  color: var(--terracotta-light);
  font-weight: 280;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero__swash {
  position: absolute;
  left: -.02em;
  bottom: -.2em;
  width: 104%;
  height: .32em;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.hero__swash path { stroke-dasharray: 340; stroke-dashoffset: 0; }
.js .hero__swash path { stroke-dashoffset: 340; transition: stroke-dashoffset 1.4s var(--ease) 1.05s; }
.js .hero__swash path + path { transition-delay: 1.55s; }
.js .is-loaded .hero__swash path { stroke-dashoffset: 0; }

.hero__lede {
  max-width: 33rem;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  line-height: 1.72;
  color: rgba(247, 242, 233, .84);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero__audience {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 0;
  margin-top: clamp(2.5rem, 5vh, 3.75rem);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(212, 184, 120, .92);
}
.hero__audience { gap: .7rem 1.6rem; }
.hero__audience span { display: inline-flex; align-items: center; gap: .7rem; }
.hero__audience span::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  background: var(--terracotta);
  transform: rotate(45deg);
}

/* Photo plate */
.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 450px;
  margin-top: 3rem;
}
.plate {
  position: relative;
  isolation: isolate;
  padding: 12px;
  background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 2px 0 rgba(0, 0, 0, .08);
}
.plate__frame {
  position: absolute;
  inset: 1.75rem -1.75rem -1.75rem 1.75rem;
  z-index: -1;
  border: 1px solid rgba(212, 184, 120, .55);
}
.plate__img {
  width: 100%;
  aspect-ratio: 612 / 850;
  object-fit: cover;
  background: #2a3b2f;
}
.plate__worm {
  --ww: 136px;
  position: absolute;
  z-index: 2;
  top: calc(var(--ww) * -.7985);
  right: 2.25rem;
  width: var(--ww);
  transform-origin: 50% 100%;
}
.js .plate__worm { transform: translateY(40px); opacity: 0; transition: transform .9s var(--ease) 1.4s, opacity .4s 1.4s; }
.js .is-loaded .plate__worm { transform: none; opacity: 1; }
.plate__caption {
  position: absolute;
  top: 50%;
  right: -2.9rem;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(212, 184, 120, .85);
}
.plate__caption span { opacity: .6; }

.margin-note {
  position: absolute;
  z-index: 3;
  left: -3.75rem;
  bottom: 2.75rem;
  width: 15.5rem;
  padding: 1.15rem 1.3rem 1.25rem;
  color: var(--ink);
  background-color: var(--paper-light);
  background-image: repeating-linear-gradient(transparent 0 25px, rgba(25, 59, 53, .08) 25px 26px);
  background-position: 0 14px;
  border-left: 3px solid var(--terracotta);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .55);
  rotate: -2.5deg;
}
.margin-note__mark {
  position: absolute;
  top: -.9rem;
  right: .9rem;
  font-family: var(--serif);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--terracotta);
}
.margin-note__label {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: .35rem;
}
.margin-note__text {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--forest);
  font-variation-settings: "SOFT" 50;
}
.margin-note__text em { color: var(--terracotta-text); font-variation-settings: "SOFT" 100, "WONK" 1; }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247, 242, 233, .72);
  transition: color .3s;
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll svg { width: 12px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--terracotta);
  color: var(--forest-ink);
  padding-block: 1rem;
  border-block: 1px solid rgba(14, 36, 31, .12);
}
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-weight: 380;
  white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.ticker i {
  display: inline-block;
  width: 7px; height: 7px;
  margin-inline: clamp(1.25rem, 2.5vw, 2.25rem);
  background: var(--forest);
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--paper); position: relative; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.about__visual {
  position: sticky;
  top: 7.5rem;
  padding-top: 1rem;
}
.about__block {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: min(82%, 520px);
  background: var(--forest) var(--grain);
  background-blend-mode: soft-light;
}
.snapshot {
  position: relative;
  z-index: 1;
  width: 80%;
  margin: 2.75rem 0 0 16%;
  padding: 14px 14px 3.6rem;
  background: var(--paper-light);
  box-shadow: 0 30px 60px -28px rgba(14, 36, 31, .55), 0 2px 0 rgba(14, 36, 31, .06);
  rotate: 2.2deg;
}
.snapshot img { width: 100%; aspect-ratio: 532 / 665; object-fit: cover; }
.snapshot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.snapshot__tape {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: 50%;
  width: 118px;
  height: 32px;
  translate: -50% 0;
  rotate: -4deg;
  background: rgba(212, 184, 120, .62);
  clip-path: polygon(2% 8%, 10% 0, 20% 9%, 32% 1%, 45% 8%, 58% 0, 70% 7%, 82% 0, 92% 8%, 100% 2%, 98% 92%, 88% 100%, 76% 92%, 64% 100%, 50% 93%, 38% 100%, 25% 92%, 12% 100%, 0 94%);
}
.about__aside {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .6rem;
  margin: 2.75rem 0 0 16%;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem);
  font-weight: 350;
  line-height: 1.2;
  color: var(--forest);
}
.about__aside em { color: var(--terracotta-text); font-variation-settings: "SOFT" 100, "WONK" 1; }

.about__copy { max-width: 41rem; padding-top: 1rem; }
.about__copy > p:not(.eyebrow):not(.signature) { color: var(--ink-soft); margin-bottom: 1.25rem; }
.about__copy strong { color: var(--forest); font-weight: 600; }
.about__copy .about__lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem);
  font-weight: 370;
  line-height: 1.32;
  color: var(--forest);
  font-variation-settings: "SOFT" 50;
  margin-bottom: 1.5rem;
}

/* Dictionary entry + bookworm */
.dict-wrap { position: relative; margin: clamp(10.5rem, 16vw, 13.5rem) 0 2.75rem; }
.dict-wrap__worm {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 3rem);
  bottom: calc(100% - 17px);
  width: clamp(200px, 21vw, 272px);
  transform-origin: 60% 100%;
}
.dict-wrap.is-visible .dict-wrap__worm { animation: wiggle 1.2s var(--ease) .5s both; }
@keyframes wiggle {
  0% { transform: translateY(18px) scale(.96); opacity: 0; }
  55% { transform: translateY(-4px) rotate(-1.5deg); opacity: 1; }
  80% { transform: rotate(1deg); }
  100% { transform: none; opacity: 1; }
}
.dict {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.3rem) clamp(1.5rem, 3.2vw, 2.6rem);
  background: var(--paper-light);
  border: 1px solid rgba(25, 59, 53, .16);
  box-shadow: var(--shadow-soft);
}
.dict::before {
  /* thumb-index tab */
  content: "C";
  position: absolute;
  top: 1.6rem;
  right: -2.15rem;
  width: 2.15rem;
  height: 3.3rem;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--forest);
  border-radius: 0 6px 6px 0;
}
.dict__headword dfn {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 620;
  letter-spacing: -.01em;
  color: var(--forest);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.dict__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .35rem 0 1.1rem; font-size: .95rem; }
.dict__pron { color: var(--ink-soft); }
.dict__pos { font-family: var(--serif); font-style: italic; color: var(--terracotta-text); }
.dict__senses { counter-reset: sense; display: grid; gap: .75rem; }
.dict__senses li {
  counter-increment: sense;
  position: relative;
  padding-left: 1.9rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  font-variation-settings: "SOFT" 30;
}
.dict__senses li::before {
  content: counter(sense) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--forest);
}
.dict__senses i { color: var(--terracotta-text); }
.dict__see {
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px dashed rgba(25, 59, 53, .22);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dict__see em {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--forest);
}

.signature {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--forest);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  rotate: -4deg;
  transform-origin: left;
}
.signature::before { content: "— "; color: var(--terracotta); font-weight: 200; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--paper);
  padding-top: 0;
}
.services > .container {
  border-top: 1px solid rgba(25, 59, 53, .14);
  padding-top: clamp(4.5rem, 9vw, 8rem);
}
.services__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.services__summary { max-width: 34rem; font-size: 1.1rem; color: var(--ink-soft); }
.services__summary strong { color: var(--forest); font-weight: 650; }

/* Specimen */
.specimen {
  position: relative;
  padding: 1.4rem clamp(1.25rem, 2.6vw, 1.9rem) 1.6rem;
  background: var(--paper-light);
  border: 1px solid rgba(25, 59, 53, .16);
  box-shadow: var(--shadow-soft);
}
.specimen__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.specimen__title { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; }
.specimen__hint { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.specimen__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 4px;
  background: rgba(25, 59, 53, .07);
}
.specimen__tabs button {
  padding: .62rem .5rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 3px;
  color: var(--ink-soft);
  transition: background-color .3s, color .3s;
}
.specimen__tabs button:hover { color: var(--forest); }
.specimen__tabs button[aria-selected="true"] { background: var(--forest); color: var(--paper); }

.specimen__page {
  position: relative;
  margin-top: 1.25rem;
  padding: .9rem 0 0 clamp(1.4rem, 3vw, 2.6rem);
  background-image: linear-gradient(90deg, transparent calc(clamp(1.4rem, 3vw, 2.6rem) - 12px), rgba(216, 121, 101, .45) calc(clamp(1.4rem, 3vw, 2.6rem) - 12px), rgba(216, 121, 101, .45) calc(clamp(1.4rem, 3vw, 2.6rem) - 11px), transparent calc(clamp(1.4rem, 3vw, 2.6rem) - 11px));
}
.specimen__text {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  line-height: 2.35;
  color: var(--ink);
  font-variation-settings: "SOFT" 40;
}
.fix { position: relative; white-space: nowrap; }
.fix del { text-decoration: none; transition: color .3s; }
.fix ins {
  position: absolute;
  left: 50%;
  bottom: 1.22em;
  translate: -50% 0;
  font-style: italic;
  font-size: .78em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  color: var(--terracotta-text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.specimen__hl { background: none; color: inherit; transition: background-size .5s var(--ease); background-image: linear-gradient(transparent 62%, rgba(212, 184, 120, .5) 62%, rgba(212, 184, 120, .5) 92%, transparent 92%); background-repeat: no-repeat; background-size: 0% 100%; }

.specimen__notes { display: grid; margin-top: 1rem; }
.specimen__note {
  grid-area: 1 / 1;
  padding: .85rem 1rem .95rem;
  border-left: 3px solid var(--ink-soft);
  background: rgba(37, 42, 39, .05);
  font-size: .93rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.specimen__note--proofread { border-color: var(--terracotta); background: rgba(216, 121, 101, .1); }
.specimen__note--copyedit { border-color: var(--gold); background: rgba(212, 184, 120, .18); }
.specimen__note-label { display: block; margin-bottom: .2rem; font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.specimen__note--proofread .specimen__note-label { color: var(--terracotta-text); }
.specimen__note--copyedit .specimen__note-label { color: var(--gold-deep); }
.specimen__note em { font-family: var(--serif); font-size: 1.04em; }

/* modes */
.specimen[data-mode="original"] [data-note="original"],
.specimen[data-mode="proofread"] [data-note="proofread"],
.specimen[data-mode="copyedit"] [data-note="copyedit"] { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }

.specimen[data-mode="proofread"] .fix del,
.specimen[data-mode="copyedit"] .fix del {
  color: rgba(37, 42, 39, .62);
  text-decoration: line-through;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
}
.specimen[data-mode="proofread"] .fix ins,
.specimen[data-mode="copyedit"] .fix ins { opacity: 1; transform: none; }
.specimen[data-mode="copyedit"] .specimen__hl { background-size: 100% 100%; }

/* Service cards */
.service-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.service {
  position: relative;
  padding: clamp(2rem, 3.6vw, 3.4rem);
}
.service--proof {
  margin-top: clamp(0rem, 6vw, 5rem);
  background: var(--paper-light);
  border: 1px solid rgba(25, 59, 53, .16);
  box-shadow: var(--shadow-soft);
}
.service--edit {
  color: var(--paper);
  background: var(--forest) var(--grain);
  background-blend-mode: soft-light;
  box-shadow: 0 50px 90px -45px rgba(14, 36, 31, .8);
}
.service__top {
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(25, 59, 53, .15);
}
.service--edit .service__top { border-color: rgba(247, 242, 233, .16); }
.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.8rem, 3rem + 2.4vw, 5.4rem);
  font-weight: 250;
  line-height: .78;
  color: var(--terracotta-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.service--edit .service__num { color: var(--gold); }
.service__kind { font-size: .76rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; padding-bottom: .2rem; }
.service__title {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 1.5rem + 1.7vw, 3.1rem);
  font-weight: 360;
  line-height: 1.04;
  letter-spacing: -.018em;
  color: var(--forest);
  font-variation-settings: "SOFT" 50;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.service--edit .service__title { color: var(--paper); }
.service__title em { color: var(--terracotta-light); font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1; }
.service__desc { color: var(--ink-soft); font-size: 1.04rem; }
.service--edit .service__desc { color: rgba(247, 242, 233, .82); }
.service__list-label {
  margin: 2rem 0 .95rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta-text);
}
.service--edit .service__list-label { color: var(--gold); }

.ticks li {
  position: relative;
  padding: .7rem 0 .7rem 2.1rem;
  border-top: 1px solid rgba(25, 59, 53, .1);
  line-height: 1.5;
}
.ticks li:last-child { border-bottom: 1px solid rgba(25, 59, 53, .1); }
.ticks li::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: 1.02rem;
  width: .45rem;
  height: .85rem;
  border-right: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: rotate(40deg);
}
.ticks--light li { border-color: rgba(247, 242, 233, .14) !important; color: rgba(247, 242, 233, .92); }
.ticks--light li::before { border-color: var(--gold); }

.stamp {
  position: absolute;
  top: clamp(1.4rem, 2.6vw, 2.2rem);
  right: clamp(1.4rem, 2.6vw, 2.2rem);
  width: 96px;
  height: 96px;
  color: var(--terracotta);
  rotate: -12deg;
}
.stamp svg { width: 100%; height: 100%; overflow: visible; animation: spin 40s linear infinite; }
.stamp circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.stamp circle + circle { stroke-dasharray: 2 4; }
.stamp text { font-family: var(--sans); font-size: 9.6px; font-weight: 700; letter-spacing: 2.6px; fill: var(--terracotta-text); }
.stamp__x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--terracotta-text);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.depth {
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid rgba(247, 242, 233, .16);
  background: rgba(255, 255, 255, .035);
}
.depth__label { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.depth__levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.depth__levels li {
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: .9rem .4rem .8rem;
  border: 1px solid rgba(247, 242, 233, .18);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-variation-settings: "SOFT" 50;
  transition: border-color .3s, background-color .3s;
}
.depth__levels li:hover { border-color: var(--gold); background: rgba(212, 184, 120, .08); }
.depth__bars { display: flex; gap: 4px; }
.depth__bars i { width: 18px; height: 5px; border-radius: 1px; background: rgba(247, 242, 233, .2); }
.depth__levels li:nth-child(1) i:nth-child(-n+1),
.depth__levels li:nth-child(2) i:nth-child(-n+2),
.depth__levels li:nth-child(3) i { background: var(--gold); }
.depth__text { margin-top: 1rem; font-size: .94rem; line-height: 1.6; color: rgba(247, 242, 233, .78); }

.service__note {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest);
}
.service__note::before {
  content: "";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: radial-gradient(circle at 50% 50%, currentColor 0 2.5px, transparent 3px);
}
.service--edit .service__note { color: var(--gold); }

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.6rem;
  padding-bottom: .35rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 1.5px solid var(--terracotta);
  transition: color .3s, gap .3s;
}
.service__cta:hover { color: var(--terracotta-text); }
.service__cta--coral {
  padding: 1rem 1.45rem;
  border: 0;
  border-radius: 3px;
  background: var(--terracotta);
  color: var(--forest-ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.service__cta--coral:hover { color: var(--forest-ink); background: var(--terracotta-light); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--gold); }

.services__help {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  color: var(--ink-soft);
  font-variation-settings: "SOFT" 100;
}
.services__help a { color: var(--terracotta-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.services__help a:hover { color: var(--forest); }

/* ==========================================================================
   Why — table of contents
   ========================================================================== */
.why { background: var(--parchment); position: relative; }
.why::before {
  /* deckled paper edge */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 14px;
  background: var(--paper);
  -webkit-mask: radial-gradient(10px 7px at 50% 0, #000 98%, transparent) 0 0 / 22px 14px repeat-x;
  mask: radial-gradient(10px 7px at 50% 0, #000 98%, transparent) 0 0 / 22px 14px repeat-x;
}
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: start;
}
.why__intro { position: sticky; top: 8rem; }
.why .section-title { font-size: clamp(2.5rem, 1.5rem + 3vw, 4.3rem); }
.why__lede { max-width: 27rem; font-size: 1.1rem; color: var(--ink-soft); }

.contents__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: .5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-variant-caps: all-small-caps;
  letter-spacing: .26em;
  color: var(--forest);
}
.contents__head::after { content: ""; flex: 1; height: 1px; background: rgba(25, 59, 53, .3); }

.contents__list li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 2.6rem;
  gap: 1rem;
  align-items: start;
  padding: 1.55rem 0;
  border-bottom: 1px solid rgba(25, 59, 53, .16);
}
.contents__num {
  padding-top: .15rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--terracotta-text);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  transition: transform .45s var(--ease);
}
.contents__body h3 {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--forest);
  font-variation-settings: "SOFT" 50;
}
.contents__body h3::after {
  content: "";
  flex: 1;
  min-width: 2rem;
  border-bottom: 2px dotted rgba(25, 59, 53, .28);
  transform: translateY(-.2em);
  transition: border-color .4s;
}
.contents__body p { margin-top: .45rem; max-width: 34rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.contents__mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--terracotta-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--ease);
}
.contents__list li:hover .contents__num { transform: translateX(5px); }
.contents__list li:hover h3::after { border-color: var(--terracotta); }
.contents__list li:hover .contents__mark svg { transform: rotate(-8deg) scale(1.08); }

/* ==========================================================================
   CTA / Contact
   ========================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
  color: var(--paper);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(212, 184, 120, .12), transparent 70%),
    var(--forest);
  border-top-left-radius: clamp(3rem, 12vw, 11rem);
}
.cta__grain { position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; pointer-events: none; }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.cta__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.cta__sun {
  position: absolute;
  top: 2%;
  left: 50%;
  width: 84%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E48C78, var(--terracotta) 60%, #C9664F);
  box-shadow: 0 0 0 14px var(--forest), 0 0 0 15px rgba(212, 184, 120, .55);
}
.cta__worm { position: relative; z-index: 2; width: 74%; margin-bottom: -6.5%; margin-left: -6%; }
.cta__books { position: relative; z-index: 1; width: 86%; filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .35)); }
.cta__art.is-visible .cta__worm { animation: wiggle 1.2s var(--ease) .35s both; }

.cta__title {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 1.5rem + 4.4vw, 6rem);
  font-weight: 320;
  line-height: .98;
  letter-spacing: -.026em;
  font-variation-settings: "SOFT" 60;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.cta__title em { color: var(--terracotta-light); font-weight: 280; font-variation-settings: "SOFT" 100, "WONK" 1; }
.cta__text { max-width: 34rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(247, 242, 233, .84); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.5rem 0 3rem; }

.cta__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(247, 242, 233, .16);
}
.cta__details dt { font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.cta__details dd { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-variation-settings: "SOFT" 50; }
.cta__details a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.cta__details a:hover { color: var(--terracotta-light); background-size: 100% 1px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-ink);
  color: rgba(247, 242, 233, .78);
  padding: clamp(4rem, 8vw, 6.5rem) 0 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid rgba(247, 242, 233, .12);
}
.footer__wordmark {
  font-family: var(--serif);
  font-size: clamp(3rem, 2rem + 3.6vw, 5.4rem);
  font-weight: 290;
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--paper);
  font-variation-settings: "SOFT" 60;
}
.footer__wordmark em { color: var(--terracotta-light); font-variation-settings: "SOFT" 100, "WONK" 1; }
.footer__tag { margin-top: 1rem; font-size: .68rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.footer__motto { margin-top: 1.4rem; max-width: 22rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.35; color: rgba(247, 242, 233, .9); font-variation-settings: "SOFT" 100; }
.footer__label { font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.15rem; padding-top: .6rem; }
.footer__col li { margin-bottom: .55rem; font-size: .95rem; }
.footer__col li span { color: rgba(247, 242, 233, .64); }
.footer__col a { text-decoration: none; overflow-wrap: anywhere; transition: color .3s; }
.footer__col a:hover { color: var(--terracotta-light); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  font-size: .84rem;
  color: rgba(247, 242, 233, .6);
}
.footer__human { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(212, 184, 120, .8); }
.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--paper);
  transition: color .3s;
}
.footer__top-link img { width: 46px; transition: transform .45s var(--ease); }
.footer__top-link:hover { color: var(--terracotta-light); }
.footer__top-link:hover img { transform: translateY(-4px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .margin-note { left: -2rem; }
  .plate__caption { display: none; }
}

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); }
  .hero__visual { max-width: 380px; }
  .margin-note { left: -1.75rem; width: 13.5rem; bottom: 2rem; }
  .margin-note__text { font-size: 1.18rem; }
  .hero__glyph { left: 50%; }
  .about__grid { gap: clamp(2.5rem, 5vw, 5rem); }
  .services__intro { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2.5rem; }
  .services__heading { max-width: 44rem; }
  .specimen { max-width: 46rem; }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .primary-nav, .btn--nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__scroll { display: none; }
  .hero { min-height: auto; }
  .service-cards { grid-template-columns: minmax(0, 1fr); }
  .service--proof { margin-top: 0; }
  .why__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .why__intro { position: static; max-width: 40rem; }
  .margin-note { left: -.9rem; width: 11.75rem; bottom: 1.5rem; padding: .95rem 1rem 1rem; }
  .margin-note__text { font-size: 1.08rem; }
}

@media (max-width: 767px) {
  .hero { padding-top: calc(var(--header-h) + 3rem); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .hero__copy { max-width: 40rem; }
  .hero__visual { justify-self: center; max-width: 420px; margin: 4rem auto 0; }
  .hero__glyph { top: 42%; left: 70%; }

  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__visual { position: relative; top: 0; max-width: 480px; }

  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .why__intro { position: static; }

  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__art { max-width: 340px; }

  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 1rem; }
  .site-header { padding-block: 1rem; }
  .brand__name { font-size: .98rem; letter-spacing: .16em; }
  .brand__tag { font-size: .54rem; letter-spacing: .24em; }
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: .75rem .25rem .75rem .75rem; }

  .hero { padding-top: calc(var(--header-h) + 2.25rem); padding-bottom: 4rem; }
  .hero__title { margin-bottom: 1.6rem; }
  .hero__actions { margin-top: 2rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__audience { font-size: .64rem; letter-spacing: .16em; }
  .hero__audience { gap: .55rem 1.1rem; }
  .hero__visual { max-width: none; width: 82%; margin: 4.5rem 0 0 auto; }
  .plate { padding: 9px; }
  .plate__frame { inset: 1.1rem -.9rem -1.1rem 1.1rem; }
  .plate__worm { --ww: 104px; right: 1.4rem; }
  .margin-note { left: -18%; bottom: 1.5rem; width: 12.5rem; padding: .95rem 1rem 1rem; }
  .margin-note__text { font-size: 1.12rem; }

  .about__visual { max-width: none; }
  .about__block { width: 78%; }
  .snapshot { width: 78%; margin-left: 14%; }
  .about__aside { margin-left: 14%; }
  .dict::before { right: -1.05rem; width: 1.05rem; height: 2.6rem; font-size: .8rem; border-radius: 0 4px 4px 0; }
  .dict-wrap { margin-right: 1.05rem; }

  .specimen__page { padding-left: 1.3rem; background-image: linear-gradient(90deg, transparent 0, rgba(216, 121, 101, .45) 0, rgba(216, 121, 101, .45) 1px, transparent 1px); }
  .specimen__tabs button { font-size: .76rem; padding: .62rem .2rem; }

  .stamp { width: 74px; height: 74px; }
  .stamp__x { font-size: 1.3rem; }
  .service__top { padding-right: 4.5rem; }
  .depth { padding: 1.1rem; }
  .depth__levels li { font-size: 1rem; }

  .contents__list li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .contents__body h3::after { display: none; }
  .contents__mark { display: none; }

  .cta { border-top-left-radius: 3.5rem; }
  .cta__actions .btn { flex: 1 1 100%; }
  .cta__details { flex-direction: column; gap: 1.25rem; }
  .cta__details dd { overflow-wrap: anywhere; }

  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.25rem 1.5rem; }
  .footer__top > :last-child { grid-column: 1 / -1; }
  .cta__art { max-width: 300px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 3.05rem; }
  .btn { padding-inline: 1.2rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .stamp svg { animation: none; }
  .hero__scroll svg { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .ticker, .hero__scroll, .hero__grain, .cta__grain { display: none !important; }
  .hero, .cta, .site-footer, .service--edit { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
