/* ====================================================================
   Studio Zalktis — styles
   Palette: deep ink background, warm amber accent, zalktis-green hint.
   ==================================================================== */

:root {
  --ink:        #0e0f12;
  --ink-2:      #15171c;
  --ink-3:      #1c1f26;
  --line:       rgba(255,255,255,0.10);
  --line-2:     rgba(255,255,255,0.18);
  --text:       #ece9e2;
  --text-soft:  #a9a59b;
  --text-dim:   #76736b;
  --amber:      #e9a13b;
  --amber-soft: #f0c074;
  --green:      #5dcaa5;
  --maxw:       1120px;
  --font-disp:  "Fraunces", Georgia, serif;
  --font-body:  "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

em { font-style: italic; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------------------------- NAV ---------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(14,15,18,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-disp); font-weight: 500; font-size: 1.05rem;
  letter-spacing: .01em;
}
.nav__mark { color: var(--green); display: flex; }
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2rem); font-size: .97rem; color: var(--text-soft); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }

/* Below ~640px the five links + wordmark exceed the viewport's width and were
   forcing the whole page wider than the screen. Let both rows wrap instead. */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; row-gap: .5rem; padding: .85rem 1.2rem; }
  .nav__links { flex-wrap: wrap; gap: .4rem .95rem; font-size: .9rem; justify-content: flex-end; }
}

/* ---------------------------- HERO ---------------------------- */
.hero {
  position: relative;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-disp); font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.04;
  letter-spacing: -0.02em; margin-bottom: 1.6rem; max-width: none;
}
.hero__title em { color: var(--amber-soft); }
.hero__lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft);
  max-width: 58ch; margin-bottom: 2.6rem; line-height: 1.68;
}
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(40rem 28rem at 78% -8%, rgba(233,161,59,0.16), transparent 60%),
    radial-gradient(34rem 26rem at 6% 16%, rgba(93,202,165,0.10), transparent 60%);
}

/* ---------------------------- BUTTONS ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-soft); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-soft); }

/* ---------------------------- SECTIONS ---------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.2rem, 10vh, 7.5rem) clamp(1.2rem, 4vw, 3rem); }
.section__head { margin-bottom: clamp(2.4rem, 5vh, 3.6rem); }
.section__title { font-family: var(--font-disp); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; line-height: 1.12; }
.section__sub { color: var(--text-soft); margin-top: .8rem; font-size: 1.12rem; max-width: 58ch; line-height: 1.6; }

/* ---------------------------- CURRENT WORK — THE FOUR ---------------------------- */
.prod-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.9rem); position: relative; }
@media (min-width: 900px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .prod-grid--single { grid-template-columns: 1fr; } }
.prod-grid--single { margin-bottom: clamp(1.2rem, 2.5vw, 1.9rem); }

/* The auseklis at the crossing of the four. It only exists where there IS a
   crossing — below 900px the grid is a single column and the sign is hidden. */
.prod-grid__star {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; display: none;
  width: 62px; height: 62px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--ink); border: 1px solid rgba(233,161,59,0.35);
  color: var(--amber); box-shadow: 0 0 0 6px var(--ink), 0 10px 30px -12px rgba(0,0,0,.9);
}
.prod-grid__star svg { width: 30px; height: 30px; }
@media (min-width: 900px) { .prod-grid__star { display: flex; } }
@media (prefers-reduced-motion: no-preference) {
  .prod-grid__star { transition: color .4s ease, border-color .4s ease; }
  .prod-grid:hover .prod-grid__star { color: var(--amber-soft); border-color: rgba(233,161,59,0.6); }
}
.weave-banner {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(340px, 52vh, 520px);
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(233,161,59,0.25);
  box-shadow: 0 30px 70px -35px rgba(0,0,0,0.9);
  transition: transform .3s ease, border-color .3s ease;
}
.weave-banner:hover { transform: translateY(-4px); border-color: rgba(233,161,59,0.55); }
.weave-banner__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .8s ease;
}
.weave-banner:hover .weave-banner__video { transform: scale(1.03); }
.weave-banner__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,6,0.88) 0%, rgba(10,9,6,0.35) 45%, rgba(10,9,6,0.15) 100%);
}
.weave-banner__content { position: relative; padding: clamp(1.6rem, 4vw, 3rem); max-width: 620px; }
.weave-banner__kicker {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: #f0cd7e; margin-bottom: .7rem; text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.weave-banner__title {
  font-family: var(--font-disp); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1;
  color: #f5efe2; text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.weave-banner__tag {
  font-family: var(--font-disp); font-style: italic;
  color: #f0cd7e; font-size: clamp(1rem, 2vw, 1.2rem); margin-top: .5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.8);
}
.weave-banner__desc {
  color: #ddd7c9; font-size: 1.04rem; line-height: 1.6; margin-top: .9rem; max-width: 54ch;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.weave-banner__cta {
  display: inline-block; margin-top: 1.2rem;
  font-weight: 500; font-size: .95rem; color: #e8b84b;
  border-bottom: 1px solid rgba(232,184,75,0.6); padding-bottom: 2px;
  transition: color .2s;
}
.weave-banner:hover .weave-banner__cta { color: #f0cd7e; }
.weave-banner__ctas { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.weave-banner__ctas .weave-banner__cta { text-decoration: none; }
.weave-banner__ctas .weave-banner__cta:hover { color: #fff; border-bottom-color: #fff; }

/* two-up sizing */
@media (min-width: 900px) {
  .prod-grid .weave-banner { min-height: clamp(380px, 48vh, 500px); }
  .prod-grid .weave-banner__title { font-size: clamp(2rem, 3.4vw, 3.1rem); }
  .prod-grid .weave-banner__desc { font-size: .99rem; }
  .prod-grid .weave-banner__content { padding: clamp(1.4rem, 2.6vw, 2.2rem); }
}

/* Heartwood variant — pinewood & truth-gold */
.weave-banner--heartwood { border-color: rgba(217, 164, 65, 0.28); }
.weave-banner--heartwood:hover { border-color: rgba(236, 198, 120, 0.6); }
.weave-banner--heartwood .weave-banner__shade {
  background: linear-gradient(to top, rgba(8, 6, 3, 0.9) 0%, rgba(8, 6, 3, 0.38) 45%, rgba(8, 6, 3, 0.12) 100%);
}

/* Māra variant — Mars rust over Baltic amber */
.weave-banner--mara { border-color: rgba(198, 106, 61, 0.30); }
.weave-banner--mara:hover { border-color: rgba(226, 146, 92, 0.62); }
.weave-banner--mara .weave-banner__shade {
  background: linear-gradient(to top, rgba(14, 6, 3, 0.90) 0%, rgba(24, 10, 5, 0.40) 45%, rgba(24, 10, 5, 0.12) 100%);
}

/* Everything, Ever variant — deep-time blue */
.weave-banner--everything { border-color: rgba(93, 202, 165, 0.24); }
.weave-banner--everything:hover { border-color: rgba(93, 202, 165, 0.55); }
.weave-banner--everything .weave-banner__shade {
  background: linear-gradient(to top, rgba(4, 8, 14, 0.90) 0%, rgba(6, 12, 20, 0.38) 45%, rgba(6, 12, 20, 0.12) 100%);
}
.weave-banner--everything .weave-banner__kicker,
.weave-banner--everything .weave-banner__tag { color: #8fe0c4; }
.weave-banner--everything .weave-banner__cta { color: #8fe0c4; border-bottom-color: rgba(143,224,196,.6); }

/* ---------------------------- PROJECTS ---------------------------- */
.projects { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
@media (min-width: 760px) { .projects { grid-template-columns: repeat(2, 1fr); } }

.project {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.project:hover { transform: translateY(-4px); border-color: var(--line-2); }
.project__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }
.project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.project:hover .project__media img { transform: scale(1.04); }

.project__media--art { display: flex; }
.art-card {
  width: 100%; display: flex; flex-direction: column; justify-content: center; gap: .6rem;
  padding: 2rem; background:
    radial-gradient(20rem 14rem at 80% 10%, rgba(93,202,165,0.18), transparent 60%),
    linear-gradient(135deg, #181b22, #23272f);
}
.art-card__kicker { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--green); }
.art-card__title { font-family: var(--font-disp); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; color: var(--text); }

/* Zin-Art variant — Latvian carmine, echoes the museum's cover */
.art-card--zin {
  background:
    radial-gradient(22rem 15rem at 15% 110%, rgba(0,0,0,0.35), transparent 65%),
    linear-gradient(135deg, #9e3039, #6f1f27);
}
.art-card--zin .art-card__kicker { color: #eec9a8; }
.art-card--zin .art-card__title { color: #f7f3ea; }
.art-card__ornament { width: min(100%, 260px); height: 18px; margin-bottom: .4rem; opacity: .85; }

.project__body { padding: 1.7rem 1.8rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.project__tag { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: .7rem; }
.project__title { font-family: var(--font-disp); font-weight: 500; font-size: 1.56rem; margin-bottom: .65rem; line-height: 1.16; }
.project__desc { color: var(--text-soft); font-size: 1.05rem; line-height: 1.65; flex: 1; }
.project__links { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1.4rem; }
.project__links a { font-size: .96rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.project__links a:hover { color: var(--amber-soft); border-color: var(--amber); }

/* ---------------------------- VIDEOS ---------------------------- */
.videos { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .videos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .videos { grid-template-columns: repeat(4, 1fr); } }

.video { display: flex; flex-direction: column; gap: .65rem; }
.video__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.video:hover .video__thumb img { transform: scale(1.06); }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,15,18,0.55); color: #fff; border-radius: 50%;
  font-size: .85rem; padding-left: 3px; backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s, transform .25s; transform: scale(.8);
}
.video:hover .video__play { opacity: 1; transform: scale(1); }
.video__label { font-size: 1.02rem; font-weight: 500; color: var(--text); line-height: 1.35; }
.video__label em { color: var(--amber); font-style: italic; font-weight: 400; font-size: .88em; }
.video:hover .video__label { color: var(--amber-soft); }

.films__more { margin-top: clamp(2rem, 4vh, 3rem); display: flex; justify-content: center; }

/* ---------------------------- ABOUT ---------------------------- */
.section--about { border-top: 1px solid var(--line); }
.about { max-width: 68ch; }
.about p { color: var(--text-soft); font-size: 1.16rem; line-height: 1.7; margin-top: 1.35rem; }
.about em { color: var(--green); font-style: italic; }
.about__contact { margin-top: 1.8rem; }
.about__contact a { color: var(--amber-soft); border-bottom: 1px solid var(--amber); padding-bottom: 1px; }

/* ---------------------------- FOOTER ---------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1.2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .9rem; color: var(--text-dim);
}
.footer__links { display: flex; gap: 1.4rem; }
.footer__links a:hover { color: var(--amber-soft); }

/* ---------------------------- REVEAL ANIMATION ---------------------------- */
/* The hidden state only exists when JS is running (a <head> one-liner adds .js),
   so with JavaScript off the page renders fully visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
