@font-face{font-family:'Ranade';src:url(fonts/ranade-400.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Ranade';src:url(fonts/ranade-italic-400.woff2) format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Ranade';src:url(fonts/ranade-500.woff2) format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Ranade';src:url(fonts/ranade-italic-500.woff2) format('woff2');font-weight:500;font-style:italic;font-display:swap}
@font-face {
  font-family: 'Krub';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/krub-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Krub';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/krub-500-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Krub';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/krub-600-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* PhonWiset concept site. Drawing sheets on a sage table: ink in deep leaf green, plant colour only as sampled washes,
   lemon reserved for the active key, LINE green only on LINE actions. Square corners; key discs are plan symbols. */
:root {
  --table: #eef1e7;
  --table-2: #e4e9db;
  --sheet: #fcfdf9;
  --ink: #173023;
  --ink-2: #485b4e;
  --rule: rgba(23, 48, 35, .16);
  --rule-2: rgba(23, 48, 35, .34);
  --grid: rgba(23, 48, 35, .05);
  --lemon: #f1cf3b;
  --line-green: #06c755;
  --line-green-2: #05b14c;
  --line-ink: #04210f;
  --night: #121c17;
  --on-night: #eef1e7;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --sec: clamp(72px, 9vw, 136px);
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --lh-d: 1.04;
  --lh-t: 1.62;
}
html[data-lang="th"] { --lh-d: 1.3; --lh-t: 1.78; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.rm { scroll-behavior: auto; }
body {
  margin: 0; background: var(--table); color: var(--ink);
  font: 400 1.0625rem/var(--lh-t) Ranade, Krub, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lemon); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
html { scrollbar-color: rgba(23, 48, 35, .45) var(--table); scrollbar-width: thin; }

/* Language: one language visible; Thai phrases keep together on wider screens */
html[data-lang="th"] [lang="en"]:not([data-set-lang]):not(.keep),
html[data-lang="en"] [lang="th"]:not([data-set-lang]):not(.keep) { display: none !important; }
@media (min-width: 640px) { html[data-lang="th"] .ph { white-space: nowrap; } }
html[data-lang="th"] :is(.h1, .h2, .h4, .sn, .tb-name, .btn, .tb-more) .ph, .nw { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--sheet); padding: 10px 16px; }
.skip:focus { top: 12px; }
.i { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(2.6rem, 4.1vw, 3.75rem); line-height: var(--lh-d); letter-spacing: -.032em; text-wrap: balance; }
html[data-lang="th"] .h1 { font-size: clamp(2.3rem, 4.3vw, 3.95rem); letter-spacing: 0; }
.h2 { font-size: clamp(1.95rem, 3.4vw, 3.1rem); line-height: 1.07; letter-spacing: -.024em; text-wrap: balance; }
html[data-lang="th"] .h2 { font-size: clamp(1.75rem, 2.9vw, 2.65rem); line-height: 1.36; letter-spacing: 0; }
.h4 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
html[data-lang="th"] .h4 { line-height: 1.45; }
.big { font-size: clamp(1.15rem, 1.55vw, 1.38rem); line-height: 1.55; }
html[data-lang="th"] .big { line-height: 1.85; }
.lede { font-size: clamp(1.08rem, 1.3vw, 1.22rem); color: var(--ink-2); max-width: 36ch; }
html[data-lang="th"] .lede { max-width: 40ch; }
.fine { font-size: .875rem; color: var(--ink-2); margin-top: 14px; }
.sec-head { display: grid; gap: 14px; max-width: 62ch; margin-bottom: clamp(28px, 3.4vw, 44px); }
.sec-head p { color: var(--ink-2); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 1.3em;
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, box-shadow .25s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-line { background: var(--line-green); color: var(--line-ink); }
.btn-line:hover { background: var(--line-green-2); }
.btn-sm { min-height: 44px; padding: 0 1em; font-size: .94rem; }
.btn-lg { min-height: 58px; padding: 0 1.6em; font-size: 1.1rem; }
.tlink {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: .35em;
  transition: text-decoration-color .2s, gap .3s var(--ease);
}
.tlink:hover { text-decoration-color: currentColor; gap: .75em; }
.ico-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--ink); transition: background-color .2s; }
.ico-btn:hover { background: rgba(23, 48, 35, .07); }
.ico-btn .i { width: 22px; height: 22px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(238, 241, 231, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled::before { border-bottom-color: var(--rule); }
.nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.brand { display: block; color: var(--ink); padding: 6px 0; }
.sig { display: block; aspect-ratio: 420 / 180; height: 44px; background: currentColor; -webkit-mask: url(img/sig.webp) center / contain no-repeat; mask: url(img/sig.webp) center / contain no-repeat; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav-links a { text-decoration: none; font-size: .98rem; padding: 10px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.nav-links a:hover { background-size: 100% 1px; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; }
.lang button { min-width: 44px; min-height: 44px; padding: 0 6px; font-size: .9rem; color: var(--ink-2); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1.5px; }
.nav-line-ico, .menu-btn { display: none; }
.menu-btn .when-open, .nav.is-open .menu-btn .when-closed { display: none; }
.nav.is-open .menu-btn .when-open { display: block; }
.menu { position: fixed; inset: var(--nav-h) 0 0; background: var(--table); z-index: 29; overflow-y: auto; }
.menu-in { display: grid; padding-block: 20px 40px; }
.menu-in a { font-size: 1.6rem; font-weight: 500; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 1079px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 639px) {
  .nav-cta { display: none; }
  .nav-line-ico { display: inline-grid; color: var(--line-ink); background: var(--line-green); }
  .brand .sig { height: 36px; }
  .nav-end { gap: 4px; }
}

/* ---------- Drawing sheet ---------- */
.sheet {
  position: relative; background-color: var(--sheet); border: 1px solid var(--ink);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.hsheet { box-shadow: 0 2px 0 rgba(23, 48, 35, .05), 0 22px 30px -24px rgba(23, 48, 35, .4); }
.tblock { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; border-top: 1px solid var(--ink); background: var(--sheet); }
.tb-cell { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 52px; }
.tb-cell + .tb-cell { border-left: 1px solid var(--ink); }
.tb-name { display: grid; gap: 0; font-weight: 500; line-height: 1.3; }
.tb-more { font-weight: 500; font-size: .95rem; white-space: nowrap; transition: background-color .2s; }
.tb-more:hover { background: rgba(23, 48, 35, .06); }
.tb-more .i { transition: transform .3s var(--ease); }
.tb-more:hover .i { transform: translateX(3px); }
.sws { display: flex; gap: 3px; }
.sws i { width: 13px; height: 13px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(23, 48, 35, .22); }

/* Key discs over photos (plan symbols, so round) */
.kphoto { position: relative; }
.kp-open { display: block; width: 100%; cursor: zoom-in; }
.kd {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  display: grid; place-items: center; border-radius: 50%; background: var(--sheet); color: var(--ink);
  border: 1.5px solid var(--ink); font: 500 .82rem/1 Ranade, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 0 0 3px rgba(252, 253, 249, .4), 0 3px 10px rgba(10, 20, 14, .35);
  transition: opacity .3s, background-color .25s, transform .35s var(--ease);
}
.kd::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }

/* A layer with the photo's own aspect, placed as object-fit: cover places the photo, so keys stay on their flowers */
.kl { position: absolute; z-index: 2; pointer-events: none; --px: 50%; --py: 50%; }
.kl-w { left: 0; width: 100%; aspect-ratio: var(--ar); top: var(--py); transform: translateY(calc(var(--py) * -1)); }
.kl-h { top: 0; height: 100%; aspect-ratio: var(--ar); left: var(--px); transform: translateX(calc(var(--px) * -1)); }
.kl .kd { pointer-events: auto; }
.hs-photo { position: relative; }
.hs-photo .kp-open, .ev-frame { position: relative; }

/* Schedule rows */
.sched { display: grid; gap: 2px; counter-reset: none; }
.srow {
  display: grid; grid-template-columns: 28px 14px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%;
  min-height: 44px; padding: 6px 4px; text-align: left; line-height: 1.3; font-size: .97rem; transition: opacity .3s, background-color .2s;
}
.srow:hover { background: rgba(23, 48, 35, .045); }
.kn { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.2px solid var(--ink); color: var(--ink); font: 500 .8rem/1 Ranade, system-ui, sans-serif; background: var(--sheet); transition: background-color .25s; }
.sw { width: 14px; height: 14px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(23, 48, 35, .25); }
.srow[aria-pressed="true"] .kn { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3px var(--ink); }

/* Active key: lemon on the key, everything else steps back */
[data-sheet][data-k] .kd { opacity: .32; }
[data-sheet][data-k] .srow { opacity: .42; }
[data-sheet][data-k] .plan :is(.pl-base, .pl-wash, .pl-ink, .pl-top, .pl-keys) [data-k] { opacity: .14; transition: opacity .3s; }
/* Active key (generated for keys 1 to 5): lemon on the key, the rest steps back */
[data-sheet][data-k="1"] .kd[data-k="1"] { opacity: 1; background: var(--lemon); transform: scale(1.2); }
[data-sheet][data-k="1"] .srow[data-k="1"] { opacity: 1; }
[data-sheet][data-k="1"] .srow[data-k="1"] .kn { background: var(--lemon); }
[data-sheet][data-k="1"] .plan :is(.pl-base, .pl-wash, .pl-ink, .pl-top, .pl-keys) [data-k="1"] { opacity: 1; }
[data-sheet][data-k="1"] .plan .pk[data-k="1"] .pk-c { fill: var(--lemon); }
[data-sheet][data-k="2"] .kd[data-k="2"] { opacity: 1; background: var(--lemon); transform: scale(1.2); }
[data-sheet][data-k="2"] .srow[data-k="2"] { opacity: 1; }
[data-sheet][data-k="2"] .srow[data-k="2"] .kn { background: var(--lemon); }
[data-sheet][data-k="2"] .plan :is(.pl-base, .pl-wash, .pl-ink, .pl-top, .pl-keys) [data-k="2"] { opacity: 1; }
[data-sheet][data-k="2"] .plan .pk[data-k="2"] .pk-c { fill: var(--lemon); }
[data-sheet][data-k="3"] .kd[data-k="3"] { opacity: 1; background: var(--lemon); transform: scale(1.2); }
[data-sheet][data-k="3"] .srow[data-k="3"] { opacity: 1; }
[data-sheet][data-k="3"] .srow[data-k="3"] .kn { background: var(--lemon); }
[data-sheet][data-k="3"] .plan :is(.pl-base, .pl-wash, .pl-ink, .pl-top, .pl-keys) [data-k="3"] { opacity: 1; }
[data-sheet][data-k="3"] .plan .pk[data-k="3"] .pk-c { fill: var(--lemon); }
[data-sheet][data-k="4"] .kd[data-k="4"] { opacity: 1; background: var(--lemon); transform: scale(1.2); }
[data-sheet][data-k="4"] .srow[data-k="4"] { opacity: 1; }
[data-sheet][data-k="4"] .srow[data-k="4"] .kn { background: var(--lemon); }
[data-sheet][data-k="4"] .plan :is(.pl-base, .pl-wash, .pl-ink, .pl-top, .pl-keys) [data-k="4"] { opacity: 1; }
[data-sheet][data-k="4"] .plan .pk[data-k="4"] .pk-c { fill: var(--lemon); }
[data-sheet][data-k="5"] .kd[data-k="5"] { opacity: 1; background: var(--lemon); transform: scale(1.2); }
[data-sheet][data-k="5"] .srow[data-k="5"] { opacity: 1; }
[data-sheet][data-k="5"] .srow[data-k="5"] .kn { background: var(--lemon); }
[data-sheet][data-k="5"] .plan :is(.pl-base, .pl-wash, .pl-ink, .pl-top, .pl-keys) [data-k="5"] { opacity: 1; }
[data-sheet][data-k="5"] .plan .pk[data-k="5"] .pk-c { fill: var(--lemon); }

/* Leader lines (drawn by site.js on wide screens) */
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.leaders path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.leaders .ld-h { stroke: rgba(252, 253, 249, .88); stroke-width: 3.2; }
.leaders .ld { stroke: var(--ink); stroke-width: 1; }
.leaders .ld-dot { fill: var(--ink); }
.leaders g { transition: opacity .3s; }
.leaders .is-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.leaders .is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease); }
[data-sheet][data-k] .leaders g:not(.is-on) { opacity: .22; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 4vw, 72px);
  min-height: calc(100svh - var(--nav-h)); padding-block: clamp(20px, 4vh, 48px);
}
.hero-copy { display: grid; gap: clamp(18px, 2.4vh, 28px); align-content: center; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.hsheet { margin: 0; justify-self: end; width: 100%; max-width: 780px; }
.hs-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(178px, 15vw, 218px); padding: 16px 16px 16px 16px; }
.hs-photo { justify-self: center; width: min(100%, calc((100svh - var(--nav-h) - 196px) * .8)); }
.hs-photo .kp-open { aspect-ratio: 4 / 5; overflow: hidden; background: var(--table-2); }
.hs-img { width: 100%; height: 100%; object-fit: cover; }
.hs-labels { position: relative; padding-left: 34px; }
.hs-sched { padding-top: 6px; }
.hs-sched.is-placed { position: absolute; inset: 0 0 0 34px; padding: 0; }
.hs-sched.is-placed li { position: absolute; left: 0; right: 0; top: var(--top); transform: translateY(-50%); }
.hs-sched .srow { font-size: .93rem; }

/* entrance: signature writes, the photo grows up from the ground, keys and lines follow */
.js:not(.rm) .brand .sig { clip-path: inset(0 100% 0 0); }
.js.is-ready:not(.rm) .brand .sig { clip-path: inset(0 0 0 0); transition: clip-path 1.7s cubic-bezier(.45, .05, .25, 1) .15s; }
.js:not(.rm) .hs-photo .kp-open::after { content: ""; position: absolute; inset: 0; background: var(--sheet); transform-origin: 50% 0; z-index: 1; }
.js.is-ready:not(.rm) .hs-photo .kp-open::after { transform: scaleY(0); transition: transform 1.25s var(--ease) .2s; }
.js:not(.rm):not(.is-ready) .hsheet .kd, .js:not(.rm):not(.is-ready) .hs-sched li { opacity: 0; }
.js:not(.rm):not(.is-settled) .hsheet .kd, .js:not(.rm):not(.is-settled) .hs-sched li { transition: opacity .5s var(--ease) calc(1.05s + var(--i, 0) * .14s); }
.hsheet .kd[data-k="2"], .hs-sched li:nth-child(2) { --i: 1; }
.hsheet .kd[data-k="3"], .hs-sched li:nth-child(3) { --i: 2; }
.hsheet .kd[data-k="4"], .hs-sched li:nth-child(4) { --i: 3; }

/* ---------- About + legend ---------- */
.about { padding-block: var(--sec); }
.about-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.about-copy { display: grid; gap: 24px; max-width: 46ch; }
html[data-lang="th"] .about-copy { max-width: 44ch; }
.legend { border: 1px solid var(--ink); background: var(--sheet); }
.legend-h { font-size: 1rem; padding: 12px 18px; border-bottom: 1px solid var(--ink); }
.legend-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 18px; }
.legend-list li + li { border-top: 1px solid var(--rule); }
.lg-sym .sym { width: 56px; height: 56px; }
.lg-t { display: grid; line-height: 1.4; }
.lg-t strong { font-weight: 500; }
.lg-t > span { color: var(--ink-2); font-size: .92rem; }

/* ---------- Work: the drawing set ---------- */
.work { padding-block: 0 var(--sec); }
.wtabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ink); scroll-snap-type: x proximity; }
.wtabs::-webkit-scrollbar { display: none; }
.wtab {
  flex: none; min-height: 48px; padding: 0 18px; white-space: nowrap; color: var(--ink-2); font-weight: 500; scroll-snap-align: start;
  border: 1px solid transparent; border-bottom: 0; transition: color .2s, background-color .2s;
}
.wtab:hover { color: var(--ink); background: rgba(23, 48, 35, .05); }
.wtab[aria-selected="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.wpanel { border-top: 0; }
.ws-body { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ws-photo { align-self: start; justify-self: center; width: fit-content; max-width: 100%; margin: 20px; }
.ws-img { width: auto; max-width: 100%; max-height: min(76svh, 780px); background: var(--table-2); }
.ws-side { display: grid; align-content: start; gap: 20px; padding: 20px 22px 24px; border-left: 1px solid var(--ink); }
.ws-plan { border: 1px solid var(--rule-2); background: var(--sheet); aspect-ratio: 480 / 340; }
.ws-plan img, .ws-plan svg { width: 100%; height: 100%; }
.ws-plan .plan .pl-frame { display: none; }
.js:not(.rm) .ws-plan svg.plan { clip-path: inset(0 100% 0 0); }
.js:not(.rm) .ws-plan.is-drawn svg.plan { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.45, .05, .25, 1); }
.ws-note { color: var(--ink-2); font-size: .97rem; max-width: 46ch; }
.tb-thumbs { gap: 6px; }
.wthumb { width: 44px; height: 44px; overflow: hidden; background: var(--table-2); }
.wthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.wthumb:hover img { transform: scale(1.08); }
.wpanel .tblock { grid-template-columns: minmax(0, 1fr) auto auto auto; }

/* ---------- Evening ---------- */
.evening {
  --ev-bg: #f2e9ea; --ev-fg: var(--ink); --ev-fg-2: var(--ink-2);
  padding-block: var(--sec); background: var(--ev-bg); color: var(--ev-fg); transition: background-color 1s var(--ease), color 1s var(--ease);
}
.evening[data-t="1"] { --ev-bg: #233847; --ev-fg: var(--on-night); --ev-fg-2: #c9d3d6; }
.evening[data-t="2"] { --ev-bg: var(--night); --ev-fg: var(--on-night); --ev-fg-2: #c3ccc4; }
.ev-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ev-copy { display: grid; gap: 22px; max-width: 42ch; }
.ev-copy > p { color: var(--ev-fg-2); transition: color 1s var(--ease); }
.ev-stops { position: relative; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 10px; }
.ev-stops::before { content: ""; position: absolute; left: 7px; right: 7px; top: 22px; height: 1px; background: currentColor; opacity: .5; }
.ev-stop { position: relative; display: grid; justify-items: start; gap: 10px; padding: 15px 28px 6px 0; min-height: 44px; font-weight: 500; font-size: .95rem; color: var(--ev-fg-2); transition: color .3s; }
.ev-stop i { width: 15px; height: 15px; border: 1.5px solid currentColor; background: var(--ev-bg); transition: background-color .4s, border-color .4s; }
.ev-stop[aria-pressed="true"] { color: var(--ev-fg); }
.ev-stop[aria-pressed="true"] i { background: var(--lemon); border-color: var(--lemon); }
.ev-sheet { margin: 0; border: 1px solid currentColor; transition: border-color 1s var(--ease); }
.ev-frame { aspect-ratio: 4 / 3; overflow: hidden; background: #0e1611; margin: 14px 14px 0; }
.ev-shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.ev-shot.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }
.ev-tb { margin-top: 14px; border-top: 1px solid currentColor; padding: 6px 14px; transition: border-color 1s var(--ease); }
.ev-sched { grid-template-columns: repeat(2, auto); justify-content: start; gap: 2px 28px; }
.evening .srow:hover { background: rgba(127, 140, 130, .14); }
.evening[data-t="0"] .ev-sched li:nth-child(2) { visibility: hidden; }
.evening .kn { border-color: var(--sheet); }
.evening [data-sheet][data-k] .srow { opacity: .66; }
.evening [data-sheet][data-k] .srow[aria-pressed="true"], .evening [data-sheet][data-k="1"] .srow[data-k="1"], .evening [data-sheet][data-k="2"] .srow[data-k="2"] { opacity: 1; }
.ev-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services: a schedule of works beside one photo ---------- */
.services { padding-block: var(--sec) 0; }
.svc-sheet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.svc-sched { display: grid; align-content: start; padding: 10px 0; border-right: 1px solid var(--ink); }
.svc-row { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 14px; padding: 16px 24px; transition: background-color .25s; }
.svc-row + .svc-row { border-top: 1px solid var(--rule); }
.svc-row .kn { grid-row: span 2; margin-top: 1px; }
.svc-row p { grid-column: 2; color: var(--ink-2); font-size: .95rem; max-width: 46ch; }
.svc-btn { text-align: left; font-weight: 500; }
.svc-btn::after { content: ""; position: absolute; inset: 0; }
.svc-btn:focus-visible { outline: 0; }
.svc-row:has(.svc-btn:focus-visible) { outline: 2px solid var(--ink); outline-offset: -4px; }
.svc-row:hover { background: rgba(23, 48, 35, .04); }
.svc-row.is-on .kn { background: var(--lemon); }
.svc-row.is-on { background: rgba(241, 207, 59, .08); }
.svc-stage { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.svc-frame { position: relative; min-height: 460px; overflow: hidden; background: var(--table-2); margin: 20px 20px 0; }
.svc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.svc-img.is-on { opacity: 1; }
.svc-stage .tblock { margin-top: 20px; grid-template-columns: minmax(0, 1fr); }
.svc-name { display: none; align-items: center; gap: 12px; }
.svc-name.is-on { display: flex; }
.svc-name .kn { background: var(--lemon); }

/* ---------- Process: a revision table ---------- */
.process { padding-block: var(--sec); }
.revs { border: 1px solid var(--ink); background: var(--sheet); }
.revs li { display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 8fr); align-items: baseline; }
.revs li + li { border-top: 1px solid var(--rule-2); }
.revs li > * { padding: 20px 22px; }
.rev-l { align-self: stretch; display: grid; place-items: start center; border-right: 1px solid var(--ink); font-weight: 500; font-size: 1.05rem; }
.revs p { color: var(--ink-2); max-width: 60ch; }

/* ---------- Notes: reviews and locations ---------- */
.notes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 104px); padding-bottom: var(--sec); align-items: start; }
.notes-main { display: grid; gap: 18px; justify-items: start; }
.notes-stat { color: var(--ink-2); }
.quotes { display: grid; gap: 0; margin: 14px 0 6px; width: 100%; }
.quotes li { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid var(--rule-2); }
.quotes li:last-child { border-bottom: 1px solid var(--rule-2); }
.quotes blockquote { margin: 0; font-family: Krub, Ranade, sans-serif; font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.6; max-width: 34ch; }
.q-en { color: var(--ink-2); max-width: 56ch; }
.q-tr { font-size: .85rem; }
.q-by { font-weight: 500; font-size: .95rem; }
.q-src { font-weight: 400; color: var(--ink-2); margin-left: .4em; }
.locs { border: 1px solid var(--ink); background: var(--sheet); padding: 22px 24px 24px; display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 24px); }
.loc-list { display: grid; gap: 7px; font-size: .97rem; }
.loc-more { color: var(--ink-2); font-size: .95rem; padding-top: 12px; border-top: 1px solid var(--rule); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--sec); background: var(--table-2); }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.faq-list details { border-top: 1px solid var(--rule-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule-2); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer;
  font-weight: 500; font-size: 1.08rem; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { transition: transform .35s var(--ease); }
.faq-list details[open] summary .i { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { padding-block: var(--sec); }
.ct-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: stretch; }
.ct-photo { overflow: hidden; background: var(--night); min-height: 420px; }
.ct-photo img { width: 100%; height: 100%; object-fit: cover; }
.ct-card { display: grid; align-content: center; gap: 22px; padding: clamp(28px, 4vw, 56px); border-left: 0; justify-items: start; }
.ct-card > p { color: var(--ink-2); max-width: 40ch; }
.ct-list { display: grid; gap: 0; width: 100%; margin: 6px 0 0; }
.ct-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 2px 0; border-top: 1px solid var(--rule); align-items: center; }
.ct-list dt { color: var(--ink-2); font-size: .92rem; }
.ct-list dd { margin: 0; overflow-wrap: anywhere; }
.ct-list a { text-decoration-color: var(--rule-2); display: inline-block; padding: 11px 0; }
.ct-list a:hover { text-decoration-color: currentColor; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--ink); padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.foot-brand { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; }
.foot-brand .sig { height: 56px; }
.foot-tag { font-style: italic; font-size: .95rem; padding-bottom: 6px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
.foot-links a { min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .88rem; }

/* ---------- Dock (phones) ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 8px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(252, 253, 249, .96); border-top: 1px solid var(--ink);
    transform: translateY(105%); transition: transform .45s var(--ease); visibility: hidden;
  }
  .dock.is-on { transform: none; visibility: visible; }
  .dock .btn { flex: 1; min-height: 48px; }
  .dock-call { border: 1px solid var(--ink); width: 48px; height: 48px; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Lightbox ---------- */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 20, 15, .97); color: var(--on-night); }
.lb[open], .lb.is-fallback { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb.is-fallback { position: fixed; inset: 0; z-index: 60; }
.lb::backdrop { background: rgba(12, 20, 15, .9); }
.lb .ico-btn { color: var(--on-night); }
.lb .ico-btn:hover { background: rgba(238, 241, 231, .1); }
.lb :focus-visible { outline-color: var(--lemon); }
.lb-top, .lb-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px max(12px, env(safe-area-inset-left)); }
.lb-bot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.lb-count { font-size: .9rem; opacity: .8; padding-left: 8px; }
.lb-frame { display: grid; place-items: center; min-height: 0; padding: 0 12px; outline: none; }
.lb-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .35s; }
.lb-frame img.is-loaded { opacity: 1; }
.lb-cap { flex: 1; text-align: center; font-size: .95rem; max-width: 60ch; margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ws-body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
@media (max-width: 1099px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: clamp(28px, 6vw, 56px) clamp(40px, 6vw, 64px); }
  .hsheet { justify-self: stretch; max-width: none; }
  .hs-photo { width: min(100%, 560px); }
  .about-in, .notes, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .locs { position: static; }
  .loc-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 7px 24px; }
  .ev-in { grid-template-columns: minmax(0, 1fr); }
  .ev-copy { max-width: 60ch; }
}
@media (max-width: 899px) {
  .ws-body { grid-template-columns: minmax(0, 1fr); }
  .ws-photo { margin: 12px auto; }
  .ws-img { max-height: 68svh; }
  .ws-side { border-left: 0; border-top: 1px solid var(--ink); padding: 18px 16px 20px; }
  .wpanel .tblock { grid-template-columns: minmax(0, 1fr) auto; }
  .wpanel .tb-sw, .wpanel .tb-thumbs { display: none; }
  .svc-sheet { grid-template-columns: minmax(0, 1fr); }
  .svc-stage { order: -1; }
  .svc-frame { min-height: 0; aspect-ratio: 4 / 3; margin: 12px 12px 0; }
  .svc-stage .tblock { display: none; }
  .svc-frame { margin-bottom: 12px; }
  .svc-sched { border-right: 0; border-top: 1px solid var(--ink); padding: 4px 0; }
  .svc-row { padding: 14px 16px; }
  .ct-in { grid-template-columns: minmax(0, 1fr); }
  .ct-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .ct-card { border-left: 1px solid var(--ink); border-top: 0; }
  .revs li { grid-template-columns: 52px minmax(0, 1fr); }
  .revs li > * { padding: 16px 16px 4px; }
  .revs li p { grid-column: 2; padding: 0 16px 18px; }
  .rev-l { grid-row: span 2; }
}
@media (max-width: 759px) {
  .hs-body { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .hs-photo { width: 100%; }
  .hs-photo .kp-open { aspect-ratio: 1 / 1; }
  .hs-img { object-position: 50% 42%; }
  .hsheet .kl { --py: 42%; }
  .hs-labels { padding: 10px 0 0; }
  .hs-sched { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; padding: 0; }
  .hs-sched .srow { grid-template-columns: 26px minmax(0, 1fr); font-size: .9rem; }
  .hs-sched .sw { display: none; }
  .hsheet .tblock { grid-template-columns: minmax(0, 1fr) auto; }
  .hsheet .tb-sw { display: none; }
  .tb-cell { padding: 8px 12px; }
}
@media (max-width: 599px) {
  .ct-list div { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 8px; }
  .ev-sched { grid-template-columns: minmax(0, 1fr); }
  .ct-list a { padding: 4px 0 10px; min-height: 44px; }
  .ct-card { padding: 24px 18px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .ev-stop { padding-right: 18px; }
  .quotes blockquote { font-size: 1.2rem; }
}

/* ---------- Reduced motion: no travel, scale or wipes; state changes still fade so they read ---------- */
@media (prefers-reduced-motion: reduce) {
  .wthumb:hover img, .tb-more:hover .i { transform: none; }
  .svc-img { transition: opacity .3s; }
  .tlink:hover { gap: .5em; }
  [data-sheet][data-k] .kd { transform: none !important; }
  .faq-list summary .i { transition: none; }
  .dock { transition: visibility 0s, opacity .3s; opacity: 0; transform: none; }
  .dock.is-on { opacity: 1; }
  .nav-links a { transition: none; }
}

/* Planting plans (tools/plans.py) */
.plan { --pl-ink: var(--ink, #173023); color: var(--pl-ink); display: block; width: 100%; height: auto; }
.plan .pl-ink { fill: none; stroke: currentColor; stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; }
.plan .pl-top { fill: none; stroke: currentColor; stroke-width: .8; stroke-linecap: round; }
.plan .pl-wash > * { mix-blend-mode: multiply; opacity: .78; }
.plan .pl-cloth { opacity: .7; }
.plan .pl-fine { stroke-width: .55; opacity: .75; }
.plan .pl-thin { stroke-width: .6; fill: none; stroke: currentColor; }
.plan .pl-dash { stroke-dasharray: 3 3.5; stroke-width: .7; fill: none; stroke: currentColor; }
.plan .pl-swag { opacity: .7; }
.plan .pl-dot { fill: currentColor; stroke: none; }
.plan .pl-paper { fill: #fcfdf9; }
.plan .pl-poche, .plan .pl-pochefill { fill: currentColor; stroke: none; }
.plan .pl-edge { stroke-width: .8; }
.plan .pl-t { fill: none; stroke: #6f8a55; stroke-width: .55; opacity: .55; }
.plan .pl-s { fill: none; stroke: #a8946a; stroke-width: 1; stroke-linecap: round; opacity: .6; }
.plan .pl-w { fill: none; stroke: #6f9298; stroke-width: .6; opacity: .65; }
.plan .pl-j { fill: none; stroke: #9a9c90; stroke-width: .45; opacity: .6; }
.plan .pl-frame { fill: none; stroke: currentColor; stroke-width: 1; }
.plan .pk-l { stroke: currentColor; stroke-width: .7; fill: none; }
.plan .pk-c { fill: #fcfdf9; stroke: currentColor; stroke-width: .9; }
.plan .pk-t { font: 500 9.5px/1 Ranade, system-ui, sans-serif; fill: currentColor; text-anchor: middle; }
