/* ==========================================================================
   Tattoo Malaysia — shared stylesheet
   Dark studio palette: ink, bone, one gold accent. Fine-line motifs.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric-matched fallbacks keep layout stable while the web fonts load */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 89%; ascent-override: 103.8%; descent-override: 32.2%; line-gap-override: 0%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 103.1%; ascent-override: 103.4%; descent-override: 29.1%; line-gap-override: 0%; }

:root {
  --ink: #0c0b0a;
  --ink-2: #161412;
  --ink-3: #1f1c19;
  --line: #2e2a25;
  --line-2: #433d35;
  --bone: #eee7d8;
  --bone-2: #b8af9e;
  --bone-3: #8f8778;
  --gold: #c9a227;
  --gold-2: #e2c25e;
  --gold-ink: #1a1405;
  --warn: #e0866f;

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Manrope", "Manrope Fallback", Arial, sans-serif;

  --wrap: 1200px;
  --measure: 70ch;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .035;
  will-change: transform;
  transform: translateZ(0);
  background-image: url("/assets/images/grain.png");
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--gold-ink); }

h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--bone); margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 1.7rem + 2.2vw, 3.4rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 1.5rem + 1.4vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1.15em; }
strong { color: var(--bone); font-weight: 700; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--gold-ink); padding: .6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 10, .97);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--bone); text-decoration: none; flex-shrink: 0; }
.logo svg { width: 170px; height: 34px; }
.logo:hover { color: var(--bone); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--bone);
  border-radius: var(--radius); padding: .5rem .7rem; font: 600 .9rem var(--sans); cursor: pointer; min-height: 44px;
}
.nav-toggle-bars { display: inline-block; width: 18px; height: 12px; position: relative; margin-right: .5rem; vertical-align: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 1.6vw, 1.7rem); }
.site-nav a {
  position: relative; color: var(--bone-2); text-decoration: none; font-size: .95rem; font-weight: 600; padding: .4rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a.is-section { color: var(--bone); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after, .site-nav a.is-section::after { transform: scaleX(1); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--ink); border-bottom: 1px solid var(--line);
    display: none; padding: .5rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  @media (scripting: none) { .site-nav { position: static; display: block; } }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--ink-2); font-size: .85rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--bone-3); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--line-2); }
.breadcrumb a { color: var(--bone-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-2); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--bone-2); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 22ch; }
.page-head .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--bone-2); max-width: 60ch; margin: 1.25rem 0 0; line-height: 1.6; }
.page-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.5rem; color: var(--bone-3); font-size: .875rem; }
.page-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.page-meta svg { width: 14px; height: 14px; color: var(--gold); }
.page-head .motif { position: absolute; right: calc(var(--gutter) * -1); top: -10px; width: clamp(160px, 26vw, 320px); color: var(--gold); opacity: .55; pointer-events: none; }
@media (max-width: 720px) { .page-head .motif { opacity: .18; right: -40px; } }

.page-hero { margin: 0 0 2.5rem; }
.page-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--ink-3); }
@media (min-width: 900px) { .page-hero img { aspect-ratio: 21 / 9; } }

/* ---------- Article layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-bottom: 4rem; }
@media (min-width: 1080px) {
  .layout.has-toc { grid-template-columns: minmax(0, 1fr) 260px; }
}
.prose { max-width: var(--measure); min-width: 0; }
.prose > h2 { margin: 3.2rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 2.2rem 0 .7rem; }
.prose h4 { margin: 1.6rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--bone); }
.prose figure { margin: 2.2rem 0; }
.prose figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--ink-3); }
figcaption { font-size: .85rem; color: var(--bone-3); margin-top: .6rem; }

/* TOC */
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .9rem; border-left: 1px solid var(--line); padding-left: 1.25rem; }
.toc h2 { font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--bone); margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0 0 .55rem; }
.toc a { color: var(--bone-3); text-decoration: none; display: block; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--gold-2); }
.toc-inline { display: block; margin: 0 0 2.5rem; border: 1px solid var(--line); border-left: 2px solid var(--gold); background: var(--ink-2); padding: 1rem 1.25rem; border-radius: var(--radius); }
.toc-inline summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.toc-inline[open] summary::after { content: "–"; }
.toc-inline ol { margin: .8rem 0 0; padding-left: 1.2rem; }
.toc-inline li { margin-bottom: .35rem; }
.toc-inline a { color: var(--bone-2); text-decoration: none; }
.toc-inline a:hover { color: var(--gold-2); }
@media (min-width: 1080px) { .toc-inline { display: none; } }
@media (max-width: 1079px) { .toc { display: none; } }

/* ---------- Callouts ---------- */
.quick-answer {
  position: relative; margin: 0 0 2.5rem; padding: 1.4rem 1.5rem 1.3rem 1.5rem;
  background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.quick-answer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--gold-2); margin: 0 0 .5rem; letter-spacing: .01em; border: 0; padding: 0; }
.quick-answer p:last-child, .quick-answer ul:last-child { margin-bottom: 0; }
.callout { margin: 2rem 0; padding: 1.1rem 1.3rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; font-weight: 700; color: var(--bone); margin-bottom: .35rem; }
.callout.warn { border-color: rgba(224, 134, 111, .45); }
.callout.warn .callout-title { color: var(--warn); }
.callout.tip .callout-title { color: var(--gold-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.8rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
caption { text-align: left; padding: .8rem 1rem; color: var(--bone-2); font-size: .85rem; border-bottom: 1px solid var(--line); caption-side: top; }
th, td { text-align: left; padding: .75rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink-3); color: var(--bone); font-weight: 700; font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody th { font-weight: 600; color: var(--bone); }

/* ---------- Studio listings ---------- */
.studio-list { counter-reset: studio; margin: 2rem 0; display: grid; gap: 1.25rem; }
.studio {
  counter-increment: studio; position: relative;
  padding: 1.4rem 1.5rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.studio h3 { margin: 0 0 .7rem; display: flex; align-items: baseline; gap: .7rem; padding-right: 0; }
.studio-list.ranked .studio h3::before { content: counter(studio); font-family: var(--serif); font-size: 1rem; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transform: translateY(-2px); }
.studio-meta { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 .9rem; font-size: .92rem; }
.studio-meta dt { color: var(--bone-3); }
.studio-meta dd { margin: 0; color: var(--bone); }
.studio p { font-size: .98rem; }
.studio p:last-child { margin-bottom: 0; }
.studio-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .92rem; font-weight: 600; }
@media (max-width: 480px) { .studio-meta { grid-template-columns: 1fr; gap: 0; } .studio-meta dd { margin-bottom: .45rem; } }

.tier { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border: 1px solid var(--line-2); border-radius: 99px; color: var(--bone-2); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { margin: 3.2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.faq > h2 { margin: 0 0 1.2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; position: relative;
  font-weight: 700; color: var(--bone); line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.45rem; width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq summary:hover { color: var(--gold-2); }
.faq .answer { padding: 0 0 1.1rem; color: var(--bone-2); }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- Cards & grids ---------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 2rem 0; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--bone);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s ease;
}
.card:hover { border-color: var(--gold); color: var(--bone); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink-3); }
.card-body { padding: 1rem 1.15rem 1.2rem; }
.card h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--bone-2); font-size: .93rem; line-height: 1.55; }
.card-grid.text-only .card { padding: 0; }

.link-list { list-style: none; padding: 0 !important; margin: 1.5rem 0 2rem; display: grid; gap: 0; }
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list li:first-child { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; text-decoration: none; color: var(--bone); font-weight: 600; }
.link-list a span { color: var(--bone-3); font-weight: 400; font-size: .92rem; text-align: right; }
.link-list a:hover { color: var(--gold-2); }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; padding: 0 !important; margin: 1.4rem 0 2rem; }
.pill-list li { margin: 0; }
.pill-list a {
  display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line-2); border-radius: 99px;
  color: var(--bone); text-decoration: none; font-size: .92rem; font-weight: 600; min-height: 40px;
}
.pill-list a:hover { border-color: var(--gold); color: var(--gold-2); }

.related { margin: 3.2rem 0 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.related h2 { font-size: 1.6rem; margin: 0 0 .8rem; border: 0; padding: 0; }
.related ul { margin: 0; padding-left: 1.2rem; }
.related li { margin-bottom: .45rem; }

.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 1.8rem 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.2rem; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-2); font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steps > li::after { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: .2rem; width: 1px; background: var(--line-2); }
.steps > li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: .2rem; }

.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 1.8rem 0; }
.pros-cons > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--ink-2); }
.pros-cons h3, .pros-cons h4 { margin-top: 0; font-size: 1.2rem; }
.pros-cons ul { margin: .6rem 0 0; }

.figure-svg { margin: 2.2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.figure-svg svg { margin-inline: auto; }

/* Price scale bar */
.scale { display: grid; gap: .65rem; margin: 1.8rem 0; }
.scale-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: .9rem; align-items: center; font-size: .92rem; }
.scale-bar { position: relative; height: 10px; background: var(--ink-3); border-radius: 99px; }
.scale-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(201,162,39,.55), var(--gold)); }
.scale-row b { font-weight: 600; color: var(--bone); }
.scale-row small { display: block; color: var(--bone-3); }
@media (max-width: 520px) { .scale-row { grid-template-columns: 1fr; gap: .3rem; } }

/* Style gallery */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 1rem; margin: 2rem 0; }
.style-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: var(--ink-2); text-decoration: none; color: var(--bone); display: block; }
.style-tile svg { width: 56px; height: 56px; color: var(--gold); margin-bottom: .8rem; }
.style-tile h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.style-tile p { font-size: .9rem; color: var(--bone-2); margin: 0; line-height: 1.5; }
a.style-tile:hover { border-color: var(--gold); color: var(--bone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .8rem 1.5rem; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--gold); transition: background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-2); color: var(--gold-ink); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--bone-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Home ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -8% 0 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,11,10,.55) 0%, rgba(12,11,10,.35) 35%, rgba(12,11,10,.92) 82%, var(--ink) 100%),
    linear-gradient(90deg, rgba(12,11,10,.85) 0%, rgba(12,11,10,.2) 70%);
}
.hero .wrap { padding-block: clamp(6rem, 14vh, 9rem) clamp(3rem, 8vh, 5rem); position: relative; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.8rem); font-weight: 500; max-width: 14ch; line-height: 1.02; }
.hero h1 .h1-sub { display: block; font-size: .42em; line-height: 1.25; margin-top: .9rem; color: var(--bone-2); font-weight: 500; max-width: 26ch; letter-spacing: 0; }
.hero p.lead { max-width: 54ch; color: var(--bone-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-rosette { position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vh, 5rem); width: clamp(180px, 24vw, 340px); color: var(--gold); opacity: .9; }
@media (max-width: 860px) { .hero-rosette { opacity: .22; top: 5rem; bottom: auto; right: -30px; } }
.draw.animate path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6,.1,.3,1) .2s forwards; }
.draw.animate > path:nth-child(2n) { animation-delay: .35s; }
.draw.animate > path:nth-child(3n) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.stats { border-block: 1px solid var(--line); background: var(--ink-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 1.6rem 1rem 1.5rem 0; contain: layout paint; }
.stat b { min-height: 1em; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); line-height: 1; color: var(--gold-2); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.stat span { color: var(--bone-2); font-size: .92rem; }
@media (max-width: 640px) { .stat:nth-child(odd) { padding-left: 0; border-left: 0; } .stat { padding-left: 1rem !important; } .stat:nth-child(odd) { padding-left: 0 !important; } }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.2rem; max-width: 62ch; }
.section-head p { color: var(--bone-2); margin: 0; font-size: 1.08rem; }
.section-head .motif-sm { width: 42px; height: 42px; color: var(--gold); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split .prose { max-width: 60ch; }
.split .prose > h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.section .prose > .faq:first-child { margin-top: 0; }

.banner { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 10vw, 7rem) 0; }
.banner-media { position: absolute; inset: -12% 0; z-index: -2; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,11,10,.94) 0%, rgba(12,11,10,.7) 60%, rgba(12,11,10,.5) 100%); }
.banner h2 { max-width: 20ch; }
.banner p { max-width: 55ch; color: var(--bone-2); margin: 1rem 0 1.8rem; }

.price-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin: 2rem 0; }
.price-strip > div { padding: 1.3rem 1.3rem 1.2rem; border-right: 1px solid var(--line); }
.price-strip > div:last-child { border-right: 0; }
.price-strip b { display: block; font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1.9rem; color: var(--bone); font-weight: 600; line-height: 1.1; }
.price-strip span { color: var(--bone-2); font-size: .92rem; }
@media (max-width: 720px) { .price-strip > div { border-right: 0; border-bottom: 1px solid var(--line); } .price-strip > div:last-child { border-bottom: 0; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 3.5rem 0 2rem; margin-top: 2rem; font-size: .92rem; }
.footer-top { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: flex-end; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-brand p { margin: .7rem 0 0; max-width: 52ch; color: var(--bone-2); }
.site-footer h2 { font-family: var(--sans); font-size: .9rem; font-weight: 700; color: var(--bone); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .5rem; }
.site-footer a { color: var(--bone-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; color: var(--bone-3); font-size: .85rem; }
.footer-bottom p { margin: 0; max-width: 70ch; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 0; margin: 1rem 0 3rem; }
.post-item { display: grid; gap: .4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--bone); }
.post-item:first-child { border-top: 1px solid var(--line); }
.post-item h2, .post-item h3 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.9rem); }
.post-item p { margin: 0; color: var(--bone-2); }
.post-item small { color: var(--bone-3); }
.post-item:hover h2, .post-item:hover h3 { color: var(--gold-2); }
@media (min-width: 800px) {
  .post-item.has-img { grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: center; }
  .post-item.has-img img { grid-row: span 3; }
}
.post-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- 404 ---------- */
.notfound { padding: clamp(4rem, 12vw, 8rem) 0; }
.notfound h1 { max-width: 14ch; }
.notfound p { color: var(--bone-2); max-width: 55ch; margin-top: 1.2rem; }

/* ---------- Motion ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .draw.animate path { stroke-dashoffset: 0; animation: none; }
}

@media print {
  body::before, .site-header, .site-footer, .toc, .toc-inline, .breadcrumb, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, h1, h2, h3, strong { color: #000; }
}

/* ---------- Rendering performance ---------- */
.section, .banner, .site-footer, .faq, .related { content-visibility: auto; contain-intrinsic-size: auto 700px; }
