/* Door Digital — single-page landing. Tokens match the Proper Digital portfolio. */
:root {
  --bg: #F5F2EC;
  --surface: #FFFFFF;
  --ink: #15140F;
  --muted: #6B675E;
  --line: rgba(21, 20, 15, 0.12);
  --accent: #1F5B3E;
  --accent-ink: #FFFFFF;
  --sand: #EADFC9;
  --sage: #DCE5D2;
  --sky: #D6E3EA;
  --dark: #15140F;
  --dark-ink: #F5F2EC;
  --dark-muted: #A8A397;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.15; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow--light { color: var(--dark-muted); }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 34em; margin-top: 24px; }

/* Nav */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav {
  pointer-events: auto; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(245, 242, 236, 0.92); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo img { height: 22px; width: auto; display: block; filter: brightness(0); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { display: block; padding: 8px 16px; font-size: 0.95rem; font-weight: 500; border-radius: 999px; transition: background .2s; }
.nav__links a:hover { background: var(--sand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform .25s var(--ease-out), background .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(21,20,15,.45); }
.btn--sm { padding: 11px 20px; font-size: 0.92rem; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(130px, 16vh, 170px) var(--gutter) 72px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__proof strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.hero__proof span { display: block; font-size: 0.88rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }

.hero__stage { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px; aspect-ratio: 1; }
.pipe { width: 100%; height: 100%; display: block; }
.pipe__track { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.pipe__flow { fill: none; stroke: var(--sage); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-out) .2s forwards; }
.pipe__node rect { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.pipe__node text { font-family: var(--font-text); font-size: 17px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.pipe__node { opacity: 0; animation: pop .6s var(--ease-out) forwards; animation-delay: var(--d); }
.pipe__node--end rect { fill: var(--accent); stroke: var(--accent); }
.pipe__node--end text { fill: #fff; }
.pipe__dot { fill: var(--accent); }
.pipe__label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; fill: var(--muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tool strip */
.strip { max-width: 1280px; margin: 0 auto; padding: 8px var(--gutter) 88px; }
.strip__label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.mk { display: flex; align-items: center; padding: 20px clamp(26px, 3.4vw, 46px); }
.mk img { height: var(--h, 28px); width: auto; display: block; filter: grayscale(1); opacity: var(--o, .62); }
.mk--ink img { filter: brightness(0); }
.marquee--b { border-top: 0; }
.marquee--b .marquee__track { animation-direction: reverse; animation-duration: 82s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--gutter); }
.section--tint { max-width: none; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tint > * { max-width: calc(1280px - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__sub { color: var(--muted); font-size: 1.12rem; margin-top: 20px; max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card--paper { background: var(--surface); border: 1px solid var(--line); }
.card--sand { background: var(--sand); } .card--sage { background: var(--sage); } .card--sky { background: var(--sky); }
.card p { color: #3d3a33; }
.tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; }
.card .tag { color: var(--ink); opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.chips li { font-family: var(--font-mono); font-size: 0.74rem; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid var(--line); }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.result { border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; background: var(--bg); display: flex; flex-direction: column; }
.result__stat { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.result__label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 12px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.result h3 { margin-bottom: 12px; }
.result p:last-child { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: .9rem; margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* Book / footer */
.book { background: var(--dark); color: var(--dark-ink); padding: clamp(80px, 11vw, 130px) var(--gutter) 36px; }
.book__main { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.book__intro { position: sticky; top: 110px; }
.book__cal { background: #fff; border-radius: 24px; overflow: hidden; min-height: 700px; }
.book h2 { max-width: 14em; }
.book__main p { color: var(--dark-muted); font-size: 1.12rem; margin-top: 20px; max-width: 34em; }
.book__actions { display: grid; gap: 12px; justify-items: start; margin-top: 40px; }
.book__actions .eyebrow { margin-bottom: 2px; }
.book__line { font-family: var(--font-mono); font-size: .95rem; color: var(--dark-ink); border-bottom: 1px solid rgba(245,242,236,.25); padding-bottom: 2px; }
.book__line:hover { border-color: var(--dark-ink); }
.book .btn:hover { box-shadow: 0 10px 24px -12px rgba(0,0,0,.8); }
.book__bottom { max-width: 1280px; margin: 96px auto 0; padding-top: 28px; border-top: 1px solid rgba(245,242,236,.14); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.book__logo { height: 24px; width: auto; opacity: .9; }
.book__bottom p { font-size: .85rem; color: var(--dark-muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { max-width: 460px; width: 100%; }
  .cards, .cards--2, .results, .steps { grid-template-columns: 1fr; }
  .book__main { grid-template-columns: 1fr; }
  .book__intro { position: static; }
  .book__cal { margin: 0 calc(-1 * var(--gutter) + 8px); border-radius: 18px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { padding-left: 16px; }
  .logo img { height: 17px; }
  .hero { padding-top: 112px; }
  .hero__proof { grid-template-columns: 1fr; gap: 14px; }
  .hero__proof li { display: flex; align-items: baseline; gap: 12px; }
  .hero__proof strong { font-size: 1.4rem; min-width: 4.4em; }
  .hero__cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .pipe__node, .pipe__flow { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .pipe__dot { display: none; }
  .btn { transition: none; }
}
