/* American Dream Epoxy — brand: brush-stroke flag red/white/blue over black smoke.
   Interface language: Apple-style (system type, translucent materials, spring motion, restraint). */
:root {
  --red: #c1121f;
  --red-600: #9d0e19;
  --red-50: #fdecee;
  --blue: #2e2a8c;
  --blue-600: #221f6e;
  --blue-50: #ecebfa;
  --ink: #0f0f12;
  --charcoal: #18181d;
  --smoke: #26262d;
  --paper: #f5f5f7;
  --white: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9de;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .06), 0 24px 56px rgba(0, 0, 0, .2);

  /* System font first: it ships optical sizing, tracking tables and legibility tuning. */
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --display: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --script: 'Lobster', 'Brush Script MT', cursive;
  --container: 1180px;
  --header-h: 64px;

  /* Motion: springs sampled into linear() so plain CSS transitions retarget from the live value.
     --spring is critically damped (no overshoot, the default). --spring-bounce (~0.8 damping)
     is reserved for momentum-style arrivals such as the color modal. */
  --spring: linear(0, 0.0418, 0.1362, 0.2511, 0.3681, 0.4774, 0.5743, 0.6575, 0.727, 0.7843, 0.8307, 0.8678, 0.8974, 0.9207, 0.9389, 0.9531, 0.9641, 0.9726, 0.9792, 0.9842, 0.988, 0.9909, 0.9931, 0.9948, 0.9961, 0.9971, 0.9978, 0.9984, 1);
  --spring-bounce: linear(0, 0.0625, 0.2019, 0.3665, 0.5259, 0.6646, 0.7765, 0.8615, 0.9225, 0.9638, 0.9899, 1.005, 1.0124, 1.015, 1.0147, 1.0129, 1.0104, 1.008, 1.0057, 1.0039, 1.0025, 1.0014, 1.0007, 1.0003, 1, 0.9998, 0.9998, 0.9998, 1);

  /* Materials: translucent layers whose weight encodes hierarchy. */
  --mat-dark: rgba(18, 18, 22, .84);
  --mat-dark-thick: rgba(18, 18, 22, .92);
  --mat-sheet: rgba(18, 18, 22, .96);
  --mat-light: rgba(255, 255, 255, .72);
  --mat-glass: rgba(255, 255, 255, .1);
  --mat-edge: rgba(255, 255, 255, .14);
  --blur: blur(20px) saturate(180%);
  --blur-thick: blur(32px) saturate(180%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--red); }

/* Tracking and leading are size-specific: big type tightens, small type opens up. */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0 0 .5em; color: var(--ink); font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.028em; }
h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.016em; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
.script { font-family: var(--script); text-transform: none; color: var(--red); font-weight: 400; letter-spacing: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 10px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); }

/* ---------- Buttons ----------
   Feedback lives on press-down and is instant; release springs back. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; letter-spacing: -.011em; text-decoration: none; line-height: 1.2; transition: transform .45s var(--spring), background-color .2s, border-color .2s, color .2s, opacity .2s; white-space: nowrap; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active { transform: scale(.97); transition: transform 100ms ease-out, background-color .2s, border-color .2s, color .2s; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-600); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-600); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: rgba(255, 255, 255, .86); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { color: var(--ink); background: color-mix(in srgb, currentColor 8%, transparent); }
.btn--sm { padding: 9px 18px; font-size: .9375rem; }
.btn--lg { padding: 16px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.linklike:hover { color: var(--red); }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; line-height: 1.3; font-weight: 700; color: var(--red); margin-bottom: 1em; }
.eyebrow--light { color: #ff8a92; }

/* ---------- Header: a translucent layer; content scrolls underneath ---------- */
.topbar { background: var(--ink); color: #b3b3bc; font-size: .8125rem; letter-spacing: .01em; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ff8a92; }
.topbar__right { display: flex; gap: 10px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
/* Scroll edge: the hairline only appears once content actually slides under the chrome. */
.site-header.is-scrolled { border-bottom-color: var(--mat-edge); background: var(--mat-dark); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.tophat { width: 44px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__script { font-family: var(--script); font-size: 1.7rem; color: var(--white); }
.brand__sub { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .26em; color: #d6d6de; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { color: #f2f2f7; text-decoration: none; font-weight: 500; font-size: .9375rem; letter-spacing: .005em; padding: 8px 13px; border-radius: 999px; transition: background-color .2s, color .2s; }
.site-nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--white); background: rgba(255, 255, 255, .16); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; position: relative; margin-right: -8px; -webkit-tap-highlight-color: transparent; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .45s var(--spring), opacity .2s, background-color .2s; content: ''; }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { top: -7px; left: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); position: relative; padding-bottom: 64px; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: clamp(300px, 40vw, 680px); object-fit: cover; object-position: 100% 100%; }
.hero__media::after { content: ''; position: absolute; inset: auto 0 0; height: 80px; background: linear-gradient(to bottom, rgba(15, 15, 18, 0), var(--ink)); pointer-events: none; }

/* Brand lockup overlaid on the flag banner (recreates the business-card logo) */
.lockup { position: absolute; right: max(16px, calc((100% - var(--container)) / 2)); bottom: clamp(40px, 7%, 90px); z-index: 1; display: flex; flex-direction: column; align-items: center; color: var(--white); line-height: 1; font-size: clamp(9px, 1.2vw, 17px); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); pointer-events: none; }
.lockup__hat { position: absolute; left: -.4em; top: -3.2em; width: 4.6em; height: 4em; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.lockup__hat .tophat { width: 100%; height: 100%; }
.lockup__script { font-family: var(--script); font-size: 5.4em; padding-left: .5em; }
.lockup__sans { font-family: 'Comfortaa', var(--font); font-weight: 700; font-size: 2.7em; margin-top: .02em; letter-spacing: .01em; }
.lockup__serif { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; font-size: 2.1em; margin-top: .45em; }
.hero__card { position: relative; margin-top: -64px; background: var(--white); border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); max-width: 640px; z-index: 2; }
.hero__card h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin-bottom: .4em; }
.hero__lead { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero__actions--center { justify-content: center; }
.hero__call { margin: 0; color: var(--muted); font-size: .9375rem; }
.hero__call a { font-weight: 600; color: var(--ink); }

/* Trust stats (beside hero card): lighter glass tiles on the dark hero */
.hero__body { display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 40px; align-items: end; }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust__item { background: var(--mat-glass); border: 1px solid var(--mat-edge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.trust__item b { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--white); line-height: 1.15; }
.trust__item span { color: #d0d0d8; font-size: .9375rem; font-weight: 500; letter-spacing: .005em; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tight { padding: 48px 0 80px; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: #d7d7df; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head p:last-child { color: var(--muted); font-size: 1.1875rem; line-height: 1.5; margin-bottom: 0; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--row > div { max-width: 720px; }
/* Soft, quiet depth instead of confetti dots */
.speckle { background-color: var(--charcoal); background-image:
  radial-gradient(ellipse 70% 90% at 100% 0%, rgba(46,42,140,.4), transparent 60%),
  radial-gradient(ellipse 60% 80% at 0% 100%, rgba(193,18,31,.24), transparent 60%); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--paper); border-radius: 24px; padding: 32px; transition: transform .5s var(--spring), box-shadow .3s, background-color .3s; position: relative; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--white); color: var(--red); display: grid; place-items: center; margin-bottom: 20px; }
.service:nth-child(even) .service__icon { color: var(--blue); }
.service__icon svg { width: 30px; height: 30px; }
.service p { color: var(--muted); margin: 0; }
@media (hover: hover) {
  .service:hover { transform: scale(1.015); box-shadow: var(--shadow); background: var(--white); }
}

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--center { align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 16px; }
.checks li { padding-left: 36px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks b { color: var(--white); font-weight: 600; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; }
.mosaic img:nth-child(2) { transform: translateY(28px); }
.mosaic img:nth-child(4) { transform: translateY(28px); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--paper); border-radius: 24px; padding: 32px; position: relative; }
.step__n { font-family: var(--display); font-weight: 700; font-size: 2.5rem; letter-spacing: -.03em; line-height: 1; color: var(--red); display: block; margin-bottom: 14px; }
.step:nth-child(even) .step__n { color: var(--blue); }
.step p { color: var(--muted); margin: 0; }

/* ---------- Flake grid ---------- */
.flake-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.flake-grid--teaser { grid-template-columns: repeat(4, 1fr); }
.flake { position: relative; }
.flake[hidden] { display: none; }
.flake__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--white); border-radius: 18px; overflow: hidden; text-align: left; box-shadow: var(--shadow); transition: transform .5s var(--spring), box-shadow .3s; -webkit-tap-highlight-color: transparent; }
.flake__btn:active { transform: scale(.975); transition: transform 100ms ease-out, box-shadow .3s; }
.flake__btn img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--spring); }
.flake__meta { display: block; padding: 12px 14px 14px; position: relative; background: var(--white); }
.flake__name { display: block; font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -.011em; line-height: 1.25; }
.flake__code { display: block; font-size: .8125rem; letter-spacing: .01em; color: var(--muted); }
/* Interactive control over photography: the lighter material */
.flake__fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mat-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.14); transition: transform .45s var(--spring); -webkit-tap-highlight-color: transparent; }
.flake__fav:active { transform: scale(.88); transition: transform 100ms ease-out; }
.flake__fav svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 2; transition: fill .2s, stroke .2s; }
.flake__fav[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.flake.is-selected .flake__btn { outline: 3px solid var(--red); outline-offset: 2px; }
@media (hover: hover) {
  .flake__btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
  .flake__btn:hover img { transform: scale(1.05); }
  .flake__fav:hover { transform: scale(1.08); }
}

/* Toolbar + chips */
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar__search { flex: 1 1 280px; position: relative; display: block; }
.toolbar__search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.toolbar__search input { width: 100%; padding: 13px 18px 13px 44px; border: 1.5px solid transparent; border-radius: 999px; font: inherit; background: var(--paper); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.toolbar__search input:focus { border-color: var(--blue); background: var(--white); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
.toolbar__search--sm input { padding-block: 10px; font-size: .9375rem; }
/* Segmented control: the selected segment is a raised white pill */
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: .9375rem; letter-spacing: -.006em; transition: background-color .25s, color .25s, box-shadow .25s, transform .45s var(--spring); }
.seg button:active { transform: scale(.96); transition: transform 100ms ease-out; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.chips__label { font-weight: 600; font-size: .875rem; color: var(--muted); margin-right: 4px; }
.chips__sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--paper); font-size: .875rem; font-weight: 600; letter-spacing: .002em; color: var(--text); transition: background-color .2s, color .2s, transform .45s var(--spring); -webkit-tap-highlight-color: transparent; }
.chip:active { transform: scale(.96); transition: transform 100ms ease-out, background-color .2s, color .2s; }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.chip:hover { background: #e8e8ed; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.chip--fav[aria-pressed="true"] { background: var(--red); }
.results-count { color: var(--muted); font-size: .875rem; margin-bottom: 16px; }
.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.fineprint { font-size: .8125rem; letter-spacing: .01em; color: var(--muted); margin-top: 28px; }

/* Favorites tray: heavier dark material, content scrolls beneath */
.fav-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--mat-dark); -webkit-backdrop-filter: var(--blur-thick); backdrop-filter: var(--blur-thick); color: var(--white); padding: 12px 0; border-top: 1px solid var(--mat-edge); }
.fav-tray__inner { display: flex; align-items: center; gap: 14px; }
.fav-tray__thumbs { display: flex; }
.fav-tray__thumbs img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #2a2a30; margin-left: -10px; object-fit: cover; }
.fav-tray__thumbs img:first-child { margin-left: 0; }
.fav-tray__label { margin-right: auto; font-weight: 500; }
.page-colors .site-footer { padding-bottom: 72px; }

/* Flake modal: materializes (scale + fade) instead of snapping in; the backdrop blurs up */
.flake-modal { border: 0; padding: 0; border-radius: 28px; width: min(960px, calc(100% - 24px)); max-height: calc(100vh - 24px); box-shadow: var(--shadow-lg); overflow: auto; opacity: 0; transform: scale(.94) translateY(12px); transition: opacity .25s ease-out, transform .5s var(--spring-bounce), overlay .5s allow-discrete, display .5s allow-discrete; }
.flake-modal[open] { opacity: 1; transform: none; }
@starting-style { .flake-modal[open] { opacity: 0; transform: scale(.94) translateY(12px); } }
.flake-modal::backdrop { background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .35s, backdrop-filter .35s, -webkit-backdrop-filter .35s, overlay .5s allow-discrete, display .5s allow-discrete; }
.flake-modal[open]::backdrop { background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
@starting-style { .flake-modal[open]::backdrop { background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
.flake-modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--mat-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-size: 1.6rem; line-height: 1; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.14); transition: transform .45s var(--spring); }
.flake-modal__close:active { transform: scale(.9); transition: transform 100ms ease-out; }
.flake-modal__grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.flake-modal__img img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.flake-modal__body { padding: 40px 36px; display: flex; flex-direction: column; }
.flake-modal__body h2 { margin-bottom: 4px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.flake-modal__code { color: var(--muted); font-weight: 600; font-size: .9375rem; }
.flake-modal__dots { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.flake-modal__dots span { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 500; padding: 4px 11px 4px 7px; background: var(--paper); border-radius: 999px; text-transform: capitalize; }
.flake-modal__dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.flake-modal__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; }
.flake-modal__nav { display: flex; justify-content: space-between; margin-top: 20px; }
#fm-fav[aria-pressed="true"] { color: var(--red); border-color: var(--red); }

/* Visualizer band */
.viz-band { position: relative; background: radial-gradient(ellipse 80% 120% at 100% 0%, #4540b8, transparent 60%), linear-gradient(160deg, #34309c, var(--blue-600)); color: #e3e2ff; overflow: hidden; padding: clamp(72px, 9vw, 112px) 0; }
.viz-band h2 { color: var(--white); font-size: clamp(2.25rem, 4.8vw, 3.5rem); }
.viz-band .script { color: #ff9ea5; }
.viz-band p { font-size: 1.1875rem; line-height: 1.5; }
.viz-band__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.viz-band__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.viz-band__steps li { background: var(--mat-glass); border: 1px solid var(--mat-edge); border-radius: var(--radius); padding: 18px 20px; font-weight: 600; letter-spacing: -.006em; color: var(--white); display: flex; align-items: center; gap: 14px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.viz-band__steps b { font-family: var(--display); font-size: 1.125rem; width: 36px; height: 36px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }

/* Stripes (flag motif): kept as a quiet hairline accent */
.stripes { display: grid; grid-template-rows: repeat(3, 3px); }
.stripes span:nth-child(1) { background: var(--red); }
.stripes span:nth-child(2) { background: var(--white); }
.stripes span:nth-child(3) { background: var(--blue); }

/* About */
.brand-card { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); }
.brand-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 85% 100%; }
.brand-card .lockup { right: 7%; bottom: 9%; font-size: clamp(8px, 1vw, 12px); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 20px; overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; padding: 22px 60px 22px 26px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.011em; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--red); transition: transform .5s var(--spring); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 26px 24px; margin: 0; color: var(--muted); }

/* ---------- Page hero ---------- */
.page-hero { color: #d7d7df; padding: clamp(56px, 8vw, 96px) 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { max-width: 680px; font-size: 1.1875rem; line-height: 1.5; margin-bottom: 0; }
.page-hero a { color: #ff9ea5; }
.page-hero--center { text-align: center; padding: 120px 0; }
.page-hero--center p { margin-inline: auto; }

/* ---------- Forms ---------- */
.card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, .06); }
.form { padding: clamp(24px, 4vw, 40px); position: relative; }
.form__title { font-size: 1.625rem; }
.form__lead { color: var(--muted); }
.form fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.form legend { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.016em; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 0; }
.form legend small { font-family: var(--font); font-size: .8125rem; color: var(--muted); font-weight: 500; letter-spacing: .005em; }
.legend__n { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: .9375rem; font-weight: 700; letter-spacing: 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__grid--2 { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 600; font-size: .875rem; letter-spacing: .002em; }
.field__label b { color: var(--red); }
.field__label small { color: var(--muted); font-weight: 500; }
.field__hint { font-size: .8125rem; letter-spacing: .005em; color: var(--muted); margin: 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236e6e73' stroke-width='2'/%3E%3C/svg%3E") right 12px center/18px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent); }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.radios input { accent-color: var(--red); width: 18px; height: 18px; }
.radios--cards { gap: 10px; }
.radios--cards label { flex: 1 1 120px; position: relative; }
.radios--cards input { position: absolute; opacity: 0; }
.radios--cards span { display: block; width: 100%; text-align: center; padding: 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; letter-spacing: -.006em; transition: border-color .2s, background-color .2s, color .2s, transform .45s var(--spring); }
.radios--cards label:active span { transform: scale(.97); transition: transform 100ms ease-out; }
.radios--cards input:checked + span { border-color: var(--red); background: var(--red-50); color: var(--red-600); }
.radios--cards input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { background: var(--red-50); color: var(--red-600); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.form__success { text-align: center; padding: 32px 12px; }
.form.is-sent > *:not(.form__success) { display: none; }
.form__success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.cf-turnstile { margin-bottom: 16px; }
.saved-favs { font-size: .875rem; background: var(--blue-50); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; border: 1.5px dashed #c4c4cc; border-radius: var(--radius); padding: 34px 20px; cursor: pointer; background: var(--paper); transition: border-color .2s, background-color .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--red); background: var(--red-50); }
.dropzone svg { width: 40px; height: 40px; color: var(--red); margin-bottom: 6px; }
.dropzone__title { font-weight: 600; }
.dropzone__hint { font-size: .8125rem; color: var(--muted); }
.dropzone--sm { padding: 22px 16px; margin-bottom: 14px; }
.dropzone:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.photo-previews { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.photo-previews li { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--paper); }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; }
.photo-previews button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,15,18,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white); font-size: 1rem; line-height: 1; }
.photo-previews .tag { position: absolute; left: 5px; bottom: 5px; font-size: .6875rem; background: var(--blue); color: var(--white); padding: 2px 7px; border-radius: 999px; font-weight: 600; letter-spacing: .02em; }

/* Layouts */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.quote-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.next-steps { padding: 28px; }
.next-steps h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.next-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.next-steps b { color: var(--ink); font-weight: 600; }

/* Contact card */
.contact-card { background: var(--ink); color: #d7d7df; border-radius: 28px; padding: 32px; position: relative; overflow: hidden; }
.contact-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--blue) 66%); }
.contact-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.contact-card__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--smoke); display: grid; place-items: center; flex: none; }
.contact-card__avatar .tophat { width: 42px; height: 38px; }
.contact-card__name { font-family: var(--script); font-size: 1.9rem; color: var(--white); margin: 0; line-height: 1.1; }
.contact-card__title { margin: 0; font-size: .875rem; color: #a9a9b4; }
.contact-card__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-card__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-card__list svg { width: 22px; height: 22px; fill: currentColor; color: #ff8a92; flex: none; margin-top: 3px; }
.contact-card__list small { display: block; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #9a9aa6; }
.contact-card__list a { color: var(--white); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-card__list a:hover { color: #ff9ea5; }
.contact-card__actions { display: grid; gap: 10px; }
.contact-card .btn--ghost { color: var(--white); }
.contact-card .btn--ghost:hover { color: var(--white); }

/* ---------- Visualizer ---------- */
.notice { background: var(--blue-50); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; }
.viz { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }
.viz__controls { display: grid; gap: 16px; }
.viz__step { background: var(--white); border: 1px solid rgba(0, 0, 0, .06); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.viz__step h2 { font-size: 1.1875rem; letter-spacing: -.018em; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.viz__n { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: .9375rem; flex: none; }
.tips { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: .875rem; }
.viz__picked { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--paper); border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 600; min-height: 64px; }
.viz__picked img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.swatch-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; max-height: 280px; overflow-y: auto; margin: 12px 0; padding: 4px; }
.swatch { border: 0; padding: 0; background: none; border-radius: 12px; overflow: hidden; aspect-ratio: 1; position: relative; outline-offset: 2px; -webkit-tap-highlight-color: transparent; transition: transform .45s var(--spring); }
.swatch:active { transform: scale(.94); transition: transform 100ms ease-out; }
.swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--spring); }
.swatch[aria-selected="true"] { outline: 3px solid var(--red); }
@media (hover: hover) { .swatch:hover img { transform: scale(1.08); } }
.viz__stage { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ink); border-radius: 28px; padding: 14px; min-height: 420px; display: grid; gap: 14px; align-content: start; }
.viz__placeholder { aspect-ratio: 4/3; display: grid; place-items: center; align-content: center; color: #7a7a87; border: 1.5px dashed #3a3a44; border-radius: 16px; }
.viz__placeholder svg { width: 64px; height: 64px; }
.viz__loading { position: absolute; inset: 14px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--white); background: var(--mat-dark); border-radius: 16px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); z-index: 3; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid rgba(255,255,255,.2); border-top-color: var(--red); border-right-color: var(--white); border-bottom-color: var(--blue); animation: spin 1s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.viz__result-actions { color: #d7d7df; padding: 4px 6px; }
.viz__result-actions .btn--ghost { color: var(--white); }
.viz__result-actions .btn--ghost:hover { color: var(--white); }
.viz__caption { color: var(--white); font-weight: 600; margin: 0; }
.viz__stage .form__error { margin: 0; }
.compare { position: relative; border-radius: 16px; overflow: hidden; user-select: none; --pos: 50%; }
.compare img { width: 100%; display: block; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__after img { width: 100%; height: 100%; object-fit: cover; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 2; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.compare__handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--mat-light); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--ink); display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.compare__tag { position: absolute; top: 12px; background: var(--mat-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--white); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px; pointer-events: none; }
.compare__tag--l { left: 12px; }
.compare__tag--r { right: 12px; background: var(--red); }
.compare.is-single .compare__after, .compare.is-single .compare__handle, .compare.is-single input, .compare.is-single .compare__tag { display: none; }

/* Prose */
.prose h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-top: 1.6em; }
.prose p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b3b3bc; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.site-footer__tag { margin-top: 16px; max-width: 340px; font-size: .9375rem; }
.site-footer__h { font-family: var(--font); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); line-height: 1.3; margin-bottom: 1em; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9375rem; }
.site-footer a { color: #e3e3ea; text-decoration: none; }
.site-footer a:hover { color: #ff9ea5; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px; font-size: .8125rem; letter-spacing: .01em; }

/* Mobile sticky CTA + toast */
.mobile-cta { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--mat-dark-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--mat-edge); color: var(--white); padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 90; font-weight: 600; font-size: .9375rem; letter-spacing: -.006em; transition: opacity .25s, transform .5s var(--spring); }
@starting-style { .toast { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.96); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a:not(.btn) { padding: 8px 10px; font-size: .9rem; }
  .viz { grid-template-columns: 1fr; }
  .viz__stage { position: relative; top: 0; order: -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  /* The menu is a translucent sheet that unfolds from (and returns to) its trigger at the top edge. */
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; background: var(--mat-sheet); -webkit-backdrop-filter: var(--blur-thick); backdrop-filter: var(--blur-thick); padding: 8px 16px 24px; gap: 2px; border-bottom: 1px solid var(--mat-edge); border-radius: 0 0 28px 28px; transform-origin: top center; transform: translateY(-12px) scale(.98); opacity: 0; visibility: hidden; transition: transform .5s var(--spring), opacity .25s, visibility 0s .25s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--spring), opacity .25s, visibility 0s; }
  .site-nav a:not(.btn) { padding: 14px 14px; font-size: 1.0625rem; border-radius: 14px; }
  .site-nav .btn { margin: 12px 0 0; }
  .services, .steps { grid-template-columns: 1fr 1fr; }
  .split, .viz-band__inner, .contact-layout, .quote-layout { grid-template-columns: 1fr; }
  .quote-side { position: static; }
  .flake-grid--teaser { grid-template-columns: repeat(2, 1fr); }
  .hero__body { grid-template-columns: 1fr; gap: 24px; }
  .flake-modal__grid { grid-template-columns: 1fr; }
  .flake-modal__img img { aspect-ratio: 16/10; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .mosaic { max-width: 460px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 64px; }
  .topbar { display: none; }
  .hero { padding-bottom: 40px; }
  .hero__card { margin-top: 16px; border-radius: 24px; }
  .hero__media::after { display: none; }
  .hero__media img { max-height: none; min-height: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services, .steps { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .flake-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .flake__meta { padding: 10px 12px 12px; }
  .seg { width: 100%; justify-content: space-between; }
  .seg button { padding: 8px 10px; flex: 1; }
  .chips__sep { display: none; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--mat-dark-thick); -webkit-backdrop-filter: var(--blur-thick); backdrop-filter: var(--blur-thick); border-top: 1px solid var(--mat-edge); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; color: var(--white); font-weight: 600; letter-spacing: -.006em; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color 100ms; }
  .mobile-cta a:active { background: rgba(255, 255, 255, .14); }
  .mobile-cta svg { width: 18px; height: 18px; fill: currentColor; }
  .mobile-cta__quote { background: var(--red); }
  .mobile-cta .mobile-cta__quote:active { background: var(--red-600); }
  .fav-tray { bottom: 64px; }
  .fav-tray__thumbs { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column; }
  .toast { bottom: 84px; }
  .flake-modal { border-radius: 24px; }
  .flake-modal__body { padding: 24px 20px; }
}

/* ---------- Accessibility: motion, transparency, contrast ---------- */
/* Reduced motion keeps feedback but swaps slides/springs/scales for gentle cross-fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .flake__btn:active, .flake__fav:active, .chip:active, .seg button:active, .swatch:active, .radios--cards label:active span, .flake-modal__close:active { transform: none; }
  .service:hover, .flake__btn:hover, .flake__btn:hover img, .flake__fav:hover, .swatch:hover img { transform: none; }
  .site-nav, .site-nav.is-open, .flake-modal, .flake-modal[open], .toast { transform: none !important; }
  .toast { transform: translateX(-50%) !important; }
  .site-nav, .site-nav.is-open, .flake-modal, .toast { transition-duration: .2s !important; transition-timing-function: ease !important; }
  .faq summary::after, .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { transition-duration: .01ms !important; }
  .spinner { animation-duration: 1.6s; }
}
/* Reduced transparency: frostier, effectively solid surfaces; no blur. */
@media (prefers-reduced-transparency: reduce) {
  :root { --mat-dark: #131317; --mat-dark-thick: #131317; --mat-sheet: #131317; --mat-light: #fff; --mat-glass: #2a2a32; --blur: none; --blur-thick: none; }
  .flake-modal::backdrop, .flake-modal[open]::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .flake-modal[open]::backdrop { background: rgba(0, 0, 0, .6); }
  .trust__item, .viz-band__steps li { background: rgba(0, 0, 0, .28); }
}
/* Increased contrast: near-solid backgrounds with defined borders. */
@media (prefers-contrast: more) {
  :root { --mat-dark: #0b0b0e; --mat-dark-thick: #0b0b0e; --mat-sheet: #0b0b0e; --mat-light: #fff; --mat-glass: #1c1c22; --mat-edge: rgba(255, 255, 255, .5); --muted: #4a4a50; --line: #8e8e96; }
  .site-header { border-bottom-color: var(--mat-edge); }
  .service, .step { border: 1.5px solid var(--line); }
  .flake__btn, .faq details { border: 1.5px solid var(--line); }
  .eyebrow { color: var(--red-600); }
  .trust__item span, .page-hero { color: #fff; }
}
