/* Lyssa Phifer Tax and Accounting Services: site styles */
:root {
  --ink: #230504;
  --forest: #3a0807;
  --river: #5a0201;
  --river-deep: #420201;
  --seaglass: #e6c3a0;
  --seaglass-soft: #f3e3d7;
  --mist: #f8f3ef;
  --paper: #fffcfa;
  --brass: #b8692f;
  --brass-soft: #ecc7a2;
  --text: #2b1a17;
  --muted: #6e5b56;
  --line: #e7dbd4;

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 74rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 1px 2px rgba(35, 5, 4, 0.06), 0 4px 12px rgba(35, 5, 4, 0.06);
  --shadow-2: 0 2px 4px rgba(35, 5, 4, 0.06), 0 18px 40px -12px rgba(35, 5, 4, 0.22);
  --shadow-3: 0 30px 60px -20px rgba(20, 3, 2, 0.55), 0 12px 24px -12px rgba(20, 3, 2, 0.35);

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--river); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--river-deep); }

::selection { background: var(--brass-soft); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 239, 233, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
.wordmark {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
  font-family: var(--display);
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.wordmark img {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(230, 195, 160, 0.35), 0 6px 14px -6px rgba(20, 3, 2, 0.5);
}
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-transform: none;
}
.wordmark:hover { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.header-actions .phone {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

/* Header over the dark hero (home page) */
.site-header--over {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header--over .wordmark,
.site-header--over .header-actions .phone { color: #faf3ee; }
.site-header--over .wordmark span { color: rgba(250, 243, 238, 0.7); }
.site-header--over.is-scrolled {
  background: rgba(35, 5, 4, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: rgba(230, 195, 160, 0.14);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--river);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid var(--river);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -12px rgba(90, 2, 1, 0.8);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s, color 0.3s;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.button:hover {
  color: #fff;
  background: var(--river-deep);
  border-color: var(--river-deep);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 16px 30px -12px rgba(90, 2, 1, 0.9);
}
.button:hover::after { transform: translateX(120%); }
.button:active { transform: translateY(0); }

.button.brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 28px -12px rgba(184, 105, 47, 0.9);
}
.button.brass:hover { background: #c97a3e; border-color: #c97a3e; color: var(--ink); }

.button.secondary {
  background: transparent;
  color: var(--river);
  box-shadow: none;
}
.button.secondary:hover { background: var(--seaglass-soft); color: var(--river-deep); }

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #faf3ee;
  border-color: rgba(250, 243, 238, 0.35);
  box-shadow: none;
}
.button.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(250, 243, 238, 0.7); color: #fff; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #f8efe9;
  background:
    radial-gradient(60rem 40rem at 85% 20%, rgba(230, 195, 160, 0.16), transparent 60%),
    radial-gradient(40rem 30rem at 10% 90%, rgba(184, 105, 47, 0.12), transparent 60%),
    linear-gradient(170deg, #4a0907 0%, var(--ink) 70%);
  padding: 9.5rem 0 7rem;
  min-height: min(56rem, 100svh);
  display: flex;
  align-items: center;
}
.hero::before {
  /* faint ledger rules */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(230, 195, 160, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 195, 160, 0.06) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero::after,
.band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(230, 195, 160, 0.1);
  border: 1px solid rgba(230, 195, 160, 0.22);
  color: var(--seaglass);
  font-size: 0.9rem;
  font-weight: 500;
}
.kicker .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7fd1a8;
  box-shadow: 0 0 0 0 rgba(127, 209, 168, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 209, 168, 0.55); }
  70% { box-shadow: 0 0 0 0.6rem rgba(127, 209, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 209, 168, 0); }
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: #fcf6f2;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line > span { display: block; text-wrap: balance; }
.hero .lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(248, 239, 233, 0.78);
  max-width: 33rem;
  margin: 0 0 2.25rem;
}
.hero .actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Document stack: the signature moment */
.stack {
  position: relative;
  height: 30rem;
  perspective: 1400px;
}
.stack-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--ty, 0) * -6deg)) rotateY(calc(var(--tx, 0) * 8deg));
  transition: transform 0.6s var(--ease-out);
}
.doc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19rem;
  height: 24rem;
  margin: -12rem 0 0 -9.5rem;
  padding: 1.2rem 1.25rem;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 30%),
    #f7f8f4;
  color: #3a2a26;
  box-shadow: var(--shadow-3);
  transform:
    translate3d(calc(var(--x) + var(--tx, 0) * var(--d) * 14px), calc(var(--y) + var(--ty, 0) * var(--d) * 10px), calc(var(--d) * 30px))
    rotate(var(--r));
  transition: transform 0.6s var(--ease-out);
  overflow: hidden;
}
.doc::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.doc-1 { --x: -7.5rem; --y: 1.6rem; --r: -9deg; --d: 0.4; }
.doc-2 { --x: 6.2rem;  --y: -1.2rem; --r: 7deg;  --d: 0.6; }
.doc-3 { --x: -3rem;   --y: -2.4rem; --r: -3deg; --d: 0.8; }
.doc-4 { --x: 2rem;    --y: 1rem;    --r: 2.5deg; --d: 1.1; }

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #3a2a26;
  margin-bottom: 0.9rem;
}
.doc-form {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.95;
  color: var(--ink);
}
.doc-form small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  color: #7a6a64;
  margin-bottom: 0.2rem;
}
.doc-title {
  font-size: 0.68rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: right;
  max-width: 8.5rem;
  color: #4a3a36;
}
.doc-year {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.15rem;
  color: var(--ink);
}
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #cfc2bb;
  border-left: 1px solid #cfc2bb;
}
.doc-cell {
  border-right: 1px solid #cfc2bb;
  border-bottom: 1px solid #cfc2bb;
  padding: 0.35rem 0.45rem 0.55rem;
  min-height: 3.1rem;
  font-size: 0.56rem;
  line-height: 1.25;
  color: #7a6a64;
  font-weight: 600;
}
.doc-cell.wide { grid-column: span 2; }
.doc-cell i {
  display: block;
  height: 0.45rem;
  margin-top: 0.5rem;
  width: var(--w, 60%);
  border-radius: 2px;
  background: #e0d5cf;
}
.doc-foot {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: #9a8a84;
  font-weight: 600;
}

.stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 3.2rem;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  border: 3px solid var(--river);
  color: var(--river);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
  transform: rotate(-14deg);
  background: rgba(247, 248, 244, 0.6);
  box-shadow: 0 0 0 4px rgba(90, 2, 1, 0.12) inset;
  mix-blend-mode: multiply;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.6;
}
.stamp strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.stamp svg { width: 1.3rem; height: 1.3rem; margin: 0 auto 0.15rem; display: block; }

/* Floating notification card */
.toast {
  position: absolute;
  left: -1.5rem;
  bottom: -0.5rem;
  z-index: 5;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 17.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: var(--shadow-3);
  font-size: 0.85rem;
  line-height: 1.35;
  transform: translate3d(calc(var(--tx, 0) * -18px), calc(var(--ty, 0) * -12px), 80px);
  transition: transform 0.6s var(--ease-out);
}
.toast-icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--river);
  color: #fff;
}
.toast-icon svg { width: 1.15rem; height: 1.15rem; }
.toast strong { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* Entrance choreography (only when JS is on and motion allowed) */
.js .hero h1 .line > span { transform: translateY(105%); }
.js .hero .kicker,
.js .hero .lede,
.js .hero .actions { opacity: 0; transform: translateY(14px); }
.js .doc { opacity: 0; }
.js .stamp { opacity: 0; transform: rotate(-14deg) scale(1.8); }
.js .toast { opacity: 0; }

.is-loaded .hero h1 .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: 0.16s; }
.is-loaded .hero .kicker,
.is-loaded .hero .lede,
.is-loaded .hero .actions { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.is-loaded .hero .lede { transition-delay: 0.3s; }
.is-loaded .hero .actions { transition-delay: 0.42s; }

.is-loaded .doc { animation: deal 1.1s var(--ease-out) both; }
.is-loaded .doc-1 { animation-delay: 0.25s; }
.is-loaded .doc-2 { animation-delay: 0.4s; }
.is-loaded .doc-3 { animation-delay: 0.55s; }
.is-loaded .doc-4 { animation-delay: 0.7s; }
@keyframes deal {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--x) * 0.2 + 6rem), calc(var(--y) + 9rem), 0) rotate(calc(var(--r) + 18deg));
  }
  to {
    opacity: 1;
    transform: translate3d(var(--x), var(--y), calc(var(--d) * 30px)) rotate(var(--r));
  }
}
.is-settled .doc { animation: none; opacity: 1; }
.is-loaded .stamp { animation: stamp 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.5s both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.8); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}
.is-loaded .toast { opacity: 1; transition: opacity 0.8s var(--ease-out) 1.9s, transform 0.6s var(--ease-out); }

/* ---------- Trust strip ---------- */
.strip {
  position: relative;
  z-index: 2;
  margin-top: -2.75rem;
}
.strip ul {
  list-style: none;
  margin: 0;
  padding: 1.35rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(231, 219, 212, 0.7);
}
.strip li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}
.strip li span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.strip svg {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border-radius: 12px;
  background: var(--seaglass-soft);
  color: var(--river);
}

/* ---------- Sections ---------- */
.band { position: relative; padding: 7rem 0; }
.band.alt { background: var(--paper); }
.band-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50rem 30rem at 90% 0%, rgba(230, 195, 160, 0.14), transparent 60%),
    linear-gradient(180deg, var(--forest), var(--ink));
  color: #f8efe9;
}
.band-dark > .wrap { position: relative; z-index: 1; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 16ch;
}
.section-intro { margin: 0; color: var(--muted); max-width: 30rem; font-size: 1.1rem; }
.band-dark .section-intro { color: rgba(248, 239, 233, 0.72); }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--river);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }
.service-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--seaglass-soft);
  color: var(--river);
  transition: transform 0.6s var(--ease-out), background 0.4s, color 0.4s;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service:hover .service-icon { transform: rotate(-8deg) scale(1.06); background: var(--river); color: #fff; }
.service h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0.35rem 0 0;
}
.service p { margin: 0.4rem 0 0; color: var(--muted); max-width: 34rem; }
.service .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.service .tags span {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--text);
}

/* Deadlines */
.deadlines-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: stretch;
}
.countdown {
  position: relative;
  padding: 2.25rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(230, 195, 160, 0.14), rgba(230, 195, 160, 0.03));
  border: 1px solid rgba(230, 195, 160, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, var(--shadow-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 21rem;
}
.countdown-label { margin: 0; color: var(--seaglass); font-weight: 600; }
.countdown-days {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  font-family: var(--display);
  line-height: 0.85;
}
.countdown-days strong {
  font-weight: 400;
  font-size: clamp(5.5rem, 12vw, 9rem);
  color: #fcf6f2;
  font-variant-numeric: tabular-nums;
}
.countdown-days span { font-size: 1.6rem; color: var(--brass-soft); }
.countdown-what { margin: 0; font-size: 1.2rem; color: #fcf6f2; }
.countdown-what em { display: block; font-style: normal; color: rgba(248, 239, 233, 0.65); font-size: 1rem; margin-top: 0.2rem; }
.countdown .button { align-self: flex-start; margin-top: 1.75rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: rgba(230, 195, 160, 0.25);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem 0 1rem 2.25rem;
  border-bottom: 1px solid rgba(230, 195, 160, 0.12);
  transition: opacity 0.4s;
}
.timeline li:last-child { border-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid rgba(230, 195, 160, 0.55);
}
.timeline time { font-family: var(--display); font-size: 1.2rem; color: #fcf6f2; }
.timeline .what { color: rgba(248, 239, 233, 0.78); }
.timeline .what strong { display: block; color: #fcf6f2; font-weight: 600; }
.timeline li.is-past { opacity: 0.4; }
.timeline li.is-next::before {
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: 0 0 0 6px rgba(184, 105, 47, 0.22);
}
.timeline li.is-next time { color: var(--brass-soft); }
.fineprint { margin: 1.5rem 0 0; font-size: 0.85rem; color: rgba(248, 239, 233, 0.55); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--river), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 0.2s;
}
.steps.is-in::before { transform: scaleX(1); }
.no-js .steps::before, .reduced .steps::before { transform: scaleX(1); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--river);
  color: var(--river);
  font-family: var(--display);
  font-size: 1.4rem;
  box-shadow: 0 0 0 8px var(--mist);
}
.steps h3 { font-size: 1.2rem; margin: 0 0 0.45rem; }
.steps p { margin: 0; color: var(--muted); max-width: 30ch; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4.5rem;
  align-items: center;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(30rem 20rem at 70% 10%, rgba(184, 105, 47, 0.3), transparent 60%),
    linear-gradient(165deg, #6a0a07, var(--ink));
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #fcf6f2;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.14;
  mix-blend-mode: overlay;
}
.portrait-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  max-width: 13rem;
  transform: translate(-50%, -62%);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(230, 195, 160, 0.3), 0 30px 50px -20px rgba(20, 3, 2, 0.7);
}
.portrait p { position: relative; z-index: 1; margin: 0; }
.portrait .name { font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.portrait .creds { margin-top: 0.35rem; color: var(--brass-soft); font-weight: 600; }

.quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  color: var(--ink);
  text-indent: -0.45em;
}
.about-copy p { color: var(--muted); max-width: 36rem; margin: 0 0 1rem; }

/* Contact */
.contact {
  background:
    linear-gradient(180deg, var(--mist) 0, var(--mist) 45%, var(--ink) 45%);
  padding: 2rem 0 0;
}
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(20, 3, 2, 0.5), 0 0 0 1px rgba(231, 219, 212, 0.7);
}
.contact-details {
  position: relative;
  padding: 3rem;
  background:
    radial-gradient(30rem 20rem at 0% 100%, rgba(230, 195, 160, 0.22), transparent 60%),
    var(--river);
  color: #f8efe9;
  overflow: hidden;
}
.contact-details::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.contact-details .section-title { color: #fcf6f2; font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 2rem; }
.contact-details dl { margin: 0; position: relative; z-index: 1; }
.contact-details dt { font-size: 0.85rem; font-weight: 600; color: var(--seaglass); margin-top: 1.25rem; }
.contact-details dd { margin: 0.15rem 0 0; }
.contact-details a { color: #fff; font-weight: 600; }

.contact-form { padding: 3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input:hover,
.field textarea:hover { border-color: #d6c3b8; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--river);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(90, 2, 1, 0.14);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.hint { font-size: 0.82rem; color: var(--muted); margin: 0.35rem 0 0; }

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  accent-color: var(--river);
}

.form-status { margin: 0 0 1rem; font-size: 0.95rem; padding: 0.8rem 1rem; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status.success { color: var(--river-deep); background: var(--seaglass-soft); font-weight: 600; }
.form-status.error { color: #8f2a1d; background: #f7e3df; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(248, 239, 233, 0.72);
  padding: 4rem 0 3rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fcf6f2; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer p { margin: 0 0 0.35rem; }
.tagline {
  font-family: var(--display);
  font-style: italic;
  color: var(--brass-soft);
  font-size: 1.05rem;
  margin-top: 0.6rem !important;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }

/* ---------- Scroll reveals ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 4rem 0 5rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.legal .updated { color: var(--muted); margin: 0 0 2.5rem; }
.legal h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 2.5rem 0 0.6rem;
  line-height: 1.2;
}
.legal p, .legal li { max-width: 40rem; }
.callout {
  background: var(--seaglass-soft);
  border-left: 4px solid var(--river);
  padding: 1rem 1.25rem;
  border-radius: 4px 12px 12px 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 8rem 0 6rem; min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .stack { height: 26rem; max-width: 30rem; margin: 0 auto; width: 100%; }
  .section-head,
  .deadlines-grid,
  .about-grid,
  .contact-card { grid-template-columns: 1fr; }
  .section-head { gap: 1.25rem; }
  .service { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .service > div:last-child { grid-column: 2; }
  .about-grid { gap: 3rem; }
  .portrait { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  .band { padding: 5rem 0; }
  .strip ul { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { top: 1.75rem; bottom: 1.75rem; left: 1.7rem; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .steps.is-in::before, .no-js .steps::before, .reduced .steps::before { transform: scaleY(1); }
  .steps li { padding-left: 5rem; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-details, .contact-form { padding: 2rem 1.5rem; }
  .countdown { padding: 1.75rem; min-height: 0; }
  .stack { height: 23rem; }
  .doc { width: 13.5rem; height: 17.5rem; margin: -8.75rem 0 0 -6.75rem; padding: 0.9rem; }
  .doc-1 { --x: -2.6rem; --y: 1.2rem; } .doc-2 { --x: 2.6rem; --y: -0.8rem; }
  .doc-3 { --x: -1.4rem; } .doc-4 { --x: 1rem; }
  .doc-title { font-size: 0.6rem; max-width: 6.5rem; }
  .service { grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0 1rem; align-items: center; }
  .service-icon { width: 2.75rem; height: 2.75rem; }
  .service h3 { font-size: 1.45rem; margin: 0; }
  .service > div:last-child { grid-column: 1 / -1; margin-top: 0.75rem; }
  .site-header .wrap { flex-wrap: nowrap; }
  .site-header .button { padding: 0.6rem 1rem; font-size: 0.9rem; }
  .button-long { display: none; }
  .doc-form { font-size: 1.6rem; }
  .doc-cell { min-height: 2.5rem; }
  .stamp { width: 5.8rem; height: 5.8rem; right: 0.8rem; bottom: 2.6rem; font-size: 0.62rem; }
  .stamp strong { font-size: 1rem; }
  .toast { left: 0; right: 0; margin: 0 auto; bottom: -1rem; width: 16rem; }
  .wordmark { font-size: 1.1rem; }
  .header-actions .phone { display: none; }
}
@media (max-width: 420px) {
  .wordmark span { display: none; }
  .wordmark img { grid-row: auto; width: 2.4rem; height: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
