/* ==========================================================================
   J.M. Simonsen — Violin portfolio
   Design tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&family=Nothing+You+Could+Do&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg: #DED9C0;
  --header-footer-bg: #E7E3CD;
  --green: #3A4416;
  --ink: #1D2708;
  --text: #201e1d;
  --neutral-700: #605d5d;
  --divider: rgba(32, 30, 29, 0.4);
  --divider-soft: rgba(29, 39, 8, 0.18);
  --accent: #BC6C25;
  --accent-700: #8A4E16;
  --cream: #DED9C0;

  --font-heading: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-script: 'Nothing You Could Do', cursive;
  --font-display: 'Playfair Display', Georgia, serif;

  --measure: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-transform: none;
}

p { margin: 0 0 12px; }
a { color: var(--accent-700); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption { font-size: 13px; margin-top: 12px; color: var(--neutral-700); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(188, 108, 37, 0.3); }

.grayscale { filter: grayscale(1) contrast(1.08); }
.grayscale-mid { filter: grayscale(0.75) contrast(1.08); }

[hidden] { display: none !important; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-footer-bg);
  border-bottom: 1px solid var(--divider-soft);
  box-shadow: 0 2px 6px rgba(29, 39, 8, 0.07);
}

.nav {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 16px var(--gutter) 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: clamp(22px, 2.6vw, 38px);
  row-gap: 8px;
  align-items: center;
  list-style: none;
  margin-left: 225px;
}

.nav a {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.3vw, 15px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-700);
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 2px 1px;
  color: var(--neutral-700);
  cursor: pointer;
}

.lang-btn:hover { color: var(--accent-700); }

.lang-btn[aria-pressed="true"] {
  color: var(--accent);
}

.lang-sep {
  color: var(--neutral-700);
  font-size: 13px;
}

/* ==========================================================================
   Section eyebrow / page hero (shared across subpages)
   ========================================================================== */

.page-intro {
  background: var(--bg);
}

.page-intro .wrap {
  padding-top: clamp(36px, 5vw, 76px);
  padding-bottom: clamp(36px, 5vw, 76px);
}

.eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  color: var(--accent-700);
  margin-bottom: 14px;
}

.page-intro h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 22ch;
}

.page-intro p {
  max-width: 52ch;
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
}

.section {
  background: var(--bg);
}

.section.rule-top {
  border-top: 2px solid var(--divider);
}

/* ==========================================================================
   Home — hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(min(1080px, 100vw - 2 * var(--gutter)) * 0.235 + 62px) var(--gutter) clamp(28px, 6vh, 64px);
}

.hero-inner {
  position: relative;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.hero-quote {
  position: absolute;
  z-index: 4;
  bottom: calc(100% + clamp(28px, 4.5vw, 72px));
  left: 0;
  width: min(58%, 640px);
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.4;
  color: var(--text);
  text-wrap: pretty;
}

.hero-quote .mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2em;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--accent);
}

.hero-quote .mark--open { margin-right: 0.02em; }
.hero-quote .mark--close { margin-left: 0.02em; }

.hero-figure {
  position: absolute;
  z-index: 3;
  bottom: 0;
  right: 12%;
  height: calc(min(1080px, 100vw - 2 * var(--gutter)) * 0.547);
  pointer-events: none;
}

.hero-figure img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  user-select: none;
}

.hero-panel {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.2vh, 18px);
  padding: clamp(20px, 3.4vw, 56px);
  background-color: var(--green);
}

.hero-panel .pattern {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url('../assets/pattern-filled.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}

.hero-panel .backlight {
  position: absolute;
  z-index: 0;
  bottom: 0;
  right: 12%;
  height: calc(min(1080px, 100vw - 2 * var(--gutter)) * 0.547);
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1) sepia(1) saturate(2.6) hue-rotate(-32deg) blur(11px);
  opacity: 0.34;
  transform: scale(1.008);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.5) 52%, #000 66%, #000 88%, rgba(0,0,0,0.15) 99%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.5) 52%, #000 66%, #000 88%, rgba(0,0,0,0.15) 99%);
  pointer-events: none;
  user-select: none;
}

.hero-wordmark {
  position: relative;
  font-family: var(--font-script);
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.15;
  color: var(--bg);
}

.hero-rule {
  position: relative;
  width: 56px;
  height: 3px;
  background-color: var(--bg);
}

/* ==========================================================================
   Three-column intro band
   ========================================================================== */

.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trio-item {
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.5vw, 36px) clamp(32px, 4vw, 52px);
  border-right: 2px solid var(--divider);
}

.trio-item:first-child { padding-left: 0; }
.trio-item:last-child { border-right: 0; padding-right: 0; }

.trio-item .kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 14px;
  font-weight: 800;
}

.trio-item h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.trio-item p { margin: 0 0 16px; font-size: 16px; }

.trio-item .link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ==========================================================================
   "Two places open" band
   ========================================================================== */

.openings {
  position: relative;
  overflow: hidden;
  color: var(--bg);
  background-color: var(--green);
}

.openings .deco {
  position: absolute;
  left: clamp(0px, 2vw, 40px);
  top: 8%;
  height: 84%;
  width: auto;
  object-fit: contain;
  object-position: left center;
  opacity: 0.32;
  pointer-events: none;
}

.openings .clef-icon {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 10vw, 55px);
  height: clamp(40px, 6vw, 64px);
  width: auto;
  opacity: 0.55;
  pointer-events: none;
}

.openings-grid {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) var(--gutter);
  padding-left: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

.openings-copy p:first-child {
  font-family: var(--font-script);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--bg);
}

.openings-copy p:last-child {
  margin: 0;
  max-width: 38ch;
  font-size: 18px;
}

.openings-list {
  display: flex;
  flex-direction: column;
}

.openings-list span {
  display: flex;
  align-items: center;
  height: 56px;
  font-size: 15px;
}

.openings-list .top-rule {
  display: block;
  height: 0;
  width: 66%;
  border-top: 1px solid var(--bg);
}

.openings-list .row {
  border-bottom: 1px solid var(--bg);
}

.openings-list .row:nth-child(2) { width: 72%; }
.openings-list .row:nth-child(3) { width: 84%; }
.openings-list .row:nth-child(4) { width: 90%; }
.openings-list .row:nth-child(5) { width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 0;
}

.btn-primary {
  color: #fff;
  background: var(--accent-700);
  border-color: var(--accent-700);
}

.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-outline {
  color: var(--green);
  background: transparent;
  border: 2px solid var(--green);
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
}

.btn-outline:hover { background: var(--green); color: var(--bg); }

/* ==========================================================================
   Pricing / lessons
   ========================================================================== */

.price {
  font-family: var(--font-script);
  font-size: 46px !important;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--accent-700);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.subtable {
  display: flex;
  flex-direction: column;
  max-width: 460px;
  border-top: 2px solid var(--divider);
}

.subtable-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
}

.subtable-row strong { font-weight: 600; }
.subtable-row .status { color: var(--accent-700); font-weight: 600; }

.info-list {
  display: flex;
  flex-direction: column;
  max-width: 46ch;
  border-top: 2px solid var(--divider);
}

.info-list p {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}

.info-list p:last-child { border-bottom: 0; }

/* ==========================================================================
   Tables
   ========================================================================== */

.table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-700);
  padding: 8px;
  border-bottom: 2px solid var(--divider);
}

.table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--divider);
  overflow-wrap: break-word;
}

.table tbody tr:hover { background: rgba(32, 30, 29, 0.04); }

.table-wrap { overflow-x: auto; }

.tag-past {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-700);
}

.tag-upcoming { font-weight: 600; color: var(--accent-700); }

.table-note { font-size: 14px; margin: 0 0 clamp(20px, 2.4vw, 30px); color: var(--neutral-700); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.5vw, 44px);
}

.gallery-row {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
}

.gallery-row--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery-row--trio { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.gallery-row--wide figure:first-child { grid-column: span 2; min-width: 0; }
.gallery-row figure { min-width: 0; }

/* ==========================================================================
   Placeholder tiles (unfilled photo / video slots)
   ========================================================================== */

.placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background: repeating-linear-gradient(
    135deg,
    rgba(32, 30, 29, 0.06),
    rgba(32, 30, 29, 0.06) 10px,
    rgba(32, 30, 29, 0.03) 10px,
    rgba(32, 30, 29, 0.03) 20px
  );
  border: 1px dashed rgba(32, 30, 29, 0.35);
  color: var(--neutral-700);
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
}

.placeholder-frame {
  width: 100%;
}

/* ==========================================================================
   Recordings / video tiles
   ========================================================================== */

.recordings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
}

[data-route="artist"] .cv-hero-grid {
  display: block;
}

[data-route="artist"] .cv-hero-grid::after {
  content: "";
  display: block;
  clear: both;
}

[data-route="artist"] .cv-hero-grid figure {
  float: right;
  width: auto;
  margin: 0 0 clamp(20px, 3vw, 25px) clamp(24px, 3vw, 25px);
}

[data-route="about"] .cv-hero-grid figure {
  width: auto;
  margin: 0 0 clamp(20px, 3vw, 55px) clamp(24px, 9vw, 105px);
}

[data-route="teaching"] .cv-hero-grid figure {
  float: right;
  width: auto;
  margin: 0 0 clamp(20px, 3vw, 55px) clamp(24px, 9vw, 105px);
}
[data-route="events"] .cv-hero-grid figure {
  width: auto;
  margin: 0 0 clamp(20px, 3vw, 55px) clamp(24px, 9vw, 105px);
}

[data-route="artist"] .cv-hero-grid p,
[data-route="artist"] .cv-hero-grid h1 {
  max-width: unset !important;
}

[data-route="teaching"] .cv-hero-grid p,
[data-route="teaching"] .cv-hero-grid h1 {
  max-width: unset !important;
}

@media (max-width: 640px) {
  [data-route="artist"] .cv-hero-grid figure {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
    [data-route="about"] .cv-hero-grid figure {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
    [data-route="teaching"] .cv-hero-grid figure {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
    [data-route="events"] .cv-hero-grid figure {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
}
.inner-link {
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: underline;
}

.video-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--header-footer-bg);
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}
.video-tile[data-youtube] {
  cursor: pointer;
  background-color: var(--header-footer-bg);
}
.audio-tile {
  cursor: pointer;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: none;
}

.tile-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tile-spin 0.8s linear infinite;
  pointer-events: none;
}

@keyframes tile-spin {
  to { transform: rotate(360deg); }
}

.video-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 16px;
  background: var(--accent-700);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.recordings-grid article h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 18px 0 8px;
}

.recordings-grid article p {
  margin: 0;
  font-size: 15px;
  color: var(--neutral-700);
}

/* ==========================================================================
   CV / About
   ========================================================================== */

.cv-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  /* align-items: center; */
}

.cv-portrait {
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 26%;
  overflow: hidden;
}

.cv-portrait img { width: 100%; height: 100%; object-fit: cover; }

.timeline {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--divider);
}

.timeline-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--divider);
}

.timeline-row:last-of-type { border-bottom: 0; }

.timeline-row .when {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--neutral-700);
}

.timeline-row strong { display: block; font-size: 18px; }
.timeline-row span.desc { color: var(--neutral-700); }

.cv-column h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.cv-column h2 + .timeline,
.cv-block + h2 {
  margin-top: 0;
}

.cv-block { margin-bottom: 44px; }
.cv-block:last-child { margin-bottom: 0; }

.cv-also {
  position: relative;
  overflow: hidden;
  margin-top: 44px;
  padding: 26px;
  background: var(--ink);
  color: var(--bg);
}

.cv-also .texture {
  position: absolute;
  inset: 0;
  background-image: url('../assets/notes-band2.jpg');
  background-repeat: repeat;
  background-size: 1040px auto;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.cv-also .kicker {
  position: relative;
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cv-also p { position: relative; margin: 0; font-size: 16px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.field label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: rgba(32, 30, 29, 0.7);
}

.input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  caret-color: var(--accent);
  background: #eae9e9;
  border: 1px solid var(--divider);
}

.input:hover { border-color: rgba(32, 30, 29, 0.45); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea.input { min-height: 96px; resize: vertical; padding: 12px; }

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--divider);
}

.seg-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
}

.seg-opt + .seg-opt { border-left: 1px solid var(--divider); }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--accent-700); color: #fff; }
.seg-opt:not(:has(input:checked)):hover { background: rgba(32, 30, 29, 0.07); }

.btn-block { width: 100%; }

.form-success {
  margin: 0;
  font-size: 15px;
  color: var(--accent-700);
  font-weight: 600;
}

.contact-details h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.contact-details .muted { color: var(--neutral-700); }

.contact-block { margin-bottom: 30px; }
.contact-block:last-child { margin-bottom: 0; }

.studio-photo { aspect-ratio: 4 / 3; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--header-footer-bg);
  border-top: 2px solid var(--divider);
}

.footer-inner {
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.footer-mark {
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--accent-700); }

.footer-copy { font-size: 13px; color: var(--neutral-700); }

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */

@media (max-width: 900px) {
  .trio-item {
    border-right: 0;
    border-bottom: 2px solid var(--divider);
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .trio-item:last-child { border-bottom: 0; }

  .gallery-row--wide figure:first-child { grid-column: span 1; }
}

@media (max-width: 640px) {
  .nav { justify-content: flex-start; text-align: center; margin: 10px; margin-top: 0px; width:100% }
  .nav a { padding: 10px; }

  .lang-switch {  display: flex; justify-content: flex-end; margin-right:auto;}

  .hero { padding-top: calc(min(1080px, 100vw - 2 * var(--gutter)) * 0.32 + 48px); }

  .hero-quote { width: 100%; font-size: clamp(16px, 4.5vw, 15px); }

  .openings .deco {
    opacity: 0;
  }

  .hero-figure,
  .hero-panel .backlight { right: 4%; }

  .price { font-size: 34px !important; }

  .openings-grid { padding-left: var(--gutter); margin-left: 3vw; }

  .timeline-row { grid-template-columns: 72px 1fr; gap: 12px; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 420px) {
  .hero-panel { padding: 16px; }
  .subtable-row { flex-direction: column; gap: 2px; }
}


.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox.open img { transform: scale(1); }

body.no-scroll { overflow: hidden; }