@font-face {
  font-family: 'Melodrama';
  src: url('../fonts/melodrama-font-family/Melodrama-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Melodrama';
  src: url('../fonts/melodrama-font-family/Melodrama-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --bg:   #fefcfb;
  --ink:  #1a1a1a;
  --red:  #b82525;
  --rule: #A19C9C;

  --f-disp: 'Melodrama', Georgia, 'Times New Roman', serif;
  --f-body: 'Libre Caslon Text', Georgia, serif;
  --f-mono: 'DM Mono', 'Courier New', monospace;

  --page-max: 1280px;
  --pad:      64px;
  --track:    0.08em;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { background: var(--bg); color: var(--ink); overflow-x: hidden; }
img   { display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.inner {
  max-width: var(--page-max);
  margin:  0 auto;
  padding: 0 var(--pad);
}

.h-rule {
  border-top: 1px solid var(--rule);
  margin: 16px var(--pad);
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top:    20px;
  padding-bottom: 20px;
  transition: background 0.3s ease, border-radius 0.35s ease,
              max-width 0.35s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav-logo {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: var(--track);
}
.nav-links img, .nav-icon { width: 20px; height: 20px; display: block; }
.icon-lg, .nav-icon--lg   { width: 24px; height: 24px; }

/* Vertical separator — hidden in default nav, shown in pill */
.nav-sep {
  display: none;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

/* Contact text link — hidden by default, shown inside the pill */
.nav-contact-link { display: none; }

/* ── NAV SCROLLED PILL ──────────────────────────────────────────────────── */
.site-header.scrolled {
  background: transparent;
  border-bottom-color: transparent;
  padding: 10px 0 0;
}
.site-header.scrolled .nav {
  background: rgba(56, 53, 50, 0.97);
  border-radius: 100px;
  width: fit-content;
  max-width: none;
  padding: 13px 28px;
  gap: 18px;
  justify-content: center;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header.scrolled .nav-logo       { color: #fff; font-size: 18px; }
.site-header.scrolled .nav-sep        { display: block; }
.site-header.scrolled .nav-links      { gap: 22px; }
.site-header.scrolled .nav-links a    { color: rgba(255, 255, 255, 0.85); font-size: 12px; }
.site-header.scrolled .nav-icon-link  { display: none; }
.site-header.scrolled .nav-contact-link { display: list-item; }

/* ── SECTION LABEL — NYT-style: thin rules flanking a centred title ─────── */
.section-label-wrap {
  max-width: var(--page-max);
  margin:  0 auto;
  padding: 52px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.section-label-wrap::before,
.section-label-wrap::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--rule);
}
.section-label {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer-cta {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 88px var(--pad) 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-heading {
  font-family: var(--f-disp);
  font-weight: 400;
  font-size: 80px;
  line-height: 0.93;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-transform: uppercase;
}
.footer-sub {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
  max-width: 420px;
  margin-top: 36px;
}
.footer-email {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  margin-top: 56px;
  transition: opacity 0.15s;
}
.footer-email:hover { opacity: 0.5; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: var(--track);
}
.footer-social a         { transition: opacity 0.15s; }
.footer-social a:hover   { opacity: 0.5; }
.footer-social__sep      { margin: 0 20px; opacity: 0.3; }
.footer-bottom           { border-top: 1px solid var(--rule); }
.footer-bottom__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: var(--track);
  color: var(--ink);
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes img-reveal {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1);    }
}
@keyframes line-expand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.will-animate               { opacity: 0; }
.will-animate.is-visible    { animation: fade-up    0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.will-animate.anim-img.is-visible  { animation: img-reveal 1.0s cubic-bezier(0.22, 1, 0.36, 1) both; }
.will-animate.anim-fade.is-visible { animation: fade-in    0.7s ease-out both; }

.section-label-wrap::before { transform-origin: right; }
.section-label-wrap::after  { transform-origin: left;  }
.section-label-wrap.is-visible::before {
  animation: line-expand 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.section-label-wrap.is-visible::after {
  animation: line-expand 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  .will-animate,
  .will-animate.is-visible,
  .will-animate.anim-img.is-visible,
  .will-animate.anim-fade.is-visible { animation: none; opacity: 1; }
  .section-label-wrap.is-visible::before,
  .section-label-wrap.is-visible::after { animation: none; }
}

/* ── RESPONSIVE — shared breakpoints ───────────────────────────────────── */
@media (max-width: 960px) {
  :root { --pad: 40px; }

  .nav-logo           { font-size: 18px; }
  .section-label      { font-size: 22px; }
  .section-label-wrap { gap: 20px; }
  .footer-heading     { font-size: 64px; }

  .site-header.scrolled .nav      { padding: 12px 22px; gap: 14px; }
  .site-header.scrolled .nav-logo { font-size: 16px; }
}

@media (max-width: 540px) {
  :root { --pad: 20px; }

  .nav-logo      { font-size: 16px; }
  .nav-links     { gap: 12px; }
  .nav-links a   { font-size: 11px; }
  .nav-icon-link { display: none; }

  .section-label-wrap { padding: 40px var(--pad); gap: 16px; }
  .section-label      { font-size: 18px; }

  .footer-cta           { padding: 60px var(--pad) 68px; }
  .footer-heading       { font-size: 44px; line-height: 0.95; }
  .footer-sub           { font-size: 16px; max-width: none; }
  .footer-email         { font-size: 13px; letter-spacing: 0.04em; margin-top: 40px; }
  .footer-bottom__inner { flex-direction: column; gap: 6px; text-align: center; }

  .site-header.scrolled           { padding: 8px 0 0; }
  .site-header.scrolled .nav      { padding: 11px 20px; gap: 12px; }
  .site-header.scrolled .nav-logo { font-size: 14px; }
}
