/* =============================================================
   DAXTON DIGITAL — SITE (brand trunk)
   family.css and tokens.css load before this. Every value here
   resolves to a token from one of those files.
   ============================================================= */

body {
  background: var(--surface-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  overflow-x: hidden;
}

::selection { background: var(--sapphire); color: var(--cloud-white); }

:focus-visible {
  outline: 2px solid var(--sapphire-lift);
  outline-offset: 3px;
}

/* Digital's own skip-link colouring (family provides the primitive) */
.skip { background: var(--surface-3); color: var(--ink-1); }

/* ---------- LAYOUT (Digital-specific surface only) ---------- */
.section-lift { background: var(--surface-1); border-block: 1px solid var(--rule-faint); }

/* ---------- TYPE PRIMITIVES ---------- */
.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--track-tight);
}
.t-h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 600; line-height: var(--lh-heading); }
.t-h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-heading); }
.t-h3 { font-family: var(--font-body);    font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); color: var(--ink-1); }

.t-lead { font-size: var(--fs-lead); font-weight: 300; line-height: var(--lh-body); color: var(--ink-2); max-width: 54ch; }
.t-body { font-size: var(--fs-body); font-weight: 300; color: var(--ink-2); max-width: var(--measure); }
.t-body + .t-body { margin-top: var(--s-5); }
.t-body strong { color: var(--ink-1); font-weight: 500; }

.kicker {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-lockup);
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.kicker::before {
  content: ""; width: 32px; height: 1px;
  background: var(--sapphire-lift); flex: none;
}
.kicker.is-centered { justify-content: center; }

.meta {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in srgb, var(--surface-0) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule-faint); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  height: 68px; max-width: var(--page-wide); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: var(--s-3); }
.brand img { width: 26px; height: auto; }
.brand-wm {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-1); white-space: nowrap;
}
.brand-wm span { color: var(--sapphire-lift); font-weight: 400; }

.nav-links { display: flex; gap: var(--s-6); list-style: none; }
.nav-links a {
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-2); padding-block: var(--s-2); position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--sapphire-lift); transition: right var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink-1); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { right: 0; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink-1); cursor: pointer; padding: var(--s-2); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 68px; inset-inline: 0;
    flex-direction: column; gap: 0; padding-block: var(--s-2);
    background: var(--surface-1); border-bottom: 1px solid var(--rule);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: var(--s-4) var(--gutter); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--sapphire-line); color: var(--sapphire-lift);
  background: transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--sapphire); border-color: var(--sapphire); color: var(--cloud-white); }
.btn svg { width: 13px; height: 13px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-quiet {
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-quiet:hover { color: var(--sapphire-lift); border-bottom-color: var(--sapphire-lift); }

/* ---------- HERO ---------- */
.hero { padding: calc(68px + var(--s-10)) 0 var(--s-9); position: relative; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, var(--sapphire-line), transparent 60%);
}
.hero-h1 { max-width: 18ch; margin-bottom: var(--s-6); }
.hero-h1 em { font-style: normal; color: var(--ink-3); }
.hero-lead { margin-bottom: var(--s-8); }
.hero-actions { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6);
  margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--rule);
}
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); } }
.fact b {
  display: block; font-family: var(--font-display); font-size: var(--fs-h3);
  font-weight: 600; color: var(--ink-1); letter-spacing: 0.02em; margin-bottom: var(--s-1);
}
.fact span {
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3);
}

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(var(--s-7), 7vw, var(--s-9)); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s-7); } }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-7), 6vw, var(--s-9)); align-items: center; }
@media (max-width: 900px) { .split-even { grid-template-columns: 1fr; } }

/* ---------- FIGURE / PHOTOGRAPHY ---------- */
.figure { position: relative; overflow: hidden; background: var(--surface-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-4x3  { aspect-ratio: 4 / 3; }
.figure-3x4  { aspect-ratio: 3 / 4; }
.figure-16x9 { aspect-ratio: 16 / 9; }
.figure-3x1  { aspect-ratio: 3 / 1; }
.figure figcaption {
  margin-top: var(--s-3);
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3);
}
/* Placeholder state — intentional, not broken-looking */
.figure[data-placeholder] {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--rule); background: var(--surface-1);
}
.figure[data-placeholder]::after {
  content: attr(data-placeholder);
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-3); text-align: center; padding: var(--s-5); max-width: 30ch; line-height: 1.9;
}
.figure[data-placeholder] img { display: none; }

/* ---------- PORTFOLIO ---------- */
.portfolio { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--s-8); align-items: start; }
@media (max-width: 900px) { .portfolio { grid-template-columns: 1fr; } }

.holding { display: flex; flex-direction: column; gap: var(--s-5); }
.holding-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.holding-name { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; color: var(--ink-1); }
.holding-status {
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--sapphire-lift);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.holding-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sapphire-lift); }
.holding-spec {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  padding-top: var(--s-4); border-top: 1px solid var(--rule-faint);
}
.holding-spec div { font-family: var(--font-label); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); }
.holding-spec b { color: var(--ink-2); font-weight: 500; }

.reserved {
  border: 1px dashed var(--rule); padding: var(--s-6); align-self: start;
  display: flex; flex-direction: column; gap: var(--s-4);
}
.reserved .meta { color: var(--ink-3); }
.reserved h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--ink-2); }
.reserved p { font-size: var(--fs-small); color: var(--ink-3); font-weight: 300; }

/* ---------- STACK / APPROACH ---------- */
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule-faint); border: 1px solid var(--rule-faint); }
@media (max-width: 760px) { .stack { grid-template-columns: 1fr; } }
.stack-item { background: var(--surface-1); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.stack-item .meta { color: var(--sapphire-lift); }
.stack-item h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--ink-1); }
.stack-item p { font-size: var(--fs-small); color: var(--ink-2); font-weight: 300; }

/* ---------- CRITERIA (owners page) ---------- */
.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
@media (max-width: 860px) { .criteria { grid-template-columns: 1fr; gap: var(--s-7); } }
.criteria h3 { margin-bottom: var(--s-5); }
.clist { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }
.clist li {
  display: grid; grid-template-columns: 18px 1fr; gap: var(--s-3);
  font-size: var(--fs-body); font-weight: 300; color: var(--ink-2); line-height: 1.55;
}
.clist li::before { content: "—"; color: var(--sapphire-lift); }
.clist.is-not li::before { content: "×"; color: var(--ink-3); }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: var(--s-5);
  padding-block: var(--s-6); border-top: 1px solid var(--rule-faint);
}
.steps li:last-child { border-bottom: 1px solid var(--rule-faint); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--sapphire-lift);
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { font-size: var(--fs-small); color: var(--ink-2); font-weight: 300; max-width: 58ch; }
@media (max-width: 620px) { .steps li { grid-template-columns: 1fr; gap: var(--s-2); } }

/* ---------- FOUNDER ---------- */
.founder { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(var(--s-7), 6vw, var(--s-9)); align-items: start; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }
.founder-name { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--s-1); }
.founder-role { margin-bottom: var(--s-6); }
.creds { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule-faint); }
.creds li { font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.signoff {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; object-position: 50% 22%;
  margin: 0 auto var(--s-6);
  border: 1px solid var(--rule);
  filter: grayscale(1);
}
.contact h2 { max-width: 26ch; margin-inline: auto; margin-bottom: var(--s-6); }
.contact-mail {
  display: inline-block;
  font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 400;
  color: var(--sapphire-lift); border-bottom: 1px solid var(--sapphire-line);
  padding-bottom: var(--s-1);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.contact-mail:hover { color: var(--sapphire-bright); border-bottom-color: var(--sapphire-bright); }
.contact .meta { margin-top: var(--s-6); }

/* ---------- DEDICATION — the closing signature ----------
   The only place gold appears at scale. Everything above
   this block is sapphire and neutral, which is what gives
   this moment its weight.
   -------------------------------------------------------- */
.dedication {
  padding-block: clamp(var(--s-9), 12vw, var(--s-11));
  text-align: center;
  border-top: 1px solid var(--rule-faint);
  background: radial-gradient(ellipse 60% 80% at 50% 45%, color-mix(in srgb, var(--heritage-gold) 5%, transparent), transparent 70%);
}
.dedication img {
  width: clamp(240px, 26vw, 360px);
  height: auto;
  margin-inline: auto; margin-bottom: var(--s-6);
  opacity: 0.97;
  display: block;
}
.founder-crest {
  width: 88px;
  height: auto;
  aspect-ratio: 512 / 499;
  display: block;
  margin-bottom: var(--s-5);
  opacity: 0.92;
}
@media (max-width: 860px) {
  .founder-crest { margin-inline: 0; }
}
.dedication-rule { width: 44px; height: 1px; background: var(--gold-quiet); margin: 0 auto var(--s-6); }
.dedication p {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); line-height: 1.5;
}
.dedication .year {
  display: block; margin-top: var(--s-3);
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-lockup); text-transform: uppercase; color: var(--gold-quiet);
}

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--rule-faint); padding: var(--s-7) 0 var(--s-6); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.footer-brand { display: flex; align-items: flex-start; gap: var(--s-4); }
.footer-brand img { width: 34px; }
.footer-brand strong {
  display: block; font-family: var(--font-display); font-size: var(--fs-label);
  font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-1); margin-bottom: var(--s-1);
}
.footer-brand span { font-size: var(--fs-micro); color: var(--ink-3); letter-spacing: 0.04em; line-height: 1.7; display: block; }
.footer-nav { display: flex; gap: var(--s-5); list-style: none; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-label); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3);
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--sapphire-lift); }
.footer-legal {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule-faint);
  font-family: var(--font-label); font-size: var(--fs-micro); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
}

/* Motion primitives (.reveal, prefers-reduced-motion) live in family.css. */
