/* Stylesheet for all server-rendered pages (works, services, blog, about, contact, terms, 404).
   Matches the 3D home: Instrument Serif headings, Inter body, warm off-white, generous whitespace.
   --accent and --on-accent are set inline from look.accentColor. Light theme only. */

:root {
  --bg: #faf8f4;
  --paper: #ffffff;
  --tint: #f2efe8;
  --ink: #141414;
  --ink-soft: #5d5d5a;
  --line: rgba(20, 20, 20, 0.12);
  --accent: #141414;
  --on-accent: #ffffff;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 24px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; padding-bottom: 80px; outline: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible, .nav a:focus-visible { outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header { padding-top: env(safe-area-inset-top); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; transition: padding .25s; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-header.scrolled .header-inner { padding-top: 7px; padding-bottom: 7px; }
.site-header.scrolled .brand { font-size: 22px; }
.brand { transition: font-size .25s; }
.menu-toggle { display: none; }
.brand { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.nav a:hover { background: #fff; border-color: var(--line); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding: 48px 0 32px; font-size: 14px; }
.footer-inner { display: grid; gap: 28px; grid-template-columns: 1.2fr 1.5fr 1fr; align-items: start; }
.footer-brand p { color: var(--ink-soft); margin: 8px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a, .footer-social a { text-decoration: none; }
.footer-nav a:hover, .footer-social a:hover { text-decoration: underline; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-note { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

/* ---------- Page heads ---------- */
.page-head { padding-top: 36px; padding-bottom: 24px; }
.page-head .lead:first-child { margin-top: 0; }
.page-head h1, .about h1, .post-head h1, .notfound h1 { font-size: clamp(44px, 8vw, 84px); letter-spacing: -0.02em; line-height: 1; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 62ch; margin: 20px 0 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.empty { color: var(--ink-soft); padding: 24px 0; }

.crumbs { margin: 28px 0 0; font-size: 13px; color: var(--ink-soft); }
.page-head .crumbs { margin: 0 0 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li[aria-current] { overflow-wrap: anywhere; }

/* ---------- Nav door icons ---------- */
.nav .door { display: inline-block; width: 8px; height: 12px; margin-right: 7px; vertical-align: -1px; border-radius: 2px 2px 0 0; background: var(--door, #999); box-shadow: inset -2px 0 0 rgba(0,0,0,.18); }
.nav a[aria-current="page"] .door { box-shadow: 0 0 0 1.5px #fffdf8, inset -2px 0 0 rgba(0,0,0,.18); }

/* ---------- Room header: soft wall + floor in the room's door colour ---------- */
.room { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #f3efe6; }
.room::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--door, #6c757d); opacity: .13; pointer-events: none; }
.room-wall { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #f8f5ee 0%, #ece7db 100%); }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; overflow: hidden; background: linear-gradient(180deg, #d8d2c5, #c6bfae); border-top: 1px solid rgba(20, 20, 20, .2); }
.room-floor::before {
  content: ""; position: absolute; left: -60%; right: -60%; top: 0; height: 320%;
  background:
    linear-gradient(rgba(20, 20, 20, .09) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(20, 20, 20, .09) 1px, transparent 1px) 0 0 / 84px 100%;
  transform: perspective(320px) rotateX(62deg); transform-origin: 50% 0;
}
.room-door {
  position: absolute; right: 9%; bottom: 36%; width: clamp(44px, 7vw, 86px); height: clamp(90px, 14vw, 172px);
  background: var(--door, #6c757d); border-radius: 3px 3px 0 0;
  box-shadow: 0 0 0 5px #fffdf8, 0 12px 26px rgba(0, 0, 0, .16), inset -7px 0 0 rgba(0, 0, 0, .16);
}
.room-door::after { content: ""; position: absolute; left: 100%; top: 4%; bottom: 0; width: 5px; background: linear-gradient(180deg, #fff1c9, #ffc46b); box-shadow: 0 0 22px 6px rgba(255, 196, 107, .45); }
.room-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 32px; padding-bottom: 44px; min-height: clamp(200px, 30vw, 300px); justify-content: space-between; }
.room-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 9vw, 96px); line-height: 1; letter-spacing: -0.02em; margin: 0; max-width: 78%; overflow-wrap: anywhere; }
.room-back {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .75);
  transition: background .2s, transform .15s var(--ease);
}
.room-back:hover { background: #fff; transform: translateX(-2px); }

/* ---------- Buttons, pills ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; transition: transform .15s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); background: #fff; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent); filter: brightness(1.15); }

.status {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); line-height: 1.5; margin: 0;
}
.status[data-status="Available"] { background: #e3f1e4; border-color: #bcd9be; color: #1f5a27; }
.status[data-status="Sold"] { background: #f6e1df; border-color: #e5bbb6; color: #8a2a1f; }
.status[data-status="Reserved"] { background: #f7efd9; border-color: #e6d3a3; color: #7a5a0e; }

/* ---------- Works ---------- */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 28px; }
.work-card a { display: block; text-decoration: none; }
.work-card .thumb { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--tint); padding: 18px; transition: background .2s; }
.work-card .thumb img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.work-card a:hover .thumb { background: #ebe7de; }
.work-title { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; margin-top: 14px; }
.work-card a:hover .work-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.work-meta { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.work-layout { display: grid; gap: 40px; padding-top: 28px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.work-figure { margin: 0; background: var(--tint); padding: clamp(16px, 4vw, 48px); display: grid; place-items: center; }
.work-figure img { max-height: 78vh; width: auto; box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.work-info h1 { font-size: clamp(40px, 6vw, 64px); margin: 10px 0 20px; }
.facts { margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: 14px; }
.facts dd { margin: 0; text-align: right; }

/* ---------- Services ---------- */
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.service-card { background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.service-card img { margin: -28px -28px 8px; width: calc(100% + 56px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; }
.service-num { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.service-card h2 { font-size: 32px; }
.service-card p { color: var(--ink-soft); margin: 0; }
.cta { margin-top: 72px; padding: 48px 32px; background: var(--tint); text-align: center; }
.cta h2 { font-size: clamp(30px, 5vw, 44px); }
.cta p { color: var(--ink-soft); margin: 12px 0 0; }
.cta .actions { justify-content: center; }

/* ---------- About ---------- */
.about { padding-top: 40px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.about-text .eyebrow { margin-top: 20px; }
.about-text .prose { margin-top: 28px; }
.about-img { margin: 0; }
.about-img img { width: 100%; max-height: 640px; object-fit: cover; }

/* ---------- Prose ---------- */
.prose { font-size: 17px; line-height: 1.75; max-width: 70ch; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(30px, 4vw, 40px); margin: 2em 0 .5em; line-height: 1.1; }
.prose h3 { font-size: clamp(25px, 3vw, 30px); margin: 1.8em 0 .4em; }
.prose h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 1.6em 0 .3em; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote, .prose figure, .prose table { margin: 0 0 1.3em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: .2em 0 .2em 1.2em; font-family: var(--serif); font-size: 1.35em; line-height: 1.35; color: #2a2a28; }
.prose blockquote p { margin: 0; }
.prose img { height: auto; margin: 2em auto; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font-size: .9em; background: var(--tint); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: #1b1b1a; color: #f4f2ec; padding: 18px 20px; overflow-x: auto; border-radius: 6px; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--tint); }
.prose iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 2em 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 56px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: color .2s, border-color .2s, transform .2s; }
.social-icons a:hover { text-decoration: none; transform: translateY(-2px); border-color: currentColor; }
.social-icons .soc-ico { width: 20px; height: 20px; }
.social-icons a[data-net="instagram"]:hover { color: #d62976; }
.social-icons a[data-net="facebook"]:hover { color: #1877f2; }
.social-icons a[data-net="linkedin"]:hover { color: #0a66c2; }
.social-icons a[data-net="behance"]:hover { color: #1769ff; }
.social-icons a[data-net="youtube"]:hover { color: #ff0000; }
.social-icons a[data-net="pinterest"]:hover { color: #e60023; }
.social-icons a[data-net="dribbble"]:hover { color: #ea4c89; }
.social-icons a[data-net="whatsapp"]:hover { color: #25d366; }
.footer-social.social-icons { gap: 8px; }
.contact-follow { margin: 28px 0 10px; color: var(--ink-soft); font-size: 13px; }
.contact-social a { width: 48px; height: 48px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--ink-soft); font-size: 13px; flex: none; }
.contact-list a { font-family: var(--serif); font-size: 22px; text-decoration: none; overflow-wrap: anywhere; text-align: right; min-width: 0; }
.contact-list a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.form { margin-top: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  display: block; width: 100%; padding: 13px 14px; background: var(--paper); border: 1px solid rgba(20,20,20,.28); border-radius: 6px;
  font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,20,20,.15); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #a3281b; }
.field-error { color: #a3281b; font-size: 14px; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: 6px; margin: 24px 0 0; font-size: 15px; border: 1px solid transparent; }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.notice.success { background: #e3f1e4; border-color: #bcd9be; color: #1f4f26; }
.notice.error { background: #f9e6e3; border-color: #e5bbb6; color: #7a2218; }
#form-status { outline: none; }

/* ---------- Blog list ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { font-size: 13px; font-weight: 500; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; transition: background .2s; }
.chips a:hover { background: #fff; }
.chips a[aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 44px 28px; }
.post-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.post-cover { display: block; background: var(--tint); overflow: hidden; }
.post-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.post-card h2, .post-card h3 { font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.post-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.post-card .post-meta { margin-bottom: 8px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; font-size: 14px; }
.pagination ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination li a, .pagination li span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; border: 1px solid transparent; }
.pagination li a:hover { border-color: var(--line); background: #fff; }
.pagination li span[aria-current] { background: var(--accent); color: var(--on-accent); }
.pagination > a { text-decoration: none; padding: 8px 4px; }
.pagination > a:hover { text-decoration: underline; }
.pagination .disabled { color: var(--ink-soft); opacity: .5; }

/* ---------- Single post ---------- */
.post { max-width: 820px; }
.post-head { padding-top: 36px; }
.post-head h1 { font-size: clamp(38px, 7vw, 68px); }
.post-cats { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink-soft); }
.post-cats a { text-decoration: none; }
.post-cats a:hover { text-decoration: underline; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--ink-soft); margin: 22px 0 0; }
.geo-summary { margin: 32px 0; padding: 22px 26px; background: var(--tint); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; max-width: 70ch; }
.geo-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.geo-summary p:last-child { margin: 0; font-size: 18px; line-height: 1.55; }
.post-cover-full { margin: 0 0 40px; }
.post-cover-full img { width: 100%; }
.takeaways, .faq { margin-top: 48px; max-width: 70ch; }
.takeaways { background: var(--paper); border: 1px solid var(--line); padding: 28px 30px; }
.takeaways h2, .faq h2, .related h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 16px; }
.takeaways ul { margin: 0; padding-left: 1.3em; }
.takeaways li { margin-bottom: .5em; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 22px; flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 12px; color: var(--ink-soft); }
.howto { margin-top: 56px; max-width: 70ch; }
.howto h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 16px; }
.howto ol { margin: 0; padding-left: 1.4em; }
.howto li { margin-bottom: .6em; }
.geo-wrap { padding-top: 8px; }
.geo-wrap.geo-bottom { padding-bottom: 0; }
.tags { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13px; text-decoration: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.tags a:hover { background: #fff; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; text-decoration: none; font-family: var(--serif); font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.pager a span { display: block; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 4px; }
.pager a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pager-next { text-align: right; grid-column: 2; }
.related { margin-top: 72px; }

/* ---------- 404 ---------- */
.notfound { padding-top: 96px; }
.notfound .lead { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .work-layout, .about, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { gap: 40px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .prose { font-size: 16px; }
  .brand { font-size: 22px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav a { padding: 7px 11px; font-size: 12px; }
  .page-head { padding-top: 28px; padding-bottom: 20px; }
  .room-door { display: none; }
  .room-title { max-width: 100%; }
  .room-inner { padding-bottom: 32px; min-height: 190px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .work-title { font-size: 21px; }
  .post-grid { gap: 36px; }
  .service-card { padding: 22px; }
  .service-card img { margin: -22px -22px 8px; width: calc(100% + 44px); }
  .geo-summary { padding: 18px; }
  .takeaways { padding: 22px 20px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: 1; text-align: left; }
  .cta { padding: 36px 20px; margin-top: 48px; }
  .contact-list a { font-size: 19px; }
}

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

/* ---------- Phone: sticky menu sheet, tap targets, no horizontal scroll ---------- */
@media (max-width: 760px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 248, 244, .98); }
  .js .header-inner { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 8px; }
  .js .site-header .brand { position: relative; z-index: 3; }
  .js .menu-toggle {
    position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  }
  .js .menu-toggle:hover { background: #fff; }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
  .js .nav {
    display: none; position: fixed; z-index: 2; inset: 0; flex-direction: column; flex-wrap: nowrap; gap: 4px; overflow-y: auto;
    background: var(--bg); padding: calc(var(--header-h, 64px) + 20px) max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .js.menu-open .nav { display: flex; }
  .js .nav a { font-family: var(--serif); font-size: 36px; font-weight: 400; min-height: 60px; padding: 8px 12px; border-radius: 12px; border: 0; }
  .js .nav a .door { width: 14px; height: 22px; margin-right: 16px; border-radius: 3px 3px 0 0; }
  .js .nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
  .nav a { min-height: 44px; }
  .btn, .chips a, .tags a, .room-back, .footer-nav a, .footer-social a { min-height: 44px; }
  .btn, .chips a, .tags a, .footer-nav a, .footer-social a { display: inline-flex; align-items: center; }
  .field input, .field textarea { min-height: 48px; }
  .pagination li a, .pagination li span { min-width: 44px; height: 44px; }
  .pagination > a, .pagination > span { min-height: 44px; display: inline-flex; align-items: center; }
  .pager a { padding: 6px 0; }
  .crumbs a { display: inline-block; padding: 10px 0; }
  .contact-list a { padding: 8px 0; }
  body { font-size: 16px; }
  .room-title { font-size: clamp(36px, 11.5vw, 56px); }
  .room-inner { min-height: 150px; gap: 14px; padding-top: 20px; padding-bottom: 24px; }
  .room-wall { opacity: .9; }
  .faq-item summary { font-size: 22px; }
}
@media (max-width: 380px) {
  .work-grid { gap: 24px 10px; }
  .work-title { font-size: 19px; }
  .post-card h2, .post-card h3 { font-size: 26px; }
}

/* ---------- Blog room (3D) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.blog-stage { position: relative; width: 100%; height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 420px; overflow: hidden; background: #e9e4d8; margin-bottom: 8px; }
.garden-stage { background: #efe7d8; }
.campus-stage { background: #e7edf2; }
.campus-stage .stage-card h2 { margin-top: 0; }
.studio-stage { background: #2b2a2e; }
.studio-stage .stage-hint { color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .blog-stage.studio-stage { height: 64svh; min-height: 360px; } }
@media (max-width: 760px) { .blog-stage.garden-stage { height: 76svh; min-height: 380px; } }
@media (max-width: 760px) { .blog-stage.campus-stage { height: 76svh; min-height: 380px; } }
.garden-stage .stage-card h2 { margin-top: 0; }
.product-grid { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product-card { position: relative; padding: 20px 20px 18px 52px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.product-card h3 { margin: 0 0 6px; font-size: 20px; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }
.product-card p { margin: 0 0 6px; color: var(--ink-soft); font-size: 15px; }
.product-card .product-host { font-size: 12px; letter-spacing: .04em; }
.product-dot { position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: var(--bush, #4f9a3f); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18); }
.blog-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.blog-stage.dragging canvas { cursor: grabbing; }
.blog-stage.hovering canvas { cursor: pointer; }
.stage-back { position: absolute; top: 16px; left: max(16px, env(safe-area-inset-left)); z-index: 3; }
.stage-list { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(255, 255, 255, .85); }
.stage-list:hover { transform: translateX(-50%) translateY(-1px); }
.zen-toggle { position: absolute; top: 16px; right: max(16px, env(safe-area-inset-right)); z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .85); }
.zen-toggle[hidden] { display: none; }
.zen-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.zen-icon i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; opacity: .45; }
.zen-toggle.on .zen-icon i { opacity: 1; animation: zenBar 1.6s ease-in-out infinite; }
.zen-toggle.on .zen-icon i:nth-child(2) { animation-delay: -.5s; }
.zen-toggle.on .zen-icon i:nth-child(3) { animation-delay: -1s; }
.zen-toggle.waiting { animation: zenPulse 2.4s ease-in-out infinite; }
@keyframes zenBar { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes zenPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 154, 63, .45); } 50% { box-shadow: 0 0 0 8px rgba(79, 154, 63, 0); } }
@media (prefers-reduced-motion: reduce) { .zen-toggle.on .zen-icon i, .zen-toggle.waiting { animation: none; } .zen-toggle.on .zen-icon i { height: 10px; } }
.stage-hint { position: absolute; bottom: 24px; left: max(16px, env(safe-area-inset-left)); z-index: 2; margin: 0; font-size: 12px; color: var(--ink-soft); pointer-events: none; transition: opacity .6s; max-width: 28vw; }
.stage-hint.gone { opacity: 0; }
.stage-tip { position: absolute; z-index: 4; pointer-events: none; max-width: 260px; padding: 10px 14px; background: rgba(20, 20, 20, .9); color: #fff; border-radius: 8px; font-size: 13px; line-height: 1.35; transform: translate(14px, 14px); }
.stage-tip strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.15; margin-bottom: 3px; }
.stage-tip span { opacity: .75; font-size: 12px; }
.stage-card { position: absolute; z-index: 5; right: 24px; bottom: 24px; width: min(380px, calc(100% - 48px)); max-height: calc(100% - 96px); overflow-y: auto; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.stage-card h2 { font-size: 30px; margin: 4px 0 10px; }
.stage-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }
.stage-card .stage-card-meta { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stage-card .actions { margin-top: 16px; }
.list-title { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 28px; }
@media (max-width: 760px) {
  .blog-stage { height: calc(100svh - 60px); }
  .stage-hint { display: none; }
  .stage-card { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 46%; padding: 18px; }
  .stage-card h2 { font-size: 25px; }
  .stage-list { bottom: auto; top: 16px; left: auto; right: 16px; transform: none; }
  .stage-list:hover { transform: none; }
  .zen-toggle { top: auto; bottom: 16px; right: 16px; }
}
/* "View as list" switch: button that brings the 3D room back */
.stage-restore { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
