:root {
  --void: #0a0a08;
  --void-2: #131210;
  --void-3: #1c1a17;
  --paper: #ece7dc;
  --paper-dim: #8f887a;
  --paper-faint: #56514a;
  --hairline: rgba(236, 231, 220, 0.14);
  --hairline-strong: rgba(236, 231, 220, 0.28);
  --accent: #b8492f;
  --accent-bright: #d15a3a;

  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-label: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', 'Courier New', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --text-display: clamp(2.6rem, 8.5vw, 6.5rem);
  --text-h2: clamp(1.5rem, 3.6vw, 2.3rem);
  --text-lede: clamp(1rem, 1.9vw, 1.25rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.label--bright { color: var(--paper); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: rgba(10, 10, 8, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.wordmark__logo {
  height: 52px;
  width: auto;
  display: block;
}

.topnav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.topnav__link {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}
.topnav__link:hover { color: var(--paper); }
.topnav__cta {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}
.topnav__cta:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
  border-bottom: none;
  background-image:
    linear-gradient(180deg, rgba(10,9,7,0.32) 0%, rgba(10,9,7,0.55) 55%, rgba(10,9,7,1) 75%),
    url('../images/interiors/IMG_20260804_205749_014.jpg');
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 12%;
  background: rgb(10, 9, 7);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-display);
  line-height: 0.92;
  margin: 1.25rem 0 1.5rem;
  max-width: 14ch;
  text-wrap: balance;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero__lede {
  font-size: var(--text-lede);
  line-height: 1.55;
  max-width: 42ch;
  color: var(--paper);
  opacity: 0.92;
  margin: 0 0 2.25rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--accent);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-primary:active { transform: translateY(1px); }

/* ---------- hero video button ---------- */
.video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  margin: 0 0 1.5rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(236, 231, 220, 0.08);
  border: 1px solid var(--hairline-strong);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.video-btn:hover { background: rgba(236, 231, 220, 0.16); border-color: var(--paper); }
.video-btn__icon {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: video-btn-pulse 2.4s ease-in-out infinite;
}
.video-btn__triangle {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #ffffff;
}
@keyframes video-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 73, 47, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(184, 73, 47, 0); }
}

/* ---------- hero entrance ---------- */
.js .hero .label,
.js .hero .video-btn,
.js .hero__title,
.js .hero__lede,
.js .hero .btn-primary {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.8s ease forwards;
}
.js .hero .label { animation-delay: 0.05s; }
.js .hero__title { animation-delay: 0.18s; }
.js .hero__lede { animation-delay: 0.38s; }
.js .hero .video-btn { animation-delay: 0.48s; }
.js .hero .btn-primary { animation-delay: 0.58s; }

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 0.3rem;
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- section shell ---------- */
section { border-bottom: 1px solid var(--hairline); }

/* ---------- about / manifesto ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5.5rem);
}
.fact-list { display: flex; flex-direction: column; gap: 1.15rem; }
.fact { padding-top: 0.85rem; border-top: 1px solid var(--hairline); }
.fact__value { font-size: 0.9375rem; color: var(--paper); margin-top: 0.4rem; line-height: 1.45; }

.manifesto-col { display: flex; flex-direction: column; gap: 1.75rem; }
.manifesto {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--paper);
  max-width: 46ch;
  text-wrap: pretty;
  margin: 0;
}
.manifesto-photo {
  max-width: 320px;
  border: 1px solid var(--hairline-strong);
}

/* ---------- photo break (full-bleed) ---------- */
.photobreak {
  height: clamp(52vh, 62vw, 82vh);
  background-size: cover;
  background-position: center;
  position: relative;
}
.photobreak__cap {
  position: absolute;
  left: clamp(1.5rem, 5vw, 3.5rem);
  bottom: 1.25rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(10,9,7,0.55);
  padding: 0.35rem 0.6rem;
}

/* ---------- interlude quote ---------- */
.interlude {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
  max-width: 62ch;
}
.interlude p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.45;
  color: var(--paper);
  margin: 0;
  text-wrap: balance;
}
.interlude span { color: var(--accent-bright); }

/* ---------- looks grid ---------- */
.looks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.looks__item {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-right: 1px solid var(--hairline);
  transition: filter 0.35s ease;
}
.looks__item:last-child { border-right: none; }
.looks__item:hover { filter: brightness(1.15); }

@media (max-width: 720px) {
  .looks { grid-template-columns: 1fr; }
  .looks__item { border-right: none; border-bottom: 1px solid var(--hairline); }
  .looks__item:last-child { border-bottom: none; }
}

/* ---------- final full-bleed / visit ---------- */
.visit-break {
  position: relative;
  isolation: isolate;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  background-image:
    linear-gradient(180deg, rgba(10,9,7,0.25) 0%, rgba(10,9,7,0.6) 65%, rgba(10,9,7,1) 75%),
    url('../images/interiors/IMG_20260804_210420_205.jpg');
  background-size: cover;
  background-position: center;
}
.visit-break::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 12%;
  background: rgb(10, 9, 7);
  z-index: 0;
}
.visit-break > * { position: relative; z-index: 1; }
.visit-break h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h2);
  color: var(--paper);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
}
.contact__body p { color: var(--paper-dim); line-height: 1.6; max-width: 46ch; }
.contact__address { margin-top: 1.5rem; font-family: var(--font-label); font-size: 0.875rem; color: var(--paper); line-height: 1.7; }
.contact-card {
  border: 1px solid var(--hairline-strong);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--void-2);
}

/* ---------- footer ---------- */
footer {
  padding: 1.75rem clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer .label { font-size: 0.6875rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about, .contact { grid-template-columns: 1fr; }
  .topnav__link { display: none; }
  .manifesto-photo { display: none; }
  .hero {
    min-height: 85vh;
    min-height: 85svh;
    padding-bottom: 1rem;
  }
}

/* ---------- reveal on scroll ---------- */
.js .reveal,
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible,
.reveal-group > *.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js .hero .label,
  .js .hero .video-btn,
  .js .hero__title,
  .js .hero__lede,
  .js .hero .btn-primary,
  .js .reveal,
  .js .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.video-modal[hidden] { display: none; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 7, 0.92);
}
.video-modal__body {
  position: relative;
  width: 100%;
  max-width: 960px;
  animation: video-modal-in 0.25s ease forwards;
}
@keyframes video-modal-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}
.video-modal__video {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: #000;
  border: 1px solid var(--hairline-strong);
}
.video-modal__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  line-height: 1;
  font-size: 1.5rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.video-modal__close:hover { background: rgba(236, 231, 220, 0.1); border-color: var(--paper); }

/* ---------- mobile floating Telegram CTA ---------- */
.float-cta { display: none; }
@media (max-width: 860px) {
  .float-cta {
    display: block;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    text-align: center;
    font-family: var(--font-label);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.95rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }
  .float-cta.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
