/* =========================================================================
   About (/about-us/) — "Our story"
   Sections: story intro + painting, postcard band, what we are today
   (amenity cards + pool), FAQ, wine-train photo band.
   Values are what the About HIFI page renders (measured at 1440 and 390).
   Behaviour (count-up, card/FAQ group reveals, accordion, #today scroll)
   lives in assets/js/about.js.
   ========================================================================= */

/* Navbar: About starts fully opaque (#241C17, no shadow), then the shared
   solid bar takes over once the page has scrolled 80px (data-nav-threshold).
   The open phone menu keeps the shared .97 fill. */
body[data-page="about"] .eb-nav:not([data-scrolled="1"]) { box-shadow: none; }
body[data-page="about"] .eb-nav:not([data-scrolled="1"]):not([data-menu-open="1"]) {
  background: var(--ink-900);
}

/* =========================================================================
   1. Story intro
   ========================================================================= */
.about-story {
  /* The 160px bottom padding is the room the postcard rises into. */
  padding: 160px 24px;
  background: var(--stucco-50);
}
.about-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 64px;
  max-width: 1180px;
  margin: 0 auto;
}
.about-story__text { min-width: 0; }
.about-story__title {
  max-width: 20ch;
  margin-top: 24px;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.1;
  text-wrap: balance;
}
.about-story__body {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--ink-700);
  font-size: var(--text-size-body);
  line-height: 1.75;
}
.about-story__title + .about-story__body { margin-top: 20px; }

/* Stats: 3 buildings / 48 rooms / 1950 */
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 36px;
}
.about-stats > * {
  --reveal-y: 18px;
  --reveal-scale: 1;
  --reveal-fade: 620ms;
  --reveal-move: 620ms;
}
.about-stat__num {
  color: var(--vermillion-500);
  font-family: var(--font-display);
  font-variation-settings: 'opsz' var(--font-display-opsz);
  font-size: 36px;
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.about-stat__label {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: .02em;
}

/* The Vernon Nye painting: dark wood frame, brass mat, centred caption. */
.about-painting {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.about-painting__frame {
  padding: 12px;
  border-radius: var(--radius-xs);
  background: #3A2A1E; /* one-off: the painting's dark wood frame (not ink-800) */
  box-shadow: var(--shadow-card);
}
.about-painting__mat {
  padding: clamp(12px, 2vw, 22px);
  background: var(--brass-300);
}
.about-painting__img {
  width: 100%;
  aspect-ratio: 1600 / 1001;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(36,28,23,.25);
}
.about-painting__caption {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.about-painting__note {
  max-width: 60ch;
  color: var(--ink-700);
  font-size: var(--text-small);
  line-height: 1.65;
  text-wrap: pretty;
}

/* Load entrance for the two story columns. They are usually on screen at
   load, where the shared scroll reveal never hides anything, so this CSS
   animation plays the design's reveal instead (no fill mode: it ends on the
   element's own state). When the stacked painting starts below the fold
   (phones, short landscape) its data-reveal takes over once the animation
   has run, and it reveals on scroll as designed. */
@keyframes about-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes about-rise-in {
  from { transform: translateY(var(--about-rise-y, 38px)) scale(var(--about-rise-scale, .985)); }
  to { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .about-story__text,
  .about-painting {
    animation:
      about-fade-in 720ms var(--ease-out-soft),
      about-rise-in 780ms var(--ease-out-soft);
  }
}

/* =========================================================================
   2. Postcard band
   ========================================================================= */
.about-postcard {
  padding: 0 24px 56px;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--stucco-100);
}
.about-postcard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .7fr);
  align-items: end;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.about-postcard__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  margin-top: -93px; /* rises over the hairline into the story section's bottom padding */
}
.about-postcard__paper {
  width: 100%;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: var(--radius-xs);
  background: #FFFDF8; /* one-off: postcard paper white */
  box-shadow: 0 2px 4px rgba(36,28,23,.12), 0 14px 30px rgba(36,28,23,.16);
  transform: rotate(-2.5deg);
}
.about-postcard__img { width: 100%; }
.about-postcard__caption {
  /* ink-700, not the one-off #79695D: the postcard's shadow reaches under this line, and #79695D was 4.56:1 on the flat
     band but 3.82:1 at worst against the pixels next to its letters; ink-700 is 6.59:1 there (13 Nov 2026, EB-002, FX-13) */
  color: var(--ink-700);
  font-size: 13px;
}

/* Cursive "what we are today" with the dotted arrow down to #today.
   It snaps in (no reveal transition) and never moves on hover, as designed. */
.about-postcard__arrow {
  --reveal-fade: 0ms;
  --reveal-move: 0ms;
  justify-self: start;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-bottom: 8px;
  color: var(--vermillion-500);
  text-decoration: none;
}
.about-postcard__arrow:hover { color: var(--vermillion-500); }
.about-postcard__arrow-text {
  font: 400 clamp(32px, 3.2vw, 40px) / 1 var(--font-script);
  white-space: nowrap;
}
.about-postcard__arrow-svg { overflow: visible; }
.about-postcard__arrow-svg--wide { width: 210px; height: 230px; margin-left: 30px; }
.about-postcard__arrow-svg--narrow { display: none; width: 120px; height: 132px; margin: 0 auto; }

/* =========================================================================
   3. What we are today
   ========================================================================= */
.about-today {
  padding: 28px 24px 96px;
  background: var(--stucco-50);
  scroll-margin-top: calc(96px - var(--eb-nav-clear)); /* lands 96px below the top (base.css adds --eb-nav-clear) */
}
.about-today:focus { outline: none; }
.about-today__inner {
  max-width: var(--container-content);
  margin: 0 auto;
  text-align: center;
}
.about-today__kicker {
  display: inline-block;
  text-decoration: none;
}
.about-today__kicker:hover { color: var(--text-brand); text-decoration: none; }
.about-today__title {
  margin: 10px auto 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.14;
}
.about-today__lede {
  max-width: 72ch;
  margin: 16px auto 0;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.75;
}

/* Photo tile with a slow zoom on hover (cards + pool). */
.about-zoom {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stucco-300);
}
.about-zoom img {
  width: 100%;
  object-fit: cover;
  filter: sepia(.10) saturate(1.04);
  transition: transform 720ms var(--ease-out-soft);
}

.about-amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  margin-top: 44px;
  text-align: left;
}
.about-card {
  transition: transform 260ms var(--ease-out-soft);
}
.about-card__img { aspect-ratio: 4 / 5; }
.about-card__img--hot-tub { object-position: 50% 45%; }
.about-card__title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.2;
}
.about-card__text {
  margin-top: 8px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.7;
}

/* Card group reveal (about.js): all three together, staggered 0/180/360ms. */
.about-card[data-about-reveal="pending"] {
  opacity: 0;
  transform: translateY(30px) scale(.97);
}
.about-card[data-about-reveal="in"] {
  transition:
    opacity 900ms var(--ease-out-soft),
    transform 1000ms var(--ease-out-soft);
  transition-delay: var(--about-delay, 0ms);
}

.about-pool {
  margin-top: 64px;
  text-align: left;
}
.about-pool__img { height: clamp(260px, 38vw, 440px); }
.about-pool__title {
  margin-top: 20px;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.18;
}

@media (hover: hover) {
  .about-zoom:hover img { transform: scale(1.045); }
  .about-card:not([data-about-reveal="pending"]):hover {
    transform: translateY(-3px);
    transition-delay: 0ms;
    transition-duration: 260ms;
  }
}

/* =========================================================================
   4. FAQ — single-open accordion on a hairline list
   ========================================================================= */
.about-faq {
  padding: 96px 24px 60px;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--stucco-100);
}
.about-faq__inner {
  max-width: 760px;
  margin: 0 auto;
}
.about-faq__title {
  margin: 10px 0 40px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.14;
}
.about-faq__item { border-bottom: 1px solid var(--border-hairline); }
.about-faq__heading {
  font: inherit;
  font-variation-settings: normal;
  letter-spacing: normal;
  color: inherit;
}
.about-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
}
/* Focus: the base 2px :focus-visible ring (base.css), as in the design. */
.about-faq__q {
  color: var(--text-heading);
  font-size: var(--text-size-body);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  transition: color var(--duration-fast) var(--ease-out-soft);
}
.about-faq__sign {
  flex: none;
  color: var(--vermillion-500);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 300ms var(--ease-out-soft);
}
.about-faq__btn[aria-expanded="true"] .about-faq__sign { transform: rotate(45deg); }
/* No hover colour on the question: the design's inline ink colour beats its
   hover rule, so only the sign reacts. */
@media (hover: hover) { .about-faq__btn:hover .about-faq__sign { transform: scale(1.12); } } /* mouse only (EB-103, 13 Nov 2026) */
/* Keeps the open item's × while hovered (the design's hover rule dropped the rotation). */
@media (hover: hover) { .about-faq__btn[aria-expanded="true"]:hover .about-faq__sign { transform: rotate(45deg) scale(1.12); } }

/* Answers: open by default (readable without JS); about.js closes all but the
   first and animates the height. Closed answers are hidden from assistive tech. */
.about-faq__panel {
  overflow: hidden;
  transition:
    height 420ms var(--ease-out-soft),
    opacity 300ms var(--ease-out-soft);
}
.about-faq__panel[data-closed] {
  height: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    height 420ms var(--ease-out-soft),
    opacity 300ms var(--ease-out-soft),
    visibility 0s linear 420ms;
}
.about-faq__a {
  max-width: 62ch;
  padding: 0 48px 22px 0;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.75;
}

/* FAQ rows group reveal (about.js): staggered 90ms. */
.about-faq__item[data-about-reveal="pending"] {
  opacity: 0;
  transform: translateY(16px);
}
.about-faq__item[data-about-reveal="in"] {
  transition:
    opacity 620ms var(--ease-out-soft),
    transform 620ms var(--ease-out-soft);
  transition-delay: var(--about-delay, 0ms);
}

.about-faq__note {
  margin-top: 32px;
  color: #79695D; /* one-off AA adjustment: --text-muted (#7A6A5E) is 4.49:1 on stucco-100; this is 4.56:1 */
  font-size: var(--text-small);
  line-height: 1.7;
}
/* The design colours this phone link inline (var(--text-link)) with a plain
   underline, so neither the global a:hover colour nor its thicker underline
   applies: hover changes nothing. */
.about-faq__note a:hover {
  color: var(--text-link);
  text-decoration-thickness: 1px;
}

/* =========================================================================
   5. Wine-train photo band (shared .eb-photo-band)
   ========================================================================= */
.about-band {
  --card-max: 440px;
  --band-min-mobile: 440px;
}
.about-band__title { margin-top: 0; }
.about-band__script {
  color: var(--vermillion-500);
  font-size: 1.16em;
  line-height: 1.1;
}
.about-band__card > * {
  --reveal-y: 22px;
  --reveal-scale: 1;
  --reveal-fade: 700ms;
  --reveal-move: 700ms;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (min-width: 901px) and (max-width: 1180px) {
  .about-story { padding-bottom: 150px; }
  .about-postcard__figure { margin-top: -48px; }
}

@media (max-width: 900px) {
  .about-story { padding: 128px 20px 64px; }
  .about-story__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .about-postcard { padding: 40px 20px; }
  .about-postcard__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; }
  .about-postcard__figure { margin: 0; }
  .about-postcard__arrow { justify-self: center; justify-items: center; }
  .about-postcard__arrow-svg--wide { width: 120px; height: 132px; margin-left: 0; }
}

@media (max-width: 820px) {
  .about-today { padding: 24px 20px 64px; }
  .about-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .about-faq { padding: 64px 20px; }
}

@media (max-width: 760px) {
  .about-story { padding: 104px 20px 48px; }
  .about-story__grid { gap: 32px; }
  .about-postcard { padding: 32px 20px 36px; }
  .about-today { padding: 20px 20px 52px; }
  .about-amenities { gap: 28px; margin-top: 32px; }
  .about-faq__btn { min-height: 48px; }
  /* The band card is centred on phones, but its text stays left-aligned here. */
  .about-band .eb-photo-band__card { text-align: left; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .about-pool { margin-top: 32px; }
}

@media (max-width: 560px) {
  .about-amenities { grid-template-columns: minmax(0, 1fr); }
  .about-faq { padding: 52px 18px; }
  .about-faq__btn { padding: 16px 0; }
  .about-story { --about-rise-y: 24px; --about-rise-scale: .99; }
}

/* Phones, upright tablets and short landscape: the straight mobile arrow. */
@media (max-width: 760px),
       (min-width: 761px) and (max-width: 1100px) and (orientation: portrait),
       (orientation: landscape) and (max-height: 500px) {
  .about-postcard__arrow-svg--wide { display: none; }
  .about-postcard__arrow-svg--narrow { display: block; }
}

/* Phones and short landscape: centred story text. */
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) {
  .about-story__text { text-align: center; }
  .about-story__title,
  .about-story__body { margin-inline: auto; }
  .about-stats { justify-content: center; }
}

/* The "What we are today" kicker is dropped wherever the arrow sits right above. */
@media (max-width: 760px),
       (min-width: 761px) and (max-width: 1100px) and (orientation: portrait),
       (min-width: 901px) and (max-width: 1366px) and (orientation: landscape) and (hover: none) and (pointer: coarse),
       (orientation: landscape) and (max-height: 500px) {
  .about-today__kicker { display: none; }
  .about-today__title { margin-top: 0; }
}

/* Short landscape (phones on their side). */
@media (orientation: landscape) and (max-height: 500px) {
  .about-story { padding: 88px 28px 48px; }
  .about-postcard { padding: 32px 28px 36px; }
  .about-today { padding: 20px 28px 56px; }
  .about-amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; margin-top: 32px; }
  .about-faq { padding: 56px 28px 48px; }
  .about-band .eb-photo-band__inner { justify-content: center; }
  .about-band .eb-photo-band__card { text-align: center; }
}

/* Without JavaScript every answer is open and the questions don't toggle, so they lose the sign (an "×" while open,
   which looked like a close button) and the pointer. Never matches with JavaScript on (EB-099, 13 Nov 2026). */
@media (scripting: none) {
  .about-faq__btn { cursor: default; }
  .about-faq__sign { display: none; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .about-zoom img,
  .about-card,
  .about-faq__panel,
  .about-faq__panel[data-closed],
  .about-faq__sign { transition: none; }
  .about-zoom:hover img,
  .about-card:hover { transform: none !important; }
  .about-card[data-about-reveal],
  .about-faq__item[data-about-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .about-faq__btn:hover .about-faq__sign { transform: none; }
  .about-faq__btn[aria-expanded="true"] .about-faq__sign,
  .about-faq__btn[aria-expanded="true"]:hover .about-faq__sign { transform: rotate(45deg); }
}
