/* ============================================================
   JASMIN AHMETOVIĆ s.p. — »Tehnični načrt« (blueprint) design
   Static site, no build step. Pairs with css/fonts.css.
   ============================================================ */

:root {
  --paper:      #F1F1EF;
  --paper-2:    #E8E9E7;
  --panel:      #E0E2E1;
  --ink:        #1E2A35;
  --muted:      #5C6B79;
  --cyan:       #33698F;
  --draft:      #3C4C5C;
  --line:       rgba(30, 42, 53, .30);
  --line-faint: rgba(30, 42, 53, .13);
  --grid:       rgba(30, 42, 53, .045);
  --grid-major: rgba(30, 42, 53, .085);
  --amber:      #ED9B00;
  --amber-ink:  #22180A;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Menlo", monospace;
  --frame-gap: 12px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--amber-ink); }

/* ---------- drawing-sheet frame (viewport border) ---------- */

.sheet-frame {
  position: fixed; inset: var(--frame-gap); z-index: 90;
  border: 1px solid var(--line-faint);
  pointer-events: none;
}
.sheet-frame i {
  position: absolute; width: 15px; height: 15px;
}
.sheet-frame i::before, .sheet-frame i::after {
  content: ""; position: absolute; background: var(--line);
}
.sheet-frame i::before { width: 15px; height: 1px; top: 7px; }
.sheet-frame i::after  { width: 1px; height: 15px; left: 7px; }
.sheet-frame .c1 { top: -8px; left: -8px; }
.sheet-frame .c2 { top: -8px; right: -8px; }
.sheet-frame .c3 { bottom: -8px; left: -8px; }
.sheet-frame .c4 { bottom: -8px; right: -8px; }

.wrap { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-faint);
  transition: box-shadow .3s ease;
}
body.scrolled .site-header { box-shadow: 0 8px 30px rgba(20, 32, 44, .10); }

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height .3s ease;
}
body.scrolled .header-row { height: 58px; }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); }
.brand img { width: 42px; height: auto; transition: width .3s ease; }
body.scrolled .brand img { width: 34px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word .b1 {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .22em;
  color: var(--cyan); text-transform: uppercase;
}
.brand-word .b2 {
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: .06em; text-transform: uppercase;
}

.main-nav { display: flex; gap: 1.9rem; }
.main-nav a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  padding: .4rem 0; position: relative;
}
.main-nav a .no { color: var(--line); margin-right: .35em; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.6, 0, .2, 1);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] .no { color: var(--amber); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; padding: .55rem .8rem; cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .95rem 1.5rem; border: 1px solid var(--line);
  color: var(--ink); background: transparent; cursor: pointer;
  position: relative; transition: transform .25s ease, background .25s ease,
    border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(51, 105, 143, .22); border-color: var(--cyan); color: var(--ink); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 500; }
.btn-amber:hover { background: #f7ac1b; border-color: #f7ac1b; color: var(--amber-ink); box-shadow: 4px 4px 0 rgba(237, 155, 0, .28); }

/* ---------- sections & drafting devices ---------- */

.sec { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.sec + .sec { border-top: 1px solid var(--line-faint); }
.sec-tint { background: color-mix(in srgb, var(--paper-2) 62%, transparent); }

.eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 1.3rem;
}
.eyebrow .dim {
  flex: 1 1 3rem; max-width: 9rem; height: 1px; background: var(--line-faint); position: relative;
  transform: scaleX(0); transform-origin: left;
}
.eyebrow .dim:first-child { display: none; }
.eyebrow .dim.grow { flex-grow: 6; max-width: none; }
.eyebrow .tg {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); background: #fff;
  padding: .5rem .85rem; letter-spacing: .18em;
}
.eyebrow .tg::before {
  content: ""; width: 7px; height: 7px; background: var(--amber); flex: 0 0 auto;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1.08; letter-spacing: .015em; }
.sec h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; max-width: 20ch; }
.lead { color: var(--muted); max-width: 62ch; }

/* reveal-on-scroll */
.rv { opacity: 0; transform: translateY(16px); }
.on .rv, .rv.on {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.on .eyebrow .dim, .eyebrow.on .dim, .on.eyebrow .dim {
  transform: scaleX(1);
  transition: transform .8s cubic-bezier(.6, 0, .2, 1) .15s;
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero h1 { font-size: clamp(2.7rem, 6.5vw, 4.9rem); margin: 0 0 1.4rem; }
.hero h1 .dash { color: var(--amber); }
.hero .sub { font-size: 1.06rem; color: var(--muted); max-width: 52ch; margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-note { margin-top: 1.4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.hero-note b { color: var(--cyan); font-weight: 400; }

.schematic { position: relative; }
.schematic svg { width: 100%; height: auto; display: block; }
.schematic .lbl { font-family: var(--mono); font-size: 11px; fill: var(--muted); letter-spacing: .14em; opacity: 0; }
.schematic .lbl-c { fill: var(--cyan); }
.draw .lbl { animation: lblfade .6s ease forwards; animation-delay: var(--ld, 2s); }
@keyframes lblfade { to { opacity: 1; } }

/* line-drawing animation: JS adds .draw to .schematic */
.schematic path.d, .schematic circle.d, .schematic rect.d, .schematic line.d, .schematic polyline.d {
  fill: none; stroke: var(--draft); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.schematic .thin { stroke-width: 1; stroke: var(--line); }
.draw path.d, .draw circle.d, .draw rect.d, .draw line.d, .draw polyline.d {
  stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600);
  animation: drawline 1.4s cubic-bezier(.5, 0, .3, 1) forwards;
  animation-delay: var(--dd, 0s);
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

.drip { fill: var(--amber); opacity: 0; }
.draw .drip { animation: drip 2.6s ease-in infinite; animation-delay: 2.4s; }
@keyframes drip {
  0%   { opacity: 0; transform: translateY(0); }
  12%  { opacity: 1; }
  55%  { opacity: 1; transform: translateY(64px); }
  62%  { opacity: 0; transform: translateY(70px); }
  100% { opacity: 0; transform: translateY(70px); }
}
.puddle { stroke: var(--amber); fill: none; opacity: 0; }
.draw .puddle { animation: puddle 2.6s ease-out infinite; animation-delay: 3.7s; }
@keyframes puddle {
  0% { opacity: 0; transform: scale(.2); }
  12% { opacity: .8; }
  45% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; }
}
.drip, .puddle { transform-box: fill-box; transform-origin: center; }

/* ---------- service cards (DETAJL A–D) ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.6rem; }
.card {
  border: 1px solid var(--line-faint);
  background: linear-gradient(160deg, color-mix(in srgb, var(--panel) 80%, transparent), transparent 70%);
  padding: 1.6rem 1.4rem 1.5rem; position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before, .card::after {
  content: "+"; position: absolute; color: var(--line);
  font-family: var(--mono); font-size: .85rem; line-height: 1;
}
.card::before { top: 6px; left: 8px; }
.card::after { bottom: 6px; right: 8px; }
.card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: 0 18px 40px rgba(20, 32, 44, .12); }
.card .det { font-family: var(--mono); font-size: .68rem; letter-spacing: .22em; color: var(--cyan); display: block; margin-bottom: 1rem; }
.card svg { width: 44px; height: 44px; stroke: var(--amber); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.card h2 { font-size: 1.3rem; letter-spacing: .05em; margin-bottom: .9rem; max-width: none; position: relative; display: inline-block; }
.card h2::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card:hover h2::after { transform: scaleX(1); }
.card ul { list-style: none; }
.card li {
  font-size: .88rem; color: var(--muted); padding: .32rem 0 .32rem 1.1rem; position: relative;
}
.card li::before { content: "›"; position: absolute; left: 2px; color: var(--cyan); font-family: var(--mono); font-weight: 500; }

/* ---------- two-column text blocks ---------- */

.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---------- counters (POPIS KOLIČIN) ---------- */

.tally { border: 1px solid var(--line-faint); margin-top: 2.4rem; }
.tally-cap {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: .8rem 1.4rem; border-bottom: 1px solid var(--line-faint);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.tally-cap b { color: var(--amber); font-weight: 500; }
.tally-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.tally-cell { padding: 2.2rem 1.4rem 2rem; text-align: center; }
.tally-cell + .tally-cell { border-left: 1px solid var(--line-faint); }
.tally-cell .num { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; }
.tally-cell .num sup { color: var(--amber); font-size: .5em; vertical-align: .5em; }
.tally-cell .cap { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .7rem; }

/* ---------- project photos ---------- */

.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.ph {
  border: 1px dashed var(--line); padding: 10px; position: relative;
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  transition: border-color .3s ease, transform .3s ease;
}
.ph:hover { border-color: var(--cyan); transform: translateY(-4px); }
.ph img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.92); transition: filter .3s ease; }
.ph:hover img { filter: saturate(1.05); }
.ph figcaption {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding-top: .7rem; display: flex; justify-content: space-between;
}
.ph figcaption b { color: var(--cyan); font-weight: 400; }
.sec-foot { margin-top: 2.2rem; display: flex; justify-content: center; }

/* ---------- FAQ ---------- */

.faq { margin-top: 2.4rem; border-top: 1px solid var(--line-faint); }
.faq-item { border-bottom: 1px solid var(--line-faint); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: baseline; gap: 1.1rem; text-align: left;
  padding: 1.15rem .2rem; color: var(--ink);
  font-family: var(--body); font-size: 1.02rem; font-weight: 600;
}
.faq-q .idx { font-family: var(--mono); font-size: .72rem; color: var(--cyan); letter-spacing: .1em; flex: 0 0 3.2rem; }
.faq-q .pm { margin-left: auto; font-family: var(--mono); color: var(--amber); flex: 0 0 auto; transition: transform .3s ease; }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .45s cubic-bezier(.4, 0, .2, 1); }
.faq-a p { color: var(--muted); padding: 0 .2rem 1.3rem 4.3rem; max-width: 72ch; }
.faq-q:hover { color: var(--cyan); }

.tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.tags span {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  border: 1px dashed var(--line); color: var(--muted); padding: .45rem .7rem;
}

/* ---------- page hero (subpages) ---------- */

.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.4rem, 5vw, 3.6rem); border-bottom: 1px solid var(--line-faint); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }

/* ---------- O NAS ---------- */

.stamp-wrap { display: flex; justify-content: center; }
.stamp {
  width: clamp(190px, 24vw, 250px); aspect-ratio: 1; border: 2px solid var(--cyan);
  border-radius: 50%; display: grid; place-content: center; text-align: center;
  transform: rotate(-7deg); position: relative; padding: 1rem;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--line);
}
.stamp .big { font-family: var(--display); font-weight: 600; font-size: 4.6rem; line-height: 1; color: var(--amber); }
.stamp .s1, .stamp .s2 { font-family: var(--mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }

.cert-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.4rem; }
.cert {
  background: #fff; border: 1px dashed var(--line); padding: 14px;
  flex: 1 1 180px; max-width: 240px; cursor: zoom-in;
  transition: transform .3s ease, border-color .3s ease;
}
.cert:hover { transform: translateY(-4px); border-color: var(--cyan); }
.cert img { width: 100%; height: 170px; object-fit: contain; }
.cert figcaption { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; text-align: center; padding-top: .6rem; }

.skd { margin-top: 2.2rem; border: 1px solid var(--line-faint); }
.skd a {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--line-faint); color: var(--ink);
  transition: background .25s ease;
}
.skd a:last-child { border-bottom: 0; }
.skd a:hover { background: color-mix(in srgb, var(--panel) 65%, transparent); }
.skd .code { font-family: var(--mono); font-size: .78rem; color: var(--cyan); letter-spacing: .08em; }
.skd .arr { font-family: var(--mono); color: var(--line); transition: color .25s ease, transform .25s ease; }
.skd a:hover .arr { color: var(--amber); transform: translate(2px, -2px); }

/* ---------- GALERIJA ---------- */

.gtabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.gtab {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: .7rem 1.1rem; cursor: pointer; transition: all .25s ease;
}
.gtab .n { color: var(--line); margin-left: .4em; }
.gtab:hover { color: var(--ink); border-color: var(--cyan); }
.gtab[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); color: #fff; font-weight: 500; }
.gtab[aria-selected="true"] .n { color: rgba(255, 255, 255, .75); }

.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.ggrid .ph { padding: 8px; animation: gin .5s ease backwards; animation-delay: calc(var(--i) * .04s); cursor: zoom-in; }
.ggrid .ph img { aspect-ratio: 1 / 1; }
.ggrid .ph[hidden] { display: none; }
@keyframes gin { from { opacity: 0; transform: translateY(14px); } }

/* ---------- lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(238, 238, 236, .95); backdrop-filter: blur(6px);
}
.lb.open { display: grid; place-items: center; animation: lbin .25s ease; }
@keyframes lbin { from { opacity: 0; } }
.lb img { max-width: min(92vw, 1100px); max-height: 82vh; object-fit: contain; border: 1px dashed var(--line); padding: 8px; background: #fff; box-shadow: 0 24px 60px rgba(20, 32, 44, .18); }
.lb .lb-cap {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; color: var(--muted);
}
.lb button {
  position: absolute; background: none; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--mono); font-size: 1rem; width: 46px; height: 46px; cursor: pointer;
  transition: all .2s ease;
}
.lb button:hover { border-color: var(--amber); color: var(--amber); }
.lb .lb-x { top: 24px; right: 24px; }
.lb .lb-p { left: 18px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- KONTAKT ---------- */

.k-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); }

.f-field { margin-bottom: 1.7rem; }
.f-field label {
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: .5rem;
}
.f-field input, .f-field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-family: var(--body); font-size: 1rem; padding: .6rem 2px;
  transition: border-color .3s ease;
}
.f-field textarea { min-height: 130px; resize: vertical; border: 1px solid var(--line); padding: .8rem; margin-top: .2rem; }
.f-field input:focus, .f-field textarea:focus { outline: none; border-color: var(--amber); }
.f-field input::placeholder, .f-field textarea::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.f-note { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--muted); margin-top: 1rem; }

.k-card { border: 1px solid var(--line-faint); }
.k-cell { padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line-faint); }
.k-cell:last-child { border-bottom: 0; }
.k-cell .k-lbl { font-family: var(--mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: .35rem; }
.k-cell .k-val { font-size: 1.02rem; }
.k-cell .k-val a { color: var(--ink); border-bottom: 1px solid var(--line); }
.k-cell .k-val a:hover { color: var(--amber); border-color: var(--amber); }

.map-frame { border: 1px dashed var(--line); padding: 10px; margin-top: 2.4rem; position: relative; }
.map-frame iframe {
  width: 100%; height: 420px; border: 0; display: block;
  filter: grayscale(1) brightness(1.03) contrast(.96);
}
.map-fallback {
  position: absolute; inset: 10px; display: grid; place-content: center; text-align: center;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; color: var(--muted);
  background: var(--paper-2); z-index: -1; line-height: 2;
}

/* ---------- PIŠKOTKI page ---------- */

.prose { max-width: 76ch; }
.prose h2 { font-size: 1.25rem; letter-spacing: .05em; margin: 2.4rem 0 .8rem; max-width: none; }
.prose h2 .no { color: var(--amber); font-family: var(--mono); font-size: .8em; margin-right: .6em; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose ul { list-style: none; margin: .6rem 0 1rem; }
.prose li { color: var(--muted); padding: .25rem 0 .25rem 1.2rem; position: relative; }
.prose li::before { content: "›"; position: absolute; left: 2px; color: var(--cyan); font-family: var(--mono); font-weight: 500; }

/* ---------- footer = title block ---------- */

.site-footer { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); background: var(--paper-2); }
.tblock { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; border-inline: 1px solid var(--line-faint); }
.tb-cell { padding: 1.5rem 1.4rem; border-right: 1px solid var(--line-faint); }
.tb-cell:last-child { border-right: 0; }
.tb-lbl { font-family: var(--mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: .6rem; }
.tb-cell p, .tb-cell a { font-size: .92rem; color: var(--ink); }
.tb-cell a { display: block; border: 0; padding: .1rem 0; }
.tb-cell a:hover { color: var(--amber); }
.tb-cell .tb-big { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.tb-meta { display: grid; gap: .8rem; }
.tb-meta div { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--muted); }
.tb-meta b { color: var(--ink); font-weight: 400; }
.tb-foot {
  border-top: 1px solid var(--line-faint);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--muted);
}
.tb-foot a { color: var(--muted); }
.tb-foot a:hover { color: var(--cyan); }

/* ---------- cookie banner ---------- */

.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--paper); border-top: 2px solid var(--amber);
  box-shadow: 0 -10px 34px rgba(20, 32, 44, .12);
  transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.cookiebar.show { transform: none; }
.cookie-row { display: flex; align-items: center; gap: 1.4rem; padding: 1.1rem 0; flex-wrap: wrap; }
.cookie-row .rev { font-family: var(--mono); font-size: .64rem; letter-spacing: .22em; color: var(--amber); text-transform: uppercase; }
.cookie-row p { font-size: .86rem; color: var(--muted); flex: 1 1 320px; }
.cookie-row p a { border-bottom: 1px solid var(--line); }
.cookie-row .btn { padding: .6rem 1rem; font-size: .68rem; }

/* ---------- mobile ---------- */

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .schematic { max-width: 480px; margin-inline: auto; }
  .split, .k-grid { grid-template-columns: 1fr; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tb-cell:nth-child(2) { border-right: 0; }
}

@media (max-width: 640px) {
  .sheet-frame { display: none; }
  .eyebrow { letter-spacing: .14em; font-size: .66rem; }
  .eyebrow .dim { flex: 1 0 1.6rem; max-width: 3rem; }
  .eyebrow .dim.grow { display: none; }
  .cards { grid-template-columns: 1fr; }
  .ph-grid { grid-template-columns: 1fr; }
  .tally-row { grid-template-columns: 1fr; }
  .tally-cell + .tally-cell { border-left: 0; border-top: 1px solid var(--line-faint); }
  .tblock { grid-template-columns: 1fr; }
  .tb-cell { border-right: 0; }
  .faq-a p { padding-left: .2rem; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 79;
    flex-direction: column; gap: 0; background: var(--paper-2);
    border-bottom: 1px solid var(--line); padding: .5rem 5%;
    display: none;
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 1rem 0; font-size: .9rem; border-bottom: 1px dashed var(--line-faint); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .eyebrow .dim { opacity: 1 !important; transform: none !important; }
  .draw path.d, .draw circle.d, .draw rect.d, .draw line.d, .draw polyline.d { stroke-dasharray: none; stroke-dashoffset: 0; }
  .drip, .puddle { opacity: 0 !important; }
  .schematic .lbl { opacity: 1 !important; }
}
