/**
 * @file home — The home page: an ink landscape painted live, then the product told in the same hand.
 * @module website/assets
 *
 * Everything is scoped to `.home2` (the page's main element) and `body.home2-page`. Paper, ink, the
 * serif and the header's name with its seal are shared by every page and live in
 * `brand-refresh.css`; this file is what only the home page has. The first screen and the closing
 * one are painted by `home-scene.js`.
 */

/* The app's own hand font, cut down to what this page sets in it (scripts/site/subset-hand-font.py). */
@font-face {
  font-family: 'WireMagic Hand';
  src: local('LXGW WenKai Lite'), url('fonts/LXGWWenKaiLite-subset.woff2') format('woff2');
  font-display: swap;
}

.home2 {
  --paper: #f4ecdf;
  --paper-2: #efe5d3;
  --card: #fffdf9;
  --ink: #221d18;
  --ink-2: #5d5246;
  --ink-3: #8c8072;
  --line: rgba(34, 29, 24, 0.12);
  --line-strong: rgba(34, 29, 24, 0.2);
  --seal: #b63c2c;
  --indigo: #4353cf;
  --night: #1a1612;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', 'PingFang SC', sans-serif;
  --hand: 'WireMagic Hand', 'Kaiti SC', 'STKaiti', 'KaiTi', serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  font-feature-settings: 'cv11', 'ss01', 'calt';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.home2 h1, .home2 h2, .home2 h3 { margin: 0; text-wrap: balance; }
.home2 a { color: inherit; text-decoration: none; }
/* the same measure as the shared header, so the text starts under the logo */
.home2 .hm-wrap { width: min(100% - 64px, 1184px); margin-inline: auto; }

/* ---------- the shared header, laid over the painting ---------- */
.home2-page .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.home2-page.hm-scrolled .site-header,
.home2-page .site-header[data-open='true'] {
  background: rgba(244, 236, 223, 0.9);
  border-bottom-color: rgba(34, 29, 24, 0.1);
  backdrop-filter: blur(14px);
}

/* ---------- buttons ---------- */
.home2 .hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16.5px;
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.home2 .hm-btn.hm-primary { background: var(--ink); color: #f6efe3; box-shadow: 0 16px 26px -16px rgba(34, 29, 24, 0.75); }
.home2 .hm-btn.hm-primary:hover { transform: translateY(-1.5px); box-shadow: 0 22px 30px -16px rgba(34, 29, 24, 0.8); }
.home2 .hm-btn.hm-ghost { border-color: rgba(34, 29, 24, 0.18); background: rgba(255, 252, 246, 0.72); backdrop-filter: blur(8px); }
.home2 .hm-btn.hm-ghost:hover { border-color: rgba(34, 29, 24, 0.4); background: rgba(255, 252, 246, 0.92); }
.home2 .hm-btn .hm-arrow { transition: transform 0.25s var(--ease); }
.home2 .hm-btn:hover .hm-arrow { transform: translateX(3px); }
.home2 .hm-os { width: 15px; height: 15px; fill: currentColor; opacity: 0.9; }

/* ---------- the painted screens ---------- */
.home2 .hm-scene { position: relative; overflow: hidden; background: radial-gradient(1100px 640px at 50% 34%, #fcf8ef, rgba(252, 248, 239, 0) 72%), linear-gradient(180deg, #f6efe3 0%, #f3eadb 60%, #efe5d3 100%); }
.home2 .hm-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.home2 .hm-paint { z-index: 1; }
.home2 .hm-brushes { z-index: 3; pointer-events: none; }
.home2 .hm-scene::after { content: ''; position: absolute; inset: auto 0 0 0; height: 70px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(239, 229, 211, 0), var(--paper-2)); }
.home2 .hm-hero { height: 100vh; height: 100svh; min-height: 700px; max-height: 1120px; }
.home2 .hm-copy { position: absolute; left: 50%; top: 43%; transform: translate(-50%, -50%); width: min(900px, 90vw); text-align: center; z-index: 4; pointer-events: none; }
.home2 .hm-scene h1, .home2 .hm-scene h2 { font: 400 clamp(46px, 6.5vw, 98px)/0.97 var(--serif); letter-spacing: -0.02em; }
.home2 h1 em, .home2 h2 em { font-style: italic; color: var(--seal); }
.home2 .hm-lede { margin: 26px auto 0; max-width: 30em; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.home2 .hm-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.home2 .hm-hero .hm-copy > * { animation: hm-rise 1.3s var(--ease) backwards; }
.home2 .hm-hero .hm-copy > :nth-child(2) { animation-delay: 0.18s; }
.home2 .hm-hero .hm-copy > :nth-child(3) { animation-delay: 0.34s; }
@keyframes hm-rise { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } }

/* what the two wireframes turn into */
.home2 .hm-lantern { position: absolute; z-index: 3; opacity: 0; scale: 0.94; rotate: calc(var(--tilt) * 1deg); background: #fffdf9; overflow: hidden; pointer-events: none; transition: opacity 0.9s ease, scale 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 1.1s ease; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.07); font-family: var(--sans); text-align: left; }
.home2 .hm-lantern.is-real { opacity: 1; scale: 1; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.08), 0 34px 54px -24px rgba(44, 30, 10, 0.5), 0 6px 12px -6px rgba(44, 30, 10, 0.2); animation: hm-float 7.5s ease-in-out 1.2s infinite; }
@keyframes hm-float { 50% { translate: 0 -9px; } }
.home2 .hm-win { left: 6.6%; top: 47%; width: 252px; height: 172px; border-radius: 13px; --tilt: -3; }
.home2 .hm-win .hm-chrome { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 11px; background: #f3efe7; border-bottom: 1px solid rgba(34, 29, 24, 0.07); }
.home2 .hm-win .hm-chrome i { width: 7px; height: 7px; border-radius: 50%; background: #d8d2c6; }
.home2 .hm-win .hm-body { padding: 11px 15px 0; }
.home2 .hm-win .hm-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; font-weight: 650; color: #221d18; }
.home2 .hm-win .hm-row span { font-weight: 600; font-size: 10.5px; color: #2f8f5b; }
.home2 .hm-win svg { display: block; width: 100%; height: 62px; margin-top: 6px; }
.home2 .hm-win .hm-pills { display: flex; gap: 8px; margin-top: 9px; }
.home2 .hm-win .hm-pills span { flex: 1; height: 21px; border-radius: 6px; background: #f1ede4; }
.home2 .hm-win .hm-pills span:first-child { background: var(--indigo); }
.home2 .hm-phone { right: 7.6%; top: 33%; width: 150px; height: 300px; border-radius: 25px; --tilt: 3; border: 5px solid #1a1b20; }
.home2 .hm-phone .hm-shotpic { position: relative; height: 122px; background: linear-gradient(180deg, #f9d9a8 0%, #f3b98c 46%, #e7a48c 100%); overflow: hidden; }
.home2 .hm-phone .hm-shotpic i { position: absolute; right: 24px; top: 24px; width: 28px; height: 28px; border-radius: 50%; background: #c7402e; }
.home2 .hm-phone .hm-shotpic svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 70px; }
.home2 .hm-phone .hm-notch { position: absolute; left: 50%; top: 6px; translate: -50% 0; width: 44px; height: 11px; border-radius: 6px; background: #1a1b20; z-index: 2; }
.home2 .hm-phone .hm-info { padding: 11px 11px 0; }
.home2 .hm-phone .hm-info b { display: block; font-size: 12.5px; font-weight: 700; color: #1a1b20; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home2 .hm-phone .hm-info small { display: block; margin-top: 2px; font-size: 9px; color: #7a746a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home2 .hm-phone .hm-track { height: 5px; margin-top: 10px; border-radius: 3px; background: #ece7dc; overflow: hidden; }
.home2 .hm-phone .hm-track u { display: block; height: 100%; width: 0; border-radius: 3px; background: #c7402e; transition: width 1.4s ease 0.9s; }
.home2 .hm-phone.is-real .hm-track u { width: 64%; }
.home2 .hm-phone .hm-go { margin: 34px 11px 0; height: 32px; border-radius: 10px; background: #1a1b20; color: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; }

/* the inscription and the seal */
.home2 .hm-colophon { position: absolute; left: max(32px, calc((100% - 1184px) / 2)); top: 124px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.home2 .hm-verse { writing-mode: vertical-rl; height: 118px; font: 400 21px/1.5 var(--hand); letter-spacing: 6px; color: rgba(34, 29, 24, 0.86); }
.home2 .hm-verse span { opacity: 0; filter: blur(4px); transition: opacity 0.6s ease, filter 0.6s ease; }
.home2 .hm-verse span.is-on { opacity: 1; filter: none; }
.home2 .hm-colophon img { width: 46px; height: auto; opacity: 0; scale: 1.7; rotate: -5deg; transition: opacity 0.18s ease, scale 0.28s cubic-bezier(0.3, 1.6, 0.5, 1); mix-blend-mode: multiply; }
.home2 .hm-colophon img.is-on { opacity: 0.95; scale: 1; }

/* ---------- sections ---------- */
.home2 .hm-sec { position: relative; padding: 132px 0 0; }
.home2 .hm-sketch { padding-top: 104px; background: linear-gradient(180deg, var(--paper-2), var(--paper) 420px); }
.home2 .hm-sec h2, .home2 .hm-night h2, .home2 .hm-local h2 { font: 400 clamp(38px, 4.7vw, 64px)/1.02 var(--serif); letter-spacing: -0.015em; }
.home2 .hm-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 500 13.5px/1 var(--sans); color: var(--ink-3); }
.home2 .hm-kicker::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--seal); rotate: -6deg; }
.home2 .hm-head { display: grid; }
.home2 .hm-sub { margin: 20px 0 0; max-width: 34em; font-size: 18.5px; line-height: 1.58; color: var(--ink-2); }
.home2 .hm-rule { display: block; width: 100%; height: 34px; margin-bottom: 30px; overflow: visible; }
.home2 .hm-rule path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.home2 .hm-reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.home2 .hm-reveal.hm-wait { opacity: 0; transform: translateY(18px); }

/* drawn pictures: strokes arrive one after another, then some of them turn real */
.home2 .hm-ink { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.home2 .hm-draw text { stroke: none; fill: var(--ink); font-family: var(--hand); }
/* A stroke that has not started is parked well before the start of its path, so its round cap leaves no dot. */
.home2 .hm-draw .dr { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.home2 .hm-draw.hm-wait .dr { stroke-dashoffset: 1.3; }
.home2 .hm-draw.hm-wait .fl, .home2 .hm-draw.hm-wait text, .home2 .hm-draw.hm-wait .rl, .home2 .hm-draw.hm-wait .rm { opacity: 0; }
.home2 .hm-draw.hm-go .dr { animation: hm-draw 0.9s ease backwards; animation-delay: calc(var(--i, 0) * 60ms + 100ms); }
.home2 .hm-draw.hm-go .fl, .home2 .hm-draw.hm-go text { animation: hm-fade 0.6s ease backwards; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.home2 .hm-draw.hm-go .rl { animation: hm-fade 1s ease backwards; animation-delay: var(--real, 2.4s); }
.home2 .hm-draw.hm-go .rm { animation: hm-fade 0.8s ease backwards; animation-delay: 1.5s; }
.home2 .hm-draw .sk-fade { opacity: 0.12; }
.home2 .hm-draw.hm-wait .sk-fade { opacity: 1; }
.home2 .hm-draw.hm-go .sk-fade { animation: hm-draw 0.9s ease backwards, hm-dim 0.8s ease backwards; animation-delay: calc(var(--i, 0) * 60ms + 100ms), var(--real, 2.4s); }
@keyframes hm-draw { from { stroke-dashoffset: 1.3; } }
@keyframes hm-fade { from { opacity: 0; } }
@keyframes hm-dim { from { opacity: 1; } }

/* 1 · sketching */
.home2 .hm-two { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 72fr); gap: 56px; align-items: center; }
.home2 .hm-points { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--ink-2); font-size: 16.5px; }
.home2 .hm-points li { display: flex; gap: 13px; }
.home2 .hm-points li::before { content: ''; flex: none; width: 18px; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--ink); opacity: 0.75; rotate: -4deg; }
.home2 .hm-sheet { position: relative; padding: 26px 26px 20px; background: var(--card); border-radius: 5px; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.08), 0 2px 3px rgba(44, 30, 10, 0.06), 0 40px 60px -34px rgba(44, 30, 10, 0.45); rotate: 1.1deg; }
/* The sketch is a real export and carries the app's own mark in its corner. It arrives as if a hand
   moved across the sheet: a soft edge travels from left to right once the sheet is on screen. */
.home2 a.hm-sheet { display: block; cursor: zoom-in; margin-right: clamp(-72px, calc((1248px - 100vw) / 2), 0px); }
.home2 .hm-sheet img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; -webkit-mask: linear-gradient(100deg, #000 46%, transparent 54%) 0 0 / 240% 100% no-repeat; mask: linear-gradient(100deg, #000 46%, transparent 54%) 0 0 / 240% 100% no-repeat; transition: -webkit-mask-position 1.7s cubic-bezier(0.3, 0.1, 0.3, 1) 0.3s, mask-position 1.7s cubic-bezier(0.3, 0.1, 0.3, 1) 0.3s; }
.home2 .hm-sheet.hm-wait img { -webkit-mask-position: 100% 0; mask-position: 100% 0; }

/* 2 · both directions */
.home2 .hm-cards { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.home2 .hm-card { display: flex; flex-direction: column; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.08), 0 30px 50px -36px rgba(44, 30, 10, 0.4); }
.home2 .hm-card .hm-body { padding: 34px 36px 30px; flex: 1; }
.home2 .hm-tag { display: inline-flex; gap: 8px; font: 500 12.5px var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.home2 .hm-tag b { color: var(--seal); font-weight: 500; }
.home2 .hm-card h3 { margin-top: 14px; font: 400 34px/1.08 var(--serif); letter-spacing: -0.01em; }
.home2 .hm-card p { margin: 12px 0 0; color: var(--ink-2); }
.home2 .hm-card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; color: var(--ink-2); }
.home2 .hm-card li { display: flex; gap: 12px; }
.home2 .hm-card li::before { content: ''; flex: none; width: 14px; height: 1.6px; margin-top: 12px; background: var(--ink); opacity: 0.7; }
.home2 .hm-art { display: grid; align-content: end; border-top: 1px solid var(--line); background: linear-gradient(180deg, #f7f1e6, #f2eadb); padding: 26px 30px 0; }
.home2 .hm-art svg { display: block; width: 100%; height: auto; }
/* Sketch, reading, page, in the order the eye takes them: the sketch lies on the left as a sheet of
   paper, what the agent was given sits beside it, and the page it became stands in front below. */
.home2 .hm-built { position: relative; aspect-ratio: 519 / 300; }
.home2 .hm-built img { position: absolute; display: block; height: auto; }
.home2 .hm-built-sketch { left: 0; top: 2%; width: 55%; padding: 1.6%; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.08), 0 18px 26px -18px rgba(44, 30, 10, 0.5); rotate: -2.2deg; }
.home2 .hm-built-page { right: 0; bottom: -4%; width: 63%; border-radius: 9px 9px 0 0; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.1), 0 -2px 30px -8px rgba(44, 30, 10, 0.45); }
.home2 .hm-built-read { position: absolute; right: 0; top: 4%; width: 40%; padding: 9px 12px 10px; border-radius: 9px; background: #1a1612; font: 10.5px/1.5 var(--mono); color: #d9cdb9; box-shadow: 0 14px 22px -14px rgba(26, 22, 18, 0.9); }
.home2 .hm-built-read b { display: block; font-weight: 500; color: #f0b27a; }
.home2 .hm-built-read span { display: block; }
.home2 .hm-art .hm-built-arrow { position: absolute; left: 55%; top: 7%; width: 6.5%; fill: none; stroke: var(--seal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.home2 .hm-film { position: relative; overflow: hidden; border-radius: 6px 6px 0 0; background: #fff; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.09); }
.home2 .hm-film video { display: block; width: 100%; height: auto; }
.home2 .hm-note { margin: 0; padding: 14px 0 18px; font: 12.5px/1.5 var(--mono); color: var(--ink-3); }
.home2 .hm-note a { color: var(--seal); border-bottom: 1px solid rgba(182, 60, 44, 0.35); }

/* 3 · why a canvas: the one dark band, like the inkstone on the desk */
.home2 .hm-night { position: relative; margin-top: 132px; padding: 116px 0 124px; color: #f1e8d8; overflow: hidden; background:
  radial-gradient(760px 420px at 84% 0%, rgba(240, 178, 122, 0.16), rgba(240, 178, 122, 0) 70%),
  radial-gradient(700px 480px at 0% 110%, rgba(182, 60, 44, 0.2), rgba(182, 60, 44, 0) 70%), var(--night); }
.home2 .hm-night h2 em { color: #f0b27a; }
.home2 .hm-night .hm-kicker { color: #a8977f; }
.home2 .hm-night .hm-sub { color: #b9ad9a; }
.home2 .hm-night .hm-rule path { stroke: #f1e8d8; }
.home2 .hm-why { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(241, 232, 216, 0.16); }
.home2 .hm-why > div { padding: 34px 28px 0 0; }
.home2 .hm-why > div + div { padding-left: 28px; border-left: 1px solid rgba(241, 232, 216, 0.16); }
.home2 .hm-why b { font: italic 400 30px/1 var(--serif); color: #f0b27a; }
.home2 .hm-why h3 { margin-top: 18px; font: 600 19px/1.3 var(--sans); letter-spacing: -0.01em; }
.home2 .hm-why p { margin: 10px 0 0; font-size: 15.5px; color: #b9ad9a; }

/* 4 · three steps */
.home2 .hm-steps { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 30px; }
.home2 .hm-step { padding-top: 26px; border-top: 1.5px solid var(--ink); }
.home2 .hm-step b { font: italic 400 46px/1 var(--serif); color: var(--seal); }
.home2 .hm-step h3 { margin-top: 14px; font: 400 30px/1.1 var(--serif); }
.home2 .hm-step p { margin: 10px 0 0; color: var(--ink-2); }
.home2 .hm-say { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 20px; border-radius: 14px; background: var(--night); color: #f1e8d8; font: 14px/1.5 var(--mono); box-shadow: 0 24px 34px -24px rgba(26, 22, 18, 0.8); }
.home2 .hm-say div { flex: 1; }
.home2 .hm-say div span:first-child { color: #f0b27a; }
.home2 .hm-say button { appearance: none; flex: none; height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: #f1e8d8; color: var(--night); font: 600 13px var(--sans); cursor: pointer; }

/* 5 · the gallery: three sheets */
.home2 .hm-gallery { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.home2 .hm-shot { display: block; background: var(--card); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.08), 0 30px 46px -32px rgba(44, 30, 10, 0.45); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), rotate 0.45s var(--ease); }
.home2 .hm-shot:nth-child(1) { rotate: -0.8deg; }
.home2 .hm-shot:nth-child(3) { rotate: 0.8deg; }
.home2 .hm-shot:hover { rotate: 0deg; transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.1), 0 44px 56px -30px rgba(44, 30, 10, 0.5); }
.home2 .hm-pic { background: #fff; border-bottom: 1px solid var(--line); }
.home2 .hm-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.home2 .hm-meta { padding: 20px 22px 22px; }
.home2 .hm-meta h3 { font: 400 28px/1.1 var(--serif); }
.home2 .hm-meta small { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.home2 .hm-go2 { display: inline-block; margin-top: 14px; font: 500 12.5px var(--mono); color: var(--seal); }
.home2 .hm-more { margin: 30px 0 0; font-size: 16px; }
.home2 .hm-more a { color: var(--seal); border-bottom: 1px solid rgba(182, 60, 44, 0.35); padding-bottom: 2px; }

/* 6 · local and private */
.home2 .hm-local { position: relative; margin-top: 132px; padding: 110px 0 116px; background: var(--paper-2); border-block: 1px solid var(--line); }
.home2 .hm-facts { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.home2 .hm-facts svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home2 .hm-facts h3 { margin-top: 16px; font: 400 28px/1.12 var(--serif); }
.home2 .hm-facts p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

/* 7 · plans */
.home2 .hm-plans { margin-top: 52px; display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 24px; }
.home2 .hm-plan { padding: 32px 32px 34px; background: var(--card); border-radius: 20px; box-shadow: 0 0 0 1px rgba(34, 29, 24, 0.08); }
.home2 .hm-plan h3 { display: flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.home2 .hm-soon { padding: 3px 9px; border: 1px solid rgba(182, 60, 44, 0.45); border-radius: 999px; font: 500 11.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--seal); }
.home2 .hm-price { margin-top: 16px; font: 400 60px/1 var(--serif); letter-spacing: -0.02em; }
.home2 .hm-price small { margin-left: 10px; font: 400 14.5px var(--sans); letter-spacing: 0; color: var(--ink-3); }
.home2 .hm-plan p { margin: 16px 0 0; color: var(--ink-2); }
.home2 .hm-plan ul { margin: 22px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15.5px; }
.home2 .hm-plan li { display: flex; gap: 11px; }
.home2 .hm-plan li::before { content: ''; flex: none; width: 13px; height: 7px; margin-top: 7px; border-left: 1.8px solid var(--seal); border-bottom: 1.8px solid var(--seal); rotate: -45deg; }
.home2 .hm-plan.hm-free { background: var(--night); color: #f1e8d8; box-shadow: 0 36px 50px -34px rgba(26, 22, 18, 0.9); }
.home2 .hm-plan.hm-free h3, .home2 .hm-plan.hm-free .hm-price small { color: #a8977f; }
.home2 .hm-plan.hm-free p { color: #cfc4b2; }
.home2 .hm-plan.hm-free ul { border-top-color: rgba(241, 232, 216, 0.16); }
.home2 .hm-plan.hm-free li::before { border-color: #f0b27a; }
.home2 .hm-big { margin-top: 16px; font: italic 400 40px/1.04 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.home2 .hm-sigline { margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; font: 26px var(--hand); color: var(--ink); }
.home2 .hm-sigline img { width: 84px; height: auto; rotate: -3deg; mix-blend-mode: multiply; }

/* 8 · the closing picture */
.home2 .hm-close { margin-top: 132px; height: 620px; }
.home2 .hm-close::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 90px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, var(--paper), rgba(244, 236, 223, 0)); }
.home2 .hm-close::after { background: linear-gradient(180deg, rgba(26, 22, 18, 0), rgba(26, 22, 18, 0.2)); }
.home2 .hm-close .hm-copy { top: 36%; }
.home2 .hm-close h2 { font-size: clamp(40px, 5.2vw, 76px); }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .home2 .hm-lantern { display: none; }
}
@media (max-width: 960px) {
  .home2 .hm-two, .home2 .hm-cards { grid-template-columns: 1fr; gap: 40px; }
  .home2 .hm-why { grid-template-columns: 1fr 1fr; }
  .home2 .hm-why > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .home2 .hm-why > div:nth-child(n + 3) { margin-top: 34px; border-top: 1px solid rgba(241, 232, 216, 0.16); }
  .home2 .hm-steps, .home2 .hm-gallery, .home2 .hm-facts, .home2 .hm-plans { grid-template-columns: 1fr; }
  .home2 .hm-shot:nth-child(n) { rotate: 0deg; }
  .home2 .hm-colophon { display: none; }
}
@media (max-width: 640px) {
  .home2 { font-size: 16px; }
  .home2 .hm-wrap { width: calc(100% - 36px); }
  .home2 .hm-sec { padding-top: 92px; }
  .home2 .hm-night, .home2 .hm-local { margin-top: 92px; padding: 84px 0 90px; }
  .home2 .hm-hero { min-height: 640px; }
  .home2 .hm-copy { top: 40%; }
  .home2 .hm-lede { font-size: 17px; }
  .home2 .hm-btn { height: 50px; padding: 0 22px; font-size: 16px; }
  .home2 .hm-why { grid-template-columns: 1fr; }
  .home2 .hm-why > div, .home2 .hm-why > div + div { padding: 28px 0 0; border-left: 0; }
  .home2 .hm-why > div + div { margin-top: 28px; border-top: 1px solid rgba(241, 232, 216, 0.16); }
  .home2 .hm-card .hm-body { padding: 26px 24px 24px; }
  .home2 .hm-art { padding: 20px 18px 0; }
  .home2 .hm-built-read { width: 45%; padding: 6px 9px 7px; font-size: 8.5px; }
  .home2 .hm-built-read span { display: none; }
  .home2 .hm-close { margin-top: 92px; height: 540px; }
  .home2 .hm-say { flex-direction: column; align-items: stretch; }
  .home2 .hm-sheet { padding: 16px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home2 .hm-hero .hm-copy > *, .home2 .hm-draw.hm-go .dr, .home2 .hm-draw.hm-go .fl, .home2 .hm-draw.hm-go text, .home2 .hm-draw.hm-go .rl, .home2 .hm-draw.hm-go .rm, .home2 .hm-draw.hm-go .sk-fade { animation: none; }
  .home2 .hm-reveal, .home2 .hm-lantern, .home2 .hm-verse span, .home2 .hm-colophon img { transition: none; }
  .home2 .hm-lantern.is-real { animation: none; }
}

/* ---------- Chinese and Japanese ----------
   These scripts have no italic and the serif has no glyphs for them: headings are set in the hand
   font the app draws with, the emphasised part in the seal's red. */
html:lang(zh-CN) .home2 { --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
html:lang(zh-TW) .home2 { --sans: 'Inter', 'PingFang TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Noto Sans CJK TC', sans-serif; }
html:lang(ja) .home2 { --sans: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans CJK JP', sans-serif; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 { line-height: 1.8; line-break: strict; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 :is(h1, h2, .hm-big) { font-family: var(--hand); font-style: normal; letter-spacing: 0; line-height: 1.26; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 :is(h1, h2) em { font-style: normal; display: inline-block; max-width: 100%; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 .hm-scene :is(h1, h2) { font-size: clamp(36px, 5.4vw, 80px); line-height: 1.2; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 .hm-scene :is(h1, h2) em { display: block; }
/* Japanese headlines are long: small enough for the emphasised line to stay whole, and broken by phrase where it cannot. */
html:lang(ja) .home2 .hm-scene :is(h1, h2) { font-size: clamp(24px, 3.6vw, 54px); line-height: 1.34; }
html:lang(ja) .home2 :is(h1, h2) { word-break: auto-phrase; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 :is(.hm-sec, .hm-night, .hm-local) h2 { font-size: clamp(30px, 3.9vw, 52px); }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 .hm-two h2 em { display: block; }
html:lang(ja) .home2 .hm-two h2 { font-size: clamp(26px, 3vw, 40px); }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 :is(.hm-card h3, .hm-step h3, .hm-meta h3, .hm-facts h3) { font: 650 22px/1.4 var(--sans); letter-spacing: 0; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 :is(.hm-lede, .hm-sub) { line-height: 1.8; }
html:is(:lang(zh-CN), :lang(zh-TW), :lang(ja)) .home2 .hm-big { font-size: 34px; }
