/* Maarc Builds — main stylesheet
   Brand: ink #17120D · cream #F4EFE8 · terracotta #B85C3C · bronze #6B4423 · sand #D9C8A8
   Type: Cormorant Garamond (display) · Space Grotesk (text) · JetBrains Mono (figures) */

:root {
  --ink: #17120d;
  --ink-2: #211a14;
  --ink-3: #2e261f;
  --cream: #f4efe8;
  --stone: #eae2d5;
  --sand: #d9c8a8;
  --bronze: #6b4423;
  --terra: #b85c3c;          /* decorative: beam, rules, large type */
  --terra-ink: #a14f31;      /* text-bearing fills (AA with cream text) */
  --terra-ink-hover: #8a4229;

  --on-dark: #f4efe8;
  --on-dark-muted: rgba(244, 239, 232, 0.66);
  --on-dark-line: rgba(244, 239, 232, 0.16);
  --on-light: #17120d;
  --on-light-muted: rgba(23, 18, 13, 0.68);
  --on-light-line: rgba(23, 18, 13, 0.14);

  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --text: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --figure: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --section: clamp(88px, 12vw, 176px);
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-slow: cubic-bezier(.7, 0, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--cream);
  color: var(--on-light);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; overflow-wrap: break-word; }
::selection { background: var(--terra); color: var(--cream); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--sand); }

dialog:focus { outline: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--cream); color: var(--ink); padding: 12px 16px; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark-2 { background: var(--ink-2); color: var(--on-dark); }
.light { background: var(--cream); color: var(--on-light); }
.stone { background: var(--stone); color: var(--on-light); }
.band { padding-block: var(--section); position: relative; }
.band.tight { padding-block: clamp(64px, 8vw, 112px); }

/* subtle film grain on dark surfaces */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.88 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.display {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(52px, 9.2vw, 150px); line-height: .92; letter-spacing: -0.022em;
}
.h1 { font-family: var(--display); font-weight: 300; font-size: clamp(46px, 6.6vw, 104px); line-height: .96; letter-spacing: -0.02em; }
.h2 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 4.8vw, 72px); line-height: 1; letter-spacing: -0.015em; }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -0.005em; }
.lede { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35; max-width: 34ch; }
.body-l { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; max-width: 60ch; }
.muted { color: var(--on-light-muted); }
.dark .muted, .dark-2 .muted { color: var(--on-dark-muted); }
.label { font: 500 13px/1.3 var(--text); letter-spacing: .01em; color: var(--on-light-muted); }
.dark .label, .dark-2 .label { color: var(--on-dark-muted); }
.display, .h1, .h2, .h3, .lede, .figures dd, .plate-title, .card-title { font-variant-numeric: lining-nums; }
.fig { font-family: var(--figure); font-weight: 400; font-size: .86em; letter-spacing: 0; }
.serif { font-family: var(--display); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  font: 500 15px/1 var(--text); letter-spacing: .01em;
  border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--terra-ink); color: var(--cream); }
.btn-primary:hover { background: var(--terra-ink-hover); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: var(--on-light); color: var(--cream); border-color: var(--on-light); }
.dark .btn-line:hover, .dark-2 .btn-line:hover, .hero .btn-line:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn .ico { width: 18px; height: 18px; flex: none; }

.link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 500 15px/1.2 var(--text);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }

/* ---------- Bracket motif (from the logo) ---------- */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: clamp(14px, 1.6vw, 22px);
  border: 2px solid currentColor; pointer-events: none; opacity: .9;
}
.brackets::before { left: 0; border-right: 0; }
.brackets::after { right: 0; border-left: 0; }
.beam { display: block; width: 36px; height: 8px; background: var(--terra); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  color: var(--on-dark);
  transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
body[data-header="light"] .site-header { color: var(--on-light); }
.site-header.solid { background: rgba(23, 18, 13, .92); color: var(--on-dark); backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%); box-shadow: 0 1px 0 var(--on-dark-line); }
body[data-header="light"] .site-header.solid { background: rgba(244, 239, 232, .92); color: var(--on-light); box-shadow: 0 1px 0 var(--on-light-line); }
.site-header.hide { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 14px; line-height: 1; }
.logo svg { width: 30px; height: 40px; flex: none; }
.logo-word { display: flex; flex-direction: column; }
.logo-name { font: 300 29px/1 var(--text); letter-spacing: -0.03em; }
.logo-name i { font-style: normal; color: var(--terra); }
.logo-sub { font: 500 9.5px/1 var(--text); letter-spacing: .52em; margin-top: 6px; opacity: .78; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { font: 400 15px/1 var(--text); padding-block: 14px; position: relative; opacity: .86; transition: opacity .25s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--terra); }
.header-cta { min-height: 46px; padding: 0 22px; font-size: 14px; }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -12px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .logo svg { width: 26px; height: 34px; }
  .logo-name { font-size: 25px; }
}

/* Mobile menu (dialog) */
.menu { margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 0; background: var(--ink); color: var(--on-dark); }
.menu::backdrop { background: transparent; }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu-close { width: 48px; height: 48px; margin-right: -12px; font-size: 30px; line-height: 1; font-weight: 200; }
.menu nav { display: flex; flex-direction: column; margin-top: 4vh; }
.menu nav a { font: 300 clamp(40px, 11vw, 56px)/1.1 var(--display); padding: 8px 0; border-bottom: 1px solid var(--on-dark-line); }
.menu .menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }

/* ---------- Home hero: brackets open onto the house ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero-media { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform-origin: 60% 50%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(23,18,13,.55) 0%, rgba(23,18,13,0) 26%, rgba(23,18,13,0) 46%, rgba(23,18,13,.82) 100%),
  linear-gradient(90deg, rgba(23,18,13,.62) 0%, rgba(23,18,13,.2) 45%, rgba(23,18,13,0) 70%); }
.hero-bracket { position: absolute; top: 50%; width: clamp(56px, 7vw, 104px); height: clamp(150px, 26vw, 380px); margin-top: calc(clamp(150px, 26vw, 380px) / -2); border: 3px solid var(--cream); pointer-events: none; z-index: 2; }
.hero-bracket.l { left: 50%; border-right: 0; margin-left: calc(-1 * clamp(56px, 7vw, 104px) - 14px); }
.hero-bracket.r { left: 50%; border-left: 0; margin-left: 14px; }
.hero-beam { position: absolute; z-index: 2; left: 50%; top: 50%; width: 28px; height: 14px; margin: -7px 0 0 -14px; background: var(--terra); }
.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: clamp(36px, 7vh, 80px); }
.hero-copy .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero-title { font-size: clamp(42px, 7.4vw, 124px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero-title .line > span { display: block; }
.hero-sub { margin: 28px 0 0; max-width: 40ch; color: var(--on-dark-muted); font-size: clamp(16px, 1.2vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { text-align: right; display: grid; gap: 6px; color: var(--on-dark-muted); font-size: 14px; }
.hero-meta .serif { font-size: 22px; color: var(--cream); }

/* The opening: plays once, CSS only. Final state is the default if animations are off. */
.js .hero.play .hero-media { animation: open-media 1.7s var(--ease-slow) .35s both; }
.js .hero.play .hero-media img { animation: settle 3.6s var(--ease) .35s both; }
.js .hero.play .hero-bracket.l { animation: bracket-l 1.7s var(--ease-slow) .35s both; }
.js .hero.play .hero-bracket.r { animation: bracket-r 1.7s var(--ease-slow) .35s both; }
.js .hero.play .hero-beam { animation: beam 1.9s var(--ease-slow) .2s both; }
.js .hero.play .hero-title .line > span { animation: rise 1.2s var(--ease) both; }
.js .hero.play .hero-title .line:nth-child(1) > span { animation-delay: 1.45s; }
.js .hero.play .hero-title .line:nth-child(2) > span { animation-delay: 1.57s; }
.js .hero.play .hero-title .line:nth-child(3) > span { animation-delay: 1.69s; }
.js .hero.play .hero-fade { animation: fade 1s var(--ease) 1.95s both; }
@keyframes open-media { from { clip-path: inset(0 calc(50% - 14px) 0 calc(50% - 14px)); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes bracket-l { 0% { transform: translateX(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(-50vw); opacity: 0; } }
@keyframes bracket-r { 0% { transform: translateX(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(50vw); opacity: 0; } }
@keyframes beam { 0%, 30% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scaleX(.2); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-bracket, .hero-beam { opacity: 0; }
.js .hero.play .hero-bracket, .js .hero.play .hero-beam { opacity: 1; }

@media (max-width: 760px) {
  .hero-copy .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 140px; padding: 0 18px; }
  .hero-title { font-size: clamp(40px, 11.6vw, 64px); }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(56px, 8vw, 120px); }
.page-hero .label { margin-bottom: 28px; display: block; }
.page-hero .h1 { max-width: 14ch; }
.page-hero .lede { margin-top: 32px; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 860px) { .page-hero-split { grid-template-columns: 1fr; } }

/* ---------- Home: statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.statement .h2 { max-width: 20ch; }
.statement .body-l { margin-top: 40px; color: var(--on-light-muted); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--on-light-line); }
.figures div { padding: 28px 24px 0 0; }
.figures dt { order: 2; }
.figures dd { margin: 0 0 14px; font: 300 clamp(44px, 4.6vw, 72px)/1 var(--text); letter-spacing: -0.045em; }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

/* ---------- Home: selected work plates ---------- */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(56px, 8vw, 112px); }
.plates { display: grid; gap: clamp(88px, 11vw, 168px); }
.plate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.plate-media { grid-column: 1 / span 8; position: relative; overflow: hidden; background: var(--ink-3); }
.plate-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.6s var(--ease); }
.plate:hover .plate-media img { transform: scale(1.035); }
.plate-text { grid-column: 10 / span 3; padding-bottom: 8px; }
.plate:nth-child(even) .plate-media { grid-column: 5 / span 8; grid-row: 1; }
.plate:nth-child(even) .plate-text { grid-column: 1 / span 3; grid-row: 1; }
.plate-n { font: 300 15px/1 var(--figure); color: var(--sand); display: block; margin-bottom: 20px; }
.plate-title { font: 300 clamp(34px, 3.4vw, 54px)/1 var(--display); letter-spacing: -0.015em; }
.plate-meta { margin-top: 16px; color: var(--on-dark-muted); font-size: 15px; }
.plate .link { margin-top: 24px; }
.plate-badge { position: absolute; left: 20px; top: 20px; background: rgba(23,18,13,.72); color: var(--cream); padding: 8px 12px; font-size: 13px; backdrop-filter: blur(6px); }
@media (max-width: 860px) {
  .plate, .plate:nth-child(even) { grid-template-columns: 1fr; }
  .plate-media, .plate:nth-child(even) .plate-media, .plate-text, .plate:nth-child(even) .plate-text { grid-column: 1; grid-row: auto; }
  .plate-text { padding-top: 24px; }
  .work-head { flex-direction: column; align-items: start; }
}

/* image unveil on scroll — only when JS confirms motion is OK */
.motion .unveil { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease-slow); }
.motion .unveil img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.motion .unveil.in { clip-path: inset(0 0 0 0); }
.motion .unveil.in img { transform: scale(1); }
.motion .plate:hover .unveil.in img { transform: scale(1.035); }

/* ---------- Home: signature detail ---------- */
.signature { position: relative; height: clamp(480px, 90vh, 980px); overflow: hidden; background: var(--ink); color: var(--on-dark); }
.signature img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.signature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,18,13,.88) 0%, rgba(23,18,13,.55) 26%, rgba(23,18,13,0) 58%); }
.signature .muted { color: rgba(244, 239, 232, .78); }
.p-intro-band { padding-bottom: clamp(24px, 3vw, 48px); }
.signature figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(32px, 6vw, 72px); }
.signature figcaption .h3 { max-width: 22ch; }

/* ---------- Services list ---------- */
.svc { border-top: 1px solid var(--on-light-line); }
.svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--on-light-line); }
.svc-row .h3 { font-size: clamp(30px, 3vw, 46px); }
.svc-row p { margin: 0; color: var(--on-light-muted); max-width: 52ch; }
.svc-row ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.svc-row li::before { content: ''; display: inline-block; width: 10px; height: 1px; background: var(--terra); vertical-align: middle; margin-right: 10px; }
.svc-row .link { margin-top: 16px; }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.process-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); margin-bottom: clamp(56px, 7vw, 96px); align-items: end; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 28px clamp(12px, 1.6vw, 28px) 0 0; border-top: 1px solid var(--on-dark-line); position: relative; }
.steps li::before { content: counter(step); display: block; font: 300 15px/1 var(--figure); color: var(--sand); margin-bottom: 40px; }
.steps li::after { content: ''; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--terra); }
.steps h3 { font: 400 26px/1.1 var(--display); margin-bottom: 14px; }
.steps p { color: var(--on-dark-muted); font-size: 15.5px; line-height: 1.6; margin: 0; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; row-gap: 40px; } .steps li::before { margin-bottom: 20px; } .process-head { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px clamp(20px, 3vw, 48px); font: 300 clamp(34px, 5vw, 76px)/1.05 var(--display); letter-spacing: -0.015em; }
.areas span:last-child { color: var(--bronze); }

/* ---------- CTA band (bookend to the hero) ---------- */
.cta { text-align: left; padding-block: clamp(64px, 8vw, 128px); }
.cta-frame { padding: clamp(48px, 7vw, 112px) clamp(32px, 6vw, 112px); color: var(--on-dark); }
.cta-frame.brackets::before, .cta-frame.brackets::after { color: rgba(244, 239, 232, .5); }
.cta .h1 { max-width: 13ch; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.cta-note { color: var(--on-dark-muted); margin-top: 28px; max-width: 44ch; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--on-dark-line); }
.channel { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 72px; padding: 14px 0; border-bottom: 1px solid var(--on-dark-line); transition: color .3s, padding .4s var(--ease); }
.channel:hover { padding-left: 10px; }
.channel .ico { width: 22px; height: 22px; color: var(--sand); }
.channel strong { display: block; font-weight: 500; font-size: 16px; }
.channel small { display: block; color: var(--on-dark-muted); font-size: 14px; margin-top: 2px; }
.channel .go { font-size: 20px; color: var(--sand); transition: transform .3s var(--ease); }
.channel:hover .go { transform: translateX(4px); }
.light .channels, .stone .channels { border-top-color: var(--on-light-line); }
.light .channel, .stone .channel { border-bottom-color: var(--on-light-line); }
.light .channel .ico, .stone .channel .ico, .light .channel .go, .stone .channel .go { color: var(--bronze); }
.light .channel small, .stone .channel small { color: var(--on-light-muted); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } .cta-frame { padding-inline: clamp(28px, 7vw, 48px); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(64px, 8vw, 112px) 0 40px; border-top: 1px solid var(--on-dark-line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.foot-grid h2 { font: 500 13px/1.3 var(--text); color: var(--on-dark-muted); margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-grid li a, .foot-grid li span { display: inline-block; padding: 6px 0; font-size: 15px; }
.foot-grid li a:hover { color: var(--sand); }
.foot-tag { margin-top: 24px; color: var(--on-dark-muted); max-width: 34ch; font-size: 15px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-muted); font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Mobile contact bar ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--cream); border-top: 1px solid var(--on-dark-line); padding-bottom: env(safe-area-inset-bottom); transition: transform .4s var(--ease); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font: 500 14px/1 var(--text); }
  .mbar a + a { border-left: 1px solid var(--on-dark-line); }
  .mbar a:first-child { background: var(--terra-ink); }
  .mbar .ico { width: 18px; height: 18px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body.at-top .mbar { transform: translateY(100%); }
}

/* ---------- Connect sheet (dialog) ---------- */
.sheet { margin: 0 0 0 auto; height: 100%; max-height: none; width: min(520px, 100%); max-width: none; border: 0; padding: 0; background: var(--cream); color: var(--on-light); }
.sheet::backdrop { background: rgba(23, 18, 13, .55); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .55s var(--ease) both; }
.sheet[open]::backdrop { animation: fade-in .4s ease both; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-inner { min-height: 100%; display: flex; flex-direction: column; padding: 28px clamp(24px, 4vw, 48px) calc(32px + env(safe-area-inset-bottom)); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet-close { width: 48px; height: 48px; margin-right: -12px; font-size: 30px; font-weight: 200; line-height: 1; }
.sheet h2 { margin-top: clamp(32px, 6vh, 64px); font: 300 clamp(40px, 5vw, 56px)/1 var(--display); letter-spacing: -0.015em; }
.sheet .sheet-lead { margin: 18px 0 36px; color: var(--on-light-muted); }
.sheet .channel { border-bottom-color: var(--on-light-line); }
.sheet .channels { border-top-color: var(--on-light-line); }
.sheet .channel .ico, .sheet .channel .go { color: var(--bronze); }
.sheet .channel small { color: var(--on-light-muted); }
.sheet-foot { margin-top: auto; padding-top: 32px; font-size: 14px; color: var(--on-light-muted); display: grid; gap: 6px; }
.sheet-foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.sheet-foot a:hover { text-decoration-color: currentColor; }

/* Social links: quiet text + icon, used in footer, menu and contact page */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.social .ico { width: 20px; height: 20px; flex: none; }
.foot-grid .social { margin-top: 20px; display: flex; gap: 4px 28px; }
.foot-grid .social a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.site-footer .muted { color: var(--on-dark-muted); }
.site-footer .social .ico, .menu .social .ico { color: var(--sand); }
.menu .social { margin-top: 8px; }
.menu .social a { color: var(--on-dark); }
.info-list .social { margin-top: 10px; }
.info-list .social a { color: var(--ink); }
.info-list .social .ico { color: var(--bronze); }
.social a:hover { color: var(--sand); }
.info-list .social a:hover { color: var(--bronze); }

/* ---------- Projects index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 72px); }
.filters button { min-height: 44px; padding: 0 18px; border: 1px solid var(--on-light-line); font-size: 15px; transition: background .25s, color .25s, border-color .25s; }
.filters button:hover { border-color: var(--on-light); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) clamp(16px, 2vw, 32px); }
.card { grid-column: span 6; display: block; }
.card:nth-child(4n+2), .card:nth-child(4n+3) { }
.card-media { position: relative; overflow: hidden; background: var(--stone); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-text { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: baseline; }
.card-title { font: 400 clamp(26px, 2.2vw, 32px)/1.05 var(--display); }
.card-meta { color: var(--on-light-muted); font-size: 14px; margin-top: 6px; }
.card-n { font: 300 13px/1 var(--figure); color: var(--on-light-muted); }
.badge { position: absolute; left: 16px; top: 16px; background: var(--cream); color: var(--ink); padding: 7px 11px; font-size: 13px; font-weight: 500; }
.card[hidden] { display: none; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.filter-bar .filters { margin: 0; }
.filter-count { font: 300 14px/1 var(--figure); color: var(--on-light-muted); }
@media (max-width: 680px) { .card { grid-column: 1 / -1; } }

/* ---------- Project page ---------- */
.p-hero { position: relative; height: 92svh; min-height: 560px; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.p-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,18,13,.5) 0%, rgba(23,18,13,0) 28%, rgba(23,18,13,0) 50%, rgba(23,18,13,.85) 100%); }
.p-hero .wrap { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 6vw, 80px); }
.p-hero .label { color: var(--on-dark-muted); display: block; margin-bottom: 18px; }
.p-hero.framed { height: auto; min-height: 0; padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vw, 80px); }
.p-hero.framed::after { display: none; }
.p-hero.framed img { position: static; height: auto; width: 100%; max-width: 760px; margin-top: 48px; }
.p-hero.framed .wrap { position: static; }
.crumbs { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 22px; display: flex; gap: 10px; }
.crumbs a:hover { color: var(--cream); }
.p-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); }
.p-intro .lede { max-width: 30ch; }
.p-intro .body-l { margin-top: 28px; color: var(--on-light-muted); }
.facts { margin: 0; display: grid; border-top: 1px solid var(--on-light-line); align-self: start; }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--on-light-line); }
.facts dt { color: var(--on-light-muted); font-size: 14px; }
.facts dd { margin: 0; font-size: 15.5px; }
@media (max-width: 860px) { .p-intro { grid-template-columns: 1fr; } }

.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 72px); padding-block: clamp(56px, 7vw, 112px); border-top: 1px solid var(--on-light-line); }
.chapter:first-child { border-top: 0; }
.chapter-text { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.chapter-text .h2 { font-size: clamp(36px, 3.8vw, 58px); }
.chapter-text p { margin-top: 24px; color: var(--on-light-muted); max-width: 44ch; }
.chapter-text .count { display: block; margin-top: 20px; font: 300 13px/1 var(--figure); color: var(--on-light-muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.gallery figure { margin: 0; }
.gallery .full { grid-column: 1 / -1; }
.gallery button { display: block; width: 100%; position: relative; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery .tall img { aspect-ratio: 4 / 5; }
.gallery .full img { aspect-ratio: auto; }
.gallery button:hover img { transform: scale(1.025); }
.gallery figcaption { font-size: 13.5px; color: var(--on-light-muted); margin-top: 10px; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } .chapter-text { position: static; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.next-project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.next-project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.next-project:hover img { transform: scale(1.02); }
.next-project .media { overflow: hidden; }
.next-project img { transition: transform 1.4s var(--ease); }
@media (max-width: 760px) { .next-project { grid-template-columns: 1fr; } .next-project .media { order: -1; } }

/* ---------- Lightbox ---------- */
.lb { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: rgba(15, 11, 8, .97); color: var(--cream); }
.lb::backdrop { background: rgba(15, 11, 8, .97); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.lb-count { font: 300 14px/1 var(--figure); color: var(--on-dark-muted); }
.lb-close { width: 48px; height: 48px; margin-right: -12px; font-size: 32px; font-weight: 200; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-prev, .lb-next { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; font-size: 26px; color: var(--cream); opacity: .75; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: clamp(4px, 2vw, 24px); } .lb-next { right: clamp(4px, 2vw, 24px); }
.lb-cap { padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); color: var(--on-dark-muted); font-size: 14px; text-align: center; min-height: 54px; }
@media (max-width: 760px) { .lb-prev, .lb-next { display: none; } }

/* ---------- About ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.principles div { border-top: 1px solid var(--on-dark-line); padding-top: 24px; }
.principles h3 { font: 400 28px/1.1 var(--display); margin-bottom: 14px; }
.principles p { color: var(--on-dark-muted); font-size: 15.5px; margin: 0; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story .body-l + .body-l { margin-top: 0; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact-grid .channel { min-height: 92px; }
.contact-grid .channel strong { font: 400 clamp(22px, 2vw, 28px)/1.15 var(--display); }
.info-list { display: grid; gap: 36px; }
.info-list h2 { font: 400 26px/1.15 var(--display); margin-bottom: 10px; }
.info-list p, .info-list li { color: var(--on-light-muted); }
.info-list ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; font-size: 15px; }
.faq-nav a { padding: 8px 0; color: var(--on-light-muted); }
.faq-nav a:hover { color: var(--on-light); }
.faq-group + .faq-group { margin-top: clamp(56px, 7vw, 96px); }
.faq-group > h2 { font: 300 clamp(32px, 3.4vw, 48px)/1.05 var(--display); margin-bottom: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group details { border-top: 1px solid var(--on-light-line); }
.faq-group details:last-child { border-bottom: 1px solid var(--on-light-line); }
.faq-group summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 24px; align-items: center; padding: 22px 0; font: 500 17px/1.4 var(--text); }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: '+'; font: 200 28px/1 var(--text); color: var(--bronze); text-align: center; transition: transform .35s var(--ease); }
.faq-group details[open] summary::after { transform: rotate(45deg); }
.faq-group details p { margin: 0; padding: 0 48px 26px 0; color: var(--on-light-muted); max-width: 70ch; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { display: none; } .faq-group details p { padding-right: 0; } }

/* ---------- Blog ---------- */
.posts { display: grid; border-top: 1px solid var(--on-light-line); }
.post-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 48px); padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--on-light-line); align-items: baseline; }
.post-row .h3 { font-size: clamp(28px, 2.8vw, 42px); transition: color .3s; }
.post-row:hover .h3 { color: var(--terra-ink); }
.post-row p { margin: 14px 0 0; color: var(--on-light-muted); max-width: 60ch; }
.post-row .link { justify-self: end; }
@media (max-width: 860px) { .post-row { grid-template-columns: 1fr; } .post-row .link { justify-self: start; } }

.prose { max-width: 68ch; font-size: 18px; line-height: 1.72; }
.prose h2 { font: 400 clamp(30px, 3vw, 40px)/1.12 var(--display); margin: 2em 0 .6em; }
.prose h3 { font: 500 19px/1.35 var(--text); margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--terra); }
.prose .note { border-left: 2px solid var(--terra); padding: 4px 0 4px 22px; color: var(--on-light-muted); font-style: normal; margin: 1.6em 0; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose ol li::marker { color: var(--terra-ink); font-weight: 500; }
.prose p a, .prose li a { text-decoration: underline; text-decoration-color: var(--terra); text-underline-offset: 3px; }
.prose p a:hover, .prose li a:hover { color: var(--terra-ink); }
.prose td { min-width: 0; }
.prose td:last-child, .prose th:first-child { white-space: nowrap; }
@media (max-width: 600px) { .prose table { font-size: 14px; } .prose th, .prose td { padding-right: 12px; } .prose td:last-child, .prose th:first-child { white-space: normal; } }

/* Tables (e.g. lead times) */
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--on-light-line); vertical-align: top; }
.prose thead th { font-weight: 500; font-size: 13px; color: var(--on-light-muted); border-bottom-color: var(--ink); }
.prose tbody th { font-weight: 500; }

/* Photos and video inside a post: full column width, quiet caption, opens in the lightbox */
.post-fig { margin: 2em 0 2.2em; }
.post-fig button { display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; }
.post-fig img, .post-fig video { display: block; width: 100%; height: auto; }
.post-fig video { background: var(--ink); aspect-ratio: 16 / 9; }
.post-fig figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--on-light-muted); max-width: 60ch; }
.post-fig + .post-fig { margin-top: 1.4em; }
.post-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; margin: 2em 0 2.2em; align-items: start; }
.post-gallery .post-fig { margin: 0; }
.post-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.post-gallery figcaption { font-size: 14px; margin-top: 10px; }
@media (max-width: 600px) { .post-gallery { grid-template-columns: 1fr; } .post-gallery img { aspect-ratio: auto; } }
@media print { .post-fig { break-inside: avoid; } .post-video { display: none; } }

/* Checklist: drawn boxes, prints cleanly */
.prose .checklist { list-style: none; padding: 0; margin: 1.2em 0 1.6em; border-top: 1px solid var(--on-light-line); }
.prose .checklist li { position: relative; padding: 12px 0 12px 36px; margin: 0; border-bottom: 1px solid var(--on-light-line); font-size: 17px; }
.prose .checklist li::before { content: ''; position: absolute; left: 0; top: 16px; width: 18px; height: 18px; border: 1.5px solid var(--bronze); }

/* Series: on the post (intro + parts) and on the Journal page */
.post-kicker { margin: 0 0 18px; color: var(--sand); font-size: 15px; }
.post-byline { margin: 28px 0 0; font-size: 14px; color: var(--on-dark-muted); }
.series-note { background: var(--stone); padding: 24px 28px; margin: 0 0 2.4em; font-size: 16px; line-height: 1.65; }
.series-note p { margin: 0; color: var(--on-light-muted); }
.series-note-h { font-weight: 500; color: var(--ink) !important; margin-bottom: 8px !important; font-size: 15px; }
.series-end { margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--ink); }
.series-parts { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: none; }
.series-parts li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--on-light-line); margin: 0; font-size: 17px; }
.series-parts .part { font-size: 13px; color: var(--on-light-muted); }
.series-parts a { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 4px; }
.series-parts a:hover { text-decoration-color: var(--terra-ink); }
.series-parts [aria-current] span:last-child { font-weight: 500; }
.series-parts .soon span:last-child { color: var(--on-light-muted); }
.series-parts em { font: 400 13px/1.4 var(--text); margin-left: 10px; color: var(--terra-ink); white-space: nowrap; }
.series-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); padding-bottom: clamp(56px, 7vw, 104px); margin-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--on-light-line); }
.series-head .h2 { margin: 0; }
.series-tag { font: 400 clamp(22px, 2vw, 28px)/1.3 var(--display); margin: 14px 0 20px; }
.series-head .muted { color: var(--on-light-muted); max-width: 46ch; }
.series-head .btn { margin-top: 12px; }
.series-feature .series-parts { margin-top: 0; border-top: 1px solid var(--ink); }
.series-feature .series-parts li { font: 400 clamp(22px, 2vw, 28px)/1.25 var(--display); padding: 20px 0; }
.series-feature .series-parts .part { font: 400 13px/1.4 var(--text); }
.posts-h { font: 500 15px/1.3 var(--text); color: var(--on-light-muted); margin: 0 0 18px; }
@media (max-width: 860px) { .series-feature { grid-template-columns: 1fr; } }
@media print { .site-header, .site-footer, .mbar, .article-aside, .cta, .page-hero .crumbs { display: none !important; } .page-hero { background: none !important; color: #000 !important; padding: 0 !important; } }
.article-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); }
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; font-size: 15px; color: var(--on-light-muted); display: grid; gap: 20px; }
.article-aside .btn { width: 100%; }
@media (max-width: 860px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; order: 2; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-content: center; padding-top: var(--header-h); }
.nf .display { font-size: clamp(56px, 10vw, 140px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .hero-bracket, .hero-beam { display: none; }
}

/* ---------- Home hero: framed chapters (replaced the bracket hero; old styles above are unused) ----------
   One framed screen under the site header: a chapter rail, a masked headline, decoding labels,
   photographs that drift like a slow camera and tilt with the pointer, and a contact dock.
   --u is one pixel of a 1280x800 reference screen and scales with the viewport; --t is the type unit. */
.hx {
  --u: clamp(0.68px, min(100vw / 1280, 100vh / 800), 1.72px);
  --u: clamp(0.68px, min(100vw / 1280, 100dvh / 800), 1.72px);
  --t: var(--u);
  --hx-line: rgba(244, 239, 232, .16);
  --hair: max(1px, calc(1 * var(--u)));
  --e-mask: cubic-bezier(.16, 1, .3, 1);
  --e-line: cubic-bezier(.65, 0, .35, 1);
  --e-soft: cubic-bezier(.22, .61, .36, 1);
  position: relative; height: 100svh; min-height: 600px; overflow: hidden;
  background: var(--ink); color: var(--cream); perspective: 1600px;
}
.hx-bg { position: absolute; inset: -4%; will-change: transform; transform-origin: 50% 50%; backface-visibility: hidden; }
.hx-scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; overflow: hidden; }
.hx-scene.on { opacity: 1; }
.hx-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: var(--pos, 50% 50%); animation: hx-drift 30s ease-in-out infinite alternate; }
@keyframes hx-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.15) translate3d(var(--kx, -2%), var(--ky, -1%), 0); } }
/* the photographs are daylight: dim the scene a little, grade toward ink at the edges and under the copy */
.hx-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(23,18,13,.7) 0%, rgba(23,18,13,.22) 16%, rgba(23,18,13,0) 30%, rgba(23,18,13,.32) 48%, rgba(23,18,13,.8) 68%, rgba(23,18,13,.93) 100%),
    linear-gradient(to right, rgba(23,18,13,.78) 0%, rgba(23,18,13,.45) 14%, rgba(23,18,13,0) 30%),
    radial-gradient(ellipse at 50% 40%, rgba(23,18,13,0) 45%, rgba(23,18,13,.45) 100%),
    rgba(23,18,13,.22); }

/* frame: hairline with chamfered corners, starting under the site header */
.hx-frame { position: absolute; left: calc(30 * var(--u)); right: calc(30 * var(--u)); top: calc(var(--header-h) + 4px); bottom: calc(31 * var(--u)); }
.hx-ln { position: absolute; background: var(--hx-line); }
.hx-ln-t { left: calc(26 * var(--u)); right: calc(26 * var(--u)); top: 0; height: var(--hair); }
.hx-ln-b { left: calc(26 * var(--u)); right: calc(26 * var(--u)); bottom: 0; height: var(--hair); }
.hx-ln-l { top: calc(26 * var(--u)); bottom: calc(26 * var(--u)); left: 0; width: var(--hair); }
.hx-ln-r { top: calc(26 * var(--u)); bottom: calc(26 * var(--u)); right: 0; width: var(--hair); }
.hx-cn { position: absolute; width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.hx-cn-tl, .hx-cn-br { background: linear-gradient(to bottom right, transparent calc(50% - .65px), var(--hx-line) calc(50% - .65px), var(--hx-line) calc(50% + .65px), transparent calc(50% + .65px)); }
.hx-cn-tr, .hx-cn-bl { background: linear-gradient(to bottom left, transparent calc(50% - .65px), var(--hx-line) calc(50% - .65px), var(--hx-line) calc(50% + .65px), transparent calc(50% + .65px)); }
.hx-cn-tl { left: 0; top: 0; } .hx-cn-tr { right: 0; top: 0; } .hx-cn-bl { left: 0; bottom: 0; } .hx-cn-br { right: 0; bottom: 0; }

.hx-lbl { font: 500 calc(10 * var(--t))/1 var(--text); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hx-t { position: relative; display: inline-block; text-align: left; white-space: pre; }

/* chapter rail */
.hx-index { position: absolute; left: calc(12 * var(--t)); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; z-index: 2; }
.hx-index li { height: calc(27 * var(--t)); display: flex; align-items: center; position: relative; }
.hx-index a { font: 500 calc(10 * var(--t))/1 var(--text); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: rgba(244, 239, 232, .56); transition: color .3s ease; }
.hx-index a:hover, .hx-index .on a { color: var(--cream); }
.hx-index .on::before { content: ""; position: absolute; left: calc(-14 * var(--t)); top: 50%; width: calc(7 * var(--t)); height: calc(7 * var(--t)); transform: translateY(-50%); background: var(--terra); }

/* copy */
.hx-copy { position: absolute; left: 0; right: 0; bottom: max(10%, calc(66 * var(--t))); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hx-where { margin: 0 0 calc(14 * var(--t)); font: 400 calc(11.5 * var(--t))/1.3 var(--text); letter-spacing: .02em; color: var(--sand); }
.hx-title { margin: 0; font: 300 calc(62 * var(--t))/.98 var(--display); letter-spacing: -.01em; color: #fff; }
.hx-row { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-rise { display: block; }
.hx-blurb { margin: calc(16 * var(--t)) 0 0; font: 300 calc(12.5 * var(--t))/calc(21 * var(--t)) var(--text); color: rgba(244, 239, 232, .82); max-width: calc(480 * var(--t)); }
.hx-cta { margin-top: calc(24 * var(--t)); position: relative; height: calc(42 * var(--t)); padding: 0 calc(22 * var(--t));
  display: flex; align-items: center; justify-content: center; color: var(--cream); }
.hx-cta-glass { position: absolute; inset: 0; background: rgba(244, 239, 232, .05);
  -webkit-backdrop-filter: blur(calc(12 * var(--t))); backdrop-filter: blur(calc(12 * var(--t)));
  clip-path: polygon(calc(3 * var(--t)) 0, calc(100% - 10 * var(--t)) 0, 100% calc(10 * var(--t)), 100% calc(100% - 3 * var(--t)),
    calc(100% - 3 * var(--t)) 100%, calc(10 * var(--t)) 100%, 0 calc(100% - 10 * var(--t)), 0 calc(3 * var(--t)));
  transition: background .3s ease; }
.hx-cta:hover .hx-cta-glass { background: rgba(244, 239, 232, .11); }
.hx-cta-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-cta-edge path { fill: none; stroke: rgba(244, 239, 232, .22); stroke-width: 1; transition: stroke .3s ease; }
.hx-cta:hover .hx-cta-edge path { stroke: rgba(244, 239, 232, .48); }
.hx-cta-in { position: relative; display: flex; align-items: center; }
.hx-cta .hx-ico { width: calc(7 * var(--t)); height: calc(11 * var(--t)); fill: var(--terra); flex: none; margin-right: calc(9 * var(--t)); }
/* chapter change: headline drops into its mask, the rest settles out, swaps, returns */
.hx-rise { transition: transform .5s var(--e-mask); }
.hx-blurb, .hx-where, .hx-cta { transition: opacity .4s ease, transform .4s ease; }
.hx-swapping .hx-rise { transform: translateY(112%); }
.hx-swapping .hx-blurb, .hx-swapping .hx-where, .hx-swapping .hx-cta { opacity: 0; transform: translateY(calc(7 * var(--t))); }

/* dock */
.hx-dock { position: absolute; left: 0; right: 0; bottom: 0; height: calc(47 * var(--t)); }
.hx-rule { position: absolute; left: 0; right: 0; top: 0; height: var(--hair); background: var(--hx-line); }
.hx-div { position: absolute; top: 0; bottom: 0; width: var(--hair); background: rgba(244, 239, 232, .2); }
.hx-div-l { left: calc(262 * var(--t)); }
.hx-div-r { right: calc(150 * var(--t)); }
.hx-dock a { display: flex; align-items: center; color: rgba(244, 239, 232, .84); transition: color .3s ease; }
.hx-dock a:hover { color: #fff; }
.hx-dock .hx-ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hx-call { position: absolute; left: calc(26 * var(--t)); top: 0; bottom: 0; }
.hx-call .hx-ico { width: calc(13 * var(--t)); height: calc(13 * var(--t)); margin-right: calc(10 * var(--t)); }
.hx-all { position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; }
.hx-all .hx-ico { width: calc(9 * var(--t)); height: calc(9 * var(--t)); margin-right: calc(10 * var(--t)); fill: currentColor; stroke: none; }
.hx-wa { position: absolute; right: calc(24 * var(--t)); top: 0; bottom: 0; }
.hx-wa .hx-ico { width: calc(16 * var(--t)); height: calc(15 * var(--t)); margin-left: calc(11 * var(--t)); }
.hx a:focus-visible { outline: calc(1.5 * var(--t)) solid var(--sand); outline-offset: calc(3 * var(--t)); }

/* entrance: once per visit */
@keyframes hx-drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hx-drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hx-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-maskUp { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes hx-settle { from { opacity: 0; transform: translateY(calc(7 * var(--t))); } to { opacity: 1; transform: none; } }
@keyframes hx-settleC { from { opacity: 0; transform: translate(-50%, calc(7 * var(--t))); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes hx-markIn { from { transform: translateY(-50%) scaleX(0); } to { transform: translateY(-50%) scaleX(1); } }
.hx-anim .hx-ln-t { transform-origin: left center; animation: hx-drawX .5s var(--e-line) .04s both; }
.hx-anim .hx-ln-l { transform-origin: center top; animation: hx-drawY .5s var(--e-line) .04s both; }
.hx-anim .hx-ln-b { transform-origin: right center; animation: hx-drawX .5s var(--e-line) .2s both; }
.hx-anim .hx-ln-r { transform-origin: center bottom; animation: hx-drawY .5s var(--e-line) .2s both; }
.hx-anim .hx-cn { animation: hx-fadeIn .3s linear .55s both; }
.hx-anim .hx-rise { animation: hx-maskUp .9s var(--e-mask) both; }
.hx-anim .hx-row:first-child .hx-rise { animation-delay: .42s; }
.hx-anim .hx-row + .hx-row .hx-rise { animation-delay: .52s; }
.hx-anim .hx-where { animation: hx-fadeIn .5s linear .38s both; }
.hx-anim .hx-index { animation: hx-fadeIn .45s linear .6s both; }
.hx-anim .hx-index .on::before { animation: hx-markIn .42s var(--e-soft) .64s both; }
.hx-anim .hx-blurb { animation: hx-settle .72s var(--e-soft) .7s both; }
.hx-anim .hx-cta { animation: hx-settle .62s var(--e-soft) .86s both; }
.hx-anim .hx-rule { transform-origin: left center; animation: hx-drawX .52s var(--e-line) .92s both; }
.hx-anim .hx-div { transform-origin: center top; animation: hx-drawY .36s var(--e-line) 1.06s both; }
.hx-anim .hx-call { animation: hx-settle .52s var(--e-soft) .96s both; }
.hx-anim .hx-all { animation: hx-settleC .52s var(--e-soft) 1.02s both; }
.hx-anim .hx-wa { animation: hx-settle .52s var(--e-soft) 1.08s both; }
@media (prefers-reduced-motion: reduce) { .hx *, .hx *::before { transition: none !important; animation: none !important; } }

/* tablet: type stops shrinking, the dock sizes to its content */
@media (max-width: 1152px) {
  .hx {
    --u: clamp(.8px, min(100vw / 1280, 100vh / 800), 1.1px);
    --u: clamp(.8px, min(100vw / 1280, 100dvh / 800), 1.1px);
    --t: max(var(--u), clamp(.9px, calc(.9px + (1152px - 100vw) * .00042), 1.12px));
  }
  .hx-dock { display: flex; justify-content: space-between; align-items: stretch; }
  .hx-div { display: none; }
  .hx-call, .hx-wa { position: static; }
  .hx-call { padding: 0 min(calc(20 * var(--t)), 5vw) 0 min(calc(26 * var(--t)), 6vw); border-right: var(--hair) solid rgba(244, 239, 232, .2); }
  .hx-wa { padding: 0 min(calc(24 * var(--t)), 6vw) 0 min(calc(20 * var(--t)), 5vw); border-left: var(--hair) solid rgba(244, 239, 232, .2); }
  .hx-index a { padding: calc(7 * var(--t)) 0; }
}
@media (max-width: 1152px) and (min-aspect-ratio: 6/5) { .hx-copy { padding-inline: calc(150 * var(--t)); } }
@media (max-width: 1152px) and (max-aspect-ratio: 6/5) { .hx-index { top: 30%; } .hx-copy { padding-inline: calc(22 * var(--t)); } }

/* phones: the site's own contact bar takes the dock's place */
@media (max-width: 760px) {
  .hx { height: calc(100svh - 58px - env(safe-area-inset-bottom)); min-height: 540px; }
  .hx-dock { display: none; }
  .hx-frame { bottom: calc(18 * var(--u)); }
  .hx-copy { bottom: max(7%, calc(40 * var(--t))); }
}
@media (max-width: 548px) {
  .hx {
    --u: clamp(.62px, min(100vw / 500, 100vh / 820), 1.1px);
    --u: clamp(.62px, min(100vw / 500, 100dvh / 820), 1.1px);
    --t: clamp(1.06px, calc(100vw / 489), 1.12px);
  }
  .hx-frame { left: calc(18 * var(--u)); right: calc(18 * var(--u)); }
  .hx-index { top: calc(14 * var(--t)); transform: none; left: calc(26 * var(--t)); }
  .hx-index li { height: calc(23 * var(--t)); }
  .hx-index a { padding: calc(5 * var(--t)) 0; }
  .hx-copy { padding-inline: calc(18 * var(--t)); }
  .hx-title { font-size: calc(44 * var(--t)); text-wrap: balance; }
  .hx-blurb { max-width: calc(400 * var(--t)); }
  .hx-blurb br { display: none; }
  .hx-row, .hx-rise { display: inline; overflow: visible; }
  .hx-anim .hx-rise { animation: none; }
  .hx-anim .hx-title { animation: hx-settle .8s var(--e-mask) .42s both; }
  .hx-title { transition: opacity .4s ease; }
  .hx-swapping .hx-title { opacity: 0; }
}
@media (max-height: 600px) { .hx-blurb { display: none; } }
/* phones held sideways: short and wide. The hero fits the screen; the rail steps aside so the copy has room. */
@media (max-height: 500px) and (min-width: 561px) {
  .hx { min-height: 0; height: 100svh; }
  .hx-index { display: none; }
  .hx-title { font-size: calc(38 * var(--t)); }
  .hx-where { margin-bottom: calc(8 * var(--t)); }
  .hx-cta { margin-top: calc(14 * var(--t)); }
  .hx-copy { bottom: calc(60 * var(--t)); }
}

/* ---------- Logo reveal: first visit to the home page only ----------
   The brackets draw, the beam snaps in with a glow, the name rises, then the brackets split apart
   like doors and pull the dark screen open onto the hero. Skippable; off under reduced motion;
   clears itself after 6 s if the script never runs. Replay any time with /?intro */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 200; cursor: pointer;
  --ih: clamp(110px, 22vh, 210px);
  animation: intro-failsafe 0s linear 6s forwards; }
html.intro-on body { overflow: hidden; }
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.intro-half { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--ink); overflow: visible; }
.intro-half.l { left: 0; background: linear-gradient(to right, #120e0a, #201811); }
.intro-half.r { right: 0; background: linear-gradient(to left, #120e0a, #201811); }
.intro-br { position: absolute; top: 50%; height: var(--ih); width: calc(var(--ih) * 24 / 92); transform: translateY(-50%); overflow: visible; }
.intro-half.l .intro-br { right: calc(.5vw + var(--ih) * .066); }
.intro-half.r .intro-br { left: calc(.5vw + var(--ih) * .066); }
.intro-br path { fill: none; stroke: var(--cream); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro.run .intro-br path { animation: intro-draw .8s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
.intro-beam { position: absolute; left: 50%; top: 50%; width: calc(var(--ih) * .152); height: calc(var(--ih) * .087);
  margin: calc(var(--ih) * -.0435) 0 0 calc(var(--ih) * -.076); background: var(--terra); transform: scaleX(0); }
.intro.run .intro-beam { animation: intro-beam .45s cubic-bezier(.16, 1, .3, 1) .78s forwards, intro-glow 1.3s ease-out .8s both; }
@keyframes intro-beam { to { transform: scaleX(1); } }
@keyframes intro-glow {
  0% { box-shadow: 0 0 0 0 rgba(184, 92, 60, 0); }
  22% { box-shadow: 0 0 calc(var(--ih) * .55) calc(var(--ih) * .1) rgba(184, 92, 60, .6); }
  100% { box-shadow: 0 0 calc(var(--ih) * .3) 0 rgba(184, 92, 60, .2); }
}
.intro-word { position: absolute; left: 0; right: 0; top: calc(50% + var(--ih) / 2 + clamp(22px, 4.5vh, 44px)); text-align: center; color: var(--cream); }
.intro-name { display: inline-flex; font: 300 clamp(34px, 4.6vw, 60px)/1 var(--text); letter-spacing: -.03em; overflow: hidden; padding-bottom: .1em; }
.intro-name > span { display: inline-block; transform: translateY(115%); }
.intro-name i { font-style: normal; color: var(--terra); }
.intro.run .intro-name > span { animation: intro-up .7s cubic-bezier(.16, 1, .3, 1) .85s both; }
.intro.run .intro-name > span:nth-child(2) { animation-delay: .89s; } .intro.run .intro-name > span:nth-child(3) { animation-delay: .93s; }
.intro.run .intro-name > span:nth-child(4) { animation-delay: .97s; } .intro.run .intro-name > span:nth-child(5) { animation-delay: 1.01s; } .intro.run .intro-name > span:nth-child(6) { animation-delay: 1.05s; }
@keyframes intro-up { to { transform: translateY(0); } }
.intro-sub { display: block; margin-top: clamp(10px, 1.6vh, 16px); padding-left: .52em; font: 500 clamp(10px, .9vw, 12.5px)/1 var(--text); letter-spacing: 1.6em; color: var(--sand); opacity: 0; }
.intro.run .intro-sub { animation: intro-track 1.1s cubic-bezier(.16, 1, .3, 1) 1.05s forwards; }
@keyframes intro-track { to { letter-spacing: .52em; opacity: .85; } }
/* the doors open */
.intro.out { pointer-events: none; }
.intro.out .intro-half.l { animation: intro-door-l 1s cubic-bezier(.76, 0, .18, 1) forwards; }
.intro.out .intro-half.r { animation: intro-door-r 1s cubic-bezier(.76, 0, .18, 1) forwards; }
.intro.out .intro-word { animation: intro-leave .35s ease forwards; }
.intro.out .intro-beam { animation: intro-fade .25s ease forwards; }
@keyframes intro-door-l { to { transform: translateX(-100%); } }
@keyframes intro-door-r { to { transform: translateX(100%); } }
@keyframes intro-leave { to { opacity: 0; transform: translateY(-12px); } }
@keyframes intro-fade { to { opacity: 0; } }
/* the house brightens and settles behind the doors */
.hx-reveal .hx-scene { animation: hx-reveal 1.7s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hx-reveal { from { transform: scale(1.12); filter: brightness(.5); } to { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }
@media print { .intro { display: none !important; } }

/* ---------- Service areas ---------- */
.areas-all { font-size: clamp(26px, 3.2vw, 46px); gap: 6px clamp(16px, 2.4vw, 36px); }
.areas-all span:last-child { color: inherit; }
.areas-all a { text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: .14em; }
.areas-all a:hover { color: var(--terra-ink); }
.areas-all span:last-child a { font: 500 15px/1 var(--text); text-decoration-color: var(--terra); align-self: center; }
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px); }
.region { border-top: 1px solid var(--ink); padding-top: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.region .h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 14px; }
.region ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.region li { font: 300 clamp(22px, 1.9vw, 28px)/1.4 var(--display); }
.region a { text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: .16em; }
.region a:hover { color: var(--terra-ink); }
.regions-note { margin-top: clamp(40px, 5vw, 64px); max-width: 62ch; }
.regions-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--terra); text-underline-offset: 3px; }
.info-list .link { justify-self: start; }
.info-list strong { font-weight: 500; color: var(--ink); }
.info-list p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--terra); text-underline-offset: 3px; }
.area-photo { margin: 0; background: var(--ink); color: var(--on-dark-muted); }
.area-photo img { width: 100%; height: clamp(320px, 62vh, 720px); object-fit: cover; display: block; }
.area-photo figcaption { padding-block: 14px; font-size: 14px; }
.area-know { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.area-know > .h1 { font-size: clamp(36px, 4vw, 60px); position: sticky; top: calc(var(--header-h) + 32px); }
.area-know .info-list h3 { font: 400 26px/1.15 var(--display); margin-bottom: 10px; }
.area-know .faq-group, .area-know .regions-note { grid-column: 2; }
.area-know .regions-note { margin-top: 0; }
@media (max-width: 860px) {
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-know { grid-template-columns: 1fr; }
  .area-know > .h1 { position: static; }
  .area-know .faq-group, .area-know .regions-note { grid-column: auto; }
}
@media (max-width: 520px) { .regions { grid-template-columns: 1fr; } }

/* ---------- Journal: cost chart, expandable table, FAQ, topic tags ---------- */
.cost-bars { margin: 2em 0 1.2em; }
.cost-bars figcaption { font-size: 14px; color: var(--on-light-muted); margin-bottom: 10px; }
.cost-bars table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cost-bars th, .cost-bars td { padding: 14px 0; border-bottom: 1px solid var(--on-light-line); vertical-align: top; text-align: left; }
.cost-bars tbody th { font-weight: 500; }
.cost-bars th small { display: block; font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--on-light-muted); margin-top: 3px; }
.cost-bars .bar { display: block; height: 10px; background: var(--terra); min-width: 4px; margin-top: 10px; }
.cost-bars .num { text-align: right; white-space: nowrap; padding-left: 20px; font-variant-numeric: tabular-nums; }
.cost-bars .num small { display: block; font-size: 13px; color: var(--on-light-muted); margin-top: 3px; }
.cost-bars tfoot th, .cost-bars tfoot td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 500; font-size: 17px; }
.prose tfoot th, .prose tfoot td { font-weight: 500; border-top: 1px solid var(--ink); border-bottom: 0; }
.prose td:last-child { font-variant-numeric: tabular-nums; }
.post-details { margin: 0 0 2em; border-top: 1px solid var(--on-light-line); border-bottom: 1px solid var(--on-light-line); }
.post-details summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.post-details summary::-webkit-details-marker { display: none; }
.post-details summary::after { content: '+'; font: 200 26px/1 var(--text); color: var(--bronze); transition: transform .3s var(--ease); }
.post-details[open] summary::after { transform: rotate(45deg); }
.post-details .table-wrap { margin-top: 0; }
.post-details td:nth-child(2), .post-details th:nth-child(2) { text-align: right; padding-right: 20px; }
.post-faq { margin: 1em 0 2em; }
.post-faq summary { font-size: 17px; }
.post-faq details p { padding-right: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--bronze); margin: 1.4em 0 0; }
@media (max-width: 600px) {
  .cost-bars tbody th, .cost-bars .num { font-size: 15px; }

}
@media print { .post-details { display: block; } .post-details > *:not(summary) { display: block !important; } }

/* long words and links wrap instead of widening the column */
.prose { overflow-wrap: break-word; }
