/* Robert Reginia · robertreginia.com
   Brand: "the unbroken line". Ink-black ledger paper, amber figures turning into cyan intelligence. */

:root {
  --ink: #07090d;
  --ink-2: #0c1016;
  --ink-3: #121821;
  --rule: rgba(237, 232, 222, 0.08);
  --rule-2: rgba(237, 232, 222, 0.16);
  --paper: #ede8de;
  --paper-2: #c9c4ba;
  --muted: #8b9099;
  --amber: #e9a84a;
  --amber-2: #f6c77a;
  --cyan: #9be7f2;
  --line: linear-gradient(90deg, var(--amber) 0%, #d9b98a 45%, var(--cyan) 100%);

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Cascadia Mono", monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --bar-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::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(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* faint ledger ruling across the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(237,232,222,0.018) 31px 32px);
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
em { font-style: italic; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.is-solid { background: rgba(7, 9, 13, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--rule); }
.bar.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--serif); font-size: 22px; letter-spacing: .005em; }
.bar__right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.lang__btn { background: none; border: 0; padding: 8px 6px; cursor: pointer; color: var(--muted); transition: color .2s; }
.lang__btn[aria-pressed="true"] { color: var(--paper); }
.lang__btn[aria-pressed="true"]::after { content: ""; display: block; height: 1px; margin-top: 2px; background: var(--line); }
.lang__btn:hover { color: var(--paper); }
.lang__sep { color: var(--rule-2); }
.icon-link { width: 36px; height: 36px; display: grid; place-items: center; color: var(--paper-2); border-radius: 50%; transition: color .2s, background .2s; }
.icon-link:hover { color: var(--paper); background: rgba(255,255,255,.06); }
.icon-link svg { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 24px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .01em;
  border: 1px solid var(--rule-2); cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 0 0 0 rgba(233,168,74,0); }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: rgba(7,9,13,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--cyan); color: #fff; }
.btn--small { --h: 38px; padding: 0 16px; font-size: 13px; background: rgba(237,232,222,.06); }
.btn--small:hover { background: var(--paper); color: var(--ink); }
.btn--big { --h: 60px; padding: 0 32px; font-size: 16px; }

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

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--bar-h) + 40px) 0 120px; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,9,13,.62) 0%, rgba(7,9,13,.35) 45%, rgba(7,9,13,0) 70%),
    radial-gradient(120% 80% at 20% 30%, rgba(7,9,13,.55) 0%, rgba(7,9,13,0) 60%),
    linear-gradient(180deg, rgba(7,9,13,.55) 0%, rgba(7,9,13,0) 30%, rgba(7,9,13,0) 70%, var(--ink) 100%);
}
@keyframes heroDrift { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; } }
.hero__ticker { position: absolute; left: 0; right: 0; top: 50%; height: 140px; width: 100%; transform: translateY(-10%); opacity: .55; mix-blend-mode: screen; pointer-events: none; }

.hero__inner { padding-right: clamp(0px, 34vw, 470px); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--amber-2); margin: 0 0 24px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--line); }
.eyebrow .arrow { color: var(--cyan); }
.hero__name {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(64px, 11.2vw, 184px); line-height: .86; letter-spacing: -.02em;
}
.line-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.line-mask > span { display: inline-block; }
.js .hero__name.reveal { opacity: 1; transform: none; }
.js .hero__name .line-mask > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js .hero__name.is-in .line-mask > span { transform: none; }
.js .hero__name.is-in .line-mask + .line-mask > span { transition-delay: .12s; }
.hero__role { margin: 24px 0 0; color: var(--paper-2); font-size: 15px; letter-spacing: .02em; }
.hero__statement {
  font-family: var(--serif); font-size: clamp(28px, 3.3vw, 46px); line-height: 1.12; margin: 36px 0 0; max-width: 17em; letter-spacing: -.005em;
}
.hero__statement em { color: var(--amber-2); }
.hero__statement, .hero__sub, .hero__role { text-shadow: 0 2px 18px rgba(7,9,13,.95), 0 0 2px rgba(7,9,13,.8); }
.hero__sub { max-width: 34em; color: var(--paper-2); margin: 20px 0 0; font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* voice button */
.voice { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.voice__btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: rgba(7,9,13,.4); cursor: pointer; transition: border-color .3s, background .3s;
}
.voice__btn:hover { border-color: var(--amber); }
.voice__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--line); color: var(--ink); display: grid; place-items: center; }
.voice__icon svg { width: 15px; height: 15px; }
.voice__icon .i-stop, .voice__btn[aria-pressed="true"] .i-play { display: none; }
.voice__btn[aria-pressed="true"] .i-stop { display: block; }
.voice__label { font-size: 14px; }
.voice__bars { display: inline-flex; gap: 3px; height: 14px; align-items: flex-end; }
.voice__bars i { width: 2px; height: 4px; background: var(--paper-2); border-radius: 1px; }
.voice__btn[aria-pressed="true"] .voice__bars i { animation: bar 1s ease-in-out infinite; background: var(--cyan); }
.voice__bars i:nth-child(2) { animation-delay: .15s !important; } .voice__bars i:nth-child(3) { animation-delay: .3s !important; }
.voice__bars i:nth-child(4) { animation-delay: .45s !important; } .voice__bars i:nth-child(5) { animation-delay: .6s !important; }
@keyframes bar { 0%,100% { height: 3px; } 50% { height: 14px; } }
.voice__note { margin: 0; font-size: 12px; color: var(--muted); }

/* portrait: Robert is the node where the line turns from amber to cyan */
.portrait {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-46%);
  width: clamp(220px, 27vw, 400px); margin: 0; z-index: 2;
}
.js .portrait.reveal { transform: translateY(-40%); }
.js .portrait.reveal.is-in { transform: translateY(-46%); }
.portrait__ring { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--amber), var(--cyan), var(--amber)); box-shadow: 0 0 0 10px rgba(7,9,13,.55); }
.portrait__ring::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid var(--rule-2); }
.portrait__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #ddd; }
.portrait__cap { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: var(--paper-2); }
.portrait__cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
@keyframes pulse { 50% { opacity: .35; } }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--amber), transparent); }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* captions */
.captions {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  width: min(760px, calc(100% - 32px)); padding: 16px 22px 14px; border-radius: 14px;
  background: rgba(7,9,13,.86); border: 1px solid var(--rule-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -20px #000;
}
.captions[hidden] { display: none; }
.captions__text { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.25; text-align: center; min-height: 2.5em; display: grid; place-items: center; }
.captions__progress { height: 2px; background: var(--rule); margin-top: 12px; border-radius: 2px; overflow: hidden; }
.captions__progress span { display: block; height: 100%; width: 0; background: var(--line); }

/* ---------- SCROLL MOMENT ---------- */
.moment { position: relative; z-index: 1; height: 520vh; background: var(--ink); }
.moment__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.moment__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.moment__shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(7,9,13,0) 18%, rgba(7,9,13,0) 62%, rgba(7,9,13,.88) 100%); pointer-events: none; }
.moment__year {
  position: absolute; right: var(--gutter); top: calc(var(--bar-h) + 18px); font-size: clamp(44px, 9vw, 132px) !important; letter-spacing: -.03em !important;
  color: transparent; -webkit-text-stroke: 1px rgba(237,232,222,.35); font-variant-numeric: tabular-nums; line-height: 1;
}
.moment__beats { list-style: none; margin: 0; position: absolute; left: 0; right: 0; bottom: clamp(70px, 13vh, 140px); height: 0; }
.beat { position: absolute; left: var(--gutter); bottom: 0; max-width: min(820px, calc(100% - 2 * var(--gutter))); opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.beat.is-on { opacity: 1; transform: none; }
.beat__k { color: var(--amber-2); margin: 0 0 16px; }
.beat__t { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.beat--final .beat__k { color: var(--cyan); }
.beat--final .beat__t { font-size: clamp(48px, 9vw, 140px); font-style: italic; }
.moment__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 38px; height: 1px; background: var(--rule-2); }
.moment__rail span { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--line); transform-origin: left; transform: scaleX(0); }
.moment__rail span::after { content: ""; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; padding: clamp(96px, 14vw, 180px) 0; }
.kicker { color: var(--amber-2); margin: 0 0 24px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 36px; height: 1px; background: var(--line); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 96px); line-height: .98; letter-spacing: -.015em; margin: 0; max-width: 13em; text-wrap: balance; }
.h2 em { color: var(--paper-2); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--paper-2); max-width: 36em; margin: 28px 0 0; }

/* expertise */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 7vw, 88px); }
.card { position: relative; border-top: 1px solid var(--rule-2); padding-top: 24px; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--ink-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease), filter 1s; filter: saturate(.9); }
.card:hover .card__media img { filter: saturate(1.1); }
.card__n { color: var(--muted); margin: 24px 0 8px; }
.card__t { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; margin: 0 0 12px; }
.card__b { color: var(--paper-2); margin: 0; font-size: 16px; }
.cards .card:nth-child(2) { transition-delay: .1s; } .cards .card:nth-child(3) { transition-delay: .2s; }

.numbers { display: grid; grid-template-columns: repeat(6, 1fr); margin: clamp(72px, 9vw, 120px) 0 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.num { padding: 28px 16px 28px 0; border-right: 1px solid var(--rule); }
.num + .num { padding-left: 16px; }
.num:last-child { border-right: 0; }
.num__v { font-family: var(--serif); font-size: clamp(48px, 5.6vw, 84px); line-height: 1; background: var(--line); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums tabular-nums; display: inline-block; position: relative; padding-bottom: 12px; }
/* accounting total: double rule under each figure */
.num__v::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-top: 1px solid rgba(233,168,74,.55); border-bottom: 1px solid rgba(233,168,74,.55); }
.num__l { margin: 10px 0 0; color: var(--paper-2); font-size: 14px; line-height: 1.45; }
/* gaps for Robert to fill stand out on purpose */
.is-add { color: var(--amber-2) !important; -webkit-text-fill-color: currentColor; background: none !important; outline: 1px dashed rgba(246,199,122,.55); outline-offset: 4px; border-radius: 3px; font-family: var(--mono) !important; font-size: 13px !important; letter-spacing: .02em; line-height: 1.5 !important; }
.num__v.is-add { font-size: 22px !important; display: inline-block; }

/* timeline */
.map { position: relative; margin: clamp(48px, 7vw, 90px) 0 0; aspect-ratio: 21 / 9; overflow: hidden; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink), rgba(7,9,13,0) 25%, rgba(7,9,13,0) 75%, var(--ink)); }
.map__pin { position: absolute; z-index: 1; color: var(--paper); padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: 999px; background: rgba(7,9,13,.6); transform: translate(-50%, calc(-100% - 18px)); white-space: nowrap; }
.map__pin--dub { left: 24.3%; top: 38%; }
.map__pin--wro { left: 76.2%; top: 56%; transform: translate(-50%, 18px); border-color: rgba(155,231,242,.5); }
.tl { list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; position: relative; }
.tl__rail { position: absolute; left: 170px; top: 8px; bottom: 8px; width: 1px; background: var(--rule-2); }
.tl__rail span { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, var(--amber), var(--cyan)); transform-origin: top; transform: scaleY(0); }
.tl__item { display: grid; grid-template-columns: 170px 1fr; gap: 0 48px; padding: 0 0 52px; position: relative; }
.tl__item::before { content: ""; position: absolute; left: 165px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--amber); }
.tl__item--now::before { background: var(--cyan); border-color: var(--cyan); }
.tl__when { color: var(--muted); margin: 6px 0 0; padding-right: 28px; }
.tl__body { padding-left: 0; }
.tl__org { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; margin: 0; }
.tl__role { margin: 10px 0 0; color: var(--paper); font-weight: 500; }
.tl__note { margin: 8px 0 0; color: var(--paper-2); max-width: 40em; }
.tl__item--move .tl__org--move { font-style: italic; color: var(--amber-2); font-size: clamp(28px, 3vw, 42px); }
.tl__item--move::before { border-style: dashed; border-color: var(--amber-2); }

/* looking for */
.look { overflow: hidden; isolation: isolate; }
.look__bg { position: absolute; inset: 0; z-index: -1; }
.look__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.look__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(7,9,13,.6) 30%, rgba(7,9,13,.75) 70%, var(--ink) 100%); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 6vw, 72px); }
.role { padding: clamp(28px, 3vw, 44px); border: 1px solid var(--rule-2); border-radius: 18px; background: rgba(12,16,22,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .4s; }
.role:hover { border-color: rgba(155,231,242,.45); }
.role__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-2); color: var(--cyan); margin: 0 0 28px; }
.role__t { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.02; margin: 0 0 16px; }
.role__b { margin: 0; color: var(--paper-2); }
.look__prefs { margin: 36px 0 0; color: var(--muted); text-transform: none; letter-spacing: .02em; font-size: 13px; }

/* CV */
.cv { padding-top: 40px; }
.cv__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; border-top: 1px solid var(--rule-2); padding-top: clamp(60px, 8vw, 110px); }
.cv__actions { display: grid; gap: 16px; }
.dl { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 20px; padding: 24px 28px; text-decoration: none; border: 1px solid var(--rule-2); border-radius: 14px; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.dl:hover { border-color: var(--amber); background: rgba(233,168,74,.06); transform: translateX(4px); }
.dl__k { color: var(--muted); }
.dl__t { font-family: var(--serif); font-size: 26px; line-height: 1.1; grid-row: 2; }
.dl__arrow { grid-row: 1 / 3; grid-column: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-size: 20px; }

/* contact */
.contact { position: relative; z-index: 1; min-height: 92vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 140px 0; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(7,9,13,.15) 30%, rgba(7,9,13,.25) 70%, var(--ink) 100%), linear-gradient(90deg, rgba(7,9,13,.6), rgba(7,9,13,0) 60%); }
.contact__title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(72px, 15vw, 240px); line-height: .86; letter-spacing: -.03em; margin: 0; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact__mail { margin: 28px 0 0; color: var(--paper-2); }
.contact__mail a { text-decoration: none; border-bottom: 1px solid var(--rule-2); text-transform: none; letter-spacing: .04em; font-size: 14px; }
.contact__mail a:hover { border-color: var(--cyan); }

/* footer */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--rule); padding: 36px 0 44px; color: var(--muted); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; text-transform: none; letter-spacing: .04em; }
.footer__links a:hover { color: var(--paper); }
.footer__ai { grid-column: 1 / -1; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .numbers { grid-template-columns: repeat(3, 1fr); }
  .num:nth-child(3) { border-right: 0; }
  .num:nth-child(4) { padding-left: 0; }
  .num:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  :root { --bar-h: 60px; }
  body { font-size: 16px; }
  .brand__name { font-size: 19px; }
  .bar__right { gap: 8px; }
  .bar .btn--small { display: none; }
  .hero { align-items: start; padding-top: calc(var(--bar-h) + 28px); padding-bottom: 110px; }
  .hero__inner { padding-right: var(--gutter); }
  .portrait { position: relative; right: auto; top: auto; transform: none !important; width: auto; margin: 0 var(--gutter) 28px; display: flex; align-items: center; gap: 24px; }
  .portrait__ring { width: 84px; flex: none; }
  .portrait__cap { justify-content: flex-start; margin-top: 0; font-size: 11px; }
  .hero { display: flex; flex-direction: column; }
  .hero > .portrait { order: -1; }
  .portrait__ring { box-shadow: 0 0 0 6px rgba(7,9,13,.55); }
  .portrait__ring::after { inset: -11px; }
  .hero__statement { margin-top: 28px; }
  .cards { grid-template-columns: 1fr; gap: 44px; }
  .roles { grid-template-columns: 1fr; }
  .cv__inner { grid-template-columns: 1fr; }
  .tl__rail { left: 5px; }
  .tl__item { grid-template-columns: 1fr; padding-left: 34px; padding-bottom: 40px; }
  .tl__item::before { left: 0; top: 4px; }
  .tl__when { margin: 0 0 8px; }
  .map__pin { font-size: 10px; padding: 4px 8px; }
  .moment { height: 420vh; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; gap: 10px 20px; }
}
@media (max-width: 560px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .num { padding: 24px 12px 20px 0 !important; border-right: 0 !important; border-top: 1px solid var(--rule); }
  .num:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--rule); }
  .num:nth-child(-n+2) { border-top: 0; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .contact__actions .btn { width: 100%; justify-content: center; }
  .dl__t { font-size: 22px; }
  .voice__label { font-size: 13px; }
}

/* ---------- ledger rows (finance motif) ---------- */
.ledger-row { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--muted); white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ledger-row__track { display: flex; width: max-content; }
.ledger-row--rev .ledger-row__track { transform: translateX(-18%); }
.ledger-row__set { display: flex; }
.ledger-row__set span { padding: 0 28px; border-right: 1px solid var(--rule-2); opacity: .8; }
.ledger-row__set span b { font-weight: 400; color: var(--amber-2); }
.ledger-row__set span:nth-child(3n) b { color: var(--cyan); }
@keyframes ledger { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ledger-row__track { animation: none; } }

/* ---------- daily NAV cycle (finance motif) ---------- */
.cycle { position: relative; z-index: 1; }
.js .cycle { height: 340vh; }
.cycle__sticky { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 12vw, 160px) 0; }
.js .cycle__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: var(--bar-h) 0 0; }
.cycle__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 78% 45%, rgba(233,168,74,.07), transparent 70%); }
.cycle__inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head dial" "stages stages" "now now"; gap: clamp(20px, 3vw, 40px) 48px; align-items: center; }
.cycle__head { grid-area: head; }
.cycle__lead { max-width: 30em; }
.cycle__dial { grid-area: dial; position: relative; width: clamp(150px, 17vw, 240px); }
.cycle__dial svg { width: 100%; height: auto; overflow: visible; }
.cycle__ticks line { stroke: rgba(237,232,222,.28); stroke-width: 1; }
.cycle__track { fill: none; stroke: var(--rule-2); stroke-width: 2; }
.cycle__arc { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 100px 100px; }
.cycle__count { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; margin: 0; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: .04em; color: var(--paper); }
.cycle__of { font-size: .45em; color: var(--muted); margin-left: 2px; }
.cycle__stages { grid-area: stages; list-style: none; margin: clamp(8px, 2vw, 24px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.cycle__line { position: absolute; left: 17px; width: calc(600% / 7); top: 17px; height: 1px; background: var(--rule-2); }
.cycle__line span { position: absolute; inset: 0; background: var(--line); transform-origin: left; transform: scaleX(0); }
.cycle__stage { position: relative; padding-right: 14px; transition: opacity .5s var(--ease); }
.js .cycle__stage { opacity: .38; }
.js .cycle__stage.is-done { opacity: .7; }
.js .cycle__stage.is-on { opacity: 1; }
.cycle__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--ink); color: var(--muted); font-size: 11px; transition: border-color .4s, color .4s, box-shadow .4s, background .4s; }
.cycle__stage.is-done .cycle__dot { border-color: rgba(233,168,74,.6); color: var(--amber-2); }
.cycle__stage.is-on .cycle__dot { border-color: var(--amber); color: var(--ink); background: var(--amber); }
.cycle__stage:last-of-type.is-on .cycle__dot { border-color: var(--cyan); background: var(--cyan); }
.cycle__name { display: block; margin: 16px 0 6px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 26px); line-height: 1.08; }
.cycle__desc { display: block; color: var(--paper-2); font-size: 14px; line-height: 1.45; }
.cycle__now { display: none; grid-area: now; }
@media (max-width: 900px) {
  .js .cycle { height: 300vh; }
  .cycle__inner { grid-template-columns: 1fr; grid-template-areas: "head" "dial" "stages" "now"; gap: 18px; }
  .cycle__lead { display: none; }
  .cycle__dial { width: 120px; }
  .cycle__line { top: 14px; left: 14px; }
  .cycle__dot { width: 29px; height: 29px; font-size: 10px; }
  .js .cycle__stage { padding-right: 0; }
  .js .cycle__name, .js .cycle__desc { display: none; }
  .js .cycle__now { display: block; min-height: 7.5em; }
  .cycle__now-t { margin: 6px 0 6px; font-family: var(--serif); font-size: 30px; line-height: 1.05; }
  .cycle__now-d { margin: 0; color: var(--paper-2); font-size: 16px; }
  .cycle__stages { margin-top: 4px; }
  html:not(.js) .cycle__stages { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cycle { height: auto; }
  .js .cycle__sticky { position: relative; height: auto; padding: clamp(96px, 12vw, 160px) 0; }
  .js .cycle__stage { opacity: 1; }
}

/* ---------- custody imagery (finance motif) ---------- */
.cycle__bg img { position: absolute; right: 0; top: 50%; height: 100%; width: auto; max-width: none; transform: translateY(-50%); opacity: .3; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%); mask-image: linear-gradient(90deg, transparent 0%, #000 50%); }
.cycle__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(7,9,13,0) 22%, rgba(7,9,13,.45) 62%, var(--ink) 100%); }
.expertise .wrap { isolation: isolate; }
.numbers__bg { position: absolute; left: 0; right: 0; bottom: -12%; height: 620px; z-index: -1; pointer-events: none; overflow: hidden; }
.numbers__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .28; }
.numbers__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(7,9,13,.35) 40%, rgba(7,9,13,.35) 65%, var(--ink) 100%), linear-gradient(90deg, var(--ink) 0%, rgba(7,9,13,0) 30%, rgba(7,9,13,0) 70%, var(--ink) 100%); }
.cv { overflow: hidden; isolation: isolate; padding-bottom: clamp(120px, 14vw, 200px); }
.cv__bg { position: absolute; inset: 0; z-index: -1; }
.cv__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; }
.cv__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(7,9,13,.25) 35%, rgba(7,9,13,.35) 70%, var(--ink) 100%), linear-gradient(90deg, rgba(7,9,13,.85) 0%, rgba(7,9,13,.2) 55%, rgba(7,9,13,0) 100%); }
@media (max-width: 900px) {
  .cycle__bg img { height: 60%; top: 30%; opacity: .22; }
  .cv__bg img { object-position: 78% 50%; opacity: .4; }
}
.cv .dl { background: rgba(7,9,13,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Gdańsk: last leg of the journey, drawn in code on top of the map */
.map__leg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.map__leg-halo { opacity: .35; }
@keyframes legpulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map__leg-halo { animation: none; } }
.map__pin--gda { left: 77.2%; top: 41.7%; border-color: rgba(155,231,242,.75); color: var(--cyan); }
