/* Divine Domain & Co. — mobile-first redesign concept (2026-11-16)
   Keeps her three brand fonts (Chloe, Pinyon Script, Karla) but gives each one a job
   and a minimum size so nothing thin or tiny carries information. */

@font-face {
  font-family: "Chloe";
  src: url("https://static.showit.co/file/8N5ZnXX44X6OW_RRW0gOQg/shared/chloe-regular.woff") format("woff");
  font-display: swap;
}

:root {
  /* her palette, measured from the live site */
  /* Page colour: her original site's warm greige (owner 2026-11-17: "Warm (her original)", measured on
     mydivinedomain.com). The names stay: --cream is the page, --linen the lighter panel. Until 2026-11-17 --cream was
     #FFF8F1 and --linen #EAE5DD. */
  --cream: #EAE5DD;
  --linen: #FFF9F0;      /* brand guide p.15 Cream (owner 2026-11-17: "Yes, match exactly"; was #FFF8F1) */
  --taupe: #B8A89A;      /* guide Beige (was #B9A89B). Lines and fills only: 1.8:1 on the page colour, never text */
  --charcoal: #221F20;   /* guide Charcoal (was #211F20). 13.0:1 on the page colour */
  /* added for readable text */
  --ink-2: #2E2A2B;      /* body text, 11.3:1 on the page colour */
  --muted: #4A4340;      /* small print, 7.7:1 on the page colour */
  --script: #6A5546;     /* script accents, 5.6:1 on the page colour */
  --on-dark-2: #DCCFC4;  /* secondary text on charcoal, 10.7:1 */
  --paper: #FFFFFF;      /* raised surfaces in the portal concept */

  --f-display: "Chloe", "Cormorant Garamond", Georgia, serif;
  --f-script: "Parisienne", "Pinyon Script", cursive;
  --f-body: "Karla", system-ui, sans-serif;

  --gutter: 24px;
  --section: 88px;
  --radius: 2px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font: 500 17px/1.65 var(--f-body);
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- type roles ---------- */
.display {               /* Chloe: headlines only, never smaller than 30px */
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0;
}
.display-xl { font-size: clamp(38px, 10.5vw, 64px); }
.display-l  { font-size: clamp(32px, 8.6vw, 48px); }
.display-m  { font-size: clamp(26px, 7vw, 34px); }

.script {                /* Pinyon: one flourish per section, 32px minimum */
  font-family: var(--f-script);
  color: var(--script);
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1;
  margin: 0 0 6px;
}
.label {                 /* Karla caps: 13px, medium, spaced — replaces the 9–10px light caps */
  font: 600 13px/1.3 var(--f-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.lede { font-size: 19px; line-height: 1.6; font-weight: 500; color: var(--ink-2); }
.small { font-size: 15px; font-weight: 500; color: var(--muted); }
p { margin: 0 0 1em; max-width: 34em; }

/* Chloe and Pinyon ship in one thin weight only; a fine stroke thickens the hairlines */
/* thicker on big headings so they carry as much weight as the 500-weight body text */
.display, .quote-big, .menu nav a { -webkit-text-stroke: 1px currentColor; }
.service-list h3, .rail h3, .projects h2, .steps li::before { -webkit-text-stroke: 0.8px currentColor; }
.brand span { -webkit-text-stroke: 0.6px currentColor; }
.script, .signature { -webkit-text-stroke: 0.3px currentColor; }

/* ---------- layout ---------- */
.wrap { padding: 0 var(--gutter); max-width: 720px; margin: 0 auto; }
.section { padding: var(--section) 0; }
.section-tight { padding: 56px 0; }
.bg-linen { background: var(--linen); }
.bg-dark { background: var(--charcoal); color: var(--linen); }
.bg-dark .display { color: var(--cream); }
.bg-dark .script { color: var(--on-dark-2); }
.bg-dark .label { color: var(--cream); }
.bg-dark p { color: var(--on-dark-2); }
.stack > * + * { margin-top: 20px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.rule { width: 48px; height: 1px; background: var(--taupe); border: 0; margin: 28px 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 var(--gutter);
  background: rgba(234, 229, 221, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(185, 168, 155, 0.35);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.brand img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0.15); }
.brand span {
  font-family: var(--f-display); font-size: 16px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--charcoal); white-space: nowrap;
}
.menu-btn {
  min-width: 48px; min-height: 48px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; color: var(--charcoal);
  font: 600 13px var(--f-body); letter-spacing: 0.16em; text-transform: uppercase;
}
.header-actions { display: flex; align-items: center; gap: 2px; }
.menu-btn.icon-only { padding: 0 12px; }
/* a small "&", as in her logo, so the name itself can be bigger */
.brand .amp { font-size: 0.6em; vertical-align: 0.15em; }
/* narrower phones: drop the little D, never the name (the header is the only place it
   appears). Sizes measured to keep a clear gap before Contact from 360px to 440px. */
@media (max-width: 399px) { .header .brand img { display: none; } }
@media (min-width: 375px) and (max-width: 399px), (min-width: 420px) { .header .brand span { font-size: 17px; } }
.menu-btn i { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor; }
.menu-btn i::before { top: -7px; } .menu-btn i::after { top: 7px; }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 100vh; height: 100lvh; /* reach under Safari's floating toolbar */
  overflow-y: auto;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) var(--gutter) calc(96px + env(safe-area-inset-bottom));
  transform: translateY(-100%); visibility: hidden;
  transition: transform .35s ease, visibility 0s .35s;
}
.menu.open { transform: none; visibility: visible; transition: transform .35s ease; }
/* keep the page from peeking out under Safari's floating toolbar while the menu is open */
.menu-open main, .menu-open .footer, .menu-open .dock { visibility: hidden; transition: visibility 0s .35s; }
.menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; margin-right: -12px; }
.menu nav { margin-top: 24px; flex: 1; }
.menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; text-decoration: none;
  font-family: var(--f-display); font-size: 30px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--charcoal); border-bottom: 1px solid rgba(185, 168, 155, 0.45);
}
.menu nav a::after { content: "→"; font-family: var(--f-body); font-size: 20px; color: var(--script); }
.menu nav a[aria-current="page"] { color: var(--script); }
.menu .contact-mini { margin-top: 28px; }
.menu .contact-mini a { display: block; min-height: 44px; line-height: 44px; text-decoration: none; font-size: 17px; }

/* ---------- buttons ---------- */
/* One refined style: a frosted-glass pill with a soft lift (echoes the outlined button
   on her current site, without the heavy black block). */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; min-width: 200px; padding: 0 34px;
  font: 600 13px/1 var(--f-body); letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; cursor: pointer; color: var(--charcoal);
  border: 1px solid rgba(33, 31, 32, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 248, 241, 0.55));
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),      /* top highlight: the glass edge */
    0 1px 2px rgba(33, 31, 32, 0.08),             /* contact shadow */
    0 10px 24px -12px rgba(33, 31, 32, 0.35);     /* soft lift */
  transition: transform .2s, box-shadow .2s, background .2s, opacity .25s, visibility .25s, scale 0.6s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(33, 31, 32, 0.12);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(33, 31, 32, 0.08), 0 14px 28px -12px rgba(33, 31, 32, 0.4); }
}
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 44px; min-width: 0; padding: 0 18px; letter-spacing: 0.18em; }
#topContact.away { opacity: 0; visibility: hidden; }
/* header Contact: no dark outline, just the faint glass edge. Looks 36px tall so it sits
   lightly in the header; the tap area stays 48px (Fitts: nothing under 44px). */
.header .btn {
  position: relative; min-height: 36px; padding: 0 14px; letter-spacing: 0.14em;
  border-color: rgba(33, 31, 32, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -8px rgba(33, 31, 32, 0.28);
}
.header .btn::before { content: ""; position: absolute; inset: -6px 0; }
.bg-dark .btn {
  color: var(--cream); border-color: rgba(255, 248, 241, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}
/* Secondary links: see-through pill with a faint raised edge; the words nudge now and then.
   The whole pill is the tap target. */
.text-link {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; min-height: 38px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1.2 var(--f-body); letter-spacing: 0.01em;
  color: var(--charcoal); text-decoration: none; cursor: pointer;
  background: transparent;
  border: 1px solid rgba(33, 31, 32, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 16px -12px rgba(33, 31, 32, 0.35);
  transition: transform .2s, box-shadow .2s, background .2s, scale 0.6s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.text-link > span { display: inline-block; animation: nudge 6s ease-in-out infinite; }
/* looks 38px tall, but the tap area stays 48px (Fitts: nothing under 44px) */
.text-link::before { content: ""; position: absolute; inset: -5px -4px; }
.text-link.back > span { animation-name: nudge-back; }
.text-link:active { transform: translateY(1px); background: rgba(33, 31, 32, 0.03); box-shadow: inset 0 1px 2px rgba(33, 31, 32, 0.08); }
@media (hover: hover) { .text-link:hover { background: rgba(255, 255, 255, 0.35); } }
@keyframes nudge { 0%, 80%, 100% { transform: translateX(0); } 87% { transform: translateX(3px); } 94% { transform: translateX(0); } }
@keyframes nudge-back { 0%, 80%, 100% { transform: translateX(0); } 87% { transform: translateX(-3px); } 94% { transform: translateX(0); } }
.bg-dark .text-link {
  color: var(--cream); border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -12px rgba(0, 0, 0, 0.8);
}
details.more summary .text-link { margin-top: 4px; }

/* ---------- sticky bottom CTA (one primary action, in the thumb zone) ---------- */
/* A tab that rises out of the bottom edge: rounded top, flat bottom sitting on the edge.
   On phones with a home bar it runs down under the bar and keeps its words above it. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 0 var(--gutter);
  pointer-events: none; /* only the tab takes taps */
  transform: translateY(calc(100% + 40px)); transition: transform .3s ease;
}
.dock .btn { pointer-events: auto; }
.dock.show { transform: none; }
.dock { text-align: center; }
.dock .btn {
  min-width: 240px; min-height: calc(54px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 22px 22px 0 0; border-bottom: 0;
  border-color: rgba(33, 31, 32, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 241, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 -10px 28px -14px rgba(33, 31, 32, 0.45);
}
/* keep the tab on the edge: no lift on hover or press, just a tint */
.dock .btn:hover, .dock .btn:active { transform: none; }
.dock .btn:active { background: linear-gradient(180deg, rgba(250, 244, 237, 0.98), rgba(240, 233, 225, 0.95)); }

/* ---------- hero ---------- */
/* The header carries the full name, so the home page opens straight on a photo. */
.hero { padding: 0; }
/* Two of her projects, joined on a slight angle. The join is a cream wedge: narrow on
   the left, opening to the right into a nook. Residential sits above the join, commercial
   below, and "interior design" in the nook. Percentages are of the hero's height. */
.hero-split { position: relative; aspect-ratio: 6 / 7; max-height: 82vh; background: var(--cream); overflow: hidden; }
.hero-split img { position: absolute; left: 0; width: 100%; height: 47%; object-fit: cover; }
.hs-top { top: 0; object-position: 50% 55%; clip-path: polygon(0 0, 100% 0, 100% 83%, 0 100%); }   /* bottom edge 47% → 39% */
.hs-bottom { bottom: 0; object-position: 50% 60%; clip-path: polygon(0 0, 100% 17%, 100% 100%, 0 100%); } /* top edge 53% → 61% */
.hs-words { margin: 0; }
.hs-words > span { position: absolute; }
.hs-res, .hs-com {
  left: 0; padding: 0 14px 0 var(--gutter); background: var(--cream);
  font: 600 12px/28px var(--f-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal);
}
.hs-res { bottom: 53%; border-top-right-radius: 14px; }
.hs-com { top: 53%; border-bottom-right-radius: 14px; }
.hs-amp { left: var(--gutter); top: 50%; transform: translateY(-50%); font: 26px/1 var(--f-script); color: var(--script); }
.hs-nook {
  right: var(--gutter); top: 50%; transform: translateY(-50%); width: 6.5em; text-align: right;
  font-family: var(--f-display); font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--charcoal);
  -webkit-text-stroke: 0.8px currentColor;
}
.hero-copy { padding: 40px var(--gutter) 0; }
.page-hero { padding: 48px 0 8px; }

/* ---------- cards / rows ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(185, 168, 155, 0.6); }
.service-list a {
  display: grid; grid-template-columns: 88px 1fr 20px; gap: 18px; align-items: center;
  padding: 20px 0; text-decoration: none; border-bottom: 1px solid rgba(185, 168, 155, 0.6);
  min-height: 112px;
}
.service-list img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; }
.service-list h3 { font: 400 24px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--charcoal); margin: 0 0 4px; }
.service-list p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.service-list .arrow { color: var(--script); font-size: 20px; }

/* swipe carousel (scroll-snap, no JS) */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail a { scroll-snap-align: start; text-decoration: none; }
.rail img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.rail h3 { font: 400 24px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--charcoal); margin: 14px 0 2px; }
.rail .small { margin: 0; }
.rail-hint { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* project list (portfolio) */
.projects { display: grid; gap: 56px; }
.projects a { text-decoration: none; display: block; }
.projects img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.projects .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; gap: 12px; }
.projects h2 { font: 400 28px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--charcoal); margin: 0; }

/* chips (filters + form choices) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* Chips: small glass pills like the buttons; a picked chip looks pressed in, with a check */
.chip {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(33, 31, 32, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 241, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(33, 31, 32, 0.06), 0 6px 14px -10px rgba(33, 31, 32, 0.35);
  font: 600 15px var(--f-body); color: var(--charcoal); cursor: pointer;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.chip[aria-pressed="true"], .chip:has(input:checked) {
  background: rgba(106, 85, 70, 0.14); border-color: rgba(106, 85, 70, 0.7);
  box-shadow: inset 0 1px 3px rgba(33, 31, 32, 0.16);
}
.chip[aria-pressed="true"]::before, .chip:has(input:checked)::before {
  content: "✓"; margin-right: 8px; font-weight: 700; color: var(--script);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
label.chip { display: inline-flex; align-items: center; position: relative; }

/* portrait */
.portrait { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 30%; }

/* quote */
.quote-big { font: 400 clamp(26px, 7.2vw, 36px)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--cream); margin: 0 0 24px; }
.signature { font-family: var(--f-script); font-size: 36px; color: var(--on-dark-2); margin: 8px 0 0; }
details.more summary { list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { display: none; }

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(185, 168, 155, 0.6); }
.steps li:last-child { border-bottom: 1px solid rgba(185, 168, 155, 0.6); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 24px/1.2 var(--f-display); color: var(--script); }
.steps h3 { font: 600 15px/1.3 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); margin: 2px 0 6px; }
.steps p { margin: 0; font-size: 16px; }

/* check list */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid rgba(185, 168, 155, 0.5); font-size: 17px; color: var(--charcoal); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 6px; border-left: 1.5px solid var(--script); border-bottom: 1.5px solid var(--script); transform: rotate(-45deg); }

/* accordion */
.acc details { border-bottom: 1px solid rgba(185, 168, 155, 0.6); }
.acc details:first-child { border-top: 1px solid rgba(185, 168, 155, 0.6); }
.acc summary {
  list-style: none; cursor: pointer; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font: 600 15px/1.35 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 26px var(--f-body); color: var(--script); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { padding-bottom: 20px; margin: 0; }

/* service detail blocks */
.svc { padding: 64px 0; border-top: 1px solid rgba(185, 168, 155, 0.6); }
.svc img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; margin-bottom: 28px; }
.svc .for { background: var(--linen); padding: 18px 20px; margin: 24px 0; }
.svc .for .label { display: block; margin-bottom: 6px; }
.svc .for p { margin: 0; font-size: 16px; }

/* ---------- form ---------- */
.step-meta { display: flex; justify-content: space-between; }
.field { margin-top: 26px; }
.field > label, .field > .label { display: block; margin-bottom: 10px; }
.opt { font-weight: 400; letter-spacing: 0.06em; color: var(--muted); text-transform: none; font-size: 14px; }
/* Fields: soft, slightly sunken off-white (the inverse of the raised glass buttons) */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 56px; padding: 14px 20px;
  font: 500 17px var(--f-body); color: var(--charcoal);
  background: linear-gradient(180deg, rgba(234, 229, 221, 0.55), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(33, 31, 32, 0.2); border-radius: 16px;
  box-shadow: inset 0 1px 3px rgba(33, 31, 32, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: rgba(74, 67, 64, 0.7); }
textarea { min-height: 128px; resize: vertical; }
input:focus, textarea:focus {
  outline: none; border-color: rgba(33, 31, 32, 0.5);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 3px rgba(33, 31, 32, 0.06), 0 0 0 4px rgba(106, 85, 70, 0.16);
}
.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible, label.chip:has(input:focus-visible) {
  outline: 2px solid var(--script); outline-offset: 3px;
}
.error { color: #8A2E1F; font-size: 15px; margin-top: 8px; }
.summary-box { background: var(--linen); padding: 20px; margin: 28px 0; }
.summary-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 16px; }
.summary-box dt { color: var(--muted); }
.summary-box dd { margin: 0; color: var(--charcoal); }

/* ---------- footer ---------- */
.footer { background: var(--linen); padding: 72px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer { position: relative; overflow: hidden; }
.footer .wrap { position: relative; z-index: 1; }
/* big monogram watermark, tilted, sitting low on the right behind the content */
.foot-watermark {
  position: absolute; z-index: 0; right: -70px; bottom: -50px;
  width: 360px; height: auto; transform: rotate(-12deg);
  filter: brightness(0); opacity: 0.06; pointer-events: none; user-select: none;
}
.footer .script { margin-bottom: 10px; } /* room for the script's descenders above the heading */
/* three quick actions: same see-through raised pill as the secondary links */
.foot-actions { display: flex; gap: 10px; margin: 32px 0 36px; }
.foot-actions a {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 12px; border-radius: 999px;
  font: 600 15px var(--f-body); color: var(--charcoal); text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(33, 31, 32, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px -12px rgba(33, 31, 32, 0.4);
  transition: transform .2s, box-shadow .2s;
}
.foot-actions a:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(33, 31, 32, 0.1); }
/* details: a calm two-column block, plain selectable text */
.foot-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin: 0; padding: 28px 0;
  border-top: 1px solid rgba(185, 168, 155, 0.7); border-bottom: 1px solid rgba(185, 168, 155, 0.7);
}
.foot-info > div { min-width: 0; }
.foot-info .wide { grid-column: 1 / -1; }
.foot-info dt { font: 600 12px/1.3 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot-info dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--charcoal); }
.foot-info dd a { color: inherit; text-decoration: none; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 20px 0 12px; }
.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; font: 500 16px var(--f-body); color: var(--charcoal); text-decoration: none; }
.fine { font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* optional extras on the contact form */
.extras { margin-top: 32px; border-top: 1px solid rgba(185, 168, 155, 0.6); border-bottom: 1px solid rgba(185, 168, 155, 0.6); }
.extras summary {
  list-style: none; cursor: pointer; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 600 16px var(--f-body); color: var(--charcoal);
}
.extras summary::-webkit-details-marker { display: none; }
.extras summary::after { content: "+"; font: 300 28px var(--f-body); color: var(--script); transition: transform .2s; }
.extras[open] summary::after { transform: rotate(45deg); }
.extras .field:last-child { margin-bottom: 28px; }

/* ---------- softer corners on contained photos (edge-to-edge photos stay square) ---------- */
.wrap img, .rail img { border-radius: 20px; }

/* ---------- featured projects: pinned, slides sideways while you scroll ---------- */
.hscroll { padding: 72px 0; }
.hscroll .wrap:first-child { margin-bottom: 24px; }
.hscroll-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.hscroll-progress { flex: 1; max-width: 140px; height: 2px; border-radius: 2px; background: rgba(185, 168, 155, 0.6); overflow: hidden; }
.hscroll-progress span { display: block; height: 100%; background: var(--charcoal); transform-origin: left; transform: scaleX(0); }
.hscroll.pinned { padding: 0; }
.hscroll.pinned .hscroll-pin {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hscroll.pinned .rail {
  display: flex; gap: 16px; width: max-content; overflow: visible;
  scroll-snap-type: none; will-change: transform;
}
.hscroll.pinned .rail a { flex: none; width: min(68vw, 34svh); }
.hscroll.pinned .hscroll-pin > .wrap { width: 100%; } /* flex column would shrink-centre them */
.hscroll.pinned .rail img { aspect-ratio: 4 / 5; }
/* Desktop with too few cards to slide (site.js leaves .pinned off): one still row instead of the phone carousel.
   It starts on the heading's left edge, its cards are the size of the sliding ones (a whole card fits the screen
   height), capped at 380 px so the 800 px photos stay sharp, and it scrolls sideways only if it cannot fit.
   Owner 2026-11-17: "Featured Projects SECTION LOOKS HORRBIE ON DESK TOP". */
@media (min-width: 768px) {
  .hscroll:not(.pinned) .rail {
    grid-auto-columns: minmax(220px, min(34svh, 380px)); justify-content: start;
    padding-left: max(var(--gutter), calc((100% - 720px) / 2 + var(--gutter)));
  }
  .hscroll:not(.pinned) .rail img { aspect-ratio: 4 / 5; }
  .hscroll:not(.pinned) .hscroll-progress { display: none; } /* nothing slides, so no progress line; the link moves left */
}

/* ---------- rows that arrive one at a time (class added by site.js) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- design notes page ---------- */
.fine a { color: inherit; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 0; }
.glance > div { min-width: 0; padding: 16px; border-radius: 16px; background: var(--linen); }
.glance dt { font-size: 14px; line-height: 1.35; color: var(--muted); margin-bottom: 8px; }
.glance dd { margin: 0; font: 600 19px/1.25 var(--f-body); color: var(--charcoal); }
.glance dd span { color: var(--script); font-weight: 500; }
.note-group { margin-top: 56px; }
.note-group > .label { margin: 0 0 12px; }
.note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(185, 168, 155, 0.6); }
.note-list li { padding: 20px 0; border-bottom: 1px solid rgba(185, 168, 155, 0.6); }
.note-list h3 { font: 600 17px/1.35 var(--f-body); color: var(--charcoal); margin: 0 0 6px; }
.note-list p { margin: 0 0 6px; font-size: 16px; line-height: 1.55; }
.note-list p:last-child { margin-bottom: 0; }
.note-list .why { color: var(--muted); font-size: 15px; }
.law {
  display: inline-block; margin: 4px 6px 0 0; padding: 1px 10px; border-radius: 999px;
  background: rgba(106, 85, 70, 0.1); color: var(--script);
  font: 600 12px/1.7 var(--f-body); letter-spacing: 0.03em; white-space: nowrap;
}

/* ===== Additions for build.html and the swipeable Featured rail (2026-11-16) ===== */

/* "Builder first" vs "Divine Domain first" cards (build.html) */
.compare { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-card { background: var(--linen); padding: 24px 22px; border-radius: 18px; }
.compare-card .label { display: block; margin-bottom: 8px; }
.compare-card-dark { background: var(--charcoal); }
.compare-card-dark .label { color: var(--cream); }
.compare-card-dark .ticks li { color: var(--cream); border-bottom-color: rgba(255, 255, 255, 0.18); }
.compare-card-dark .ticks li::before { border-color: var(--cream); }
.ticks-muted li { color: var(--muted); }

/* Featured rail: drag cursor while pinned; one bounce to the right at the end (site.js adds .nudge) */
.hscroll.pinned .rail { cursor: grab; touch-action: pan-y; }
.hscroll.pinned .rail.dragging { cursor: grabbing; }
.hscroll.pinned .rail.dragging a { pointer-events: none; }
.hscroll .rail.nudge { animation: rail-nudge .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes rail-nudge { 0%, 100% { translate: 0 0; } 35% { translate: 28px 0; } 65% { translate: -4px 0; } }

/* Home hero copy: lighter body with her script for the ampersand and Angel's name */
.hero-copy .lede { font-weight: 400; font-size: 18px; line-height: 1.65; }
.hero-copy .lede .amp {
  font: 1.6em/0 var(--f-script); color: var(--script); padding: 0 0.06em;
  vertical-align: -0.1em; -webkit-text-stroke: 0.3px currentColor;
}
.hero-by { margin: 4px 0 18px; font: 600 13px/1.3 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero-by .sig {
  display: block; margin-top: 2px; font: 34px/1.15 var(--f-script); letter-spacing: 0; text-transform: none;
  color: var(--script); -webkit-text-stroke: 0.3px currentColor;
}
.hero-more { font-weight: 400; font-size: 16px; color: var(--muted); }

/* ===== Client portal concept (portal.html) ===== */
/* On a phone the app fills the width as a rounded card; from 520px it sits in a phone frame. */
.portal-stage { padding: 8px var(--gutter) var(--section); }
.phone { max-width: 390px; margin: 0 auto; }
.app {
  position: relative; display: flex; flex-direction: column; height: min(760px, 86vh);
  background: var(--cream); border: 1px solid rgba(33, 31, 32, 0.16); border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(33, 31, 32, 0.45);
}
@media (min-width: 520px) {
  .phone { padding: 12px; background: var(--charcoal); border-radius: 52px; box-shadow: 0 40px 80px -36px rgba(33, 31, 32, 0.6); }
  .app { border: 0; border-radius: 40px; box-shadow: none; }
}
.app-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid rgba(185, 168, 155, 0.5);
}
.app-brand { font: 400 17px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--charcoal); -webkit-text-stroke: 0.6px currentColor; }
.app-brand .amp { font-size: 0.6em; vertical-align: 0.15em; }
.app-avatar {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: var(--linen); font: 600 14px var(--f-body); color: var(--charcoal);
}
.app-body { flex: 1; overflow-y: auto; padding: 18px 18px 28px; -webkit-overflow-scrolling: touch; }
.app-body p { max-width: none; }
.app-hello { font: 32px/1.1 var(--f-script); color: var(--script); margin: 4px 0 14px; -webkit-text-stroke: 0.3px currentColor; }
.app-h { font: 600 14px/1.3 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal); margin: 4px 0 6px; }
.app-sub { font-size: 15px; color: var(--muted); margin: 0 0 16px; }

.app-proj { background: var(--charcoal); color: var(--on-dark-2); border-radius: 20px; padding: 18px 18px 16px; }
.app-proj .label { color: var(--cream); }
.app-proj-sub { font-size: 14px; margin: 4px 0 16px; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.phases li { height: 6px; border-radius: 3px; background: rgba(255, 248, 241, 0.18); }
.phases li.done { background: var(--on-dark-2); }
.phases li.now { background: linear-gradient(90deg, var(--cream) 55%, rgba(255, 248, 241, 0.18) 55%); }
.phases span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.phase-now { margin: 10px 0 0; font: 600 13px var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.phase-now span { color: var(--on-dark-2); font-weight: 500; }

.app-card { background: var(--paper); border: 1px solid rgba(185, 168, 155, 0.45); border-radius: 18px; padding: 14px 16px; margin-top: 12px; }
.app-card .label { display: block; font-size: 12px; margin-bottom: 4px; color: var(--muted); }
.app-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.app-card strong { color: var(--charcoal); }
.app-update .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.app-update .who img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; object-position: 50% 25%; }
.app-update .who p { display: flex; flex-direction: column; line-height: 1.2; }
.app-update .who span { font-size: 13px; color: var(--muted); }

.app-cta {
  display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 12px;
  min-height: 52px; padding: 0 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(106, 85, 70, 0.14); color: var(--charcoal); font: 600 15px var(--f-body); text-align: left;
}
.app-cta span:last-child { color: var(--script); font-size: 18px; }

.app-btn {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--cream);
  font: 600 13px var(--f-body); letter-spacing: 0.12em; text-transform: uppercase;
}
.app-link {
  min-height: 40px; padding: 0 6px; border: 0; background: none; cursor: pointer;
  font: 600 14px var(--f-body); color: var(--script); text-decoration: underline; text-underline-offset: 3px;
}

.appr-list, .doc-list { list-style: none; margin: 0; padding: 0; }
.appr { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(185, 168, 155, 0.5); }
.appr img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.appr-tag {
  width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  background: var(--linen); font: 600 15px var(--f-body); letter-spacing: 0.1em; color: var(--script);
}
.appr h3, .doc h3 { font: 600 15px/1.3 var(--f-body); color: var(--charcoal); margin: 0 0 2px; }
.appr p, .doc p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.appr .due { color: var(--script); font-weight: 600; }
.appr-act { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.done-note { font-weight: 600; color: var(--script) !important; margin: 0; }

.seg { display: flex; gap: 6px; padding: 4px; margin: 8px 0 14px; background: var(--linen); border-radius: 999px; }
.seg button {
  flex: 1 1 auto; min-height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 13px var(--f-body); color: var(--muted); white-space: nowrap;
}
.seg button[aria-selected="true"] { background: var(--paper); color: var(--charcoal); box-shadow: 0 1px 3px rgba(33, 31, 32, 0.12); }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(185, 168, 155, 0.5); }
.doc-sign { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(106, 85, 70, 0.12); font: 600 12px var(--f-body); letter-spacing: 0.06em; color: var(--script);
}
.pill-wait { background: var(--charcoal); color: var(--cream); }
.pill-new { background: var(--linen); color: var(--charcoal); }
.co-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.co-sum div { background: var(--linen); border-radius: 14px; padding: 10px 12px; }
.co-sum span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.co-sum strong { font: 600 15px/1.3 var(--f-body); color: var(--charcoal); }

.notes details { border-top: 1px solid rgba(185, 168, 155, 0.5); padding: 4px 0 12px; }
.notes summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; padding: 10px 28px 4px 0; position: relative; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font: 300 24px var(--f-body); color: var(--script); transition: transform .2s; }
.notes details[open] summary::after { transform: rotate(45deg); }
.notes time { font: 600 12px var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--script); }
.notes summary span { font: 600 16px/1.3 var(--f-body); color: var(--charcoal); }
.notes .label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 2px; }
.notes p, .notes li { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.notes p { margin: 0; }
.notes ul { margin: 0; padding-left: 18px; }

.app-tabs {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid rgba(185, 168, 155, 0.5);
}
.app-tabs button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 52px; border: 0; background: none; cursor: pointer;
  font: 600 11px var(--f-body); letter-spacing: 0.04em; color: var(--muted);
}
.app-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs button[aria-selected="true"] { color: var(--charcoal); }
.app-tabs button[aria-selected="true"] svg { stroke: var(--script); stroke-width: 1.9; }
.badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--script); color: var(--cream); font: 700 11px/18px var(--f-body);
}

/* ---------- Design system additions, 2026-11-17 (docs/site-design-system.md, shown on catalog.html) ---------- */

/* Tints for side-by-side pills (owner: "a little bit of variation ... a light hue") */
.btn-tint-cream { background: rgba(255, 248, 241, 0.85); border-color: rgba(33, 31, 32, 0.08); }
.btn-tint-taupe { background: rgba(185, 168, 155, 0.34); border-color: rgba(106, 85, 70, 0.24); color: #4A3B30; }
/* hover keeps the darker pill darker (the plain pill hover would turn it pale like its neighbour) */
@media (hover: hover) { .text-link.btn-tint-taupe:hover { background: rgba(185, 168, 155, 0.46); } }

/* Information tags (span.chip) are words, not buttons (owner: "consultation looks too much like the other tabs that
   open up"): no pill, no lift, small caps with a dot between. Chips you can pick (label.chip, button.chip) keep the
   raised glass look. */
span.chip {
  min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: default;
  font: 600 12px/1.6 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.chips > span.chip + span.chip::before { content: "·"; margin: 0 10px 0 -4px; color: var(--script); letter-spacing: 0; }
.chips:has(> span.chip) { gap: 4px 14px; }

/* The main call to action: one deeper taupe button per screen, never black, with the outline tracer */
.btn-primary {
  position: relative; color: #3A2E26; border-color: rgba(106, 85, 70, 0.55);
  background: linear-gradient(180deg, rgba(212, 200, 189, 0.98), rgba(185, 168, 155, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 2px rgba(33, 31, 32, 0.08), 0 12px 26px -12px rgba(106, 85, 70, 0.6);
}

/* Outline tracer (owner: "a little randomize very light but randomized tracer effect"): a faint light that travels
   once around the outline. site.js picks a random start, speed, brightness and pause per sweep; at most 3 per page. */
@property --tr-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tracer { position: relative; }
.tracer::after, .btn-primary::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from calc(var(--tr-start, 0deg) + var(--tr-a)),
    transparent 0deg 290deg, rgba(255, 253, 248, 0) 290deg, rgba(255, 253, 248, 0.95) 335deg, rgba(185, 168, 155, 0.7) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
}
.is-tracing::after { animation: tracer-run var(--tr-dur, 2.8s) cubic-bezier(0.45, 0.05, 0.35, 1) 1 both; }
@keyframes tracer-run {
  0% { --tr-a: 0deg; opacity: 0; }
  14% { opacity: var(--tr-o, 0.8); }
  86% { opacity: var(--tr-o, 0.8); }
  100% { --tr-a: 360deg; opacity: 0; }
}

/* "Four ways to begin": a small vertical line instead of an arrow (owner: "I don't like the arrows ... small
   vertical lines ... and it has a little nudge"). It grows once when the row comes into view, one row after another,
   and on hover or keyboard focus. .is-u is the faded U-shape option. */
.service-list .way-mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 36px; }
.service-list .way-mark::before, .way-mark::before {
  content: ""; display: block; width: 2px; height: 18px; border-radius: 2px; background: rgba(106, 85, 70, 0.4);
  transition: height 0.6s cubic-bezier(0.22, 0.8, 0.25, 1), background 0.6s;
}
.way-mark.is-u::before { width: 14px; background: none; border: 1.5px solid rgba(106, 85, 70, 0.35); border-top: 0; border-radius: 0 0 8px 8px; }
@media (hover: hover) { .service-list a:hover .way-mark::before { height: 30px; background: rgba(106, 85, 70, 0.7); } }
.service-list a:focus-visible .way-mark::before { height: 30px; }
.is-seen .way-mark::before { animation: way-nudge 1.4s cubic-bezier(0.22, 0.8, 0.25, 1) calc(var(--i, 0) * 0.35s + 0.3s) 1 both; }
@keyframes way-nudge { 0%, 100% { height: 18px; } 45% { height: 30px; background: rgba(106, 85, 70, 0.7); } }

/* Compare cards (Design-build page), owner 2026-11-17: "The checkmarks can have a little bit of action to them and
   expand going down in order. Also, each of those sections can kinda come in individually and then the divine domain
   part below it it's pretty close to the other car just a little bit more separation and then it can act the same
   way." More room between the cards; each card rises in on its own as it scrolls into view; its ticks then draw in one
   after another, top to bottom. site.js adds .reveal-on only when motion is allowed, so without it everything shows. */
.compare { gap: 30px; }
html.reveal-on .compare-card { opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.8, 0.25, 1) calc(var(--c, 0) * 0.3s), transform 0.9s cubic-bezier(0.22, 0.8, 0.25, 1) calc(var(--c, 0) * 0.3s); }
html.reveal-on .compare-card.is-in { opacity: 1; transform: none; }
html.reveal-on .compare-card .ticks li { opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1);
  transition-delay: calc(var(--c, 0) * 0.3s + var(--n, 0) * 0.28s + 0.45s); }
html.reveal-on .compare-card.is-in .ticks li { opacity: 1; transform: none; }
html.reveal-on .compare-card .ticks li::before { clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s cubic-bezier(0.22, 0.8, 0.25, 1) calc(var(--c, 0) * 0.3s + var(--n, 0) * 0.28s + 0.7s); }
html.reveal-on .compare-card.is-in .ticks li::before { clip-path: inset(0 0 0 0); }

/* Button words (see site.js): settle in from a soft blur the first time they are on screen (opacity, blur and a 2 px
   rise only). No line under them, ever: on hover or keyboard focus the whole button grows a little, words and all,
   the same 1.05 over 0.6 s as the rows (owner 2026-11-17: "i dont like th lines in all the buttons on hover button and
   text can get larger"). `scale`, not `transform`, so it adds to the lift, the press and the nudge. Keyboard focus also
   keeps its ring. */
.btn .btn-label, .text-link > span { position: relative; }
@media (hover: hover) { .btn:hover, .text-link:hover { scale: 1.05; } }
.btn:focus-visible, .text-link:focus-visible { scale: 1.05; }
.dock .btn { transform-origin: 50% 100%; } /* the Let's talk tab grows upward and stays on the bottom edge */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .text-link:hover, .btn:focus-visible, .text-link:focus-visible { scale: none; } /* the tint and ring stay */
}
.btn .btn-label.label-arrive { animation: label-arrive 1s cubic-bezier(0.22, 0.8, 0.25, 1) 1 both; }
.text-link > span.label-arrive { animation: label-arrive 1s cubic-bezier(0.22, 0.8, 0.25, 1) 1 both, nudge 6s ease-in-out 1.2s infinite; }
@keyframes label-arrive { from { opacity: 0.35; filter: blur(3px); transform: translateY(2px); } to { opacity: 1; filter: none; transform: none; } }

/* Menu (owner 2026-11-17: "I don't like the arrows in the menu and there can be a little bit more spacing in between
   each of the sections better padding"). No arrows: the same small vertical line as the row marks, which grows on
   hover or focus and stands taller on the page you are on. Taller rows, more room around the contact links, and a
   slower, softer slide. */
.menu { transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1), visibility 0s 0.6s; }
.menu.open { transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1); }
.menu nav { margin-top: 36px; }
.menu nav a { min-height: 78px; padding: 6px 2px; }
.menu nav a::after {
  content: ""; flex: none; width: 2px; height: 16px; border-radius: 2px; margin-right: 8px;
  background: rgba(106, 85, 70, 0.4); transition: height 0.6s cubic-bezier(0.22, 0.8, 0.25, 1), background 0.6s;
}
@media (hover: hover) { .menu nav a:hover::after { height: 30px; background: rgba(106, 85, 70, 0.75); } }
.menu nav a:focus-visible::after, .menu nav a[aria-current="page"]::after { height: 30px; background: rgba(106, 85, 70, 0.75); }
.menu .contact-mini { margin-top: 44px; }
.menu .contact-mini a { min-height: 52px; line-height: 52px; }

/* Hover and focus on "Four ways to begin" rows and menu rows (owner 2026-11-17: "make the hover on sections in here
   and menu have a little tone color and make a section text larger for focus"): a soft taupe tone fills the row and
   its words grow a little. Phones get the same while the row is pressed. Slow, no jump: transforms and font-size only. */
.service-list a, .menu nav a { position: relative; isolation: isolate; }
.service-list a::before, .menu nav a::before {
  content: ""; position: absolute; inset: 6px -14px; z-index: -1; border-radius: 18px;
  background: rgba(185, 168, 155, 0.2); opacity: 0; transition: opacity 0.5s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.service-list a > div { transform-origin: left center; transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1); }
.service-list a > img { transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1); }
.menu nav a { transition: font-size 0.5s cubic-bezier(0.22, 0.8, 0.25, 1), color 0.5s; }
@media (hover: hover) {
  .service-list a:hover::before, .menu nav a:hover::before { opacity: 1; }
  .service-list a:hover > div { transform: scale(1.05); }
  .service-list a:hover > img { transform: scale(1.03); }
  .menu nav a:hover { font-size: 33px; }
}
.service-list a:active::before, .menu nav a:active::before,
.service-list a:focus-visible::before, .menu nav a:focus-visible::before { opacity: 1; }
.service-list a:focus-visible > div { transform: scale(1.05); }
.menu nav a:focus-visible { font-size: 33px; }

/* Compare cards, owner 2026-11-17 ("yes" to: the black card turns dark taupe, and the "bad" list uses dashes instead
   of check marks). Dark taupe #5A4A3E with the page colour as text (6.7:1). The muted list draws a short dash. */
.compare-card-dark { background: #5A4A3E; }
.ticks-muted li::before { width: 12px; height: 0; top: 26px; border-left: 0; transform: none; border-bottom-color: var(--muted); }

/* Going to another page: slow and elegant (owner: "any page or button that takes you somewhere should be more
   elegant and slow on its opening or transfer"). Browsers with cross-page view transitions fade the old page out
   (0.45 s) and the new one in (0.8 s). Others: site.js fades out before leaving and the page fades in. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.45s cubic-bezier(0.4, 0, 0.2, 1) both vt-out; }
::view-transition-new(root) { animation: 0.8s cubic-bezier(0.22, 0.8, 0.25, 1) 0.05s both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
html.no-vt body { animation: page-fade-in 0.7s cubic-bezier(0.22, 0.8, 0.25, 1) both; }
html.no-vt body.leaving { opacity: 0; transition: opacity 0.4s ease; }
@keyframes page-fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .tracer::after, .btn-primary::after { display: none; }
}
