@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..700&family=Geist:wght@300..600&family=Geist+Mono:wght@400..500&display=swap');

/* domovoj games: the component layer.
   Colors, type, space, radii and shadows come from tokens.json (compiled to tokens.css).
   Only motion and layout constants live here. */

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;
  --dur-reveal: 1100ms;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--hearth); color: var(--on-hearth); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.dg-container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.dg-section { position: relative; padding-block: clamp(96px, 12vw, 160px); }
.dg-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dg-skip {
  position: fixed; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-full);
  background: var(--ink); color: var(--ground); font-size: 14px; text-decoration: none; transition: top var(--dur-base) var(--ease-out);
}
.dg-skip:focus { top: 16px; }

/* Film grain over everything. Static, so it costs nothing per frame. */
.dg-grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Top-of-page atmosphere: a dot grid fading out, and the hearth's light from above. */
.dg-backdrop { position: absolute; inset: 0 0 auto; height: 1200px; z-index: 0; pointer-events: none; overflow: hidden; }
.dg-backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.dg-backdrop::after {
  content: ""; position: absolute; left: 50%; top: -420px; width: 1400px; height: 900px; transform: translateX(-30%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hearth) 16%, transparent), color-mix(in srgb, var(--hearth-gold) 4%, transparent) 55%, transparent);
}

/* ---------- icon ---------- */

.dg-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- wordmark ---------- */

.dg-wordmark {
  display: inline-flex; align-items: baseline; gap: .26em;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: -.025em;
  font-variation-settings: "opsz" 24; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.dg-wordmark span { color: var(--ink-muted); font-weight: 400; }

/* ---------- button ---------- */

.dg-btn {
  --btn-h: 48px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius-full);
  font: 500 15px/1 var(--font-sans); letter-spacing: -.005em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base), color var(--dur-base);
}
.dg-btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 14px; }
.dg-btn--primary {
  background: var(--hearth); color: var(--on-hearth);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hearth-gold) 75%, transparent);
}
.dg-btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--hearth-gold) 85%, transparent) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform 900ms var(--ease-out);
}
.dg-btn--primary:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hearth-gold) 75%, transparent), var(--glow-hearth); }
.dg-btn--primary:hover::before { transform: translateX(110%); }
.dg-btn--ghost { color: var(--ink); border-color: var(--line-strong); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.dg-btn--ghost:hover { border-color: var(--ink-muted); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dg-btn:focus-visible { border-radius: var(--radius-full); box-shadow: var(--focus-ring); }
.dg-btn .dg-icon { transition: transform var(--dur-base) var(--ease-out); }
.dg-btn:hover .dg-icon--up-right { transform: translate(2px, -2px); }
.dg-btn:hover .dg-icon--down { transform: translateY(2px); }
.dg-btn:hover .dg-icon--right { transform: translateX(3px); }

/* Text link: underline draws in from the left. */
.dg-link {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px;
  color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-base) var(--ease-out);
}
.dg-link:hover { background-size: 100% 1px; }

/* ---------- tag ---------- */

.dg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dg-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-full);
  color: var(--ink-muted); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.dg-tag--hearth { color: var(--hearth); background: var(--hearth-soft); border-color: color-mix(in srgb, var(--hearth) 40%, transparent); }

/* A visible gap in the content: something the studio still has to send. */
.dg-todo {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink-muted); font: 500 12px/1 var(--font-mono); letter-spacing: .04em;
}

/* ---------- eyebrow + section head ---------- */

.dg-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  color: var(--ink-muted); font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.dg-eyebrow b { color: var(--hearth); font-weight: 500; }
.dg-eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--line-strong); }

.dg-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: end;
  gap: 24px 64px; margin-bottom: clamp(48px, 6vw, 80px);
}
.dg-head__title {
  grid-column: 1; margin: 20px 0 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 5.4vw, 68px); line-height: .98; letter-spacing: -.035em;
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.dg-head__lead { grid-column: 2; margin: 0; color: var(--ink-muted); font-size: 17px; line-height: 27px; text-wrap: pretty; }
.dg-head .dg-eyebrow { grid-column: 1; }
@media (max-width: 860px) {
  .dg-head { grid-template-columns: minmax(0, 1fr); }
  .dg-head__lead { grid-column: 1; }
}

/* ---------- nav ---------- */

.dg-nav { position: fixed; inset: 14px 0 auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.dg-nav__bar {
  /* 42px wider than the container, so the wordmark lines up with the content edge below */
  pointer-events: auto; width: min(100% - 2 * var(--gutter) + 42px, 100% - 16px, var(--container) + 42px);
  display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 10px 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-full);
  transition: background-color var(--dur-slow) var(--ease-out), border-color var(--dur-slow), box-shadow var(--dur-slow), -webkit-backdrop-filter var(--dur-slow), backdrop-filter var(--dur-slow);
}
.dg-nav.is-scrolled .dg-nav__bar {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
          backdrop-filter: blur(18px) saturate(150%);
}
.dg-nav__links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.dg-nav__links a {
  display: block; padding: 8px 14px; border-radius: var(--radius-full);
  color: var(--ink-muted); font-size: 14px; line-height: 20px; text-decoration: none;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.dg-nav__links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
@media (max-width: 720px) {
  .dg-nav__links { display: none; }
  .dg-nav__bar { justify-content: space-between; padding-left: 12px; }
}

/* ---------- hero ---------- */

.dg-hero { position: relative; padding: clamp(128px, 15vw, 176px) 0 clamp(72px, 9vw, 120px); overflow: clip; }
.dg-hero__inner { position: relative; z-index: 1; }

.dg-status {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink-muted); font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.dg-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hearth); animation: dg-pulse 2.6s var(--ease-out) infinite; }

.dg-hero__title {
  margin: 28px 0 0;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(46px, 7.4vw, 108px); line-height: .92; letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
}
.dg-fire {
  background: linear-gradient(100deg, var(--hearth) 15%, var(--hearth-gold) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Headline lines rise out of a mask on load. The hidden state lives only in the keyframes
   (fill-mode both), so the text is visible wherever animations do not run. */
.dg-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.dg-line > span { display: block; animation: dg-rise 1.25s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
.dg-enter { animation: dg-enter 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 380ms); }

.dg-hero__row {
  display: grid; grid-template-columns: minmax(0, 580px) auto; justify-content: space-between; align-items: end;
  gap: 32px 48px; margin-top: 36px;
}
.dg-hero__lead { margin: 0; color: var(--ink-muted); font-size: 19px; line-height: 30px; text-wrap: pretty; }
.dg-hero__lead strong { color: var(--ink); font-weight: 500; }
.dg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .dg-hero__row { grid-template-columns: minmax(0, 1fr); } }

.dg-facts {
  display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 28px 0 0; padding: 0; list-style: none;
  color: var(--ink-muted); font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.dg-facts li { display: inline-flex; align-items: center; gap: 10px; }
.dg-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--hearth); }

/* ---------- stage: the hero's animation slot ---------- */

.dg-stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(48px, 6vw, 72px); aspect-ratio: 16 / 7;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
@media (max-width: 720px) { .dg-stage { aspect-ratio: 4 / 5; } }
.dg-stage__mount { position: absolute; inset: 0; z-index: 2; }
.dg-stage__mount:empty { pointer-events: none; }

/* Quiet fallback: an empty, lit level waiting for its scene. */
.dg-stage__ambient { position: absolute; inset: 0; z-index: 0; }
.dg-stage__glow {
  position: absolute; left: 50%; top: 46%; width: min(70%, 780px); aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hearth) 34%, transparent), color-mix(in srgb, var(--hearth-gold) 7%, transparent) 60%, transparent);
  filter: blur(18px); animation: dg-breathe 7s var(--ease-in-out) infinite alternate;
}
.dg-stage__horizon {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hearth-gold) 55%, transparent) 50%, transparent);
}
.dg-stage__floor {
  position: absolute; left: -60%; right: -60%; top: 50%; height: 120%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(380px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  animation: dg-dolly 5s linear infinite;
}
.dg-stage__cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.dg-stage__cross::before, .dg-stage__cross::after { content: ""; position: absolute; background: color-mix(in srgb, var(--ink) 60%, transparent); }
.dg-stage__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.dg-stage__cross::after { top: 50%; left: 0; right: 0; height: 1px; }

/* HUD chrome shared by the stage and the screenshot frame. */
.dg-frame {
  --c: color-mix(in srgb, var(--ink) 55%, transparent); --s: 18px; --w: 1.5px;
  position: absolute; inset: 14px; z-index: 4; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--s) no-repeat;
}
.dg-hud {
  position: absolute; inset: 26px 30px; z-index: 4; pointer-events: none;
  display: grid; grid-template: auto 1fr auto / 1fr 1fr;
  color: var(--ink-muted); font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.dg-hud > :nth-child(2n) { justify-self: end; text-align: right; }
.dg-hud > :nth-child(3), .dg-hud > :nth-child(4) { align-self: end; grid-row: 3; }
.dg-hud b { color: var(--hearth-gold); font-weight: 500; }

/* ---------- service cards ---------- */

.dg-services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }

.dg-card {
  --mx: 50%; --my: -40%;
  position: relative; isolation: isolate; grid-column: span 4;
  display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color var(--dur-base);
}
.dg-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--hearth) 10%, transparent), transparent 60%);
}
.dg-card::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
  background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--hearth-gold) 75%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.dg-card:hover::before, .dg-card:hover::after, .dg-card:focus-within::before, .dg-card:focus-within::after { opacity: 1; }

.dg-card__num { color: var(--ink-subtle); font: 500 12px/16px var(--font-mono); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.dg-card__title {
  margin: auto 0 0; padding-top: 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -.02em; font-variation-settings: "opsz" 24;
  text-wrap: balance;
}
.dg-card__text { margin: 0; max-width: 44ch; color: var(--ink-muted); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.dg-card .dg-tags { margin-top: 10px; }

.dg-card--feature { grid-column: span 6; min-height: 500px; }
.dg-card--feature .dg-card__title { margin-top: 0; padding-top: 8px; font-size: 30px; line-height: 36px; }
.dg-card__visual { position: relative; flex: 1; min-height: 220px; margin: 8px -28px 0; display: grid; place-items: center; }

.dg-card--wide { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.dg-card--wide .dg-card__title { margin: 0; padding: 0; flex: 1 1 260px; }
.dg-card--wide .dg-card__text { flex: 2 1 320px; }
.dg-card--wide .dg-tags { margin: 0; }

@media (max-width: 1024px) {
  .dg-card { grid-column: span 6; }
  .dg-card--feature, .dg-card--wide { grid-column: span 12; }
}
@media (max-width: 640px) {
  .dg-card { grid-column: span 12; min-height: 0; }
  .dg-card--feature { min-height: 0; }
  .dg-card--wide { flex-direction: column; align-items: flex-start; }
}

/* Blueprint graph (UE5 card) */
.dg-bp { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.dg-bp .node { fill: var(--surface-raised); stroke: var(--line); }
.dg-bp .head { fill: var(--line); }
.dg-bp .head-event { fill: var(--hearth-soft); }
.dg-bp .title { fill: var(--ink); font: 500 11px var(--font-mono); letter-spacing: .02em; }
.dg-bp .title-event { fill: var(--hearth); }
.dg-bp .pin-label { fill: var(--ink-muted); font: 400 10px var(--font-mono); }
.dg-bp .exec { fill: var(--ink); }
.dg-bp .pin { fill: none; stroke: var(--hearth-gold); stroke-width: 1.5; }
.dg-bp .pin-on { fill: var(--hearth-gold); }
.dg-bp .wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.dg-bp .wire-data { stroke: color-mix(in srgb, var(--hearth-gold) 45%, transparent); }
.dg-bp .pulse { fill: none; stroke: var(--hearth-gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 14 400; animation: dg-flow 2.8s var(--ease-in-out) infinite; }
.dg-bp .pulse-2 { animation-delay: .9s; }
.dg-bp .pulse-3 { animation-delay: 1.5s; }

/* Gamepad menu (UI/UX card) */
.dg-menu { position: relative; width: min(100% - 56px, 320px); padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--ground) 55%, transparent); }
.dg-menu__list { position: relative; margin: 0; padding: 0; list-style: none; }
.dg-menu__item {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 14px; color: var(--ink-muted); font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -.01em;
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); cursor: default;
}
.dg-menu__item::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) translateX(-4px); opacity: 0; transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out); }
.dg-menu__item.is-focus { color: var(--ink); transform: translateX(4px); }
.dg-menu__item.is-focus::after { opacity: 1; transform: rotate(45deg) translateX(0); color: var(--hearth-gold); }
.dg-menu__focus {
  position: absolute; left: 0; right: 0; top: 0; height: 44px; z-index: 0; border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hearth-gold) 55%, transparent), 0 8px 30px -12px color-mix(in srgb, var(--hearth) 70%, transparent);
  transition: transform 520ms var(--ease-out), height 520ms var(--ease-out);
}
.dg-menu__prompts { display: flex; gap: 18px; margin-top: 12px; padding: 12px 14px 2px; border-top: 1px solid var(--line); color: var(--ink-muted); font: 500 11px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.dg-menu__prompts span { display: inline-flex; align-items: center; gap: 8px; }
.dg-glyph {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--ink); font: 600 10px/1 var(--font-mono); font-style: normal;
}

/* ---------- showcase ---------- */

.dg-show__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.dg-show__title {
  margin: 20px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(54px, 8vw, 112px); line-height: .9; letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
}
.dg-show__lead { margin: 22px 0 0; max-width: 560px; color: var(--ink-muted); font-size: 17px; line-height: 27px; text-wrap: pretty; }
.dg-show__lead em { color: var(--ink); font-style: normal; }

.dg-show__frame {
  --px: 0; --py: 0;
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(40px, 5vw, 56px); aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg);
}
.dg-show__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.045); transition: opacity 1s var(--ease-out), transform 2.4s var(--ease-out); }
.dg-show__slide.is-active { opacity: 1; transform: scale(1); }
.dg-show__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate(calc(var(--px) * -10px), calc(var(--py) * -8px)) scale(1.03);
  transition: transform 1.2s var(--ease-out);
}
.dg-show__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--ground) 78%, transparent), transparent 34%); }
.dg-show__bar {
  position: absolute; left: 30px; right: 30px; bottom: 26px; z-index: 5;
  display: flex; align-items: center; gap: 18px;
  color: var(--ink); font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.dg-show__progress { flex: 1; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; }
.dg-show__progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--hearth), var(--hearth-gold)); transform-origin: 0 50%; transform: scaleX(0); }
.dg-show__frame .dg-frame { inset: 16px; }
@media (max-width: 640px) { .dg-show__bar { left: 22px; right: 22px; bottom: 18px; } .dg-show__bar > :last-child { display: none; } }

.dg-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.dg-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised);
  opacity: .5; transition: opacity var(--dur-base), border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.dg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dg-thumb:hover { opacity: .85; transform: translateY(-2px); }
.dg-thumb[aria-current="true"] { opacity: 1; border-color: var(--hearth); }
.dg-thumb:focus-visible { border-radius: var(--radius-md); }
@media (max-width: 640px) { .dg-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dg-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.dg-meta dt { color: var(--ink-subtle); font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.dg-meta dd { margin: 10px 0 0; color: var(--ink); font-size: 17px; line-height: 26px; }
.dg-meta dd .dg-tags { margin-top: 2px; }
@media (max-width: 760px) { .dg-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Placeholder art, for previews that cannot load the real screenshots. */
.dg-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-muted); font: 500 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.dg-ph--1 { background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--hearth-gold) 30%, var(--surface)), var(--surface) 70%); }
.dg-ph--2 { background: radial-gradient(110% 90% at 70% 30%, color-mix(in srgb, var(--hearth) 28%, var(--surface)), var(--surface) 70%); }
.dg-ph--3 { background: radial-gradient(120% 100% at 50% 100%, color-mix(in srgb, var(--hearth-gold) 22%, var(--surface)), var(--surface) 70%); }

/* ---------- contact ---------- */

.dg-contact { position: relative; overflow: clip; padding: clamp(112px, 15vw, 200px) 0 32px; }
.dg-contact__glow {
  position: absolute; left: 50%; bottom: -460px; width: 1600px; height: 900px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hearth) 42%, transparent), color-mix(in srgb, var(--hearth-gold) 10%, transparent) 55%, transparent);
  filter: blur(10px); animation: dg-breathe-x 8s var(--ease-in-out) infinite alternate;
}
.dg-contact__inner { position: relative; z-index: 1; }
.dg-contact__title {
  margin: 24px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(46px, 7.4vw, 108px); line-height: .92; letter-spacing: -.045em;
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.dg-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: end; gap: 48px 80px; margin-top: 56px; }
.dg-contact__lead { margin: 0 0 28px; max-width: 520px; color: var(--ink-muted); font-size: 19px; line-height: 30px; }
@media (max-width: 860px) { .dg-contact__grid { grid-template-columns: minmax(0, 1fr); } }

.dg-channels { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dg-channels li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); }
.dg-channels .k { color: var(--ink-subtle); font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.dg-footer {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(96px, 12vw, 160px); padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-subtle); font-size: 13px; line-height: 20px;
}
.dg-footer a { color: var(--ink-muted); text-decoration: none; }
.dg-footer a:hover { color: var(--ink); }

/* ---------- scroll reveal (only when bundle.js runs) ---------- */

.dg-js [data-reveal] {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out), filter var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.dg-js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- keyframes ---------- */

@keyframes dg-rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes dg-enter { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dg-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hearth) 65%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--hearth) 0%, transparent); }
}
@keyframes dg-breathe { from { opacity: .7; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
@keyframes dg-breathe-x { from { opacity: .75; transform: translateX(-50%) scale(.97); } to { opacity: 1; transform: translateX(-50%) scale(1.03); } }
@keyframes dg-dolly { to { background-position: 0 64px, 0 64px; } }
@keyframes dg-flow { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -400; } }
@keyframes dg-progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .dg-js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .dg-bp .pulse { display: none; }
}
