/* Den Dynasty Holdings Inc. — site styles. No external fonts or scripts. */
:root {
  --bg: #0d0d0f;
  --bg-raise: #151518;
  --bg-sunk: #0a0a0b;
  --line: #26262b;
  --line-strong: #3a3a41;
  --text: #ecebe8;
  --text-muted: #a3a19c;
  --silver: #c5c7cd;
  --accent: #7d1d2c;
  --accent-hover: #942538;
  --accent-text: #d98a95;
  --red: #b3262e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(72px, 11vw, 136px);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 14px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 600 0.75rem/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 13, 15, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--silver); flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.1875rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand-name small { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--text-muted); margin-left: 6px; vertical-align: 2px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
.nav a { font-size: 0.875rem; letter-spacing: 0.04em; color: var(--text-muted); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line-strong); padding: 8px 16px; }
.nav .nav-cta:hover { border-color: var(--silver); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 600 0.9375rem/1.2 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--silver); }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > .wrap { position: relative; padding-top: clamp(88px, 14vw, 168px); padding-bottom: clamp(80px, 12vw, 144px); }
.hero h1 { font-size: clamp(2.375rem, 6vw, 4.25rem); max-width: 15ch; }
.hero .lede { margin-top: 28px; max-width: 58ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-muted); }
.hero .actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art {
  position: absolute; right: -4%; bottom: 0; width: min(62%, 760px); height: auto;
  color: var(--silver); opacity: 0.16; pointer-events: none;
}
.hero-art .apex { color: var(--accent); }

.pillars { border-top: 1px solid var(--line); }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.pillars li { padding: 22px 0; font-size: 0.875rem; letter-spacing: 0.06em; color: var(--text-muted); border-left: 1px solid var(--line); padding-left: 22px; }
.pillars li:first-child { border-left: 0; padding-left: 0; }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 16ch; }
.section-head p { color: var(--text-muted); max-width: 54ch; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.service { padding: 40px 32px 44px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 32px; }
.service:last-child { border-right: 0; padding-right: 0; }
.service .num { font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.14em; color: var(--accent-text); }
.service h3 { font-size: 1.625rem; margin: 22px 0 16px; }
.service p { color: var(--text-muted); }
.service ul { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.service li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }

.steps { list-style: none; margin: clamp(64px, 9vw, 104px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps-title { font-size: 1.5rem; margin-top: clamp(64px, 9vw, 104px); }
.steps-title + .steps { margin-top: 32px; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.steps li::before { content: "0" counter(step); display: block; font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.14em; color: var(--silver); margin-bottom: 14px; }
.steps h4 { margin: 0 0 8px; font: 600 1rem/1.4 var(--sans); }
.steps p { color: var(--text-muted); font-size: 0.9375rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; }
.about-grid h2 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 14ch; }
.prose p + p { margin-top: 20px; }
.prose p { color: var(--text-muted); }
.prose p.strong { color: var(--text); font-size: 1.1875rem; }
.principles { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles strong { font-weight: 600; }
.principles span { color: var(--text-muted); }
.parent-note { margin-top: 32px; font-size: 0.9375rem; color: var(--text-muted); }

/* Contact */
.contact { background: var(--bg-sunk); }
.contact-card { border: 1px solid var(--line-strong); background: var(--bg-raise); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 64px; }
.contact-card h2 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 14ch; }
.contact-card .lede { margin-top: 20px; color: var(--text-muted); max-width: 46ch; }
.contact-card .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.email-line { margin-top: 20px; font-size: 0.9375rem; color: var(--text-muted); }
.email-line a { color: var(--text); overflow-wrap: anywhere; }
.include h3 { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); }
.include ul { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.include li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 0.9375rem; }
.include p { margin-top: 20px; font-size: 0.875rem; color: var(--text-muted); }

/* Footer */
.site-footer { padding: 48px 0 56px; font-size: 0.875rem; color: var(--text-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer .brand-name { font-size: 1rem; color: var(--text); }
.site-footer p { margin-top: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.notfound p { margin-top: 20px; color: var(--text-muted); }
.notfound .actions { margin-top: 36px; }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 36px 0 40px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section-head, .about-grid, .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 12px; }
  .brand-name small { display: none; }
  .nav ul { justify-content: space-between; gap: 8px; padding: 10px 0 12px; }
  .nav a { font-size: 0.8125rem; }
  .nav .nav-cta { padding: 6px 12px; }
  section { scroll-margin-top: 104px; }
  .pillars ul { grid-template-columns: 1fr; }
  .pillars li, .pillars li:first-child { border-left: 0; padding: 14px 0; border-top: 1px solid var(--line); }
  .pillars li:first-child { border-top: 0; }
  .hero-art { width: 120%; right: -30%; opacity: 0.1; }
  .steps { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; }
}

/* Den Dynasty Holdings additions */
.eyebrow::before { background: var(--accent-text); }
.brand-name { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.brand-name small { letter-spacing: 0.2em; }
.site-footer .brand-name { font-size: 0.75rem; }

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(197, 199, 205, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero h1 { max-width: 17ch; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 26px 0 28px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts .k { display: block; font: 600 0.6875rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.facts .v { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.1875rem; }

.notice {
  margin-top: 40px; padding: 24px 28px;
  border: 1px solid var(--line-strong); border-left: 2px solid var(--accent-text);
  background: var(--bg-raise);
}
.notice h3 { font: 600 0.75rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); }
.notice p { margin-top: 10px; color: var(--text); font-size: 0.9375rem; }

/* Portfolio */
.structure { margin: 0 0 clamp(48px, 7vw, 72px); display: flex; flex-direction: column; align-items: flex-start; }
.structure .node { border: 1px solid var(--line-strong); padding: 16px 22px; width: min(100%, 360px); background: var(--bg-raise); }
.structure .node .k { display: block; font: 600 0.6875rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.structure .node .v { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.1875rem; }
.structure .node.parent { border-color: var(--silver); }
.structure .link { width: 1px; height: 36px; background: var(--line-strong); margin-left: 32px; }
.structure .node.child { margin-left: 32px; width: min(100% - 32px, 328px); border-left: 2px solid var(--accent-text); }
.structure figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.company { border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; padding-top: 44px; }
.company .tag { display: inline-block; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--line-strong); padding: 7px 10px; }
.company h3 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); margin-top: 20px; }
.company .sector { margin-top: 10px; color: var(--text-muted); }
.company .prose ul { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.company .prose li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.company .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.future { margin-top: clamp(48px, 7vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.9375rem; }

.contact-routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-routes li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-routes .k { display: block; font: 600 0.6875rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); }
.contact-routes p { margin-top: 6px; color: var(--text-muted); font-size: 0.9375rem; }
.contact-routes a { color: var(--text); overflow-wrap: anywhere; }

.footer-disclaimer { flex-basis: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; max-width: none; }

@media (max-width: 960px) {
  .company { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li:first-child { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
  .brand-name { font-size: 0.75rem; letter-spacing: 0.2em; }
}
