/* Scribe Travel — styles follow Brand Kit v1 (paper, ink, one olive) */

:root {
  --paper: #F4F1EA;
  --linen: #E7E2D7;
  --ink: #2B2A26;
  --char: #3E3C32;
  --olive: #A49968;
  --olive-deep: #6F6740;
  --sage: #A0A9A1;
  --stone: #8A8579;
  --char-accent: #C9C3B2;

  --display: 'Prata', Georgia, serif;
  --text: 'Karla', system-ui, sans-serif;

  --measure: 1200px;
  --gutter: 88px;
  --section: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: rgba(43, 42, 38, 0.85);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Photographs: square corners, light desaturation only */
.photo img,
.hero-video,
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96);
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.05; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
h3 { font-size: 26px; line-height: 1.15; }

em { font-style: italic; }

/* No lone word stranded on the last line: the browser evens out paragraph endings,
   and balances short headings and quotes across their lines */
p, li, figcaption, summary { text-wrap: pretty; }
h2, h3, h4, blockquote { text-wrap: balance; }

.label {
  font-family: var(--text);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 28px;
}

.caption {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 14px;
}

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

section { padding: var(--section) 0; }
.linen { background: var(--linen); }

.rule { border: 0; border-top: 1px solid var(--sage); opacity: 0.6; margin: 0; }

/* Buttons: square, ink fill; secondary is an olive underline */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 30px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--char); }

.link {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--olive);
  padding-bottom: 4px;
}

/* Header: pinned to the top. Transparent over the hero, then
   turns to paper with ink text once the page scrolls (see .scrolled). */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 32px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo { display: block; position: relative; }
.site-header .logo img { height: 52px; width: auto; transition: height 0.3s, opacity 0.3s; }
.site-header .logo .logo-ink { position: absolute; top: 0; left: 0; opacity: 0; }
.site-header nav { display: flex; gap: 40px; align-items: center; }
.site-header nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.site-header nav a:hover { color: var(--char-accent); }
/* One signature word per headline, in italic deep olive */
.intro-grid h2 em, .process-head h2 em { font-family: 'Playfair Display', var(--display); font-style: italic; color: var(--olive-deep); }

.site-header.scrolled {
  background: rgba(244, 241, 234, 0.96);
  border-bottom-color: rgba(160, 169, 161, 0.5);
  padding: 14px 0;
}
.site-header.scrolled .logo img { height: 38px; }
.site-header.scrolled .logo .logo-paper { opacity: 0; }
.site-header.scrolled .logo .logo-ink { opacity: 1; }
.site-header.scrolled nav a { color: var(--ink); }
.site-header.scrolled nav a:hover { color: var(--olive-deep); }

/* Keep section headings clear of the pinned header when jumping via the menu */
html { scroll-padding-top: 72px; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1000px;
  color: var(--paper);
  overflow: hidden;
}
/* Film fills the hero; the cabins sit low-left, fog above holds the headline */
.hero-video { position: absolute; inset: 0; display: block; object-position: center 60%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,28,24,0.55) 0%, rgba(30,28,24,0.3) 40%, rgba(30,28,24,0) 60%, rgba(30,28,24,0.25) 100%);
}
.hero-text {
  position: absolute;
  left: 0; right: 0; top: clamp(108px, 14.5vh, 148px);
  z-index: 2;
}
.hero-text .label { color: var(--char-accent); }
/* One line at every width: the size scales with the screen */
.hero-text h1 { color: var(--paper); font-size: clamp(18px, calc(5.5vw - 2px), 64px); white-space: nowrap; }
/* On phones the headline stacks one word per line, set large */
.br-phone { display: none; }
@media (max-width: 640px) {
  .br-phone { display: inline; }
  .hero-text h1 { font-size: clamp(39px, 12.75vw, 57px); line-height: 1.02; }
}
/* Intro */
.intro-grid {
  display: grid;
  gap: 24px;
}
.intro-grid h2 { margin: 0; }
.intro-grid p { max-width: 64ch; margin: 0; }
.intro-grid h3 { margin: 0 0 16px; }

/* About: four short reasons in a row */
.pillars {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.pillars li { border-top: 1px solid var(--sage); padding-top: 24px; }
.pillars h4 { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--olive-deep); margin: 0 0 10px; }
.pillars p { margin: 0; font-size: 16px; line-height: 1.65; }

/* Three quiet frames */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.trio .photo { aspect-ratio: 3 / 4; overflow: hidden; }
.trio figure { margin: 0; }

/* Moments */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 88px;
}
.section-head p { max-width: 44ch; margin: 0; }

/* Moments: a light row of small cards */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.moment-card { margin: 0; }
.moment-card .photo { aspect-ratio: 4 / 5; overflow: hidden; }
.moment-card .caption { margin: 14px 0 6px; }
.moment-card h3 { font-size: 21px; margin-bottom: 6px; }
.moment-card p:last-child { margin: 0; font-size: 15px; line-height: 1.6; }

/* Full-width landscape band */
.band { height: 78vh; min-height: 480px; max-height: 820px; overflow: hidden; }
.band img { object-position: center 55%; }
.band-caption { padding-top: 14px; }
.band-caption .caption { margin: 0; }

/* Process */
.process-head { display: grid; gap: 24px; }
.process-head h2 { margin: 0; }
.process-head p:last-child { margin: 0; max-width: 60ch; text-wrap: balance; }
.pillars-3 { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }

/* Preferred partners: greyed-out logos in a single quiet row */
.partners { padding: 32px 0; background: var(--linen); }
.partners-label {
  margin: 0 0 16px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.partner-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 22px;
}
.partner-logos li { flex: 0 0 20%; display: flex; flex-direction: column; align-items: center; }
/* Logo plus a program name set underneath, e.g. Mandarin Oriental + Fan Club */
.partner-logos .lockup img { height: 45px; margin: -6px 0 -4px; }
/* Wordmark logos already have air around them, so no negative margins */
.partner-logos .lockup-flat img { height: 34px; margin: 0; }
.partner-logos .lockup span {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
}
.partner-logos img {
  width: 112px;
  height: 39px;
  object-fit: contain;
  /* flatten every brand colour to one soft grey */
  filter: grayscale(1) brightness(0);
  opacity: 0.4;
  transition: opacity 0.3s;
}
.partner-logos img.wide { width: 147px; }
/* Balance a logo that reads lighter than the rest */
.partner-logos img.logo-lhw { height: 50px; }
.partner-logos img:hover { opacity: 0.65; }

/* Places */
.places-head { display: grid; gap: 16px; }
.places-head h2, .places-head p { margin: 0; }

/* Words from travelers */
.words { text-align: center; padding: 44px 0; }
/* Quotes share one grid cell and fade, so the section never jumps in height */
.quotes { display: grid; max-width: 60ch; margin: 0 auto; }
.quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s, visibility 0.8s;
}
.quote.is-active { opacity: 1; visibility: visible; }
.words blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}
.words .who { margin-top: 16px; }
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.quote-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.quote-dots button[aria-current="true"] { background: var(--stone); }
.placeholder-note {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: #7A3B32;
  border: 1px dashed #7A3B32;
  padding: 6px 12px;
}

/* Contact: invitation to plan, with the membership note beside it */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
/* The 360 note sits in a soft grey panel so it reads as its own offer */
.membership {
  background: #E4E5DF;
  padding: 36px 40px;
}
.membership h3 { margin-bottom: 16px; }
.membership p:not(.label) { font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.moments { margin-top: 32px; }
.inquire { max-width: 640px; }
.inquire h2 { margin-bottom: 24px; }
.inquire p { margin: 0 0 32px; }

/* FAQ page: a quiet list of questions that open in place */
.faq-page { padding-top: 72px; }
.faq-head { display: grid; gap: 24px; max-width: 60ch; }
.faq-head h1 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); }
.faq-head p { margin: 0; }
.faq-head a { color: var(--olive-deep); }
.faq-group {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 48px 0 0;
}
.faq-list { max-width: 820px; margin-top: 16px; border-bottom: 1px solid rgba(160,169,161,0.5); }
.faq-list details { border-top: 1px solid rgba(160,169,161,0.5); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--text); font-size: 20px; color: var(--stone); flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p, .faq-list details ul { margin: 0 0 16px; max-width: 64ch; font-size: 16px; line-height: 1.7; }
.faq-list details > :last-child { margin-bottom: 26px; }
.faq-list ul { padding-left: 20px; }
.faq-list li { margin-bottom: 6px; }
.footer-nav a[aria-current="page"] { color: var(--char-accent); }

/* Footer — the one Char section, kept compact: a brand row and a small print row */
.site-footer {
  background: var(--char);
  color: var(--char-accent);
  padding: 40px 0 28px;
  font-size: 14px;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--char-accent); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 48px;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-logo img { height: 34px; width: auto; display: block; }
/* FAQ sits with the contact details on the right */
.footer-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.email-link img { display: block; }
.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
}
.instagram { display: inline-flex; align-items: center; gap: 8px; }
.instagram svg { flex: none; }

.footer-base {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(201,195,178,0.25);
}
.affiliation-logos { display: flex; align-items: center; gap: 24px; }
/* Logos shown in white on the dark footer */
.affiliation-logos img { width: auto; opacity: 0.85; display: block; }
.affiliation-logos .logo-360 { height: 30px; }
/* Virtuoso file has a cream background: invert it to dark, then let
   the dark drop out against the footer so only white lettering shows */
.affiliation-logos .logo-virtuoso { height: 40px; filter: grayscale(1) invert(1) contrast(1.4); mix-blend-mode: lighten; }
.footer-legal { margin: 0; font-size: 12px; line-height: 1.6; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,195,178,0.5); }
.footer-bottom {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}
@media (max-width: 1200px) {
  .footer-base { grid-template-columns: auto 1fr; }
  .footer-legal { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .footer-base { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .br-wide { display: none; }
}

/* Tablet and phone */
@media (max-width: 960px) {
  :root { --gutter: 32px; --section: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .moments-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
  .pillars.pillars-3 { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
  .section-head { flex-direction: column; align-items: start; }
  .partner-logos li { flex-basis: 50%; }
}

@media (max-width: 640px) {
  :root { --gutter: 28px; --section: 40px; }
  .membership { padding: 28px 24px; }
  body { font-size: 17px; }
  .site-header nav a:not(.nav-inquire) { display: none; }
  .site-header .logo img { height: 40px; }
  .trio { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
  .trio figure:first-child { grid-column: 1 / -1; }
  .trio figure:first-child .photo { aspect-ratio: 4 / 3; }
  .pillars, .pillars.pillars-3 { grid-template-columns: 1fr; }
  .hero-text { top: 120px; }
}
