/* ============================================================
   TOKENS
============================================================ */
:root {
  /* Colours */
  --steel-900:     #17222B;
  --steel-800:     #24343F;
  --concrete-100:  #F8F7F3;
  --concrete-200:  #ECEAE4;
  --concrete-300:  #D9D6CE;
  --line-dark:     rgba(230,233,236,0.18);
  --yellow-500:    #F5B800;
  --ochre-700:     #7A5A00;
  --blue-600:      #2F6A8F;
  --blue-300:      #8FB8D4;
  --ink:           #1B2229;
  --ink-muted:     #4A5660;
  --on-steel:      #E6E9EC;
  --on-steel-muted: #B7C0C7;
  --white:         #FFFFFF;

  /* Legacy aliases, keep during transition */
  --navy-dark:    var(--steel-900);
  --navy-mid:     var(--steel-800);
  --navy-accent:  var(--steel-900);
  --offwhite:     var(--concrete-100);
  --orange:       var(--yellow-500);
  --orange-text:  var(--ochre-700);
  --text-dark:    var(--ink);
  --text-mid:     var(--ink-muted);
  --outline:      var(--concrete-300);
  --outline-lt:   var(--concrete-200);
  --surface-hi:   var(--concrete-200);
  --concrete-grey: var(--concrete-200);

  /* Fonts */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --nav-h:    64px;
  --gutter:   1rem;
  --container: 80rem; /* 1280px */
}

@media (min-width: 1024px) {
  :root {
    --gutter: 3rem;
  }
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ============================================================
   FOCUS STATES, visible keyboard focus ring
============================================================ */
:focus-visible {
  outline: 3px solid var(--yellow-500);
  outline-offset: 3px;
}

.section--light :focus-visible,
.section--white :focus-visible,
.section--stats :focus-visible {
  outline-color: var(--blue-600);
}

::selection {
  background: var(--yellow-500);
  color: var(--steel-900);
}


/* ============================================================
   CONTAINER
============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ============================================================
   TYPOGRAPHY SCALE
============================================================ */
.display {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.headline-lg {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.headline-md {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ============================================================
   SECTION BASE
============================================================ */
.section {
  width: 100%;
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .section { padding-block: 6rem; }
}

.section--compact { padding-block: 3rem; }
@media (min-width: 1024px) { .section--compact { padding-block: 4rem; } }

/* Backgrounds */
.section--hero    { background-color: var(--navy-mid); color: #fff; }
.section--dark    { background-color: var(--navy-mid); color: #fff; }
.section--light   { background-color: var(--offwhite); color: var(--text-dark); }
.section--white   {
  background-color: var(--white);
  color: var(--text-dark);
  border-bottom: 1px solid var(--outline);
}
.section--contact { background-color: var(--navy-dark); color: #fff; }

/* Blueprint line grid, hero + contact */
.section--hero,
.section--contact {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.075) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}

/* Stat strip, concrete grey */
.section--stats {
  background: var(--concrete-grey);
  color: var(--text-dark);
  padding-block: 0;
}

.stat-container {
  padding-block: 3rem;
}

/* Hazard stripe, diagonal orange + navy */
.hazard-stripe {
  height: 8px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0px,
    var(--orange) 5px,
    var(--navy-dark) 5px,
    var(--navy-dark) 12px
  );
  flex-shrink: 0;
}


/* ============================================================
   SECTION LABELS  (the "01 / PROJECT" lines)
============================================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-label--orange      { color: var(--orange); }
.section-label--orange-text { color: var(--orange-text); }

.dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.dot--orange      { background: var(--orange); }
.dot--orange-text { background: var(--orange-text); }

.label--orange-text {
  color: var(--orange-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.375rem;
}

.label--orange {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ============================================================
   PLACEHOLDER STYLES, visible placeholder markers
============================================================ */
.todo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--orange-text);
  background: var(--surface-hi);
  border: 1px solid var(--orange-text);
  padding: 2px 8px;
  margin-top: 0.375rem;
}

.todo-dark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--orange);
  background: rgba(252, 113, 35, 0.1);
  border: 1px solid var(--orange);
  padding: 2px 8px;
}


/* ============================================================
   IMAGE CAPTION  (dark band along bottom of project images)
============================================================ */
.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 42, 67, 0.9);
  color: #fff;
  padding: 0.625rem 0.875rem;
  border-top: 2px solid var(--orange);
}


/* ============================================================
   IMAGE PLACEHOLDERS  (where real photos will go)
============================================================ */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--outline-lt);
  border: 1px dashed var(--outline);
  padding: 1rem;
  text-align: center;
  width: 100%;
  height: 100%;
}

.img-placeholder--16-9 { aspect-ratio: 16 / 9; }
.img-placeholder--fill { width: 100%; height: 100%; min-height: 12rem; }
.img-placeholder .label { color: var(--text-mid); }


/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.375rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.btn--orange {
  background: var(--orange);
  color: var(--navy-mid);
}
.btn--orange:hover { background: #d85e0c; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

.btn--full { width: 100%; }


/* ============================================================
   HEADER / NAVIGATION
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(251, 249, 244, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.nav-name:hover { color: var(--orange-text); }

.nav-badge {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--outline);
  background: var(--surface-hi);
  padding: 2px 8px;
}
@media (min-width: 600px) { .nav-badge { display: inline-block; } }

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy-mid); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-actions .btn--orange {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
@media (min-width: 600px) { .nav-actions .btn--orange { display: inline-flex; } }

/* Hamburger button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--navy-mid);
  transition: color 0.15s;
}
.mobile-menu-btn:hover { color: var(--orange-text); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.hamburger {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 0;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* Mobile dropdown */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--offwhite);
  border-top: 1px solid var(--outline);
  padding: 0.75rem 1rem 1.25rem;
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-mid);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--outline-lt);
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--orange-text); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 1rem; }

/* Push content below fixed header */
main { padding-top: var(--nav-h); }


/* ============================================================
   HERO SECTION
============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 2.5rem; }
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.display { color: #fff; margin-bottom: 0; }

.hero-tagline {
  display: inline-block;
  background: var(--navy-accent);
  border-left: 3px solid var(--orange);
  padding: 0.5rem 0.875rem;
  margin-block: 1.25rem 1.75rem;
  width: fit-content;
}
.hero-tagline p {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.5;
}

.hero-bio {
  color: rgba(255, 255, 255, 0.85);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Portrait */
.hero-portrait {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) { .hero-portrait { justify-content: flex-end; } }

.portrait-frame {
  width: 100%;
  max-width: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* ============================================================
   TITLE BLOCK  (engineering drawing style)
============================================================ */
.title-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .title-block { grid-template-columns: repeat(4, 1fr); }
}

.title-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  /* dividers in 2-col mobile: right border for col 1, bottom for row 1 */
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
/* col 2 at mobile, no right border */
.title-cell:nth-child(2n) { border-right: none; }
/* last 2 cells (row 2 in 2-col), no bottom border */
.title-cell:nth-child(n+3) { border-bottom: none; }

@media (min-width: 640px) {
  /* 4-col: restore all right borders except last cell */
  .title-cell { border-right: 1px solid rgba(255, 255, 255, 0.25); border-bottom: none; }
  .title-cell:last-child { border-right: none; }
}

.title-cell-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.title-cell-value {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}

/* Contact title block, always 2×2 grid */
.title-block--contact {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
  align-self: center;
}


/* ============================================================
   PROJECT SECTION
============================================================ */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-meta { color: var(--text-mid); flex-shrink: 0; }

.project-card {
  background: var(--white);
  border: 1px solid var(--outline);
  padding: 1.5rem;
}
@media (min-width: 1024px) { .project-card { padding: 2.5rem; } }

.project-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--offwhite);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* 2-column case-study breakdown */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 3rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}

.project-cell {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Tag row */
.project-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.project-stack-label { color: var(--text-mid); }

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  line-height: 1.4;
}
.tag--navy   { background: var(--navy-mid); color: #fff; }
.tag--orange { background: var(--orange);   color: var(--navy-mid); }


/* ============================================================
   STAT STRIP
============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
}
@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }

  .stat + .stat {
    border-left: 1px solid var(--outline);
    padding-left: 2rem;
  }
}

.stat { display: flex; flex-direction: column; gap: 0.5rem; }

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 0.375rem;
  display: inline-block;
}
.stat-num--sm {
  font-size: clamp(1.375rem, 3vw, 2rem);
  border-bottom: 3px solid var(--orange);
}
.stat-num--todo {
  font-size: 1rem;
  line-height: 1.5;
  border-bottom: none;
  padding-bottom: 0;
}

.stat-desc { color: var(--text-mid); }


/* ============================================================
   LEADERSHIP SECTION
============================================================ */
.section--white .headline-lg { margin-bottom: 1.5rem; }

.leadership-text p {
  font-size: 1.375rem;
  line-height: 1.65;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
}
@media (min-width: 1024px) {
  .leadership-grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
}

.ragam-photo-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .ragam-photo-pair { grid-template-columns: 1fr 1fr; }
}
.ragam-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
}



/* ============================================================
   EXPERIENCE SECTION
============================================================ */
.section--dark .headline-lg {
  color: #fff;
  margin-bottom: 2rem;
}

.timeline {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  padding-left: 2.25rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 1.5rem;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-entry {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-entry--last {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  background: var(--orange);
  flex-shrink: 0;
}

.timeline-body { display: flex; flex-direction: column; }

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}
@media (min-width: 768px) {
  .timeline-header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.timeline-entry h3 {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.timeline-entry p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50rem;
}

.timeline-list {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}


/* ============================================================
   SITE PHOTO STRIP  (experience section)
============================================================ */
.site-photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .site-photo-strip { grid-template-columns: repeat(3, 1fr); }
}

.site-photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-dark);
}

.site-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) contrast(1.05);
  transition: filter 0.3s;
}
.site-photo-item:hover .site-photo { filter: brightness(1) contrast(1.05); }

/* .site-photo-caption styles moved to the EXPERIENCE PHOTO CAPTION REVEAL section below */


/* ============================================================
   SKILLS SECTION
============================================================ */
.section--light .headline-lg {
  margin-bottom: 1.5rem;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 2rem 1.5rem;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.skills-row {
  border-bottom: 1px solid var(--outline);
}
.skills-row:last-child { border-bottom: none; }

.skills-group {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-text);
  padding: 0.875rem 1.5rem 0.875rem 0;
  vertical-align: top;
  white-space: nowrap;
  width: 11rem;
}

.skills-items {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  padding: 0.875rem 0;
  line-height: 1.7;
}

.skills-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  color: var(--text-mid);
}


/* ============================================================
   EDUCATION SECTION
============================================================ */
.education-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 2rem;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}
@media (min-width: 768px) {
  .education-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.education-row .headline-md { color: var(--navy-mid); }
.education-badge            { color: var(--text-mid); flex-shrink: 0; }


/* ============================================================
   BEYOND ENGINEERING SECTION
============================================================ */
.beyond-intro {
  max-width: 50rem;
  margin-bottom: 2.5rem;
}

.beyond-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .beyond-grid { grid-template-columns: 1fr 1fr; }
}

.beyond-img {
  position: relative;
  overflow: hidden;
}

.beyond-img--tall { aspect-ratio: 4 / 5; }
.beyond-col { display: flex; flex-direction: column; gap: 1.5rem; }
.beyond-img--wide { aspect-ratio: 16 / 9; }

.beyond-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beyond-venture {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--outline);
  align-items: center;
}
@media (min-width: 768px) {
  .beyond-venture { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.beyond-venture-title {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: var(--navy-mid);
  line-height: 1.3;
  margin-block: 0.375rem 0.625rem;
}

.beyond-venture-desc {
  color: var(--text-mid);
  max-width: 36rem;
}

.beyond-venture-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.92) contrast(1.05);
}


/* ============================================================
   FIG FRAME  (engineering drawing photo framing)
============================================================ */
.fig-frame {
  position: relative;
  border: 1px solid var(--navy-mid);
}

/* Dark-section fig frames use a lighter border */
.section--dark .fig-frame,
.section--hero .fig-frame,
.section--contact .fig-frame {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Corner cropmarks, top-left and bottom-right */
.fig-frame::before,
.fig-frame::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--orange);
  border-style: solid;
  border-width: 0;
  z-index: 2;
  pointer-events: none;
}
.fig-frame::before {
  top: 5px;
  left: 5px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.fig-frame::after {
  bottom: 5px;
  right: 5px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* Fig caption, dark version (sits below dark images) */
.fig-caption {
  background: var(--navy-mid);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fig caption, light version (on light section images) */
.fig-caption--light {
  background: var(--surface-hi);
  color: var(--text-mid);
  border-top: 1px solid var(--outline);
}

.fig-caption .label { color: inherit; }


/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-wrap { grid-template-columns: 3fr 2fr; align-items: center; }
}

.contact-main { max-width: 48rem; }
.section--contact .display { margin-bottom: 0.5rem; }

.contact-sub {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 2.5rem;
}

.contact-links {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-email a {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 0.5rem;
  transition: color 0.15s;
}
.contact-email a:hover { color: var(--orange); }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.contact-social-link {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-underline-offset: 0.4rem;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  transition: color 0.15s;
}
.contact-social-link:hover { color: var(--orange); }


/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy { color: var(--outline); }

.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: var(--outline);
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }


/* ============================================================
   SCROLL FADE-IN  (JS adds .js-fade; .js-fade--in triggers it)
============================================================ */
.js-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-fade--in {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   ACTIVE NAV LINK
============================================================ */
.nav-link--active {
  color: var(--navy-mid) !important;
  font-weight: 700;
}


/* ============================================================
   LEVELLING STAFF  (scroll progress, desktop only)
============================================================ */
.levelling-staff {
  position: fixed;
  left: 0;
  top: var(--nav-h);
  bottom: 0;
  width: 18px;
  z-index: 50;
  display: none;
  background: var(--navy-dark);
  overflow: hidden;
}
@media (min-width: 1280px) {
  .levelling-staff { display: block; }
}

.levelling-staff-fill {
  width: 100%;
  height: 0%;
  background: var(--orange);
  position: absolute;
  top: 0;
  left: 0;
  transition: height 0.08s linear;
}

/* Tick marks via repeating gradient */
.levelling-staff::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 9px,
    rgba(255, 255, 255, 0.18) 9px,
    rgba(255, 255, 255, 0.18) 10px,
    transparent 10px,
    transparent 49px,
    rgba(255, 255, 255, 0.35) 49px,
    rgba(255, 255, 255, 0.35) 50px
  );
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   CHAINAGE COUNTER  (desktop only)
============================================================ */
.chainage-counter {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  display: none;
  z-index: 50;
  pointer-events: none;
}
@media (min-width: 1280px) {
  .chainage-counter { display: block; }
}


/* ============================================================
   SAR PROCESSING PIPELINE
============================================================ */
.sar-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-block: 0.625rem;
}

.sar-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--surface-hi);
  border: 1px solid var(--outline);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.sar-step:hover {
  background: var(--offwhite);
  color: var(--navy-mid);
  border-color: var(--navy-mid);
}
.sar-step--active {
  background: var(--navy-mid);
  color: #fff;
  border-color: var(--navy-mid);
}
.sar-step--active:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.sar-arrow {
  color: var(--orange-text);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.approach-models {
  margin-top: 0.75rem;
  color: var(--text-mid);
}


/* ============================================================
   METHOD COMPARISON PANEL
============================================================ */
.method-panel {
  padding-block: 1.5rem;
  border-top: 1px solid var(--outline);
  margin-bottom: 1.75rem;
}

.method-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.method-item {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-mid);
  background: var(--surface-hi);
  border: 1px solid var(--outline);
  padding: 0.375rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.method-item--best {
  background: var(--navy-mid);
  color: #fff;
  border-color: var(--navy-mid);
}

.method-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--navy-dark);
  padding: 1px 6px;
}


/* ============================================================
   EXPERIENCE PHOTO CAPTION REVEAL
============================================================ */
.site-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 21, 41, 0.92));
  padding: 1.5rem 0.75rem 0.625rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.site-photo-item:hover .site-photo-caption,
.site-photo-item.caption-visible .site-photo-caption {
  opacity: 1;
  transform: translateY(0);
}
.site-photo-caption .label {
  text-transform: uppercase;
  font-size: 0.6875rem;
}


/* ============================================================
   CONFIRM TAG  (review mode only, generated via CSS ::after)
============================================================ */
.confirm-tag {
  display: none !important; /* legacy spans , always hidden */
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  color: var(--orange-text);
  border: 1px solid var(--orange-text);
  padding: 1px 5px;
  margin-left: 0.375rem;
  vertical-align: middle;
}

.confirm-tag--dark {
  color: var(--orange);
  border-color: var(--orange);
}


/* ============================================================
   CONTACT, EMAIL ROW + COPY BUTTON
============================================================ */
.contact-email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-email-link {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 0.5rem;
  transition: color 0.15s;
}
.contact-email-link:hover { color: var(--orange); }

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-copy-email:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-copy-email--done {
  background: var(--orange);
  color: var(--navy-dark);
  border-color: var(--orange);
}

.copy-icon { font-size: 1rem; }


/* ============================================================
   EDUCATION, final-year project line
============================================================ */
.education-project {
  font-size: 0.9375rem;
  color: var(--text-mid);
  margin-top: 0.5rem;
}


/* ============================================================
   TIMELINE DURATION
============================================================ */
.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}


/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 41, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }

body.lightbox-open { overflow: hidden; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lightbox-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 80rem);
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 4rem);
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  text-align: center;
}


/* ============================================================
   PRINT STYLESHEET
============================================================ */
@media print {
  /* No phone number, enforced by content rules; only email and LinkedIn here */

  .levelling-staff,
  .chainage-counter,
  .site-header,
  .mobile-menu-btn,
  .hero-actions,
  .btn-copy-email,
  .sar-pipeline,
  .site-footer,
  .hazard-stripe,
  .title-block { display: none !important; }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
    line-height: 1.5;
  }

  main { padding-top: 0; }

  .section {
    background: #fff !important;
    color: #000 !important;
    padding-block: 1.5rem;
    page-break-inside: avoid;
  }

  .section--dark,
  .section--hero,
  .section--contact,
  .section--stats {
    background: #f4f4f4 !important;
    color: #000 !important;
  }

  .display,
  .headline-lg,
  .headline-md,
  .stat-num,
  .timeline-entry h3,
  .beyond-venture-title {
    color: #000 !important;
  }

  h1, h2, h3 { page-break-after: avoid; }

  .container {
    max-width: 100%;
    padding-inline: 0;
  }

  .hero-grid,
  .leadership-grid { display: block; }
  .hero-portrait   { display: none; }

  .project-card {
    border: 1px solid #ccc;
    padding: 1rem;
  }

  .stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-num {
    font-size: 1.5rem;
    border-bottom: 2px solid #ccc;
  }

  .skills-table { border-color: #ccc; }
  .skills-row   { border-bottom-color: #ccc; }
  .skills-group { color: #000; }
  .skills-items { color: #333; }

  .site-photo-strip { display: none; }

  .timeline {
    padding-left: 0;
  }
  .timeline::before,
  .timeline-marker { display: none; }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    color: #555;
  }
  a[href^="mailto"]::after,
  a[href^="#"]::after { content: none; }

  .contact-email-link::after {
    content: ' (joshuamartin4102002@gmail.com)';
  }

  .fig-frame   { border: 1px solid #ccc; }
  .fig-caption { background: #f0f0f0; color: #333; border-top: 1px solid #ccc; }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  .beyond-grid,
  .ragam-photo-pair { display: none; }
}


/* ============================================================
   HERO, PORTRAIT SIZE + LOOKING FOR ROW
============================================================ */
.portrait-frame {
  max-width: 300px;
}

.hero-looking-for {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-looking-for-label {
  color: var(--orange);
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.75rem;
}


/* ============================================================
   PROJECT, TWO-COLUMN LAYOUT + DATA SHEET + SAR NUMBERS
============================================================ */
.project-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--outline);
}
@media (min-width: 1024px) {
  .project-cols { grid-template-columns: 55fr 45fr; gap: 2.5rem; }
}

.project-left {
  display: flex;
  flex-direction: column;
}

.project-left .project-img-wrap {
  margin-bottom: 0;
}

.project-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-right .project-cell {
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--outline);
}
.project-right .project-cell:first-child { padding-top: 0; }
.project-right .project-cell:last-child { border-bottom: none; padding-bottom: 0; }

.data-sheet {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--outline);
  margin-top: 1rem;
}

.data-sheet-caption {
  text-align: left;
  color: var(--orange-text);
  padding: 0.5rem 0.75rem;
  background: var(--navy-mid);
  color: rgba(255, 255, 255, 0.5);
  caption-side: top;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.ds-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange-text);
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  white-space: nowrap;
  vertical-align: middle;
  background: var(--surface-hi);
  width: 7.5rem;
}

.ds-val {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-mid);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--outline);
  vertical-align: middle;
}

.data-sheet tr:last-child .ds-key,
.data-sheet tr:last-child .ds-val { border-bottom: none; }

.sar-num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--orange-text);
  margin-right: 0.35rem;
  letter-spacing: 0.03em;
}
.sar-step--active .sar-num { color: rgba(255, 255, 255, 0.6); }


/* ============================================================
   LEADERSHIP, FACTS ROW
============================================================ */
.ragam-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--outline);
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .ragam-facts { grid-template-columns: repeat(4, 1fr); }
}

.ragam-fact {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.875rem;
  border-right: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}
.ragam-fact:nth-child(2n) { border-right: none; }
.ragam-fact:nth-child(n+3) { border-bottom: none; }

@media (min-width: 640px) {
  .ragam-fact { border-right: 1px solid var(--outline); border-bottom: none; }
  .ragam-fact:last-child { border-right: none; }
}

.ragam-fact-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.ragam-fact-value {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-mid);
}

/* Ragam photos 3:2 aspect ratio */
.ragam-photo {
  aspect-ratio: 3 / 2;
}


/* ============================================================
   EXPERIENCE, TWO-COLUMN ENTRIES
============================================================ */
.exp-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .exp-entry { grid-template-columns: 5fr 7fr; gap: 2.5rem; }
}

.exp-entry--last { border-bottom: none; }

.exp-entry-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-entry-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exp-entry-header h3 {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.exp-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.exp-thumbs--single { grid-template-columns: 1fr; max-width: 260px; }

.exp-thumbs .site-photo-item {
  aspect-ratio: 4 / 3;
}

.exp-entry-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

/* experience section h2 spacing */
.section--dark .headline-lg { margin-bottom: 0; }


/* ============================================================
   EXPERIENCE, SITE EXPOSURE MATRIX
============================================================ */
.exposure-matrix {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.exposure-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.exposure-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
}

.exp-legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.exp-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.exp-dot--filled { background: var(--orange); }
.exp-dot--hollow { background: transparent; border: 2px solid var(--orange); }

.exp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.exp-table thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.exp-th-activity { width: auto; }
.exp-th-site { width: 6rem; text-align: center !important; }

.exp-table tbody td {
  color: rgba(255, 255, 255, 0.75);
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  font-size: 0.9375rem;
}
.exp-table tbody td:not(:first-child) { text-align: center; }
.exp-table tbody tr:last-child td { border-bottom: none; }
.exp-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

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


/* ============================================================
   SKILLS, FULL NAMES, TALLER ROWS, 18PX ITEMS
============================================================ */
.skills-group {
  white-space: normal;
  width: auto;
  min-width: 10rem;
  padding-block: 1.125rem;
}

.skills-items {
  font-size: 1.125rem;
  padding-block: 1.125rem;
}


/* ============================================================
   EDUCATION + ACHIEVEMENTS GRID
============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
}
@media (min-width: 1024px) {
  .edu-grid { grid-template-columns: 5fr 4fr; gap: 3rem; }
}

.edu-languages {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline);
}
.edu-languages p {
  margin-top: 0.375rem;
  color: var(--text-mid);
}

.edu-achievements {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievement-list li {
  font-size: 0.9375rem;
  color: var(--text-mid);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--outline-lt);
  line-height: 1.5;
}
.achievement-list li:last-child { border-bottom: none; }


/* ============================================================
   BEYOND, THREE-COLUMN GRID
============================================================ */
.beyond-grid--three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .beyond-grid--three { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .beyond-grid--three { grid-template-columns: 1fr 1fr 1fr; }
}

.beyond-grid--three .beyond-img {
  aspect-ratio: 4 / 3;
}

.beyond-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.beyond-grid--three .beyond-intro {
  margin-bottom: 0;
}

/* Café exterior 4:3 */
.beyond-venture-img {
  aspect-ratio: 4 / 3;
}


/* ============================================================
   FOOTER, SHEET LINE
============================================================ */
.footer-copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-sheet {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}


/* ============================================================
   LIGHTBOX, PREV / NEXT ARROWS
============================================================ */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  z-index: 201;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.lightbox-prev[hidden],
.lightbox-next[hidden] { display: none; }


/* ============================================================
   FIGURE TABS  (project section: SMI / NDVI / SNAP)
============================================================ */
.fig-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 0;
}

.fig-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.625rem 1rem;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.fig-tab-btn:hover { color: var(--orange-text); }
.fig-tab-btn--active,
.fig-tab-btn[aria-selected="true"] {
  color: var(--orange-text);
  border-bottom-color: var(--orange-text);
}

.fig-tab-panels { position: relative; }

.fig-tab-panel[hidden] { display: none; }

.fig-tab-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}


/* ============================================================
   SAR PROCESSING VIEWER  (8-stage interactive viewer)
============================================================ */
.sar-viewer-ui {
  display: none; /* shown by JS */
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--outline);
  padding: 0.875rem;
  margin-bottom: 0.75rem;
}
.sar-viewer-ui.sar-viewer--active { display: flex; }

.sar-viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sar-pol-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--outline);
}

.sar-pol-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s, background 0.15s;
}
.sar-pol-btn + .sar-pol-btn { border-left: 1px solid var(--outline); }
.sar-pol-btn--active,
.sar-pol-btn[aria-pressed="true"] {
  background: var(--orange);
  color: var(--navy-dark);
}

.sar-stage-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.sar-viewer-figure {
  margin: 0;
}

.sar-viewer-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--navy-mid);
}

.sar-viewer-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sar-nav-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.sar-nav-btn:hover:not(:disabled) { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.sar-nav-btn:disabled { opacity: 0.3; cursor: default; }

.sar-stepper {
  display: flex;
  gap: 0.375rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.sar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.sar-dot--active { background: var(--orange); transform: scale(1.35); }
.sar-dot:hover:not(.sar-dot--active) { background: rgba(255, 255, 255, 0.45); }

.sar-fallback-list {
  padding: 0 0 0 1.25rem;
  margin: 0;
}
.sar-fallback-list li {
  font-size: 0.9375rem;
  color: var(--text-body);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--outline);
}
.sar-fallback-list li:last-child { border-bottom: none; }


/* ============================================================
   PROJECT, RESULT METRICS + EQUATION + GROUP LINE
============================================================ */
.result-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.result-metric {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-mid);
}
.result-metric strong {
  color: var(--text-body);
  font-weight: 700;
}

.result-sep {
  color: var(--outline);
  font-size: 1.125rem;
  line-height: 1;
}

.result-equation {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.375rem 0.625rem;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.project-group-line {
  background: rgba(255, 255, 255, 0.025);
}


/* ============================================================
   EXPERIENCE, YEAR BADGE
============================================================ */
.exp-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  border: 1px solid rgba(252, 113, 35, 0.35);
  padding: 0.125rem 0.5rem;
  display: inline-block;
  width: fit-content;
}


/* ============================================================
   OVERRIDES: CONTAINER + SECTION PADDING + TYPOGRAPHY
============================================================ */
:root {
  --container: 75rem;
}

.section { padding-block: 3rem; }
@media (min-width: 1024px) { .section { padding-block: 4.5rem; } }

.display { font-size: clamp(3.5rem, 8vw, 6rem); }
.headline-lg { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.headline-md { font-size: 1.5rem; font-weight: 700; line-height: 1.35; }
.section-label { font-size: 0.9375rem; }
.label { font-size: 0.875rem; }

/* Nav links 15px */
.nav-link, .nav-name, .nav-badge, .footer-nav a { font-size: 0.9375rem; }


/* ============================================================
   REVIEW MODE
============================================================ */
.confirm-tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ffe066;
  color: #5a3d00;
  padding: 0.1em 0.4em;
  margin-left: 0.25em;
  vertical-align: middle;
  border-radius: 2px;
}
body.review-mode .confirm-tag { display: inline; }

.review-toggle-wrap { display: flex; align-items: center; }
.review-toggle-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); cursor: pointer; user-select: none;
}
.review-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.review-toggle-track {
  display: inline-block; width: 32px; height: 16px;
  border-radius: 8px; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2); position: relative;
  flex-shrink: 0; transition: background 0.2s;
}
.review-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: transform 0.2s;
}
.review-toggle-input:checked + .review-toggle-track { background: var(--orange); }
.review-toggle-input:checked + .review-toggle-track::after { transform: translateX(16px); background: #fff; }
.review-toggle-input:focus-visible + .review-toggle-track { outline: 2px solid var(--orange); outline-offset: 2px; }


/* ============================================================
   STICKY SHEET LABEL
============================================================ */
.sticky-sheet-label {
  position: fixed; top: calc(var(--nav-h) + 1rem); right: 1.25rem;
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.25); writing-mode: vertical-rl;
  z-index: 50; pointer-events: none; display: none;
}
@media (min-width: 1280px) { .sticky-sheet-label { display: block; } }
body.on-dark .sticky-sheet-label { color: rgba(255,255,255,0.2); }


/* ============================================================
   HERO HIGHLIGHTS
============================================================ */
.hero-highlights {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-highlight {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9375rem; color: rgba(255,255,255,0.75); line-height: 1.4;
}
.hero-highlight-icon { flex-shrink: 0; opacity: 0.7; color: var(--orange); }


/* ============================================================
   NORTH ARROW + SCALE BAR
============================================================ */
.hero-drawing-elements {
  position: absolute; bottom: 1rem; right: 0.75rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.375rem; pointer-events: none;
}
.north-arrow-svg { color: rgba(255,255,255,0.45); }
.scale-bar { display: flex; flex-direction: column; align-items: stretch; gap: 0.125rem; width: 40px; }
.scale-bar-rule { height: 3px; background: rgba(255,255,255,0.35); border-left: 2px solid rgba(255,255,255,0.5); border-right: 2px solid rgba(255,255,255,0.5); }
.scale-bar-ticks {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.5rem; color: rgba(255,255,255,0.4); letter-spacing: 0.02em;
}


/* ============================================================
   PORTRAIT FRAME
============================================================ */
.portrait-frame { max-width: 320px; position: relative; }
.portrait-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: top; max-height: 420px; display: block;
}


/* ============================================================
   PROJECT â€” RESTRUCTURED TWO COLUMNS
============================================================ */
.project-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 1024px) { .project-cols { grid-template-columns: 58fr 42fr; gap: 2.5rem; } }

.project-left { display: flex; flex-direction: column; }
.project-right { display: flex; flex-direction: column; gap: 0; }
.project-right .project-cell { padding-block: 1rem; border-bottom: 1px solid var(--outline); }
.project-right .project-cell:first-child { padding-top: 0; }
.project-right .project-cell:last-child  { border-bottom: none; padding-bottom: 0; }

.fig-tab-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  background: #f0ede6; max-height: 420px; display: block;
}
@media (min-width: 1024px) { .fig-tab-img { min-height: 340px; } }

.project-fullwidth {
  display: flex; flex-direction: column; gap: 2.5rem;
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--outline);
}
.project-fw-panel { display: flex; flex-direction: column; gap: 0.75rem; }
.project-fw-heading {
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange-text);
}
.project-fw-sub { font-size: 0.9375rem; color: var(--text-mid); margin-top: -0.375rem; }

.result-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin-bottom: 0.375rem; }
.result-metric { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-mid); }
.result-metric strong { color: var(--text-dark); font-weight: 700; }
.result-sep { color: var(--outline); font-size: 1rem; }
.result-equation {
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-mid);
  background: var(--surface-hi); border: 1px solid var(--outline);
  padding: 0.375rem 0.625rem; word-break: break-word;
}


/* ============================================================
   SAR STEP VIEWER + BEFORE/AFTER SLIDER
============================================================ */
.sar-viewer-ui {
  display: none; flex-direction: column; gap: 0.75rem;
  background: var(--navy-mid); padding: 1rem;
}
.sar-viewer-ui.sar-active { display: flex; }

.sar-viewer-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem 1.5rem; }
.sar-stage-info { display: flex; flex-direction: column; gap: 0.125rem; flex: 1; }
.sar-stage-num { color: var(--orange); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; }
.sar-stage-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff; }
.sar-stage-desc { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.4; flex-basis: 100%; }

.sar-pol-toggle { display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.sar-pol-btn {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 0.25rem 0.75rem; background: transparent;
  border: none; color: rgba(255,255,255,0.4); cursor: pointer; transition: color 0.15s, background 0.15s;
}
.sar-pol-btn + .sar-pol-btn { border-left: 1px solid rgba(255,255,255,0.2); }
.sar-pol-btn--active, .sar-pol-btn[aria-pressed="true"] { background: var(--orange); color: var(--navy-dark); }

.sar-compare {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--navy-dark); cursor: col-resize;
  user-select: none; touch-action: pan-y; max-height: 380px;
}
.sar-compare-before, .sar-compare-after {
  position: absolute; inset: 0; overflow: hidden;
}
.sar-compare-before img, .sar-compare-after img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block; background: var(--navy-dark);
}
.sar-compare-after { clip-path: inset(0 50% 0 0); }

.sar-compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 36px;
  display: flex; flex-direction: column; align-items: center;
  cursor: col-resize; z-index: 10;
}
.sar-compare-handle::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--orange); left: 50%; transform: translateX(-50%);
}
.sar-compare-handle::after {
  content: '\25A0'; position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.5625rem; font-weight: 700;
  background: var(--orange); color: var(--navy-dark);
  padding: 0.25rem 0.375rem; letter-spacing: 0.05em; white-space: nowrap;
}
.sar-compare-label {
  position: absolute; bottom: 0.5rem;
  font-family: var(--font-mono); font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.8); padding: 0.2em 0.5em;
}
.sar-compare-label--l { left: 0.5rem; }
.sar-compare-label--r { right: 0.5rem; }
.sar-compare--first .sar-compare-before { display: none; }
.sar-compare--first .sar-compare-after  { clip-path: none; }
.sar-compare--first .sar-compare-handle { display: none; }

.sar-viewer-bottom { display: flex; align-items: center; gap: 0.75rem; }
.sar-nav-btn {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.375rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.65);
  cursor: pointer; transition: color 0.15s, border-color 0.15s; white-space: nowrap; background: transparent;
}
.sar-nav-btn:hover:not(:disabled) { color: #fff; border-color: rgba(255,255,255,0.5); }
.sar-nav-btn:disabled { opacity: 0.25; cursor: default; }
.sar-stepper { display: flex; gap: 0.375rem; flex: 1; justify-content: center; flex-wrap: wrap; }
.sar-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2);
  border: none; padding: 0; cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.sar-dot--active { background: var(--orange); transform: scale(1.4); }
.sar-dot:hover:not(.sar-dot--active) { background: rgba(255,255,255,0.45); }

.sar-fallback-list { padding: 0.75rem 0 0 1.25rem; background: var(--navy-mid); }
.sar-fallback-list li {
  font-size: 1rem; color: rgba(255,255,255,0.8);
  padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); line-height: 1.5;
}
.sar-fallback-list li:last-child { border-bottom: none; }


/* ============================================================
   SNAP NODE DIAGRAM
============================================================ */
.snap-diagram-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
.snap-diagram { display: block; min-width: 600px; }
.snap-node rect { fill: var(--surface-hi); stroke: var(--outline); stroke-width: 1.5; }
.snap-node text { font-family: monospace; font-size: 8.5px; font-weight: 600; fill: var(--text-mid); }
.snap-node--io rect { fill: var(--offwhite); }
.snap-node--io text { opacity: 0.6; }
.snap-node--proc { cursor: pointer; }
.snap-node--proc rect { transition: fill 0.15s; }
.snap-node--proc:hover rect, .snap-node--proc:focus rect { fill: var(--orange); }
.snap-node--proc:hover text, .snap-node--proc:focus text { fill: var(--navy-dark); }
.snap-node--proc:focus { outline: none; }
.snap-node--proc:focus rect { stroke: var(--orange-text); stroke-width: 2; }
.snap-node--proc.snap-node--active rect { fill: var(--orange); }
.snap-node--proc.snap-node--active text { fill: var(--navy-dark); }
.snap-arrow { stroke: var(--orange-text); stroke-width: 1.5; }


/* ============================================================
   CALCULATOR
============================================================ */
.calc-widget {
  background: var(--surface-hi); border: 1px solid var(--outline);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem;
}
.calc-sliders { display: flex; flex-direction: column; gap: 0.875rem; }
.calc-slider-row { display: flex; flex-direction: column; gap: 0.375rem; }
.calc-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-text);
}
.calc-slider-inner { display: flex; align-items: center; gap: 0.75rem; }
.calc-range {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--outline); outline: none; cursor: pointer;
}
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 0; background: var(--orange); cursor: pointer; }
.calc-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 0; background: var(--orange); border: none; cursor: pointer; }
.calc-range:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.calc-value {
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700;
  color: var(--text-dark); white-space: nowrap; min-width: 6.5rem; text-align: right;
}
.calc-result-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding-top: 0.75rem; border-top: 1px solid var(--outline);
}
.calc-result { display: flex; align-items: baseline; gap: 0.625rem; }
.calc-result-label { color: var(--orange-text); }
.calc-result-val {
  font-family: var(--font-head); font-size: 2.25rem; font-weight: 800;
  color: var(--navy-mid); line-height: 1;
}
.calc-metrics-row { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.calc-metric { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-mid); }
.calc-metric strong { color: var(--text-dark); }
.calc-metric-sep { color: var(--outline); }
.calc-note { font-size: 0.9375rem; color: var(--text-mid); line-height: 1.5; }


/* ============================================================
   DATA SHEET (updated)
============================================================ */
.data-sheet { width: 100%; border-collapse: collapse; border: 1px solid var(--outline); }
.data-sheet-caption { text-align: left; padding: 0.5rem 0.75rem; background: var(--navy-mid); color: rgba(255,255,255,0.5); caption-side: top; letter-spacing: 0.08em; font-size: 0.75rem; }
.ds-key {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-text);
  padding: 0.5rem 0.75rem; border-right: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline); white-space: nowrap;
  vertical-align: middle; background: var(--surface-hi); width: 7.5rem;
}
.ds-val {
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--text-mid);
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--outline); vertical-align: middle;
}
.data-sheet tr:last-child .ds-key, .data-sheet tr:last-child .ds-val { border-bottom: none; }


/* ============================================================
   LEADERSHIP CHECKLIST
============================================================ */
.ragam-checklist-wrap { margin: 1.25rem 0; }
.ragam-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.ragam-checklist li {
  font-size: 1rem; color: var(--text-mid); padding-left: 1.25rem;
  position: relative; line-height: 1.5;
}
.ragam-checklist li::before { content: '\25A0'; position: absolute; left: 0; color: var(--orange-text); font-size: 0.5rem; top: 0.45em; }
.ragam-photo { width: 100%; max-width: 340px; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; max-height: 240px; display: block; }


/* ============================================================
   EXPERIENCE FILTER MATRIX
============================================================ */
.exp-matrix-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.exp-matrix-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 1.25rem; }
.exp-filter-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.exp-chip {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.625rem;
  border: 1px solid rgba(255,255,255,0.2); background: transparent;
  color: rgba(255,255,255,0.5); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.exp-chip--active, .exp-chip:hover { background: var(--orange); color: var(--navy-dark); border-color: var(--orange); }
.exp-matrix-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.exp-matrix-table thead th {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange);
  padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.2); text-align: left;
}
.exp-matrix-th-site { text-align: center !important; width: 5.5rem; }
.exp-matrix-table tbody td { color: rgba(255,255,255,0.75); padding: 0.625rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: middle; transition: opacity 0.2s; }
.exp-matrix-table tbody tr:last-child td { border-bottom: none; }
.exp-matrix-dot { text-align: center; font-size: 1.125rem; }
.dot-filled { color: var(--orange); }
.dot-hollow { color: rgba(255,255,255,0.18); }
.exp-matrix-table tr.exp-row--dim td { opacity: 0.18; }
.exp-matrix-legend { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.6875rem; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }


/* ============================================================
   EXPERIENCE THUMBNAILS
============================================================ */
.exp-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.exp-thumbs .site-photo-item { aspect-ratio: 4 / 3; }
.site-photo { width: 100%; height: 100%; object-fit: cover; max-width: 300px; max-height: 225px; display: block; }


/* ============================================================
   SKILLS CHIPS
============================================================ */
.skills-intro { font-size: 0.9375rem; color: var(--text-mid); margin-bottom: 1.25rem; margin-top: -0.5rem; }
.skills-group {
  font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; text-align: left;
  vertical-align: top; padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--outline); width: 12rem;
  line-height: 1.5; white-space: normal; color: var(--text-dark);
}
.skills-items {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  padding: 0.875rem 0; border-bottom: 1px solid var(--outline);
  vertical-align: top; min-height: 3.5rem;
}
.skills-row:last-child .skills-group, .skills-row:last-child .skills-items { border-bottom: none; }
.skill-chip {
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.02em; padding: 0.3rem 0.75rem;
  background: var(--surface-hi); border: 1px solid var(--outline);
  color: var(--text-dark); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s; line-height: 1.4;
}
.skill-chip:hover, .skill-chip.skill-chip--active {
  background: var(--orange); border-color: var(--orange); color: var(--navy-dark);
}


/* ============================================================
   EDUCATION HAIRLINE LIST
============================================================ */
.achievement-hairline { list-style: none; padding: 0; margin: 0; }
.achievement-hairline li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; font-size: 1rem; color: var(--text-mid);
  padding: 0.625rem 0; border-bottom: 1px solid var(--outline-lt); line-height: 1.5;
}
.achievement-hairline li:last-child { border-bottom: none; }
.ach-text { flex: 1; }
.ach-year { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--orange-text); white-space: nowrap; flex-shrink: 0; }


/* ============================================================
   BEYOND â€” THREE COLUMN + JBROS ROW
============================================================ */
.beyond-grid--three { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px)  { .beyond-grid--three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .beyond-grid--three { grid-template-columns: 1fr 1fr 1fr; } }
.beyond-grid--three .beyond-img { aspect-ratio: 4 / 3; max-width: 300px; max-height: 240px; overflow: hidden; }
.beyond-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-width: 300px; max-height: 225px; display: block; }
.beyond-text-col { display: flex; flex-direction: column; justify-content: center; }

.beyond-venture {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid var(--outline-lt);
}
@media (min-width: 768px) { .beyond-venture { grid-template-columns: 1fr 1fr; align-items: center; } }
.beyond-venture-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin: 0.25rem 0 0.5rem; color: var(--text-dark); }
.beyond-venture-list { list-style: none; padding: 0; margin: 0; }
.beyond-venture-list li { font-size: 1rem; color: var(--text-mid); padding-left: 1rem; position: relative; line-height: 1.6; }
.beyond-venture-list li::before { content: '\25A0'; position: absolute; left: 0; color: var(--ochre-700); font-size: 0.5rem; top: 0.45em; }
.beyond-venture-img { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; max-height: 315px; display: block; }


/* ============================================================
   CONTACT â€” PRINT BUTTON
============================================================ */
.btn--print { margin-top: 1.25rem; width: fit-content; }


/* ============================================================
   REBAR GRID behind stat strip
============================================================ */
.section--stats { position: relative; }
.section--stats::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg,  rgba(0,0,0,0.028) 0, rgba(0,0,0,0.028) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.028) 0, rgba(0,0,0,0.028) 1px, transparent 0, transparent 50%);
  background-size: 18px 18px;
}


/* ============================================================
   FIGURE TABS
============================================================ */
.fig-tab-nav { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--outline); }
.fig-tab-btn {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-mid);
  background: transparent; border: none; border-bottom: 2px solid transparent;
  padding: 0.625rem 1rem; cursor: pointer; margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.fig-tab-btn:hover { color: var(--orange-text); }
.fig-tab-btn--active, .fig-tab-btn[aria-selected="true"] { color: var(--orange-text); border-bottom-color: var(--orange-text); }
.fig-tab-panel[hidden] { display: none; }
.fig-tab-panels { position: relative; }


/* ============================================================
   EXP YEAR BADGE
============================================================ */
.exp-year {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--orange);
  border: 1px solid rgba(252,113,35,0.35); padding: 0.125rem 0.5rem;
  display: inline-block; width: fit-content;
}


/* ============================================================
   PRINT STYLESHEET
============================================================ */
@media print {
  .site-header,.mobile-menu,.levelling-staff,.chainage-counter,
  .sticky-sheet-label,.hero-actions,.hero-looking-for,.btn,.lightbox,
  .snap-diagram-wrap,.calc-widget,.exp-filter-chips,.beyond-grid--three .beyond-img,
  .fig-tab-nav,.sar-viewer,.review-toggle-wrap,.footer-nav,.btn--print,
  .hero-highlights,.hero-drawing-elements { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: inherit; text-decoration: none; }
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .container { max-width: 100%; padding: 0 1cm; }
  .section { padding-block: 0.75cm; border-bottom: 0.5pt solid #ccc; }
  .section--dark,.section--contact,.section--hero { background: #fff !important; color: #000 !important; }
  h1,h2,h3 { color: #000; page-break-after: avoid; }
  .display { font-size: 24pt; }
  .headline-lg { font-size: 16pt; }
  img { max-width: 55mm; page-break-inside: avoid; }
  .project-cols,.exp-entry,.beyond-venture,.edu-grid { display: block; }
  .confirm-tag { display: none !important; }
}


/* Skills chip section highlight flash */
.section--highlight {
  animation: section-flash 1.4s ease-out;
}
@keyframes section-flash {
  0%   { box-shadow: inset 0 0 0 2px var(--orange); }
  100% { box-shadow: inset 0 0 0 2px transparent; }
}


/* ============================================================
   NAV â€” steel-900 92% + blur + active glow (Part E)
============================================================ */
.site-header {
  background: rgba(23, 34, 43, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  color: var(--on-steel-muted) !important;
  font-size: 0.9375rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-link--active,
.nav-link[aria-current="true"] {
  color: var(--yellow-500) !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(245,184,0,0.45);
  border-bottom: 2px solid var(--yellow-500);
  box-shadow: 0 2px 8px rgba(245,184,0,0.5);
}

.nav-link:hover:not(.nav-link--active) {
  color: var(--on-steel) !important;
}

@media (prefers-reduced-motion: reduce) {
  .nav-link { transition: none; }
  .nav-link--active { text-shadow: none; box-shadow: none; }
}


/* ============================================================
   INTRO OVERLAY (Part F)
============================================================ */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--steel-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#intro-overlay.intro-exit {
  animation: intro-slide-up 0.45s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes intro-slide-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143,184,212,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,184,212,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,0.6), transparent);
}

.intro-chainage {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(143,184,212,0.5);
}

.intro-skip-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(143,184,212,0.55);
  border: 1px solid rgba(143,184,212,0.25);
  padding: 0.3rem 0.75rem;
  background: transparent;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.15s, border-color 0.15s;
}

.intro-skip-btn:hover {
  color: var(--yellow-500);
  border-color: var(--yellow-500);
}

.intro-svg-wrap {
  position: relative;
  width: min(400px, 88vw);
  z-index: 2;
}

.intro-building {
  display: block;
  overflow: visible;
}

/* Draw-on animation for building frame paths */
.intro-path {
  fill: none;
  stroke: rgba(143,184,212,0.55);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.intro-path--foundation { animation: draw-path 0.3s 0.1s ease-out forwards; stroke-width: 2.5; stroke: rgba(143,184,212,0.75); }
.intro-path--col1 { animation: draw-path 0.35s 0.28s ease-out forwards; }
.intro-path--col2 { animation: draw-path 0.35s 0.34s ease-out forwards; }
.intro-path--col3 { animation: draw-path 0.35s 0.40s ease-out forwards; }
.intro-path--col4 { animation: draw-path 0.35s 0.46s ease-out forwards; }
.intro-path--beam1 { animation: draw-path 0.25s 0.72s ease-out forwards; }
.intro-path--beam2 { animation: draw-path 0.25s 0.82s ease-out forwards; }
.intro-path--beam3 { animation: draw-path 0.25s 0.92s ease-out forwards; }
.intro-path--crane  { animation: draw-path 0.4s 1.05s ease-out forwards; stroke: rgba(245,184,0,0.6); }

@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

.intro-slab-label {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: rgba(143,184,212,0.45);
  opacity: 0;
  animation: fade-label 0.2s ease forwards;
}
.intro-slab-label--l1 { animation-delay: 0.84s; }
.intro-slab-label--l2 { animation-delay: 0.94s; }
.intro-slab-label--l3 { animation-delay: 1.04s; }
.intro-slab-label--l4 { animation-delay: 1.14s; }

@keyframes fade-label {
  to { opacity: 1; }
}

/* Hazard stripe wipe */
.intro-hazard {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    var(--yellow-500) 0px,
    var(--yellow-500) 8px,
    var(--steel-900) 8px,
    var(--steel-900) 16px
  );
  transform: scaleX(0);
  transform-origin: left;
  animation: hazard-wipe 0.3s 1.35s ease-out forwards;
}

@keyframes hazard-wipe {
  to { transform: scaleX(1); }
}

/* Typewriter text */
.intro-text {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 2vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-steel);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: type-in 0.6s 1.55s steps(28, end) forwards;
}

@keyframes type-in {
  to { width: 28ch; }
}


/* ============================================================
   HERO CROSSHAIR (Part G â€” desktop only)
============================================================ */
.hero-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
@media (hover: hover) and (min-width: 1024px) {
  .hero-crosshair { display: block; }
}
.hero-crosshair-h,
.hero-crosshair-v {
  position: absolute;
  background: rgba(143,184,212,0.18);
}
.hero-crosshair-h { height: 1px; left: 0; right: 0; top: 0; pointer-events: none; }
.hero-crosshair-v { width: 1px; top: 0; bottom: 0; left: 0; pointer-events: none; }
.hero-crosshair-readout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(143,184,212,0.6);
  background: rgba(23,34,43,0.65);
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
  pointer-events: none;
  top: 0.25rem;
  left: 0.25rem;
}


/* ============================================================
   SECTION HAIRLINE DRAW-IN (Part G)
============================================================ */
.section-hairline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease-out;
}
.section--light .section-hairline,
.section--white .section-hairline,
.section--stats .section-hairline {
  background: var(--concrete-300);
}
.section-in .section-hairline {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .section-hairline { transition: none; transform: scaleX(1); }
}


/* ============================================================
   LEVELLING STAFF SECTION TICKS (Part G)
============================================================ */
.levelling-staff-tick {
  position: absolute;
  left: 100%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}
.levelling-staff-tick-mark {
  width: 6px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.levelling-staff-tick:hover .levelling-staff-tick-mark {
  background: var(--yellow-500);
  width: 10px;
}
.levelling-staff-tick-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
  display: none;
}
@media (min-width: 1280px) {
  .levelling-staff-tick-label { display: block; }
}
.levelling-staff-tick:hover .levelling-staff-tick-label,
.levelling-staff-tick--active .levelling-staff-tick-label {
  color: var(--yellow-500);
}


/* ============================================================
   BACK-TO-TOP SURVEY PEG (Part G)
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top-peg {
  width: 14px;
  height: 28px;
  background: repeating-linear-gradient(
    to bottom,
    var(--yellow-500) 0, var(--yellow-500) 4px,
    var(--steel-900) 4px, var(--steel-900) 8px
  );
  border: 1px solid rgba(245,184,0,0.4);
  cursor: pointer;
  display: block;
  position: relative;
}
.back-to-top-peg::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 6px solid var(--yellow-500);
}
.back-to-top-peg::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--ochre-700);
}
.back-to-top-label {
  font-family: var(--font-mono);
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,184,0,0.5);
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}


/* ============================================================
   PHOTO FRAME CROP-MARKS (Part C)
============================================================ */
.fig-frame {
  position: relative;
}
.fig-frame::before,
.fig-frame::after,
.fig-frame-corner-bl,
.fig-frame-corner-br {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
/* Yellow corner crop-marks via outline on pseudo-elements */
.fig-frame {
  outline: 1px solid var(--steel-800);
}
/* Top-left corner */
.fig-frame::before {
  top: -3px; left: -3px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--yellow-500);
  border-left: 2px solid var(--yellow-500);
}
/* Bottom-right corner */
.fig-frame::after {
  bottom: -3px; right: -3px;
  width: 8px; height: 8px;
  border-bottom: 2px solid var(--yellow-500);
  border-right: 2px solid var(--yellow-500);
}


/* ============================================================
   SHOW-MORE TOGGLE (Part G, B)
============================================================ */
.jbros-list li[data-extra] { display: none; }
.jbros-list.list-expanded li[data-extra] { display: list-item; }

.timeline-list li[data-extra] { display: none; }
.timeline-list.list-expanded li[data-extra] { display: list-item; }

.show-more-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ochre-700);
  border: 1px solid var(--concrete-300);
  padding: 0.3rem 0.875rem;
  background: transparent;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.show-more-btn:hover {
  background: var(--yellow-500);
  color: var(--steel-900);
  border-color: var(--yellow-500);
}
.section--dark .show-more-btn {
  color: var(--blue-300);
  border-color: var(--line-dark);
}
.section--dark .show-more-btn:hover {
  background: var(--yellow-500);
  color: var(--steel-900);
  border-color: var(--yellow-500);
}


/* ============================================================
   JBROS TWO-COLUMN LAYOUT (Part B â€” override existing .beyond-venture)
============================================================ */
.beyond-venture {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .beyond-venture {
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.jbros-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .jbros-list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}

.label--ochre {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ochre-700);
}


/* ============================================================
   STICKY SHEET LABEL â€” brightens on active section
============================================================ */
.sticky-sheet-label--active {
  color: var(--yellow-500) !important;
  text-shadow: 0 0 6px rgba(245,184,0,0.35);
}
@media (prefers-reduced-motion: reduce) {
  .sticky-sheet-label--active { text-shadow: none; }
}


/* ============================================================
   BLUEPRINT-LINE CARD BORDER HOVER (Part G)
============================================================ */
.card-blueprint {
  position: relative;
  overflow: hidden;
}
.card-blueprint::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(143,184,212,0);
  pointer-events: none;
  transition: border-color 0.25s ease;
}
.card-blueprint:hover::after {
  border-color: rgba(143,184,212,0.35);
}
@media (prefers-reduced-motion: reduce) {
  .card-blueprint::after { transition: none; }
}


/* ============================================================
   BUTTON HOVER / PRESS FEEDBACK (Part G)
============================================================ */
.btn {
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0);
}

.skill-chip,
.exp-chip,
.fig-tab-btn,
.sar-pol-btn,
.sar-nav-btn {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.skill-chip:active,
.exp-chip:active,
.fig-tab-btn:active,
.sar-pol-btn:active,
.sar-nav-btn:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .skill-chip, .exp-chip, .fig-tab-btn, .sar-pol-btn, .sar-nav-btn {
    transition: none;
    transform: none !important;
  }
}


/* ============================================================
   REVIEW MODE confirm markers (CSS-generated, Part E)
   Items marked with data-confirm on <li> or data-confirm-list on <ul>
   get a small badge in review mode only. Nothing exists in DOM otherwise.
============================================================ */
body.review-mode [data-confirm-list] li::after,
body.review-mode li[data-confirm]::after {
  content: ' confirm';
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ffe066;
  color: #5a3d00;
  padding: 0.1em 0.4em;
  margin-left: 0.375rem;
  vertical-align: middle;
  border-radius: 2px;
}
