/* ==========================================================================
   The inner pages' theme: the dark, cinematic look of the homepage (newhp.css).
   Every page except the homepage has html.nd and loads this after styles.css.

   How it works: the colour tokens from styles.css are flipped (dark canvas, cream text,
   charcoal cards), and the parts that are meant to stay dark or gold (footer, dark cards,
   the gold call-to-action band) get the original tokens back. Headlines use Anton, as on
   the homepage.
   ========================================================================== */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: optional; src: url("../fonts/anton-400.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-400-italic.woff2") format("woff2"); }

html.nd {
  --cream: #141619;            /* page */
  --cream-2: #1f2428;
  --white: #1f2428;            /* cards */
  --ink: #f7efe6;              /* text */
  --ink-2: rgba(247, 239, 230, .8);
  --muted: rgba(247, 239, 230, .66);
  --line: rgba(247, 239, 230, .14);
  --field-line: rgba(247, 239, 230, .38);
  --gold-ink: #d4b483;         /* gold text on dark */
  --gold-wash: rgba(212, 180, 131, .16);
  --error: #ff8a80;
  --focus: #d4b483;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --on-gold: #1f2428;
  color-scheme: dark;
}
/* These stay as they are: give them the original palette back */
.nd .site-footer, .nd .contact-card--dark, .nd .cta-band__inner, .nd .panel, .nd .crew, .nd .dark, .nd .tape, .nd .video, .nd .clients, .nd .tt, .nd .tt-modal {
  --cream: #f7efe6; --cream-2: #efe3d5; --white: #ffffff; --ink: #1f2428; --ink-2: #454b52; --muted: #656a70; --line: #e2d5c5;
  --gold-ink: #86652f; --gold-wash: #f3e6d2; --focus: #d4b483; --error: #b3261e; color-scheme: light;
}
.nd .site-footer { background: radial-gradient(60% 80% at 0% 0%, rgba(184, 147, 90, .14), transparent 60%), #0e1012; border-top: 1px solid rgba(247, 239, 230, .08); }
.nd .contact-card--dark { background: #0e1012; border: 1px solid rgba(212, 180, 131, .35); }

/* Text on gold keeps the charcoal (the token for text is cream now) */
.nd .btn, .nd .btn--light:hover, .nd .btn--dark:hover, .nd .px__row .code, .nd .social-yt svg, .nd .social-yt:hover, .nd ::selection { color: var(--on-gold); }
.nd .btn:hover { background: #f7efe6; border-color: #f7efe6; color: var(--on-gold); }
.nd .btn--outline { background: transparent; color: #f7efe6; border-color: rgba(247, 239, 230, .7); }
.nd .btn--outline:hover { background: #f7efe6; border-color: #f7efe6; color: var(--on-gold); }
.nd .skip-link { color: var(--on-gold); }
.nd .cta-band .btn { color: #f7efe6; }
.nd .cta-band .btn:hover { background: #f7efe6; border-color: #f7efe6; color: var(--on-gold); }

/* Header: charcoal glass */
.nd .site-header { background: rgba(20, 22, 25, .86); border-bottom: 1px solid rgba(247, 239, 230, .08); }
.nd .nav .nav__panel { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.nd .sticky-cta { background: rgba(20, 22, 25, .96); box-shadow: 0 -6px 20px rgba(0, 0, 0, .4); }

/* Type: Anton headlines, as on the homepage */
.nd main h1, .nd main h2 { font-family: "Anton", "Arial Narrow", Impact, sans-serif; font-weight: 400; letter-spacing: .005em; text-wrap: balance; }
.nd main h1 { line-height: .94; }
.nd .page-hero h1 { max-width: 16ch; font-size: clamp(3rem, 7.4vw, 6.6rem); }
@media (max-width: 400px) { .nd .page-hero h1 { font-size: 2.6rem; } }
/* Case studies and news posts have long titles: smaller, wider headline */
.nd .cs .page-hero h1, .nd .post .page-hero h1, .nd .cs h1, .nd .post h1 { max-width: 22ch; font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: .98; }
.nd main h2 { line-height: 1; font-size: clamp(2rem, 3.8vw, 3.2rem); }
.nd .post__body h2, .nd .cs-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.04; }
.nd .cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 16ch; }
.nd .lead { color: rgba(247, 239, 230, .86); }
.nd .page-hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px);
  background: radial-gradient(55% 90% at 100% 0%, rgba(184, 147, 90, .16), transparent 65%); }
.nd .crumbs a { text-decoration-color: rgba(212, 180, 131, .5); }

/* Cards: charcoal, a fine line instead of a drop shadow */
.nd .px__row, .nd .person, .nd .intake, .nd .tile, .nd .places li, .nd .metrics li, .nd .contact-card, .nd .social-block__inner,
.nd .cs-glance, .nd .cs-hero-stat, .nd .cs-table, .nd .post-card a, .nd .faq details[open] {
  border: 1px solid rgba(247, 239, 230, .1); box-shadow: none; }
.nd .px__row, .nd .person, .nd .post-card a, .nd .cs-card a { transition: border-color .25s, background-color .25s, translate .3s var(--ease); }
.nd .px__row:has(h3 a):hover, .nd .person:has(h3 a):hover, .nd .post-card a:hover { border-color: rgba(212, 180, 131, .55); background: #232a2f; }
.nd .cs-glance { border-left: 6px solid var(--gold); }
.nd .faq details { border: 1px solid rgba(247, 239, 230, .22); }
.nd .tags li { border: 1px solid rgba(247, 239, 230, .3); background: var(--cream-2); }
.nd .cs-table thead th { background: #2a3137; color: #f7efe6; }
.nd .cs-table td, .nd .cs-table th { border-color: rgba(247, 239, 230, .1); }

/* Case study cards on the hub and teasers: as on the homepage */
.nd .cs-card a { background: var(--white); border: 1px solid rgba(247, 239, 230, .1); box-shadow: none; color: #f7efe6; }
.nd .cs-card a:hover { border-color: rgba(212, 180, 131, .55); }
.nd .cs-card__title { color: #f7efe6; }
.nd .cs-stat__nums strong { color: #d4b483; }

/* Photos and figures sit on the dark canvas */
.nd .page-photo, .nd .photo, .nd .ceo__photo { background: #1f2428; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.nd .cs-fig img, .nd .post__body img { border-radius: var(--radius-sm); }

/* Forms: dark fields with a light outline */
.nd .field input, .nd .field select, .nd .field textarea { background: #0e1012; }
.nd .field input:focus, .nd .field select:focus, .nd .field textarea:focus { background: #0e1012; border-color: #d4b483; box-shadow: 0 0 0 4px rgba(212, 180, 131, .2); }
.nd .field select option { background: #1f2428; color: #f7efe6; }

/* The gold call-to-action band at the bottom of each page: deeper, like the end of the homepage */
.nd .cta-band__inner { background: radial-gradient(70% 120% at 100% 0%, #e2c48f, transparent 60%), var(--gold); }

/* Phones: footer links in two columns */
@media (max-width: 719px) {
  .nd .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .nd .footer__brand { grid-column: 1 / -1; }
}
