/* Softfire Template Collection — showcase index styles
   1. Tokens  2. Base  3. Header  4. Hero  5. Industries  6. Toolbar  7. Cards  8. Details & modal  9. How  10. Footer */

/* ---------- 1. Tokens ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F5F1EA;
  --bg-2: #EDE6DA;
  --surface: #FFFFFF;
  --ink: #16181D;
  --ink-2: #3A3D45;
  --muted: #6A6C73;
  --line: #E0D8CB;
  --fire: #E4572E;
  --fire-deep: #A93A16;
  --fire-soft: #FBE3D8;
  --ready: #1F7A4D;
  --building: #B26A00;
  --planned: #5E6470;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);

  --space-s: clamp(0.75rem, 0.7rem + 0.3vw, 1rem);
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  --space-xl: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(22, 24, 29, .06), 0 2px 8px rgba(22, 24, 29, .04);
  --shadow-m: 0 2px 6px rgba(22, 24, 29, .06), 0 18px 40px -18px rgba(22, 24, 29, .28);
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215;
    --bg-2: #17191D;
    --surface: #1C1E23;
    --ink: #F2EEE7;
    --ink-2: #D2CEC7;
    --muted: #A3A099;
    --line: #2D3036;
    --fire: #FF7A4D;
    --fire-deep: #E4572E;
    --fire-soft: #3A2219;
    --ready: #5BD49A;
    --building: #F0B44C;
    --planned: #A6ACB8;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-m: 0 20px 40px -20px rgba(0, 0, 0, .7);
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 560; line-height: 1.1; letter-spacing: -0.015em; font-variation-settings: "SOFT" 50, "opsz" 72; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fire); color: #fff; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; }
.section { padding-block: var(--space-xl); }
.section-head { max-width: 46rem; margin-bottom: var(--space-l); }
.section-head h2 { font-size: var(--step-3); margin-block: .5rem .9rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fire-deep); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--fire); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--fire-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- 3. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: var(--space-m); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.logo-word { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; line-height: 1; display: flex; flex-direction: column; }
.logo-sub { font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.main-nav a:hover, .main-nav a[aria-current="true"] { background: var(--bg-2); color: var(--ink); }
@media (max-width: 860px) { .header-cta { display: none; } }
@media (max-width: 560px) {
  .logo-sub { display: none; }
  .main-nav a { padding: 0 .55rem; font-size: .88rem; }
  .main-nav li:last-child { display: none; }
}

/* ---------- 4. Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) var(--space-l); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, color-mix(in srgb, var(--fire) 22%, transparent), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr 1fr; } }
.hero h1 { font-size: var(--step-4); margin-block: 1.1rem 1.25rem; max-width: 15ch; font-weight: 520; }
.hero h1 em { font-style: italic; color: var(--fire-deep); font-weight: 480; }
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--fire); } }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 36rem; line-height: 1.55; }
.pulse { width: .55rem; height: .55rem; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 0 color-mix(in srgb, var(--fire) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-search { margin-top: var(--space-m); display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; box-shadow: var(--shadow-m); max-width: 34rem; }
.hero-search svg { flex: none; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem .25rem; font-size: 1rem; outline: none; }
.hero-search:focus-within { outline: 3px solid var(--fire); outline-offset: 3px; }
.hero-popular { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.hero-popular a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: border-color .2s, background-color .2s; }
.hero-popular a:hover { border-color: var(--ink); background: var(--surface); }
@media (max-width: 480px) {
  .hero-search { flex-wrap: wrap; border-radius: var(--radius-l); padding: .5rem; }
  .hero-search svg { margin-left: .6rem; }
  .hero-search .btn { width: 100%; }
}

.hero-collage { position: relative; aspect-ratio: 1 / .92; max-width: 620px; width: 100%; justify-self: center; }
.hero-collage .card-media { position: absolute; border-radius: var(--radius-m); box-shadow: var(--shadow-m); border: 5px solid var(--surface); transition: transform .5s var(--ease); }
.hero-collage .c0 { width: 58%; left: 0; top: 6%; transform: rotate(-4deg); z-index: 2; }
.hero-collage .c1 { width: 52%; right: 0; top: 0; transform: rotate(3deg); z-index: 1; }
.hero-collage .c2 { width: 50%; right: 4%; bottom: 2%; transform: rotate(-2deg); z-index: 3; }
.hero-collage .c3 { width: 42%; left: 6%; bottom: 0; transform: rotate(5deg); z-index: 1; }
.hero-collage .c4 { width: 34%; left: 38%; top: 36%; transform: rotate(-1deg); z-index: 4; }
.hero-collage:hover .c0 { transform: rotate(-6deg) translate(-6px, -4px); }
.hero-collage:hover .c1 { transform: rotate(5deg) translate(6px, -6px); }
.hero-collage:hover .c2 { transform: rotate(-3deg) translate(6px, 6px); }
.hero-collage:hover .c3 { transform: rotate(7deg) translate(-6px, 6px); }
.hero-collage .art-line { display: none; }
@media (max-width: 979px) { .hero-collage { max-width: 520px; } }
@media (max-width: 560px) { .hero-collage { aspect-ratio: 1 / .8; } .hero-collage .c3, .hero-collage .c4 { display: none; } .hero-collage .c2 { width: 60%; } }

.stats { margin-top: var(--space-l); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 1.4rem 1rem 0 0; display: flex; flex-direction: column; gap: .2rem; }
.stats strong { font-family: var(--font-display); font-size: var(--step-3); font-weight: 500; line-height: 1; }
.stats span { color: var(--muted); font-size: var(--step--1); font-weight: 600; }

/* ---------- 5. Industries ---------- */
.industries { background: var(--ink); color: var(--bg); }
.industries .eyebrow { color: var(--fire); }
.industries .section-head p:not(.eyebrow) { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
@media (prefers-color-scheme: dark) { .industries { background: var(--bg-2); color: var(--ink); } .industries .section-head p:not(.eyebrow) { color: var(--muted); } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1px; background: color-mix(in srgb, currentColor 16%, transparent); border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: var(--radius-m); overflow: hidden; }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile { padding: 1rem .9rem; } .tile-name { font-size: 1rem; } }
.tile { position: relative; display: grid; gap: .3rem; height: 100%; padding: 1.3rem 1.2rem 1.15rem; text-decoration: none; background: var(--ink); transition: background-color .25s; }
@media (prefers-color-scheme: dark) { .tile { background: var(--bg-2); } }
.tile:hover { background: color-mix(in srgb, var(--fire) 18%, var(--ink)); }
@media (prefers-color-scheme: dark) { .tile:hover { background: color-mix(in srgb, var(--fire) 14%, var(--bg-2)); } }
.tile-no { font-family: var(--font-display); font-style: italic; color: var(--fire); font-size: .95rem; }
.tile-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; font-weight: 520; }
.tile-count { font-size: var(--step--1); opacity: .65; font-weight: 600; }
.tile-dots { display: flex; margin-top: .5rem; }
.tile-dots span { width: 18px; height: 18px; border-radius: 50%; margin-right: -5px; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px rgba(255, 255, 255, .35); }
@media (prefers-color-scheme: dark) { .tile-dots span { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px rgba(255, 255, 255, .3); } }

/* ---------- 6. Toolbar ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); padding-block: .75rem; }
.no-js .toolbar { display: none; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.field { position: relative; display: flex; align-items: center; }
.field-search { flex: 1 1 260px; }
.field-search svg { position: absolute; left: .95rem; color: var(--muted); pointer-events: none; }
.field input, .field select { width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .55rem 1rem; transition: border-color .2s; }
.field-search input { padding-left: 2.6rem; }
.field select { padding-right: 2.4rem; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236A6C73' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; cursor: pointer; }
.field input:hover, .field select:hover { border-color: var(--muted); }
.segmented { display: flex; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow-x: auto; max-width: 100%; }
.segmented label { position: relative; flex: none; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: 0 .9rem; border-radius: 999px; font-size: .88rem; font-weight: 650; color: var(--muted); transition: background-color .2s, color .2s; }
.segmented b { font-weight: 700; font-size: .75rem; opacity: .7; }
.segmented input:checked + span { background: var(--ink); color: var(--bg); }
.segmented input:focus-visible + span { outline: 3px solid var(--fire); outline-offset: 1px; }
@media (max-width: 700px) { .toolbar-row > .field:not(.field-search) { flex: 1 1 100%; } .segmented { flex: 1 1 100%; } }

.result-count { margin-block: var(--space-m) 0; color: var(--muted); font-weight: 600; font-size: var(--step--1); }

/* ---------- 7. Groups & cards ---------- */
.group { padding-top: var(--space-l); }
.group[hidden] { display: none; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.group-no { font-family: var(--font-display); font-style: italic; color: var(--fire-deep); font-size: var(--step-1); }
@media (prefers-color-scheme: dark) { .group-no { color: var(--fire); } }
.group-head h3 { font-size: var(--step-2); }
.group-count { margin-left: auto; color: var(--muted); font-size: var(--step--1); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(1rem, .8rem + 1vw, 1.75rem); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card[hidden] { display: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.card:target { outline: 3px solid var(--fire); outline-offset: 3px; }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.swatch-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 8px; }
.swatch-bar span { flex: 1; }

.art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; padding: 1.3rem 1.3rem 1.9rem; background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 55%, transparent) 0, transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--a) 92%, #fff) 0%, var(--a) 70%);
  color: var(--b); overflow: hidden; }
.art::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; right: -12%; top: -14%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--b) 40%, transparent); }
.art::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; right: 12%; top: 18%; border-radius: 50%; background: var(--c); opacity: .9; mix-blend-mode: normal; }
.art-brand { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 560; line-height: 1.05; letter-spacing: -.02em; max-width: 12ch; }
.art-line { position: relative; z-index: 1; font-size: .85rem; font-weight: 600; opacity: .85; max-width: 26ch; line-height: 1.35; }

.card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.3rem 1.3rem; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tid { font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .02em; border: 1px solid currentColor; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ready { color: var(--ready); }
.badge-building { color: var(--building); }
.badge-planned { color: var(--planned); }
.card-title { font-size: 1.32rem; line-height: 1.18; }
.card-brand { color: var(--muted); font-size: .9rem; font-weight: 600; }
.card-brand em { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; color: var(--ink-2); }
.card-hook { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--ink-2); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.chips li, .d-tags li { padding: .22rem .6rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .76rem; font-weight: 650; color: var(--ink-2); }
.card-actions { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.status-note { font-size: .85rem; font-weight: 700; color: var(--muted); }
.status-note::before { content: "◷ "; }

/* ---------- 8. Details & modal ---------- */
.card-details { border-top: 1px dashed var(--line); padding-top: .65rem; }
.card-details summary { cursor: pointer; font-weight: 700; font-size: .9rem; min-height: 44px; display: flex; align-items: center; gap: .45rem; list-style: none; color: var(--ink); }
.card-details summary::-webkit-details-marker { display: none; }
.card-details summary::after { content: "+"; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 1.1rem; transition: transform .2s, background-color .2s; }
.card-details summary:hover::after { background: var(--bg); }
.card-details[open] summary::after { transform: rotate(45deg); }
.details-body { display: grid; gap: .55rem; padding-block: .4rem .2rem; font-size: .92rem; color: var(--ink-2); }
.details-body h4 { font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.d-art { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.d-grid { display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.d-palette { display: flex; flex-direction: column; gap: .35rem; margin-top: .35rem; }
.d-palette li { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); flex: none; }
.d-slides { counter-reset: s; display: grid; gap: .5rem; }
.d-slides li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; column-gap: .4rem; }
.d-slides li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-style: italic; color: var(--fire-deep); }
.d-slides strong { color: var(--ink); font-weight: 700; }
.d-slides span { font-size: .84rem; color: var(--muted); }
.d-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.d-path code { font-size: .8rem; background: var(--bg); padding: .15rem .4rem; border-radius: 6px; word-break: break-all; }
.credit { font-size: .8rem; color: var(--muted); }

.js .card-details .details-body { display: none; }
.js .card-details[open] .details-body { display: none; }

.modal { width: min(100% - 2rem, 980px); max-height: min(92vh, 860px); padding: 0; border: 0; border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.modal::backdrop { background: rgba(14, 15, 18, .62); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-inner { display: grid; max-height: inherit; }
@media (min-width: 860px) { .modal-inner { grid-template-columns: 1fr 1.15fr; } }
.modal-media .card-media { height: 100%; aspect-ratio: auto; min-height: 220px; }
@media (max-width: 859px) { .modal-media .card-media { aspect-ratio: 16 / 9; min-height: 0; } }
.modal-media .art-brand { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.modal-body { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); overflow-y: auto; max-height: min(92vh, 860px); display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 859px) { .modal-inner { overflow-y: auto; } .modal-body { max-height: none; overflow: visible; } }
.modal-top { display: flex; justify-content: space-between; align-items: center; }
.modal h2 { font-size: var(--step-2); }
.modal .details-body { display: grid !important; font-size: .95rem; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background-color .2s; }
.icon-btn:hover { background: var(--bg); }
.modal-nav { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

/* ---------- 9. How it works ---------- */
.how { background: var(--bg-2); }
.steps { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.steps li { position: relative; padding: 1.8rem; background: var(--surface); border-radius: var(--radius-l); border: 1px solid var(--line); }
.step-no { font-family: var(--font-display); font-style: italic; font-size: var(--step-3); color: var(--fire); line-height: 1; }
.steps h3 { font-size: var(--step-1); margin-block: .9rem .5rem; }
.steps p { color: var(--muted); }
.promises { margin-top: var(--space-l); display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.promises li { display: flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--ink-2); }
.promises li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--fire) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- 10. Footer ---------- */
.site-footer { padding-block: var(--space-l); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; justify-content: space-between; }
.fine { color: var(--muted); font-size: var(--step--1); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
