/* ============================================================
   Motion of Time — motionoftime.com
   Editorial design system (Showit migration refresh, 2026)
   ============================================================ */

/* ---------- Fonts (self-hosted, from brand archive) ---------- */
@font-face {
  font-family: 'Silk Serif';
  src: url('../fonts/silk_serif_light-webfont.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader Display';
  src: url('../fonts/newsreaderdisplay-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader Display';
  src: url('../fonts/newsreaderdisplay-lightitalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Commuters Sans';
  src: url('../fonts/commuterssans-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commuters Sans';
  src: url('../fonts/commuterssans-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f4f2ee;
  --paper-2: #ebe8e2;
  --ink: #171614;
  --ink-soft: #4c4a45;
  --muted: #8a867e;
  --line: #d9d5cc;
  --dark: #131210;
  --dark-text: #efece6;
  --serif: 'Silk Serif', 'Playfair Display', Georgia, serif;
  --news: 'Newsreader Display', 'Newsreader', Georgia, serif;
  --sans: 'Commuters Sans', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1, .display-xl { font-size: clamp(2.4rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }

em, .accent {
  font-family: var(--news);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}
h1 em, h2 em, h3 em, .display em { font-size: 1.02em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.lede { font-size: 1.06rem; line-height: 1.9; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.05em 2.6em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light { border-color: var(--dark-text); color: var(--dark-text); }
.btn--light:hover { background: var(--dark-text); color: var(--dark); }
.text-link {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.35em;
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.55; }

/* ---------- Header / nav (centered logo, split nav — matches original site) ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 26px 0;
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
}
.logo { grid-column: 2; grid-row: 1; justify-self: center; }
.logo img { width: clamp(170px, 22vw, 250px); }
.logo .logo--dark { display: block; }
.logo .logo--light { display: none; }

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3.2rem);
}
.nav-group--left { grid-column: 1; grid-row: 1; justify-content: flex-end; }
.nav-group--right { grid-column: 3; grid-row: 1; justify-content: flex-start; }
.nav-group a {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-group a:hover, .nav-group a[aria-current="page"] { opacity: 1; }
.nav-group a[aria-current="page"] { border-bottom: 1px solid currentColor; padding-bottom: 0.3em; }

/* Dark-hero variant: white logo + links over media */
.header--overlay { color: #fff; }
.header--overlay .logo .logo--dark { display: none; }
.header--overlay .logo .logo--light { display: block; }

/* Mobile nav */
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px;
  grid-column: 3; grid-row: 1;
  justify-self: end;
}
.nav-toggle-btn span { display: block; height: 1px; background: currentColor; width: 28px; margin-left: auto; }

.mobile-nav { display: none; }

@media (max-width: 960px) {
  .nav-group { display: none; }
  .nav-toggle-btn { display: flex; z-index: 70; position: relative; }
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    z-index: 60;
  }
  .mobile-nav a {
    font-size: 0.9rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
  }
  .nav-toggle:checked ~ .mobile-nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-btn { position: fixed; right: var(--gutter); color: var(--ink); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero__media {
  position: absolute; inset: 0;
}
.hero__media img,
.hero__media video,
.hero__media iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Pure-video hero (no text overlay): light scrim just for nav legibility */
.hero--clean { align-items: stretch; }
.hero--clean::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0) 30%);
}
/* 16:9 iframe blown up to cover */
.hero__media iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.55));
}
.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 { max-width: 14em; }
.hero .btn { margin-top: 2.2rem; }

/* Short interior hero (light) */
.page-head {
  padding: clamp(9rem, 18vh, 13rem) 0 clamp(3rem, 7vh, 5rem);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vh, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vh, 4.5rem) 0; }
.section--dark {
  background: var(--dark);
  color: var(--dark-text);
}
.section--dark .eyebrow { color: rgba(239,236,230,0.55); }
.section--dark .lede { color: rgba(239,236,230,0.8); }
.section--alt { background: var(--paper-2); }
.hr { border: 0; border-top: 1px solid var(--line); }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--wide-text { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 820px) { .split, .split--wide-text { grid-template-columns: 1fr; } }

/* Editorial image trio */
.trio {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio > *:nth-child(1) { aspect-ratio: 3/4; }
.trio > *:nth-child(2) { aspect-ratio: 4/5; }
.trio > *:nth-child(3) { aspect-ratio: 3/4; }
@media (max-width: 700px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio > *:nth-child(2) { grid-column: span 2; order: -1; }
}

/* Values grid */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.values li {
  background: var(--paper);
  padding: 2.2rem 1.6rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Press bar */
.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.press img {
  height: 34px;
  width: auto;
  filter: grayscale(1) contrast(0.7);
  opacity: 0.65;
}

/* ---------- Video / films ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.film-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 820px) { .film-grid { grid-template-columns: 1fr; } }
.film figcaption {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.film .film-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.film .film-kind {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .film .film-kind { color: rgba(239,236,230,0.5); }

/* ---------- Testimonials ---------- */
.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  text-transform: uppercase;
}
.quote blockquote em { font-size: 1.05em; }
.quote cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .quote cite { color: rgba(239,236,230,0.5); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
}
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gallery .land img { aspect-ratio: 3/2; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.package {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
}
.package--feature { background: var(--dark); color: var(--dark-text); border-color: var(--dark); }
.package h3 { margin-bottom: 0.4rem; }
.package .package-tag {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.package--feature .package-tag { color: rgba(239,236,230,0.55); }
.package ul { flex: 1; }
.package li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.package--feature li { border-color: rgba(239,236,230,0.15); color: rgba(239,236,230,0.85); }
.package li:last-child { border-bottom: 0; }
.package .btn { margin-top: 2rem; align-self: flex-start; }

/* A la carte */
.alacarte {
  columns: 2;
  column-gap: clamp(2.5rem, 6vw, 5rem);
}
.alacarte li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.alacarte .price { white-space: nowrap; color: var(--muted); }
@media (max-width: 700px) { .alacarte { columns: 1; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 2.5rem 1.4rem 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--news);
  font-size: 1.4rem;
  color: var(--muted);
}
.faq details[open] summary::after { content: '\2013'; }
.faq .faq-a { padding: 0 0 1.6rem; color: var(--ink-soft); font-size: 0.92rem; max-width: 60ch; }

/* ---------- Team ---------- */
.team-figure img { width: 100%; object-fit: cover; }
.bio-name {
  font-family: var(--news);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 1.2rem;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .display { margin: 0.6rem 0 2.4rem; }

/* ---------- Contact ---------- */
.tave-embed { border: 0; width: 100%; min-height: 1400px; background: transparent; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 2.5rem;
}
.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(239,236,230,0.14);
}
.site-footer .footer-logo img { width: 220px; }
.site-footer .footer-tag {
  margin-top: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(239,236,230,0.5);
}
.footer-nav { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav a, .footer-social a {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.75;
}
.footer-nav a:hover, .footer-social a:hover { opacity: 1; }
.footer-social { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,236,230,0.45);
}
.footer-meta a:hover { color: var(--dark-text); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.measure { max-width: 62ch; }
