/* ==========================================================================
   Kintsugi Art — public website stylesheet
   One file for every page; each section is scoped by class name.
   Served as-is from public/css (no build step).
   ========================================================================== */


/* ==========================================================================
   base
   ========================================================================== */

/* ==========================================================================
   Base: design tokens, element defaults, utilities
   ========================================================================== */

:root {
  --paper: #FBF9F4;
  --paper-2: #F3EDE1;
  --mist: #EEE6D6;
  --ink: #221E1A;
  --ink-soft: #5A5049;
  --gold: #C99A3E;
  --gold-hi: #EBCB7E;
  --gold-text: #80591A;
  --sakura: #E3CF9F;
  --sakura-deep: #7A4E36;
  --indigo: #5E6E9C;
  --line: #E8DDD5;
  --danger: #A2324A;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', Helvetica, Arial, sans-serif;
  --jp: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;

  --head-h: 76px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: rgba(251, 249, 244, .86);
  backdrop-filter: blur(12px);
}

img, svg { max-width: 100%; }
a { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; color: var(--ink); }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* Skip link: hidden until focused with the keyboard */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

@media (max-width: 620px) {
  body { font-size: 17.5px; }
}


/* ==========================================================================
   layout
   ========================================================================== */

/* ==========================================================================
   Layout: header, navigation, page transition, petals, footer
   ========================================================================== */

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(251, 249, 244, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--head-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .16em; }
.brand-word small { font-size: 12px; letter-spacing: .62em; color: var(--gold-text); margin-top: 5px; padding-left: .2em; }

/* ---------- Navigation ---------- */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 17px; color: var(--ink-soft); text-decoration: none;
  padding: 10px 14px; border-radius: 999px; position: relative; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; color: var(--paper); }
.nav a.btn:hover, .nav a.btn:focus-visible { color: var(--ink); }
.nav .btn::after { display: none; }

.menu-btn {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent;
  border-radius: 50%; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Page entrance + gold-seam transition between pages ---------- */
.page { animation: pageIn .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.seam-veil { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; }
.seam-veil.run { animation: veil .95s ease both; }
.seam-veil svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seam-veil path {
  fill: none; stroke: url(#veilGold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1500; stroke-dashoffset: 1500; vector-effect: non-scaling-stroke;
}
.seam-veil.run path { animation: draw .6s cubic-bezier(.6, .1, .3, 1) forwards; }
/* Leaving a page: hold the veil until the next page loads */
.seam-veil.leave { animation: veilOut .42s ease forwards; }
.seam-veil.leave path { animation: draw .42s cubic-bezier(.6, .1, .3, 1) forwards; }
@keyframes veil {
  0% { opacity: 0; background: rgba(251, 249, 244, 0); }
  25% { opacity: 1; background: rgba(251, 249, 244, .9); }
  70% { opacity: 1; background: rgba(251, 249, 244, .9); }
  100% { opacity: 0; background: rgba(251, 249, 244, 0); }
}
@keyframes veilOut {
  from { opacity: 0; background: rgba(251, 249, 244, 0); }
  to { opacity: 1; background: rgba(251, 249, 244, .9); }
}
/* Arriving on the next page: the seam is already drawn, then fades away */
.arriving .seam-veil { animation: veilArrive .6s ease .05s both; }
.arriving .seam-veil path { stroke-dashoffset: 0; }
@keyframes veilArrive {
  from { opacity: 1; background: rgba(251, 249, 244, .9); }
  to { opacity: 0; background: rgba(251, 249, 244, 0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Falling petals canvas ---------- */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ---------- Footer ---------- */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 70px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--ink-soft); font-weight: 300; font-size: 17px; max-width: 26em; margin-top: 16px; }
.foot h4 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { color: var(--ink-soft); text-decoration: none; font-size: 17px; display: inline-block; padding: 6px 0; }
.foot ul a:hover { color: var(--gold-text); }
.foot-base {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 15px; color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    position: fixed; inset: calc(var(--head-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: rgba(251, 249, 244, .98); padding: 16px 24px 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .35s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 6px; font-size: 20px; }
  .nav a::after { left: 6px; right: auto; width: 40px; }
  .nav .btn { margin: 10px 0 0; }
  .menu-btn { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .foot-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   components
   ========================================================================== */

/* ==========================================================================
   Shared components: buttons, section bands, headings, page hero, CTA,
   gold rule, scroll reveal
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink);
  transition: background .3s, color .3s, box-shadow .3s, transform .2s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover, .btn-ink:focus-visible {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
  box-shadow: 0 0 0 5px rgba(201, 154, 62, .22);
}
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }

.icon-btn {
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink-soft);
  font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.icon-btn:hover { border-color: var(--gold); color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Section bands + headings ---------- */
section.band { padding: 110px 0; }
.band-soft { background: var(--mist); }
.band-blush { background: var(--paper-2); }

.sec-head { max-width: 720px; }
.sec-head h2 { font-size: clamp(40px, 4.8vw, 64px); font-weight: 500; }
.sec-head p { margin-top: 18px; color: var(--ink-soft); font-size: 21px; font-weight: 300; max-width: 34em; }

.kanji-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--jp); font-size: 18px; color: var(--sakura-deep); margin-bottom: 22px;
}
.kanji-tag::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }

/* ---------- Quote + gold rule ---------- */
.quote {
  font-family: var(--serif); font-size: clamp(34px, 4.3vw, 58px); line-height: 1.25; font-weight: 500;
  max-width: 22em; margin: 0 auto; text-align: center;
}
.quote-sig { display: block; margin-top: 26px; font-family: var(--jp); font-size: 18px; color: var(--sakura-deep); text-align: center; }
.gold-rule { display: block; margin: 34px auto 0; width: min(520px, 80%); height: 24px; }
.gold-rule path {
  fill: none; stroke: url(#ruleGold); stroke-width: 2;
  stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s cubic-bezier(.4, .1, .2, 1);
}
.in .gold-rule path, .gold-rule.in path { stroke-dashoffset: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Inner page hero ---------- */
.p-hero {
  padding: 90px 0 70px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
}
.p-hero h1 { font-size: clamp(50px, 6.6vw, 88px); font-weight: 500; max-width: 14em; }
.p-hero p { margin-top: 22px; max-width: 36em; font-size: 22px; color: var(--ink-soft); font-weight: 300; }
.p-hero .jp-big {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--jp); font-size: clamp(120px, 16vw, 230px); color: rgba(138, 100, 32, .07);
  writing-mode: vertical-rl; line-height: 1; pointer-events: none; user-select: none;
}

/* ---------- Call-to-action band ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: 120px 0; }
.cta h2 { font-size: clamp(44px, 5.4vw, 74px); font-weight: 500; }
.cta p { margin: 20px auto 0; color: var(--ink-soft); max-width: 30em; font-weight: 300; font-size: 21px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Notices ---------- */
.notice { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: #FBF1E4; color: #6B3A1F; font-size: 17px; }
.notice.ok { background: #F6F1E4; color: #4E3A12; }

@media (max-width: 620px) {
  section.band { padding: 80px 0; }
}


/* ==========================================================================
   forms
   ========================================================================== */

/* ==========================================================================
   Forms: card, fields, choice cards, chips, review list, success state
   Shared by the booking and contact pages.
   ========================================================================== */

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 44px;
  box-shadow: 0 30px 60px rgba(150, 100, 90, .08);
}
.form-card > form > h3 { font-size: 36px; }

/* ---------- Field grid ---------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 17px; font-weight: 500; color: var(--ink); }
.field label small, .field .label small { font-weight: 300; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 18px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; min-height: 50px; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 154, 62, .15); background: #fff;
}
.field .err { font-size: 15px; color: var(--danger); min-height: 0; }
.field .err:empty { display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #B5483A; }

/* ---------- Large choice cards (radio) ---------- */
.choices { display: grid; gap: 14px; margin-top: 28px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center;
  padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: all .3s;
}
.choice label svg { width: 54px; height: 54px; }
.choice label strong { display: block; font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.1; }
.choice label span { color: var(--ink-soft); font-size: 17px; font-weight: 300; }
.choice input:checked + label { border-color: var(--gold); background: #FFFBF2; box-shadow: 0 0 0 4px rgba(201, 154, 62, .14); }
.choice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Chips (small radio pills) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 17px; transition: all .25s;
}
.chip input:checked + label { border-color: var(--gold); background: #FFFBF2; color: var(--ink); }
.chip input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Actions row ---------- */
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Review list ---------- */
.review { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 18px; }
.review div:first-child { border-top: 0; }
.review dt { color: var(--ink-soft); font-weight: 300; }
.review dd { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 20px 0; }
.success svg { width: 130px; height: 130px; }
.success h3 { margin-top: 18px; }
.success p { color: var(--ink-soft); margin-top: 10px; }
.success .ref {
  display: inline-block; margin-top: 18px; padding: 8px 18px; border-radius: 999px;
  background: var(--paper-2); font-family: var(--serif); font-size: 22px; letter-spacing: .06em;
}
.success .form-nav { justify-content: center; }

/* ---------- Spam trap: invisible to people, filled in by bots ---------- */

@media (max-width: 620px) {
  .fields { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; border-radius: 18px; }
  .review div { grid-template-columns: 1fr; gap: 2px; }
}


/* ==========================================================================
   pages/home
   ========================================================================== */

/* ==========================================================================
   Home page: hero, mending-plate game, "three ways" cards, omikuji
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 48px 0 90px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-scene { position: absolute; inset: 0; pointer-events: none; }
.hero-scene svg { position: absolute; right: -4%; bottom: 0; width: min(1100px, 120%); height: auto; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(50px, 7vw, 96px); font-weight: 500; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero h1 .kanji-tag { display: flex; width: fit-content; line-height: 1.4; letter-spacing: 0; font-weight: 400; }
.hero-lead { margin-top: 24px; max-width: 30em; font-size: 22px; color: var(--ink-soft); font-weight: 300; }

/* ---------- Mending-plate game ---------- */
.mend { position: relative; display: flex; flex-direction: column; align-items: center; }
.mend-stage { position: relative; width: min(480px, 100%); aspect-ratio: 1; }
.mend-sun {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #F8EDD3 0%, #F2E4C4 55%, rgba(242, 228, 196, 0) 72%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.04); } }
.mend svg.bowl { position: relative; width: 100%; height: 100%; touch-action: none; overflow: visible; }

.piece { cursor: grab; outline: none; transition: filter .3s; }
.piece:not(.placed) { filter: drop-shadow(0 10px 14px rgba(80, 50, 40, .18)); }
.piece.dragging { cursor: grabbing; filter: drop-shadow(0 18px 22px rgba(80, 50, 40, .24)); }
.piece.placed { cursor: default; filter: none; }
.piece:focus-visible .edge { stroke: var(--gold); stroke-width: 3; }
.piece.hint { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { opacity: .75; } }

.seam {
  fill: none; stroke: url(#seamGold); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.4, .1, .2, 1);
}
.rim-gold { opacity: 0; transition: opacity 1s .4s; }
.whole .rim-gold { opacity: 1; }
.shine { opacity: 0; }
.whole .shine { animation: shine 1.6s .7s ease both; }
@keyframes shine {
  0% { opacity: 0; transform: translateX(-320px); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translateX(320px); }
}
.spark { opacity: 0; }
.whole .spark { animation: spark 1.2s ease both; }
@keyframes spark {
  0% { opacity: 0; transform: scale(0); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.2); }
}

.mend-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; min-height: 48px; }
.mend-status { font-size: 17px; color: var(--ink-soft); }
.mend-status strong { font-weight: 500; color: var(--ink); }
.dots { display: flex; gap: 7px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gold); transition: background .4s, transform .4s; }
.dots i.on { background: var(--gold); transform: scale(1.15); }

.done-msg {
  position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(10px); transition: all .8s .9s;
}
.done .done-msg { opacity: 1; transform: none; }
.done-msg span {
  display: inline-block; background: rgba(251, 249, 244, .94); padding: 12px 28px; border-radius: 999px;
  font-family: var(--serif); font-size: 30px; font-style: italic; color: var(--gold-text);
  border: 1px solid rgba(201, 154, 62, .45); box-shadow: 0 10px 34px rgba(150, 110, 40, .18);
}
.ripple { position: absolute; inset: 16%; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.done .ripple { animation: ripple 2s ease-out .45s 2; }
.done .ripple.r2 { animation-delay: 1.1s; }
.done .ripple.r3 { animation-delay: 1.75s; border-width: 1px; }
@keyframes ripple { 0% { opacity: .85; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.42); } }
.mend svg.bowl.whole { animation: lift 1.5s cubic-bezier(.3, .7, .3, 1) .35s; }
@keyframes lift {
  0% { transform: none; }
  35% { transform: scale(1.06) rotate(-2deg); }
  65% { transform: scale(1.02) rotate(1deg); }
  100% { transform: none; }
}
.done .mend-sun {
  background: radial-gradient(circle at 50% 50%, #FBEBC2 0%, #F3DC9F 50%, rgba(243, 220, 159, 0) 72%);
  transition: background 1s;
}

/* ---------- "Three ways" cards ---------- */
.offer-list { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.offer {
  padding: 36px 30px 40px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: background .4s;
}
.offer:last-child { border-right: 0; }
.offer:hover { background: rgba(255, 255, 255, .65); }
.offer svg { width: 86px; height: 86px; }
.offer h3 { font-size: 34px; font-weight: 600; }
.offer p { color: var(--ink-soft); font-weight: 300; }
.offer .more { margin-top: auto; font-size: 17px; color: var(--gold-text); font-weight: 500; }

/* ---------- Omikuji ---------- */
.omi { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.omi .sec-head { margin-bottom: 28px; }
.omi-box-wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.omi-box { width: 170px; height: 230px; position: relative; }
.omi-box.shake { animation: shake .75s ease; }
@keyframes shake { 10%, 50%, 90% { transform: rotate(-9deg); } 30%, 70% { transform: rotate(9deg); } 100% { transform: none; } }
.omi-paper {
  min-height: 320px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 40px 38px;
  position: relative; box-shadow: 0 20px 50px rgba(150, 90, 90, .10);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s;
}
.omi-paper.hidden { opacity: .35; transform: rotate(-2deg) translateY(8px); }
.omi-paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 1px; background: var(--sakura); }
.omi-level { display: flex; align-items: baseline; gap: 16px; }
.omi-level b { font-family: var(--jp); font-size: 46px; font-weight: 600; color: var(--sakura-deep); line-height: 1; }
.omi-level span { font-family: var(--serif); font-size: 30px; font-style: italic; }
.omi-text { font-family: var(--serif); font-size: 28px; line-height: 1.4; }
.omi-note { font-size: 17px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 28px; }
  .hero-grid, .omi { grid-template-columns: 1fr; }
  .mend { order: -1; }
  .offer-list { grid-template-columns: 1fr; }
  .offer { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .omi-paper { padding: 32px 26px 32px 40px; }
}


/* ==========================================================================
   pages/art
   ========================================================================== */

/* ==========================================================================
   The art page: history, ideas, interactive process, repair styles
   ========================================================================== */

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }

.prose h2 { font-size: clamp(38px, 4.2vw, 56px); font-weight: 500; margin-bottom: 24px; }
.prose p { color: var(--ink-soft); font-size: 20.5px; font-weight: 300; max-width: 34em; }
.prose p + p { margin-top: 18px; }

/* ---------- Ideas ---------- */
.ideas { display: grid; gap: 34px; }
.idea { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; }
.idea b { font-family: var(--jp); font-size: 34px; color: var(--sakura-deep); font-weight: 600; line-height: 1.2; }
.idea h3 { font-size: 31px; }
.idea p { color: var(--ink-soft); font-weight: 300; margin-top: 6px; }

/* ---------- Process stepper ---------- */
.process { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; margin-top: 56px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 14px; text-align: left;
  background: transparent; border: 0; border-left: 2px solid var(--line); padding: 16px 18px;
  cursor: pointer; font: inherit; color: var(--ink-soft); transition: all .35s;
}
.steps button .n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold-text); }
.steps button strong { display: block; font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.steps button .d { display: block; max-height: 0; overflow: hidden; opacity: 0; transition: all .45s; font-weight: 300; font-size: 18px; }
.steps button[aria-selected="true"] { border-left-color: var(--gold); background: rgba(255, 255, 255, .75); }
.steps button[aria-selected="true"] .d { max-height: 140px; opacity: 1; margin-top: 8px; }

.step-art {
  background: #fff; border: 1px solid var(--line); border-radius: 50%; aspect-ratio: 1;
  width: min(440px, 100%); margin-inline: auto; display: flex; align-items: center; justify-content: center; padding: 8%;
}
.step-art svg { width: 100%; height: 100%; }
.half { transition: transform .9s cubic-bezier(.3, .8, .2, 1); transform-origin: 150px 150px; }
.step-seam { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .7s, stroke-width .7s, opacity .7s; }

/* ---------- Repair styles ---------- */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; }
.style-card svg { width: 100%; height: auto; aspect-ratio: 1; background: #fff; border-radius: 50%; border: 1px solid var(--line); }
.style-card h3 { font-size: 31px; margin-top: 22px; }
.style-card .jp { font-family: var(--jp); color: var(--sakura-deep); font-size: 17px; margin-top: 4px; display: block; }
.style-card p { color: var(--ink-soft); font-weight: 300; margin-top: 10px; }

@media (max-width: 960px) {
  .two, .process, .styles { grid-template-columns: 1fr; }
}


/* ==========================================================================
   pages/services
   ========================================================================== */

/* ==========================================================================
   Services page: service rows and FAQ
   ========================================================================== */

.svc {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center;
  padding: 80px 0; border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 0; }
.svc.flip .svc-art { order: 2; }
.svc-art {
  aspect-ratio: 1; max-width: 420px; width: 100%; margin-inline: auto; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0%, var(--paper-2) 70%);
  display: flex; align-items: center; justify-content: center;
}
.svc-art svg { width: 72%; }
.svc h2 { font-size: clamp(40px, 4.5vw, 60px); font-weight: 500; }
.svc .jp { display: block; font-family: var(--jp); color: var(--sakura-deep); margin-bottom: 10px; }
.svc p { color: var(--ink-soft); font-weight: 300; font-size: 20.5px; margin-top: 18px; max-width: 32em; }
.svc ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.svc li::before { content: ""; flex: none; width: 14px; height: 1.5px; background: var(--gold); transform: translateY(-4px); }
.svc .btn { margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 50px auto 0; }
.faq details { border-top: 1px solid var(--line); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-family: var(--serif); font-size: 28px; font-weight: 600; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 1.5px solid var(--gold-text); border-bottom: 1.5px solid var(--gold-text);
  transform: rotate(45deg); transition: transform .35s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-soft); font-weight: 300; padding: 0 0 22px; max-width: 40em; }

@media (max-width: 960px) {
  .svc { grid-template-columns: 1fr; }
  .svc.flip .svc-art { order: 0; }
}


/* ==========================================================================
   pages/book
   ========================================================================== */

/* ==========================================================================
   Booking page: side journey + multi-step form
   ========================================================================== */

.book { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
section.band.book-band { padding-top: 60px; }

.book-side { position: sticky; top: 110px; }
.book-side h2 { font-size: clamp(38px, 4vw, 54px); font-weight: 500; }
.book-side p { color: var(--ink-soft); font-weight: 300; margin-top: 16px; }

.journey { margin-top: 34px; display: grid; gap: 4px; }
.journey div { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--ink-soft); font-size: 18px; transition: color .3s; }
.journey i {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-family: var(--serif); font-size: 17px; transition: all .4s;
}
.journey div.on { color: var(--ink); }
.journey div.on i { border-color: var(--gold); background: var(--gold); color: #fff; }
.journey div.done i { border-color: var(--gold); color: var(--gold-text); }

.fstep { display: none; }
.fstep.on { display: block; animation: pageIn .5s ease both; }
.fstep h3 { font-size: 36px; font-weight: 600; }
.fstep > p { color: var(--ink-soft); font-weight: 300; margin-top: 8px; }

@media (max-width: 960px) {
  .book { grid-template-columns: 1fr; }
  .book-side { position: static; }
}


/* ==========================================================================
   pages/contact
   ========================================================================== */

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
section.band.contact-band { padding-top: 60px; }

.c-list { display: grid; gap: 28px; margin-top: 34px; }
.c-item h3 { font-size: 28px; }
.c-item p, .c-item a { color: var(--ink-soft); font-weight: 300; font-size: 20.5px; }
.c-item a { color: var(--gold-text); font-weight: 400; }

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
}


/* ==========================================================================
   motion
   ========================================================================== */

/* ==========================================================================
   Reduced motion. Imported last so it overrides every animation above.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
