/* =============================================================
   Green Line Studio — styles.css
   1. Fonts · 2. Tokens · 3. Reset · 4. Utilities · 5. Components
   6. Sections · 7. Effects · 8. Responsive · 9. Reduced motion
   ============================================================= */

/* 1. Fonts (self-hosted, one variable file per family, subset to Latin + Romanian: no request to Google) */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-ro.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/work-sans-ro.woff2") format("woff2");
}

/* 2. Tokens */
:root {
  /* Colour: ivory ground, deep green ink, sand fields, soft gold action */
  --bg: #f3efe6;
  --surface: #e8e0d1;
  --ink: #1d2a23;
  --muted: #4c5a51;
  --dark: #17241e;
  --on-dark: #efebe1;
  --on-dark-muted: #b3bdb2;
  --sage: #8fa68e;
  --accent: #b8935a;
  --accent-hover: #c9a56b;
  --accent-ink: #17241e;
  --leaf: #8cc63f; /* the lime of the original logo, used once: the "open" dot */

  /* Type */
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.08rem + 0.7vw, 1.75rem);
  --step-head: clamp(2.125rem, 1.4rem + 3.1vw, 4.25rem);
  --step-display: clamp(4.5rem, 2rem + 11vw, 11.5rem);

  /* Space */
  --m: clamp(20px, 4vw, 56px);      /* outer margin, equal on both sides */
  --gutter: clamp(12px, 1.6vw, 24px);
  --section: clamp(80px, 9.5vw, 156px);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* 3. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--sage); color: var(--dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* 4. Utilities */
.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; background: var(--bg); color: var(--ink);
}
.skip-link:focus { top: 16px; }
.h2 {
  font-family: var(--serif);
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.note { font-size: var(--step-small); color: var(--muted); margin-top: 24px; }
.pending {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #7a4b16;
  background: #f1dfc0;
  padding: 1px 6px;
  white-space: nowrap;
}

/* 5. Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent-hover); }
  .btn--ghost:hover { background: var(--ink); color: var(--bg); }
}
.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-underline-offset 250ms var(--ease-out), text-decoration-color 250ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-underline-offset: 8px; text-decoration-color: var(--accent); }
}

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--m);
  color: var(--on-dark);
  transition: background-color 300ms ease, color 300ms ease, transform 400ms var(--ease-out);
}
.nav.is-solid { background: var(--bg); color: var(--ink); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -0.01em; margin-right: auto; }
.nav__links { display: none; gap: 28px; font-size: 0.9375rem; }
.nav__links a { padding-block: 10px; opacity: 0.85; transition: opacity 200ms ease; }
.nav__links a:hover, .nav__links a[aria-current="true"] { opacity: 1; }
.nav__cta { display: none; min-height: 42px; padding: 8px 18px; font-size: 0.9375rem; }
.nav__menu { min-height: 44px; padding: 8px 4px; font-weight: 500; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px var(--m) 40px;
}
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.15; }

/* 6. Sections ------------------------------------------------- */

/* Hero: two prints in the dark */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  color: var(--on-dark);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto auto;
  column-gap: var(--gutter);
  padding: 92px var(--m) 28px;
  overflow: hidden;
  isolation: isolate;
}
.hero__print { position: relative; z-index: 2; }
.hero__print--main {
  grid-column: 3 / 13; grid-row: 1;
  align-self: start;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.hero__print--main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__print--main img.is-active { opacity: 1; }
.hero__print--small {
  grid-column: 1 / 5; grid-row: 1;
  align-self: end;
  margin-bottom: -24px;
  aspect-ratio: 1;
  filter: brightness(0.7);
  z-index: 3;
}
.hero__print--small img { width: 100%; height: 100%; object-fit: cover; }
.hero__copy { grid-column: 1 / -1; grid-row: 2; margin-top: 48px; z-index: 3; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 8.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 13em;
}
.hero__rating { margin-top: 14px; font-size: var(--step-small); color: var(--on-dark-muted); }
.hero__rating span { color: var(--accent); }
.hero__aside { grid-column: 1 / -1; grid-row: 3; margin-top: 20px; z-index: 3; }
.hero__lead { font-size: 1rem; color: var(--on-dark-muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 22px; }
.hero__line {
  position: absolute; left: 0; right: 0; bottom: 30%;
  width: 100%; height: 22vh; z-index: 1;
  pointer-events: none;
}
.hero__line path {
  fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round;
  vector-effect: non-scaling-stroke; opacity: 0.55;
}

/* Intro: pinned statement, photographs pass in the side lanes */
.intro { background: var(--bg); }
.intro__stage { position: relative; }
.intro__pin {
  display: flex; align-items: center;
  padding: var(--section) var(--m) 56px;
}
.intro__statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  max-width: 24ch;
}
.intro__photo { padding-inline: var(--m); margin-bottom: 40px; }
.intro__photo--a { width: 88%; margin-left: auto; padding-left: 0; }
.intro__photo--b { width: 72%; padding-right: 0; }
.intro__photo--c { width: 56%; margin-left: auto; padding-left: 0; }
.intro__photo video, .intro__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.intro__photo--b img, .intro__photo--c img { aspect-ratio: 4 / 5; }
.intro__photo figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

.about {
  display: grid; gap: 40px;
  padding-top: clamp(72px, 9vw, 160px);
  padding-bottom: var(--section);
}
.about__text p, .intro__statement { text-wrap: pretty; }
.about__text { display: grid; gap: 18px; max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); margin-top: 24px; }
.facts dt { font-family: var(--serif); font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; }
.facts dd { margin: 8px 0 0; font-size: var(--step-small); color: var(--muted); max-width: 20ch; }

/* Services: statement, menu pushed right */
.services { padding-bottom: var(--section); }
.services__head { display: grid; gap: 24px; }
.services__title { max-width: 14ch; }
.services__intro { max-width: 52ch; }
.services__body { display: grid; gap: 48px; margin-top: 56px; }
.services__aside { display: grid; gap: 16px; align-content: start; width: 62%; margin-left: auto; min-width: 0; }
.services__panel { min-width: 0; }
.services__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.services__brands { font-size: var(--step-small); color: var(--muted); }
.services__brands strong { color: var(--ink); font-weight: 500; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs [role="tab"] {
  flex: none;
  min-height: 44px; padding: 10px 16px;
  font-size: 0.9375rem; font-weight: 500;
  background: var(--surface); color: var(--ink);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.tabs [role="tab"]:active { transform: scale(0.97); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabpanel { padding-top: 36px; }
.tabpanel:focus-visible { outline-offset: 8px; }

.concerns { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.concerns legend { font-family: var(--serif); font-size: var(--step-lead); margin-bottom: 16px; padding: 0; }
.concerns label {
  position: relative; display: inline-flex; align-items: center;
  min-height: 40px; padding: 8px 14px;
  font-size: 0.9375rem; background: var(--surface); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.concerns label:active { transform: scale(0.97); }
.concerns input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.concerns label:has(input:checked) { background: var(--sage); color: var(--dark); }
.concerns label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.concerns__count { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }

.menu { margin-top: 20px; }
.menu li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  padding-block: 13px;
  transition: opacity 300ms ease;
}
.menu li:nth-child(4n + 1):not(:first-child) { margin-top: 18px; }
.menu__name { font-family: var(--serif); font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.25; }
.menu__desc { grid-column: 1; font-size: 1rem; color: var(--muted); margin-top: 4px; max-width: 58ch; }
.menu__val { grid-column: 2; grid-row: 1; justify-self: end; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; padding-top: 4px; }
.menu li.is-filtered { display: none; }
.menu li.is-entering { animation: rowIn 420ms var(--ease-out) both; }
.tabpanel .btn { margin-top: 28px; }

/* Gallery: prints gathered round a heading */
.gallery { background: var(--surface); }
.gallery__field { position: relative; padding: var(--section) var(--m); }
.gallery__center { text-align: center; max-width: 30ch; margin-inline: auto; display: grid; gap: 14px; justify-items: center; position: relative; z-index: 2; }
.gallery__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.gallery__center p { font-size: 1rem; }
.gallery__prints {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-top: 48px;
}
.gallery__prints li:nth-child(3n + 2) { transform: translateY(28px); }
.gallery__prints button { display: block; width: 100%; padding: 0; cursor: zoom-in; overflow: hidden; }
.gallery__prints img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gallery__prints button:hover img { transform: scale(1.04); }
}

/* Team */
.team { padding-block: var(--section); }
.team__grid { display: grid; gap: 40px; }
.team__title { font-family: var(--serif); font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.04em; }
.team__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.team__people { display: grid; gap: 40px; }
.person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; }
.person__mono {
  display: grid; place-items: center; aspect-ratio: 4 / 5;
  background: var(--surface); font-family: var(--serif); font-size: 2.25rem; color: var(--muted);
}
.person__name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.person__role { font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.person__quote { margin: 16px 0 0; }
.person__quote p { font-size: 1rem; }
.person__quote footer { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }

/* Reviews */
.reviews { background: var(--dark); color: var(--on-dark); padding-block: var(--section); }
.reviews__grid { display: grid; gap: 48px; }
.reviews__score { display: grid; gap: 16px; align-content: start; }
.reviews__score > p:not(.reviews__big) { color: var(--on-dark-muted); max-width: 36ch; font-size: 1rem; }
.reviews__big { display: flex; align-items: baseline; gap: 18px; }
.reviews__big span:first-child { font-family: var(--serif); font-size: clamp(5rem, 3rem + 8vw, 9.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.reviews__stars { display: flex; gap: 4px; color: var(--accent); }
.reviews__stars svg { width: 20px; height: 20px; fill: currentColor; }
.link--light { color: var(--on-dark); justify-self: start; }
.reviews__photo { width: 44%; justify-self: end; }
.reviews__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.quote-track { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), visibility 0s 600ms; }
.quote.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.quote p { font-family: var(--serif); font-size: clamp(1.375rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; max-width: 36ch; }
.quote footer { margin-top: 22px; font-size: 1rem; color: var(--on-dark-muted); }
.quote-nav { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.quote-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--on-dark); color: var(--dark); font-size: 1.125rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.quote-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .quote-btn:hover { background: var(--accent); } }
.quote-count { font-size: var(--step-small); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: center; }

/* Booking */
.booking { padding-block: var(--section); }
.booking__grid { display: grid; gap: 56px; }
.booking__intro { display: grid; gap: 22px; align-content: start; }
.booking__lead { font-size: var(--step-body); max-width: 40ch; }
.booking__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.booking__mail { font-size: 1rem; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font-size: 16px; /* no zoom on iOS */
  background: var(--surface); border: 0; border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2a23' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); background: #efe7d9; }
.field [aria-invalid="true"] { border-bottom-color: #a33a2a !important; }
.field__hint { font-size: var(--step-small); color: var(--muted); }
.field--check { grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: 0.9375rem; }
.form__error { color: #8f2f22; font-weight: 500; font-size: 0.9375rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Location */
.location { background: var(--surface); padding-block: var(--section); }
.location__grid { display: grid; gap: 48px; }
.location__info { display: grid; gap: 18px; align-content: start; }
.location__addr { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.25; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.is-open .status__dot { background: var(--leaf); box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.6); animation: pulse 2.4s ease-out infinite; } /* taste-skill-ignore: live status pulse */
.status.is-closed .status__dot { background: #b0563f; }
.hours { border-collapse: collapse; font-size: 1rem; }
.hours caption { text-align: left; font-size: var(--step-small); color: var(--muted); padding-bottom: 6px; }
.hours th { text-align: left; font-weight: 400; padding: 4px 32px 4px 0; }
.hours td { font-variant-numeric: tabular-nums; }
.location__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 6px; }
.map { position: relative; min-height: 420px; background: var(--dark); overflow: hidden; }
.map__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72); }
.map::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(16, 26, 21, 0.85)); z-index: 1; } /* taste-skill-ignore: neutral scrim over photo */
.map__consent {
  position: relative; z-index: 2; height: 100%; min-height: 420px;
  display: grid; align-content: end; justify-items: start; gap: 18px;
  padding: 28px; color: var(--on-dark);
}
.map__consent p { max-width: 36ch; font-size: 1rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* Footer: columns above, wordmark below */
.footer {
  background: var(--dark); color: var(--on-dark);
  min-height: 80svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 56px var(--m) 24px;
}
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gutter); font-size: 0.9375rem; }
.footer__h { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; margin-bottom: 8px; }
.footer__cols p { color: var(--on-dark-muted); line-height: 1.8; overflow-wrap: anywhere; }
.booking__mail { overflow-wrap: anywhere; }
.footer__cols a, .footer__btn { color: var(--on-dark-muted); transition: color 200ms ease; }
.footer__cols a:hover, .footer__btn:hover { color: var(--on-dark); }
.footer__btn { padding: 0; font-size: inherit; text-align: left; }
.footer__word {
  grid-row: 3;
  font-family: var(--serif); line-height: 0.88; letter-spacing: -0.04em;
  font-size: 19vw; margin-top: 15svh;
  display: grid;
}
.footer__legal { grid-row: 4; margin-top: 24px; display: grid; gap: 10px; font-size: 0.8125rem; color: var(--on-dark-muted); }
.footer__credits { max-width: 72ch; }
.footer .pending { color: #f1dfc0; background: transparent; padding: 0; }

/* Cookie banner, lightbox, cursor */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--bg); color: var(--ink);
  padding: 16px 16px 14px; display: grid; gap: 6px; max-width: 420px;
  box-shadow: 0 18px 48px rgba(10, 20, 15, 0.28); /* taste-skill-ignore: floating consent overlay */
  font-size: 0.875rem; line-height: 1.45;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  animation: rise 500ms var(--ease-out) both;
}
.cookie__title { font-family: var(--serif); font-size: 1.125rem; }
.cookie__actions { display: flex; gap: 8px; margin-top: 6px; }
.cookie__actions .btn { flex: 1; min-height: 44px; padding: 8px 12px; font-size: 0.9375rem; }
@media (min-width: 960px) {
  .cookie { padding: 22px; gap: 10px; font-size: 0.9375rem; }
  .cookie__title { font-size: 1.375rem; }
  .cookie__actions .btn { flex: none; padding: 10px 20px; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92svh; margin: auto; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 22, 18, 0.92); }
.lightbox[open] { animation: zoomIn 320ms var(--ease-out); }
.lightbox img { max-height: calc(92svh - 64px); width: auto; margin-inline: auto; object-fit: contain; }
.lightbox__bar { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.lightbox__bar button { min-width: 48px; min-height: 44px; padding: 8px 16px; background: var(--on-dark); color: var(--dark); font-weight: 500; transition: transform 160ms var(--ease-out); }
.lightbox__bar button:active { transform: scale(0.96); }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 80;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    pointer-events: none;
    transition: width 300ms var(--ease-out), height 300ms var(--ease-out), margin 300ms var(--ease-out), opacity 200ms ease;
    opacity: 0;
  }
  .has-cursor .cursor.is-visible { opacity: 1; }
  .has-cursor .cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .cursor span { font-size: 0.8125rem; font-weight: 500; opacity: 0; transition: opacity 200ms ease; }
  .cursor.is-big span { opacity: 1; }
}

/* 7. Effects ---------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero__title .w { display: inline-block; opacity: 0; transform: translateY(0.3em); transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .hero.is-in .hero__title .w { opacity: 1; transform: none; }
@media (min-width: 960px) and (hover: hover) {
  /* desktop only: the words arrive out of a soft blur */
  .js .hero__title .w { filter: blur(8px); transition-property: opacity, transform, filter; }
  .js .hero.is-in .hero__title .w { filter: blur(0); }
}
.js .hero__print--small, .js .hero__aside, .js .hero__rating { opacity: 0; transform: translateY(24px); transition: opacity 1200ms var(--ease-out), transform 1200ms var(--ease-out); }
/* The main print is the LCP element: it paints at once and only settles from a slight zoom */
.js .hero__print--main { overflow: hidden; }
.js .hero__print--main img.is-active { transform: scale(1.06); transition: opacity 1.6s ease, transform 1800ms var(--ease-out); }
.js .hero.is-in .hero__print--main img.is-active { transform: none; }
.js .hero.is-in .hero__print--small { opacity: 1; transform: none; transition-delay: 450ms; }
.js .hero.is-in .hero__rating { opacity: 1; transform: none; transition-delay: 700ms; }
.js .hero.is-in .hero__aside { opacity: 1; transform: none; transition-delay: 800ms; }
.js .hero__line { opacity: 0; transform: translateX(-6%); transition: opacity 2s ease 400ms, transform 2.6s var(--ease-out) 400ms; }
.js .hero.is-in .hero__line { opacity: 1; transform: none; }
[data-drift] { will-change: transform; }

/* Safety net: if main.js never runs, everything hidden for an entrance appears after 3s */
.js:not(.is-ready) .hero:not(.is-in) .hero__title .w,
.js:not(.is-ready) .hero:not(.is-in) .hero__print--small,
.js:not(.is-ready) .hero:not(.is-in) .hero__aside,
.js:not(.is-ready) .hero:not(.is-in) .hero__rating,
.js:not(.is-ready) [data-reveal]:not(.is-in) { animation: failsafe 0.6s ease 3s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; filter: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(140, 198, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); } } /* taste-skill-ignore: pulse ring */

/* 8. Responsive ------------------------------------------------- */
@media (min-width: 540px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .field--wide { grid-column: 1 / -1; }
  .footer__word { font-size: 14vw; }
}

@media (min-width: 720px) {
  .hero__print--main { grid-column: 5 / 12; }
  .hero__print--small { grid-column: 1 / 4; }
  .hero__copy { grid-column: 1 / 11; }
  .hero__title { font-size: clamp(2.5rem, 6vw, 3.25rem); max-width: none; }
  .hero__aside { grid-column: 1 / 9; }
  .services__aside { width: 48%; }
  .gallery__prints { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery__prints li:nth-child(3n + 2) { transform: none; }
  .gallery__prints li:nth-child(2n) { transform: translateY(36px); }
  .reviews__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .reviews__score { grid-column: 1 / 8; }
  .reviews__photo { grid-column: 9 / 13; width: 100%; }
  .reviews__quotes { grid-column: 1 / 13; }
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .nav { padding-block: 18px; }
  .nav__links, .nav__cta { display: flex; }
  .nav__menu { display: none; }

  /* Hero composition */
  .hero { grid-template-rows: 1fr auto auto; padding-top: 96px; }
  .hero__print--main {
    grid-column: 7 / 13; grid-row: 1 / 4;
    justify-self: end; align-self: start;
    height: max(480px, calc(100svh - 124px)); width: auto; max-width: 100%;
  }
  .hero__print--small { grid-column: 2 / 4; grid-row: 1; align-self: start; margin: 2svh 0 0; }
  .hero__copy { grid-column: 1 / 7; grid-row: 2; align-self: end; margin: 0; }
  .hero__title { font-size: clamp(2.75rem, 4.6vw, 5.25rem); max-width: none; }
  .hero__aside { grid-column: 1 / 6; grid-row: 3; align-self: end; margin-top: 28px; }

  /* Intro: pinned statement, photos pass in lanes either side */
  .intro__stage { height: 200svh; }
  .intro__pin {
    position: sticky; top: 0; height: 100svh; min-height: 0;
    padding: 0 var(--m);
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center;
  }
  .intro__statement { grid-column: 3 / 10; max-width: none; }
  .intro__photo { position: absolute; padding: 0; margin: 0; z-index: 1; }
  .intro__photo--a { top: 18svh; right: var(--m); width: 26vw; }
  .intro__photo--a video { aspect-ratio: 4 / 5; }
  .intro__photo--b { top: 70svh; left: var(--m); width: 19vw; }
  .intro__photo--c { top: 122svh; right: calc(var(--m) + 4vw); width: 15vw; }
  .intro__photo--c img { aspect-ratio: 1; }

  .about { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 64px; padding-top: 40px; }
  .about__title { grid-column: 1 / 7; }
  .about__text { grid-column: 7 / 13; padding-top: 10px; }
  .facts { grid-column: 1 / 13; margin-top: 16px; }

  /* Services */
  .services__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .services__title { grid-column: 1 / 8; text-indent: 3vw; max-width: none; }
  .services__intro { grid-column: 9 / 13; }
  .services__body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 96px; }
  .services__aside { grid-column: 1 / 5; position: sticky; top: 110px; align-self: start; width: auto; margin: 0; }
  .services__panel { grid-column: 6 / 13; }

  /* Gallery: scattered prints around the heading */
  .gallery__field { height: clamp(820px, 108svh, 1100px); padding: 0; }
  .gallery__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(30vw, 440px); }
  .js .gallery__center[data-reveal] { transform: translate(-50%, calc(-50% + 26px)); }
  .js .gallery__center[data-reveal].is-in { transform: translate(-50%, -50%); }
  .gallery__prints { display: block; margin: 0; position: absolute; inset: 0; }
  .gallery__prints li { position: absolute; width: clamp(140px, 12.5vw, 210px); }
  .gallery__prints li:nth-child(n) { transform: none; }
  .g1 { left: 23%; top: 7%; }
  .g2 { left: 44%; top: 3%; }
  .g3 { left: 64%; top: 9%; }
  .g4 { left: 75.5%; top: 40%; }
  .g5 { left: 63%; top: 69%; }
  .g6 { left: 41%; top: 73%; }
  .g7 { left: 20%; top: 64%; }
  .g8 { left: 11.5%; top: 33%; }

  /* Team */
  .team__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 72px; }
  .team__title { grid-column: 1 / 7; align-self: end; }
  .team__photo { grid-column: 7 / 13; }
  .team__people { grid-column: 1 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
  .person { grid-template-columns: 88px minmax(0, 1fr); }

  /* Reviews: portrait and offset quotation */
  .reviews__score { grid-column: 1 / 6; }
  .reviews__photo { grid-column: 6 / 8; align-self: end; }
  .reviews__quotes { grid-column: 8 / 13; padding-top: 120px; }

  /* Booking */
  .booking__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .booking__intro { grid-column: 1 / 6; position: sticky; top: 110px; align-self: start; }
  .form { grid-column: 7 / 13; }

  /* Location */
  .location__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .location__info { grid-column: 1 / 6; }
  .map { grid-column: 7 / 13; min-height: 560px; }
  .map__consent { min-height: 560px; }

  /* Footer */
  .footer { padding-top: 40px; }
  .footer__word { display: flex; gap: 0.25em; font-size: 9.6vw; white-space: nowrap; margin-top: 0; align-self: end; }
  .footer__legal { grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; }
  .footer__credits { justify-self: end; text-align: right; }

  .cookie { left: var(--m); right: auto; bottom: 24px; }
}

@media (min-width: 1280px) {
  .gallery__prints li { width: clamp(150px, 12vw, 220px); }
}

/* 9. Reduced motion: drop travel, keep content and quick fades */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero__title .w, .js .hero__print--main, .js .hero__print--small, .js .hero__aside, .js .hero__rating {
    transform: none !important; filter: none !important; transition: opacity 300ms ease !important; transition-delay: 0ms !important;
  }
  .hero__print--main img { transition: none; }
  .js .hero__line { opacity: 1; transform: none; transition: none; }
  .status.is-open .status__dot { animation: none; } /* taste-skill-ignore: live status pulse */
  .menu li.is-entering { animation: none; }
  .intro__video { display: none; }
  .intro__photo--a { background: url("assets/video/frunze-poster.webp") center / cover; aspect-ratio: 4 / 5; }
  [data-drift] { transform: none !important; }
}
