/* After Dark Media – corporate site. Dark, quiet and businesslike: charcoal base, champagne accent,
   serif headlines. Brand colors only appear on the portfolio cards (via --brand). */
:root {
    --bg: #0c0d11;
    --bg-2: #111318;
    --surface: #15171d;
    --surface-2: #1b1e26;
    --line: #252935;
    --line-2: #323745;
    --text: #ecebe6;
    --muted: #9ba0ab;
    --faint: #6d7280;
    --gold: #d4b37a;
    --gold-2: #b8944f;
    --live: #5fc39a;
    --radius: 18px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Header ---------- */
.nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(12, 13, 17, .82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__mark rect { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.brand__mark path { fill: var(--gold); }
.brand__name { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.brand__name span { color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav__links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__links .nav__cta {
    color: var(--text); padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 999px;
    transition: border-color .15s, background .15s;
}
.nav__links .nav__cta:hover { border-color: var(--gold); background: rgba(212, 179, 122, .08); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn--primary { background: var(--gold); color: #17130b; }
.btn--primary:hover { background: #e2c58f; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 112px 0 96px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(55% 70% at 85% 0%, rgba(212, 179, 122, .13), transparent 70%),
        radial-gradient(45% 60% at 0% 100%, rgba(120, 90, 160, .10), transparent 70%),
        var(--bg);
}
/* faint grid lines for a "boardroom" texture */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(70% 80% at 60% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(70% 80% at 60% 30%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; }

/* Portfolio "ledger" panel on the right of the hero (wide screens only). */
.ledger {
    position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
    width: 300px; padding: 22px 22px 10px;
    background: rgba(21, 23, 29, .78); border: 1px solid var(--line); border-radius: var(--radius);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.ledger__title {
    display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line);
    color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.ledger__title span { color: var(--faint); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li + li { border-top: 1px solid var(--line); }
.ledger a { display: flex; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; }
.ledger__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.ledger__name { flex: 1; font-size: 15px; }
.ledger__cat { color: var(--faint); font-size: 13px; }
.ledger a:hover .ledger__name { color: var(--gold); }
@media (max-width: 1100px) { .ledger { display: none; } }
.hero__title {
    margin-top: 22px; max-width: 15ch;
    font-family: var(--serif); font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -.02em;
}
.hero__title em { display: block; font-style: italic; color: var(--gold); }
.hero__lead { margin-top: 28px; max-width: 60ch; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px;
    margin: 64px 0 0; border-top: 1px solid var(--line);
}
.stat { padding: 22px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.stat dd { order: -1; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dd { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.stat dt { color: var(--faint); font-size: 13px; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head h2, .about h2, .contact h2 {
    margin-top: 16px; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15;
}
.section__head p:last-child:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Brand cards ---------- */
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.brands > li { display: flex; }
.card {
    --brand: var(--gold);
    position: relative; overflow: hidden; flex: 1;
    display: flex; flex-direction: column;
    padding: 30px 30px 28px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .2s, transform .2s, background .2s;
}
.card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(80% 70% at 100% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
    transition: opacity .25s;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: color-mix(in srgb, var(--brand) 16%, var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    color: var(--brand); font-family: var(--serif); font-size: 22px;
}
.pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2);
    color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pill--live { color: var(--live); border-color: color-mix(in srgb, var(--live) 35%, transparent); }
.pill--live::before { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 20%, transparent); }
.card__name { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.card__cat { margin-top: 4px; color: var(--faint); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.card__text { margin-top: 16px; color: var(--muted); flex: 1; }
.card__link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px;
    border-top: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600;
}
.card__link span { color: var(--brand); transition: transform .2s; }
.card:hover .card__link span { transform: translateX(4px); }

/* ---------- Principles ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: p; }
.principles li { counter-increment: p; padding: 8px 32px 0 0; }
.principles li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.principles li::before {
    content: "0" counter(p); display: block; margin-bottom: 18px;
    color: var(--gold); font-family: var(--serif); font-size: 15px; letter-spacing: .08em;
}
.principles h3 { font-size: 20px; font-family: var(--serif); }
.principles p { margin-top: 10px; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.about__text { display: grid; gap: 18px; color: var(--muted); font-size: 18px; line-height: 1.75; padding-top: 34px; }

/* ---------- Contact ---------- */
.section--contact { padding-top: 0; }
.doc { padding-bottom: 104px; }
.contact {
    display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center;
    padding-top: 64px; padding-bottom: 64px;
    background:
        radial-gradient(70% 90% at 0% 0%, rgba(212, 179, 122, .10), transparent 70%),
        var(--surface);
    border: 1px solid var(--line); border-radius: 26px;
    padding-left: 56px; padding-right: 56px;
}
.contact__intro p:not(.eyebrow) { margin: 16px 0 30px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 13px; letter-spacing: .04em; padding-top: 2px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts a { color: var(--gold); text-decoration: none; }
.facts a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; font-size: 14px; color: var(--muted); }
.foot__company, .foot__brands, .foot__meta { display: flex; flex-direction: column; gap: 6px; }
.foot__company strong { color: var(--text); font-family: var(--serif); font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot__meta { align-items: flex-end; text-align: right; }

/* ---------- Text pages ---------- */
.doc { max-width: 760px; padding-top: 88px; }
.doc h1 { margin-top: 16px; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.15; }
.doc h2 { margin-top: 40px; font-family: var(--serif); font-size: 24px; }
.doc p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.doc a { color: var(--gold); }
.doc .back { display: inline-block; margin-top: 28px; text-decoration: none; }
.doc--center { text-align: center; padding-top: 140px; }
.doc--center .eyebrow { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .about__text { padding-top: 0; }
    .contact { padding: 44px 32px; }
    .principles { grid-template-columns: 1fr; gap: 32px; }
    .principles li, .principles li + li { padding: 0; border-left: 0; }
    .foot__inner { grid-template-columns: 1fr 1fr; }
    .foot__meta { align-items: flex-start; text-align: left; }
}
@media (max-width: 680px) {
    .wrap { padding: 0 20px; }
    .nav__links a:not(.nav__cta) { display: none; }
    .hero { padding: 72px 0 64px; }
    .hero__lead { font-size: 17px; }
    .brands { grid-template-columns: 1fr; }
    .card { padding: 24px; }
    .section { padding: 72px 0; }
    .stats { margin-top: 48px; }
    .stat { padding-right: 12px; }
    .stat + .stat { padding-left: 14px; }
    .stat dd { font-size: 26px; }
    .contact { padding: 36px 22px; border-radius: 20px; }
    .facts > div { grid-template-columns: 84px minmax(0, 1fr); }
    .contact .btn { white-space: normal; text-align: center; }
    .foot__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .card::before, .card__link span { transition: none; }
}
