/* ==========================================================================
   NHU NHAT BAO ANH — EDITORIAL PORTFOLIO (ISSUE 2027)
   Plain CSS · 12-Column Magazine Grid · Paper & Vermilion Edition
   Minimum font-size floor: 12px (0.75rem) · WCAG AA Contrast Verified
   ========================================================================== */

:root {
  --bg: #F5F1E8;
  --bg-alt: #EAE3D5;
  --bg-card: #FAF7F0;
  --ink: #141311;
  --ink-secondary: #36322C;
  --ink-muted: #4E483F;
  --accent: #A62B17;
  --accent-bright: #B8331D;
  --accent-soft: rgba(166, 43, 23, 0.09);
  --rule: #C9C0AF;
  --rule-heavy: #141311;
  --cert-filter: brightness(0.99) contrast(1.02);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;

  --max-w: 1320px;
  --gutter: clamp(1.15rem, 3vw, 2.5rem);
  --nav-h: 3.5rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131210;
    --bg-alt: #1C1A17;
    --bg-card: #181613;
    --ink: #F3EFE6;
    --ink-secondary: #CFC8BA;
    --ink-muted: #A69F91;
    --accent: #E86850;
    --accent-bright: #F0765E;
    --accent-soft: rgba(232, 104, 80, 0.14);
    --rule: #302C26;
    --rule-heavy: #F3EFE6;
    --cert-filter: brightness(0.91) contrast(0.98);
  }
}

:root[data-theme="dark"] {
  --bg: #131210;
  --bg-alt: #1C1A17;
  --bg-card: #181613;
  --ink: #F3EFE6;
  --ink-secondary: #CFC8BA;
  --ink-muted: #A69F91;
  --accent: #E86850;
  --accent-bright: #F0765E;
  --accent-soft: rgba(232, 104, 80, 0.14);
  --rule: #302C26;
  --rule-heavy: #F3EFE6;
  --cert-filter: brightness(0.91) contrast(0.98);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hide draft/TODO indicators in production; reveal only with ?draft or body.draft */
.todo {
  display: none !important;
}

body.draft .todo {
  display: inline-block !important;
}

body.draft div.todo,
body.draft p.todo,
body.draft blockquote.todo {
  display: block !important;
}

body.draft article.todo {
  display: flex !important;
}

body.draft .vision-pillars-grid.todo {
  display: grid !important;
}

.todo-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
  border: 1px dashed var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-top: 0.35rem;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

body.draft .cert-inline-btn.todo {
  white-space: normal !important;
  word-break: break-word;
  max-width: 100%;
  text-align: left;
}

/* Skip to content link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--ink);
  color: var(--bg);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: top 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.25s ease, color 0.2s ease;
}

a:hover {
  background-size: 100% 1px;
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* Container & 12-Col Grid */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.75rem;
}

/* ==========================================================================
   STICKY TOP NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Hidden while hero masthead h1 is visible to prevent "BAO ANH" repetition */
.nav-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none !important;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.scrolled-past-hero .nav-brand {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-brand span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-left: 0.45rem;
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 0.35rem 0;
  white-space: nowrap;
  position: relative;
  background: none !important;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: none !important;
}

.nav-links a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  background: none !important;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-right: 0.25rem;
  font-weight: 600;
}

.theme-toggle,
.nav-toggle {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

/* ==========================================================================
   01 — COVER / HERO
   ========================================================================== */
.cover-section {
  padding-top: 0.75rem;
  padding-bottom: 4rem;
  border-bottom: 2px solid var(--rule-heavy);
}

.issue-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 2px solid var(--rule-heavy);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.masthead-header {
  padding: 1.35rem 0 1.15rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.masthead-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 10.8vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.masthead-subname {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.masthead-kicker {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.cover-body {
  padding-top: 2.25rem;
  align-items: stretch;
}

.cover-lead-col {
  grid-column: 1 / 8;
  padding-right: 1.75rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-portrait-col {
  grid-column: 8 / 13;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 1.35rem;
  height: 1.5px;
  background-color: var(--accent);
}

.cover-standfirst {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.1vw, 2.65rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
}

.cover-standfirst em {
  font-style: italic;
  color: var(--accent);
}

.cover-deck {
  font-size: 1.0625rem;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.cover-dateline {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.cover-dateline strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
  letter-spacing: 0.06em;
}

/* Editorial Monogram / Portrait Plate */
.portrait-frame {
  background-color: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 0.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portrait-plate {
  aspect-ratio: 1 / 1.02;
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: contrast(1.03);
  transition: transform 0.4s ease;
}

.portrait-plate:hover .portrait-photo {
  transform: scale(1.02);
}

.portrait-monogram-art {
  position: relative;
  z-index: 1;
  margin: auto;
  width: 82%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, var(--bg) 0%, var(--bg-card) 75%);
}

.portrait-monogram-art::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--rule);
  border-radius: 50%;
}

.monogram-initials {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.25rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.monogram-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}

.plate-corner-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.caption {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

/* Key Figures Strip (6 Columns) */
.figures-strip {
  margin-top: 2.75rem;
  border-top: 2px solid var(--rule-heavy);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.figure-cell {
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--rule);
}

.figure-cell:first-child {
  padding-left: 0;
}

.figure-cell:last-child {
  border-right: none;
  padding-right: 0;
}

.figure-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.figure-num {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.05vw, 1.95rem);
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.figure-num small {
  font-family: var(--font-sans);
  font-size: 0.52em;
  color: var(--ink-muted);
  font-weight: 500;
}

.figure-meta {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   COMMON FEATURE SECTION STRUCTURE
   ========================================================================== */
.feature-section {
  padding: 4.5rem 0;
  border-bottom: 2px solid var(--rule-heavy);
}

.section-header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: baseline;
  padding-bottom: 1.5rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--rule-heavy);
}

.section-index {
  grid-column: 1 / 3;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-index strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.section-title-block {
  grid-column: 3 / 9;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-standfirst {
  grid-column: 9 / 13;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   02 — EDITOR'S LETTER (ABOUT)
   ========================================================================== */
.about- prose-col {
  grid-column: 1 / 8;
}

.about-prose {
  grid-column: 1 / 8;
  padding-right: 1.75rem;
  border-right: 1px solid var(--rule);
}

.about-prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 1.25rem;
}

.about-prose p.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.1rem;
  line-height: 0.82;
  padding-top: 0.2rem;
  padding-right: 0.65rem;
  padding-bottom: 0.1rem;
  color: var(--accent);
  font-weight: 500;
}

.about-sidebar {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.pull-quote-box {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.75rem;
}

.pull-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.pull-quote-attr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.focus-pills-box {
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
}

.focus-pills-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.focus-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.focus-list li::before {
  content: "— ";
  color: var(--accent);
}

.interests-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.interest-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

/* ==========================================================================
   03 — EXPERIENCE: TOKYOLIFE BRAND COMMUNICATION INTERNSHIP CASE STUDY
   ========================================================================== */
.experience-leadership-sub {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 2px solid var(--rule-heavy);
}

.sub-section-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sub-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 400;
  color: var(--ink);
}

.sub-section-desc {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  max-width: 56ch;
}
.experience-case-study {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 2rem;
}

.case-study-top-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.case-study-main {
  grid-column: 1 / 8;
  padding-right: 1.25rem;
  border-right: 1px solid var(--rule);
}

.case-study-quote-col {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-pull-quote {
  background-color: var(--bg-alt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-pull-quote-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.case-pull-quote-sub {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--ink-secondary);
  margin-bottom: 0.9rem;
}

.case-pull-quote-attr {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--rule);
  padding-top: 0.65rem;
}

.case-pull-quote-attr span {
  display: block;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.case-flow-section {
  margin-bottom: 1.5rem;
}

.case-flow-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.case-steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.case-step-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.case-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.case-step-num {
  color: var(--ink-muted);
}

.case-step-phase {
  color: var(--accent);
  font-weight: 600;
}

.case-step-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.case-step-desc {
  font-size: 0.9125rem;
  color: var(--ink-secondary);
  line-height: 1.52;
}

.case-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0 0.1rem;
}

.case-tools-bar {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

.case-tools-bar strong {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.35rem;
}

.case-tools-detail {
  color: var(--ink-muted);
}

/* ==========================================================================
   04 — FEATURED: TWO CO-INVENTION DOSSIERS (iTutorTDN & iViHRM)
   ========================================================================== */
.invention-project-dossier {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  margin-bottom: 2.75rem;
}

.invention-project-dossier:last-child {
  margin-bottom: 0;
}

.project-narrative-wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.project-narrative-main {
  grid-column: 1 / 8;
  padding-right: 1.25rem;
  border-right: 1px solid var(--rule);
}

.project-narrative-side {
  grid-column: 8 / 13;
}

.patent-feature-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.patent-info-col {
  grid-column: 1 / 8;
  padding-right: 1.25rem;
}

.patent-preview-col {
  grid-column: 8 / 13;
}

.patent-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
}

.patent-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 0.35rem;
}

.patent-subtitle-vi {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 1.15rem;
}

.patent-desc {
  font-size: 0.975rem;
  color: var(--ink-secondary);
  margin-bottom: 1rem;
}

.patent-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.25rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  margin: 0 0 1.25rem 0;
  font-size: 0.8125rem;
}

.patent-meta-grid dt {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.patent-meta-grid dd {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Patent Architecture Diagram (from Patent Fig. 1) */
.patent-arch-box {
  background-color: var(--bg);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}

.patent-arch-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.arch-nodes {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}

.arch-node {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 0.5rem 0.4rem;
}

.arch-node-server {
  border-color: var(--accent);
  font-weight: 600;
}

.arch-arrow {
  color: var(--accent);
  font-weight: bold;
}

/* Patent Visual Plates (Page 1 Cover + Page 21 Authors Annex) */
.patent-plates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}

.patent-plate-card {
  background-color: var(--bg);
  border: 1px solid var(--rule);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.patent-plate-caption {
  padding-top: 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.patent-plate-caption strong {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* Compact Project Recognitions Bar (opens Lightbox without repeating large images) */
.project-recognitions-box {
  padding-top: 0.25rem;
}

.project-recognitions-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.project-recognitions-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.project-rec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.project-rec-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.project-rec-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.project-rec-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.project-rec-issuer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* Zoomable Certificate Thumbnail Button */
.cert-zoom-btn {
  display: block;
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 0.6rem;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s ease;
}

.cert-zoom-btn:hover {
  border-color: var(--accent);
}

.cert-zoom-btn img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  filter: var(--cert-filter);
  box-shadow: 0 1px 4px rgba(20, 19, 17, 0.07);
  transition: transform 0.3s ease, filter 0.25s ease;
}

.cert-zoom-btn.landscape img {
  aspect-ratio: 4 / 3.1;
}

.cert-zoom-btn:hover img {
  transform: scale(1.02);
  filter: brightness(1) contrast(1);
}

.zoom-pill {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background-color: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.04em;
  opacity: 0.88;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cert-zoom-btn:hover .zoom-pill {
  background-color: var(--accent);
  color: #fff;
  opacity: 1;
}

/* ==========================================================================
   04 — COMMUNICATIONS & LEADERSHIP (6-COLUMN MASTHEAD CREDITS)
   ========================================================================== */
.leadership-table-wrap {
  border-top: 2px solid var(--rule-heavy);
}

.leadership-row {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 2.15fr 2.15fr 1.6fr 0.95fr;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.leadership-row.header-row {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-heavy);
}

.lead-dates {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.lead-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.lead-org {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
}

.lead-role {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.lead-cat {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
}

.lead-proof {
  text-align: right;
}

.leadership-row.header-row > div:last-child {
  text-align: right;
}

.lead-proof-empty {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* Sub-section 04B — Selected New Media Work */
.new-media-subsection {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 2px solid var(--rule-heavy);
}

.new-media-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.new-media-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
}

.new-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.new-media-card {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.new-media-cover {
  aspect-ratio: 16 / 10;
  background-color: var(--bg-alt);
  border: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  overflow: hidden;
}

.new-media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-media-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.new-media-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.28;
  margin-bottom: 0.45rem;
}

.new-media-org {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.new-media-body {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 0.65rem;
}

.new-media-tools {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.6rem;
}

.cnm-lens-callout {
  background-color: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.15rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.925rem;
  color: var(--ink);
}

.motivation-gap-box {
  background-color: var(--bg-card);
  border: 1px dashed var(--accent);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.cert-inline-btn {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cert-inline-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   05 — HONORS & AWARDS
   ========================================================================== */
.honors-col-left {
  grid-column: 1 / 7;
  padding-right: 1.5rem;
  border-right: 1px solid var(--rule);
}

.honors-col-right {
  grid-column: 7 / 13;
  padding-left: 0.5rem;
}

.honors-group-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rule-heavy);
  margin-bottom: 0.5rem;
}

.honor-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.honor-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.honor-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.honor-sub {
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.honor-issuer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   06 — ACADEMICS
   ========================================================================== */
.academics-left {
  grid-column: 1 / 6;
  padding-right: 1.5rem;
  border-right: 1px solid var(--rule);
}

.academics-right {
  grid-column: 6 / 13;
}

.sub-heading {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rule-heavy);
  margin-bottom: 1rem;
}

.school-list {
  list-style: none;
  margin-bottom: 2.25rem;
}

.school-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

.school-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.school-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.15rem 0;
}

.school-detail {
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.test-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.test-card {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 1.15rem;
}

.test-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}

.test-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.test-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.test-score {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.test-breakdown {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.gpa-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.gpa-box {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 1.15rem;
}

.gpa-box-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.gpa-year-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.gpa-sem-row {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

/* Subject Table */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subject-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.subject-table th,
.subject-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.subject-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--rule-heavy);
}

.subject-table td.num,
.subject-table th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.subject-table tr.highlight-row td {
  font-weight: 600;
  background-color: var(--accent-soft);
}

.table-footnote {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   07 — SKILLS & TOOLS
   ========================================================================== */
.skills-comm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.skill-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
}

.skill-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.skill-proof-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.55rem;
}

.skill-detail {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.tools-verified-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tool-verified-card {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.15rem 1.25rem;
}

.tool-context {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.tool-detail {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   08 — VISION & ACADEMIC TRAJECTORY
   ========================================================================== */
.vision-dossier {
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 2rem;
}

.vision-header-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: start;
}

.vision-lead {
  grid-column: 1 / 8;
  padding-right: 1.5rem;
  border-right: 1px solid var(--rule);
}

.vision-meta-box {
  grid-column: 8 / 13;
  background-color: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vision-meta-box > div {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.75rem;
}

.vision-meta-box > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vision-meta-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.vision-meta-box span {
  display: block;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.vision-pillars-grid {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.vision-pillar-card {
  background-color: var(--bg-alt);
  border: 1px dashed var(--accent);
  padding: 1.25rem;
  flex-direction: column;
  justify-content: space-between;
}

.vision-pillar-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.vision-pillar-prompt {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-top: 0.35rem;
}

/* ==========================================================================
   09 — ARCHIVE (CERTIFICATE GALLERY & FILTER CHIPS)
   ========================================================================== */
.archive-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  background: var(--bg-card);
  color: var(--ink-secondary);
  border: 1px solid var(--rule);
  padding: 0.45rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.archive-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* 6-Column Subgrid so standard rows hold 3 cards (span 2) and remainder rows balance edge-to-edge */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
}

.archive-card {
  grid-column: span 2;
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.archive-card.span-half {
  grid-column: span 3;
}

.archive-card.span-full {
  grid-column: 1 / -1;
}

.archive-card[hidden] {
  display: none !important;
}

.archive-card:hover {
  border-color: var(--accent);
}

.archive-card-caption {
  padding-top: 0.85rem;
}

.archive-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.archive-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.archive-card-issuer {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   08 — CONTACT / COLOPHON (FOOTER)
   ========================================================================== */
.colophon-section {
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg-alt);
}

.colophon-lead {
  grid-column: 1 / 7;
  padding-right: 1.5rem;
  border-right: 1px solid var(--rule);
}

.colophon-details {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.colophon-headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.email-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  background: none !important;
  margin-top: 0.5rem;
}

.email-cta-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.social-links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.colophon-imprint {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.footer-bottom-bar {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--rule-heavy);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.back-to-top {
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   ACCESSIBLE LIGHTBOX MODAL (WITH 2X ZOOM & DRAG PAN)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(15, 14, 12, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: #F3EFE6;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  position: relative;
  z-index: 5;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  background-image: none !important;
  color: #F3EFE6;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-btn:hover,
.lightbox-btn[aria-pressed="true"] {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 0;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.lightbox-img-container {
  max-width: 90vw;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  cursor: zoom-in;
  user-select: none;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.lightbox-img-container img.is-zoomed {
  cursor: grab;
}

.lightbox-img-container img.is-dragging {
  cursor: grabbing;
  transition: none;
}

.lightbox-footer {
  text-align: center;
  color: #F3EFE6;
  max-width: 75ch;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.lightbox-caption-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.lightbox-caption-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #CFC8BA;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1280px, 1120px, 960px, 768px, 375px)
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 2px solid var(--rule-heavy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--gutter) 1.5rem;
    gap: 0.65rem;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }
  .figures-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .figure-cell:nth-child(3) {
    border-right: none;
  }
  .figure-cell:nth-child(4),
  .figure-cell:nth-child(5),
  .figure-cell:nth-child(6) {
    border-top: 1px solid var(--rule);
  }
  .new-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archive-card,
  .archive-card.span-half,
  .archive-card.span-full {
    grid-column: span 1;
  }
  .section-index {
    grid-column: 1 / 4;
  }
  .section-title-block {
    grid-column: 4 / 13;
  }
  .section-standfirst {
    grid-column: 4 / 13;
  }
}

@media (max-width: 960px) {
  .case-steps-flow {
    grid-template-columns: 1fr;
  }
  .case-step-arrow {
    transform: rotate(90deg);
    padding: 0.15rem 0;
  }
  .leadership-row.header-row {
    display: none;
  }
  .leadership-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.15rem 0;
  }
  .lead-proof {
    text-align: left;
    margin-top: 0.25rem;
  }
  .lead-proof .lead-proof-empty {
    display: none;
  }
}

@media (max-width: 768px) {
  .editorial-grid,
  .section-header,
  .patent-feature-split,
  .project-narrative-wrap,
  .case-study-top-grid,
  .vision-header-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cover-lead-col,
  .cover-portrait-col,
  .about-prose,
  .about-sidebar,
  .case-study-main,
  .case-study-quote-col,
  .patent-info-col,
  .patent-preview-col,
  .project-narrative-main,
  .project-narrative-side,
  .honors-col-left,
  .honors-col-right,
  .academics-left,
  .academics-right,
  .vision-lead,
  .vision-meta-box,
  .colophon-lead,
  .colophon-details,
  .section-index,
  .section-title-block,
  .section-standfirst {
    grid-column: 1 / -1;
    border-right: none;
    padding-right: 0;
    padding-left: 0;
  }
  .patent-feature-split,
  .invention-project-dossier,
  .experience-case-study,
  .vision-dossier {
    padding: 1.25rem;
  }
  .patent-plates-grid,
  .skills-comm-grid,
  .vision-pillars-grid {
    grid-template-columns: 1fr;
  }
  .project-rec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .cover-dateline {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .figures-strip {
    grid-template-columns: 1fr 1fr;
  }
  .figure-cell {
    padding: 1rem 0.75rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-top: none !important;
  }
  .figure-cell:nth-child(2n) {
    border-right: none;
  }
  .figure-cell:nth-child(5),
  .figure-cell:nth-child(6) {
    border-bottom: none;
  }
  .new-media-grid,
  .archive-grid,
  .gpa-summary-grid,
  .focus-list {
    grid-template-columns: 1fr;
  }
  .archive-card,
  .archive-card.span-half,
  .archive-card.span-full {
    grid-column: 1 / -1;
  }
  .arch-nodes {
    grid-template-columns: 1fr;
  }
  .arch-arrow {
    transform: rotate(90deg);
  }
  .lightbox-stage {
    flex-direction: column;
  }
  .lightbox-zoom-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-brand span {
    display: none;
  }
  .theme-toggle,
  .nav-toggle {
    padding: 0.3rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
