/* damynleclair.com — black ground, a red type accent, burgundy fills.
   Centered, system sans, tiles with a hairline, air. Palette locked 9/21: Ink & Burgundy. */

:root {
  --bg: #0A0A0A;
  --tile: #1C1C1E;
  --line: rgba(255,255,255,.12);
  --ink: #FFFFFF;
  --body: #A6A6A6;             /* 7.1:1 on the tile */
  --accent: #A3213F;           /* fills only: pills, the nav pill, the favicon */
  --accent-text: #E24B6A;      /* type only: the phrase, the money number — 5.1:1 on black */
  --accent-hover: #8A1A35;
  --band: #7A1830;             /* both bands; the close pill's text */
  --paper: #FFFFFF;            /* the close pill */
  --track: rgba(255,255,255,.36);
  --foot-fg: #8E8E93;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 68rem; --narrow: 44rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 28px; --nav-h: 48px;
  --ease: cubic-bezier(.25,.1,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
em { font-style: normal; color: var(--accent-text); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: var(--narrow); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ── Pills and links ── */

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 999px; min-height: 44px;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; line-height: 1;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.pill--accent { background: var(--accent); color: var(--ink); }
.pill--accent:hover { background: var(--accent-hover); }
.pill--paper { background: var(--paper); color: var(--band); }
.pill--paper:hover { background: #F2E6E9; }
.pill:active { transform: scale(.98); }
.link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: .85rem .5rem; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Nav ── */

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(10,10,10,.78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease);
}
.nav--solid { border-bottom-color: var(--line); }
.nav__in { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .8125rem; }
.nav__name { font-weight: 600; text-decoration: none; }
.nav__place { font-weight: 400; color: var(--body); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { text-decoration: none; color: var(--ink); opacity: .8; }
.nav__links a:hover { opacity: 1; }
.nav__cta { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .85rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 600; text-decoration: none; }
.nav__cta:hover { background: var(--accent-hover); }
@media (max-width: 52rem) { .nav__links { display: none; } .nav__cta { min-height: 36px; padding-inline: 1rem; } .nav__place { display: none; } }

/* ── Hero: never hidden, never faded ── */

.hero { padding: clamp(4.5rem, 13vh, 8.5rem) var(--gutter) clamp(3.5rem, 8vh, 6rem); text-align: center; }
.hero__in { max-width: 56rem; margin-inline: auto; }
.hero__h { font-weight: 700; font-size: clamp(2.5rem, 1.3rem + 5.6vw, 5.5rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .75rem; text-wrap: balance; }
@media (min-width: 48rem) { .hero__h em { white-space: nowrap; } }
.hero__sub { font-weight: 600; font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem); letter-spacing: -.015em; margin: 0 0 1.25rem; }
.hero__p { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: var(--body); max-width: 36rem; margin: 0 auto 2rem; line-height: 1.45; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
@media (max-width: 40rem) { .hero__cta { flex-direction: column; gap: .75rem; } }

/* ── Sections ── */

.sec { padding-block: clamp(4.5rem, 10vw, 8rem); }
.sec--tight { padding-top: clamp(3rem, 7vw, 5rem); }
.eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .01em; margin: 0 0 .5rem; color: var(--body); }
.sec__h { font-weight: 700; font-size: clamp(2rem, 1.1rem + 3.6vw, 3.75rem); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 1rem; max-width: 22ch; text-wrap: balance; }
.sec__p { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: var(--body); max-width: 36rem; margin: 0 0 2.5rem; line-height: 1.45; }
.caption { font-size: 1.0625rem; color: var(--body); max-width: 36rem; margin: 1.5rem 0 0; line-height: 1.5; }
.caption strong { color: var(--ink); font-weight: 600; }

/* ── Tiles: hairline, size to content ── */

.tile { background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .5rem; }
.tile__t { font-weight: 700; font-size: 1.5rem; letter-spacing: -.015em; margin: 0; }
.tile__d { color: var(--body); line-height: 1.45; max-width: 36rem; }

.tiles { display: grid; gap: 1rem; }
.tiles--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 56rem) { .tiles--three { grid-template-columns: 1fr; } }
.tiles--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 40rem) { .tiles--two { grid-template-columns: 1fr; } }
.tile--q .tile__t { font-size: 1.375rem; }
.tile--boss { grid-column: 1 / -1; border-color: rgba(255,255,255,.28); }
.tile--boss .tile__t { font-size: 2rem; }
.tile--boss .tile__d { max-width: 44rem; }

/* ── The calculator ── */

.tile--calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 56rem) { .tile--calc { grid-template-columns: 1fr; } }
.calc__label { display: block; font-weight: 600; margin-bottom: .75rem; }
.calc__row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
@media (max-width: 40rem) { .calc__row { grid-template-columns: 1fr; } .calc__o { text-align: left; } }
.calc__o { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; }
.calc__out { display: grid; gap: 1.25rem; }
.stat__n { font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__n--accent { color: var(--accent-text); }
.stat__l { color: var(--body); margin-top: .25rem; max-width: 24rem; }
.calc__line { grid-column: 1 / -1; margin: .5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--body); max-width: 40rem; }
.calc__lead { color: var(--ink); font-weight: 600; }

input[type=range] { --p: 18%; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-text) var(--p), var(--track) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent-text); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; margin-top: -12px; background: var(--ink); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ink); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--ink); }

/* ── The rule of thumb ── */

.rule { font-weight: 700; font-size: clamp(2.5rem, 1.3rem + 5vw, 5.5rem); letter-spacing: -.02em; line-height: 1; margin: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3.5rem); text-wrap: balance; }
@media (max-width: 40rem) { .rule { font-size: 2.5rem; } }
.rule__cta { margin-top: clamp(2rem, 5vw, 3rem); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.rule__p { margin: 0; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: var(--body); max-width: 36rem; }

/* ── Bands: burgundy, the promise and the ask (Damyn's call over the one-band rule) ── */

.band { padding-block: clamp(4.5rem, 10vw, 8rem); }
.band--promise { background: var(--band); color: var(--ink); }
.band--promise .eyebrow--band { color: var(--ink); opacity: .8; }
.band__h { font-weight: 700; font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.5rem); letter-spacing: -.02em; line-height: 1; margin: 0 0 1.25rem; }
.band__p { color: rgba(255,255,255,.78); font-size: clamp(1.125rem, 1rem + .6vw, 1.4375rem); line-height: 1.45; margin: 0 auto 1rem; max-width: 36rem; }
.band__p--strong { color: var(--ink); font-weight: 600; }

.band--accent { background: var(--band); color: var(--ink); }
.cta__h { font-weight: 700; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem); letter-spacing: -.02em; line-height: 1.04; margin: 0 0 1rem; text-wrap: balance; }
.cta__p { color: rgba(255,255,255,.8); font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); margin: 0 auto 2rem; max-width: 34rem; }
.cta__row { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.link--cta { color: var(--ink); opacity: .9; }

/* ── Questions ── */

.faq { margin: 0; }
.faq__i { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.faq__i:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; margin: 0 0 .5rem; }
.faq dd { margin: 0; color: var(--body); line-height: 1.5; max-width: 36rem; }

/* ── Who ── */

.who { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.who__p { color: var(--body); font-size: 1.0625rem; line-height: 1.55; margin: 0 auto; max-width: 40rem; }
.who__p strong { color: var(--ink); font-weight: 600; }

/* ── Footer ── */

.foot { background: var(--bg); color: var(--foot-fg); padding-block: 1.5rem 2rem; font-size: .8125rem; border-top: 1px solid var(--line); }
.foot__in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot__links { display: flex; gap: 1.5rem; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); }

/* ── Reveal: only when JS is running; the hero is never in the set ── */

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
