/* ===========================================================================
   PROXIMA-EG — equipment-datasheet design system
   Display: Archivo · Body: IBM Plex Sans · Labels & data: IBM Plex Mono
   =========================================================================== */

:root {
  /* light palette — neutrals biased toward the brand teal, never pure grey */
  --paper:      #FFFFFF;
  --surface:    #EFF3F4;
  --surface-2:  #E4EBED;
  --line:       #D2DFE2;
  --line-soft:  #E6EDEE;
  --ink:        #0E2830;
  --ink-2:      #3D5A62;
  --ink-3:      #6B858C;
  --teal:       #1B4D5C;
  --teal-deep:  #0F323C;
  --lime:       #A4D65E;
  --lime-text:  #4E6E1F;   /* darkened lime that passes on light grounds */
  --on-dark:    #EAF2F3;
  --on-dark-2:  #9FBAC1;
  --focus:      #A4D65E;
  --radius:     2px;
  --maxw:       1180px;
  --gut:        clamp(1.25rem, 4vw, 2.5rem);

  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0B1F26;
    --surface:    #102A33;
    --surface-2:  #16343E;
    --line:       #21454F;
    --line-soft:  #1A3A44;
    --ink:        #E8F1F2;
    --ink-2:      #A9C3C9;
    --ink-3:      #7E9BA3;
    --teal:       #8FC9D8;
    --teal-deep:  #143845;
    --lime:       #A4D65E;
    --lime-text:  #B9E27A;
    --on-dark:    #EAF2F3;
    --on-dark-2:  #9FBAC1;
  }
}
:root[data-theme="dark"] {
  --paper:      #0B1F26;
  --surface:    #102A33;
  --surface-2:  #16343E;
  --line:       #21454F;
  --line-soft:  #1A3A44;
  --ink:        #E8F1F2;
  --ink-2:      #A9C3C9;
  --ink-3:      #7E9BA3;
  --teal:       #8FC9D8;
  --teal-deep:  #143845;
  --lime:       #A4D65E;
  --lime-text:  #B9E27A;
  --on-dark:    #EAF2F3;
  --on-dark-2:  #9FBAC1;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }

/* ---------- structure ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--dark { background: var(--teal-deep); color: var(--on-dark); }
.section--surface { background: var(--surface); }
.section + .section:not(.section--dark):not(.section--surface) { border-top: 1px solid var(--line-soft); }
.stack { display: flex; flex-direction: column; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 .85rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 9px; height: 10px; flex: none; background: var(--lime);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.section--dark .eyebrow { color: var(--lime); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.018em; text-wrap: balance; margin: 0; line-height: 1.08; }
.h-xl { font-size: clamp(2.15rem, 5vw, 3.4rem); }
.h-lg { font-size: clamp(1.85rem, 4vw, 2.7rem); }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.18; }
.h-sm { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.008em; }

.lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.65; color: var(--ink-2); max-width: 62ch; margin: 1.1rem 0 0; }
p { margin: 1rem 0 0; max-width: 68ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.mono { font-family: var(--f-mono); }
.code {
  font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .1em;
  color: var(--ink-3); text-transform: uppercase;
}

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__in { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.brand .light-only { display: block; }
.brand .dark-only  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .light-only { display: none; }
  :root:not([data-theme="light"]) .brand .dark-only  { display: block; }
}
:root[data-theme="dark"] .brand .light-only { display: none; }
:root[data-theme="dark"] .brand .dark-only  { display: block; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: .55rem .7rem; border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--lime); }
.nav-toggle { display: none; }
.masthead .masthead__call { display: none; padding: .5rem .75rem; }

@media (max-width: 900px) {
  .masthead__in { flex-wrap: wrap; min-height: 60px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
    background: none; border: 1px solid var(--line); color: var(--ink);
    font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    padding: .5rem .7rem; border-radius: var(--radius); cursor: pointer;
  }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding-bottom: .6rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .2rem; border-top: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lime); padding-left: .7rem; }
  .masthead > .wrap > .btn--primary { display: none; }
  .masthead .masthead__call { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: .8rem 1.2rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--lime); color: #16330A; }
.btn--primary:hover { background: #B7E276; }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--teal); background: var(--surface); }
.btn--ghost-dark { border-color: rgba(234,242,243,.28); color: var(--on-dark); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--lime); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

/* ---------- hero ---------- */
.pagehead { background: var(--teal-deep); color: var(--on-dark); }
.pagehead h1 { color: #fff; }
.pagehead .eyebrow { color: var(--lime); }
.pagehead .lede { color: var(--on-dark-2); }

.hero { background: var(--teal-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.28fr .72fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-dark-2); }
.hero .eyebrow { color: var(--lime); }
.hero__figure { position: relative; }
.hero__figure img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.hero__stamp {
  position: absolute; left: -10px; bottom: 18px; max-width: calc(100% - 20px); background: var(--lime); color: #16330A;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .7rem; border-radius: var(--radius);
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__figure img { max-height: 260px; }
  .hero__stamp { left: 10px; }
  .hero h1 br { display: none; }
}

/* ---------- metric strip ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 1.5rem var(--gut) 1.4rem; border-left: 1px solid var(--line-soft); }
.metric:first-child { border-left: 0; }
.metric__n { font-family: var(--f-display); font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--teal); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric__l { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: .35rem; }
@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-top: 1px solid var(--line-soft); padding-inline: 1.1rem; }
  .metric:nth-child(-n+2) { border-top: 0; }
  .metric:nth-child(odd) { border-left: 0; }
}

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.cell { background: var(--paper); padding: 1.35rem 1.25rem; }
.cell h3 { margin-bottom: .35rem; }
.cell p { margin-top: .3rem; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.cards { display: grid; gap: 1.1rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards--2, .cards--3 { grid-template-columns: 1fr; } }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1.4rem 1.35rem; }
.panel--fill { background: var(--surface); border-color: var(--line); }
.panel--dark { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--on-dark); }
.panel--dark .h-sm, .panel--dark h3 { color: #fff; }

/* ---------- hexagon tick lists ---------- */
.ticks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.3rem; font-size: .9375rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 8px; height: 9px;
  background: var(--lime); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.panel--dark .ticks li { color: var(--on-dark-2); }
.ticks--tight li { font-size: .875rem; }

/* ---------- discipline entry ---------- */
.disc { border-top: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem); scroll-margin-top: 90px; }
.disc:first-of-type { border-top: 0; }
.disc__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.disc__code {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; color: var(--lime-text);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem .5rem; flex: none;
}
.disc__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: auto; }
.disc__body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .disc__body { grid-template-columns: 1fr; } .disc__tag { margin-left: 0; width: 100%; } }
.disc__note {
  margin-top: 1rem; font-size: .8125rem; color: var(--ink-2); font-style: italic;
  border-left: 2px solid var(--line); padding-left: .85rem;
}

/* ---------- index list (services overview) ---------- */
.index { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.index a {
  display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: 1rem;
  padding: .95rem 1.1rem; text-decoration: none; border-top: 1px solid var(--line-soft);
  transition: background .14s ease;
}
.index a:first-child { border-top: 0; }
.index a:hover { background: var(--surface); }
.index__code { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-3); }
.index__name { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.index__tag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 720px) { .index a { grid-template-columns: 3.5rem 1fr; } .index__tag { display: none; } }

/* ---------- numbered process ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.step { background: var(--paper); padding: 1.35rem 1.2rem; }
.step__n { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--lime-text); }
.step h3 { margin: .55rem 0 .4rem; }
.step p { margin: 0; font-size: .875rem; color: var(--ink-2); }
.step__out { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.flow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.flow li {
  list-style: none; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; color: var(--ink-2);
  display: flex; gap: .5rem; align-items: baseline;
}
.flow li span { color: var(--lime-text); }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; margin-top: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .875rem; }
th, td { text-align: left; padding: .7rem .9rem; border-top: 1px solid var(--line-soft); }
thead th { background: var(--teal-deep); color: #fff; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; border-top: 0; }
thead th:not(:first-child), tbody td:not(:first-child) { text-align: center; width: 8.5rem; }
tbody tr:nth-child(even) { background: var(--surface); }
tbody td:first-child { font-weight: 500; }
.yes { color: var(--lime-text); font-weight: 600; }
.no { color: var(--ink-3); }
.opt { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); }

/* ---------- project ---------- */
.project { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); scroll-margin-top: 90px; }
.project__bar { background: var(--teal-deep); color: #fff; padding: .95rem 1.25rem; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.project__ref { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--lime); border: 1px solid rgba(164,214,94,.45); padding: .18rem .45rem; border-radius: var(--radius); }
.project__bar h3 { font-size: 1.0625rem; color: #fff; }
.project__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; }
.project__main { padding: 1.35rem 1.25rem; }
.project__shots { display: grid; grid-template-rows: auto auto; align-content: start; gap: 1px; background: var(--line); border-left: 1px solid var(--line); }
.project__shots img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
@media (max-width: 820px) {
  .project__body { grid-template-columns: 1fr; }
  .project__shots { grid-template-rows: none; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px solid var(--line); }
}
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 1.2rem; }
.meta div { background: var(--paper); padding: .6rem .75rem; }
.meta dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.meta dd { margin: .2rem 0 0; font-size: .875rem; font-weight: 500; }
.field { margin-top: 1rem; }
.field__l { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.field p { margin-top: .3rem; font-size: .9375rem; color: var(--ink-2); max-width: none; }
@media (max-width: 560px) { .meta { grid-template-columns: repeat(2, 1fr); } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }
.ccard {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem;
  background: var(--paper); transition: border-color .15s ease, background .15s ease;
}
.ccard:hover { border-color: var(--teal); background: var(--surface); }
.ccard__l { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.ccard__v { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; word-break: break-word; }

/* ---------- band / cta ---------- */
.band { background: var(--teal-deep); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; grid-template-columns: 1.4fr auto; gap: 1.6rem; align-items: center; }
.band h2 { color: #fff; max-width: 20ch; }
.band p { color: var(--on-dark-2); margin-top: .6rem; }
@media (max-width: 780px) { .band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--teal-deep); color: var(--on-dark-2); padding-block: 3rem 2rem; margin-top: 0; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot img.logo { height: 34px; width: auto; margin-bottom: 1rem; }
.foot h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); font-weight: 500; margin-bottom: .8rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { color: var(--on-dark-2); text-decoration: none; font-size: .9rem; }
.foot a:hover { color: #fff; }
.foot__bar { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(234,242,243,.14); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =====================================================================
   Services page — image-led layout
   ===================================================================== */

/* split page header with a photograph */
.pagehead--split { padding-block: 0; }
.pagehead__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.pagehead__fig { margin: 0; }
.pagehead__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); max-height: 400px; }
@media (max-width: 860px) {
  .pagehead__in { grid-template-columns: 1fr; }
  .pagehead__fig { order: -1; }
  .pagehead__fig img { max-height: 220px; aspect-ratio: 16 / 9; }
}

/* sticky jump-to-discipline bar */
.chipnav { position: sticky; top: 68px; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.chipnav__in { display: flex; flex-wrap: wrap; gap: .4rem; padding-block: .7rem; }
@media (max-width: 900px) { .chipnav__in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } }
.chip {
  flex: none; display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none;
  font-family: var(--f-body); font-size: .8125rem; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip span { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .08em; color: var(--lime-text); }
.chip:hover { border-color: var(--teal); color: var(--ink); background: var(--surface); }
@media (max-width: 900px) { .chipnav { top: 60px; } }

/* on-site photo strip */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin-top: 1.2rem; }
.strip__i { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.strip__i img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease; }
.strip__i:hover img { transform: scale(1.04); }
.strip__i figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem .8rem .75rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; line-height: 1.4; color: #fff;
  background: linear-gradient(to top, rgba(9,26,32,.9), rgba(9,26,32,0));
}
@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .strip__i { scroll-snap-align: start; }
}
@media (min-width: 901px) and (max-width: 1100px) { .strip__i:nth-child(5) { display: none; } .strip { grid-template-columns: repeat(4, 1fr); } }

/* discipline row: visual + spec, alternating sides */
.drow { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; scroll-margin-top: 130px; }
.drow:nth-child(even) .drow__fig { order: 2; }
.drow__fig { margin: 0; }
.drow__fig > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.drow__fig figcaption {
  margin-top: .6rem; display: flex; gap: .55rem; align-items: baseline;
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .05em; line-height: 1.45;
  text-transform: uppercase; color: var(--ink-3);
}
.drow__code { color: var(--lime-text); flex: none; }
.drow__head { display: block; }
.drow__tag { display: block; margin-top: .4rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.drow__intro { margin: .7rem 0 0; font-size: 1rem; color: var(--ink-2); max-width: 60ch; }
.dspec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.6rem; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.dspec__h { font-family: var(--f-mono); font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.dspec .ticks { margin-top: .7rem; gap: .42rem; }
.dspec .ticks li { font-size: .85rem; line-height: 1.45; }
@media (max-width: 900px) {
  .drow { grid-template-columns: 1fr; }
  .drow:nth-child(even) .drow__fig { order: 0; }
  .drow__fig > img { max-height: 240px; }
}
@media (max-width: 560px) { .dspec { grid-template-columns: 1fr; } }

/* branded plate for disciplines with no photograph yet */
.plate {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--teal-deep); display: grid; place-items: center;
}
.plate__hex { position: absolute; background: rgba(164, 214, 94, .09); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.plate__hex--a { width: 58%; aspect-ratio: 1 / 1.15; right: -12%; top: -18%; }
.plate__hex--b { width: 34%; aspect-ratio: 1 / 1.15; left: -8%; bottom: -12%; background: rgba(164, 214, 94, .06); }
.plate__hex--c { width: 20%; aspect-ratio: 1 / 1.15; left: 16%; top: 14%; background: rgba(234, 242, 243, .07); }
.plate__icon { width: 25%; max-width: 84px; opacity: .95; position: relative; }
.plate__code {
  position: absolute; left: 1rem; bottom: .85rem; font-family: var(--f-mono);
  font-size: .7rem; letter-spacing: .14em; color: rgba(164, 214, 94, .8);
}

/* index rows carry a thumbnail of the discipline */
.index a { grid-template-columns: 68px 4.5rem 1fr auto; }
.index__thumb { width: 68px; height: 48px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.index__thumb--diagram { object-fit: contain; background: #0F323C; padding: 3px; }
@media (max-width: 720px) {
  .index a { grid-template-columns: 54px 1fr; gap: .8rem; }
  .index__thumb { width: 54px; height: 40px; }
  .index__code { display: none; }
}

/* three-across photo band */
.band3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.band3 figure { margin: 0; }
.band3 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.band3 figcaption {
  margin-top: .5rem; font-family: var(--f-mono); font-size: .65rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 700px) { .band3 { grid-template-columns: 1fr 1fr; } .band3 figure:last-child { display: none; } }
