/* ==========================================================================
   Dovetail Web Studio — styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --charcoal: #2E2C31;
  --ink: #2E2C31;
  --ink-soft: #57535C;
  --cream: #F6F3EE;
  --cream-deep: #EDE7DD;
  --paper: #FBF9F5;
  --gold: #E8B04B;
  --gold-soft: #F1CD86;
  --terra: #C98670;
  --link: #B56E57;          /* large text / accents only (3.5:1 on cream) */
  --terra-ink: #9A5A45;     /* small text on cream (4.8:1) */
  --panel: #1E1D22;
  --panel-2: #29272D;
  --on-panel: #EDE8E0;
  --on-panel-soft: #B5AFA6;
  --line: rgba(46, 44, 49, .14);
  --line-strong: rgba(46, 44, 49, .28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale (~1.25 mobile → ~1.333 desktop) */
  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .16vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + .7vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.25rem);
  --step-5: clamp(2.85rem, 1.7rem + 5.4vw, 6.25rem);

  /* 8px rhythm */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4rem; --s-7: 6rem;
  --section: clamp(5rem, 3.2rem + 7vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1200px;

  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-1: 0 1px 2px rgba(30, 29, 34, .06), 0 4px 14px rgba(30, 29, 34, .06);
  --shadow-2: 0 2px 4px rgba(30, 29, 34, .06), 0 18px 40px -12px rgba(30, 29, 34, .22);

  /* Dovetail edge: wide tails, narrow pins, flaring away from the panel */
  --dt-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='10'%3E%3Cpath d='M12 0H52L49 10H15Z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terra-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  font-optical-sizing: auto;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--gold); }
.on-dark .form :focus-visible { outline-color: var(--charcoal); }

.skip {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--cream); padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: var(--s-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: .6rem; line-height: 1.5;
  font-size: var(--step--1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 14px; height: 10px; flex: none; margin-top: .38em;
  background: var(--terra);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}
.on-dark .eyebrow { color: var(--on-panel-soft); }
.on-dark .eyebrow::before { background: var(--gold); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head h2 { font-size: var(--step-4); margin-top: var(--s-3); }
.section-head h2 em { font-style: italic; color: var(--link); }
.section-head p { margin-top: var(--s-3); font-size: var(--step-1); color: var(--ink-soft); max-width: 38rem; line-height: 1.55; }

/* Buttons */
.btn {
  --bg: var(--charcoal); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.5rem;
  background: var(--bg); color: var(--fg);
  font: 500 var(--step-0)/1.2 var(--font-body); letter-spacing: .005em;
  text-decoration: none; border: 1.5px solid var(--bg); border-radius: 999px;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
/* Dovetail hover: a tail slides up from below to fill the button */
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--gold);
  clip-path: polygon(30% 100%, 70% 100%, 76% 100%, 24% 100%);
  transition: clip-path .5s var(--ease-out);
}
.btn:hover::before { clip-path: polygon(-30% -10%, 130% -10%, 106% 100%, -6% 100%); }
.btn-primary:hover { --fg: var(--charcoal); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-ghost::before { background: var(--charcoal); }
.btn-ghost:hover { --fg: var(--cream); border-color: var(--charcoal); }
.btn-gold { --bg: var(--gold); --fg: var(--charcoal); }
.btn-gold::before { background: var(--cream); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  height: 84px; transition: height .35s var(--ease);
}
.site-header.is-condensed {
  background: rgba(246, 243, 238, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-condensed .wrap { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 46px; height: auto; transition: transform .5s var(--ease-out); }
.brand:hover svg { transform: translateX(2px) rotate(-3deg); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; letter-spacing: -.02em; }
.brand-name span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-top: .28rem; }

.nav { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 1.75px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 40;
  background: var(--cream);
  padding: 104px var(--gutter) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-5);
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s .45s;
}
.menu-open .drawer { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.drawer ul { display: grid; }
.drawer li a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-2) 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.drawer li a small { font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-soft); letter-spacing: .08em; }
.drawer .btn { width: 100%; }
.drawer-meta { font-size: var(--step--1); color: var(--ink-soft); margin-top: auto; }
.drawer-meta a { color: var(--ink); }

@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
  .nav a:not(.btn) {
    position: relative; color: var(--ink); text-decoration: none; font-size: .98rem; font-weight: 450;
  }
  .nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
    background: var(--terra); transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease-out);
  }
  .nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-toggle, .drawer { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 1rem + 3vw, 4rem); padding-bottom: var(--section); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-5); align-items: center; }
.hero h1 { font-size: var(--step-5); margin-top: var(--s-3); font-weight: 380; line-height: .98; letter-spacing: -.035em; }
.hero h1 em { font-style: italic; font-weight: 340; color: var(--link); }
.hero-price {
  margin-top: var(--s-3);
  font-family: var(--font-display); font-size: var(--step-2); font-style: italic; font-weight: 400;
  display: flex; align-items: center; gap: .75rem;
}
.hero-price::before { content: ""; width: 2.25rem; height: 1.5px; background: var(--charcoal); flex: none; }
.hero-lede { margin-top: var(--s-3); font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s-4); }
@media (max-width: 479px) { .hero-ctas .btn { flex: 1 1 100%; } }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: var(--s-5);
  font-size: var(--step--1); color: var(--ink-soft);
}
.hero-facts li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-facts li::before { content: ""; width: 10px; height: 7px; background: var(--terra); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }

.hero-art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.joint { width: 100%; height: auto; overflow: visible; }
.joint .grid line { stroke: var(--charcoal); stroke-opacity: .07; stroke-width: 1; }
.joint .scribe { stroke: var(--charcoal); stroke-opacity: .38; stroke-width: 1; stroke-dasharray: 3 5; }
.joint .note { font: 500 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-soft); }
.joint .note-serif { font: italic 400 15px var(--font-display); letter-spacing: 0; text-transform: none; fill: var(--charcoal); fill-opacity: .55; }
.joint .board-edge { fill: none; stroke: var(--charcoal); stroke-width: 1.4; stroke-linejoin: round; }
.joint .grain path { fill: none; stroke-width: 1.1; stroke-linecap: round; }
.joint .seam { fill: none; stroke: var(--gold-soft); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }

/* --lift = height of the tails board above the pins board (0 = seated).
   Registered so it can be animated smoothly; scroll writes it inline. */
@property --lift { syntax: "<number>"; inherits: true; initial-value: 0; }
.jt-pins, .jt-tails, .jt-shadow { transform-box: fill-box; transform-origin: 50% 50%; }
.jt-tails {
  transform: translate(calc(var(--lift) * 9px), calc(var(--lift) * -28px)) scale(calc(1 + var(--lift) * .022));
}
.jt-shadow {
  transform: translate(calc(var(--lift) * 14px), calc(var(--lift) * 16px)) scale(calc(1 + var(--lift) * .01));
  opacity: calc(.08 + var(--lift) * .15);
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-6); }
  .hero-art { max-width: none; margin-right: calc(var(--gutter) * -.5); }
}

/* Load assembly (only when motion allowed + JS present) */
@media (prefers-reduced-motion: no-preference) {
  .js .joint { animation: assemble 2.1s .35s backwards; }
  .js .jt-pins { animation: pins-in 1s var(--ease-out) .1s backwards; }
  .js .jt-tails-fade { animation: fade-in .5s var(--ease) .35s backwards; }
  .js .seam { animation: seam-flash 1.2s var(--ease) 1.98s backwards; }
  .js .jt-notes { animation: fade-in 1s var(--ease) 2.3s backwards; }
}
@keyframes pins-in {
  from { transform: translateY(34px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
/* A dovetail can only assemble perpendicular to its face: the tails board is lowered
   toward the page, hovers just above alignment, presses home, and rebounds once. */
@keyframes assemble {
  0% { --lift: 4.2; animation-timing-function: cubic-bezier(.2, .75, .3, 1); }
  55% { --lift: .9; animation-timing-function: cubic-bezier(.55, 0, .85, .35); }
  78% { --lift: 0; animation-timing-function: cubic-bezier(.3, .6, .5, 1); }
  87% { --lift: .12; animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
  100% { --lift: 0; }
}
@keyframes seam-flash {
  0% { stroke-dashoffset: 1; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; gap: var(--s-5); --p: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1.5px;
  background: var(--line);
}
.steps::after { background: var(--charcoal); transform: scaleY(var(--p)); transform-origin: top; }
.step { position: relative; padding-left: 72px; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); border: 1.5px solid var(--charcoal);
  font: 500 .95rem var(--font-display); font-variant-numeric: lining-nums;
  transition: background-color .4s, color .4s;
}
.step.is-reached .step-num { background: var(--charcoal); color: var(--cream); }
.step h3 { font-size: var(--step-2); line-height: 1.15; margin-top: .45rem; }
.step p { margin-top: var(--s-2); color: var(--ink-soft); max-width: 30rem; }
.step-tag {
  display: inline-block; margin-top: var(--s-2); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--terra-ink);
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .steps::before, .steps::after { left: 22px; right: calc((100% - 2 * var(--s-5)) / 3 - 22px); top: 21px; bottom: auto; width: auto; height: 1.5px; }
  .steps::after { transform: scaleX(var(--p)); transform-origin: left; }
  .step { padding-left: 0; padding-top: 76px; }
}

/* ---------- Why (dark) ---------- */
.dark {
  background: var(--panel); color: var(--on-panel);
  position: relative;
}
.dt-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px;
  background: var(--panel);
  -webkit-mask: var(--dt-edge) 50% 0 / 64px 10px repeat-x;
  mask: var(--dt-edge) 50% 0 / 64px 10px repeat-x;
}
.dark h2 { color: #fff; }
.dark .section-head h2 em { color: var(--gold); }
.dark .section-head p { color: var(--on-panel-soft); }
.why-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border-block: 1px solid rgba(255, 255, 255, .1); }
.why-item { background: var(--panel); padding: var(--s-4) 0; display: grid; gap: var(--s-2); align-content: start; }
.why-item .num { font: italic 400 var(--step-1) var(--font-display); color: var(--gold); }
.why-item h3 { font-size: var(--step-2); color: #fff; line-height: 1.15; }
.why-item p { color: var(--on-panel-soft); max-width: 26rem; }
@media (min-width: 720px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); border: 0; background: rgba(255, 255, 255, .1); }
  .why-item { padding: var(--s-5) var(--s-4) var(--s-5) 0; }
  .why-item:nth-child(even) { padding-left: var(--s-4); }
}
@media (min-width: 1100px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .why-item, .why-item:nth-child(even) { padding: var(--s-2) var(--s-4) var(--s-2) var(--s-4); }
  .why-item:first-child { padding-left: 0; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: var(--s-3); align-items: start; }
.price-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.price-card::after {
  content: ""; position: absolute; top: 0; right: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  width: 46px; height: 30px; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}
.price-label { font-size: var(--step--1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.price {
  display: flex; align-items: flex-start; gap: .1em; margin-top: var(--s-2);
  font-family: var(--font-display); font-weight: 350; line-height: .9; letter-spacing: -.045em;
  font-size: clamp(5rem, 3.5rem + 7vw, 8.5rem);
}
.price sup { font-size: .38em; margin-top: .22em; letter-spacing: 0; font-weight: 400; }
.price-terms { margin-top: var(--s-3); font-size: var(--step-1); line-height: 1.5; max-width: 30rem; }
.price-terms strong { font-weight: 500; }
.price-terms .save {
  display: inline-block; margin-left: .25rem; padding: .05rem .55rem; border-radius: 999px;
  background: rgba(232, 176, 75, .28); font-size: .82em; font-weight: 500; white-space: nowrap;
}
.includes { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.includes li, .tick-list li { display: flex; gap: .85rem; align-items: baseline; }
.includes li::before, .tick-list li::before {
  content: ""; flex: none; width: 12px; height: 8px; transform: translateY(-1px);
  background: var(--terra); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}
.price-card .btn { margin-top: var(--s-4); width: 100%; }

.side-stack { display: grid; gap: var(--s-3); }
.mini-card {
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.mini-card h3 { font-size: var(--step-2); }
.mini-card .sub { margin-top: .35rem; color: var(--ink-soft); font-size: var(--step--1); }
.row-list { margin-top: var(--s-3); display: grid; }
.row-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2);
  padding: .85rem 0; border-top: 1px solid var(--line);
}
.row-list li:last-child { padding-bottom: 0; }
.row-list b { font-family: var(--font-display); font-weight: 450; font-size: var(--step-1); white-space: nowrap; }
.care { background: var(--charcoal); color: var(--on-panel); border-color: var(--charcoal); }
.care h3 { color: #fff; }
.care .sub { color: var(--on-panel-soft); }
.care-price { display: flex; align-items: baseline; gap: .35rem; margin-top: var(--s-3); font-family: var(--font-display); color: var(--gold); }
.care-price b { font-size: var(--step-4); font-weight: 350; letter-spacing: -.03em; line-height: 1; }
.care-price span { color: var(--on-panel-soft); font-family: var(--font-body); font-size: var(--step--1); }
.fine { margin-top: var(--s-4); font-size: var(--step--1); color: var(--ink-soft); display: flex; gap: .6rem; align-items: baseline; }
.fine::before { content: ""; flex: none; width: 10px; height: 7px; background: var(--charcoal); opacity: .5; clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: 1.25fr 1fr; gap: var(--s-4); }
}

/* ---------- Work ---------- */
.work { background: var(--cream-deep); }
.work-grid { display: grid; gap: var(--s-4); }
.work-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.work-body { padding: var(--s-4) clamp(1.5rem, 1rem + 1vw, 2rem) clamp(1.5rem, 1rem + 1vw, 2rem); display: grid; gap: .5rem; flex: 1; align-content: start; }
.work-meta { font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.work-body h3 { font-size: var(--step-2); line-height: 1.15; }
.work-body p { color: var(--ink-soft); }
.work-link {
  margin-top: var(--s-2); justify-self: start; display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 500; color: var(--ink); text-decoration: none;
}
.work-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.work-link .arrow { transition: transform .35s var(--ease-out); }
.work-card:hover .work-link .arrow { transform: translate(3px, -3px); }
.work-card:focus-within { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.work-link:focus-visible { outline: none; }

/* Browser mock */
.mock { background: #E4DED4; padding: 14px 14px 0; }
.mock-window { background: #fff; border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 -1px 0 rgba(0,0,0,.04), 0 8px 24px -10px rgba(30,29,34,.25); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F3F0EB; border-bottom: 1px solid rgba(0,0,0,.06); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D5CEC3; }
.mock-bar span { margin-left: 10px; flex: 1; height: 14px; border-radius: 7px; background: #fff; font: 500 8.5px/14px var(--font-body); color: #9A948B; padding-left: 8px; overflow: hidden; white-space: nowrap; }
.mock-page { height: 212px; position: relative; overflow: hidden; }
.mk-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
.mk-logo { font: 600 10px var(--font-display); letter-spacing: -.01em; }
.mk-links { display: flex; gap: 6px; }
.mk-links i { width: 18px; height: 4px; border-radius: 2px; background: currentColor; opacity: .3; }
.mk-line { height: 7px; border-radius: 4px; background: currentColor; opacity: .16; margin-top: 6px; }

.mock-pine { background: #EEF2EA; color: #1F3A2B; }
.mock-pine .mk-hero { margin: 4px 14px 0; padding: 16px 14px; border-radius: 8px; background: linear-gradient(135deg, #2D5A3D, #1F3A2B); color: #EAF1E4; position: relative; overflow: hidden; }
.mock-pine .mk-hero::after { content: ""; position: absolute; right: -14px; bottom: -22px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #7FA36B, #4E7A50); opacity: .55; }
.mock-pine .mk-h { font: 500 15px/1.05 var(--font-display); max-width: 60%; }
.mock-pine .mk-cta { display: inline-block; margin-top: 10px; padding: 4px 9px; border-radius: 99px; background: #C7DD8F; color: #1F3A2B; font: 600 7.5px var(--font-body); }
.mock-pine .mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 14px; }
.mock-pine .mk-tiles div { height: 46px; border-radius: 6px; background: #fff; border: 1px solid #D9E2D2; padding: 7px; }
.mock-pine .mk-tiles b { display: block; width: 12px; height: 12px; border-radius: 4px; background: #A8C580; }
.mock-pine .mk-stars { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 2px; }
.mock-pine .mk-stars i { width: 7px; height: 7px; background: #D9A93E; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

.mock-luna { background: #FBF1EE; color: #5A3440; }
.mock-luna .mk-logo { font-style: italic; font-weight: 500; font-size: 11px; }
.mock-luna .mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 14px 0; }
.mock-luna .mk-h { font: italic 400 15px/1.05 var(--font-display); }
.mock-luna .mk-cta { display: inline-block; margin-top: 10px; padding: 4px 9px; border-radius: 99px; background: #5A3440; color: #FBF1EE; font: 600 7.5px var(--font-body); }
.mock-luna .mk-photo { height: 74px; border-radius: 40px 40px 8px 8px; background: radial-gradient(circle at 30% 30%, #F6D3CB, #E4A9A0 60%, #C98B8E); }
.mock-luna .mk-menu { margin: 12px 14px 0; padding: 8px 10px; background: #fff; border-radius: 8px; border: 1px solid #F0DCD6; }
.mock-luna .mk-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font: 500 7.5px var(--font-body); }
.mock-luna .mk-row + .mk-row { border-top: 1px dashed #F0DCD6; }
.mock-luna .mk-row i { width: 18px; height: 5px; border-radius: 3px; background: #5A3440; opacity: .35; }

.work-card.next { background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.work-card.next:hover { border-color: var(--charcoal); background: var(--paper); }
.next-art { height: 240px; display: grid; place-items: center; border-bottom: 1.5px dashed var(--line-strong); }
.next-art svg { width: 150px; }
.next-art .slot { fill: none; stroke: var(--charcoal); stroke-width: 1.5; stroke-dasharray: 4 5; stroke-opacity: .5; }
.next-art .tailpiece { fill: var(--gold); stroke: var(--charcoal); stroke-width: 1.5; transition: transform .7s var(--ease-out); }
.work-card.next:hover .tailpiece { transform: translateY(14px); }

@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s-5); align-items: center; }
.about-photo { position: relative; max-width: 440px; width: 100%; }
.about-photo::before {
  content: ""; position: absolute; inset: 9% -6% -6% 9%;
  background: var(--gold); border-radius: var(--radius-lg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64% 100%, 60% 92%, 40% 92%, 36% 100%, 0 100%);
}
.about-photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius-lg); filter: saturate(.92) contrast(1.02);
}
.about-copy h2 { font-size: var(--step-4); margin-top: var(--s-3); }
.about-copy h2 em { font-style: italic; color: var(--link); }
.about-copy p { margin-top: var(--s-3); font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 34rem; }
.about-copy .tick-list { margin-top: var(--s-4); display: grid; gap: .7rem; }
.sig { margin-top: var(--s-4); font: italic 400 var(--step-2) var(--font-display); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: .85fr 1.15fr; gap: var(--s-7); }
}

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; gap: var(--s-4); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: 1.4rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, border-color .3s; }
.faq-list summary .pm::before, .faq-list summary .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: currentColor; transition: transform .4s var(--ease-out);
}
.faq-list summary .pm::after { transform: rotate(90deg); }
.faq-list details[open] summary .pm { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.faq-list details[open] summary .pm::after { transform: rotate(0deg); }
.faq-list summary:hover .pm { border-color: var(--charcoal); }
.faq-list .answer { padding: 0 3.5rem 1.6rem 0; color: var(--ink-soft); max-width: 40rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] .answer { animation: faq-open .45s var(--ease-out); }
}
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-7); }
  .faq-grid .section-head { position: sticky; top: 110px; align-self: start; }
}

/* ---------- Contact (dark) ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
.contact-copy h2 { font-size: var(--step-4); margin-top: var(--s-3); color: #fff; }
.contact-copy h2 em { font-style: italic; color: var(--gold); }
.contact-copy p { margin-top: var(--s-3); color: var(--on-panel-soft); font-size: var(--step-1); max-width: 30rem; line-height: 1.55; }
.contact-copy .btn { margin-top: var(--s-4); }
.contact-lines { margin-top: var(--s-5); display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.12); }
.contact-lines dt { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--on-panel-soft); }
.contact-lines dd { margin: .25rem 0 0; overflow-wrap: anywhere; font-family: var(--font-display); font-size: var(--step-2); color: #fff; line-height: 1.25; }
.contact-lines dd a { color: #fff; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease-out); }
.contact-lines dd a:hover { background-size: 100% 1.5px; }
.contact-lines dd.small { font-family: var(--font-body); font-size: var(--step-0); color: var(--on-panel); line-height: 1.55; }

.form {
  background: var(--cream); color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); display: grid; gap: var(--s-3);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.form h3 { font-size: var(--step-2); }
.form-row { display: grid; gap: var(--s-3); }
.field { display: grid; gap: .45rem; }
.field label { font-size: var(--step--1); font-weight: 500; color: var(--ink); }
.field label span { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .8rem .95rem; min-height: 50px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(46,44,49,.5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); background: #fff; box-shadow: 0 0 0 3px rgba(232,176,75,.45); }
.form .btn { width: 100%; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); text-align: center; }
.hp { display: none; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .95fr 1.05fr; gap: var(--s-7); align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); color: var(--on-panel-soft); padding: var(--s-6) 0 var(--s-4); font-size: var(--step--1); }
.footer-top { display: grid; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--on-panel-soft); }
.footer-word {
  font-family: var(--font-display); font-weight: 350; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(3.25rem, 1.5rem + 9vw, 9rem); color: #fff; margin-top: var(--s-4);
}
.footer-word em { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; }
.footer-links a { color: var(--on-panel); text-decoration: none; font-size: var(--step-0); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding-top: var(--s-4); }
.footer-bottom a { color: var(--on-panel); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Thanks page ---------- */
.thanks { min-height: calc(100vh - 84px); display: grid; align-items: center; padding-block: var(--s-6); }
.thanks-inner { max-width: 40rem; }
.thanks h1 { font-size: var(--step-5); margin-top: var(--s-3); font-weight: 380; letter-spacing: -.035em; }
.thanks h1 em { font-style: italic; color: var(--link); }
.thanks p { margin-top: var(--s-3); font-size: var(--step-1); color: var(--ink-soft); }
.thanks .hero-ctas { margin-top: var(--s-4); }
.thanks-joint { width: 120px; margin-bottom: var(--s-4); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease) calc(var(--d, 0) * 90ms), transform 1s var(--ease-out) calc(var(--d, 0) * 90ms);
}


/* ---------- Reduced motion: opacity-only, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; }
  .js [data-reveal].is-in { transform: none; transition: opacity .4s ease calc(var(--d, 0) * 70ms); }

  /* Joint: seated from the start; tails fade onto it, then the seam traces */
  .joint { --lift: 0 !important; }
  .js .jt-pins { animation: fade-in .4s ease .1s backwards; }
  .js .jt-tails-fade { animation: fade-in .6s ease .35s backwards; }
  .js .seam { animation: seam-flash 1.2s var(--ease) 1s backwards; }
  .js .jt-notes { animation: fade-in .6s ease 1.6s backwards; }

  /* Process line fades in (full length) once the first step is revealed */
  .steps { --p: 1 !important; }
  .js .steps::after { opacity: 0; transition: opacity .6s ease .2s; }
  .js .steps:has(.step.is-in)::after { opacity: 1; }

  /* No movement on hover or menu open */
  .btn, .btn:hover, .btn:hover .arrow, .work-card:hover, .work-card:hover .work-link .arrow,
  .brand:hover svg, .work-card.next:hover .tailpiece, .drawer { transform: none; }

  /* Only colour/opacity may transition: hover wipes, underlines, FAQ +/- rotation and
     header shrink change instantly instead of moving */
  *, *::before, *::after {
    transition-property: opacity, color, background-color, border-color, box-shadow, outline-color !important;
  }
}
