:root {
  --bg: #07090d;
  --bg-2: #0b0f16;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9e6df;
  --muted: #9aa3b2;
  --gold: #d6b366;
  --gold-2: #f1d99b;
  --steel: #6f8fb8;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #111; }

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

/* film grain over everything, very light */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.header.solid {
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 30px; }
.brand span {
  font-family: var(--serif);
  letter-spacing: 0.34em;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--gold-2);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a.link {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  transition: color 0.25s;
}
.nav a.link:hover { color: var(--text); }
.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all 0.25s;
}
.lang button.on { background: var(--gold); color: #14100a; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 140px 0 96px; isolation: isolate; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -4%; z-index: -2;
  background: url("../img/hero.jpg") center/cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.2%, -1.4%, 0); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(7, 9, 13, 0) 20%, rgba(7, 9, 13, 0.55) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.55) 0%, rgba(7, 9, 13, 0.15) 35%, rgba(7, 9, 13, 0.85) 100%);
}
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.01em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p.lead {
  margin-top: 30px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 21px); color: #c4c9d3;
}
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--gold); transition: all 0.3s; cursor: pointer; font-family: var(--sans);
}
.btn.fill { background: var(--gold); color: #14100a; font-weight: 600; }
.btn.fill:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.scroll-hint {
  position: absolute; right: 24px; bottom: 36px; writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- sections ---------- */
section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.kicker { font-size: 12.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08;
  max-width: 20ch;
}
.sub { margin-top: 22px; max-width: 58ch; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px 42px; transition: transform 0.4s, border-color 0.4s, background 0.4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px 220px at 20% 0%, rgba(214, 179, 102, 0.14), transparent 70%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(214, 179, 102, 0.45); }
.card:hover::before { opacity: 1; }
.card svg { width: 44px; height: 44px; color: var(--gold); margin-bottom: 26px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; margin-bottom: 12px; position: relative; }
.card p { color: var(--muted); font-size: 16px; position: relative; }

/* featured project */
.project { background: var(--bg-2); }
.project .grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: 56px; }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.05); }
.badge {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2); border: 1px solid rgba(214, 179, 102, 0.5); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.project h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.project p { margin-top: 20px; color: #bcc3cf; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips span { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin-top: 34px; justify-content: start; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 38px; color: var(--gold-2); line-height: 1; }
.facts small { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.gallery figure { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text); background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

/* studio */
.studio .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 48px; align-items: start; }
.studio p { color: #bcc3cf; }
.studio p + p { margin-top: 18px; }
.values { display: grid; gap: 0; }
.values div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 54px 1fr; gap: 14px; }
.values div:last-child { border-bottom: 1px solid var(--line); }
.values i { font-style: normal; font-family: var(--serif); color: var(--gold); font-size: 20px; }
.values strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 4px; }
.values span { color: var(--muted); font-size: 15.5px; }

/* contact */
.contact { text-align: center; background:
  radial-gradient(60% 80% at 50% 100%, rgba(214, 179, 102, 0.12), transparent 70%), var(--bg); }
.contact h2 { margin-inline: auto; max-width: 18ch; }
.contact .sub { margin-inline: auto; }
.mail {
  display: inline-block; margin-top: 44px; font-family: var(--serif); font-size: clamp(26px, 4.4vw, 54px);
  color: var(--gold-2); border-bottom: 1px solid rgba(214, 179, 102, 0.4); padding-bottom: 6px; transition: all 0.3s;
}
.mail:hover { color: #fff; border-color: #fff; }

footer { border-top: 1px solid var(--line); padding: 36px 0 46px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a:hover { color: var(--gold-2); }
footer nav { display: flex; gap: 26px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .project .grid, .studio .cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav a.link { display: none; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .facts { gap: 20px; }
  .facts b { font-size: 30px; }
  .brand span { letter-spacing: 0.24em; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .scroll-hint::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages ---------- */
body.legal .header { position: sticky; }
.doc { padding-block: 72px 110px; max-width: 820px; }
.doc .kicker { margin-bottom: 14px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 14px 0 34px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 40px 0 10px; max-width: none; color: var(--gold-2); }
.doc p, .doc li { color: #c4c9d3; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 12px 0 0 22px; display: grid; gap: 10px; }
.doc a { color: var(--gold-2); border-bottom: 1px solid rgba(214, 179, 102, 0.4); }
.doc a:hover { color: #fff; border-color: #fff; }
.doc strong { color: var(--text); font-weight: 600; }
html[lang="en"] .doc-lang[lang="uk"], html[lang="uk"] .doc-lang[lang="en"] { display: none; }
@media (max-width: 960px) { .nav a.link { display: none; } }
footer nav a { white-space: nowrap; }

main.lost { text-align: center; padding-block: 180px; }
.lost .meta { margin-bottom: 34px; }
[hidden] { display: none !important; }
