/* MrDapGan Voice Acting — single-page site
   Brand accent #1F5F7A, monogram DG — matched to invoice identity. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b1013;
  --bg-elev: #12191d;
  --bg-card: #161e23;
  --bg-card-hover: #1b252b;
  --accent: #1f5f7a;
  --accent-hover: #287894;
  --accent-bright: #4fa3bf;
  --accent-soft: #cfe3ea;
  --ink: #f2f4f5;
  --muted: #9aa6ab;
  --line: #2a353b;
  --radius: 14px;
  --header-h: 4.25rem;
  --wrap: 72rem;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-bright);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
button, input, a { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }

a {
  color: var(--accent-soft);
  text-underline-offset: 0.18em;
}
a:hover { color: #fff; }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 0;
  box-shadow: var(--focus);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 16, 19, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 16, 19, 0.92);
}
.header-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.mono {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.7rem;
  height: 2.7rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.35rem;
  line-height: 1;
}
.mono-letters {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.mono-voice {
  font-family: var(--font-sans);
  font-size: 0.38rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-top: 0.12rem;
}
.mono-lg {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.65rem;
  margin-inline: auto;
  box-shadow: 0 12px 32px rgba(31, 95, 122, 0.35);
}
.mono-lg .mono-letters { font-size: 1.85rem; }
.mono-lg .mono-voice { font-size: 0.58rem; letter-spacing: 0.16em; margin-top: 0.22rem; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}
.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--accent);
  color: #fff;
  padding-inline: 1rem;
}
.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 4.5rem 1.25rem 5.5rem;
  overflow: clip;
}
.hero-glow {
  position: absolute;
  inset: 10% 10% auto;
  height: 28rem;
  background: radial-gradient(closest-side, rgba(31, 95, 122, 0.38), rgba(31, 95, 122, 0.08) 55%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}
.hero-inner {
  width: min(52rem, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 1.6rem 0 0.85rem;
}
.hero-name {
  font-size: min(7.25rem, calc((100vw - 2.5rem) / 5.15));
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--ink);
  white-space: nowrap;
}
.hero-legal {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-soft);
}
.hero-tag {
  margin-top: 0.85rem;
  font-size: 1.08rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-sep { margin-inline: 0.45rem; color: var(--accent-bright); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: #fff;
  background: rgba(31, 95, 122, 0.2);
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0 5.75rem;
}
.section-alt {
  background: linear-gradient(180deg, rgba(18, 25, 29, 0.65), rgba(18, 25, 29, 0.9));
  border-block: 1px solid var(--line);
}
.section-head { max-width: 40rem; }
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.7rem;
}
.section-head .eyebrow { margin-top: 0; margin-bottom: 0.55rem; }
.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
}

/* ---------- Players ---------- */
.players {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.4rem;
  width: 100%;
}
.player {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.15rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.player.is-playing {
  border-color: var(--accent-bright);
  background: #182329;
}
.player-kind {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.player-title {
  font-size: 1.55rem;
  margin-top: 0.2rem;
}
.player-desc {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.2rem;
}
.player-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  margin-top: 1.05rem;
}
.play-btn {
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.play-btn:hover { background: var(--accent-hover); }
.play-btn:active { transform: scale(0.96); }
.play-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}
.play-btn .icon-play { margin-left: 0.12rem; }
.play-btn .icon-pause { display: none; }
.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }

.seek-wrap { min-width: 0; }
.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  outline: none;
  margin: 0;
  --p: 0%;
  background: linear-gradient(to right, var(--accent-bright) var(--p), var(--line) var(--p));
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 3px rgba(31, 95, 122, 0.45);
}
.seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 3px rgba(31, 95, 122, 0.45);
}
.seek:focus-visible { box-shadow: var(--focus); }
.time {
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.dl-link {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-soft);
  padding: 0.35rem 0;
  white-space: nowrap;
}
.dl-link:hover { color: #fff; text-decoration: underline; }

/* Hide native audio when custom controls are active */
.js .player audio { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no-js .player-controls { display: none; }
.no-js .player audio { width: 100%; margin-top: 1rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem 4rem;
  align-items: start;
}
.about-body { font-size: 1.12rem; }
.about-body p + p { margin-top: 1rem; }

.about-facts {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.about-facts li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}
.fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* ---------- Cards / services / clients ---------- */
.cards { margin-top: 2.3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
}
.card h3 {
  font-size: 1.45rem;
  margin: 0.7rem 0 0.45rem;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: rgba(31, 95, 122, 0.28);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
}
.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.4rem;
}
.client-feature {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.7rem 2rem;
}
.client-feature h3 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}
.client-project {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-grid { display: block; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.3rem;
}
.contact-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
a.contact-card:hover {
  color: inherit;
  border-color: var(--accent-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card .fact-label,
.contact-card .fact-label {
  color: var(--accent-bright);
}
.card .contact-value,
.contact-value {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0.45rem 0 0.3rem;
  word-break: break-word;
  line-height: 1.25;
}
.card .contact-hint,
.contact-hint { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
}
.brand-footer .mono { width: 2.4rem; height: 2.4rem; }
.brand-footer .mono-letters { font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 3.85rem; }
  .wrap, .header-inner { width: min(var(--wrap), calc(100% - 1.5rem)); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: #0b1013;
    border-bottom: 0;
    padding: 0.85rem 1.25rem 1.5rem;
    display: none;
    z-index: 60;
    overflow: auto;
  }
  .site-nav.is-open { display: block; }
  .site-header.is-scrolled .site-nav,
  html.nav-open .site-header {
    background: #0b1013;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .site-nav a, .site-nav .nav-cta {
    margin: 0;
    display: block;
    text-align: left;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
  }
  .hero { padding: 2.4rem 1rem 3.1rem; min-height: 0; }
  .mono-lg { width: 4.4rem; height: 4.4rem; }
  .mono-lg .mono-letters { font-size: 1.5rem; }
  .hero-legal { font-size: 1.05rem; }
  .hero-tag { font-size: 0.98rem; max-width: 22rem; }
  .section { padding: 3.75rem 0 4rem; }
  .player-controls {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "play seek seek"
      "play time download";
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
  }
  .play-btn { grid-area: play; align-self: center; }
  .seek-wrap { display: contents; }
  .seek { grid-area: seek; }
  .time { grid-area: time; margin-top: 0; }
  .dl-link { grid-area: download; justify-self: end; padding: 0; }
  .about-facts li { grid-template-columns: 1fr; gap: 0.15rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .client-feature { padding: 1.35rem 1.25rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 12rem; }
  .player { padding: 1.1rem 1rem; }
  .player-title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html.nav-open { overflow: hidden; }
