/*
 * PRISIMINK V4.0
 * A clean stylesheet, not a patch layered onto V1/V2.
 * All typography is language-independent. The two translations share a
 * CSS grid cell, so its intrinsic height accommodates the longer translation.
 */
:root {
  color-scheme: light;
  --paper: #f4eee7;
  --paper-light: #faf7f2;
  --ink: #29221e;
  --muted: #625750;
  --wine: #491c29;
  --line: #c8baae;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 4rem);
  --section-gap: clamp(4rem, 8vw, 7.5rem);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}
body.has-dialog { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.375rem, 4.6vw, 4.25rem); }
h2 { font-size: clamp(2.125rem, 4.1vw, 3.875rem); }
h3 { font-size: clamp(1.3rem, 2.25vw, 2rem); line-height: 1.25; }
p { overflow-wrap: anywhere; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1280px); margin-inline: auto; }
section[id], main[id] { scroll-margin-top: 7rem; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.closing :focus-visible { outline-color: var(--paper); }
button, summary, a, input, textarea { -webkit-tap-highlight-color: transparent; }

/* Intrinsic bilingual sizing: no guessed fixed heights and no JS measuring.
 * visibility:hidden preserves layout but removes inactive text from interaction.
 */
.i18n { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.i18n > [data-lang] {
  grid-area: 1 / 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
html[lang="lt"] [data-lang="en"],
html[lang="en"] [data-lang="lt"] {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-250%);
  background: var(--paper-light);
  border: 1px solid var(--wine);
  padding: .75rem 1rem;
}
.skip-link:focus { transform: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  color: var(--paper-light);
  border-bottom: 1px solid rgba(250, 247, 242, .34);
  background: transparent;
  transition: color .24s ease, background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(244, 238, 231, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(41, 34, 30, .055);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 5.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: .22em;
}
.desktop-nav { display: flex; align-items: center; gap: 1.375rem; }
.desktop-nav a, .mobile-nav-panel > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.language-slot { min-width: 88px; }
.language-switch { display: none; }
.js-ready .language-switch { display: flex; }
.language-switch button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  width: 44px;
  min-height: 44px;
  font-size: .75rem;
  letter-spacing: .08em;
}
.language-switch button[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: .45em;
  color: inherit;
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 46px;
  max-width: 100%;
  padding: .8rem 1.15rem;
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
}
.button .i18n { flex: 0 1 auto; min-width: 0; }
.button-outline { color: var(--ink); }
.button-outline:hover { color: var(--paper-light); background: var(--ink); }
.button-dark { color: var(--paper-light); background: var(--wine); border-color: var(--wine); }
.button-dark:hover { background: #2e111b; border-color: #2e111b; }
.button-light { color: var(--paper-light); }
.button-light:hover { color: var(--wine); background: var(--paper-light); border-color: var(--paper-light); }
.arrow { flex-shrink: 0; font-size: 1rem; line-height: 1; letter-spacing: 0; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  max-width: 100%;
  border-bottom: 1px solid currentColor;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  line-height: 1.6;
}
.text-link .i18n { flex: 0 1 auto; min-width: 0; }
.text-link:hover { color: var(--wine); }
.mobile-nav { display: none; }
.mobile-nav > summary {
  list-style: none;
  min-height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.menu-icon { display: grid; gap: 6px; width: 23px; }
.menu-icon span { display: block; height: 1px; background: currentColor; }
.mobile-nav[open] .menu-icon { gap: 0; }
.mobile-nav[open] .menu-icon span:first-child { transform: rotate(45deg); }
.mobile-nav[open] .menu-icon span:last-child { transform: rotate(-45deg); }
.mobile-nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: .75rem;
  color: var(--ink);
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem var(--gutter) 1.75rem;
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* V4 hero: full-viewport moving background, one message and one CTA. */
.hero-video-section {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper-light);
  background-color: #312823;
  background-image: url("assets/hero-desktop-poster-20261004-v3.webp");
  background-size: cover;
  background-position: center;
}
.hero-media, .hero-shade {
  position: absolute;
  inset: 0;
}
.hero-media { z-index: -3; }
.hero-background-video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(24, 18, 16, .36) 0%, rgba(24, 18, 16, .18) 42%, rgba(31, 18, 23, .34) 100%),
    linear-gradient(90deg, rgba(73, 28, 41, .14), rgba(73, 28, 41, .02) 55%, rgba(73, 28, 41, .12));
}
.hero-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 6.75rem;
  padding-bottom: 6rem;
  text-align: center;
}
.hero-message {
  width: min(100%, 70rem);
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 5vh, 3.75rem);
}
.hero-message h1 {
  color: var(--paper-light);
  font-size: clamp(2.75rem, 5.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(0,0,0,.18);
}
.hero-reserve-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  min-height: 3.75rem;
  padding: .9rem 1.75rem;
  border: 1px solid rgba(250,247,242,.88);
  color: var(--paper-light);
  background: rgba(28, 20, 18, .08);
  font-size: .8rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.hero-reserve-button:hover,
.hero-reserve-button:focus-visible {
  color: var(--wine);
  background: var(--paper-light);
  border-color: var(--paper-light);
}
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  color: var(--paper-light);
}
.hero-scroll span {
  width: .7rem;
  height: .7rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-.16rem) rotate(45deg);
}
.hero-scroll::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: .68;
}

/* Main page structure. */
.section { padding-block: var(--section-gap); border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: start; gap: 1.5rem; margin-bottom: 2rem; color: var(--muted); }
.section-label > span { flex-shrink: 0; font-size: .625rem; padding-top: .05rem; }
.section-label p { max-width: 100%; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.body-copy { color: var(--muted); font-size: .9375rem; line-height: 1.85; }
.body-copy p + p { margin-top: 1.25rem; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-bottom: 3rem; }
.heading-note { font-size: .875rem; line-height: 1.85; color: var(--muted); padding-top: .2rem; }
.reel-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.reel-card { min-width: 0; }
.reel-surface { aspect-ratio: 9 / 16; }
.reel-surface-1 { background: linear-gradient(160deg, #eee4d9, #c8b7a8); }
.reel-surface-2 { background: linear-gradient(150deg, #d3c3b6, #bca390); }
.reel-surface-3 { background: linear-gradient(150deg, #d9cec6, #aa9284); }
.reel-card h3 { font-family: var(--sans); font-size: .6875rem; font-weight: 400; line-height: 1.65; letter-spacing: .06em; text-transform: uppercase; margin-top: 1rem; }
.swipe-hint { display: none; color: var(--muted); margin-top: 1rem; font-size: .625rem; }
.work-footer { display: flex; justify-content: center; margin-top: 2.5rem; }
.services > h2 { max-width: 55rem; margin-bottom: 3rem; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 44px; gap: 1.75rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.service-number { font-size: .6875rem; line-height: 2; color: var(--muted); padding-top: .35rem; }
.service-copy { min-width: 0; }
.service-copy p { max-width: 45rem; margin-top: .75rem; font-size: .875rem; line-height: 1.85; color: var(--muted); }
.service-link { align-self: start; display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid var(--line); font-size: 1.5rem; }
.service-link:hover { background: var(--paper-light); }
.section-bottom { display: flex; align-items: start; justify-content: space-between; gap: 2rem; margin-top: 2rem; }
.section-bottom > p { font-size: .8125rem; color: var(--muted); max-width: 32rem; }
.section-bottom > a { flex-shrink: 0; }
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.about-portrait { width: 100%; }
.portrait-surface { aspect-ratio: 4 / 5; background: linear-gradient(145deg, #d9ccbf, #bea795); }
.placeholder-name { font-family: var(--serif); font-size: clamp(3rem, 6vw, 6rem); font-style: italic; color: var(--wine); }
.about-copy h2 { margin-bottom: 2rem; font-size: clamp(2rem, 3.5vw, 3.3rem); }
.about-copy .text-link { margin-top: 1.5rem; }
.love .section-heading { margin-bottom: 0; }
.feedback-placeholder { border-left: 1px solid var(--line); padding-left: 2rem; }
.feedback-placeholder > p + p { margin-top: 1rem; font-size: .875rem; line-height: 1.85; color: var(--muted); }
.closing { padding-block: var(--section-gap); background: var(--wine); color: var(--paper-light); }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing .eyebrow { color: var(--paper-light); }
.closing h2 { max-width: 56rem; font-size: clamp(2.4rem, 5.5vw, 5rem); margin-block: 2rem; }
.closing-inner > p:not(.eyebrow) { max-width: 40rem; font-size: .9375rem; margin-bottom: 2rem; }
.site-footer { padding-block: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; min-width: 0; max-width: 100%; }
.footer-brand img { width: 64px; height: 64px; object-fit: cover; }
.footer-brand .wordmark { font-size: 1rem; }
.footer-brand p { font-size: .625rem; letter-spacing: .13em; text-transform: uppercase; margin-top: .35rem; color: var(--muted); }
.footer-meta { font-size: .625rem; line-height: 1.8; color: var(--muted); text-align: right; letter-spacing: .06em; }
.noscript-note { font-size: .8rem; }

/* Native modal: keyboard focus containment, Escape and top-layer behavior. */
#inquiryDialog {
  width: min(720px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
#inquiryDialog::backdrop { background: rgba(25, 18, 14, .65); }
.dialog-inner { position: relative; padding: clamp(1.25rem, 4vw, 3rem); padding-top: 3.25rem; min-width: 0; }
.dialog-close { position: absolute; right: .75rem; top: .75rem; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; font-size: 2rem; line-height: 1; }
.dialog-inner h2 { font-size: clamp(1.875rem, 4.5vw, 3.1rem); margin-block: 1.25rem; }
.dialog-inner > p:not(.eyebrow) { color: var(--muted); font-size: .875rem; line-height: 1.75; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .message-result > label { display: block; font-size: .75rem; line-height: 1.6; margin-bottom: .5rem; font-weight: 500; }
.field input, .field textarea, #preparedMessage {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  padding: .7rem .8rem;
  border: 1px solid #938377;
  border-radius: 0;
  background: #fffdfa;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
.field input[type="date"] { appearance: auto; -webkit-appearance: auto; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::placeholder, .field textarea::placeholder { color: #76675c; opacity: 1; }
.field textarea, #preparedMessage { resize: vertical; overflow-wrap: anywhere; }
.prepare-button { margin-top: 1.5rem; }
.privacy-note { margin-top: 1rem; font-size: .75rem; line-height: 1.7; color: var(--muted); }
.message-result { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.result-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.result-hint, .copy-status { margin-top: 1rem; font-size: .8125rem; line-height: 1.65; color: var(--muted); }
.copy-status { color: var(--wine); }
.copy-status:empty { display: none; }

/* Desktop navigation gives way before the labels can collide. */
@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-inner { gap: 1rem; min-height: 4.5rem; }
  .header-actions { gap: .375rem; }
  .story-grid { gap: 2.5rem; }
  .section-heading { gap: 2.5rem; }
  .about { gap: 2.5rem; }
  .about-copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
  .site-footer { justify-content: flex-start; }
  .footer-meta { margin-left: auto; }
}
@media (max-width: 700px) {
  html { scrollbar-gutter: auto; }
  :root { --gutter: 1.25rem; }
  .header-inner { gap: .5rem; }
  .wordmark { font-size: 1.05rem; letter-spacing: .17em; }
  .header-actions { gap: 0; }
  .hero-video-section { background-image: url("assets/hero-mobile-poster.webp"); }
  .hero-overlay { padding-top: 5.75rem; padding-bottom: 5.5rem; }
  .hero-message { width: min(100%, 34rem); gap: clamp(1.75rem, 5vh, 2.75rem); }
  .hero-message h1 { font-size: clamp(2.25rem, 10vw, 4.15rem); line-height: 1.04; }
  .hero-reserve-button { min-width: 10rem; min-height: 3.4rem; }
  .section-label { gap: 1rem; margin-bottom: 1.5rem; }
  .story-grid, .section-heading, .about { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .section-heading { margin-bottom: 2rem; }
  .reel-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .9rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .reel-card { scroll-snap-align: start; }
  .swipe-hint { display: block; }
  .service-row { grid-template-columns: 1.1rem minmax(0, 1fr) 44px; gap: .75rem; padding-block: 1.5rem; }
  .service-row h3 { font-size: 1.45rem; }
  .section-bottom { flex-direction: column; gap: 1.5rem; }
  .about-portrait { max-width: 380px; margin-inline: auto; }
  .about-copy h2 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .feedback-placeholder { padding-left: 1.25rem; }
  .site-footer { flex-direction: column; align-items: start; gap: 1.5rem; }
  .footer-meta { margin-left: 0; text-align: left; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .field-full { grid-column: auto; }
}
@media (max-width: 360px) {
  :root { --gutter: 1rem; }
  .wordmark { font-size: .9375rem; letter-spacing: .14em; }
  .hero-message h1 { font-size: clamp(2rem, 10.5vw, 2.65rem); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .text-link { transition: background-color .15s, color .15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-background-video { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .hero-background-video, .hero-scroll, .work-footer, .service-link, .button, .hero-reserve-button, .skip-link, dialog { display: none !important; }
  .wrap { width: 100%; }
  body, .closing { background: white; color: black; }
  .section { padding-block: 2rem; }
}
