/*
  Jade Siley-Winditt — engineering portfolio

  Theme switch (one-line change):
    add data-theme="silver" to the <html> element.

  All colours are CSS custom properties in :root and [data-theme="silver"].
  Paths are relative so the site works as local files and under a /<repo>/ GitHub Pages path.
*/

@font-face {
  font-family: "Saira";
  src: url("fonts/Saira-Variable.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Colour tokens                                                              */
/* -------------------------------------------------------------------------- */

:root {
  --bg: #020202;
  --bg-mid: #0c0b0a;
  --bg-ramp: #1c1a17;
  --panel: #121110;
  --panel-alt: #2e2b26;
  --text: #f4f1ea;
  --text-muted: #b9b3a8;
  --accent: #b8975a;
  --accent-mid: #c9a96e;
  --accent-hi: #e3d2a8;
  --accent-line: #a88b4a;
  --accent-deep: #7a6540;
  --badge-public-bg: rgba(184, 151, 90, 0.16);
  --badge-private-bg: rgba(46, 43, 38, 0.9);
  --placeholder-bg: rgba(184, 151, 90, 0.08);
  --placeholder-border: #a88b4a;
  --grid-line: rgba(184, 151, 90, 0.07);
  --header-bg: rgba(2, 2, 2, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --focus: #e3d2a8;
  --header-h: 4.25rem;
  --wrap: 72rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --chamfer: 1.65rem;
  --font: "Saira", "Segoe UI", "Helvetica Neue", sans-serif;
}

[data-theme="silver"] {
  --bg: #050606;
  --bg-mid: #0c0e10;
  --bg-ramp: #15181b;
  --panel: #1a1d20;
  --panel-alt: #24282c;
  --text: #f2f4f6;
  --text-muted: #a3aab1;
  --accent: #c9ced3;
  --accent-mid: #a3aab1;
  --accent-hi: #e8eaed;
  --accent-line: #7d858d;
  --accent-deep: #5c636a;
  --badge-public-bg: rgba(201, 206, 211, 0.14);
  --badge-private-bg: rgba(36, 40, 44, 0.95);
  --placeholder-bg: rgba(201, 206, 211, 0.08);
  --placeholder-border: #7d858d;
  --grid-line: rgba(201, 206, 211, 0.07);
  --header-bg: rgba(5, 6, 6, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --focus: #e8eaed;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--bg-ramp) 0%, transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-attachment: fixed, fixed, fixed;
}

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

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-hi);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--accent-hi);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.05em 0.35em;
  border-radius: 0.15em;
  word-break: break-word;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 80;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

.accent {
  color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* HUD frames — chamfered plates with a hairline in the accent colour         */
/* -------------------------------------------------------------------------- */

.hud {
  position: relative;
  padding: 1px;
  background: var(--accent-line);
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}

.hud-inner {
  background: var(--panel);
  clip-path: inherit;
  height: 100%;
  padding: 1.35rem 1.35rem 1.45rem;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 45%, transparent);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.wordmark-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
}

.wordmark-meta {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-external::after {
  content: " \2192";
  font-size: 0.85em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--accent-line);
  background: var(--panel);
  color: var(--accent-hi);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.2rem var(--gutter) 2.4rem;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plate-main {
  --chamfer: 2.2rem;
}

.plate-main-inner {
  display: grid;
  grid-template-columns: minmax(17rem, 0.95fr) minmax(0, 1.2fr);
  grid-template-areas:
    "title blurb"
    "title blurb";
  gap: 1.6rem 2.6rem;
  align-items: start;
  padding: 1.55rem 2rem 1.9rem 1.5rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, var(--panel)) 0%, var(--panel) 100%);
}

.plate-title {
  grid-area: title;
  --chamfer: 2.2rem;
}

.plate-title .hud-inner {
  padding: 1.8rem 1.7rem 1.9rem 1.8rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--bg-ramp) 70%, var(--panel)) 0%, var(--panel) 55%);
}

.plate-rule {
  width: 4.2rem;
  height: 2px;
  margin-bottom: 1.15rem;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi));
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 .accent {
  display: block;
  font-weight: 650;
}

.hero-date {
  display: block;
  color: var(--text);
  font-weight: 650;
}

.hero-what {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.05rem;
  margin: 0 0 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.9rem 1.25rem;
  margin-bottom: 1.4rem;
}

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  padding: 0.75rem 1.15rem 0.7rem;
  border: 1px solid var(--accent-line);
  min-width: 14rem;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--accent-hi);
  color: var(--bg);
}

.hero-cta-label {
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.hero-cta code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bg);
  background: transparent;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--accent-hi);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 70%, transparent);
  padding: 0.2rem 0;
  align-self: center;
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  color: var(--accent);
}

.hero-blurb {
  grid-area: blurb;
  align-self: center;
  padding: 0.4rem 0.2rem;
}

.hero-identity {
  padding: 0;
}

.identity-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.identity-link {
  color: var(--accent-mid);
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-word;
}

.identity-link:hover {
  color: var(--accent-hi);
  text-decoration: underline;
}

.identity-meta {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-blurb h2 {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-blurb p {
  color: var(--text-muted);
  max-width: 38rem;
}

/* -------------------------------------------------------------------------- */
/* Stats                                                                      */
/* -------------------------------------------------------------------------- */

.stats {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.4rem var(--gutter) 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.stats-grid > *,
.project-grid > *,
.access-grid > * {
  height: 100%;
}

.stat-tile .hud-inner {
  padding: 1.15rem 1.15rem 1.2rem;
  min-height: 9.5rem;
}

.stat-value {
  margin: 0;
  color: var(--accent);
  font-weight: 650;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
}

.stat-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* Work / projects                                                            */
/* -------------------------------------------------------------------------- */

.work,
.gallery,
.about,
.pricing,
.contact {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem var(--gutter) 1rem;
}

.section-head {
  margin-bottom: 2.2rem;
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section-head h2,
.contact-title-block h2,
.about-copy h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  margin-bottom: 0.8rem;
}

.section-lede {
  color: var(--text-muted);
}

.track {
  margin-bottom: 2.4rem;
}

.track-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-mid);
  font-weight: 600;
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 45%, transparent);
}

.track-title span {
  color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-card .hud-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.25rem 1.3rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.badge,
.lang {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--accent-line);
}

.badge-public {
  background: var(--badge-public-bg);
  color: var(--accent-hi);
}

.badge-private {
  background: var(--badge-private-bg);
  color: var(--text-muted);
}

.lang {
  border-color: color-mix(in srgb, var(--accent-line) 50%, transparent);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.lang-none {
  font-weight: 500;
}

.project-name {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
}

.project-name a {
  color: var(--text);
  text-decoration: none;
}

.project-name a:hover {
  color: var(--accent-hi);
}

.project-desc {
  color: var(--text);
  margin-bottom: 0.7rem;
}

.project-extra {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.project-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.project-link:hover {
  color: var(--accent-hi);
}

.coming-soon {
  margin-top: auto;
  align-self: flex-start;
}

.coming-soon span {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-hi);
  background: var(--badge-public-bg);
  border: 1px solid var(--accent-line);
  padding: 0.38rem 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.about-copy {
  color: var(--text-muted);
}

.about-copy p:first-child {
  color: var(--text);
  font-size: 1.12rem;
}

.about-copy h3 {
  font-size: 1.35rem;
  color: var(--accent);
  margin: 1.6rem 0 0.7rem;
}

.about-quote .hud-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 2rem 1.6rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--bg-ramp) 55%, var(--panel)) 0%, var(--panel) 70%);
}

.about-quote blockquote {
  margin: 0 0 1rem;
}

.about-quote blockquote p {
  color: var(--accent);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.quote-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.access {
  margin-top: 2.6rem;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.access-card .hud-inner {
  min-height: 10.5rem;
}

.access-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.access-card h4 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.access-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Contact                                                                    */
/* -------------------------------------------------------------------------- */

.contact {
  padding-bottom: 2rem;
}

.contact-plate {
  --chamfer: 2.2rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.4rem 2rem 2.2rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--bg-ramp) 65%, var(--panel)) 0%, var(--panel) 60%);
}

.contact-title-block h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin: 0;
}

.contact-email {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.2rem;
}

.email-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.email-link {
  color: var(--accent-hi);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.email-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-top: 1px solid color-mix(in srgb, var(--accent-line) 35%, transparent);
}

.site-footer a {
  color: var(--accent-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-footer a:hover {
  color: var(--accent-hi);
}

.nav-backdrop {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .access-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #020202;
    border-bottom: 1px solid var(--accent-line);
    padding: 0.5rem var(--gutter) 1rem;
    z-index: 41;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 35;
  }

  body.nav-open .site-header {
    background: #020202;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 35%, transparent);
  }

  .plate-main-inner {
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.15rem 1.35rem;
    min-height: 0;
    gap: 1.35rem;
  }

  .hero-blurb,
  .hero-identity {
    padding: 0.15rem 0.1rem 0;
    align-self: stretch;
  }

  .about-grid,
  .contact-inner,
  .project-grid,
  .project-grid-3,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-footer {
    padding-top: 1.2rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .stats-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .stat-tile .hud-inner,
  .access-card .hud-inner {
    min-height: 0;
  }

  .plate-title .hud-inner,
  .contact-inner {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .plate-title {
    margin-right: 0;
  }

  .work, .gallery, .about, .contact {
    padding-top: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* -------------------------------------------------------------------------- */
/* Project card photos + gallery + lightbox                                   */
/* -------------------------------------------------------------------------- */

.card-photo {
  display: block;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  overflow: hidden;
}

.card-photo img {
  display: block;
  width: 100%;
  height: 16.5rem;
  object-fit: contain;
  background: #000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.gallery-card .hud-inner {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.85rem 1.05rem;
  height: 100%;
}

.gallery-media {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery-media img,
.gallery-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gallery-media video {
  cursor: default;
}

.gallery-card figcaption {
  margin: 0.75rem 0.15rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lightbox {
  position: relative;
  border: 1px solid var(--accent-line);
  background: var(--bg);
  padding: 2.4rem 0.6rem 0.6rem;
  max-width: min(92vw, 72rem);
  max-height: 92vh;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(2, 2, 2, 0.88);
}

.lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  border: 1px solid var(--accent-line);
  background: var(--panel);
  color: var(--accent-hi);
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.poster-note {
  margin: 0.55rem 0 0.85rem;
  color: var(--accent-hi);
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.gallery-card .poster-note {
  margin: 0.7rem 0.15rem 0;
}

.gallery-card .poster-note + figcaption {
  margin-top: 0.35rem;
}

/* -------------------------------------------------------------------------- */
/* Frameworks summary                                                         */
/* -------------------------------------------------------------------------- */

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.summary-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.2rem var(--gutter) 0.4rem;
}

.summary-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.9rem;
}

.summary-note {
  max-width: 52rem;
  margin: 0 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.summary-toc {
  margin: 0 0 0.6rem;
}

.summary-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-toc a {
  color: var(--accent-hi);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.summary-toc a:hover,
.summary-toc a:focus-visible {
  color: var(--accent);
}

.frameworks {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.4rem var(--gutter) 2.4rem;
  display: grid;
  gap: 1.15rem;
}

.framework .hud-inner {
  padding: 1.4rem 1.35rem 1.5rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, var(--panel)) 0%, var(--panel) 100%);
}

.framework-head {
  margin-bottom: 1.15rem;
}

.framework-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.framework-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.framework-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
}

.framework-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem 1.2rem;
}

.framework-facts h3,
.framework-results h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.framework-facts p,
.framework-results p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.framework-facts ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.framework-facts li + li {
  margin-top: 0.4rem;
}

.framework-facts a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.framework-facts a:hover,
.framework-facts a:focus-visible {
  color: var(--accent);
}

.framework-facts code {
  font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.86em;
  color: var(--accent-hi);
  background: var(--placeholder-bg);
  padding: 0.05em 0.3em;
  border: 1px solid color-mix(in srgb, var(--accent-line) 35%, transparent);
  white-space: nowrap;
}

.framework-pricing {
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--accent-line) 45%, transparent);
}

.framework-pricing h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.framework-pricing p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.framework-diagram {
  margin: 0;
}

.framework-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--accent-line) 45%, transparent);
  background: var(--bg);
}

.framework-results {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--accent-line) 45%, transparent);
}

.result-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.result-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  background: var(--placeholder-bg);
  border: 1px solid color-mix(in srgb, var(--accent-line) 35%, transparent);
}

.result-value {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.result-tag {
  margin-left: auto;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 900px) {
  .framework-facts {
    grid-template-columns: 1fr;
  }

  .result-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .summary-hero {
    padding-top: 1.6rem;
  }
}


.taster-demo {
  margin: 1.15rem 0 0;
}

.taster-demo video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--accent-line) 45%, transparent);
  background: #020202;
}

.taster-demo figcaption {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.project-card .taster-demo {
  margin-top: 0.95rem;
}


/* -------------------------------------------------------------------------- */
/* Homepage pricing                                                           */
/* -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pricing-plate .hud-inner {
  padding: 0;
  overflow: hidden;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 35%, transparent);
}

.pricing-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  background: color-mix(in srgb, var(--bg) 35%, var(--panel));
}

.pricing-table tbody th {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.pricing-table td {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing-table .price {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.section-lede a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-lede a:hover,
.section-lede a:focus-visible {
  color: var(--accent);
}

@media (max-width: 700px) {
  .pricing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table th,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tr {
    padding: 0.95rem 1.15rem 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-line) 35%, transparent);
  }

  .pricing-table tbody tr:last-child {
    border-bottom: 0;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.2rem 0 0.55rem;
    border-bottom: 0;
  }

  .pricing-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
  }
}


/* -------------------------------------------------------------------------- */
/* Draft additions: hero is already updated above; about skeleton, cards, footer */
/* -------------------------------------------------------------------------- */

.about-person {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.about-photo {
  margin: 0;
}

.about-photo .hud-inner {
  padding: 0;
  min-height: 0;
  background: var(--panel);
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.about-person-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.about-person-copy p:first-child {
  color: var(--text);
  font-size: 1.12rem;
}

.about-person-copy p:last-child {
  margin-bottom: 0;
}

.access-card a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.access-card a:hover,
.access-card a:focus-visible {
  color: var(--accent);
}

.access-card .hud-inner {
  min-height: 12.5rem;
}

.grok-note {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.summary-note a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.summary-note a:hover,
.summary-note a:focus-visible {
  color: var(--accent);
}

@media (max-width: 800px) {
  .about-person {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 22rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Buyer path: offer line, licence badges, how to buy, licence terms          */
/* -------------------------------------------------------------------------- */

.hero-offer {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.02rem;
  margin: 0 0 1.2rem;
}

.hero-offer strong {
  color: var(--accent-hi);
  font-weight: 650;
}

.hero-cta-alt {
  background: transparent;
  color: var(--accent-hi);
  border: 1px solid var(--accent-line);
}

.hero-cta-alt:hover,
.hero-cta-alt:focus-visible {
  background: var(--badge-public-bg);
  color: var(--accent-hi);
}

.hero-cta-sub {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.licence-note {
  margin-top: auto;
  align-self: flex-start;
}

.licence-note a {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-hi);
  background: var(--badge-public-bg);
  border: 1px solid var(--accent-line);
  padding: 0.38rem 0.75rem;
  text-decoration: none;
}

.licence-note a:hover,
.licence-note a:focus-visible {
  background: var(--accent);
  color: var(--bg);
}

.access-in-pricing {
  margin-top: 2.2rem;
}

.buy {
  margin-top: 2.4rem;
}

.steps-grid {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.step-card .hud-inner {
  min-height: 9rem;
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step-card p:not(.access-kicker) {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-bottom: 1rem;
}

.buy-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.4rem 0 0;
}

.buy-note a,
.contact-eval a,
.contact-reply a {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.licence-terms {
  padding-top: 3rem;
}

.terms-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.terms-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.terms-list li + li {
  margin-top: 0.35rem;
}

.terms-grid .access-card .hud-inner {
  min-height: 0;
}

.terms-grid {
  margin-bottom: 1rem;
}

.contact-reply {
  color: var(--text-muted);
  margin: 1rem 0 0;
  max-width: 24rem;
}

.contact-eval {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .terms-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card .hud-inner {
    min-height: 0;
  }

  .hero-cta-alt {
    min-width: 0;
  }
}
