/* ==========================================================================
   NEXT Energy — nextenergy.ge
   Palette sampled directly from the supplied logo file.
   ========================================================================== */

/* ------------------------------------------------------------- fonts --
   Self-hosted, subset to Latin. No third-party requests, no tracking.
   Archivo and IBM Plex are both SIL Open Font Licence 1.1 — see
   assets/fonts/OFL-*.txt.                                              */
@font-face {
  font-family: "Archivo"; font-style: normal;
  font-weight: 400 800; font-stretch: 62% 125%;
  font-display: swap; src: url("fonts/archivo-var.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal;
  font-weight: 400 600; font-stretch: 85% 100%;
  font-display: swap; src: url("fonts/plexsans-var.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/plexmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("fonts/plexmono-500.woff2") format("woff2");
}

:root {
  /* Brand — measured from the logo PNG */
  --orange:      #F78024;   /* the turbine and the ENERGY wordmark */
  --blue:        #29ABE2;   /* the wind swirls */
  --brand-grey:  #807F84;   /* the "next" wordmark */

  /* Accessible derivatives (the brand values fail contrast as text) */
  --orange-text: #B65809;
  --blue-text:   #0B6E9B;

  /* Ground */
  --ink:      #10232E;
  --ink-2:    #1A3243;
  --ink-3:    #24455A;
  --paper:    #F5F7F8;
  --surface:  #FFFFFF;

  /* Type colour */
  --text:     #1F2C35;
  --muted:    #5B6B75;
  --on-ink:   #E8EEF1;
  --on-ink-m: #9FB4C0;
  --on-ink-lede: #EFF5F8;   /* text sits on a cleared patch of sky, so it can run bright */

  --rule:     #DBE2E6;
  --rule-ink: #2C4C61;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;

  --r: 3px;
  --shadow: 0 1px 2px rgba(16,35,46,.06), 0 8px 24px -12px rgba(16,35,46,.18);
}

/* --------------------------------------------------------------- reset -- */
*, *::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: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ---------------------------------------------------------------- type -- */
h1, h2, h3, h4, .display {
  font-family: "Archivo", "Arial Narrow", system-ui, sans-serif;
  font-variation-settings: "wdth" 104, "wght" 680;
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(1.6rem, 3.96vw, 2.96rem); font-variation-settings: "wdth" 110, "wght" 700; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.2rem, 2.72vw, 2.08rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-variation-settings: "wdth" 100, "wght" 680; line-height: 1.25; }
p  { margin: 0 0 1.05em; max-width: var(--measure); }
strong { font-weight: 600; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--orange); flex: none;
}
.on-ink .eyebrow { color: var(--orange); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--muted); line-height: 1.5; }
.on-ink .lede, .hero .lede { color: var(--on-ink-lede); }
.num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- layout -- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.on-ink { background: var(--ink); color: var(--on-ink); position: relative; }
.on-ink > .wrap { position: relative; z-index: 1; }
.starry::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("img/stars-fine.svg");
  background-size: 1600px 1100px; background-position: 120px 40px; opacity: .8;
}
.on-ink h1, .on-ink h2, .on-ink h3 { color: #fff; }
.on-ink a { color: #7FD2F5; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.cols { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
/* grid items default to min-width:auto, which lets a wide table push the whole
   page sideways instead of scrolling inside its own container */
.cols > * { min-width: 0; }
@media (min-width: 860px) {
  .cols--2 { grid-template-columns: 1fr 1fr; }
  .cols--side { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
}

/* ----------------------------------------------------------- nav/foot -- */
.site-head {
  background: var(--ink);
  border-bottom: 1px solid var(--rule-ink);
  position: relative; z-index: 50; overflow: hidden;
}
.site-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("img/stars-fine.svg");
  background-size: 1600px 1100px; opacity: .5; pointer-events: none;
}
.site-head__in {
  max-width: var(--max); margin-inline: auto; padding: 1.5rem var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.15rem;
  position: relative; z-index: 1;
}
.brand { display: block; }
.brand img { height: clamp(50px, 6.4vw, 92px); width: auto; transition: opacity .15s; }
.brand:hover img { opacity: .85; }
.nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(.9rem, 2.4vw, 2.25rem); align-items: center;
  width: 100%; border-top: 1px solid rgba(44,76,97,.6); padding: .8rem 0 .55rem;
}
.nav a {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 106, "wght" 560;
  font-size: .95rem; color: var(--on-ink); text-decoration: none;
  padding: .2rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--orange); }
@media (max-width: 560px) {
  .site-head__in { padding-top: 1.15rem; gap: .9rem; }
  .brand img { height: 50px; }
  .nav { gap: .55rem .95rem; padding: .7rem 0 .5rem; }
  .nav a { font-size: .84rem; font-variation-settings: "wdth" 94, "wght" 560; }
}

.site-foot { background: var(--ink); color: var(--on-ink-m); font-size: .92rem; position: relative; overflow: hidden; }
.site-foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("img/stars-fine.svg");
  background-size: 1600px 1100px; background-position: 60px 320px; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}
.site-foot .wrap { position: relative; z-index: 1; }
.site-foot .wrap { padding-block: 3rem 2rem; }
.site-foot img { height: 34px; margin-bottom: 1.25rem; }
.site-foot a { color: #7FD2F5; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid h4 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace; font-variation-settings: normal;
  color: var(--on-ink); margin-bottom: .8rem; font-weight: 500;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.colophon { border-top: 1px solid var(--rule-ink); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; }

/* -------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 104, "wght" 620;
  font-size: .95rem; letter-spacing: .005em; text-decoration: none; padding: .72rem 1.35rem;
  border-radius: var(--r); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn.btn--primary { background: var(--orange); color: #1C1005; border-color: var(--orange); }
.btn.btn--primary:hover { background: #FF9440; border-color: #FF9440; color: #1C1005; }
.btn.btn--ghost { border-color: var(--rule-ink); color: var(--on-ink); }
.btn.btn--ghost:hover { border-color: var(--orange); color: #fff; }
.btn.btn--line { border-color: var(--rule); color: var(--text); background: var(--surface); }
.btn.btn--line:hover { border-color: var(--orange); color: var(--orange-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------------------------------------------------------------- hero -- */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("img/stars-bright.svg"), url("img/stars-fine.svg");
  background-size: 1100px 800px, 1600px 1100px;
  background-position: 0 0, 240px 90px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: -30% -25% -55% 25%;
  background:
    radial-gradient(closest-side at 72% 34%, rgba(41,171,226,.22), transparent 70%),
    radial-gradient(closest-side at 34% 78%, rgba(247,128,36,.11), transparent 68%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.25rem, 7vw, 5.25rem) clamp(2.5rem, 5vw, 4rem); }
/* the stars are atmosphere, not a texture to read through: clear a soft patch of
   sky behind the hero copy so the lede sits on flat ink */
.hero .wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -3rem -2rem;
  background: radial-gradient(ellipse 74% 88% at 26% 46%,
              var(--ink) 0%, var(--ink) 46%, rgba(16,35,46,0) 84%);
}
@media (max-width: 760px) {
  .hero .wrap::before {
    inset: -2rem -1.5rem;
    background: radial-gradient(ellipse 128% 74% at 50% 40%,
                var(--ink) 0%, var(--ink) 54%, rgba(16,35,46,0) 90%);
  }
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { max-width: 52ch; margin-top: 1.5rem; }

.tally { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2.5rem; }
.tally div { min-width: 7rem; }
.tally .n {
  font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 100, "wght" 720;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.tally .n span { font-size: .42em; color: var(--orange); margin-left: .2em; font-variation-settings: "wdth" 104, "wght" 580; }
.tally .k {
  font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-ink-m); margin-top: .55rem; display: block;
}

/* ------------------------------------------------------------ gatechart --
   The signature element: every project plotted against the development
   ladder. Technology sets the colour; the marker sits at the last gate
   actually cleared.                                                       */
.gate { margin-top: clamp(2.5rem, 6vw, 4rem); }
.gate__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.gate__key { display: flex; gap: 1.25rem; font-size: .78rem; color: var(--on-ink-m); font-family: "IBM Plex Mono", monospace; }
.gate__key i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.gate__key .solar i { background: var(--orange); }
.gate__key .wind  i { background: var(--blue); }

.gate__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.gate__grid { min-width: 640px; }

.gate__axis {
  display: grid; grid-template-columns: 12.5rem repeat(7, 1fr);
  gap: 0; align-items: end; padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule-ink);
}
.gate__axis span {
  font-family: "IBM Plex Mono", monospace; font-size: .625rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-ink-m); text-align: center; line-height: 1.25;
}
.gate__axis span:first-child { text-align: left; }

.gate__row {
  display: grid; grid-template-columns: 12.5rem repeat(7, 1fr);
  align-items: center; padding-block: .55rem;
  border-bottom: 1px solid rgba(44,76,97,.55);
  position: relative;
}
.gate__row:hover { background: rgba(41,171,226,.06); }
.gate__name {
  padding-right: 1rem; line-height: 1.25;
  font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 100, "wght" 580;
  font-size: .93rem; color: #fff;
}
.gate__name b {
  display: block; font-family: "IBM Plex Mono", monospace; font-size: .68rem;
  font-weight: 500; color: var(--on-ink-m); letter-spacing: .04em; margin-top: .2rem;
}
.gate__cell { height: 100%; position: relative; }
.gate__cell::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; transform: translateY(-50%); background: rgba(159,180,192,.16);
}
.gate__cell.on::before { background: var(--tone); }
.gate__cell.tip::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: var(--tone); box-shadow: 0 0 0 4px rgba(16,35,46,1), 0 0 0 5.5px var(--tone);
}
.gate__row.solar { --tone: var(--orange); }
.gate__row.wind  { --tone: var(--blue); }
.gate__note {
  font-family: "IBM Plex Mono", monospace; font-size: .68rem; color: var(--on-ink-m);
  padding-top: .55rem; padding-left: 12.5rem;
}
@media (max-width: 700px) {
  .gate__axis, .gate__row { grid-template-columns: 9.5rem repeat(7, 1fr); }
  .gate__note { padding-left: 9.5rem; }
}

/* --------------------------------------------------------------- cards -- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }
.card__n {
  font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--orange-text);
  letter-spacing: .1em; display: block; margin-bottom: .8rem;
}

/* --------------------------------------------------------- project list -- */
.proj {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 1.25rem; overflow: hidden;
}
.proj__bar { height: 4px; background: var(--tone); }
.proj.solar { --tone: var(--orange); }
.proj.wind  { --tone: var(--blue); }
.proj__in { padding: 1.6rem clamp(1.25rem, 3vw, 2rem) 1.75rem; }
.proj__top { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: baseline; margin-bottom: .35rem; }
.proj__top h3 { flex: 1 1 16rem; }
.proj__cap {
  font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 98, "wght" 720;
  font-size: 1.55rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.proj__cap span { font-size: .55em; color: var(--muted); margin-left: .25em; font-variation-settings: "wdth" 104, "wght" 580; }
.proj__tag {
  font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .2rem .55rem; border-radius: 2px;
  background: color-mix(in srgb, var(--tone) 15%, transparent);
  color: color-mix(in srgb, var(--tone) 70%, #000);
  white-space: nowrap;
}
.proj dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1rem 1.5rem; margin: 1.4rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--rule);
}
.proj dt {
  font-family: "IBM Plex Mono", monospace; font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem;
}
.proj dd { margin: 0; font-size: .93rem; font-weight: 500; line-height: 1.35; }

/* --------------------------------------------------------------- table -- */
.tbl-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
table.data { border-collapse: collapse; width: 100%; min-width: 780px; font-size: .9rem; background: var(--surface); }
table.data th, table.data td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data thead th {
  font-family: "IBM Plex Mono", monospace; font-size: .66rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  border-bottom: 1.5px solid var(--text); white-space: nowrap;
}
table.data tbody tr:hover { background: #FAFCFD; }
table.data td.n { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .t-solar, table.data .t-wind { font-weight: 600; }
table.data .t-solar { color: var(--orange-text); }
table.data .t-wind  { color: var(--blue-text); }

/* --------------------------------------------------------------- steps -- */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 1.75rem 3.4rem; border-left: 1.5px solid var(--rule); margin-left: 1rem; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: -1rem; top: -.15rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: "IBM Plex Mono", monospace; font-size: .68rem; font-weight: 500;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { margin-bottom: 0; }

/* ---------------------------------------------------------------- misc -- */
.partners { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.partners li {
  font-family: "IBM Plex Mono", monospace; font-size: .78rem;
  border: 1px solid var(--rule-ink); border-radius: 2px; padding: .45rem .8rem; color: var(--on-ink);
}
.callout {
  border-left: 3px solid var(--orange); background: var(--surface);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow);
}
.callout p:last-child { margin-bottom: 0; }
.qa { margin: 0; }
.qa dt { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 102, "wght" 680; font-size: 1.08rem; margin-top: 2rem; }
.qa dd { margin: .5rem 0 0; }
.qa dd p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- form -- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field label {
  display: block; font-family: "IBM Plex Mono", monospace; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text);
  padding: .7rem .85rem; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(247,128,36,.18); }
.field textarea { min-height: 8rem; resize: vertical; }

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

.skip {
  position: absolute; left: -9999px; background: var(--orange); color: #23130A;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; position: fixed; }

/* right-edge hint that a container scrolls sideways */
.gate__scroll, .tbl-scroll { position: relative; scrollbar-width: thin; }
@media (max-width: 860px) {
  .tbl-scroll { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
                        mask-image: linear-gradient(to right, #000 88%, transparent 100%); }
}

/* ---------------------------------------------------------------- print --
   Partners print the pipeline page and take it into a meeting. Make that
   produce something presentable rather than a dark rectangle.             */
@media print {
  :root { --paper: #fff; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .site-head, .site-foot, .btn-row, .skip, .gate__key, .nav, .gate__note { display: none !important; }
  .hero, .on-ink, .hero::after { background: #fff !important; color: #000 !important; }
  .hero h1, .on-ink h1, .on-ink h2, .on-ink h3 { color: #000 !important; }
  .hero::after { display: none; }
  .lede, .on-ink .lede { color: #333 !important; }
  .section, .section--tight, .hero .wrap { padding-block: 1.2rem; }
  .card, .proj, .callout, table.data { box-shadow: none; break-inside: avoid; }
  .proj { border: 1px solid #999; }
  .tbl-scroll, .gate__scroll { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  table.data { min-width: 0; }
  .gate__grid { min-width: 0; }
  .gate__axis span, .gate__name, .gate__name b, .gate__note { color: #000 !important; }
  .gate__axis { border-bottom-color: #000; }
  .gate__row { border-bottom-color: #bbb; }
  .gate__cell::before { background: #ddd; }
  .gate__cell.tip::after { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--tone); }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 24pt; }
  h2 { font-size: 15pt; }
  .proj, .card { page-break-inside: avoid; }
}

/* co-located projects sharing one grid connection */
.gate__group {
  position: relative;
  background: rgba(247,128,36,.045);
  box-shadow: inset 2px 0 0 var(--orange);
  margin-block: .35rem;
}
.gate__group .gate__name { padding-left: .7rem; }
.gate__group .gate__row:last-of-type { border-bottom-color: transparent; }
.gate__cap {
  margin: 0; padding: .1rem 0 .5rem 13.2rem;
  font-family: "IBM Plex Mono", monospace; font-size: .66rem;
  letter-spacing: .03em; color: var(--orange);
}
@media (max-width: 700px) { .gate__cap { padding-left: 10.2rem; } }
@media print {
  .gate__group { background: none; box-shadow: inset 2px 0 0 #666; }
  .gate__cap { color: #000 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .starry::before, .site-foot::before, .site-head::before { animation: none; }
}
@media print {
  .hero::before, .starry::before, .site-foot::before, .site-head::before, .hero::after { display: none !important; }
}

/* ------------------------------------------------------- project media -- */
.proj-list { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1000px) { .proj-list { grid-template-columns: 1fr 1fr; } }
.proj-list .proj { margin-bottom: 0; }
.proj__media {
  position: relative; margin: 0; background: var(--ink); overflow: hidden;
  aspect-ratio: 16 / 9;
}
.proj__media img, .proj__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.proj__badge {
  position: absolute; left: .6rem; bottom: .6rem; z-index: 2;
  font-family: "IBM Plex Mono", monospace; font-size: .62rem;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(16,35,46,.82); color: #E8EEF1;
  padding: .28rem .55rem; border-radius: 2px; backdrop-filter: blur(3px);
}
.cols--side .proj__media { aspect-ratio: 16 / 9; min-height: 0; }
@media print {
  .proj-list { grid-template-columns: 1fr; }
  .proj__media { display: none; }
}

/* --------------------------------------------------------- delivery -- */
.delivery { margin-top: 2.25rem; display: grid; gap: 1.1rem; }
@media (min-width: 780px) { .delivery { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.delivery__item {
  margin: 0; max-width: none; padding-left: 1.05rem;
  border-left: 2px solid var(--tone);
  color: var(--on-ink-lede); font-size: .97rem; line-height: 1.55;
}
.delivery__item b {
  display: block; font-family: "IBM Plex Mono", monospace; font-weight: 500;
  font-size: .66rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--tone); margin-bottom: .5rem;
}
.delivery__item strong { color: #fff; font-weight: 600; }
.delivery--epc { --tone: var(--orange); }
.delivery--cm  { --tone: var(--blue); }

/* ---------------------------------------------------------- form state -- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  max-width: 34rem; margin-bottom: 1.25rem; padding: .85rem 1.1rem;
  border-left: 3px solid var(--blue); background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow); font-size: .95rem;
}
.form-status--ok   { border-left-color: #2E9E5B; }
.form-status--fail { border-left-color: #C2410C; }
.form.is-sending { opacity: .6; pointer-events: none; }
