/* DC Business Designs: dark studio theme. Tokens first, then base, then sections. */
/* Self-hosted fonts (SIL OFL 1.1, licences in /assets/fonts). Latin subset only. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); }

:root {
  --bg: #0E0E10;
  --surface: #17171A;
  --surface-2: #1E1E22;
  --border: #2A2A2E;
  --text: #F4F2EF;
  --muted: #A7A39E;
  --accent: #C8F169;
  --accent-ink: #0E0E10;

  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --h1: clamp(44px, 7vw, 82px);
  --h2: clamp(34px, 4.5vw, 56px);
  --h3: clamp(22px, 2.2vw, 28px);
  --lead: clamp(18px, 1.6vw, 20px);

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 12vw, 160px);
  --radius: 20px;
  --radius-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
h1 { font-size: var(--h1); line-height: 0.95; letter-spacing: -0.037em; }
h2 { font-size: var(--h2); line-height: 1; letter-spacing: -0.036em; }
h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 em, h2 em { color: var(--accent); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: var(--lead); color: var(--muted); max-width: 46ch; }
.eyebrow { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--raised { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { max-width: 16ch; }
.section-head .lead { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #d8f88f; color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--lg { min-height: 54px; padding: 16px 30px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.arrow-link::after { content: " \2192"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,14,16,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 10px 0; }
.site-nav__links a:hover { color: var(--text); }
.site-nav__ctas { display: flex; gap: 10px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 999px; background: none; cursor: pointer; }
.nav-toggle__bar { position: absolute; left: 13px; width: 16px; height: 1.5px; background: var(--text); transition: transform .25s ease; }
.nav-toggle__bar:first-child { top: 18px; }
.nav-toggle__bar:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 32px; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; gap: 4px; }
  .site-nav__links a { display: block; font-size: 22px; color: var(--text); padding: 10px 0; }
  .site-nav__ctas { flex-direction: column; }
  .site-nav__ctas .btn { min-height: 52px; }
}

/* Hero */
.hero { padding-block: clamp(72px, 12vw, 170px) clamp(64px, 9vw, 120px); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin: clamp(24px, 3vw, 36px) 0 clamp(28px, 3.5vw, 40px); }
.page-hero { padding-block: clamp(64px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 28px; }

/* Marquee (pure CSS loop over a duplicated list) */
.marquee { border-block: 1px solid var(--border); overflow: hidden; padding-block: 22px; }
.marquee__track { display: flex; width: max-content; gap: 0; }
.marquee__list { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.marquee__list li { display: flex; align-items: center; font-size: clamp(18px, 2vw, 24px); color: var(--muted); white-space: nowrap; padding-right: 40px; }
.marquee__list li::after { content: "\2726"; color: var(--accent); font-size: 14px; margin-left: 40px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Work bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(160px, 18vw, 240px); gap: 16px; }
.tile { position: relative; grid-column: span 2; grid-row: span 2; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.tile--wide { grid-column: span 4; }
.tile--tall { grid-row: span 3; }
.tile--full { grid-column: 1 / -1; grid-row: span 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.03); }
.tile__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px;
  background: radial-gradient(120% 90% at 20% 0%, #24242a 0%, var(--surface) 60%); }
.tile__meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 20px; background: linear-gradient(to top, rgba(14,14,16,.85), rgba(14,14,16,0)); }
.tile__title { font-size: 18px; font-weight: 500; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(14,14,16,.7); color: var(--text); white-space: nowrap; }
.tag--own { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .tile, .tile--wide, .tile--full { grid-column: span 2; grid-row: span 2; }
  .tile--tall { grid-row: span 2; }
}

/* Cards (audit pillars, which-you, packages, process) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.section--raised .card { background: var(--surface-2); }
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card__num { font-family: var(--font-serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: 24px; }
a.card { display: block; text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
a.card:hover { color: var(--text); border-color: var(--muted); transform: translateY(-2px); }
a.card .arrow-link { display: inline-block; margin-top: 16px; border: 0; color: var(--accent); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.audit { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.audit__intro .btn { margin-top: 12px; }
.audit__pillars { display: grid; gap: 16px; }
@media (max-width: 900px) { .audit { grid-template-columns: 1fr; } }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.package { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.package--highlight { border-color: var(--accent); }
.package__badge { align-self: flex-start; margin-bottom: 20px; }
.package h3 { margin-bottom: 8px; }
.package__summary { color: var(--muted); }
.package ul { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 10px; }
.package li { padding-left: 24px; position: relative; }
.package li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); }
.package .btn { margin-top: auto; }
.package-custom { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: transparent; border: 1px dashed var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.package-custom h3 { margin-bottom: 6px; }
.package-custom p { margin: 0; color: var(--muted); max-width: 60ch; }
.packages-note { margin-top: 20px; }
@media (max-width: 1100px) { .packages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .packages { grid-template-columns: 1fr; } }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.process .card { position: relative; }
.process__time { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--accent); }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }

/* Featured case study (sticky split) */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.case__text { position: sticky; top: 120px; }
.case__text .lead { margin: 24px 0 32px; }
.case__media { display: grid; gap: 16px; }
.case__media figure { margin: 0; }
.case__frame { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); position: relative; }
.case__frame img { width: 100%; height: 100%; object-fit: cover; }
.case__frame--tall { aspect-ratio: 4 / 5; }
.case__frame--auto { aspect-ratio: auto; }
.case__frame--auto img { height: auto; }
.case__frame--phone { max-width: 380px; }
.case__media figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case__text { position: static; } }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 68ch; margin: 0 0 26px; }

/* Lead form */
.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-wrap .lead { margin-top: 24px; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  font: 400 16px/1.4 var(--font-sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder { color: #6f6b66; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #ff8f8f; }
.field__error { font-size: 14px; color: #ff9d9d; }
.lead-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.lead-form__foot p { margin: 0; flex: 1 1 240px; }
.lead-form__status:empty { display: none; }
.lead-form__status { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.lead-form__status.is-ok { border: 1px solid var(--accent); }
.lead-form__status.is-error { border: 1px solid #ff8f8f; }
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; } }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--h3); margin: 48px 0 16px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose .about-h2 { font-size: var(--h2); letter-spacing: -0.036em; margin: 0 0 32px; }
.prose .lead { max-width: 60ch; }
.case__text .lead + .lead { margin-top: 0; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose .callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--muted); }
/* Visible marker for unfilled owner facts. Must be gone before launch. */
.owner-gap { display: inline-block; padding: 2px 10px; border: 1px dashed #ff9d9d; border-radius: 8px; color: #ff9d9d; font-size: 14px; }
.notice { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 16px 20px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 64px 48px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__grid .muted { margin-top: 12px; max-width: 32ch; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer__links a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__email { font-size: 18px; font-weight: 500; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Scroll reveal: only animates when JS has run and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0ms); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
