/* KAYORA: shockwave article page. Industrial loft clinic: concrete, blackened steel, brick, oak. */

@font-face { font-family: "Anuphan"; src: url("../fonts/anuphan-thai.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; src: url("../fonts/anuphan-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; src: url("../fonts/baijamjuree-thai.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; src: url("../fonts/baijamjuree-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212; }

:root {
  --concrete: #ecebe8;
  --concrete-2: #dedcd8;
  --steel: #1c1e20;
  --steel-2: #4a4d50;
  --line: #c9c6c1;
  --char: #26292c;
  --char-deep: #17191b;
  --char-tint: #c9ccd0;
  --brick: #a4442b;
  --brick-deep: #84351f;
  --oak: #b98a57;
  --strong: #a4442b;
  --moderate: #6b6e72;
  --adjunct: #8f8c87;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1240px;
  --section: clamp(104px, 13vw, 192px);

  --f: "Anuphan", "Sukhumvit Set", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  --f-serif: "Bai Jamjuree", "Anuphan", sans-serif;
  --fs-body: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  --fs-lede: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--steel-2) var(--concrete-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); font-family: var(--f); font-size: var(--fs-body); line-height: 1.8; color: var(--steel); background-color: var(--concrete); -webkit-font-smoothing: antialiased; }
::selection { background: var(--char); color: #fff; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--f-serif); font-weight: 600; margin: 0; line-height: 1.25; letter-spacing: -0.005em; text-wrap: balance; }
h3 { margin: 0; font-weight: 600; line-height: 1.35; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
.nowrap { white-space: nowrap; }
.en { font-weight: 400; color: var(--steel-2); font-size: 0.72em; letter-spacing: 0.02em; white-space: nowrap; font-family: var(--f); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--steel); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }


/* Logo plate: blackened steel with a brick edge */
.seal {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: var(--steel); color: var(--concrete);
  font: 600 17px/1 var(--f-serif); letter-spacing: 0; text-align: center; padding-bottom: 2px;
  box-shadow: inset 0 -3px 0 var(--brick), inset 0 0 0 2px rgba(255,255,255,.12);
}
.seal-sm { width: 30px; height: 30px; font-size: 13px; margin-right: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; background: var(--brick); color: #fff;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; border-radius: 4px;
  transition: background-color .3s var(--ease-out);
  box-shadow: 0 1px 2px rgba(132,53,31,.25), 0 10px 24px -14px rgba(132,53,31,.7);
}
.btn::after { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; transition: width .35s var(--ease-out); }
.btn:hover { background: var(--brick-deep); }
.btn:hover::after { width: 34px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 1rem; box-shadow: none; }
.btn-sm::after { width: 14px; }
.btn-sm:hover::after { width: 20px; }
.btn-invert { background: var(--brick); color: #fff; }
.btn-invert:hover { background: var(--brick-deep); }
.link-arrow { font-weight: 600; color: var(--char); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--char) 35%, transparent); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-invert { color: var(--concrete); text-decoration-color: rgba(236,235,232,.45); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--concrete) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--f-serif); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 32px; margin-left: auto; font-size: .975rem; }
.site-nav a { text-decoration: none; color: var(--steel-2); padding: 8px 0; }
.site-nav a:hover { color: var(--steel); text-decoration: underline; }
@media (max-width: 900px) { .site-nav { display: none; } .header-row > .btn { margin-left: auto; } }

/* Hero: real photograph bleeding to the right edge */
.hero { position: relative; min-height: min(calc(100vh - 76px), 820px); display: flex; align-items: center; overflow: hidden; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: min(56%, calc(100% - (100vw - min(100vw - 2 * var(--gutter), var(--max))) / 2 - 600px)); margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 88px); }
.hero-copy { width: min(540px, 42vw); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9375rem; color: var(--steel-2); margin-bottom: 28px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--steel); text-decoration: underline; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.22; letter-spacing: -0.01em; }
.lede { font-size: var(--fs-lede); color: var(--steel-2); max-width: 30em; margin-top: clamp(20px, 2.2vw, 28px); line-height: 1.75; }
.meta { margin-top: 20px; font-size: .9375rem; color: var(--steel-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-photo { position: relative; width: 100%; height: auto; }
  .hero-photo img { aspect-ratio: 16 / 10; height: auto; }
  .hero-copy { width: auto; }
  .hero-inner { padding-block: 28px 64px; }
  .crumbs { margin-bottom: 16px; }
}

/* Quiz */
.quiz { padding-block: var(--section); background: var(--concrete-2); }
.quiz-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.quiz-intro { grid-column: 1 / span 5; position: sticky; top: 120px; }
.quiz-intro h2 { font-size: var(--fs-h2); }
.quiz-intro p { margin-top: 20px; color: var(--steel-2); font-size: var(--fs-lede); }
.quiz-intro .quiz-disclaimer { font-size: .9375rem; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 28px; }
.quiz-card { grid-column: 7 / span 6; background: var(--concrete); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -48px rgba(23,25,27,.5); }
.quiz-progress { height: 2px; background: var(--line); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--brick); transform-origin: left; transform: scaleX(.2); transition: transform .5s var(--ease-out); }
.quiz-count { margin-top: 14px; font-size: .9375rem; font-weight: 600; color: var(--steel-2); font-variant-numeric: tabular-nums; }
.q { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.q legend { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); line-height: 1.4; padding: 0; }
.q legend small { font-family: var(--f); font-size: .9375rem; font-weight: 400; color: var(--steel-2); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.opts-scale, .q[data-q="pattern"] .opts, .q[data-q="flags"] .opts { grid-template-columns: 1fr; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts span { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px 12px 50px; border: 1px solid var(--line); border-radius: 4px; background: #f6f5f3; line-height: 1.5; transition: border-color .2s, background-color .2s; position: relative; }
.opts span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--steel-2); background: #fff; transition: box-shadow .2s; }
.opts input[type="checkbox"] + span::before { border-radius: 3px; }
.opts b { font-variant-numeric: tabular-nums; min-width: 3.2em; }
.opts label:hover span { border-color: var(--steel-2); }
.opts input:checked + span { border-color: var(--brick); background: #f3e6e1; }
.opts input:checked + span::before { box-shadow: inset 0 0 0 6px var(--brick); }
.opts input[type="checkbox"]:checked + span::before { box-shadow: inset 0 0 0 9px var(--brick); }
.opts input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.quiz-nav .btn { margin-left: auto; }
.btn:disabled { background: #b9b3a6; box-shadow: none; cursor: not-allowed; }
.btn-ghost { font: inherit; font-weight: 600; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--steel); cursor: pointer; }
.btn-ghost:hover { border-color: var(--steel-2); }
.quiz-result { margin-top: 20px; outline: none; }
.quiz-result h3 { font-family: var(--f-serif); font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.35; }
.quiz-result .evidence { margin-top: 12px; }
.quiz-result > p[data-r-text] { margin-top: 16px; color: var(--steel-2); max-width: 38em; }
.result-answers { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.result-answers li { font-size: .9375rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--steel-2); }
.result-note { margin-top: 20px; padding: 14px 18px; background: #f3e1db; color: #7a2414; border-radius: 4px; font-weight: 500; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 32px; }
@media (max-width: 900px) {
  .quiz-intro, .quiz-card { grid-column: 1 / -1; position: static; }
  .quiz-card { margin-top: 32px; }
  .opts { grid-template-columns: 1fr; }
}

/* Evidence */
.evidence, .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; margin-top: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--strong); }
[data-level="moderate"] .dot { background: transparent; box-shadow: inset 0 0 0 2.5px var(--moderate); }
[data-level="adjunct"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--adjunct); }
[data-level="strong"] { color: var(--brick-deep); }
[data-level="moderate"] { color: #4a4d50; }
[data-level="adjunct"] { color: #5d5a55; }

/* Section heads and photos */
.section-head { max-width: 760px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 20px; color: var(--steel-2); font-size: var(--fs-lede); line-height: 1.75; }
.section-head.with-photo { max-width: none; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.section-head.with-photo h2 { grid-column: 1; grid-row: 1; align-self: end; }
.section-head.with-photo p { grid-column: 1; grid-row: 2; align-self: start; }
.section-head.with-photo .photo { grid-column: 2; grid-row: 2 / span 2; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.photo figcaption { margin-top: 10px; font-size: .9375rem; color: var(--steel-2); line-height: 1.6; padding-left: 14px; position: relative; }
.photo figcaption::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; background: var(--brick); }
@media (max-width: 860px) {
  .section-head.with-photo { grid-template-columns: 1fr; }
  .section-head.with-photo > * { grid-column: 1 !important; grid-row: auto !important; }
  .section-head.with-photo .photo { margin-top: 32px; }
}
.note { margin-top: 40px; color: var(--steel-2); font-size: .975rem; max-width: 46em; padding-top: 16px; border-top: 1px solid var(--line); }

/* HOW: aizome field */
.how { background: var(--brick-deep); color: var(--concrete); padding-block: var(--section); position: relative; }
.how ::selection { background: var(--concrete); color: var(--brick-deep); }
.how-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.how-steps { grid-column: 1 / span 5; }
.how h2 { font-size: var(--fs-h2); }
.how-intro { margin-top: 20px; font-size: var(--fs-lede); color: #f1e2dc; line-height: 1.75; }
.photo-how { margin-top: 40px; }
.photo-how figcaption { color: #f1e2dc; }
.step { min-height: min(72vh, 660px); display: flex; flex-direction: column; justify-content: center; padding-block: 48px; opacity: .9; transition: opacity .5s var(--ease-out); }
.step.is-active { opacity: 1; }
.step-n { font-size: .9375rem; font-weight: 600; color: #f1e2dc; letter-spacing: .04em; }
.step h3 { font-family: var(--f-serif); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); margin-top: 8px; }
.step p:last-child { margin-top: 16px; color: #f6ece8; max-width: 32em; }
.how-visual { grid-column: 7 / span 6; position: relative; }
.tissue { position: sticky; top: max(104px, calc(50vh - 330px)); margin: 0 0 0 auto; width: 100%; max-width: 540px; }
.tissue svg { width: 100%; height: auto; display: block; overflow: visible; }
.layers .l-skin { fill: #e9c7ae; }
.layers .l-fat { fill: #efdcae; }
.layers .l-tendon { fill: #f5f2ea; }
.layers .l-bone { fill: #cfc6b4; }
.fibres { fill: none; stroke: #b9ad97; stroke-width: 1.5; }
.tissue-labels text { font-family: var(--f); font-size: 19px; font-weight: 600; fill: var(--steel); }
.handpiece rect { fill: var(--steel); }
.handpiece rect + rect { fill: #3a3833; }
.waves path { fill: none; stroke: var(--char); stroke-width: 3; stroke-linecap: round; opacity: 0; stroke-dasharray: 520; stroke-dashoffset: 520; transition: opacity .6s var(--ease-out), stroke-dashoffset 1s var(--ease-out); }
.vessels path { fill: none; stroke: #d0563a; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 360; opacity: .85; transition: stroke-dashoffset 1.4s var(--ease-out); }
.t-pain { fill: var(--brick); transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease-out), opacity 1s var(--ease-out); }
.tissue[data-active] .waves path { opacity: 1; stroke-dashoffset: 0; }
.tissue .w2 { transition-delay: .12s; } .tissue .w3 { transition-delay: .24s; } .tissue .w4 { transition-delay: .36s; }
.tissue[data-active="1"] .waves path { animation: travel 2.4s ease-in-out infinite; }
.tissue[data-active="2"] .vessels path, .tissue[data-active="3"] .vessels path { stroke-dashoffset: 0; }
.tissue[data-active="2"] .t-pain { transform: scale(.7); }
.tissue[data-active="3"] .t-pain { transform: scale(.28); opacity: .55; }
.tissue[data-active="3"] .waves path { opacity: .35; }
@keyframes travel { 0%, 100% { stroke-width: 3; } 50% { stroke-width: 5; } }
@media (prefers-reduced-motion: reduce) { .tissue[data-active="1"] .waves path { animation: none; } }
@media (max-width: 900px) {
  .how-grid { display: flex; flex-direction: column; }
  .how-steps { display: contents; }
  .how-visual { order: 1; position: sticky; top: 76px; z-index: 1; background: var(--brick-deep); margin: 32px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) 16px; box-shadow: 0 16px 16px -12px rgba(23,25,27,.6); }
  .tissue { position: static; max-width: 260px; margin: 0 auto; }
  .tissue-labels text { font-size: 30px; }
  .step { order: 2; min-height: min(64vh, 560px); padding-block: 40px; }
}

/* CONDITIONS */
.conditions { padding-block: var(--section); }
.legend { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 56px 0 0; padding: 20px 0; border-block: 1px solid var(--line); }
.legend div { display: flex; flex-direction: column; gap: 2px; max-width: 300px; }
.legend dt .tag { margin: 0; }
.legend dd { margin: 0; color: var(--steel-2); font-size: .9375rem; line-height: 1.6; }
.cond-list { list-style: none; margin: 0; padding: 0; }
.cond { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2.4fr); column-gap: 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.cond h3 { font-size: var(--fs-h3); }
.cond h3 .en { display: block; margin-top: 4px; font-size: .95rem; }
.cond p { color: var(--steel-2); }
.cond .tag { margin: 0; justify-self: end; }
@media (max-width: 760px) { .cond { grid-template-columns: 1fr; row-gap: 8px; } .cond .tag { justify-self: start; } }

/* SESSION */
.session { padding-block: var(--section); background: var(--concrete-2); }
.timeline { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--steel); }
.timeline li { position: relative; padding: 36px 28px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--concrete-2); box-shadow: inset 0 0 0 1.5px var(--steel); }
.timeline li:nth-child(3)::before { background: var(--brick); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brick) 16%, transparent); }
.t-time { font-size: .9375rem; font-weight: 600; color: var(--char); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: var(--fs-h3); margin-top: 6px; }
.timeline p { margin-top: 10px; color: var(--steel-2); }
.course { margin-top: 56px; font-size: var(--fs-lede); max-width: 40em; }
.course strong { color: var(--char); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding: 0 0 36px 44px; }
}

/* TOOLS */
.tools { padding-block: var(--section); }
.tool-list { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--steel); }
.tool { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 7fr); column-gap: clamp(24px, 5vw, 72px); align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.tool-body { position: relative; }
.wave-glyph { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.wave-glyph path { fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 0; }
.js .wave-glyph path { stroke-dashoffset: 900; transition: stroke-dashoffset 1.8s var(--ease-out); }
.js .tool.is-in .wave-glyph path { stroke-dashoffset: 0; }
.tool-shock .wave-glyph path { stroke: var(--brick); stroke-width: 2.2; }
.tool h3 { font-size: var(--fs-h3); }
.tool-wave { font-weight: 600; color: var(--char); margin-top: 4px; font-size: .975rem; }
.tool-body p:last-child { margin-top: 8px; color: var(--steel-2); max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .js .wave-glyph path { stroke-dashoffset: 0; transition: none; } }
@media (max-width: 700px) { .tool { grid-template-columns: 1fr; row-gap: 16px; } .wave-glyph { max-width: 200px; }  }

/* CONTRA: blackened steel field */
.contra { padding-block: var(--section); background: var(--steel); color: var(--concrete); }
.contra ::selection { background: var(--concrete); color: var(--steel); }
.contra-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.contra .section-head { grid-column: 1 / span 5; }
.contra .section-head p { color: #b9bbbe; }
.contra-list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(236,235,232,.25); }
.contra-list li { padding: 18px 0 18px 36px; border-bottom: 1px solid rgba(236,235,232,.14); position: relative; font-size: 1.0625rem; }
.contra-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.5px; background: var(--brick); }
@media (max-width: 900px) { .contra .section-head, .contra-list { grid-column: 1 / -1; } .contra-list { margin-top: 40px; } }

/* FAQ */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.faq-head { grid-column: 1 / span 4; }
.faq h2 { font-size: var(--fs-h2); }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--steel); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-weight: 600; font-size: var(--fs-h3); line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1.5px; background: var(--steel); transition: transform .3s var(--ease-out); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { color: var(--char); }
.faq details p { padding: 0 48px 28px 0; color: var(--steel-2); max-width: 40em; }
@media (max-width: 900px) { .faq-head, .faq-list { grid-column: 1 / -1; } .faq-list { margin-top: 32px; } }

/* CLOSE: photo + indigo panel */
.close { position: relative; background: var(--char-deep); color: var(--concrete); display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.close-photo { margin: 0; position: relative; }
.close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close-inner { width: auto; margin: 0; padding: clamp(64px, 9vw, 144px) var(--gutter); align-self: center; max-width: 680px; }
.close h2 { font-size: var(--fs-h2); }
.close p { margin-top: 24px; font-size: var(--fs-lede); color: #d9dcdf; max-width: 30em; }
.close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
@media (max-width: 900px) { .close { grid-template-columns: 1fr; } .close-photo { aspect-ratio: 3 / 2; } }

/* Footer */
.site-footer { padding-block: 56px 120px; background: var(--concrete); }
.footer-row { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; color: var(--steel-2); font-size: .9375rem; }
.brand-foot { font-family: var(--f-serif); font-weight: 600; color: var(--steel); display: flex; align-items: center; }
@media (max-width: 700px) { .footer-row { grid-template-columns: 1fr; } }

/* Mobile dock */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 6px; background: var(--steel); color: var(--concrete); box-shadow: 0 12px 32px -12px rgba(23,25,27,.6); transform: translateY(140%); transition: transform .5s var(--ease-out); }
.dock.is-shown { transform: none; }
.dock-text { font-size: .9375rem; line-height: 1.3; }
.dock .btn { background: var(--brick); }
@media (min-width: 901px) { .dock { display: none !important; } }

/* ---------- Softness: one motion grammar, like a shoji sliding open ---------- */
:root { --ease-soft: cubic-bezier(0.22, 1, 0.36, 1); }

/* Softer material */
.photo img, .hero-photo img { border-radius: 3px; }
.hero-photo img { border-radius: 0; }
.quiz-card { border-radius: 4px; }
.opts span, .btn, .btn-ghost, .dock { border-radius: 3px; }
.result-note { border-radius: 3px; }
.btn { transition: background-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft), transform .5s var(--ease-soft); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(23,25,27,.18), 0 18px 32px -18px rgba(23,25,27,.6); }
.opts span { transition: border-color .4s var(--ease-soft), background-color .4s var(--ease-soft), transform .4s var(--ease-soft); }
.opts label:hover span { transform: translateX(2px); }
.chip, .btn-ghost, .faq summary, .site-nav a { transition: color .4s var(--ease-soft), border-color .4s var(--ease-soft), background-color .4s var(--ease-soft); }
.faq details p { animation: none; }
.faq details[open] p { animation: soft-in .7s var(--ease-soft); }
@keyframes soft-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Photos: slow breathing on hover */
.photo, .close-photo { overflow: hidden; border-radius: 3px; }
.close-photo { border-radius: 0; }
.photo img, .close-photo img { transition: transform 1.6s var(--ease-soft); }
.photo:hover img { transform: scale(1.03); }

/* Quiz steps cross-fade */
.js .q:not([hidden]), .js .quiz-result:not([hidden]) { animation: soft-in .6s var(--ease-soft); }

@media (prefers-reduced-motion: no-preference) {
  /* Text and blocks drift up out of a soft blur */
  .js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft), filter 1.1s var(--ease-soft); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.is-shown { opacity: 1; transform: none; filter: none; }

  /* Photos open like a shoji screen sliding aside */
  .js .unveil { clip-path: inset(0 0 0 100%); transition: clip-path 1.5s var(--ease-soft); }
  .js .unveil img { transform: scale(1.08); transition: transform 2.2s var(--ease-soft); }
  .js .unveil.is-shown { clip-path: inset(0 0 0 0); }
  .js .unveil.is-shown img { transform: scale(1); }
  .js .unveil.is-shown:hover img { transform: scale(1.03); }

  /* Hero arrives once on load */
  .js .hero h1, .js .hero .lede, .js .hero .meta, .js .hero .hero-actions, .js .hero .crumbs { animation: hero-in 1.2s var(--ease-soft) both; }
  .js .hero .crumbs { animation-delay: .05s; } .js .hero h1 { animation-delay: .15s; } .js .hero .lede { animation-delay: .35s; } .js .hero .meta { animation-delay: .45s; } .js .hero .hero-actions { animation-delay: .55s; }
  .js .hero-photo { animation: shoji 1.6s var(--ease-soft) .1s both; }
  .js .hero-photo img { animation: settle 2.6s var(--ease-soft) .1s both; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes shoji { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
  @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
}
