/* Doors Daily — styles
   Tokens first, then layout, then sections top to bottom. */

:root {
  --void: #050308;
  --ink: #0d0914;
  --violet: #6d3bff;
  --orchid: #b48cff;
  --chrome: #eceaf4;
  --ash: #8b879a;
  --line: rgba(236, 234, 244, 0.1);
  --white: #f7f5ff;
  --paper: #ebebf0;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section: clamp(96px, 14vw, 180px);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--chrome);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 3px;
}

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--void); padding: 10px 16px; border-radius: var(--radius-pill);
}
.skip:focus { top: 16px; }

/* Particle field */
#stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
main, .footer, .nav-wrap { position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font: 500 15px/1 var(--body); border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--white); color: var(--void); }
.btn-solid:hover { background: #fff; }
.btn-ghost { background: rgba(236, 234, 244, 0.06); border-color: var(--line); color: var(--chrome); }
.btn-ghost:hover { border-color: rgba(236, 234, 244, 0.3); }

/* Header: logo top-left, pill nav centred */
.nav-wrap {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter);
  pointer-events: none;
}
.brand { pointer-events: auto; display: block; width: 168px; }
.brand img { display: block; width: 100%; height: auto; }
.nav {
  pointer-events: auto;
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 8px;
  background: rgba(13, 9, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-links { display: flex; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--chrome); opacity: .85;
  transition: background-color .15s ease, opacity .15s ease;
}
.nav-links a:hover { background: rgba(236, 234, 244, 0.08); opacity: 1; }
.nav-cta {
  margin-left: 4px; padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--white); color: var(--void); font-size: 14px; font-weight: 500;
}
.nav-toggle {
  display: none; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 50%;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--chrome); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Hero: light editorial layout with a fan of cards. --h (0..1, from main.js) folds the fan into a stack on scroll. */
.hero {
  --h: 0; --R: 92vh; --hero-gutter: clamp(24px, 3vw, 48px);
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  background: var(--paper); color: #0a0712;
}
.fan { position: absolute; left: 50%; top: calc(var(--R) + 55vh); width: 0; height: 0; }
.fan-card {
  position: absolute; left: 0; top: 0;
  width: clamp(200px, 20vw, 300px); aspect-ratio: 3 / 4;
  border-radius: 22px; background-size: cover; background-position: center;
  box-shadow: 0 30px 60px rgba(10, 7, 18, 0.22);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--r) * (1 - var(--h))))
    translateY(calc(var(--R) * -1))
    scale(calc(1 - var(--h) * 0.25));
  opacity: calc(1 - max(0, (var(--h) - 0.6) * 2.5));
  will-change: transform, opacity;
}
.hero-title {
  position: absolute; right: var(--hero-gutter); top: 120px; margin: 0;
  text-align: right; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95;
  font-size: clamp(44px, 6.4vw, 96px);
  transform: translateX(calc(var(--h) * 80px)); opacity: calc(1 - var(--h) * 1.4); will-change: transform, opacity;
}
.hero-subject {
  position: absolute; left: var(--hero-gutter); bottom: 48px; max-width: 60ch;
  transform: translateX(calc(var(--h) * -80px)); opacity: calc(1 - var(--h) * 1.4); will-change: transform, opacity;
}
.hero-subject-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(36px, 5.2vw, 78px); }
.hero-subject-line { margin-top: 18px; max-width: 48ch; color: rgba(10, 7, 18, 0.7); font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  .fan-card, .hero-title, .hero-subject { transition: none; }
}

/* Showcase: scroll-driven card ring (progress in --p, 0..1, set by main.js) */
.showcase { --p: 0; height: 340vh; background: var(--paper); color: #0a0712; position: relative; }
.showcase-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.showcase-words {
  position: absolute; left: 0; top: 50%; white-space: nowrap; margin: 0;
  display: flex; align-items: center; gap: 0.35em;
  font-family: var(--display); font-weight: 700; font-size: clamp(72px, 13vw, 210px); line-height: 1; letter-spacing: -0.045em;
  transform: translate(calc(var(--p) * -42%), -50%); will-change: transform;
}
.showcase-words i { display: inline-block; width: 0.14em; height: 0.14em; border: 3px solid currentColor; border-radius: 50%; margin: 0 0.25em; }
.ring-stage { --card-h: min(520px, 66vh); position: relative; width: calc(var(--card-h) * 0.73); height: var(--card-h); perspective: 1800px; }
.ring { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(calc(var(--p) * -288deg)); will-change: transform; }
.ring-card {
  position: absolute; inset: 0; border-radius: 30px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateY(calc(var(--i) * 72deg)) translateZ(calc(var(--card-h) * 0.64));
  box-shadow: 0 30px 80px rgba(20, 10, 50, 0.25);
  overflow: hidden;
}
.ring-card header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .85; }
.ring-card .tag { padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.18); font-weight: 500; }
.ring-card h3 { font-size: clamp(26px, calc(var(--card-h) * 0.072), 38px); font-weight: 300; letter-spacing: -0.03em; }
.card-star { width: calc(var(--card-h) * 0.23); height: calc(var(--card-h) * 0.23); align-self: center; fill: #fff; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25)); }
.card-stat { font-size: 15px; line-height: 1.5; max-width: 26ch; opacity: .9; }
.card-stat strong { font-weight: 500; }
.card-violet { color: #fff; background: radial-gradient(70% 55% at 50% 35%, #d7c6ff 0%, #8f62ff 45%, #4a1fd6 100%); }
.card-dark { color: #fff; background: radial-gradient(80% 60% at 80% 100%, #4a1fd6, transparent 70%), #0a0616; }
.card-dark .tag, .card-ink .tag { background: rgba(255,255,255,0.12); }
.card-paper { color: #0a0712; background: linear-gradient(170deg, #ffffff, #e4dcff); }
.card-paper .tag { background: rgba(10, 7, 18, 0.08); }
.card-orchid { color: #0a0712; background: radial-gradient(70% 60% at 30% 20%, #ffffff, #b48cff 60%, #8f62ff 100%); }
.card-orchid .tag { background: rgba(10, 7, 18, 0.1); }
.card-ink { color: #fff; background: linear-gradient(160deg, #1c1040, #050308); }
@media (prefers-reduced-motion: reduce) {
  .showcase { height: auto; padding: 120px 0; }
  .showcase-sticky { position: static; height: auto; min-height: 640px; }
  .showcase-words, .ring { transform: none; }
  .showcase-words { position: absolute; top: 50%; transform: translateY(-50%); }
  .ring { transform: rotateY(-20deg); }
}

/* Sections */
.section, .statement { scroll-margin-top: 90px; }
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 20px; color: var(--ash); font-size: 18px; max-width: 58ch; }

/* Services pillars */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar {
  padding: 40px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(236, 234, 244, 0.04), rgba(236, 234, 244, 0.015));
  border: 1px solid var(--line);
}
.pillar-alt {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(109, 59, 255, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(236, 234, 244, 0.04), rgba(236, 234, 244, 0.015));
}
.pillar h3 { font-size: 34px; }
.pillar-intro { margin-top: 10px; color: var(--ash); }
.service-list { list-style: none; margin: 32px 0 0; padding: 0; }
.service-list li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.service-list strong { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.service-list span { color: var(--ash); font-size: 15px; max-width: 48ch; }

/* Statement */
.statement { padding: var(--section) 0; position: relative; }
.statement-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: end; }
.statement-copy { display: grid; gap: 20px; max-width: 46ch; color: rgba(236, 234, 244, 0.78); }
.statement-type {
  font-size: clamp(72px, 12vw, 190px); line-height: 0.9; letter-spacing: -0.045em;
  text-align: right; color: var(--ash);
}
.statement-type span { display: block; }
.statement-type span:last-child { color: var(--chrome); }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li { padding: 28px 0 0; border-top: 1px solid var(--line); }
.step-num { display: inline-block; font-family: var(--display); font-size: 40px; font-weight: 300; color: var(--orchid); line-height: 1; }
.process h3 { font-size: 26px; margin-top: 18px; }
.process p { margin-top: 12px; color: var(--ash); font-size: 15px; }

/* Testimonials */
.section-quotes { padding-top: 0; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quotes blockquote {
  margin: 0; padding: 32px; border-radius: var(--radius-lg);
  background: rgba(236, 234, 244, 0.03); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.quotes p { font-family: var(--display); font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; }
.quotes footer { font-size: 14px; color: var(--ash); }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact-bloom {
  position: absolute; left: 50%; bottom: -400px; width: 1200px; height: 800px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(109, 59, 255, 0.45), transparent 70%);
  pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: clamp(36px, 5vw, 64px); }
.contact-copy p { margin-top: 20px; color: var(--ash); max-width: 46ch; }
.contact-direct a { color: var(--chrome); border-bottom: 1px solid rgba(236, 234, 244, 0.3); }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; color: var(--ash); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(236, 234, 244, 0.05); border: 1px solid var(--line);
  color: var(--chrome); font: 400 16px/1.4 var(--body);
}
.contact-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form select option { color: #000; }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; margin-top: 8px; }
.form-error { color: #ffb4b4; font-size: 14px; }
.form-error a { color: var(--chrome); border-bottom: 1px solid rgba(236, 234, 244, 0.3); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-sent { padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(236, 234, 244, 0.04); }
.form-sent-title { font-family: var(--display); font-size: 34px; font-weight: 300; }
.form-sent p + p { margin-top: 10px; color: var(--ash); }
.form-note { font-size: 13px; color: var(--ash); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer-name { font-family: var(--display); font-size: 22px; }
.footer-brand p + p { margin-top: 10px; color: var(--ash); font-size: 14px; }
.footer-links { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--ash); }
.footer-links a:hover { color: var(--chrome); }
.footer-base { margin-top: 48px; font-size: 13px; color: var(--ash); }

/* Responsive */
@media (max-width: 1000px) {
  .hero { --R: 70vh; }
  .hero-title { top: 96px; }
  .nav-wrap { gap: 16px; }
  .nav { position: static; transform: none; }
  .nav-links a { padding: 8px 11px; font-size: 13px; }
  .nav-cta { white-space: nowrap; }
  .statement-grid { grid-template-columns: 1fr; }
  .statement-type { text-align: left; margin-top: 24px; }
  .pillars { grid-template-columns: 1fr; }
  .ring-stage { --card-h: min(420px, 60vh); }
  .ring-card { padding: 22px; }
  .process { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .brand { width: 140px; grid-column: 2; }
  .nav { grid-column: 3; justify-self: end; position: static; transform: none; padding: 4px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13, 9, 20, 0.92); }
  .nav-links { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); flex-direction: column; padding: 8px; background: var(--ink); border: 1px solid var(--line); border-radius: 24px; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { --R: 58vh; min-height: 600px; }
  .fan { top: calc(var(--R) + 50vh); }
  .fan-card { width: 34vw; border-radius: 14px; }
  .hero-title { top: 96px; left: var(--gutter); right: var(--gutter); text-align: center; font-size: clamp(40px, 12vw, 64px); }
  .hero-subject { bottom: 28px; left: var(--gutter); right: var(--gutter); max-width: none; text-align: center; }
  .hero-subject-line { margin-inline: auto; }
  .hero-subject-title { font-size: clamp(34px, 10vw, 56px); }
  .hero-subject-line { font-size: 14px; }
  .hero-actions .btn { width: 100%; }
  .process { grid-template-columns: 1fr; }
  .showcase { height: 280vh; }
  .ring-stage { --card-h: min(360px, 52vh); }
  .ring-card { padding: 18px; border-radius: 22px; }
  .card-stat { font-size: 13px; }
  .field-row { grid-template-columns: 1fr; }
  .pillar { padding: 28px; }
  .hero-actions .btn { width: 100%; }
}
