/* ============================================================
   ITADAKI JDM EXPERIENCE
   Design tokens carried over from the approved brand direction:
   near-black ground, muted gold accent, Lora display, Inter body.
   Single committed dark theme — every colour is painted explicitly.
   ============================================================ */

:root {
  --ink:          #07090a;
  --ink-raised:   #0e1112;
  --ink-sunken:   #040506;
  --gold:         #c4a15a;
  --gold-bright:  #e2c489;
  --bone:         #f2efe8;
  --ash:          #9c978c;
  --hairline:     rgba(196, 161, 90, 0.20);
  --hairline-dim: rgba(242, 239, 232, 0.10);

  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --page: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 11vw, 140px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 8px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 20px;
  font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { clip-path: none; }

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sunken { background: var(--ink-sunken); }
.section--raised { background: var(--ink-raised); }

.rule { border: 0; border-top: 1px solid var(--hairline-dim); margin: 0; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(34px, 6.2vw, 62px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 27px); }

p { margin: 0; max-width: var(--measure); }

.eyebrow {
  font: 500 11px/1.4 var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  display: block;
}

.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--bone); }
.muted { color: var(--ash); }
.small { font-size: 14px; line-height: 1.65; }
.tiny { font-size: 12.5px; line-height: 1.6; letter-spacing: .01em; }

.stack   { display: flex; flex-direction: column; gap: 20px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.stack-l { display: flex; flex-direction: column; gap: 34px; }

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(7, 9, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-dim);
}
.hdr__in {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
  max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter);
}
.hdr__logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.hdr__mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--bone); color: #b3191f;
  font-family: var(--display); font-size: 19px; line-height: 1;
  border-radius: 2px;
}
.hdr__word {
  font: 500 15px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone);
}
.hdr__nav { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-inline: auto; }
.hdr__nav a {
  font: 500 13px/1 var(--body); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--bone); text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.hdr__nav a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.hdr__nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 12.5px/1 var(--body); letter-spacing: 0.15em; text-transform: uppercase;
  padding: 14px 24px; text-decoration: none;
  border: 1px solid var(--gold); color: var(--gold-bright);
  background: transparent; border-radius: 1px;
  transition: background .22s, color .22s;
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-bright); color: var(--ink); }
.btn--lg { padding: 18px 34px; font-size: 13px; }
.hdr .btn { flex: 0 0 auto; padding: 11px 18px; }

@media (max-width: 860px) {
  .hdr__nav { display: none; }
  .hdr__in { min-height: 60px; }
  .hdr .btn { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero { position: relative; isolation: isolate; background: var(--ink-sunken); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

/* --- hero slideshow ---------------------------------------------------
   Three frames, 6s hold, 1s crossfade. The first frame is painted at rest
   so the page never starts blank, and the whole thing is inert without JS. */
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-on { opacity: 1; }
/* Each frame carries its own focal point (--pd desktop, --pm mobile) so the
   car is never cropped out of the composition. */
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pd, center 50%); }
@media (max-width: 767px) { .hero__slide img { object-position: var(--pm, center 40%); } }

.hero__ctrl {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 3;
  display: flex; align-items: center; gap: 14px;
}
.hero__dots { display: flex; gap: 9px; }
.hero__dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--gold);
  transition: background .25s;
}
.hero__dot[aria-current="true"] { background: var(--gold); }
.hero__play {
  width: 26px; height: 26px; padding: 0; cursor: pointer;
  background: transparent; border: 0; color: var(--gold);
  display: grid; place-items: center;
}
.hero__play svg { width: 13px; height: 13px; fill: currentColor; }

/* --- hero entrance -----------------------------------------------------
   The approved reveal: 1.4s fade with a 2s blur on the headline, the
   supporting line and CTA following at 0.18s and 0.34s. The button fades
   on opacity only — no blur or backdrop-filter — so its gold edge stays
   sharp the whole way through. Pure CSS, so nothing can leave text hidden. */
@keyframes itFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes itBlur { from { filter: blur(14px) } to { filter: blur(0) } }
@keyframes itRise { from { transform: translateY(16px) } to { transform: none } }

.hero h1,
.hero .hero__lead {
  animation:
    itFade 1.4s cubic-bezier(.2, .6, .2, 1) both,
    itBlur 2s cubic-bezier(.2, .6, .2, 1) both,
    itRise 1.4s cubic-bezier(.2, .6, .2, 1) both;
}
.hero .hero__lead { animation-delay: .18s, .18s, .18s; }
.hero__in > .btn {
  animation: itFade 1.1s ease both;
  animation-delay: .34s;
  filter: none;
  backdrop-filter: none;
}
.hero .eyebrow { animation: itFade 1.1s ease both; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .hero__lead, .hero__in > .btn, .hero .eyebrow { animation: none; }
  .hero__slide { transition: none; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,9,10,.58) 0%, rgba(7,9,10,.28) 38%, rgba(7,9,10,.88) 88%, var(--ink) 100%);
}
.hero__in {
  max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter);
  padding-block: clamp(120px, 22vh, 210px) clamp(72px, 12vh, 120px);
  display: flex; flex-direction: column; gap: 26px; align-items: flex-start;
}
.hero h1 { max-width: 15ch; text-shadow: 0 2px 26px rgba(0,0,0,.55); }
.hero p { max-width: 42ch; font-size: clamp(16px, 2vw, 19px); text-shadow: 0 1px 14px rgba(0,0,0,.6); }

.hero--page .hero__in { padding-block: clamp(96px, 16vh, 160px) clamp(56px, 9vh, 96px); }

@media (max-width: 720px) {
  .hero__media img { object-position: center 30%; }
}

/* ---------- experience cards ---------- */

.cards {
  display: grid; gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--ink-raised);
  border: 1px solid var(--hairline-dim);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--gold); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); } }

.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-sunken); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.04); } }

.card__body { padding: 26px clamp(20px, 2.4vw, 30px) 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.2; }
.card__tag { color: var(--ash); font-size: 14.5px; line-height: 1.6; flex: 1; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--hairline-dim);
  font-size: 13px; color: var(--ash);
}
.card__price { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.card__go { margin-left: auto; color: var(--gold); }

/* ---------- fact strip ---------- */

.facts {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--hairline-dim);
  border-block: 1px solid var(--hairline-dim);
}
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fact { background: var(--ink); padding: 22px clamp(14px, 2vw, 24px); }
.fact dt {
  font: 500 10.5px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.fact dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bone); }

/* ---------- price table ---------- */

.price {
  border: 1px solid var(--hairline);
  background: var(--ink-raised);
  padding: clamp(22px, 3vw, 32px);
}
.price__label {
  font: 500 10.5px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 4px;
}
.price__unit { color: var(--ash); font-size: 13px; margin: 0 0 22px; }
/* One row per group size. A single column keeps the yen figures from crowding
   each other in the narrow column this block sits in, and reads as a rate card. */
.price__rows { display: flex; flex-direction: column; }
.price__cell {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-top: 1px solid var(--hairline-dim);
}
.price__cell:first-child { border-top: 0; padding-top: 4px; }
.price__who { font-size: 13.5px; color: var(--ash); letter-spacing: .03em; }
.price__amt {
  font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.1; color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price__cell:first-child .price__amt { color: var(--gold-bright); }
.price__note { margin: 20px 0 0; color: var(--ash); font-size: 13.5px; line-height: 1.6; }

/* ---------- route timeline ---------- */

.route { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
.route li {
  position: relative; counter-increment: stop;
  padding: 0 0 30px 40px;
  border-left: 1px solid var(--hairline);
}
.route li:last-child { border-left-color: transparent; padding-bottom: 0; }
.route li::before {
  content: ""; position: absolute; left: -5px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--gold);
}
.route li:first-child::before, .route li:last-child::before { background: var(--gold); }
.route__stop {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: 19px; line-height: 1.3; margin-bottom: 6px;
}
.route__desc { color: var(--ash); font-size: 14.5px; line-height: 1.65; max-width: 52ch; }

/* ---------- lists ---------- */

.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 11px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.crosses li { color: var(--ash); }
.crosses li::before {
  content: "—"; position: absolute; left: 0; top: 0; color: var(--ash);
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.chips li {
  border: 1px solid var(--hairline); color: var(--bone);
  padding: 7px 14px; font-size: 13px; letter-spacing: .02em;
}

/* ---------- split ---------- */

/* Grid and flex children default to min-width:auto, so a wide image or a long
   unbreakable string can push a track past the viewport. Pin them to 0. */
.split > *, .cards > *, .trust > *, .facts > *, .price__rows > *,
.mosaic > *, .ftr__grid > *, .hdr__in > * { min-width: 0; }

.split {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.split--sticky { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split--portrait .split__media img { aspect-ratio: 3 / 4; }

/* ---------- spec list ---------- */

.spec { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
.spec dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.spec dd { margin: 0; font-size: 15.5px; }

/* ---------- gallery mosaic ---------- */

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic > * { overflow: hidden; background: var(--ink-raised); }
.mosaic > *:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.mosaic > *:nth-child(2) { grid-column: span 2; aspect-ratio: 2 / 1; }
.mosaic > *:nth-child(3),
.mosaic > *:nth-child(4) { aspect-ratio: 1; }
.mosaic > *:nth-child(5),
.mosaic > *:nth-child(6) { grid-column: span 2; aspect-ratio: 2 / 1; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .mosaic > *:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .mosaic > *:nth-child(2),
  .mosaic > *:nth-child(5),
  .mosaic > *:nth-child(6) { grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* ---------- trust ---------- */

.trust { display: grid; gap: clamp(22px, 3.5vw, 44px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .trust { grid-template-columns: 1fr; } }
.trust h3 { font-size: 20px; margin-bottom: 10px; }
.trust p { color: var(--ash); font-size: 14.5px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hairline-dim); }
.faq details { border-bottom: 1px solid var(--hairline-dim); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2vw, 20px); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { color: var(--ash); font-size: 15px; padding: 0 0 24px; max-width: var(--measure); }

/* ---------- booking CTA ---------- */

.cta {
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(196,161,90,.07), rgba(196,161,90,0)),
    var(--ink-raised);
  padding: clamp(30px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); }

/* Mobile sticky booking bar on product pages */
.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; align-items: center; gap: 14px;
  background: rgba(7,9,10,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.bookbar__price { font-size: 13px; line-height: 1.35; color: var(--ash); }
.bookbar__price b { display: block; color: var(--bone); font-weight: 500; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
.bookbar .btn { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 760px) {
  .bookbar { display: flex; }
  body.has-bookbar { padding-bottom: 82px; }
}

/* ---------- footer ---------- */

.ftr { background: var(--ink-sunken); border-top: 1px solid var(--hairline-dim); padding-block: clamp(48px, 7vw, 76px) 34px; }
.ftr__grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h4 { font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr a { color: var(--ash); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.ftr a:hover { color: var(--bone); }
.ftr__base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline-dim); color: var(--ash); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- breadcrumb ---------- */

.crumb { font-size: 12.5px; letter-spacing: .06em; color: var(--ash); padding-block: 20px 0; }
.crumb a { color: var(--ash); text-decoration: none; }
.crumb a:hover { color: var(--gold-bright); }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4.6vw, 44px); }
.legal__list { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: sec; display: flex; flex-direction: column; gap: 34px; }
.legal__list > li { counter-increment: sec; padding-top: 26px; border-top: 1px solid var(--hairline-dim); }
.legal__list h2 { font-size: clamp(18px, 2.2vw, 22px); margin-bottom: 10px; }
.legal__list h2::before { content: counter(sec) ". "; color: var(--gold); }
.legal__list p { color: var(--ash); font-size: 15px; line-height: 1.75; }
.legal__list p + p { margin-top: 4px; }
.legal a { color: var(--gold-bright); }
