/* Forma Digital Studio — portfolio.
   Chic and confident: ivory paper, warm near-black ink, deep burgundy, champagne highlights.
   Fraunces for headings (bold but easy to read), Manrope for text, a hand-lettered script wordmark,
   and deep-wine bands for the trust strip, offer, featured price and footer.
   Tokens first; everything below reads from them. */
/* Project cards show each concept site's own hero photograph */
:root {
  --bg: #f6f1eb; --surface: #fdfaf6; --surface-2: #eee4dc; --ink: #1f1214; --muted: #5e4a4d; --line: #dccdc4;
  --accent: #6d1a2c; --accent-deep: #4a0f1d; --accent-ink: #fdf6ef; --accent-soft: #f3e4e2; --rose: #f0d9c4;
  --btn: #6d1a2c; --btn-hover: #4a0f1d; --btn-ink: #fdf6ef;
  --focus: #6d1a2c;
  --danger: #a3221b; --danger-ink: #ffffff; --ok: #6d1a2c; --ok-ink: #fdf6ef; --warn: #8a5a00;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 6px; --radius-sm: 4px; --arch: 999px 999px 6px 6px;
  --shadow: 0 1px 2px rgba(31,18,20,.05), 0 14px 34px rgba(74,15,29,.09);
  --shadow-lift: 0 2px 4px rgba(31,18,20,.06), 0 26px 56px rgba(74,15,29,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
  --maxw: 1240px; --section: 4.75rem; --theme-color: #f6f1eb;
  --demo-bg: #4a0f1d; --demo-ink: #fdf6ef;
  --footer-bg: #3a0b16; --footer-ink: #f6ece3; --footer-muted: #dcc4c0; --footer-line: rgba(246,236,227,.16);
}
/* Wine bands (offer, featured price): deep burgundy with champagne highlights */
.noir, .offer {
  --bg: #4a0f1d; --surface: #5a1526; --surface-2: #5a1526; --ink: #f6ece3; --muted: #dcc4c0; --line: rgba(246,236,227,.18);
  --accent: #f0d9c4; --accent-deep: #fff3e6; --accent-ink: #4a0f1d; --accent-soft: #5a1526; --rose: #f0d9c4;
  --btn: #f6ece3; --btn-hover: #ffffff; --btn-ink: #4a0f1d;
  --focus: #f6ece3;
}
[data-theme="dark"] {
  --bg: #150b0d; --surface: #1e1114; --surface-2: #281519; --ink: #f3e9e2; --muted: #c4b0ac; --line: #3a2428;
  --accent: #d4919b; --accent-deep: #e8b9bf; --accent-ink: #150b0d; --accent-soft: #2e171c; --rose: #f0d9c4;
  --btn: #8a2338; --btn-hover: #a12c44; --btn-ink: #ffffff;
  --focus: #e8b9bf;
  --danger: #ff8f86; --danger-ink: #2a0402; --ok: #d4919b; --ok-ink: #150b0d; --warn: #f0c060;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.45);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.45), 0 26px 56px rgba(0,0,0,.6);
  --theme-color: #150b0d;
  --footer-bg: #0f0709; --footer-ink: #f3e9e2; --footer-muted: #c4b0ac; --footer-line: #3a2428;
}
@media (min-width: 900px) { :root { --section: 7rem; } }
@media (min-width: 1200px) { :root { --section: 8.5rem; } }

body { font-size: 1.0625rem; font-weight: 500; background: var(--bg); color: var(--ink); }
@media (min-width: 768px) { body { font-size: 1.125rem; } }
::selection { background: var(--accent); color: var(--accent-ink); }
.prose { max-width: 65ch; }
h1, h2, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 6.4vw + .3rem, 6.2rem); line-height: .96; }
h2 { font-size: clamp(2.2rem, 4.2vw + .5rem, 4rem); line-height: 1; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 500; color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: .9rem; font-size: .74rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 2.75rem; height: 2px; background: currentColor; }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--muted); max-width: 54ch; }
a { color: var(--accent); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head { max-width: 48rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); }
.band { background: var(--surface-2); }
.ornament { display: block; text-align: center; color: var(--rose); letter-spacing: 1.2em; padding-left: 1.2em; font-size: .9rem; }

/* Buttons */
.btn { border-radius: 2px; font-weight: 800; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; padding: 1.15em 1.9em; }
.btn--primary { background: var(--btn); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-hover); color: var(--btn-ink); box-shadow: 0 12px 28px rgba(74,15,29,.28); transform: translateY(-1px); }

.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--light { background: #f6ece3; color: #4a0f1d; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.textlink { font-weight: 800; letter-spacing: .02em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.textlink::after { content: " →"; transition: margin .2s var(--ease); }
.textlink:hover::after { margin-left: .25em; }

/* Header */
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); backdrop-filter: saturate(1.3) blur(10px); }
.site-header.is-scrolled { border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-bar { min-height: 84px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand__script { width: 128px; height: auto; color: var(--ink); overflow: visible; }
.brand__sub { font-family: var(--font-display); font-size: .56rem; font-weight: 600; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand:hover .brand__script { color: var(--accent); }
.site-footer .brand { align-items: flex-start; }
.site-footer .brand__script { width: 200px; color: var(--footer-ink); }
.site-footer .brand__sub { font-size: .7rem; color: var(--footer-muted); margin-left: .3rem; }
.site-nav a { color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.site-nav a:hover { color: var(--accent); }
@media (max-width: 899px) { .site-nav { inset: 84px 0 auto 0; background: var(--bg); } .site-nav li a { font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -.01em; text-transform: none; } }
.header-cta { display: none; }
@media (min-width: 900px) {
  .header-cta { display: inline-flex; } .site-nav { margin-left: auto; } .header-tools { margin-left: 1.25rem; }
  .site-nav a { position: relative; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav a[aria-current="page"] { text-decoration: none; color: var(--accent); }
}
.icon-btn { border-color: var(--line); border-radius: 999px; }
.call-btn { color: var(--accent); }
@media (min-width: 900px) { .call-btn { display: none !important; } }
.nav-cta { margin-top: 1.25rem; }
@media (min-width: 900px) { .nav-cta { display: none; } }

/* Hero */
.hero { position: relative; padding-block: 3rem var(--section); overflow: hidden; }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } .hero { padding-top: 5rem; } }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.25rem; }
.hero-note { margin-top: 1.5rem; font-size: .95rem; color: var(--muted); }
.hero-visual { position: relative; padding-top: 14%; }
/* the arch sits behind the devices only, so the caption stays on the ivory page */
.devices::before { content: ""; position: absolute; z-index: -1; top: -22%; bottom: 7%; left: 16%; right: 14%; border-radius: var(--arch); background: radial-gradient(120% 80% at 30% 10%, #8a2a3e 0%, #6d1a2c 45%, #3a0b16 100%); }

.devices::after { content: ""; position: absolute; z-index: -1; top: -18%; bottom: 7%; left: 19%; right: 17%; border-radius: var(--arch); border: 1px solid rgba(255,248,243,.3); border-bottom: 0; pointer-events: none; }

/* Device mock-up */
.devices { position: relative; z-index: 1; aspect-ratio: 16 / 11; max-width: 620px; width: 100%; margin-inline: auto; }
.laptop { position: absolute; inset: 0 9% 6% 1%; }
.laptop__screen { position: absolute; inset: 0 0 7% 0; padding: 2.2%; background: #1c1214; border-radius: 14px 14px 4px 4px; box-shadow: 0 30px 60px rgba(30,6,12,.35); }
.laptop__base { position: absolute; left: -4%; right: -4%; bottom: 0; height: 7%; background: linear-gradient(#d8d0cb, #8f8580); border-radius: 0 0 14px 14px; }
.phone { position: absolute; right: 0; bottom: 0; width: 25%; aspect-ratio: 9 / 19; padding: 2.5% 2%; background: #1c1214; border-radius: 20px; box-shadow: 0 24px 50px rgba(30,6,12,.4); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #fff; }
.phone .screen { border-radius: 14px; }
.screen img, .screen svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .9s var(--ease); }
.screen .is-on { opacity: 1; }
.device-caption { position: relative; z-index: 1; margin-top: 1.25rem; text-align: center; font-size: .9rem; color: var(--muted); min-height: 1.5em; }
.device-caption a { font-weight: 600; }

/* Trust strip */
.trust { background: #6d1a2c; color: #fdf6ef; }
[data-theme="dark"] .trust { background: #3a0b16; color: #f3e9e2; }
.trust ul { list-style: none; margin: 0; padding: 1.15rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
@media (min-width: 900px) { .trust ul { display: flex; justify-content: space-between; } }
.trust li { display: flex; gap: .7rem; align-items: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; font-style: italic; }
.trust li::before { content: "✦"; font-style: normal; font-size: .75rem; opacity: .7; }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.card p:last-child { margin-bottom: 0; }
.problem { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: 1.5rem 0 0; }
.problem .num { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 3.8rem; line-height: 1; color: var(--accent); margin-bottom: 1rem; }
.problem p { color: var(--muted); }

/* Project cards */
.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project:hover, .project:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) { .project:hover, .project:focus-within { transform: none; } }
.project__shot { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; margin: .6rem .6rem 0; border-radius: calc(var(--radius) - 4px); }
.project__shot img, .project__shot svg { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.project:hover .project__shot svg, .project:hover .project__shot img { transform: scale(1.03); }
.project__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.project__body h2, .project__body h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1.05; letter-spacing: -.02em; }
.project__body p { margin: 0; color: var(--muted); font-size: 1rem; }
.project__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.label { display: inline-flex; align-self: flex-start; padding: .25rem .7rem; border-radius: 2px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }

/* Filters */
.filters { display: grid; gap: .9rem; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.chip { min-height: 42px; padding: .4rem 1.1rem; border: 1.5px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; transition: background .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.results-note { color: var(--muted); margin-bottom: 1.25rem; }

/* Services */
.price-card { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 2rem; }
.price-card h2, .price-card h3 { font-family: var(--font-display) !important; font-weight: 600 !important; font-size: 2rem !important; margin: 0; }
.price-card .price { font-family: var(--font-display); font-weight: 700; font-size: 3.8rem; line-height: 1; color: var(--accent); margin: 0; }
.price-card .price small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.price-card .meta { font-weight: 600; color: var(--muted); font-size: .95rem; }
.price-card ul { padding-left: 1.2rem; margin: 0; }
.price-card li { margin-bottom: .35rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card--featured { background: #4a0f1d; color: #f6ece3; border-color: #4a0f1d; box-shadow: var(--shadow-lift); --accent: #f0d9c4; --muted: #dcc4c0; --ink: #f6ece3; --line: rgba(246,236,227,.18); }
.price-card--featured .price { color: #f0d9c4; } .price-card--featured .meta, .price-card--featured .price small, .price-card--featured .muted { color: #dcc4c0; }
.price-card--featured a:not(.btn) { color: #f6ece3; }
.price-card--featured .ticks li::before { border-color: #f0d9c4; }
.price-card--featured .btn--primary { background: #f6ece3; color: #4a0f1d; }
.price-card--featured .btn--primary:hover { background: #ffffff; color: #4a0f1d; }
[data-theme="dark"] .price-card--featured { background: #3a0b16; border-color: #6d1a2c; }
[data-theme="dark"] .price-card--featured .price { color: var(--accent); }
[data-theme="dark"] .price-card--featured .meta, [data-theme="dark"] .price-card--featured .muted, [data-theme="dark"] .price-card--featured .price small { color: var(--muted); }
[data-theme="dark"] .price-card--featured a:not(.btn) { color: var(--accent); }
[data-theme="dark"] .price-card--featured .ticks li::before { border-color: var(--accent); }
[data-theme="dark"] .price-card--featured .btn--primary { background: var(--btn); color: var(--btn-ink); }
.badge { position: absolute; top: -.85rem; left: 2rem; padding: .35rem .85rem; border-radius: 2px; background: #f0d9c4; color: #4a0f1d; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.crosses li::before { border: 0; width: .9rem; height: .9rem; top: .4em; background: linear-gradient(45deg, transparent 44%, var(--muted) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--muted) 44% 56%, transparent 56%); transform: none; }

/* Process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.steps li::before { content: "No. 0" counter(step); display: block; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.7rem; line-height: 1; color: var(--accent); margin-bottom: 1rem; }
.steps h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.steps p { color: var(--muted); margin: 0; }

/* Offer band */
.offer { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); border-radius: 4px; padding: clamp(2.25rem, 6vw, 4.5rem); display: grid; gap: 1.75rem; align-items: center; }
[data-theme="dark"] .offer { background: #2a0911; }
.offer::before { content: ""; position: absolute; right: -6%; top: -30%; width: 46%; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; border: 1px solid rgba(240,217,196,.22); box-shadow: 0 0 0 28px rgba(246,236,227,.04), 0 0 0 56px rgba(246,236,227,.03); pointer-events: none; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.6fr auto; } }
.offer > * { position: relative; }
.offer h2 { margin-bottom: .6rem; }
.offer h2 em { color: var(--rose); }
.offer p { margin: 0; opacity: .9; max-width: 55ch; }
.offer a:not(.btn) { color: inherit; }

/* About */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 380px 1fr; gap: 5rem; } }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.portrait svg { width: 100%; height: 100%; }
.skills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.skills li { padding: .4rem .9rem; border-radius: 2px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }

/* FAQ */
.faq { max-width: 52rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; cursor: pointer; list-style: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--font-body); font-size: 1.2rem; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.4rem; color: var(--muted); max-width: 65ch; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.4rem, 5vw + .5rem, 4.4rem); }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2.25rem; }

/* Before / after slider */
.ba { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lift); user-select: none; touch-action: pan-y; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer svg, .ba__layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #ffffff; pointer-events: none; }
.ba__handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #6d1a2c; color: #fdf6ef; font-size: 1.15rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__range:focus-visible + .ba__handle::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba__tag { position: absolute; top: .8rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(31,18,20,.82); color: #fdf6ef; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba__tag--before { left: .8rem; } .ba__tag--after { right: .8rem; }
.caption { font-size: .92rem; color: var(--muted); margin-top: .85rem; }

/* Inner page header */
.page-head { padding-block: 3.5rem 2.5rem; }
@media (min-width: 900px) { .page-head { padding-block: 5.5rem 3.5rem; } }
.page-head .lead { margin-top: 1.25rem; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Case study */
.shots { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .shots { grid-template-columns: 3fr 1fr; } }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow); }
.shot--desktop { aspect-ratio: 16 / 10; } .shot--mobile { aspect-ratio: 390 / 844; max-width: 280px; border-radius: 26px; }
.shot img, .shot svg { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.swatches { display: flex; flex-wrap: wrap; gap: 1.1rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.swatches li { display: grid; gap: .4rem; font-size: .85rem; color: var(--muted); }
.swatches span.sw { width: 76px; height: 96px; border-radius: 999px 999px 8px 8px; border: 1px solid var(--line); }
.scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 720px) { .scores { grid-template-columns: repeat(4, 1fr); } }
.score { text-align: center; padding: 1.25rem .5rem; }
.score b { display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--accent); }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.case-section + .case-section { border-top: 1px solid var(--line); }

/* Quiz */
.quiz { max-width: 46rem; }
.quiz fieldset { margin-bottom: 1.75rem; }
.quiz legend { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: .75rem; }
.options { display: grid; gap: .5rem; }
.option { display: flex; gap: .75rem; align-items: center; padding: .85rem 1.1rem; border: 1.5px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.option:hover { border-color: var(--accent); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; }
.quiz-result { margin-top: 2rem; border: 1px solid var(--accent); box-shadow: var(--shadow); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 4.5rem; } }
.side-panel { position: sticky; top: 6.5rem; background: var(--surface-2); border: 0; }
.side-panel dl { margin: 0; display: grid; gap: 1.1rem; }
.side-panel dt { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.side-panel dd { margin: 0; font-weight: 500; }
.side-panel dd a { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; text-decoration: none; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--accent-soft); border-left: 3px solid var(--accent); }
.thanks h2 { margin-top: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { border-width: 1px; border-radius: 10px; background: var(--surface); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); }

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: 2.1rem; margin-top: 2.75rem; }
.legal-note { padding: 1rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 5rem 2.5rem; font-size: .98rem; }
.site-footer .brand { color: var(--footer-ink); font-size: 2rem; }
.site-footer .brand svg { color: var(--footer-ink); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--footer-ink); text-decoration-color: color-mix(in srgb, var(--footer-ink) 40%, transparent); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer .muted { color: var(--footer-muted); }
.site-footer :focus-visible { outline-color: var(--footer-ink); }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.4rem; line-height: 1.35; color: var(--footer-muted); margin-top: 1.1rem; max-width: 26ch; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--footer-line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--footer-muted); font-size: .9rem; }

/* 404 */
.notfound { padding-block: 6rem; }

/* Small screens: keep the header on one line, and the portrait a sensible size */
.site-nav .btn--primary { color: var(--btn-ink); }
.site-nav .btn--primary::after { display: none; }
@media (max-width: 520px) {
  .brand__script { width: 104px; }
  .brand__sub { font-size: .48rem; letter-spacing: .42em; margin-right: -.42em; }
  .header-bar { gap: .5rem; }
  .header-tools { gap: .3rem; }
  .header-tools .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 899px) { .portrait { max-width: 320px; } figure:has(.portrait) { justify-self: center; width: 100%; max-width: 320px; } }

/* The email always sits on one line (app.js shrinks it slightly if it would not fit) */
a[data-cfg-href="EMAIL"]:has(.email-line) { display: block; max-width: 100%; min-width: 0; }
.email-line { display: block; width: 0; min-width: 100%; white-space: nowrap; overflow: visible; }
dd, .contact-list dd, .footer-grid > * { min-width: 0; }

.hero h1 { font-size: clamp(2.9rem, 4.6vw + .4rem, 5.4rem); line-height: .98; }
.btn.btn--small { min-height: 40px; font-size: .66rem; letter-spacing: .14em; padding: .95em 1.15em; }
.ba__tag { border-radius: 2px; }

/* ---------- Art direction ---------- */
.hero h1 { font-weight: 700; }
.hero h1 em { color: var(--accent); }
.section-head h2, .cta-band h2, .offer h2 { font-weight: 700; }
.offer h2 em { color: var(--rose); font-weight: 500; }
.offer .btn--light { background: #f6ece3; color: #4a0f1d; }
.offer .btn--light:hover { background: #ffffff; }
h1, h2, .display, .project__body h2, .project__body h3, .steps h3, .faq summary, .price-card h2, .price-card h3 { font-variation-settings: "SOFT" 30, "WONK" 0; }
h1 em, h2 em, .display em { font-variation-settings: "SOFT" 60, "WONK" 1; }
::selection { background: #6d1a2c; color: #fdf6ef; }

/* Contact form: spam trap (off-screen, never shown to people) and the send-error message */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 1.25rem; padding: 1rem 1.1rem; border: 1.5px solid var(--danger); border-radius: var(--radius-sm); background: var(--surface-2); }
.form-status p { margin: 0 0 .5rem; }
.form-status p:last-child { margin-bottom: 0; }
.form-status strong { color: var(--danger); }
.form-status a:has(.email-line) { display: block; max-width: 100%; min-width: 0; }

/* Phones: everything a step smaller (text-size buttons still scale on top of this) */
@media (max-width: 599px) {
  html { font-size: 93.75%; }
  html[data-text="lg"] { font-size: 105.5%; }
  html[data-text="xl"] { font-size: 117%; }
  body { font-size: 1rem; }
  h1 { font-size: clamp(2.45rem, 9vw, 3rem); }
  .hero h1 { font-size: clamp(2.35rem, 8.6vw, 2.9rem); }
  h2 { font-size: clamp(1.85rem, 7vw, 2.2rem); }
  .cta-band h2 { font-size: clamp(2rem, 7.5vw, 2.4rem); }
  .lead { font-size: 1.08rem; }
}

/* The + in the phone number: heavier, so it doesn't look thin beside the digits */
.tel-plus { font-family: var(--font-body); font-weight: 800; }
