/* ===== Colours & type — change these to restyle the whole site ===== */
:root {
  --ink: #f3ede4;          /* main text (warm white) */
  --ink-soft: #b9b0a3;     /* secondary text */
  --stage: #121014;        /* page background (dark stage) */
  --stage-2: #1b181d;      /* alternate section background */
  --line: #2e2a31;
  --accent: #e0a458;       /* spotlight amber — try #d9534f (red) or #7fb7be (teal) */
  --accent-ink: #1a1208;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

/* ===== Language: show only the selected language ===== */
html[lang="lv"] .en, html[lang="en"] .lv { display: none !important; }

.lang-switch { display: flex; gap: 2px; margin-left: 24px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; position: relative; z-index: 2; }
.lang-switch button {
  background: none; border: 0; color: var(--ink-soft); font: 600 .75rem var(--sans); letter-spacing: .08em;
  padding: .35em .75em; border-radius: 999px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--stage); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 500; margin-top: 1.6em; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .9em 1.6em; border-radius: 999px; border: 1px solid var(--ink);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost:hover { background: var(--ink); color: var(--stage); }
.btn--small { padding: .65em 1.2em; font-size: .88rem; border-color: var(--line); margin-top: 1.2rem; }
.btn--small:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; transition: background .3s, padding .3s;
}
.nav.is-scrolled { background: rgba(18,16,20,.88); backdrop-filter: blur(10px); padding: 12px 24px; }
.nav__logo { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; }
.nav__links { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .92rem; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__cta { color: var(--accent-ink); background: var(--accent); padding: .45em 1.1em; border-radius: 999px; font-weight: 600; }
.nav__links .nav__cta:hover { color: var(--accent-ink); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s; }

@media (max-width: 760px) {
  .nav__toggle { display: block; margin-left: 10px; }
  .lang-switch { margin-left: auto; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--stage); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav__links a { font-size: 1.4rem; color: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.is-open .nav__toggle { position: relative; z-index: 2; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px 24px 12vh; overflow: hidden;
  /* fallback "spotlight on stage" when there is no video/photo yet */
  background:
    radial-gradient(ellipse 40% 55% at 62% 30%, rgba(224,164,88,.28), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255,255,255,.05), transparent 70%),
    var(--stage);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.hero__video.is-missing { display: none; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(18,16,20,.95) 4%, rgba(18,16,20,.15) 50%, rgba(18,16,20,.45)),
  linear-gradient(to left, rgba(18,16,20,.8), transparent 60%); }
@media (max-width: 860px) { .hero__video { object-position: 52% 30%; } }
/* Desktop: face on the left, text on the right */
@media (min-width: 861px) {
  .hero { align-items: center; }
  .hero__content { padding-left: 50%; }
  .hero__title { font-size: clamp(3rem, 6.5vw, 6.5rem); }
}
.hero__content { position: relative; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.hero__title { font-size: clamp(3rem, 10vw, 7.5rem); letter-spacing: -.02em; margin-bottom: .25em; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 48px;
  background: linear-gradient(var(--ink), transparent); transform: translateX(-50%);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { 0%,100% { opacity: .2; transform: translate(-50%, -6px); } 50% { opacity: 1; transform: translate(-50%, 6px); } }

/* ===== Sections ===== */
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section--dark { background: var(--stage-2); }
.section__head { margin-bottom: 3rem; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Facts box */
.facts { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--stage-2); }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: .7em 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: .9rem; }
.facts dd { margin: 0; text-align: right; font-weight: 500; }

/* ===== Videos ===== */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card {
  position: relative; aspect-ratio: 16/9; border: 0; padding: 0; cursor: pointer; color: var(--ink);
  border-radius: var(--radius); overflow: hidden; text-align: left; font: inherit;
  background: var(--poster, none) center/cover, linear-gradient(135deg, #2a2430, #17141a);
}
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); transition: background .3s; }
.video-card:hover::after { background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.1)); }
.video-card--feature { grid-column: 1 / -1; aspect-ratio: 21/9; }
.video-card__play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(243,237,228,.15); border: 1px solid rgba(243,237,228,.6);
  backdrop-filter: blur(4px); transition: transform .3s, background .3s;
}
.video-card__play::before { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-card:hover .video-card__play { transform: scale(1.1); background: var(--accent); border-color: var(--accent); }
.video-card--feature .video-card__play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.video-card--feature .video-card__play::before { left: 36px; top: 29px; border-left-width: 24px; border-top-width: 15px; border-bottom-width: 15px; }
.video-card__meta { position: absolute; z-index: 1; left: 20px; bottom: 16px; right: 20px; display: flex; flex-direction: column; }
.video-card__meta strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.video-card--feature .video-card__meta strong { font-size: 1.7rem; }
.video-card__meta span { color: var(--ink-soft); font-size: .85rem; }
/* ===== The act (short) ===== */
.act { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.act__photo { aspect-ratio: 4/5; max-height: 560px; }
.act .lead { color: var(--ink); max-width: 42ch; }
.act__facts { list-style: none; padding: 0; margin: 1.6rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
.act__facts li { border: 1px solid var(--line); border-radius: 999px; padding: .35em 1em; font-size: .88rem; color: var(--ink-soft); }
.act__facts strong { color: var(--accent); font-weight: 600; }
.act__rider { font-size: .9rem; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.act__rider:hover { color: var(--accent); border-color: var(--accent); }
.act--reverse { grid-template-columns: 1.1fr 0.9fr; }
.act__photo--wide { aspect-ratio: 4/3; object-position: 40% 50%; }
.h2-sub { display: block; font-size: .5em; color: var(--ink-soft); font-style: italic; margin-top: .3em; }
@media (max-width: 760px) {
  .act, .act--reverse { grid-template-columns: 1fr; }
  .act__photo { aspect-ratio: 16/10; object-position: 50% 30%; }
  .act__photo--tall { aspect-ratio: 3/4; max-height: none; }
}

/* ===== Work ===== */
.work-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.work-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work-mosaic__big { grid-column: span 2; aspect-ratio: 3/2; }
.work-mosaic .photo:not(.work-mosaic__big) { aspect-ratio: 4/3; }
.work-mosaic .photo:nth-child(3) { object-position: 50% 35%; }
.work-text h3, .work-card h3 { margin: .2em 0 .4em; }
.work-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 7vw, 80px); align-items: start; }
.work-card figure { margin: 0 0 1rem; position: relative; }
.work-card .photo { aspect-ratio: 4/5; }
.work-card .photo--landscape { aspect-ratio: 3/2; }
.work-stack { display: grid; gap: clamp(24px, 4vw, 40px); }
.work-card figcaption, .portrait-wrap figcaption { font-size: .72rem; color: var(--ink-soft); margin-top: .5rem; }
.work-card p { margin-bottom: 0; }
.work-card--text { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.work-card--text hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.portrait-wrap { margin: 0; }
@media (max-width: 860px) {
  .work-feature, .work-cards { grid-template-columns: 1fr; }
}

/* ===== Mime ===== */
.split--mime { align-items: center; }
.mime-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.mime-mosaic__big { grid-column: span 2; aspect-ratio: 16/10; }
.mime-mosaic .photo:not(.mime-mosaic__big) { aspect-ratio: 1; }
.mime-mosaic .photo:nth-child(2) { object-position: 70% 30%; }

/* ===== Photos scattered through the page ===== */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--stage-2); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2.2rem; }
.photo-pair .photo { aspect-ratio: 4/5; }
.photo--offset { transform: translateY(40px); }
.reveal.is-visible.photo--offset { transform: translateY(40px); }
.photo--wide { aspect-ratio: 21/9; margin-bottom: clamp(40px, 6vw, 70px); object-position: 50% 60%; }

.interlude { margin: 0; height: clamp(260px, 52vw, 640px); overflow: hidden; position: relative; }
.interlude img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; display: block; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--stage), transparent 18%, transparent 82%, var(--stage-2)); }

.watch-single { max-width: 380px; margin: 0 auto; }
.watch-single .video-card { aspect-ratio: 9/16; width: 100%; }
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.triptych > * { aspect-ratio: 9/16; }
.triptych .photo:last-child { object-position: 60% 50%; }
.note { margin-top: 1.4rem; font-size: .95rem; }
.note a { color: var(--accent); text-decoration: none; margin-left: .4em; }
@media (max-width: 760px) {
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych .video-card { grid-column: 1 / -1; aspect-ratio: 4/5; }
  .triptych .photo { aspect-ratio: 4/5; }
  .photo--wide { aspect-ratio: 16/9; }
}

.video-card__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* vertical (9:16) + landscape (16:9) side by side at equal height: 9/16 ÷ 16/9 ≈ 1 : 3.16 */
.videos--pair { grid-template-columns: 1fr 3.16fr; align-items: stretch; }
.video-card--vertical { aspect-ratio: 9/16; }
@media (max-width: 760px) {
  .videos, .videos--pair { grid-template-columns: 1fr; }
  .video-card--feature { aspect-ratio: 16/9; }
  .video-card--vertical { aspect-ratio: 4/5; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.gallery__item {
  margin: 0; position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: var(--img, none) center/cover, linear-gradient(160deg, #2b2530, #1a171c);
}
.gallery__item figcaption { position: absolute; left: 14px; bottom: 10px; font-size: .75rem; color: var(--ink-soft); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery__item--tall { grid-row: span 2; aspect-ratio: auto; } }

/* ===== In creation ===== */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.price { margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: .3em; }
.price__amount { color: var(--accent); font-size: 1.35rem; font-weight: 600; }
.price__note { color: var(--ink-soft); font-size: .85rem; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; font-size: .9rem; color: var(--ink-soft); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px; display: flex; flex-direction: column; color: var(--ink-soft); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -35px; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--stage); border: 1px solid var(--ink-soft);
}
.timeline li strong { color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.timeline__date { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline li.is-done::before { background: var(--ink-soft); }
.timeline li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(224,164,88,.18); }
.timeline li.is-now .timeline__date { color: var(--accent); }
.timeline li.is-now .timeline__date::after { content: " · now"; }
html[lang="lv"] .timeline li.is-now .timeline__date::after { content: " · tagad"; }

.journal { margin-top: clamp(50px, 8vw, 90px); border-top: 1px solid var(--line); padding-top: 2rem; }
.journal__entry { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 1rem 0; }
.journal__entry time { color: var(--accent); font-size: .9rem; }
.journal__entry p { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .journal__entry { grid-template-columns: 1fr; gap: 4px; } }

/* ===== About ===== */
.split--about { grid-template-columns: 1fr 1.3fr; align-items: center; }
@media (max-width: 860px) { .split--about { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: var(--img, none) center/cover, radial-gradient(ellipse at 50% 30%, #3a3140, #17141a 70%);
}
.role { color: var(--ink-soft); font-size: .95rem; margin-top: -.6rem; }
.works { list-style: none; padding: 0; margin: 0; }
.works li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: .7em 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.works li strong { color: var(--ink); font-weight: 500; display: block; }
.works__year { color: var(--accent); font-size: .85rem; padding-top: .1em; }
.works--compact li { padding: .5em 0; font-size: .88rem; }
.highlights { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.highlights li { display: flex; flex-direction: column; font-size: .95rem; }
.highlights span { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
@media (max-width: 500px) { .highlights { grid-template-columns: 1fr; } }

/* ===== Contact ===== */
.contact { text-align: center; background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(224,164,88,.14), transparent 70%); }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact__email {
  font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 3rem); text-decoration: none; margin: 1rem 0 2rem;
  border-bottom: 1px solid var(--accent); overflow-wrap: anywhere;
}
.contact__email:hover { color: var(--accent); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.contact__links a { color: var(--ink-soft); text-decoration: none; }
.contact__links a:hover { color: var(--ink); }

.footer { display: flex; justify-content: space-between; padding: 28px 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }
.footer p { margin: 0; }
.footer a { text-decoration: none; }

/* ===== Video modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,7,9,.92); }
.modal__box { position: relative; width: min(1100px, 100%); }
.modal__frame { aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.modal__frame iframe, .modal__frame video { width: 100%; height: 100%; border: 0; }
.modal__box.is-vertical { width: auto; }
.modal__box.is-vertical .modal__frame { aspect-ratio: 9/16; height: min(82vh, 160vw); margin: 0 auto; }
.modal__close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: var(--ink); font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
