/* The Digital Edit Studio — site styles (v2: interactive)
   Palette from the DS monogram: espresso on cream. One accent, no gradients on surfaces. */

:root {
  --paper: #f6f1ea;
  --paper-2: #ede5db;
  --blush: #e9d6cc;
  --ink: #2a1a10;
  --brown: #4e2e1a;
  --muted: #7d6a5c;
  --danger: #9b3b2e;
  --line: rgba(42, 26, 16, 0.14);
  --line-strong: rgba(42, 26, 16, 0.32);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* paper grain — tiny tiled noise, very faint */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: url("assets/grain.png") repeat; opacity: .55;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.5rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: -999px; top: 8px; padding: 10px 14px;
  background: var(--ink); color: var(--paper); border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- type helpers ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; max-width: 34em; }
.note { color: var(--muted); max-width: 52em; margin-top: 32px; font-size: 0.9375rem; }
.link {
  color: var(--brown); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 0.2em;
  transition: text-decoration-color .2s var(--ease);
}
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }
.link--arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link--arrow:hover span, .offer:hover .link--arrow span { transform: translateX(4px); }
.link--arrow[href="#demo"]:hover span { transform: translateY(-3px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(42, 26, 16, .6); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--brown); border-color: var(--brown); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.top.is-scrolled { box-shadow: 0 12px 30px -24px rgba(42, 26, 16, .5); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: auto; transition: transform .3s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__name { font-family: var(--serif); font-size: 1.125rem; letter-spacing: 0.005em; white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  padding: 8px 0; border-bottom: 1.5px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); border-color: var(--ink); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px;
  position: relative; cursor: pointer; margin-right: -8px;
}
.menu-btn span {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .top__row { gap: 12px; }
  .brand__name { font-size: 1rem; }
  .top__cta { margin-left: auto; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gutter) 14px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(42, 26, 16, .4);
  }
  .top.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.is-active { border-color: var(--line); }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px clamp(32px, 6vw, 88px); align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 7.2vw, 6.25rem);
  line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 0.4em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > * { display: block; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--brown); }
html.js .hero__title .line > * { transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
html.js .hero__title .line:nth-child(2) > * { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---------- before / after demo ---------- */
.demo { margin: 0; justify-self: center; width: min(100%, 380px); display: grid; gap: 18px; }
.phone {
  position: relative; background: #fff; border-radius: 26px; padding: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(42, 26, 16, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
  user-select: none; -webkit-user-select: none;
  --posn: 100;
}
.phone__layer { border-radius: 14px; }
.phone__layer--before { position: relative; }
.phone__layer--after {
  position: absolute; inset: 16px; background: #fff;
  clip-path: inset(0 0 0 var(--pos));
}
.ph__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ph__avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.ph__avatar--messy { background: linear-gradient(135deg, #cfd8dc 50%, #ffb74d 50%); }
.ph__avatar--neat { background-color: var(--dark, #4e2e1a); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--dark, #4e2e1a); transition: background-color .45s var(--ease), box-shadow .45s var(--ease); }
.ph__lines { display: grid; gap: 7px; flex: 1; }
.ph__lines i { display: block; height: 8px; border-radius: 4px; background: #e6e2dc; }
.ph__lines i:first-child { width: 58%; background: #c9c3bb; }
.ph__lines--neat i:first-child { background-color: var(--dark, #4e2e1a); transition: background-color .45s var(--ease); }
.ph__lines--neat i:last-child { background-color: var(--tbg, #f6f1ea); border: 1px solid var(--line); transition: background-color .45s var(--ease); }
.ph__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ph__tiles > * {
  aspect-ratio: 1; border-radius: 3px; display: grid; place-items: center; text-align: center;
  padding: 6px; font-size: .74rem; line-height: 1.15; overflow: hidden; position: relative;
}
/* BEFORE: clashing colours, random crops, shouty text */
.ph__tiles--messy .m1 { background: linear-gradient(135deg, #b0bec5, #78909c); }
.ph__tiles--messy .m2 { background: #e53935; color: #ffeb3b; font: 900 .9rem/1 "Arial Black", Impact, sans-serif; letter-spacing: -.02em; transform: rotate(-6deg) scale(1.1); }
.ph__tiles--messy .m3 { background: #fff176; }
.ph__tiles--messy .m4 { background: linear-gradient(200deg, #263238, #546e7a); }
.ph__tiles--messy .m5 { background: #fff; color: #1a0dab; font: .7rem/1 Arial, sans-serif; text-decoration: underline; outline: 1px solid #ddd; outline-offset: -1px; }
.ph__tiles--messy .m6 { background: radial-gradient(circle at 30% 30%, #80cbc4, #00897b); }
.ph__tiles--messy .m7 { background: #ba68c8; }
.ph__tiles--messy .m8 { background: linear-gradient(160deg, #ffe0b2, #ff8a65); }
.ph__tiles--messy .m9 { background: #ff5722; color: #fff; font: 900 1rem/1 "Arial Black", Impact, sans-serif; transform: rotate(8deg); }
.ph__tiles--messy .m10 { background: #e0e0e0; }
.ph__tiles--messy .m11 { background: linear-gradient(135deg, #c5e1a5, #7cb342); }
.ph__tiles--messy .m12 { background: #1e88e5; }
/* AFTER: one palette (set via custom properties; defaults = Warm). .pal is shared by every mock phone. */
.pal, .phone__layer--after {
  --p1: #b08a6e; --p2: #d2bba6; --p3: #6b4a35;
  --tbg: #f6f1ea; --tink: #4e2e1a; --dark: #4e2e1a; --dink: #f6f1ea;
}
.t-photo { transition: background-color .45s var(--ease); }
.t-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(0,0,0,.16)); }
.t-p1 { background-color: var(--p1); }
.t-p2 { background-color: var(--p2); }
.t-p3 { background-color: var(--p3); }
.t-text, .t-dark { font-family: var(--serif); font-style: italic; font-size: .78rem; transition: background-color .45s var(--ease), color .45s var(--ease); }
.t-text { background-color: var(--tbg); color: var(--tink); }
.t-dark { background-color: var(--dark); color: var(--dink); }

.phone__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 5;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
  touch-action: pan-y;
}
.phone__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.phone__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.phone__divider {
  position: absolute; top: 16px; bottom: 16px; left: calc(16px + (100% - 32px) * var(--posn) / 100);
  width: 2px; background: #fff; z-index: 4; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(42, 26, 16, .12);
}
.phone__handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink);
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  box-shadow: 0 10px 24px -10px rgba(42, 26, 16, .6);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.phone:hover .phone__handle { transform: translate(-50%, -50%) scale(1.06); }
.phone__range:active ~ .phone__divider .phone__handle { background: var(--ink); color: var(--paper); }
.phone__range:focus-visible ~ .phone__divider .phone__handle { outline: 3px solid var(--brown); outline-offset: 2px; }
.phone__tag {
  position: absolute; top: 28px; z-index: 4; pointer-events: none;
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(42, 26, 16, .82); color: var(--paper);
  transition: opacity .25s var(--ease);
}
.phone__tag--before { left: 28px; opacity: clamp(0, calc((var(--posn) - 14) / 10), 1); }
.phone__tag--after { right: 28px; opacity: clamp(0, calc((86 - var(--posn)) / 10), 1); }

.demo__controls { display: grid; gap: 12px; }
.demo__hint { margin: 0; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.palette { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.palette__label { flex: 0 0 100%; text-align: center; font-family: var(--serif); font-style: italic; color: var(--brown); margin: 0 0 -2px; }
.palette--left .palette__label { text-align: left; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: .8125rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset; }
.chip:hover { background: var(--paper-2); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo__cap { margin: 0; text-align: center; font-size: 0.8125rem; color: var(--muted); }

/* ---------- made-for ticker ---------- */
.band { background: var(--ink); color: var(--paper); padding: 18px 0; overflow: hidden; }
.band__inner { display: flex; align-items: center; gap: 22px; padding-left: var(--gutter); }
.band__lead { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--blush); flex: none; }
.band__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.band__track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.band:hover .band__track { animation-play-state: paused; }
.band__list { display: flex; flex: none; }
.band__list li { padding: 0 22px; white-space: nowrap; font-size: .9375rem; letter-spacing: .02em; border-right: 1px solid rgba(246, 241, 234, .28); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); border-top: 0; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 24em; }

/* scroll reveal */
html.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* offers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.offer { border-top: 1.5px solid var(--ink); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.offer__kicker { margin: 0; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.offer__title { font-size: clamp(1.75rem, 2.8vw, 2.25rem); transition: color .25s var(--ease); }
.offer:hover .offer__title { color: var(--brown); }
.offer__desc { margin: 4px 0 6px; }
.offer__list { display: grid; gap: 8px; margin: 0 0 8px; }
.offer__list li { position: relative; padding-left: 22px; }
.offer__list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1.5px; background: var(--brown);
  transition: width .25s var(--ease);
}
.offer:hover .offer__list li::before { width: 14px; }
.offer__foot { font-style: italic; font-family: var(--serif); font-size: 1.0625rem; color: var(--brown); margin: 0 0 6px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 40px); }
.step { position: relative; border-top: 1px solid var(--line); padding-top: 18px; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--brown);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) calc(var(--d, 0ms) + 250ms);
}
.step.is-in::before { transform: scaleX(1); }
.step__n { display: block; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--brown); margin-bottom: 14px; font-variation-settings: "opsz" 144; }
.step h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.9875rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* empty state for work */
.empty { max-width: 40em; }
.empty__big { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--brown); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro h2, .check__intro h2, .planner__intro h2, .cta h2 { margin-bottom: 18px; }
.contact__links { display: grid; gap: 10px; margin-top: 24px; }
.contact__links li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.contact__k { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; border-color: var(--brown); background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__err { margin: 0; font-size: .8125rem; color: var(--danger); }
.form .btn { justify-self: start; }
.form__hint { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.form__done { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper-2); font-size: .9375rem; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9375rem; color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .brand__name { font-size: 1rem; }
.foot__meta { margin: 0; margin-left: auto; }
.foot__links { margin: 0; display: flex; gap: 20px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 600px) { .foot__meta { margin-left: 0; } }

/* back to top */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; text-decoration: none;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  box-shadow: 0 10px 24px -10px rgba(42, 26, 16, .6);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s var(--ease);
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brown); }

/* ---------- inner page heads ---------- */
.page-head { padding: clamp(44px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); }
.page-title {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: .35em; max-width: 14em; font-variation-settings: "opsz" 144, "SOFT" 50;
}
.page-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.page-title .line > * { display: block; }
html.js .page-title .line > * { transform: translateY(110%); animation: rise .8s var(--ease) forwards; }
.page-head .contact__links { margin-top: 18px; }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

/* ---------- home teasers + CTA ---------- */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.teaser {
  display: grid; gap: 10px; align-content: start; padding: 26px 0 22px;
  border-top: 1.5px solid var(--ink); text-decoration: none; color: inherit;
}
.teaser h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); transition: color .25s var(--ease); }
.teaser p { margin: 0; color: var(--muted); }
.teaser:hover h3 { color: var(--brown); }
.teaser:hover .link--arrow span { transform: translateX(4px); }
@media (max-width: 760px) { .teasers { grid-template-columns: 1fr; } }
.steps--mini .step h3 { margin: 0; font-size: 1.2rem; }
.cta { display: grid; gap: 8px; justify-items: start; }
.cta .lede { margin-bottom: 8px; }

/* ---------- page check (services) ---------- */
.check { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .check { grid-template-columns: 1fr; } }
.check__panel { display: grid; gap: 20px; }
.check__list { display: grid; gap: 8px; }
.tick {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 16px;
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  font-size: 1rem; line-height: 1.3;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.tick::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--line-strong); background: var(--paper) center / 14px no-repeat;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.tick:hover { border-color: var(--line-strong); transform: translateX(2px); }
.tick[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.tick[aria-pressed="true"]::before {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='%23f6f1ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check__result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; }
.check__meter { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.check__meter span { display: block; height: 100%; background: var(--brown); transition: width .5s var(--ease); }
.check__score { margin: 0; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.check__result h3 { font-size: 1.6rem; }
.check__result p { margin: 0; }
.check__cta { margin-top: 8px; }

/* ---------- stepper (how it works) ---------- */
.stepper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
.stepper__bar { height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.stepper__bar span { display: block; height: 100%; width: 25%; background: var(--brown); transition: width .5s var(--ease); }
.stepper__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper__tab {
  display: grid; gap: 4px; justify-items: start; text-align: left; padding: 12px 12px 12px 0;
  background: transparent; border: 0; border-top: 1.5px solid var(--line); cursor: pointer; color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.stepper__tab .step__n { font-size: 1.8rem; margin: 0; color: inherit; }
.stepper__tabname { font-size: .9375rem; font-weight: 500; }
.stepper__tab:hover { color: var(--ink); }
.stepper__tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.stepper__tab[aria-selected="true"] .step__n { color: var(--brown); }
.stepper__panels { min-height: 200px; }
.stepper__panel { display: grid; gap: 12px; animation: fadeIn .4s var(--ease); }
.stepper__panel[hidden] { display: none; }
.stepper__panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.stepper__panel > p { margin: 0; font-size: 1.0625rem; max-width: 40em; }
.stepper__meta { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.stepper__meta dt { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stepper__meta dd { margin: 0; }
.stepper__nav { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.stepper__count { margin: 0 auto; font-size: .875rem; color: var(--muted); }
.btn[disabled] { opacity: .4; pointer-events: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .stepper__tabs { gap: 4px; }
  .stepper__tabname { display: none; }
  .stepper__meta { grid-template-columns: 1fr; }
}

/* accordion */
.acc-group { display: grid; gap: 8px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.acc summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.25rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-size: 1.4rem; line-height: 1; color: var(--brown); transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 20px 18px; color: var(--muted); }
.acc__body p { margin: 0; }

/* ---------- grid planner (work) ---------- */
.planner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .planner { grid-template-columns: 1fr; } }
.planner__controls { display: grid; gap: 12px; margin-top: 8px; }
.palette--left { justify-content: flex-start; }
.planner__stage { display: grid; gap: 14px; justify-items: center; }
.phone--static { width: min(100%, 360px); }
.planner__tiles .tile { border: 0; padding: 6px; cursor: pointer; font: inherit; transition: background-color .35s var(--ease), color .35s var(--ease), transform .15s var(--ease); }
.planner__tiles .tile:hover { transform: scale(.95); }
.planner__tiles .tile:focus-visible { outline: 3px solid var(--brown); outline-offset: -3px; z-index: 1; }
.planner__tiles .t-text, .planner__tiles .t-dark { font-family: var(--serif); font-style: italic; font-size: .78rem; }
.planner__legend { margin-top: 16px; }
.legend { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; margin-right: 4px; }
.legend--photo { background: #b08a6e; color: #fff; }
.legend--text { background: #fff; color: var(--brown); border: 1px solid var(--line); font-family: var(--serif); font-style: italic; }
.legend--dark { background: var(--brown); color: var(--paper); font-family: var(--serif); font-style: italic; }

/* ---------- contact preview ---------- */
.preview { display: grid; gap: 14px; justify-items: center; }
@media (min-width: 821px) { .preview { position: sticky; top: 88px; } }
.ph__head--card { align-items: flex-start; }
.ph__avatar--initial {
  display: grid; place-items: center; width: 56px; height: 56px;
  color: var(--dink, #f6f1ea); font-family: var(--serif); font-size: 1.4rem; transition: color .45s var(--ease);
}
.pv__text { display: grid; gap: 2px; min-width: 0; }
.pv__text p { margin: 0; }
.pv__handle { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv__name { font-family: var(--serif); font-size: 1rem; color: var(--dark, #4e2e1a); transition: color .45s var(--ease); }
.pv__bio { font-size: .78rem; color: #555; line-height: 1.35; }
.pv__link { font-size: .78rem; color: #1a3d6b; }
.pv__btns { display: flex; gap: 6px; margin: 12px 0; }
.pv__btns span {
  flex: 1; text-align: center; font-size: .78rem; font-weight: 600; padding: 7px 0; border-radius: 8px;
  background: var(--dark, #4e2e1a); color: var(--dink, #f6f1ea); transition: background-color .45s var(--ease), color .45s var(--ease);
}
.pv__btns span:last-child { background: var(--paper-2); color: var(--ink); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .hero__title .line > *, html.js .page-title .line > * { transform: none; animation: none; }
  .stepper__panel { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .step::before { transition: none; }
  .band__track { animation: none; flex-wrap: wrap; width: auto; }
  .band__list { flex-wrap: wrap; row-gap: 6px; }
  .band__list[aria-hidden="true"] { display: none; }
  .band__viewport { -webkit-mask-image: none; mask-image: none; }
  .btn:hover, .chip:hover { transform: none; }
  .phone:hover .phone__handle { transform: translate(-50%, -50%); }
}


/* ==========================================================================
   POP LAYER — clay accent, coloured page heads, dark CTA + footer, decoration.
   Appended as overrides so the whole look can be tuned from here.
   ========================================================================== */
:root {
  --accent: #a4593a;        /* terracotta — buttons, highlights (4.6:1 on cream) */
  --accent-dark: #83452c;   /* links, small text on cream (6.6:1) */
  --accent-soft: #efe0d6;   /* a shade warmer than the paper, no more */
}

/* type: bigger, more contrast */
h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.hero__title { font-size: clamp(3.2rem, 7.6vw, 7rem); font-weight: 500; }
.hero__title em { color: var(--accent); font-weight: 300; }
.page-title em { font-style: italic; font-weight: 300; color: var(--accent); }
.eyebrow { color: var(--accent-dark); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--accent); margin: 0 10px 4px 0; vertical-align: middle; }
.section__head { max-width: 26em; }

/* drawn-in underline under "better." */
.swash { position: relative; display: inline-block; }
.swash__line { position: absolute; left: -2%; right: -2%; bottom: -0.02em; width: 104%; height: .22em; overflow: visible; }
.swash__line path { fill: none; stroke: var(--accent); stroke-width: 5; opacity: .85; stroke-linecap: round; stroke-dasharray: 230; stroke-dashoffset: 230; }
html.js .swash__line path { animation: draw .9s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* buttons + links */
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.link { color: var(--accent-dark); text-decoration-color: rgba(184, 68, 31, .35); }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }
:focus-visible { outline-color: var(--accent); }
.totop { background: var(--accent); }
.totop:hover { background: var(--accent-dark); }

/* hero demo: blush disc + clay dot behind the phone, gentle tilt on hover */
.demo { position: relative; isolation: isolate; }
.demo::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 8%;
  width: 104%; aspect-ratio: 1; max-width: 520px; border-radius: 50%;
  background: var(--accent-soft); transform: translateX(-50%);
}
.demo::after {
  content: ""; position: absolute; z-index: -1; right: -7%; top: 34%;
  width: 72px; aspect-ratio: 1; border-radius: 50%; background: transparent; border: 2px solid var(--accent); opacity: .55;
}
.phone { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) and (min-width: 901px) {
  .demo:hover .phone:not(:has(.phone__range:active)) {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    box-shadow: 0 40px 70px -36px rgba(42, 26, 16, .6), 0 2px 0 rgba(255,255,255,.6) inset;
  }
}
.phone__handle { background: var(--accent); color: #fff; border-color: var(--accent); }
.phone__range:active ~ .phone__divider .phone__handle { background: var(--accent-dark); }
.phone__range:focus-visible ~ .phone__divider .phone__handle { outline-color: var(--ink); }
.phone__divider { background: #fff; }

/* chips, ticks, meters, steps */
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tick[aria-pressed="true"] { border-color: var(--accent); }
.tick[aria-pressed="true"]::before { background-color: var(--accent); border-color: var(--accent); }
.check__meter span, .stepper__bar span { background: var(--accent); }
.stepper__tab[aria-selected="true"] { border-color: var(--accent); }
.stepper__tab[aria-selected="true"] .step__n, .step__n { color: var(--accent); }
.step::before { background: var(--accent); }
.acc summary::after { color: var(--accent); }
.offer, .teaser { border-top-color: var(--accent); }
.offer__list li::before { background: var(--accent); }
.offer__foot, .palette__label, .empty__big { color: var(--accent-dark); }
.offer:hover .offer__title, .teaser:hover h3 { color: var(--accent-dark); }
.teaser { position: relative; padding-top: 30px; }
.teaser::before { content: attr(data-n); font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent); }

/* ticker: quiet band */
.band { background: var(--accent-soft); color: var(--ink); }
.band__lead { color: var(--accent-dark); }
.band__list li { border-right-color: rgba(42, 26, 16, .18); }

/* inner page heads: blush block */
.page-head { background: var(--paper-2); border-bottom: 1px solid rgba(42, 26, 16, .08); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head + .section { border-top: 0; }

/* CTA blocks: soft tint, footer stays cream */
.section--dark { background: var(--paper-2); border-top: 1px solid var(--line); }
.section--tint + .section--dark { background: var(--paper); }
.foot { padding: 36px 0 44px; }

/* mobile: keep the decoration inside the viewport */
@media (max-width: 900px) {
  .demo::before { width: 96%; top: 6%; }
  .demo::after { width: 52px; right: 1%; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .swash__line path { animation: none; stroke-dashoffset: 0; }
  .demo:hover .phone { transform: none; }
}


/* ==========================================================================
   MOTION LAYER — small, purposeful animations. All disabled under reduced-motion.
   ========================================================================== */

/* page enter / leave: short fade so moving between tabs feels continuous */
html.js body { animation: pageIn .45s var(--ease) both; }
html.js body.is-leaving { animation: pageOut .22s var(--ease) forwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-4px); } }

/* hero: staggered entrance for eyebrow, lede, buttons, phone */
html.js .hero .eyebrow, html.js .hero .lede, html.js .hero .hero__cta, html.js .page-head .eyebrow, html.js .page-head .lede {
  opacity: 0; transform: translateY(14px); animation: riseIn .7s var(--ease) forwards;
}
html.js .hero .eyebrow, html.js .page-head .eyebrow { animation-delay: .05s; }
html.js .hero .lede, html.js .page-head .lede { animation-delay: .45s; }
html.js .hero .hero__cta { animation-delay: .6s; }
html.js .demo { opacity: 0; transform: translateY(20px) scale(.98); animation: riseIn .9s var(--ease) .35s forwards; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* eyebrow dash grows in */
.eyebrow::before { transform-origin: left; }
html.js .eyebrow::before { animation: grow .6s var(--ease) .2s both; }
@keyframes grow { from { transform: scaleX(0); } }

/* nav: underline slides in from the left */
.nav a { position: relative; border-bottom: 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav a::after { display: none; } }

/* buttons: a soft sheen sweeps across on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-15deg); transition: left .5s var(--ease);
}
.btn:hover::after { left: 110%; }

/* links: underline thickens on hover */
.link { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), text-decoration-color .2s var(--ease); }
.link:hover { background-size: 100% 1.5px; }

/* mock phones: tiles pop in with a stagger whenever a palette is applied */
.ph__tiles--neat > * { animation-fill-mode: both; }
.pal.is-repainting .ph__tiles--neat > * { animation: tilePop .45s var(--ease) both; }
.pal.is-repainting .ph__tiles--neat > :nth-child(3n+2) { animation-delay: .05s; }
.pal.is-repainting .ph__tiles--neat > :nth-child(3n+3) { animation-delay: .1s; }
.pal.is-repainting .ph__tiles--neat > :nth-child(n+4) { animation-delay: .08s; }
.pal.is-repainting .ph__tiles--neat > :nth-child(n+7) { animation-delay: .16s; }
.pal.is-repainting .ph__tiles--neat > :nth-child(n+10) { animation-delay: .24s; }
@keyframes tilePop { from { transform: scale(.86); opacity: .4; } to { transform: none; opacity: 1; } }
.planner__tiles .tile.is-flipping { animation: flip .4s var(--ease); }
@keyframes flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }

/* hero phone follows the cursor (JS sets --rx / --ry), handle breathes until touched */
@media (hover: hover) and (min-width: 901px) {
  .demo:hover .phone:not(:has(.phone__range:active)) {
    transform: perspective(1200px) rotateY(var(--ry, -5deg)) rotateX(var(--rx, 2deg));
  }
}
.phone:not(.is-touched) .phone__handle { animation: breathe 2.2s ease-in-out 2.4s infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 10px 24px -10px rgba(42, 26, 16, .6), 0 0 0 0 rgba(164, 89, 58, .45); } 50% { box-shadow: 0 10px 24px -10px rgba(42, 26, 16, .6), 0 0 0 12px rgba(164, 89, 58, 0); } }

/* page check: result card nudges when the verdict changes; ticks bounce */
.check__result.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.015); } 100% { transform: scale(1); } }
.tick[aria-pressed="true"]::before { animation: tickIn .35s var(--ease); }
@keyframes tickIn { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* stepper: progress bar glints when it moves */
.stepper__bar span { position: relative; overflow: hidden; }
.stepper__bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); }
.stepper__bar.is-moving span::after { animation: glint .7s var(--ease); }
@keyframes glint { to { transform: translateX(100%); } }

/* contact preview: typing caret on the bio while fields are being edited */
.pv__bio.is-typing::after { content: ""; display: inline-block; width: 1px; height: .9em; margin-left: 2px; background: var(--ink); vertical-align: -1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pv__name, .pv__handle { transition: transform .25s var(--ease); }
.pv__name.is-bump, .pv__handle.is-bump { animation: bumpText .3s var(--ease); }
@keyframes bumpText { 50% { transform: translateX(2px); } }

/* back-to-top: wiggle on hover */
.totop:hover svg { animation: nudgeUp .6s var(--ease) infinite alternate; }
@keyframes nudgeUp { to { transform: translateY(-2px); } }

/* reveal variants: things inside a revealed block stagger in */
html.js .offer__list li { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .is-in .offer__list li { opacity: 1; transform: none; }
html.js .is-in .offer__list li:nth-child(2) { transition-delay: .08s; }
html.js .is-in .offer__list li:nth-child(3) { transition-delay: .16s; }
html.js .is-in .offer__list li:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html.js body, html.js body.is-leaving { animation: none; opacity: 1; }
  html.js .hero .eyebrow, html.js .hero .lede, html.js .hero .hero__cta, html.js .page-head .eyebrow, html.js .page-head .lede, html.js .demo { opacity: 1; transform: none; animation: none; }
  html.js .eyebrow::before { animation: none; }
  .btn::after { display: none; }
  .pal.is-repainting .ph__tiles--neat > *, .planner__tiles .tile.is-flipping, .check__result.is-bump, .tick[aria-pressed="true"]::before, .stepper__bar.is-moving span::after, .pv__name.is-bump, .pv__handle.is-bump, .totop:hover svg { animation: none; }
  .phone:not(.is-touched) .phone__handle { animation: none; }
  .pv__bio.is-typing::after { display: none; }
  html.js .offer__list li { opacity: 1; transform: none; transition: none; }
}
