/* ==========================================================================
   ENGIA Green LLC — construction management, Tbilisi
   Hand-written. No framework, no build step, no third-party requests.

   Palette is taken from the ENGIA Green logo (Revision B), sampled from the
   original artwork and checked for contrast:

     ink      #25404A   the logo's slate navy — text, nav bar, footer, linework
     paper    #F0F2EE   cool off-white, so the logo's white disc sits cleanly
     green    #7AAB5E   the leaf — FILLS ONLY (chart bars, tints). At 2.4:1 it
                        is too light for text.
     green-d  #3D6B2B   the leaf, darkened for text and links (5.6:1 on paper)
     pale     #A8D5DD   the blades and wave — remaining time on the programme
     hivis    #F6E46A   the sun — reserved for "now": the today line on the
                        programme and the current page in the nav. It only
                        ever means "now".
     amber    #9A6200   status only: awaiting a third party (5.1:1 on white)

   Change a value in :root and the whole site follows.
   ========================================================================== */

/* ------------------------------------------------------------- fonts --
   Self-hosted, subset to Latin. No Google Fonts request, no tracking.
   Space Grotesk and IBM Plex are both SIL Open Font Licence 1.1 —
   see assets/fonts/OFL-*.txt.
   ---------------------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk"; src: url("fonts/grotesk-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Sans"; src: url("fonts/plexsans-var.woff2") format("woff2");
  font-weight: 300 700; font-stretch: 85% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------- tokens -- */
:root {
  --ink:      #25404A;
  --ink-2:    #4F6770;
  --paper:    #F0F2EE;
  --paper-2:  #E3E8E3;
  --card:     #FFFFFF;
  --green:    #7AAB5E;
  --green-d:  #3D6B2B;
  --pale:     #A8D5DD;
  --hivis:    #F6E46A;
  --amber:    #9A6200;
  --cream:    #F3F1EA;

  --rule:     rgba(37, 64, 74, .16);
  --rule-2:   rgba(37, 64, 74, .30);
  --rule-inv: rgba(243, 241, 234, .22);

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gut:  clamp(1.25rem, 4vw, 3rem);
}

/* ------------------------------------------------------------- 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; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--green-d); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper); padding: .8rem 1.2rem;
  font: 500 .875rem var(--mono);
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ layout -- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--dark { background: var(--ink); color: var(--paper); border-top: 0; }
.section--dark a { color: var(--hivis); }
.section--dark a:hover { color: #fff; }
.section--dark .eyebrow { color: var(--hivis); }
.section--dark .lede { color: rgba(243, 241, 234, .82); }

.cols { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); }
@media (min-width: 860px) {
  .cols--2    { grid-template-columns: 1fr 1fr; }
  .cols--side { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .cols--3    { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------- type -- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.3rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); line-height: 1.1;  letter-spacing: -.028em; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.22; letter-spacing: -.018em; }
h4 { font-size: 1.02rem; line-height: 1.3; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-d); margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.small { font-size: .9rem; color: var(--ink-2); }
.mono  { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- header -- */
/* The logo is the focal point: full colour, centred, on white — the ground
   it was drawn for. The nav sits beneath it on a navy bar. */
.site-head { background: var(--card); color: var(--ink); }
.site-head__brand { display: flex; justify-content: center; padding: clamp(1.1rem, 2.6vw, 1.8rem) var(--gut) clamp(.9rem, 2vw, 1.4rem); }
.brand { display: inline-block; text-decoration: none; line-height: 0; }
.brand img { height: clamp(150px, 23vh, 220px); max-height: 44vw; width: auto; }
/* Homepage: sized to screen height (about 210px on a laptop), matching the
   inner pages; capped by width on phones. Chosen 25 Sep 2026. */
.site-head--home .site-head__brand { padding-block: clamp(1.5rem, 4vh, 3rem); }
.site-head--home .brand img { height: clamp(150px, 23vh, 220px); max-height: 44vw; }
/* Phones: a compact header, so the headline starts on the first screen. */
@media (max-width: 600px) {
  .site-head__brand, .site-head--home .site-head__brand { padding-block: .9rem .75rem; }
  .brand img, .site-head--home .brand img { height: 112px; max-height: none; }
}

.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.9rem, 3vw, 2.1rem);
  background: var(--ink); padding: .85rem var(--gut);
}
.nav a {
  font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(243, 241, 234, .72); text-decoration: none; padding-block: .2rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--rule-inv); }
.nav a[aria-current="page"] { color: var(--hivis); border-bottom-color: var(--hivis); }

/* --------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/setting-out.svg") center / cover no-repeat;
  opacity: .30;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }

/* title-block status strip — reads like the header of a drawing sheet */
.strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--rule-2); background: rgba(255, 255, 255, .72);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip > div { padding: .95rem 1.15rem; border-top: 1px solid var(--rule); }
.strip > div:first-child { border-top: 0; }
@media (min-width: 760px) {
  .strip > div { border-top: 0; border-left: 1px solid var(--rule); }
  .strip > div:first-child { border-left: 0; }
}
.strip dt {
  font: 500 .68rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: .45rem;
}
.strip dd { margin: 0; font: 600 1.28rem/1.1 var(--display); letter-spacing: -.02em; }
.strip dd small { display: block; font: 400 .82rem/1.4 var(--body); color: var(--ink-2); letter-spacing: 0; margin-top: .3rem; }

/* --------------------------------------------------------------- bits -- */
.btn {
  display: inline-block; font: 500 .82rem/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.5rem; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--fill { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.btn--fill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .6rem; border: 1px solid var(--rule-2); color: var(--ink-2);
}
.tag::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.tag--live   { color: var(--green-d); border-color: var(--green); background: rgba(122, 171, 94, .08); }
.tag--soon   { color: var(--ink-2); }
.tag--tbc    { color: var(--amber); border-color: rgba(154, 98, 0, .5); }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--rule); padding: clamp(1.3rem, 3vw, 1.9rem);
}
.card h3 { margin-bottom: .35rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* definition rows inside a card */
.dl { display: grid; gap: .55rem .9rem; margin: 1.1rem 0 0; font-size: .9rem; }
@media (min-width: 520px) { .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl > div { border-top: 1px solid var(--rule); padding-top: .5rem; }
.dl dt { font: 500 .68rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.dl dd { margin: .28rem 0 0; }

/* numbered method steps — the sequence is real, so the numbers carry meaning */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 2rem; }
.step {
  counter-increment: step;
  display: grid; gap: .35rem 1.4rem; grid-template-columns: auto 1fr;
  padding: 1.4rem 0; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font: 500 .85rem/1 var(--mono); color: var(--green-d);
  padding-top: .45rem; letter-spacing: .06em;
}
.step h3 { margin: 0; }
.step p  { margin: 0; }

/* tables */
.tbl-scroll { overflow-x: auto; margin-top: 1.8rem; border: 1px solid var(--rule); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .9rem; }
th, td { text-align: left; padding: .78rem .95rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  font: 500 .68rem/1.2 var(--mono); letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-2); background: var(--paper-2); border-bottom: 1px solid var(--rule-2);
  position: sticky; top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.who { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; }
.who--e { color: var(--green-d); background: rgba(122, 171, 94, .07); }
thead th.is-us { background: rgba(122, 171, 94, .13); color: var(--green-d); }
.who--o { color: var(--ink-2); }
.who--n { color: rgba(37, 64, 74, .32); }

/* ------------------------------------------------------- programme -- */
.prog { margin-top: 2rem; border: 1px solid var(--rule-2); background: var(--card); }
.prog__scroll { overflow-x: auto; }
.prog svg { min-width: 780px; display: block; }
.prog__hint {
  display: none; padding: .6rem 1.15rem 0; font: 400 .74rem/1 var(--mono);
  color: var(--ink-2); letter-spacing: .05em;
}
@media (max-width: 820px) { .prog__hint { display: block; } }
.prog__key {
  display: flex; flex-wrap: wrap; gap: 1.4rem; padding: .85rem 1.15rem;
  border-top: 1px solid var(--rule); font: 400 .78rem/1 var(--mono); color: var(--ink-2);
}
.prog__key span { display: inline-flex; align-items: center; gap: .45rem; }
.prog__key i { width: 22px; height: 9px; display: inline-block; }

/* --------------------------------------------------------- callouts -- */
.note {
  border-left: 3px solid var(--green); background: rgba(122, 171, 94, .06);
  padding: 1.1rem 1.3rem; margin: 1.8rem 0 0;
}
.note p { max-width: 62ch; }
.note--dark { border-left-color: var(--hivis); background: rgba(246, 228, 106, .1); }

/* ---------------------------------------------------- contact asks -- */
/* The five facts an enquiry should carry. Each row is a label and a line,
   laid out like the fields of a transmittal sheet. */
.asks { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--rule-2); }
.asks li {
  display: grid; grid-template-columns: 1fr; gap: .2rem;
  padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem;
}
@media (min-width: 520px) { .asks li { grid-template-columns: 8.5rem 1fr; gap: 1rem; } }
.asks b {
  font: 500 .7rem/1.9 var(--mono); letter-spacing: .11em; text-transform: uppercase;
  color: var(--green-d);
}

/* ------------------------------------------------------------ footer -- */
.site-foot { background: var(--ink); color: rgba(243, 241, 234, .78); padding-block: clamp(2.75rem, 5vw, 4rem) 0; }
.site-foot a { color: rgba(243, 241, 234, .78); text-decoration: none; }
.site-foot a:hover { color: var(--hivis); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.site-foot h4 {
  font: 500 .68rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--hivis); margin: 0 0 .9rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.site-foot .brand img { height: 112px; }
.site-foot p { font-size: .92rem; max-width: 40ch; }

/* document-control block — a real title block, not decoration */
.titleblock {
  margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule-inv);
  display: grid; grid-template-columns: repeat(2, 1fr);
  font: 400 .7rem/1.3 var(--mono); color: rgba(243, 241, 234, .55);
}
@media (min-width: 700px) { .titleblock { grid-template-columns: repeat(4, 1fr); } }
.titleblock > div { padding: .85rem 1rem .85rem 0; border-right: 1px solid var(--rule-inv); }
.titleblock > div:last-child { border-right: 0; }
.titleblock b { display: block; color: rgba(243, 241, 234, .35); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .64rem; margin-bottom: .3rem; }
.colophon { padding: 1rem 0 1.6rem; font-size: .78rem; color: rgba(243, 241, 234, .45); max-width: none; }

/* -------------------------------------------------------------- print -- */
@media print {
  .site-head, .nav, .btns, .skip, form { display: none !important; }
  .hero::before { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .section--dark, .site-foot { background: #fff !important; color: #000 !important; }
  .section--dark .eyebrow, .site-foot h4 { color: #000 !important; }
  .site-foot a, .titleblock, .colophon { color: #000 !important; }
  .card, .prog, .tbl-scroll { break-inside: avoid; border-color: #999; }
  .section { padding-block: 1.2rem; border-top: 1px solid #ccc; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .prog svg { min-width: 0; width: 100%; }
}
