/* =========================================================
   KAWAI TRADINGS — Design ①  "Case File" comic style
   Red speed lines · cream grid paper · stamps · tilted prints
   ========================================================= */
:root {
  --red: #e8382f;
  --red-deep: #b81f1a;
  --ink: #141414;
  --cream: #fff6ea;
  --paper-line: rgba(232, 56, 47, .12);
  --yellow: #ffd400;
  --sea: #1aa6e8;
  --navy: #0b2a55;
  --pink: #ff3fa4;
  --whatsapp: #1fa855;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --num: "Anton", Impact, "Arial Narrow", sans-serif;
  --jp: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --body: "Zen Kaku Gothic New", "Inter", "Helvetica Neue", Arial, sans-serif;
  --burst: polygon(100% 50%,94.6% 55.9%,98.3% 62.9%,91.6% 67.2%,93.3% 75%,85.7% 77.4%,85.4% 85.4%,77.4% 85.7%,75% 93.3%,67.2% 91.6%,62.9% 98.3%,55.9% 94.6%,50% 100%,44.1% 94.6%,37.1% 98.3%,32.8% 91.6%,25% 93.3%,22.6% 85.7%,14.6% 85.4%,14.3% 77.4%,6.7% 75%,8.4% 67.2%,1.7% 62.9%,5.4% 55.9%,0% 50%,5.4% 44.1%,1.7% 37.1%,8.4% 32.8%,6.7% 25%,14.3% 22.6%,14.6% 14.6%,22.6% 14.3%,25% 6.7%,32.8% 8.4%,37.1% 1.7%,44.1% 5.4%,50% 0%,55.9% 5.4%,62.9% 1.7%,67.2% 8.4%,75% 6.7%,77.4% 14.3%,85.4% 14.6%,85.7% 22.6%,93.3% 25%,91.6% 32.8%,98.3% 37.1%,94.6% 44.1%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--ink);
  font-size: 16px; line-height: 1.85; font-weight: 500; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Speed-line backgrounds ---------- */
.speed {
  background-color: var(--red);
  background-image:
    repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,.0) 0deg 4deg, rgba(255,255,255,.13) 4deg 5deg, rgba(0,0,0,0) 5deg 11deg, rgba(0,0,0,.08) 11deg 12deg);
}
.paper {
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo img { width: 46px; height: 46px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.logo b { font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; line-height: 1; text-shadow: 2px 2px 0 var(--ink); }
.logo small { display: block; font-family: var(--jp); font-size: .7rem; letter-spacing: .1em; margin-top: 4px; text-shadow: 1px 1px 0 var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 800; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--ink); transition: transform .15s;
}
.pill:hover { transform: translateY(-2px); }
.pill svg { width: 18px; height: 18px; }
.hdr.is-scrolled .logo b, .hdr.is-scrolled .logo small { text-shadow: none; color: var(--ink); }
.hdr.is-scrolled { background: rgba(255,246,234,.94); box-shadow: 0 2px 0 var(--ink); }
.pill { white-space: nowrap; }
@media (max-width: 560px) { .logo b { font-size: .95rem; white-space: nowrap; } .logo img { width: 38px; height: 38px; } .pill { padding: 10px 14px; font-size: .85rem; } }
@media (max-width: 400px) { .logo small { display: none; } .pill .txt { display: none; } .pill { padding: 12px; } }

/* ---------- Glitch headline ---------- */
.glitch {
  font-family: var(--display); color: #fff; text-transform: uppercase; letter-spacing: -.01em;
  transform: skewX(-8deg) rotate(-3deg);
  text-shadow: -4px 0 0 var(--sea), 4px 0 0 var(--pink), 0 8px 0 rgba(0,0,0,.25);
}
.glitch .jp { font-family: var(--jp); }

/* ---------- Stamps ---------- */
.burst {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px;
  clip-path: var(--burst); background: var(--yellow); color: var(--ink);
  font-family: var(--jp); font-size: 1.5rem; transform: rotate(-12deg); line-height: 1; text-align: center;
}
.burst--red { background: var(--red); color: #fff; }
.burst small { display: block; font-family: var(--display); font-size: .6rem; letter-spacing: .08em; margin-top: 4px; }
.seal {
  display: inline-flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%;
  border: 4px solid var(--red); color: var(--red); font-family: var(--jp); font-size: 2.4rem; transform: rotate(14deg);
  background: rgba(255,255,255,.4);
}

/* ---------- Label + big number ---------- */
.label {
  display: inline-block; background: var(--ink); color: #fff; font-weight: 900; font-size: 1.25rem;
  padding: 4px 12px 6px; line-height: 1.3;
}
.label + .label { margin-top: 4px; }
.labels { display: flex; flex-direction: column; align-items: flex-start; }
.bignum { font-family: var(--num); color: var(--red); line-height: .95; font-size: clamp(5rem, 15vw, 9.5rem); display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.bignum small { font-family: var(--display); font-size: clamp(1.4rem, 3.6vw, 2.4rem); color: var(--red); }

/* ---------- Polaroid prints ---------- */
.print {
  background: #fff; padding: 10px 10px 14px; box-shadow: 0 14px 28px rgba(0,0,0,.28); border-radius: 4px;
  transition: transform .3s;
}
.print img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.print figcaption { font-family: var(--display); font-size: .82rem; margin-top: 8px; letter-spacing: .02em; }
.print:hover { transform: rotate(0) scale(1.03) !important; }
.tilt-l { transform: rotate(-5deg); }
.tilt-r { transform: rotate(4deg); }
.tilt-s { transform: rotate(-2deg); }
.tape { position: relative; }
.tape::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px;
  background: rgba(255, 212, 0, .75); transform: rotate(-4deg); z-index: 2;
}

/* =========================================================
   INTRO (mission briefing)
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(60, 8, 6, .82); backdrop-filter: blur(3px); transition: opacity .4s, visibility .4s;
}
.intro.is-hidden { opacity: 0; visibility: hidden; }
.intro-card {
  position: relative; width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; overflow-x: hidden;
  background: var(--cream); padding: 48px 44px 36px; border-radius: 6px;
}
.intro-card .burst { position: absolute; top: 14px; right: 14px; }
.intro-title { font-family: var(--display); font-size: clamp(2rem, 6vw, 3.2rem); color: var(--red); line-height: 1.05; text-transform: uppercase; -webkit-text-stroke: 1px var(--ink); text-shadow: 3px 3px 0 var(--ink); margin-bottom: 20px; }
.intro-card p { font-weight: 700; }
.mission-btn {
  display: flex; align-items: stretch; width: 100%; margin-top: 26px; border: 2px solid var(--ink); background: #fff;
  cursor: pointer; font: inherit; padding: 0; text-align: left;
}
.mission-btn span { flex: 1; background: var(--ink); color: #fff; font-weight: 900; padding: 20px 22px; font-size: 1.05rem; }
.mission-btn i { width: 90px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 2.2rem; }
.mission-btn:hover span { background: var(--red); }
.intro-title { padding-right: 0; }
.mission { position: relative; }
.mission .seal { position: absolute; right: -14px; bottom: -40px; width: 66px; height: 66px; font-size: 1.8rem; pointer-events: none; z-index: 2; }
.road { position: relative; height: 40px; margin-top: 30px; border-bottom: 2px solid var(--ink); overflow: hidden; }
.road svg { position: absolute; bottom: 0; width: 70px; animation: drive 5s linear infinite; }
@keyframes drive { from { left: -80px; } to { left: 100%; } }
@media (max-width: 560px) { .intro-card { padding: 40px 22px 28px; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; padding: 110px 0 80px; overflow: hidden; }
.hero-photo {
  position: relative; width: min(92%, 980px); margin: 0 auto; border-radius: 36px; overflow: hidden;
  aspect-ratio: 16/10; border: 6px solid var(--ink); box-shadow: 14px 14px 0 var(--ink);
}
.hero-photo img, .hero-photo video { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.hero h1 {
  position: absolute; z-index: 3; left: 50%; top: 52%; width: 94%; max-width: 1060px;
  translate: -50% -50%; font-size: clamp(2.7rem, 9vw, 7rem);
}
.hero h1 .l2 { display: block; padding-left: 12%; }
.hero h1 .l3 { display: block; padding-left: 4%; color: var(--yellow); }
.hero-sub {
  position: relative; z-index: 4; max-width: 980px; margin: 34px auto 0; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.hero-sub p { color: #fff; font-weight: 800; font-size: 1.12rem; margin: 0; max-width: 32em; text-shadow: 1px 1px 0 rgba(0,0,0,.3); }
.hero .burst { position: absolute; z-index: 5; right: 6%; top: 18%; width: 128px; height: 128px; font-size: 1.15rem; }
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: 96px; }
  .hero-photo { aspect-ratio: 4/5; border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); }
  .hero h1 { top: 44%; }
  .hero .burst { width: 96px; height: 96px; font-size: .9rem; right: 4%; top: 13%; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900;
  padding: 16px 28px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s; font-size: 1.02rem;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; }
.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--fb { background: #fff; color: var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Prints row ---------- */
.prints { position: relative; padding: 30px 0 90px; }
.prints-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.prints-row .print:nth-child(2) { margin-top: 40px; }
@media (max-width: 760px) {
  .prints-row { grid-template-columns: 1fr 1fr; }
  .prints-row .print:nth-child(3) { grid-column: 1 / -1; width: 70%; margin: -10px auto 0; }
  .prints-row .print:nth-child(2) { margin-top: 26px; }
}

/* =========================================================
   CASE FILE PANELS
   ========================================================= */
.file { position: relative; margin: 0 auto; max-width: 1040px; border-radius: 6px; padding: 60px 56px 64px; }
.file + .file { margin-top: 60px; }
.file > .burst { position: absolute; top: -40px; left: 28px; }
.file-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; margin-bottom: 34px; }
.file-no { font-family: var(--display); font-size: .9rem; letter-spacing: .14em; color: var(--red); }
.file-title { font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 3.1rem); text-transform: uppercase; line-height: 1.02; }
.file-title em { font-style: normal; color: var(--red); }
.file-lead { font-size: 1.08rem; font-weight: 700; max-width: 40em; }
@media (max-width: 700px) { .file { padding: 44px 22px 44px; border-radius: 0; } .file > .burst { width: 86px; height: 86px; font-size: 1.2rem; left: 14px; top: -34px; } }

.section-dark { background: #1c1c1c; padding: 110px 0; position: relative; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Osaka_Auto_Messe_2019_%28181%29_-_Daihatsu_HIJET_TRUCK_JUMBO_California_Contractor_ver.jpg/1280px-Osaka_Auto_Messe_2019_%28181%29_-_Daihatsu_HIJET_TRUCK_JUMBO_California_Contractor_ver.jpg") center / cover;
  filter: grayscale(.3) blur(2px);
}
.section-dark > * { position: relative; }

/* stats grid */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.stat p { margin: 10px 0 0; font-weight: 700; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 40px; } }

/* round speech bubble */
.shout {
  width: 230px; height: 230px; border-radius: 50%; background: #fff; border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; text-align: center; position: relative;
  font-family: var(--display); font-size: 1.6rem; line-height: 1.1; transform: rotate(6deg);
}
.shout::after {
  content: ""; position: absolute; bottom: 6px; left: 26px; width: 40px; height: 40px; background: #fff;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: skewX(30deg) rotate(-20deg);
}
.shout span { position: relative; z-index: 1; }
.shout-wrap { display: flex; justify-content: flex-end; margin-top: -40px; }
@media (max-width: 760px) { .shout { width: 170px; height: 170px; font-size: 1.15rem; } .shout-wrap { margin-top: 10px; } }

/* testimony bubble */
.testimony { position: relative; margin-top: 70px; }
.testimony .burst { position: absolute; top: -48px; left: -8px; z-index: 2; }
.bubble {
  position: relative; background: var(--red); border: 3px solid var(--ink); border-radius: 26px;
  padding: 44px 34px 30px; color: #fff; font-weight: 700; font-size: 1.08rem;
}
.bubble::after {
  content: ""; position: absolute; bottom: -34px; left: 30%; width: 50px; height: 50px; background: var(--red);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: skewX(-30deg) rotate(30deg);
}
.bubble mark { background: var(--yellow); color: var(--ink); padding: 1px 5px; }
.bubble p:last-child { margin-bottom: 0; }
.speaker { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding-left: 22%; }
.speaker .face {
  width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ink); background: var(--navy) url("logo.svg") center / 70% no-repeat;
}
.speaker b { font-family: var(--display); font-size: 1.1rem; display: block; }
.speaker small { font-weight: 700; color: #555; }

/* evidence list (5 things) */
.evidence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.evidence li {
  position: relative; background: #fff; border: 3px solid var(--ink); padding: 46px 16px 18px; font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink); line-height: 1.5;
}
.evidence li:nth-child(odd) { transform: rotate(-1.5deg); }
.evidence li:nth-child(even) { transform: rotate(1.5deg); }
.evidence .n {
  position: absolute; top: -18px; left: 12px; width: 50px; height: 50px; border-radius: 50%; background: var(--red);
  color: #fff; font-family: var(--num); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink);
}
.evidence small { display: block; font-weight: 600; color: #555; font-size: .85rem; margin-top: 6px; }
@media (max-width: 900px) { .evidence { grid-template-columns: 1fr 1fr; gap: 30px 16px; } }
@media (max-width: 520px) { .evidence { grid-template-columns: 1fr; } }

/* split rows */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* vehicles */
.vehicles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.vehicle { position: relative; }
.vehicle h3 { font-family: var(--display); font-size: 1.15rem; margin-top: 10px; }
.vehicle .meta { font-weight: 700; font-size: .9rem; color: #555; margin: 4px 0 12px; }
.vehicle .ask { display: inline-block; font-weight: 900; text-decoration: none; border-bottom: 3px solid var(--red); }
.tag-sample { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; font-size: .72rem; padding: 2px 8px; letter-spacing: .06em; }
@media (max-width: 860px) { .vehicles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .vehicles { grid-template-columns: 1fr; } }

/* dealer perks */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 26px 24px; box-shadow: 6px 6px 0 var(--red); }
.perk h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; text-transform: uppercase; }
.perk p { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; } }
.terms { width: 100%; border-collapse: collapse; margin-top: 34px; background: #fff; border: 3px solid var(--ink); }
.terms th, .terms td { padding: 14px 18px; border-bottom: 2px dashed #d9cfc2; text-align: left; vertical-align: top; }
.terms th { background: var(--ink); color: #fff; width: 28%; font-weight: 900; border-bottom-color: #333; }
.terms tr:last-child th, .terms tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .terms th, .terms td { display: block; width: 100%; } }

/* route (how it works) */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 30px; counter-reset: s; position: relative; }
.route li { counter-increment: s; position: relative; padding-top: 74px; }
.route li::before {
  content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--num);
  font-size: 4.2rem; line-height: 1; color: var(--red); -webkit-text-stroke: 2px var(--ink);
}
.route h3 { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 8px; }
.route p { margin: 0; font-weight: 600; }
.route .where { display: inline-block; font-family: var(--jp); font-size: .78rem; background: var(--ink); color: #fff; padding: 1px 8px; margin-bottom: 8px; }
@media (max-width: 860px) { .route { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .route { grid-template-columns: 1fr; gap: 34px; } }
.sea-line { height: 34px; margin: 40px 0 0; position: relative; background: repeating-linear-gradient(90deg, var(--navy) 0 14px, transparent 14px 24px) center / 100% 3px no-repeat; }
.sea-line svg { position: absolute; top: 0; width: 64px; animation: ship 9s linear infinite; }
@keyframes ship { from { left: 0; } to { left: calc(100% - 64px); } }

/* news */
.news { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.news li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 2px dashed #d9cfc2; font-weight: 700; }
.news time { font-family: var(--display); color: var(--red); font-size: .9rem; }
.chip { display: inline-block; background: var(--yellow); border: 2px solid var(--ink); font-size: .7rem; font-weight: 900; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 520px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* CTA */
.cta { padding: 120px 0 110px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(2.6rem, 8vw, 5.6rem); margin-bottom: 26px; }
.cta p { color: #fff; font-weight: 800; font-size: 1.15rem; max-width: 34em; margin: 0 auto 30px; }
.cta .btns { justify-content: center; }

/* footer */
.ftr { background: var(--ink); color: #bbb; padding: 50px 0 30px; font-size: .92rem; }
.ftr-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.ftr .logo b { text-shadow: none; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr nav a { color: #fff; text-decoration: none; font-weight: 700; }
.ftr nav a:hover { color: var(--yellow); }
.credit { margin-top: 30px; font-size: .78rem; color: #888; }

/* TOP button */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; font-family: var(--display); font-size: .7rem; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; translate: 0 40px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .road svg, .sea-line svg { animation: none; }
  html { scroll-behavior: auto; }
}
