@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* T-70: metric-matched fallbacks (local Arial / Liberation Sans, no download). They are used only while the web font is
   still loading (font-display: swap) and only for the same unicode-range as the web font, so the fallback text takes the
   same line breaks/height as Instrument Sans / Inter and nothing jumps at the swap. After the swap nothing changes. */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  font-weight: 400 500;
  font-style: normal;
  size-adjust: 104%;
  ascent-override: 93.27%;
  descent-override: 24.04%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  font-weight: 600 700;
  font-style: normal;
  size-adjust: 97.6%;
  ascent-override: 99.39%;
  descent-override: 25.61%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  font-weight: 400;
  font-style: normal;
  size-adjust: 106.5%;
  ascent-override: 90.97%;
  descent-override: 22.65%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans");
  font-weight: 500;
  font-style: normal;
  size-adjust: 109%;
  ascent-override: 88.88%;
  descent-override: 22.13%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  font-weight: 600;
  font-style: normal;
  size-adjust: 101.5%;
  ascent-override: 95.45%;
  descent-override: 23.76%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Surface */
  --bg: #0B0C0E;
  --bg-elevated: #12141A;
  --bg-soft: #1A1D26;

  /* Ink */
  --ink: #F4F1EA;
  --ink-muted: #A8A29A;
  --ink-faint: #8A847E;

  /* Accent — single warm highlight (lens flare / tungsten) */
  --accent: #E8C39A;
  --accent-soft: rgba(232, 195, 154, 0.14);

  /* Line / focus */
  --line: rgba(244, 241, 234, 0.10);
  --focus: #E8C39A;

  /* Type */
  --font-display: "Instrument Sans", "Instrument Sans Fallback", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --tracking-display: -0.02em;

  /* Space / radius */
  --radius-card: 14px;
  --radius-pill: 999px;
  --space-section: clamp(4.5rem, 10vw, 7.5rem);
  --max: 1120px;
  --nav-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

img,
iframe,
video {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(11, 12, 14, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}

.wordmark-mark {
  width: 38px;
  height: 38px;
  max-width: none;
  flex-shrink: 0;
  display: block;
}

.wordmark:hover {
  color: var(--ink);
  opacity: 0.92;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  padding: 2px;
  background: rgba(244, 241, 234, 0.06);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  margin-left: 0.55rem;
  padding-left: 2px;
  border-left: 0;
}

.lang-switch a {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  min-height: 2rem;
  min-width: 2.1rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  line-height: 1;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--accent);
}

.lang-switch a.is-on,
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.nav-socials {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.1rem;
}

.nav-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--ink-faint);
}

.nav-socials svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.nav-socials a:hover,
.nav-socials a:focus-visible {
  color: var(--accent);
}

.nav-links a {
  color: var(--ink-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--accent);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-drawer-header {
  display: none;
}

.nav-scrim {
  display: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.35rem;
}

.contact-to-booking {
  font-size: 0.92rem;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}

.contact-to-booking:hover,
.contact-to-booking:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


.contact-dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: min(32rem, calc(100vw - 2rem));
  width: 100%;
  margin: auto;
}

.contact-dialog::backdrop {
  background: rgba(6, 7, 9, 0.72);
}

.contact-dialog-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 1.15rem 1.15rem 1.25rem;
  max-height: min(92dvh, 920px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: var(--tracking-display);
}

.contact-dialog-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.contact-dialog-close:hover,
.contact-dialog-close:focus-visible {
  color: var(--accent);
}

.contact-dialog .contact-panel {
  margin: 0;
}

.contact-dialog .contact-form {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}


/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-poster {
  z-index: 0;
  transform-origin: 55% 45%;
  animation: kenburns 20s ease-out forwards;
}

.hero-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 320ms ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(11, 12, 14, 0.48) 0%,
      rgba(11, 12, 14, 0.08) 28%,
      rgba(11, 12, 14, 0.28) 58%,
      rgba(11, 12, 14, 0.88) 100%
    );
}

.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 110px 28px rgba(11, 12, 14, 0.36);
  background: radial-gradient(
    ellipse at center,
    transparent 52%,
    rgba(11, 12, 14, 0.26) 100%
  );
}

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--bg);
  z-index: 3;
  pointer-events: none;
}

.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto calc(4.5rem + clamp(1.25rem, 2.5vw, 2rem) + env(safe-area-inset-bottom, 0px));
}

.hero-kicker,
.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero h1,
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: 1.08;
  text-wrap: balance;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
}

.accent-line {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 92%;
}

.hero-sub {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 32rem;
}

.hero-sub2 {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  color: var(--bg);
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: rgba(232, 195, 154, 0.35);
}

/* ——— Sections ——— */
.section {
  padding: var(--space-section) 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
}

.work {
  border-top: 1px solid var(--line);
}

/* ——— Work grid ——— */
.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.work-card {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-elevated);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 420ms ease, box-shadow 420ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.work-still {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.work-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-chip {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 12, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}

.play-glyph {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.play-glyph::after {
  content: "";
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--ink);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
}

.work-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: var(--tracking-display);
}

.work-year {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* T-63: Renginių fotografija block (own heading + album grid) inside #work. */
.work-events {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.work-events .section-head {
  margin-bottom: 1.5rem;
}

.work-events .section-lead {
  max-width: 38rem;
}

/* ——— About ——— */
.about-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.about-portrait {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.about-portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.about-copy h2 {
  margin-bottom: 1rem;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.about-copy p:first-of-type + p,
.about-copy h2 + p {
  color: var(--ink-muted);
}

.gear {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.gear > span:first-child {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

/* ——— Contact ——— */
.contact {
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-intro h2 {
  margin-bottom: 0.85rem;
}

.contact-intro p {
  color: var(--ink-muted);
  max-width: 32rem;
}

.footer-socials a,
.ext-link {
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}

.footer-socials a:hover,
.ext-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.contact-form.is-submitting .field {
  opacity: 0.65;
  pointer-events: none;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-error {
  margin: 0;
  color: #F0A8A8;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  pointer-events: none;
  filter: none;
}

.thanks {
  margin: 0;
  padding: 1.75rem 1.5rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: var(--tracking-display);
}

.thanks-line {
  margin: 0;
}

.thanks-mail {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.thanks-mail a {
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}

.thanks-mail a:hover,
.thanks-mail a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.thanks-again-wrap {
  margin: 0;
}

.thanks-again {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}

.thanks-again:hover,
.thanks-again:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ——— Booking calendar ——— */
.booking {
  border-top: 1px solid var(--line);
}

.section-lead {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  max-width: 36rem;
  font-size: 1.02rem;
}

.booking-layout {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.booking-cal {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.1rem 1.25rem;
  min-width: 0;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cal-month {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  text-align: center;
  flex: 1;
  color: var(--ink);
}

.cal-nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-nav:hover,
.cal-nav:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.25rem 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.cal-day {
  min-height: 44px;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

.cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
  cursor: default;
}

.cal-day.is-free:hover,
.cal-day.is-free:focus-visible {
  border-color: rgba(232, 195, 154, 0.45);
  background: var(--accent-soft);
  outline: none;
}

.cal-day.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.cal-day.is-taken,
.cal-day.is-pending,
.cal-day.is-past {
  color: var(--ink-faint);
  background: var(--bg-soft);
  cursor: not-allowed;
}

.cal-day.is-taken {
  text-decoration: line-through;
  text-decoration-color: rgba(107, 101, 96, 0.55);
}

.cal-day.is-pending {
  border-style: dashed;
  border-color: rgba(232, 195, 154, 0.35);
  background: rgba(232, 195, 154, 0.06);
  text-decoration: none;
}

.cal-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.cal-legend {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.cal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.leg-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.leg-swatch.is-taken {
  background: var(--bg-soft);
}

.leg-swatch.is-pending {
  border-style: dashed;
  border-color: rgba(232, 195, 154, 0.45);
  background: rgba(232, 195, 154, 0.08);
}

.booking-panel {
  min-width: 0;
}

.booking-pick {
  margin: 0;
  padding: 1.5rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  color: var(--ink-muted);
  text-align: center;
  font-size: 0.98rem;
}

.booking-form .field textarea {
  min-height: 6rem;
}

.booking-form input[readonly] {
  color: var(--ink);
  opacity: 1;
  cursor: default;
}

@media (min-width: 900px) {
  .booking-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .cal-day {
    min-height: 44px;
    font-size: 0.88rem;
  }
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 calc(1.35rem + env(safe-area-inset-bottom, 0px));
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.footer-row p {
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--ink-faint);
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 12, 14, 0.7);
  color: var(--ink);
  cursor: pointer;
}

.lightbox-frame {
  touch-action: pan-y;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.lightbox-frame img,
.lightbox-frame iframe,
.lightbox-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.15rem 1.2rem;
}

.lightbox-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: var(--tracking-display);
}

.lightbox-meta p {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.ext-link {
  font-size: 0.88rem;
  white-space: nowrap;
}

body.is-locked {
  overflow: hidden;
}

/* ——— Motion ——— */
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-in {
  animation: fadeup 520ms ease-out forwards;
}

/* ——— Breakpoints ——— */
@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (min-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 3.5rem;
  }

}


@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-end {
    gap: 0.55rem;
  }

  .lang-switch {
    margin-left: 0;
  }

  .nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: calc(0.75rem + env(safe-area-inset-top, 0px))
      calc(1.25rem + env(safe-area-inset-right, 0px))
      calc(1.25rem + env(safe-area-inset-bottom, 0px))
      calc(1.25rem + env(safe-area-inset-left, 0px));
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* T-34: closed drawer stays inside the viewport and is clipped away. The old translateX(105%)
       parked it at x≈433–845, which widened the mobile layout viewport to ~846px → every
       position:fixed overlay (the photo viewer) became 846px wide on a 412px phone. */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.22s ease, visibility 0.22s;
  }

  .nav-drawer.is-open {
    clip-path: inset(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav-drawer-title {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .nav-drawer-close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
  }

  .nav-drawer-close:hover,
  .nav-drawer-close:focus-visible {
    color: var(--accent);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1.05rem;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav-socials {
    margin-top: auto;
    gap: 0.35rem;
  }

  .nav-socials a {
    width: 44px;
    height: 44px;
  }

  /* The opaque full-bleed drawer leaves no page surface to dim. */
  .nav-scrim {
    display: none !important;
  }

  .nav-scrim[hidden] {
    display: none !important;
  }

  .contact-dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    margin-top: auto;
    max-height: 92dvh;
  }

  .contact-dialog-panel {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 92dvh;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 721px) {
  .nav-drawer {
    display: contents;
  }

  .nav-drawer-header,
  .nav-toggle,
  .nav-scrim {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .lightbox {
    padding: 0;
    place-items: stretch;
  }

  .lightbox-panel {
    width: 100%;
    min-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    line-height: 1.14;
  }

  .nav-links {
    gap: 0.7rem;
    font-size: 0.8rem;
  }

  .wordmark-mark {
    width: 36px;
    height: 36px;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .lang-switch a {
    min-width: 2.1rem;
    padding: 0 0.4rem;
  }

  .nav-end {
    gap: 0.7rem;
  }

  .nav-socials {
    padding-left: 0.45rem;
    gap: 0;
  }

  .nav-socials a {
    width: 44px;
    height: 44px;
  }

  .wrap,
  .nav-inner,
  .hero-copy {
    width: min(100% - 1.5rem, var(--max));
  }
}

@media (max-width: 400px) {
  .nav-links {
    gap: 0.5rem;
    font-size: 0.76rem;
  }

  .nav-end {
    gap: 0.45rem;
  }

  .nav-brand {
    gap: 0.4rem;
  }

  .lang-switch a {
    min-width: 1.95rem;
    padding: 0 0.32rem;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-poster {
    animation: none;
    transform: none;
  }

  .hero-video {
    display: none !important;
    opacity: 0;
  }

  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .work-card {
    transition: border-color 200ms ease, background-color 200ms ease;
  }

  .work-card:hover,
  .work-card:focus-visible {
    transform: none;
    box-shadow: none;
    border-color: rgba(244, 241, 234, 0.22);
    background: var(--bg-soft);
  }

  .lang-switch a {
    transition: none;
  }
}

/* ——— T-20 Website › Settings: booking / contact switched off (SSR in index.php) ——— */
.booking-closed {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  max-width: 40rem;
}

.booking-closed-line {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: var(--tracking-display);
}

.contact-closed {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 32rem;
}

.contact-closed a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.contact-closed a:hover,
.contact-closed a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* ——— T-34 album cards (one card per album, rendered from albums.json) ——— */
a.work-card,
a.work-card:hover {
  color: inherit;
  text-decoration: none;
}

/* T-72: the Fotografija grid now holds 6 albums (4 event albums + Škoda Enyaq + Lexus GS300). The T-63 rule that
   switched this grid to 4 columns at 1200px+ is removed: 4 columns would leave an orphan row of 2 (4 + 2); the
   shared .work-grid breakpoints (1 / 2 / 3 columns at 640 / 900) give 3 + 3 at 1280, 1920 and every width >= 900. */

/* Android paints the tap highlight above the just-opened viewer; cards have their own focus ring. */
.work-card {
  -webkit-tap-highlight-color: transparent;
}

.work-card.has-album .album-glyph {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* small "photo stack" mark before the count */
.work-card.has-album .album-glyph::before {
  content: "";
  width: 0.72rem;
  height: 0.56rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: 2px -2px 0 -0.5px rgba(11, 12, 14, 0.9), 2px -2px 0 0.5px currentColor;
}

/* Lightbox: the single grid track can never grow past the viewport (T-32 chooser made it 846px on a
   412px phone → Chrome widened the layout viewport and the arrows / left album fell off-screen). */
.lightbox {
  grid-template-columns: minmax(0, 1fr);
}

.lightbox-panel {
  min-width: 0;
  max-width: 100%;
}

/* Photo albums: show the whole frame, no crop */
.lightbox-frame.is-gallery img {
  object-fit: contain;
}

/* T-63 (Mia): photo albums get a taller frame (≈70% of the viewport height) so square / portrait photos are not
   shrunk into a 16:9 strip; bars use the panel colour, not black. Video clips (.is-reel) keep their 16:9 frame. */
.lightbox-frame.is-gallery {
  aspect-ratio: auto;
  height: 70vh;
  height: 70dvh;
  max-height: 80vh;
  max-height: 80dvh;
  background: var(--bg-elevated);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 12, 14, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev { left: 0.65rem; }
.lightbox-next { right: 0.65rem; }

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.lightbox-meta {
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .lightbox-nav {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.45rem;
    z-index: 3;
  }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
  .lightbox-counter {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--ink);
    background: rgba(11, 12, 14, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.55rem;
  }
  .lightbox-panel:has(.lightbox-frame.is-gallery) {
    justify-content: center;
  }
}

/* ——— T-38 Reels: card glyph, picker grid, inline player, darker-cover label shading ——— */
/* Light shading behind card labels so type stays readable on the darkened covers (Mia). */
.work-still::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 1;
}
.work-still .cat-chip,
.work-still .play-glyph,
.work-still .album-glyph,
.work-still .reels-glyph { z-index: 2; }

.hero-video { filter: brightness(0.74); } /* match the darkened hero poster */

.work-card.has-reels .reels-glyph,
.work-card.has-reel .reels-glyph { /* T-45: single reel shows ▶ + duration */
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem 0.28rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.work-card.has-reels .reels-glyph::before,
.work-card.has-reel .reels-glyph::before { /* small play triangle */
  content: "";
  width: 0;
  height: 0;
  border-left: 0.5rem solid currentColor;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
}

.reel-picker {
  padding: 3.4rem 1rem 1rem; /* clear of ✕ */
  max-height: min(78vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.reel-picker[hidden] { display: none; }
.reel-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.reel-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, border-color 180ms ease;
}
.reel-tile:hover,
.reel-tile:focus-visible { transform: scale(1.02); border-color: var(--ink-faint); }
.reel-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.reel-dur {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 1;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 12, 14, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.reel-name {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.55rem;
  z-index: 1;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.25;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.lightbox-frame[hidden] { display: none; }
.lightbox-frame.is-reel video { object-fit: contain; background: #000; }
.lightbox-frame.is-reel.is-portrait {
  aspect-ratio: 9 / 16;
  height: min(72vh, 72dvh);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.reel-back {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  min-height: 2.4rem;
  cursor: pointer;
  white-space: nowrap;
}
.reel-back[hidden] { display: none; }

@media (max-width: 720px) {
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .reel-picker { padding: 3.4rem 0.75rem 0.75rem; max-height: none; flex: 1 1 auto; min-height: 0; }
  .lightbox-panel.is-reels { height: 100dvh; max-height: 100dvh; }
  .lightbox-panel:has(.lightbox-frame.is-reel) { justify-content: center; }
  .lightbox-frame.is-reel.is-portrait { height: min(70dvh, calc(100vw * 16 / 9)); }
}

/* T-38 follow-up (Mia): short fade above the picker footer so the last tile row reads as scrollable */
.reel-picker {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.2rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2.2rem), transparent);
  padding-bottom: 2rem;
}
@media (max-width: 720px) {
  .reel-picker { padding-bottom: 2rem; }
}

/* Privacy/retention: consent line under both form buttons + footer legal links */
.form-consent {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.45;
}
.form-consent a {
  color: #c9ccd2;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a {
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover,
.footer-legal a:hover {
  color: var(--ink);
}
.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-wrap {
  max-width: 46rem;
}
.legal-wrap h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}
.legal-draft,
.legal-todo {
  color: #F0A8A8;
}
/* Info notice + footer labels in the page language: html[data-lang] is set by index.php (SSR) and lang.js. LT is the default. */
.i18n-alt { display: none; }
html[data-lang="en"] .i18n-alt[lang="en"],
html[data-lang="pl"] .i18n-alt[lang="pl"] { display: inline; }
html[data-lang="en"] .i18n-lt,
html[data-lang="pl"] .i18n-lt { display: none; }
/* Mia #90: dialog bottom room, ~44px tap areas */
.contact-dialog .contact-form { padding-bottom: 16px; }
.footer-legal a,
.legal-wrap .legal-back a { display: inline-block; padding: 10px 0; }
.form-consent .nowrap { white-space: nowrap; }
