/* ==========================================================================
   Direction 03 — Touring
   Warm, rounded, community-led. Three pages sharing a floating pill nav.
   Signature moments: a horizontal "drive-through" tour on the home page and
   a drag-to-scroll filmstrip on the gallery page.
   ========================================================================== */

.touring-site {
  --espresso: #241a13;
  --cream: #fbf7f0;
  --sand: #f2ebe0;
  --sand-deep: #e7dccb;
  --clay: #a8442a;
  --clay-deep: #8d3721;

  --ink: var(--espresso);
  --paper: var(--cream);
  --muted: #6b5b4d;
  --line: rgb(36 26 19 / 12%);
  --line-strong: rgb(36 26 19 / 22%);
  --gold-text: #8a5f1e;
  --radius: 999px;
  --card: 26px;

  background: var(--cream);
  color: var(--espresso);
}

.touring-site .eyebrow { color: var(--clay-deep); }

.touring-site .button { border-radius: 999px; border-color: var(--line-strong); color: var(--espresso); }
.touring-site .button:hover { border-color: var(--espresso); }
.touring-site .button-primary { background: var(--clay); border-color: var(--clay); color: #fff; }
.touring-site .button-primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }
.touring-site .text-link { color: var(--clay-deep); }

.touring-site [data-placeholder] { text-decoration-color: rgb(36 26 19 / 32%); }

/* Floating pill navigation --------------------------------------------------- */

.t-bar {
  position: sticky;
  top: 14px;
  z-index: 110;
  display: flex;
  justify-content: center;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.t-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  width: min(100%, 1120px);
  padding: 9px 9px 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(251 247 240 / 82%);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 4px rgb(36 26 19 / 4%);
  pointer-events: auto;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.t-bar[data-stuck] .t-pill {
  background: rgb(251 247 240 / 94%);
  box-shadow: 0 14px 34px rgb(36 26 19 / 12%);
}

.t-pill .site-brand strong { font-size: 18px; letter-spacing: .15em; }
.t-pill .mark { width: 36px; height: 36px; }

.t-links { display: flex; justify-content: center; gap: clamp(6px, 1.4vw, 14px); margin: 0; padding: 0; list-style: none; }

.t-links a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.t-links a:hover { background: var(--sand); color: var(--espresso); }
.t-links a[aria-current="page"] { background: var(--espresso); color: var(--cream); }

.t-pill-actions { display: flex; align-items: center; gap: 10px; }
.t-pill-actions .button { min-height: 44px; padding: 0 20px; }

.t-toggle {
  display: none;
  place-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.t-toggle span { display: block; width: 15px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.t-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.t-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.t-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: var(--gutter);
  background: var(--cream);
}

.t-sheet a { padding: 12px; font-family: var(--serif); font-size: 2rem; }
.t-sheet .button { margin-top: 22px; }

/* Hero ----------------------------------------------------------------------- */

.t-hero { position: relative; padding: clamp(40px, 7vh, 90px) 0 0; overflow: hidden; }

.t-hero-copy { position: relative; z-index: 2; text-align: center; }

.t-hero h1 {
  margin: 20px auto 0;
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6.8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.018em;
}

.t-hero h1 em { font-style: italic; color: var(--clay); }
.t-hero-copy > p { margin: 22px auto 0; max-width: 50ch; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.t-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* The photo scales up on scroll and a second card rises over its corner. */
.t-hero-stage { position: relative; margin-top: clamp(40px, 6vh, 76px); }

.t-hero-photo {
  position: relative;
  border-radius: var(--card);
  overflow: hidden;
  transform: scale(var(--scale, .92));
  transform-origin: 50% 100%;
  will-change: transform;
}

.t-hero-photo img { width: 100%; height: clamp(300px, 58vh, 620px); object-fit: cover; }

.t-hero-pop {
  position: absolute;
  right: clamp(-8px, 2vw, 46px);
  bottom: clamp(-30px, -3vh, -18px);
  z-index: 3;
  width: min(340px, 72vw);
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--espresso);
  color: var(--cream);
  box-shadow: 0 26px 60px rgb(36 26 19 / 26%);
  opacity: var(--pop, 0);
  transform: translateY(calc((1 - var(--pop, 0)) * 44px));
  will-change: opacity, transform;
}

.t-hero-pop b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.t-hero-pop span { display: block; margin-top: 8px; color: rgb(251 247 240 / 68%); font-size: 14px; }

/* Warm facts row -------------------------------------------------------------- */

.t-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(66px, 9vh, 120px);
  padding: 0;
  list-style: none;
}

.t-facts li { padding: 26px 28px; border-radius: 20px; background: var(--sand); }
.t-facts b { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.t-facts span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Section furniture ------------------------------------------------------------ */

.t-section { padding: clamp(60px, 8vh, 104px) 0; }
.t-section-sand { background: var(--sand); }
.t-head { max-width: 720px; }
.t-head h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1.02; letter-spacing: -.025em; }
.t-head p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 1.06rem; }
.t-head-center { margin-inline: auto; text-align: center; }

/* Drive-through tour ----------------------------------------------------------

   The section is tall; the pin sticks for its duration and the track slides
   sideways as you scroll down. Progress also drives the road indicator.       */

.t-drive { position: relative; height: 420vh; background: var(--espresso); color: var(--cream); }

.t-drive-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vh, 34px);
  padding: clamp(84px, 12vh, 128px) 0 clamp(34px, 5vh, 56px);
  overflow: hidden;
}

.t-drive-head { padding-inline: var(--gutter); text-align: center; }
.t-drive-head .eyebrow { color: #e0a96a; }
.t-drive-head h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.02em; }

.t-start-lights { display: flex; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.t-start-light { display: grid; gap: 2px; padding: 3px 4px; border: 1px solid rgb(251 247 240 / 14%); border-radius: 3px; background: #15110e; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 24%); }
.t-start-light span { width: 5px; height: 5px; border-radius: 50%; background: #3a312c; box-shadow: inset 0 0 0 1px rgb(251 247 240 / 8%); transition: background-color .12s linear, box-shadow .12s linear; }
.t-start-light.is-lit span:nth-last-child(-n + 2) { background: #e64634; box-shadow: 0 0 5px rgb(230 70 52 / 78%); }

.t-drive-viewport { overflow: hidden; }

.t-drive-track {
  --drive-gap: clamp(18px, 2.4vw, 34px);
  display: flex;
  gap: var(--drive-gap);
  height: 100%;
  padding-left: var(--gutter);
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}

.t-drive-track::after { content: ""; flex: 0 0 max(0px, calc(var(--gutter) - var(--drive-gap))); }

.t-stop {
  position: relative;
  flex: none;
  width: min(78vw, 520px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: var(--card);
  background: #2f231a;
  overflow: hidden;
}

.t-stop img { width: 100%; height: 100%; object-fit: cover; }
.t-stop-body { padding: 22px clamp(20px, 2.4vw, 30px) 26px; }
.t-stop-no { display: block; color: #e0a96a; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.t-stop h3 { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.1vw, 1.9rem); }
.t-stop p { margin: 9px 0 0; color: rgb(251 247 240 / 68%); font-size: 15px; }

/* Road progress indicator */
.t-road { position: relative; height: 46px; margin-inline: var(--gutter); }
.t-road-line { position: absolute; inset: 12px 0 auto; height: 2px; background: repeating-linear-gradient(90deg, rgb(251 247 240 / 26%) 0 16px, transparent 16px 30px); }
.t-road-car { position: absolute; top: 2px; left: 0; width: 34px; color: #e0a96a; transform: translateX(calc(var(--drive, 0) * (100vw - var(--gutter) * 2 - 34px))); }
.t-road-car::before, .t-road-car::after {
  content: "";
  position: absolute;
  top: 9px;
  left: -1px;
  width: 9px;
  height: 7px;
  border-radius: 50%;
  background: rgb(251 247 240 / 58%);
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
}
.t-road-car::after { top: 13px; width: 7px; height: 6px; }
.t-road-car.is-burning::before { animation: t-burnout-smoke .64s ease-out both; }
.t-road-car.is-burning::after { animation: t-burnout-smoke .72s .08s ease-out both; }
.t-road-car svg { position: relative; width: 100%; fill: currentColor; }
.t-road-car.is-burning svg { animation: t-burnout-car .1s ease-in-out 5 alternate; }
.t-road-hint { position: absolute; inset: auto 0 0; text-align: center; color: rgb(251 247 240 / 42%); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

@keyframes t-burnout-smoke {
  0% { opacity: 0; transform: translate3d(4px, 0, 0) scale(.35); }
  20% { opacity: .46; }
  100% { opacity: 0; transform: translate3d(-30px, -9px, 0) scale(2.2); }
}

@keyframes t-burnout-car {
  to { transform: translateY(-.7px); }
}

@media (prefers-reduced-motion: reduce) {
  .t-start-light span { transition: none; }
  .t-road-car::before, .t-road-car::after { display: none; }
  .t-road-car.is-burning svg { animation: none; }
}

/* Care cards ------------------------------------------------------------------- */

.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; list-style: none; }

.t-card {
  padding: 30px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--card);
  background: var(--paper);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.t-section-sand .t-card { background: var(--cream); }
.t-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(36 26 19 / 9%); }
.t-card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sand-deep); color: var(--clay-deep); font-family: var(--serif); font-size: 1.1rem; }
.t-section-sand .t-card-icon { background: var(--sand-deep); }
.t-card h3 { margin: 20px 0 0; font-family: var(--serif); font-size: 1.55rem; }
.t-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* Split feature ----------------------------------------------------------------- */

.t-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.t-split img { border-radius: var(--card); width: 100%; height: clamp(280px, 46vh, 480px); object-fit: cover; }
.t-split-copy h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.04; letter-spacing: -.025em; }
.t-split-copy p { margin: 18px 0 0; color: var(--muted); }
.t-split-copy .text-link { margin-top: 26px; }

/* Quote ---------------------------------------------------------------------------- */

.t-quote { padding: clamp(60px, 8vh, 104px) 0; background: var(--sand); text-align: center; }
.t-quote h2, .t-quote blockquote { margin: 22px auto 0; max-width: 24ch; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; line-height: 1.16; letter-spacing: -.012em; }
.t-quote cite { display: block; margin-top: 26px; font-style: normal; font-size: 14px; font-weight: 600; }
.t-quote cite span { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }

/* Events page ----------------------------------------------------------------------- */

.t-page-hero { padding: clamp(40px, 6vh, 72px) 0 0; text-align: center; }
.t-page-hero h1 { margin: 16px auto 0; max-width: 18ch; font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.06; letter-spacing: -.015em; }
.t-page-hero > .container > p { margin: 20px auto 0; max-width: 52ch; color: var(--muted); font-size: 1.08rem; }
.t-page-banner { margin-top: clamp(36px, 6vh, 66px); border-radius: var(--card); overflow: hidden; }
.t-page-banner img { width: 100%; height: clamp(240px, 44vh, 460px); object-fit: cover; }

.t-schedule { margin: clamp(38px, 6vh, 60px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.t-schedule li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}

.t-schedule time { font-family: var(--serif); font-size: 1.5rem; }
.t-schedule h3 { font-family: var(--serif); font-size: 1.3rem; }
.t-schedule p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.t-schedule-tag { padding: 6px 14px; border-radius: 999px; background: var(--sand); font-size: 12px; font-weight: 600; }

/* Filmstrip gallery -------------------------------------------------------------------

   Drag-to-scroll with snap points. Deliberately unlike Direction 02's grid and
   lightbox: one frame at a time, captions below, no overlay.                       */

.t-film { position: relative; }

.t-film-track {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  padding: 4px var(--gutter) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}

.t-film-track::-webkit-scrollbar { display: none; }
.t-film-track[data-dragging] { cursor: grabbing; scroll-snap-type: none; }
.t-film-track[data-dragging] .t-frame { pointer-events: none; }

.t-frame { flex: none; width: min(74vw, 700px); scroll-snap-align: center; }
.t-frame-media { border-radius: var(--card); overflow: hidden; background: var(--sand); }
.t-frame img { width: 100%; height: clamp(240px, 52vh, 520px); object-fit: cover; -webkit-user-drag: none; user-select: none; }
.t-frame figcaption { display: grid; gap: 5px; padding: 16px 4px 0; }
.t-frame figcaption b { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.t-frame figcaption span { color: var(--muted); font-size: 13px; }

.t-film-controls { display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); }
.t-film-btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.t-film-btn:hover { background: var(--sand); border-color: var(--espresso); }
.t-film-btn[disabled] { opacity: .32; cursor: default; }
.t-film-btn[disabled]:hover { background: none; border-color: var(--line-strong); }
.t-film-btn svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t-film-rail { position: relative; flex: 1; height: 2px; background: var(--sand-deep); }
.t-film-rail i { position: absolute; inset: 0 auto 0 0; display: block; width: var(--rail, 20%); background: var(--clay); transition: width .2s var(--ease); }
.t-film-hint { flex: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Visit / contact ------------------------------------------------------------------- */

.t-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(32px, 5vw, 70px); align-items: start; }
.t-visit-card { padding: clamp(28px, 3vw, 42px); border-radius: var(--card); background: var(--sand); }
.t-visit-card h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); }
.t-visit-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.t-visit-block:last-child { border-bottom: 0; padding-bottom: 0; }
.t-visit-block h3 { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.t-visit-block address, .t-visit-block p { margin: 10px 0 0; font-style: normal; font-size: 1.05rem; }
.t-visit-block a { display: block; margin-top: 8px; font-size: 1.05rem; }
.t-visit-block a:hover { color: var(--clay-deep); }
.t-hours { margin: 10px 0 0; display: grid; gap: 8px; }
.t-hours div { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.t-hours dt { color: var(--muted); }
.t-hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* CTA + footer ------------------------------------------------------------------------ */

.t-cta { padding: clamp(56px, 8vh, 92px) 0; background: var(--espresso); color: var(--cream); text-align: center; }
.t-cta .eyebrow { color: #e0a96a; }
.t-cta h2 { margin: 16px auto 0; max-width: 18ch; font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.03; letter-spacing: -.025em; }
.t-cta p { margin: 18px auto 30px; max-width: 46ch; color: rgb(251 247 240 / 70%); }

.t-footer { padding: clamp(48px, 7vh, 80px) 0 34px; background: var(--espresso); color: rgb(251 247 240 / 70%); border-top: 1px solid rgb(251 247 240 / 12%); }
.t-footer .site-brand { color: var(--cream); }
.t-footer .site-brand small { color: #e0a96a; }
.t-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.t-footer-grid p { margin: 16px 0 0; font-size: 14px; }
.t-footer h2 { color: var(--cream); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.t-footer nav a, .t-footer-col a { display: block; margin-top: 12px; font-size: 14px; }
.t-footer nav a:hover, .t-footer-col a:hover { color: var(--cream); }
.t-footer [data-placeholder] { text-decoration-color: rgb(251 247 240 / 34%); }
.t-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgb(251 247 240 / 12%); }
.t-footer-base p { margin: 0; color: rgb(251 247 240 / 56%); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.touring-site .placeholder-note { color: var(--muted); }

/* Responsive ----------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .t-cards, .t-facts { grid-template-columns: 1fr 1fr; }
  .t-visit, .t-split { grid-template-columns: 1fr; }
  .t-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .t-pill > nav, .t-pill-actions .button { display: none; }
  .t-pill { grid-template-columns: 1fr auto; padding: 8px 8px 8px 18px; }
  .t-toggle { display: grid; }
  .t-drive { height: 340vh; }
}

@media (max-width: 640px) {
  .t-cards, .t-facts { grid-template-columns: 1fr; }
  .t-footer-grid { grid-template-columns: 1fr; }
  .t-schedule li { grid-template-columns: 1fr; gap: 8px; }
  .t-schedule-tag { justify-self: start; }
  .t-hero-pop { position: static; width: auto; margin-top: 16px; transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .t-drive { height: auto; }
  .t-drive-pin { position: static; height: auto; }
  .t-drive-track { flex-wrap: wrap; transform: none; justify-content: center; }
  .t-stop { width: min(100%, 520px); }
  .t-hero-photo { transform: none; }
  .t-hero-pop { opacity: 1; transform: none; }
  .t-film-track { scroll-snap-type: none; }
}
