@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(/fonts/BricolageGrotesque-var.woff2) format('woff2');
  font-weight: 300 800; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url(/fonts/InstrumentSans-var.woff2) format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}

:root {
  --ink: #15171c;          /* the logo's black */
  --ink-2: #4f4c46;
  --muted: #5f5b54;
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --line: #d9d3c7;
  --signal: #e0482a;       /* the caret: used sparingly */
  --signal-ink: #b9361b;   /* signal for small text, 4.9:1 on paper */
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; font-weight: 600; margin: 0; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- keys (buttons) ---------- */
.key {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 11px 20px 13px; border-radius: 10px; text-decoration: none;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; letter-spacing: -0.005em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.key:hover { background: #23262d; }
.key:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .45); }
.key-sm { min-height: 38px; padding: 7px 14px 9px; font-size: 14px; border-radius: 8px; }
.key-light { background: var(--paper); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.key-light:hover { background: #fff; }
.arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; white-space: nowrap; }
.arrow:hover { color: var(--signal-ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { height: 64px; display: flex; align-items: center; gap: 36px; }
.brand img { height: 17px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .nav { display: none; } .top-in > .key { margin-left: auto; } }

/* ---------- caret + keycap ---------- */
.caret { display: inline-block; width: .08em; min-width: 3px; height: .82em; margin-left: .08em; vertical-align: -.04em; background: var(--signal); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cap {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; margin-right: 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--paper-2);
}
.eyebrow { display: flex; align-items: center; font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 56px; align-items: end; }
.hero h1 { margin-top: 24px; font-size: clamp(44px, 6.2vw, 86px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.hero-side { padding-bottom: 10px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.hero-show { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-side { max-width: 34em; } }

.cap-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 48px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: 16px; }
.cap-row strong { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.cap-row p { color: var(--ink-2); }
.cap-row .arrow { color: var(--ink); margin-left: 4px; }
.idx { font-family: var(--display); color: var(--signal-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.label { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .cap-row { grid-template-columns: 1fr; } }

/* ---------- before / after ---------- */
.ba { position: relative; overflow: hidden; border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(21, 23, 28, .12), 0 30px 60px -30px rgba(21, 23, 28, .35); aspect-ratio: 16 / 10; touch-action: pan-y; user-select: none; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.ba-new { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 0 1px rgba(21, 23, 28, .25); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  display: grid; place-items: center; background: var(--signal); color: #fff;
  box-shadow: 0 0 0 3px var(--paper), 0 8px 20px rgba(0, 0, 0, .3);
}
.ba-tag { position: absolute; top: 14px; padding: 5px 10px 6px; border-radius: 7px; font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity .2s; }
.ba-tag-old { right: 14px; background: rgba(21, 23, 28, .82); color: var(--paper); }
.ba-tag-new { left: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px rgba(21, 23, 28, .15); }
.ba { cursor: ew-resize; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.ba-range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.ba:has(.ba-range:focus-visible) { outline: 2px solid var(--signal); outline-offset: 4px; }
.ba:has(.ba-range:focus-visible) .ba-knob { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
@media (max-width: 640px) { .ba { aspect-ratio: 600 / 954; border-radius: 12px; } .ba-tag { top: 10px; font-size: 12px; } .ba-tag-old { right: 10px; } .ba-tag-new { left: 10px; } }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; padding-top: 18px; border-top: 1px solid var(--ink); margin-bottom: clamp(40px, 6vw, 72px); }
.sec-n { font-size: 15px; font-weight: 600; color: var(--ink); }
.sec-n::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 10px; background: var(--signal); border-radius: 2px; vertical-align: 1px; }
.sec-head h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 17ch; }
.sec-sub { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* work */
.pieces { display: grid; gap: clamp(64px, 8vw, 112px); }
.piece { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: start; }
.piece-meta { position: sticky; top: 96px; }
.piece .idx { font-size: 15px; }
.piece h3 { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.022em; }
.trade { margin-top: 6px; font-size: 17px; color: var(--ink-2); }
.piece .label { margin-top: 14px; }
.piece .line { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.piece .arrow { display: inline-block; margin-top: 18px; }
.aside { margin-top: clamp(56px, 7vw, 88px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) { .piece { grid-template-columns: 1fr; } .piece-meta { position: static; } }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 32px 8px 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { display: block; font-family: var(--display); font-size: clamp(56px, 6vw, 80px); line-height: 1; font-weight: 300; color: var(--signal); letter-spacing: -0.04em; }
.steps h3 { margin-top: 28px; font-size: 24px; letter-spacing: -0.015em; }
.steps p { margin-top: 10px; color: var(--ink-2); max-width: 26em; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
  .step-n { font-size: 48px; grid-row: span 2; }
  .steps h3 { margin-top: 2px; }
}

/* small on purpose */
.small-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: start; }
.person { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start; }
.person img { width: 132px; height: 132px; border-radius: 12px; object-fit: cover; filter: grayscale(.15); }
.person .big { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; letter-spacing: -0.018em; font-weight: 500; }
.sig { margin-top: 18px; color: var(--muted); font-size: 15px; }
.quote { margin: 0; padding: 24px 0 0 28px; border-left: 2px solid var(--signal); }
.quote blockquote { margin: 0; }
.quote p { font-size: 18px; line-height: 1.55; }
.quote figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .small-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; gap: 20px; } .person img { width: 96px; height: 96px; } }

/* packages */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan { padding: 28px 28px 32px 0; }
.plan + .plan { padding-left: 28px; border-left: 1px solid var(--line); }
.plan h3 { font-size: 26px; letter-spacing: -0.018em; }
.fits { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.plan li { position: relative; padding-left: 18px; line-height: 1.4; }
.plan li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 1.5px; background: var(--ink); }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin-top: 28px; color: var(--ink-2); font-size: 16px; }
.terms strong { color: var(--ink); }
@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { padding-left: 0; border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .plans, .terms { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 24px 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
}

/* faq */
.qa { border-top: 1px solid var(--line); margin-left: calc(33.333% + 16px); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font-family: var(--display); font-size: clamp(19px, 1.9vw, 23px); font-weight: 500; letter-spacing: -0.012em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 1.6px; background: var(--ink); transition: transform .2s ease; }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0); }
.qa summary:hover { color: var(--signal-ink); }
.qa details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 40em; }
@media (max-width: 760px) { .qa { margin-left: 0; } }

/* contact */
.contact { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 144px) 0 clamp(64px, 8vw, 96px); }
.contact .sec-n { color: var(--paper); padding-top: 18px; border-top: 1px solid rgba(247, 245, 240, .35); }
.contact h2 { margin-top: 40px; font-size: clamp(30px, 3.6vw, 46px); max-width: 22ch; font-weight: 500; color: #d9d5cc; }
.mail { display: inline-block; margin-top: 28px; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 6.4vw, 88px); letter-spacing: -0.035em; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.contact .actions { margin-top: 40px; }
.contact .arrow:hover { color: #fff; }
.where { margin-top: 64px; font-size: 15px; color: #bdb8ae; }

/* footer */
.foot { background: var(--ink); color: #bdb8ae; font-size: 14px; padding: 0 0 40px; }
.foot-in { position: relative; padding-top: 24px; display: grid; gap: 6px; }
.foot-in::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(247, 245, 240, .18); }
.foot-in p:first-child { max-width: 60em; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .key, .qa summary::after { transition: none; }
}
@media (max-width: 520px) { .mail { font-size: 6.6vw; } }
