/* =====================================================================================================================================
   THE FOOTER: one footer for every redesigned page (19 Nov 2026, Luka: "premium awwwards nivo"; direction A, the reveal, and the
   statement he chose; the study and the prototype are in _drafts/footer/, local only). Loaded right after bar.css by the twenty pages
   and the ten articles; public/assets/footer.js runs it. The markup stays in each page (only the current page's link differs).
   It reads the page's own tokens (--co-navy, --co-navy-2, --co-navy-line, --co-navy-wire, --co-on-navy*, --co-light, --co-light-core,
   --co-margin). The window also keeps the class co-foot (the bar makes it inert under the sheet; each page's print rules name it).

   1 the window (the page lifts off the footer) · 2 the ground · 3 the top: the logo and the desk · 4 the statement · 5 the horizon and
   its light · 6 the columns · 7 the base · 8 the widths · 9 print
   ===================================================================================================================================== */

:root { --ft-quiet: var(--co-on-navy-3);   /* the statement's first sentence, heads, metadata (7.2:1 on navy) */
  --ft-under: #030915;                      /* the ground under the horizon, a step under the navy */
  --ft-shade: #020610 }                     /* the shadow the lifting page casts on the footer */

/* ---------- 1 · the window. Without the script (and wherever the footer is taller than the screen, under 960 px, or in a frame as
   tall as its content) the footer is an ordinary block that arrives with the scroll. Where it fits the screen, footer.js sets
   .is-under and --ft-h: the window keeps the footer's height in the flow and clips; inside it the footer is held against the screen's
   foot (sticky, never a pin: the scroll stays native), so the page above lifts off it as a sheet, its edge carrying the light, the way
   a page rises between pages. Only the window's clip moves; the footer steps forward out of the night as it is uncovered (--ft-p). ---------- */
.ft-win { position: relative; background: var(--co-navy) }
.ft-win.is-under { height: var(--ft-h); overflow: clip }
.ft-win.is-under > .ft-run { position: relative; top: -100vh; height: calc(100vh + var(--ft-h)) }
.ft-win.is-under .ft { position: sticky; top: calc(100vh - var(--ft-h)) }
.ft-win__edge { display: none }
.ft-win.is-under > .ft-win__edge { display: block; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 112px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ft-shade) 62%, transparent), color-mix(in srgb, var(--ft-shade) 22%, transparent) 38%, color-mix(in srgb, var(--ft-shade) 0%, transparent)) }
.ft-win__edge::before, .ft-win__edge::after { content: ""; position: absolute; left: 0; right: 0; top: 0; opacity: var(--ft-e, 0) }
.ft-win__edge::before { height: 1px; background: linear-gradient(90deg, var(--co-light), var(--co-light-core) 50%, var(--co-light)) }
.ft-win__edge::after { height: 32px; background: linear-gradient(180deg, color-mix(in srgb, var(--co-light) 34%, transparent), color-mix(in srgb, var(--co-light) 9%, transparent) 45%, color-mix(in srgb, var(--co-light) 0%, transparent)) }

/* ---------- 2 · the ground: one navy, a quiet light from the top left (the heroes' and the old footer's) ---------- */
.ft { --ft-g: clamp(28px, 5.2svh, 56px); --ft-pl: 0px; position: relative; overflow: clip; container-type: inline-size; border: 0;
  background: radial-gradient(90% 70% at 0% 0%, var(--co-navy-2), color-mix(in srgb, var(--co-navy-2) 0%, transparent) 70%), var(--co-navy); color: var(--co-on-navy-2) }
.ft__stage { position: relative; padding: clamp(40px, 7svh, 88px) 0 calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); transform-origin: 50% 100% }
.ft__in { position: relative; z-index: 1; margin-inline: max(var(--co-margin), calc((100% - var(--container-max)) / 2)) }   /* the page's own container, so the footer stands on the page's edges */
.ft__veil { position: absolute; z-index: 2; inset: 0; background: var(--co-navy); opacity: 0; pointer-events: none }
.ft a { color: var(--co-on-navy-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--duration-normal) var(--ease-arrive), color var(--duration-fast) var(--ease-soft) }
@media (hover: hover) { .ft a:hover { color: var(--white); background-size: 100% 1px } }
.ft a:focus-visible { outline: var(--focus-ring) solid var(--co-light); outline-offset: 3px; border-radius: var(--radius-chip) }

/* ---------- 3 · the top: the logo (the original file, whole), and the desk at its right: the address, the time in Belgrade (read
   when the footer arrives, never ticking), LinkedIn ---------- */
.ft__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ft-g) }
.ft__logo { display: block; justify-self: start; border-radius: var(--radius-chip); background: none }
.ft__logo img { display: block; width: 168px; height: auto }
.ft__desk { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-6) }
.ft__meta { margin: 0; font: 400 14px/1.6 var(--font-sans); font-style: normal; font-variant-numeric: tabular-nums; color: var(--co-on-navy-2) }
.ft__now[hidden] { display: none }
.ft__out, .ft__up { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 14px/1.6 var(--font-sans); color: var(--co-on-navy) }
.ft__out > svg { rotate: -45deg }
.ft__up > svg { rotate: -90deg }   /* the kit has no "up": its arrow, turned */

/* ---------- 4 · the statement: two sentences, two lines, set to the container's width. The first in the quiet tone; the second
   takes the light word by word as the horizon's light passes under it (footer.js adds .is-wait while it waits; without the script it
   stands white). Never hidden, never moved: only its tone changes. ---------- */
.ft__say { margin: 0; font: 500 clamp(34px, min(7.5cqw, 13svh), 110px)/1.04 var(--font-display); letter-spacing: -0.04em; color: var(--co-on-navy); text-wrap: balance }
.ft__s1, .ft__s2 { display: block }
.ft__s1 { color: var(--ft-quiet) }
.ft__w { transition: color .7s var(--ease-soft) }
.ft.is-wait .ft__w { color: var(--ft-quiet) }
.ft.is-wait .ft__w.is-lit { color: var(--co-on-navy) }

/* ---------- 5 · the horizon: one line across the whole screen, the sky's last light over it and the ground a step darker under it.
   The light is a band (17 Nov 2026), as thin as the line: a core that climbs to white at its head and falls away behind it with no
   step and no round end, a short fade ahead, a soft glow three times as tall, the line lit behind it (the wake). Wholly in view it
   runs once from the screen's left edge out at the right; the wake glows once and settles to the quiet wire. No filter. ---------- */
.ft__hz { position: relative; z-index: 0; height: 0; margin-top: var(--ft-g) }
.ft__hz::before { content: ""; position: absolute; left: -6%; right: -6%; bottom: 0; height: clamp(120px, 26svh, 260px); pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--co-navy-2) 70%, transparent), color-mix(in srgb, var(--co-navy-2) 22%, transparent) 42%, color-mix(in srgb, var(--co-navy-2) 0%, transparent)) }
.ft__hz::after { content: ""; position: absolute; left: -6%; right: -6%; top: 0; height: clamp(160px, 34svh, 340px); pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ft-under) 82%, transparent), color-mix(in srgb, var(--ft-under) 30%, transparent) 46%, color-mix(in srgb, var(--ft-under) 0%, transparent)) }
.ft__wire, .ft__wake { position: absolute; z-index: 1; left: -6%; right: -6%; top: -0.5px; height: 1px }
.ft__wire { background: var(--co-navy-wire) }
.ft__wake { background: var(--co-light); opacity: 0; transform: scaleX(0); transform-origin: 0 50% }
.ft__lt { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen }
.ft__lt::before { content: ""; position: absolute; right: -28px; top: -1px; width: 620px; height: 2px; transform-origin: 100% 50%; transform: scaleX(var(--tail, 1));
  background: linear-gradient(90deg, color-mix(in srgb, var(--co-light) 0%, transparent), color-mix(in srgb, var(--co-light) 55%, transparent) 30%, var(--co-light) 58%, var(--co-light-core) 86%, var(--white) 93.5%, var(--white) 95.5%, color-mix(in srgb, var(--white) 0%, transparent)) }
.ft__lt::after { content: ""; position: absolute; right: -40px; top: -11px; width: 560px; height: 22px; transform-origin: 100% 50%; transform: scaleX(var(--tail, 1));
  background: linear-gradient(90deg, color-mix(in srgb, var(--co-light) 0%, transparent), color-mix(in srgb, var(--co-light) 30%, transparent) 50%, color-mix(in srgb, var(--co-light-core) 46%, transparent) 90%, color-mix(in srgb, var(--co-light) 0%, transparent));
  -webkit-mask-image: linear-gradient(180deg, transparent, rgb(0 0 0 / .1) 22%, rgb(0 0 0 / .45) 40%, #000 50%, rgb(0 0 0 / .45) 60%, rgb(0 0 0 / .1) 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, rgb(0 0 0 / .1) 22%, rgb(0 0 0 / .45) 40%, #000 50%, rgb(0 0 0 / .45) 60%, rgb(0 0 0 / .1) 78%, transparent) }

/* ---------- 6 · the columns stand under the horizon, a tick where each meets it. The column you point into lights its stretch of the
   line; the current page's column keeps its tick in cyan; the links you are not pointing at step back a tone (the bar's way).
   As the light passes a tick it takes it and settles (.is-pass, footer.js). ---------- */
.ft__cols { --ft-drop: clamp(28px, 4.4svh, 44px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7) 0; padding-top: var(--ft-drop) }
.ft__col { position: relative; min-width: 0 }
.ft__col--two { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start }
/* the ticks and the stretches belong to the horizon: only where every column stands under it (section 8) */
.ft__tick, .ft__seg { display: none }
.ft__tick { position: absolute; left: 0; top: calc(-1 * var(--ft-drop)); width: 1px; height: 14px; background: var(--co-navy-wire) }
.ft__col:has(a[aria-current]) > .ft__tick { width: 2px; background: var(--co-light) }
.ft__seg { position: absolute; left: 0; right: var(--space-6); top: calc(-1 * var(--ft-drop) - 0.5px); height: 1px; background: var(--co-light); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--duration-slow) var(--ease-cut) }
@media (hover: hover) { .ft__col:has(a:hover) > .ft__seg { transform: scaleX(1) } }
.ft__col:has(a:focus-visible) > .ft__seg { transform: scaleX(1) }
.ft__tick.is-pass { animation: ft-pass 1.1s var(--ease-soft) both }
@keyframes ft-pass { 0% { background: var(--co-navy-wire); height: 14px } 18% { background: var(--white); height: 22px } 45% { background: var(--co-light); height: 22px } 100% { height: 14px } }
.ft__col:not(:has(a[aria-current])) > .ft__tick.is-pass { animation-name: ft-pass-q }
@keyframes ft-pass-q { 0% { background: var(--co-navy-wire); height: 14px } 18% { background: var(--white); height: 22px } 45% { background: var(--co-light); height: 22px } 100% { background: var(--co-navy-wire); height: 14px } }
.ft__h { margin: 0 0 var(--space-4); font: 600 12px/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ft-quiet) }
.ft__col--two > .ft__h { grid-column: 1 / -1 }
.ft__list { display: grid; align-content: start; justify-items: start; gap: 10px; margin: 0; padding: 0 var(--space-5) 0 0; list-style: none }
.ft__list a { font: 400 14px/1.45 var(--font-sans); white-space: nowrap }
.ft__list a[aria-current] { color: var(--co-on-navy); font-weight: 500 }
@media (hover: hover) { .ft__cols:has(.ft__list a:hover) .ft__list a:not(:hover) { color: var(--ft-quiet) } }

/* ---------- 7 · the base: the two credentials at a size their marks can be read, named beside them; the legal line; the way up ---------- */
.ft__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); margin-top: var(--ft-g); padding-top: var(--space-5);
  border-top: var(--stroke-line) solid var(--co-navy-line) }
.ft__creds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin: 0; padding: 0; list-style: none }
.ft__creds li { display: flex; align-items: center; gap: var(--space-3); font: 500 13px/1.35 var(--font-sans); color: var(--co-on-navy-2) }
.ft__creds img { display: block; flex: none; width: auto; height: 56px }
.ft__creds span { max-width: 12em }
.ft__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6) }
.ft__legal p { margin: 0; font: 500 13px/1.5 var(--font-sans); color: var(--ft-quiet) }

/* ---------- 8 · the widths. Phones: one column, Solutions as one list. From 600 px: Services beside Company, Solutions in two lists
   under them; the statement's sentences each keep one line. From 900 px the desk stands at the logo's right and the three columns
   stand in one row on the 12-column plan (3 · 6 · 3) ---------- */
@container (max-width: 599px) { .ft__col--two > .ft__list + .ft__list { margin-top: 10px } .ft__base { align-items: flex-start } }
@container (min-width: 600px) {
  .ft__s1, .ft__s2 { white-space: nowrap }
  .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .ft__col--two { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@container (min-width: 900px) {
  .ft__top { grid-template-columns: auto minmax(0, 1fr); align-items: center }
  .ft__desk { grid-column: 2; grid-row: 1; justify-content: flex-end }
  .ft__say { grid-column: 1 / -1 } }
@container (min-width: 900px) {
  .ft__tick, .ft__seg { display: block }
  .ft__cols { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 }
  .ft__cols > .ft__col { grid-column: span 3; grid-row: auto } .ft__cols > .ft__col--two { grid-column: span 6 } }

/* ---------- 9 · print: an ordinary block on paper, in ink (each page's own print rules set .co-foot's colours) ---------- */
@media print {
  .ft-win.is-under { height: auto; overflow: visible }
  .ft-win.is-under > .ft-run { position: static; height: auto }
  .ft-win.is-under .ft { position: static }
  .ft { background: none }
  .ft__stage { transform: none !important }
  .ft__hz::before, .ft__hz::after, .ft__wake, .ft__lt, .ft__veil, .ft-win__edge { display: none !important }
  .ft.is-wait .ft__w { color: inherit } }
