/* Ridge, buildwithridge.com
   Direction: the name as a monument. Teal on paper, Bodoni Moda over Jost. */

:root {
  --bg: #f7f9f8;
  --surface: #ebf0ee;
  --ink: #06525c;
  --muted: #2f737d;
  --accent: #06525c;
  --accent-ink: #f7f9f8;
  --field: #06525c;
  --field-ink: #f7f9f8;
  --field-ink2: #9ad6d0;   /* the field's own hue, lightened: soft ink on teal */
  --deep: #043a41;
  --deep-soft: #a9cfcf;

  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Geist", "Helvetica Neue", Arial, sans-serif;

  --step-small: 14px;
  --step-body: 18px;
  --step-mid: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
  --step-big: clamp(2.75rem, 1rem + 4.6vw, 5rem);

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 10vw, 10rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; letter-spacing: -0.005em; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
strong { font-weight: 500; }
:target { scroll-margin-top: 80px; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

.small { font-size: var(--step-small); line-height: 1.5; }
.head { font-size: var(--step-mid); line-height: 1.1; letter-spacing: -0.02em; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--muted); }
}
.only-wide { display: none; }
.only-narrow { display: inline; }
@media (min-width: 48em) { .only-wide { display: inline; } .only-narrow { display: none; } }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--bg); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- see yours (the live thing) ---------- */
.yours {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: calc(60px + clamp(3rem, 6vw, 5.5rem)) var(--margin) calc(var(--section) * 0.8); align-items: start;
}
.yours-title { grid-column: 1 / -1; font-size: clamp(2.6rem, 1rem + 4.4vw, 5.25rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.05em; max-width: 16ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.yours-copy { grid-column: 1 / span 4; }
.yours-copy > p { max-width: 34ch; }
.yours-form { margin-top: 2rem; }
.yours-label { display: block; font-size: var(--step-small); font-weight: 500; margin-bottom: 0.5rem; padding: 0; }
.field {
  width: 100%; min-height: 3.4rem; padding: 0.6rem 1rem; background: var(--surface); border: 0; border-radius: 0;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.field::placeholder { color: var(--muted); opacity: 0.7; }
.field:focus-visible { outline-offset: 0; }
.trades { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.trades legend { margin-bottom: 0.5rem; }
.trades label { position: relative; }
.trades input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.trades span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.95rem; background: var(--surface);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.trades input:checked + span { background: var(--ink); color: var(--bg); }
.trades input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.trades label:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .trades input:not(:checked):hover + span { background: #dce6e3; } }
.other-kind { margin-top: 1rem; }
.other-kind[hidden] { display: none; }
.field--small { min-height: 2.9rem; font-size: 1.1rem; }

.yours-stage { grid-column: 6 / -1; }
.yours-note { margin-top: 0.9rem; color: var(--muted); }

/* the sketch site: a real interface fragment, it keeps its own frame */
.mini {
  background: #dfe6e3; border: 1px solid #c9d4d1; overflow: hidden; /* taste-skill-ignore: browser chrome of the sketch (data-ui) */
  transition: none;
}
.mini-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #e9eeec; border-bottom: 1px solid #c9d4d1; /* taste-skill-ignore: browser chrome of the sketch (data-ui) */ }
.mini-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3cfcb; }
.mini-url { margin-left: 10px; flex: 1; max-width: 22rem; padding: 3px 10px; background: #fff; border-radius: 4px; font-size: 13px; color: #4b5e5c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-page {
  container-type: inline-size; background: var(--m-bg); color: var(--m-ink); aspect-ratio: 16 / 10.4; padding: 0;
  display: grid; grid-template-rows: auto 1fr; font-family: var(--font-text); transition: background-color 400ms ease;
}
.mini-nav { display: flex; align-items: center; gap: 3cqw; padding: 2.2cqw 3.6cqw; background: #fff; font-size: max(11px, 1.35cqw); }
.mini-brand { display: grid; min-width: 0; margin-right: auto; }
.mini-logo { font-family: Georgia, "Times New Roman", serif; font-size: max(14px, 2.2cqw); line-height: 1.1; color: var(--m-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-kind { font-size: max(9px, 1cqw); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m-accent); white-space: nowrap; }
.mini-links { color: var(--m-ink); opacity: 0.85; white-space: nowrap; }
.mini-pill { padding: 0.7cqw 1.8cqw; border-radius: 99px; background: var(--m-accent); color: #fff; font-weight: 600; white-space: nowrap; }
.mini-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4cqw; align-items: center; padding: 3cqw 3.6cqw 3.6cqw; min-height: 0; }
.mini-eyebrow { /* taste-skill-ignore: the demo template's own label (data-ui) */ font-size: max(9px, 1.05cqw); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m-accent); }
.mini-head { margin-top: 1.4cqw; font-family: Georgia, "Times New Roman", serif; font-size: 4.6cqw; line-height: 1.04; letter-spacing: -0.02em; color: var(--m-ink); text-wrap: balance; }
.mini-desc { margin-top: 1.8cqw; font-size: max(11px, 1.45cqw); line-height: 1.5; color: var(--m-ink); opacity: 0.78; max-width: 40ch; }
.mini-btns { display: flex; gap: 1.2cqw; margin-top: 2.4cqw; flex-wrap: wrap; }
.mini-btn { padding: 1cqw 2.2cqw; border-radius: 99px; background: var(--m-accent); color: #fff; font-size: max(11px, 1.35cqw); font-weight: 600; white-space: nowrap; }
.mini-btn--ghost { background: #fff; color: var(--m-ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14); } /* taste-skill-ignore: the demo template's own outlined button (data-ui) */
.mini-hours { margin-top: 2cqw; font-size: max(10px, 1.2cqw); color: var(--m-ink); opacity: 0.7; }
.mini-photo { position: relative; margin: 0; aspect-ratio: 4 / 3.2; border-radius: 1.6cqw; overflow: hidden; background: #e7e3dc; transform: rotate(1.2deg); box-shadow: 0 1.4cqw 3cqw rgba(0,0,0,0.14); } /* taste-skill-ignore: the demo template's tilted photo card (data-ui) */
.mini-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mini-tag { position: absolute; left: 1.4cqw; bottom: 1.4cqw; padding: 0.4cqw 1cqw; border-radius: 0.6cqw; background: #fff7df; color: #4a3b1a; font-size: max(8px, 0.95cqw); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mini { --m-bg: #f8f7f5; --m-ink: #2b1a12; --m-accent: #c2185b; }
.mini[data-trade="cafe"]    { --m-bg: #f8f6f4; --m-ink: #2a1d14; --m-accent: #c4572a; }
.mini[data-trade="barber"]  { --m-bg: #f6f5f1; --m-ink: #1f2a2c; --m-accent: #3d7a6e; }
.mini[data-trade="nails"]   { --m-bg: #f8f6f0; --m-ink: #2f3324; --m-accent: #66773a; }
.mini[data-trade="auto"]    { --m-bg: #f4f5f7; --m-ink: #1c2430; --m-accent: #c8102e; }
.mini[data-trade="builder"] { --m-bg: #f5f4f0; --m-ink: #26302a; --m-accent: #8a5a2b; }
.mini[data-trade="restaurant"]  { --m-bg: #f7f4ef; --m-ink: #231a16; --m-accent: #8c2f2b; }
.mini[data-trade="salon"]       { --m-bg: #f8f4f3; --m-ink: #2b1f24; --m-accent: #a14a6a; }
.mini[data-trade="fitness"]     { --m-bg: #f3f4f5; --m-ink: #15191d; --m-accent: #e2531c; }
.mini[data-trade="dentist"]     { --m-bg: #f3f7f8; --m-ink: #17303a; --m-accent: #1d7fa6; }
.mini[data-trade="accountant"]  { --m-bg: #f4f6f8; --m-ink: #182437; --m-accent: #24508f; }
.mini[data-trade="realestate"]  { --m-bg: #f6f5f2; --m-ink: #1d2433; --m-accent: #2e4a7d; }
.mini[data-trade="plumber"]     { --m-bg: #f3f6f9; --m-ink: #14243a; --m-accent: #1f6fd1; }
.mini[data-trade="landscaping"] { --m-bg: #f4f6f0; --m-ink: #1e2a1c; --m-accent: #3f7a2f; }
.mini[data-trade="other"]       { --m-bg: #f6f6f4; --m-ink: #1d2326; --m-accent: #06525c; }
@media (prefers-reduced-motion: no-preference) {
  .mini.is-building .mini-piece { animation: piece 640ms var(--ease-out) both; animation-delay: calc(var(--k) * 80ms); }
}
@keyframes piece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 63.99em) {
  .yours-copy { grid-column: 1 / -1; position: static; }
  .yours-stage { grid-column: 1 / -1; margin-top: 2.4rem; }
}
@media (max-width: 47.99em) {
  .yours { padding-inline: 20px; }
  .mini-page { aspect-ratio: auto; }
  .mini-links { display: none; }
  .mini-hero { grid-template-columns: 1fr; padding: 5cqw; gap: 6cqw; }
  .mini-photo { order: -1; transform: none; }
  .mini-head { font-size: 8.5cqw; }
  .mini-desc, .mini-btn, .mini-nav { font-size: 13px; }
  .mini-eyebrow, .mini-kind { font-size: 10px; }
}

/* ---------- real examples: preview cards that open the live demos ---------- */
.examples { padding: calc(var(--section) * 0.7) var(--margin) var(--section); }
.ex-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ex-intro { color: var(--muted); max-width: 40ch; }
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ex-card { display: grid; text-decoration: none; color: var(--ink); }
.ex-pic { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface); margin-bottom: 0.9rem; }
.ex-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 700ms var(--ease-out); }
.ex-name { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.ex-kind { font-size: var(--step-small); color: var(--muted); margin-top: 0.15rem; }
.ex-open { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.7rem; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.ex-open svg { transition: transform var(--t-hover) var(--ease-out); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .ex-card:hover .ex-pic img { transform: scale(1.04); }
  .ex-card:hover .ex-open svg { transform: translate(2px, -2px); }
}
@media (max-width: 63.99em) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; } }
@media (max-width: 47.99em) { .examples { padding: 80px 20px 96px; } .ex-top { display: block; } .ex-intro { margin-top: 0.6rem; } }

/* ---------- how it goes: one panel, flip through the steps ---------- */
.how { padding: calc(var(--section) * 0.35) var(--margin) 0; }
.how-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.how-intro { color: var(--muted); max-width: 36ch; }
.steps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.steps-tabs button { display: block; width: 100%; padding: 0 0 6px; color: var(--muted); font-size: 15px; transition: color var(--t-hover) ease; }
.steps-bar { display: block; height: 4px; margin-bottom: 12px; background: #d3dedb; position: relative; overflow: hidden; }
.steps-bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.steps-tabs .is-done .steps-bar::after, .steps-tabs [aria-selected="true"] .steps-bar::after { transform: none; }
.steps-tabs [aria-selected="true"] { color: var(--ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .steps-tabs button:hover { color: var(--ink); } }
.steps-stage { background: var(--surface); overflow: hidden; }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding: clamp(1.5rem, 3vw, 3rem); }
.step + .step { margin-top: 12px; }
.step-text { grid-column: 1 / span 5; }
.step-n { font-size: var(--step-small); color: var(--muted); margin-bottom: 0.9rem; }
.step-title { font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; margin-bottom: 1.2rem; }
.step-body { max-width: 40ch; }
.step-pic { grid-column: 7 / -1; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.step-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.steps-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.steps-count { margin-right: auto; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps-arrow {
  display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--surface); color: var(--ink);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease;
}
.steps-arrow--next { background: var(--ink); color: var(--bg); }
.steps-arrow:active { transform: scale(0.94); }
.steps-arrow:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .steps-arrow:not(:disabled):hover { background: var(--muted); color: var(--bg); } }
/* without script every step shows, stacked; with it they share one panel */
.steps-tabs, .steps-nav { display: none; }
.js .steps-tabs { display: grid; }
.js .steps-nav { display: flex; }
.js .steps-stage { display: grid; touch-action: pan-y; }
.js .step { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s linear 520ms; }
.js .step.is-before { transform: translateX(-28px); }
.js .step.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .js .step, .js .step.is-before { transform: none; } }
@media (max-width: 47.99em) {
  .how { padding-inline: 20px; }
  .how-top { display: block; }
  .how-intro { margin-top: 0.6rem; }
  .steps-tabs { gap: 6px; }
  .steps-label { display: none; }
  .steps-bar { margin-bottom: 0; }
  .step { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 1.4rem; padding: 16px 16px 24px; }
  .step-title { font-size: 2rem; }
}

/* ---------- what's in it: three panels, short checklists ---------- */
.kit { padding: var(--section) var(--margin); background: var(--field); color: var(--field-ink); }
.kit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.kit-intro { color: var(--field-ink2); max-width: 36ch; }
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kit-card { background: #0b6470; padding: clamp(1.5rem, 2.6vw, 2.5rem); }
.kit-card-title { font-size: 1.3rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.kit-card-sum { margin-top: 0.6rem; color: #bfe6e2; }
.kit-checks { margin-top: 1.6rem; display: grid; gap: 0.75rem; line-height: 1.4; }
.kit-checks li { position: relative; padding-left: 1.9rem; text-wrap: pretty; }
.kit-checks li::before {
  content: ""; position: absolute; left: 0; top: 0.12em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--field-ink2);
}
.kit-checks li::after {
  content: ""; position: absolute; left: 0.36rem; top: 0.38em; width: 0.48rem; height: 0.28rem;
  border-left: 2px solid var(--field); border-bottom: 2px solid var(--field); transform: rotate(-45deg); /* taste-skill-ignore: the tick of a checkmark, not a rule */
}
@media (max-width: 63.99em) { .kit-grid { grid-template-columns: 1fr; } }
@media (max-width: 47.99em) { .kit { padding: 96px 20px; } .kit-top { display: block; } .kit-intro { margin-top: 0.6rem; } }

/* ---------- questions: heading beside, an open-and-close list ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin); }
.faq-side { grid-column: 1 / span 4; }
.faq-more { margin-top: 1rem; color: var(--muted); }
.faq-list { grid-column: 6 / -1; }
.faq-item { border-bottom: 1px solid #d3dedb; } /* taste-skill-ignore: the dividers of an open-and-close list */
.faq-item:first-child { border-top: 1px solid #d3dedb; } /* taste-skill-ignore */
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none;
  font-size: 1.3rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; transition: color var(--t-hover) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--muted); } }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); transition: background-color var(--t-hover) ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform var(--t-ui) var(--ease-out), background-color var(--t-hover) ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--ink); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--bg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 3.5rem 1.6rem 0; max-width: 60ch; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .faq-a { animation: rise 420ms var(--ease-out); } }
@media (max-width: 47.99em) {
  .faq { display: block; padding: 96px 20px; }
  .faq-list { margin-top: 2rem; }
  .faq-item summary { font-size: 1.1rem; padding: 1.2rem 0; }
  .faq-a { padding-right: 0; }
}

/* ---------- the bar: name, sections and one action ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 60px; padding: 0 var(--margin);
  display: flex; align-items: center; justify-content: space-between; background: var(--bg); color: var(--ink);
  transform: translateY(-100%); transition: transform 360ms var(--ease-out);
}
.bar.is-on { transform: none; }
.bar-mark { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.bar-nav { display: flex; align-items: center; gap: 1.6rem; font-size: 15px; }
.bar-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem; background: var(--ink); color: var(--bg);
  font-weight: 500; text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.bar-btn:active { transform: scale(0.97); }
.bar-btn { white-space: nowrap; }
@media (max-width: 47.99em) { .bar { padding: 0 16px; } .bar-nav { gap: 0.85rem; } .bar-btn { padding: 0 0.8rem; } }
.bar-nav .link { white-space: nowrap; }
@media (max-width: 440px) { .bar-nav a[href="#top"].link, .bar-nav a[href="index.html"].link { display: none; } }
@media (hover: hover) and (pointer: fine) { .bar-btn:hover { background: var(--muted); } }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ---------- motion layer (content stays visible without script) ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 380ms); }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }

/* ---------- request my website: one form, opened from any [data-request] ---------- */
.yours-ask {
  margin-top: 2rem; display: inline-flex; align-items: center; min-height: 3.2rem; padding: 0 1.5rem; background: var(--ink); color: var(--bg);
  font-weight: 500; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.yours-ask:active, .rq-send:active { transform: scale(0.97); }
.rq { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: auto; }
.rq::backdrop { background: rgba(4, 58, 65, 0.55); }
.rq[open] { animation: rq-in 280ms var(--ease-out); }
@keyframes rq-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .rq[open] { animation: none; } }
.rq-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.rq-form, .rq-done { padding: clamp(1.5rem, 4vw, 2.5rem); }
.rq-title { font-size: var(--step-mid); line-height: 1.1; letter-spacing: -0.02em; padding-right: 2.5rem; }
.rq-intro { margin: 0.7rem 0 1.4rem; color: var(--muted); max-width: 42ch; }
.rq-label { display: block; margin: 1rem 0 0.4rem; font-size: var(--step-small); font-weight: 500; }
.rq-opt { font-weight: 400; color: var(--muted); }
.rq-label--group { margin-top: 1.4rem; margin-bottom: 0; }
.rq-label--group + .rq-pair .rq-label { margin-top: 0.5rem; font-weight: 400; color: var(--muted); }
.rq-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rq-message { min-height: 0; resize: vertical; line-height: 1.4; padding-block: 0.7rem; }
.rq-error { margin-top: 1rem; color: #a32a2a; }
.rq-send {
  margin-top: 1.5rem; display: inline-flex; align-items: center; min-height: 3.2rem; padding: 0 1.6rem; background: var(--ink); color: var(--bg);
  font-weight: 500; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.rq-send:disabled { opacity: 0.6; cursor: default; }
@media (hover: hover) and (pointer: fine) { .yours-ask:hover, .rq-send:hover { background: var(--muted); } }
@media (max-width: 30em) { .rq-pair { grid-template-columns: 1fr; } }

/* ---------- about: Michael, with the ridge as the motif ---------- */
.me-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center;
  padding: calc(60px + clamp(3rem, 6vw, 5.5rem)) var(--margin) var(--section);
}
.me-topo { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; pointer-events: none; }
.me-topo path { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0.11; vector-effect: non-scaling-stroke; }
.me-topo g { animation: topo-drift 28s var(--ease-in-out) infinite alternate; }
@keyframes topo-drift { from { transform: translate(-1.5%, 0); } to { transform: translate(1.5%, -2%); } }
.me-hero-text { position: relative; grid-column: 1 / span 7; }
.me-title { font-size: clamp(3.2rem, 1rem + 6.4vw, 7rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; }
.me-title .line { padding-bottom: 0.22em; margin-bottom: -0.22em; }
.me-name { position: relative; display: inline-block; white-space: nowrap; }
.me-swash { position: absolute; left: 0; right: 0.3em; bottom: -0.16em; width: calc(100% - 0.3em); height: 0.2em; overflow: visible; }
.me-swash { clip-path: inset(-50% 100% -50% 0); animation: swash 1100ms var(--ease-out) 900ms forwards; }
.me-swash path { fill: none; stroke: var(--field-ink2); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes swash { to { clip-path: inset(-50% -2% -50% 0); } }
.me-lede { margin-top: 1.8rem; font-size: var(--step-mid); line-height: 1.25; letter-spacing: -0.01em; max-width: 30ch; color: var(--muted); }
.me-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.me-btn {
  display: inline-flex; align-items: center; min-height: 3.2rem; padding: 0 1.6rem; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.me-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .me-btn:hover { background: var(--muted); } }

/* the portrait: a solid teal block offset behind, a spinning badge on the corner */
.me-photo-wrap { position: relative; grid-column: 9 / -1; margin: 0 18px 18px 0; }
.me-photo-wrap::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--field); }
.me-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.me-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.me-badge { position: absolute; left: -54px; bottom: 36px; width: 128px; height: 128px; }
.me-badge circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.me-badge text { font: 600 10.5px var(--font-text); letter-spacing: 0.12em; fill: var(--ink); }
.me-badge-spin { transform-origin: 60px 60px; animation: spin 22s linear infinite; }
.me-badge-peak { fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }


/* business background: a dark band */
.me-why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3.5rem; padding: var(--section) var(--margin); background: var(--field); color: var(--field-ink); }
.me-why-title { grid-column: 1 / span 6; font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.me-why-text { grid-column: 8 / -1; display: grid; gap: 1.1em; max-width: 52ch; color: var(--field-ink2); align-self: end; }
.me-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.me-facts div { background: #0b6470; padding: 1.4rem 1.5rem 1.6rem; }
.me-facts dt { font-size: var(--step-small); color: var(--field-ink2); }
.me-facts dd { margin: 0.5rem 0 0; font-size: 1.2rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }

/* how I work: icon cards that lift */
.me-how { padding: var(--section) var(--margin); }
.me-points { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.me-points li { position: relative; background: var(--surface); padding: clamp(1.5rem, 2.6vw, 2.5rem); transition: transform 320ms var(--ease-out), background-color var(--t-hover) ease; }
.me-points li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .me-points li:hover { transform: translateY(-6px); background: #e4ece9; }
  .me-points li:hover::after { transform: none; }
}
.me-icon { width: 44px; height: 44px; margin-bottom: 2.2rem; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.me-points h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.me-points p { color: var(--muted); }

/* why Ridge: the climb, drawn as you scroll */
.me-ridge { position: relative; padding-top: calc(var(--section) * 0.35); }
.me-ridge-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--margin); position: relative; z-index: 1; }
.me-ridge-title { grid-column: 1 / span 5; font-size: clamp(2.6rem, 1rem + 4.4vw, 5.5rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; }
.me-ridge-copy { grid-column: 7 / -1; display: grid; gap: 1.1em; max-width: 46ch; font-size: 1.15rem; }
.me-mtn { display: block; width: 100%; height: max(240px, calc(100vw * 460 / 1440)); margin-top: clamp(1.5rem, 4vw, 4rem); } /* full mountain at any width; phones crop the sides */
.me-mtn-far { fill: #cddcd8; }
.me-mtn-near { fill: var(--field); }
.me-trail-guide { fill: none; stroke: var(--field-ink2); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0.45; vector-effect: non-scaling-stroke; }
.me-trail { fill: none; stroke: var(--field-ink); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.me-flag path { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.me-flag-cloth { fill: var(--field-ink2); stroke: none !important; transform-origin: 1px -30px; animation: flutter 2.4s var(--ease-in-out) infinite alternate; }
@keyframes flutter { from { transform: skewY(-4deg) scaleX(0.94); } to { transform: skewY(4deg) scaleX(1.04); } }
.me-hiker { fill: var(--bg); stroke: var(--field); stroke-width: 3; }

@media (prefers-reduced-motion: reduce) {
  .me-topo g, .me-badge-spin, .me-flag-cloth { animation: none; }
  .me-swash { animation: none; clip-path: none; }
}

@media (max-width: 47.99em) {
  .me-hero { display: flex; flex-direction: column; align-items: stretch; gap: 3rem; padding: 104px 20px 88px; }
  .me-photo-wrap { max-width: 20rem; margin-left: 28px; }
  .me-badge { left: -36px; bottom: 22px; width: 92px; height: 92px; }
  .me-why { display: block; padding: 80px 20px; }
  .me-why-text { margin-top: 1.4rem; }
  .me-facts { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2.5rem; }
  .me-facts div { padding: 1rem 1rem 1.2rem; }
  .me-facts dd { font-size: 1.02rem; }
  .me-how { padding: 80px 20px; }
  .me-points { grid-template-columns: 1fr; margin-top: 1.6rem; }
  .me-icon { margin-bottom: 1.2rem; }
  .me-ridge { padding-top: 24px; }
  .me-ridge-text { display: block; padding: 0 20px; }
  .me-ridge-copy { margin-top: 1.2rem; }
  .me-mtn { margin-top: 1rem; }
}

/* ---------- home: the ridge theme from the About page ---------- */
.yours { position: relative; overflow: hidden; }
.yours > :not(.me-topo) { position: relative; }
.yours-title .me-swash { bottom: -0.12em; }
.mini-wrap { position: relative; margin: 0 18px 18px 0; }
.mini-wrap::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--field); }
.mini-wrap .mini { position: relative; }

@media (hover: hover) and (pointer: fine) {
  .ex-card .ex-pic { position: relative; transition: transform 420ms var(--ease-out); }
  .ex-card { position: relative; }
  .ex-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 11; background: var(--field); transform: translate(0, 0); transition: transform 420ms var(--ease-out); }
  .ex-card:hover::before { transform: translate(10px, 10px); }
  .ex-card:hover .ex-pic { transform: translate(-4px, -4px); }
}

.kit { position: relative; isolation: isolate; }
.kit-ridge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(70px, 9vw, 150px); }
.kit-ridge-far { fill: #cddcd8; }
.kit-ridge-near { fill: var(--field); }
.kit-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.kit-topo path { fill: none; stroke: var(--field-ink2); stroke-width: 1; opacity: 0.12; vector-effect: non-scaling-stroke; }

@media (max-width: 47.99em) {
  .mini-wrap { margin-right: 12px; }
  .mini-wrap::before { inset: 12px -12px -12px 12px; }
}

/* ---------- the bar, livelier: mark, sliding underlines, a button that sweeps ---------- */
.bar-peak { width: 26px; height: 17px; fill: var(--ink); transition: transform 420ms var(--ease-out); }
.bar-mark-pre { font-weight: 400; color: var(--muted); }
.bar-nav .link { position: relative; text-decoration: none; padding: 4px 0; }
.bar-nav .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 320ms var(--ease-out); }
.bar-nav .link[aria-current]::after { transform: scaleX(1); background: var(--field-ink2); }
.bar-btn { position: relative; overflow: hidden; isolation: isolate; gap: 0.5rem; }
.bar-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--muted); transform: translateX(-101%); transition: transform 420ms var(--ease-out); }
.bar-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: -4px; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .bar-mark:hover .bar-peak { transform: translateY(-3px); }
  .bar-nav .link:hover::after { transform: scaleX(1); transform-origin: left; }
  .bar-btn:hover { background: var(--ink); }
  .bar-btn:hover::before { transform: none; }
  .bar-btn:hover .bar-arrow { transform: translateX(4px); }
}

/* the hand-drawn nudge from the form to the sketch */
.watch { position: absolute; left: -132px; top: 24%; width: 124px; color: var(--muted); pointer-events: none; }
.watch-text { display: block; font: 600 1.45rem/1 "Caveat", cursive; transform: rotate(-6deg); margin-left: -4px; }
.watch-arrow { display: block; width: 120px; height: 96px; margin-top: -4px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; clip-path: inset(0 100% 0 0); animation: watch-draw 900ms var(--ease-out) 1300ms forwards; }
@keyframes watch-draw { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .watch-arrow { animation: none; clip-path: none; } }
@media (max-width: 63.99em) { .watch { display: none; } }
@media (max-width: 47.99em) {
  .bar-mark { font-size: 17px; gap: 0.4rem; }
  .bar-mark-words { display: grid; line-height: 1; }
  .bar-mark-pre { font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }
  .bar-peak { width: 20px; height: 13px; }
  .bar-arrow { display: none; }
}

/* ---------- questions, livelier: a thinking question mark, an ask card, items that open into cards ---------- */
.faq-side { align-self: start; }
@media (min-width: 48em) { .faq-side { position: sticky; top: 100px; } }
.faq-title { font-size: clamp(2.6rem, 1rem + 4.4vw, 5.5rem); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; }
.faq-q { display: inline-block; color: var(--field-ink2); margin-left: 0.04em; transform-origin: 50% 85%; animation: think 3.6s var(--ease-in-out) infinite; }
@keyframes think { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(9deg); } 90% { transform: rotate(-4deg); } }
.faq-ask { margin-top: 2rem; max-width: 22rem; background: var(--field); color: var(--field-ink); padding: 1.6rem 1.6rem 1.8rem; }
.faq-ask-icon { width: 36px; height: 36px; fill: none; stroke: var(--field-ink2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.faq-ask .faq-more { margin-top: 0.9rem; color: var(--field-ink); font-size: 1.15rem; line-height: 1.35; }
.faq-ask-btn {
  display: inline-flex; align-items: center; min-height: 2.9rem; margin-top: 1.3rem; padding: 0 1.2rem; background: var(--bg); color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.faq-ask-btn:active { transform: scale(0.97); }
.faq-item { position: relative; padding: 0 1.2rem; transition: background-color 320ms ease; }
.faq-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform 420ms var(--ease-out); }
.faq-item[open] { background: var(--surface); }
.faq-item[open]::before { transform: none; }
.faq-item summary > span { transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .faq-item:not([open]) summary:hover > span { transform: translateX(6px); }
  .faq-ask-btn:hover { background: var(--field-ink2); }
}
@media (prefers-reduced-motion: reduce) { .faq-q { animation: none; } }
@media (max-width: 47.99em) {
  .faq-ask { max-width: none; margin-top: 1.4rem; }
  .faq-item { padding: 0 0.9rem; }
}
