/* Taç Halı: a quiet showroom. Limewash walls, ink type, one bordo accent.
   The only loud thing on the site is the carpet itself. */
:root {
  --bg: #F3F3EF;
  --surface: #FBFBF8;
  --ink: #1A2238;
  --ink-2: #4B5266;
  --ink-3: #6E7486;
  --bordo: #8A1C2C;
  --line: #D9DAD2;
  --wa: #157F3B;
  --wa-hover: #0F6930;
  --focus: #2F6FB0;

  --serif: "Spectral", Georgia, serif;
  --sans: "Albert Sans", "Segoe UI", system-ui, sans-serif;

  /* scale 1.25 from 17px */
  --t-xs: .8rem; --t-sm: .9rem; --t-base: 1.0625rem; --t-md: 1.33rem;
  --t-lg: 1.66rem; --t-xl: 2.07rem; --t-2xl: 2.6rem; --t-3xl: 3.24rem; --t-4xl: 4.05rem;

  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-base)/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bordo); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .7em 1.35em; border-radius: var(--r);
  font: 600 var(--t-base)/1.1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn .ic { width: 1.3em; height: 1.3em; }
.btn-sm { min-height: 42px; padding: .5em 1em; font-size: var(--t-sm); }
.btn-lg { min-height: 60px; padding: .8em 1.6em; font-size: var(--t-md); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--bordo); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.link-strong { font-weight: 600; text-decoration: underline; text-decoration-color: var(--bordo); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-strong:hover { color: var(--bordo); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: var(--r); text-decoration: none; }
.icon-btn .ic { width: 22px; height: 22px; }
.h-section { font-size: clamp(var(--t-xl), 3.4vw, var(--t-3xl)); margin-bottom: .6em; }

/* ---------- header ---------- */
.site-header { background: rgba(243, 243, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { width: 96px; }
.menu-btn { display: none; }
.mainnav { flex: 1; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.mainnav > ul > li > a, .mainnav summary { display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; border-radius: var(--r); }
.mainnav summary::-webkit-details-marker { display: none; }
.mainnav > ul > li > a:hover, .mainnav summary:hover { color: var(--bordo); }
.mainnav a[aria-current="page"] { color: var(--bordo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.has-more { position: relative; }
.has-more details[open] summary .ic { transform: rotate(180deg); }
.more-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 240px; background: var(--surface); border: 1px solid var(--line); padding: 6px !important; display: block !important; box-shadow: 0 14px 34px rgba(26, 34, 56, .12); }
.more-menu a { display: block; padding: 9px 12px; text-decoration: none; }
.more-menu a:hover { background: var(--bg); }
.more-sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.list-btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: var(--r); }
.list-btn:hover { background: var(--surface); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bordo); color: #fff; font-size: var(--t-xs); font-weight: 700; }
.count[data-zero] { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(26, 34, 56, .45); }
.drawer-panel { background: var(--bg); width: min(360px, 88vw); height: 100%; overflow-y: auto; padding: 16px 20px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head img { width: 84px; }
.search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-width: 640px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 13px 14px; font: inherit; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.search-drawer { margin-bottom: 8px; }
.drawer-nav { list-style: none; margin: 0 0 16px; padding: 0; }
.drawer-nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 var(--t-md)/1.2 var(--serif); }
.drawer-nav-sm a { font: 500 var(--t-base)/1.2 var(--sans); }

/* ---------- hero: one carpet on a limewashed wall ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 104px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.03em; font-weight: 500; margin-bottom: .42em; text-wrap: balance; }
.hero-lead { font-size: var(--t-md); line-height: 1.5; color: var(--ink-2); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 34px; }
.hero-phone { margin: 28px 0 0; color: var(--ink-3); font-size: var(--t-sm); }
.hero-phone a { color: var(--ink); font-weight: 600; }
.hero-rug { margin: 0; justify-self: center; width: min(100%, 430px); }
.rug-hang { filter: drop-shadow(0 22px 26px rgba(26, 34, 56, .22)); }
.seccade { display: block; width: 100%; height: auto; clip-path: inset(0 0 100% 0); animation: unroll 1.5s cubic-bezier(.55, .05, .25, 1) .25s forwards; }
@keyframes unroll { to { clip-path: inset(0 0 0 0); } }
.hero-rug figcaption { margin-top: 18px; font: italic 400 var(--t-sm)/1.5 var(--serif); color: var(--ink-3); max-width: 30em; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }

/* product group index: type does the work, the photo follows the pointer */
.index-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name count" "blurb blurb"; gap: 2px 20px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
.index-thumb { display: none; grid-area: thumb; }
.index-name { grid-area: name; font: 500 clamp(var(--t-lg), 3vw, var(--t-2xl))/1.1 var(--serif); letter-spacing: -.02em; transition: color .15s; }
.index-count { grid-area: count; align-self: center; font-size: var(--t-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.index-blurb { grid-area: blurb; color: var(--ink-2); max-width: 46em; }
.index a[data-active] .index-name, .index a:hover .index-name { color: var(--bordo); }
.index-more { margin: 22px 0 0; color: var(--ink-2); }
.index-more a { color: var(--ink); }
.index-preview { position: sticky; top: 110px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* real mosques: small photos, cropped clear of the watermark */
.works-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.works-copy p { font-size: var(--t-md); line-height: 1.5; color: var(--ink-2); max-width: 24em; }
.works-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 10px; }
.works-grid .w-tall { grid-row: span 2; }
.works-grid figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.works-grid img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 22%; }
.works-grid figcaption { padding-top: 6px; font-size: var(--t-xs); color: var(--ink-3); }

/* model swatches */
.models-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.models-head .h-section { margin: 0; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 8px 0 10px; font-weight: 600; cursor: pointer; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--bordo); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.more { margin: 40px 0 0; }

.card { position: relative; }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.card-img { aspect-ratio: 5 / 4; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-img img { transform: scale(1.03); }
.card-name { font: 500 var(--t-md)/1.25 var(--serif); }
.card-cat { font-size: var(--t-sm); color: var(--ink-3); }
.card-add { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(251, 251, 248, .94); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(26, 34, 56, .18); }
.card-add:hover { background: var(--ink); color: #fff; }
.card-add .ic { width: 20px; height: 20px; }
.card-add .ic-check { display: none; }
.card-add[data-in] { background: var(--bordo); color: #fff; }
.card-add[data-in] .ic-plus { display: none; }
.card-add[data-in] .ic-check { display: block; }

/* process: a real sequence, so it is numbered */
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-list li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 18px; }
.process-list li::before { content: counter(s); display: block; font: 400 var(--t-2xl)/1 var(--serif); color: var(--bordo); margin-bottom: 14px; }
.process-list h3 { font-size: var(--t-lg); margin-bottom: .35em; }
.process-list p { color: var(--ink-2); margin: 0; }

/* closing */
.closing { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
.closing-in { display: grid; gap: 32px; }
.closing-line { font: 500 clamp(2.2rem, 5.6vw, 4.8rem)/1 var(--serif); letter-spacing: -.03em; margin: 0; max-width: 14em; text-wrap: balance; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C2C7D3; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer-brand img { width: 128px; margin-bottom: 18px; }
.footer-brand p { max-width: 30em; }
.footer-title { font-size: var(--t-md); color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: #C2C7D3; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact li, .footer-contact a { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .ic { margin-top: 4px; }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 16px; }
.social a { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; font-size: var(--t-sm); }
.footer-base p { margin: 0; }
.footer-base a { color: #C2C7D3; }

.dock { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; z-index: 90; font-weight: 500; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(26, 34, 56, .3); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast a { color: #fff; font-weight: 700; }

/* ---------- inner pages ---------- */
.page-band { border-bottom: 1px solid var(--line); }
.page-band-in { padding-block: 36px 40px; }
.page-band h1 { font-size: clamp(var(--t-2xl), 5vw, var(--t-4xl)); letter-spacing: -.025em; margin: 0; }
.page-band p { margin: 12px 0 0; color: var(--ink-2); font-size: var(--t-md); max-width: 40em; }
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; font-size: var(--t-sm); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--ink-2); }

.subcats { list-style: none; margin: 0 0 32px; padding: 0 0 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.subcats a { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 40px; text-decoration: none; white-space: nowrap; font-weight: 500; background: var(--surface); }
.subcats a:hover { border-color: var(--ink); }
.subcats a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.subcats img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.subcats small { color: var(--ink-3); font-weight: 400; }
.subcats a[aria-current="page"] small { color: #C2C7D3; }
.listing-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.listing-head p { margin: 0; color: var(--ink-3); }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 48px 0 0; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-body { padding-block: 40px 88px; }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.4em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.3em; }
.prose h4 { font-size: var(--t-md); margin-top: 1.2em; }
.prose img { margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--bordo); color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.cat-desc[data-collapsed] .prose { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.text-btn { background: none; border: 0; padding: 8px 0; font-weight: 600; color: var(--bordo); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* product */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding-block: 24px 72px; align-items: start; }
.gallery-main { aspect-ratio: 5 / 4; background: var(--surface); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 84px; flex: none; }
.thumbs button[aria-current="true"] { border-color: var(--bordo); }
.thumbs img { aspect-ratio: 5/4; object-fit: cover; }
.buy { position: sticky; top: 100px; }
.buy h1 { font-size: clamp(var(--t-xl), 3.4vw, var(--t-3xl)); letter-spacing: -.025em; margin-bottom: 8px; }
.buy .brand { color: var(--ink-3); margin-bottom: 26px; }
.buy-box { border-top: 1px solid var(--ink); padding-top: 22px; }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field .hint { font-size: var(--t-sm); color: var(--ink-3); margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 40px; font-weight: 500; background: var(--surface); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty input { max-width: 160px; }
.qty .unit { font-weight: 600; }
.input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #B8BBB2; border-radius: var(--r); padding: 11px 12px; min-height: 48px; width: 100%; }
.input:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.buy-actions { display: grid; gap: 10px; }
.buy-actions .btn { width: 100%; }
.buy-note { font-size: var(--t-sm); color: var(--ink-3); margin: 14px 0 0; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 400; color: var(--ink-3); width: 45%; padding-right: 12px; }
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding-bottom: 80px; }
.detail h2 { font-size: var(--t-xl); }
.related { padding-block: 64px 88px; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--t-xl); margin-bottom: 28px; }

/* list page */
.list-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding-block: 36px 88px; align-items: start; }
.list-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.list-items:empty { display: none; }
.list-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-item img { width: 96px; aspect-ratio: 5/4; object-fit: cover; }
.list-item h3 { font: 500 var(--t-md)/1.25 var(--serif); margin: 0 0 8px; }
.list-item .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.list-item .row input { width: 110px; min-height: 40px; padding: 7px 10px; }
.list-item .row select { width: auto; min-height: 40px; padding: 7px 10px; }
.list-empty { border-top: 1px solid var(--ink); padding: 32px 0; }
.list-empty h2 { font-size: var(--t-lg); }
.form-card { background: var(--surface); border: 1px solid var(--line); padding: 26px; position: sticky; top: 100px; }
.form-card h2 { font-size: var(--t-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.req { color: var(--bordo); }
.consents { display: grid; gap: 12px; margin: 6px 0 20px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: var(--t-sm); line-height: 1.45; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bordo); cursor: pointer; }
.consent a { color: var(--bordo); font-weight: 600; }
.consents .withdraw { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.error { color: #B3261E; font-weight: 600; font-size: var(--t-sm); margin: 4px 0 12px; }

/* faq, contact, references, journal */
.faq { max-width: 860px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font: 500 var(--t-md)/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--bordo); font-size: 1.4em; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .prose { padding-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 40px 0; }
.contact-card { border-top: 1px solid var(--ink); padding-top: 16px; }
.contact-card h2 { font-size: var(--t-lg); }
.contact-card p { margin: 0 0 6px; }
.map { border: 0; width: 100%; height: 380px; filter: grayscale(.4); }
.iban { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.iban li { display: grid; }
.iban code { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.ref-group + .ref-group { margin-top: 64px; }
.ref-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 14px; }
.ref-grid figure { margin: 0; }
.ref-grid img { aspect-ratio: 4/3; object-fit: cover; object-position: 50% 20%; width: 100%; }
.ref-grid figcaption { padding-top: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.journal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.journal-grid a { display: block; text-decoration: none; }
.journal-grid img { aspect-ratio: 17 / 12; width: 100%; object-fit: cover; margin-bottom: 14px; }
.journal-grid span { font: 500 var(--t-md)/1.25 var(--serif); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .mainnav { display: none; }
  .menu-btn { display: inline-grid; margin-left: -10px; }
  .header-in { gap: 12px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-in { min-height: 64px; }
  .logo img { width: 76px; }
  .header-wa { display: none; }
  .hero-in, .index-in, .works-in, .product, .detail, .list-layout { grid-template-columns: 1fr; }
  .hero-rug { width: min(82%, 360px); }
  .index-preview { display: none; }
  .index a { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb name count" "thumb blurb blurb"; gap: 2px 16px; align-items: start; }
  .index-thumb { display: block; width: 72px; aspect-ratio: 1; object-fit: cover; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy, .form-card { position: static; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .ref-grid, .journal-grid { grid-template-columns: 1fr 1fr; }
  .dock { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; text-decoration: none; font-weight: 600; }
  .dock-wa { background: var(--wa); color: #fff; }
  .dock-wa:hover { color: #fff; }
  body { padding-bottom: 60px; }
  .toast { bottom: 76px; }
}
@media (max-width: 600px) {
  .list-label { display: none; }
  .grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card-name { font-size: var(--t-base); }
  .card-add { width: 36px; height: 36px; top: 6px; right: 6px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .link-strong { align-self: flex-start; }
  .index-count { display: none; }
  .works-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 72px 1fr; }
  .list-item img { width: 72px; }
  .list-item .remove { grid-column: 2; justify-self: start; }
  .contact-grid, .ref-grid, .journal-grid { grid-template-columns: 1fr; }
  .closing-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .seccade { animation: none; clip-path: none; }
  .card-img img { transition: none; }
}

/* ---------- colour pass: deep lacivert entrance, bordo close ---------- */
.hero { background: #16203A; color: #F3EFE6; border-bottom: 3px solid var(--sirma, #C8A45A); }
.hero h1 { color: #FBF8F1; }
.hero-lead { color: #CDD3E0; }
.hero-phone { color: #9EA6B8; }
.hero-phone a { color: #fff; }
.hero .link-strong { color: #fff; text-decoration-color: #C8A45A; }
.hero .link-strong:hover { color: #E6CF9A; }
.rug-hang { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); }
.hero-rug figcaption { color: #9EA6B8; }
.index-sec { border-top: 0; }
.works { background: #EAE3D6; border-top: 0; }
.works-grid figcaption { color: #5E5648; }
.models { background: var(--surface); }
.process { background: #EEF1F5; }
.process-list li { border-top-color: #16203A; }
.closing { background: var(--bordo); color: #fff; border-top: 0; }
.closing-line { color: #FBF3EC; }
.closing .link-strong { color: #fff; text-decoration-color: #E6CF9A; }
.closing .btn-wa { background: #fff; color: var(--wa); }
.closing .btn-wa:hover { background: #F3EFE6; color: var(--wa-hover); }

/* ---------- richness pass ---------- */
.hero { position: relative; isolation: isolate; background:
  linear-gradient(100deg, rgba(14, 21, 40, .97) 0%, rgba(14, 21, 40, .9) 45%, rgba(14, 21, 40, .62) 100%),
  var(--hero-img) center 60% / cover no-repeat, #16203A; }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; z-index: -1;
  background: linear-gradient(180deg, #C8A45A 0 2px, transparent 2px 6px, #C8A45A 6px 7px, transparent 7px); }
.hero::before { top: 0; }
.hero::after { bottom: 6px; transform: scaleY(-1); }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-copy::before { content: ""; display: block; width: 150px; height: 84px; margin-bottom: 26px;
  background: url("../img/b/crown-gold.webp") left bottom / contain no-repeat; }
.h-section::before { content: ""; display: block; width: 92px; height: 50px; margin-bottom: 14px;
  background: url("../img/b/crown-gold.webp") left bottom / contain no-repeat; }
.hero .btn-wa { box-shadow: 0 10px 26px rgba(21, 127, 59, .45); }
.index-preview { outline: 1px solid #C8A45A; outline-offset: 10px; }
.index-name { transition: color .15s, transform .2s; }
.index a:hover .index-name, .index a[data-active] .index-name { transform: translateX(8px); }
.works { background: #16203A; color: #E6E9F0; }
.works .h-section { color: #fff; }
.works-copy p { color: #C2C7D3; }
.works .link-strong { color: #fff; text-decoration-color: #C8A45A; }
.works-grid figcaption { color: #9EA6B8; }
.works-grid img { outline: 1px solid rgba(200, 164, 90, .5); outline-offset: 4px; }
.process-list li::before { color: #C8A45A; font-size: var(--t-3xl); }
.closing { position: relative; overflow: hidden; isolation: isolate; }
.closing-weave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .22; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bordo) 30%, rgba(138, 28, 44, .55)); }

/* ---------- mega menu ---------- */
.mainnav, .mainnav > ul, .mega-item { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 3px solid #C8A45A; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(14, 21, 40, .18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s .18s; z-index: 45; }
.mega-item:hover > .mega, .mega-item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
.mega-in { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding-block: 28px 32px; max-height: calc(100vh - 120px); overflow-y: auto; }
.mega-cover { display: block; text-decoration: none; background: #16203A; color: #fff; }
.mega-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mega-title { display: block; padding: 14px 16px 2px; font: 500 var(--t-lg)/1.1 var(--serif); }
.mega-count { display: block; padding: 0 16px 16px; color: #E6CF9A; font-weight: 600; font-size: var(--t-sm); }
.mega-cover:hover .mega-title { color: #E6CF9A; }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; align-content: start; }
.mega-grid-dense { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 14px; }
.mega-grid a { display: flex; align-items: center; gap: 12px; padding: 6px; text-decoration: none; border-radius: var(--r); }
.mega-grid a:hover { background: var(--bg); color: var(--bordo); }
.mega-grid img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.mega-grid-dense img { width: 36px; height: 36px; }
.mega-grid span { display: grid; font-weight: 500; line-height: 1.25; }
.mega-grid small { color: var(--ink-3); font-weight: 400; font-size: var(--t-xs); }
@media (prefers-reduced-motion: reduce) { .mega { transition: none; } }

/* ---------- live carpet designer ---------- */
#designer { --rug-border: #1A2238; --rug-field: #8A1C2C; --rug-niche: #6A1220; --rug-speck: #A53748; --rug-lattice: #86283A; --rug-gold: #C8A45A; --rug-cream: #E9DFCB; }
#designer[data-palette="lacivert"] { --rug-border: #7A1626; --rug-field: #1F3A6B; --rug-niche: #142A52; --rug-speck: #2E4E86; --rug-lattice: #284676; }
#designer[data-palette="zumrut"] { --rug-field: #1F5C4B; --rug-niche: #144437; --rug-speck: #2A7560; --rug-lattice: #236A57; }
#designer[data-palette="turkuaz"] { --rug-field: #1E7F8C; --rug-niche: #135E69; --rug-speck: #2F97A4; --rug-lattice: #23707C; }
#designer[data-palette="krem"] { --rug-border: #6A1220; --rug-field: #D8C7A3; --rug-niche: #C2AD85; --rug-speck: #E3D5B6; --rug-lattice: #CBB892; --rug-gold: #8A6A2A; --rug-cream: #F4ECDC; }
.seccade [style*="var(--rug"] { transition: fill .7s ease, stroke .7s ease; }
.rug-stage { perspective: 1100px; }
.rug-hang { --rx: 0deg; --ry: 0deg; transform-origin: 50% 2%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease-out; }
.rug-hang .seccade { transform-origin: 50% 2%; animation: unroll 1.5s cubic-bezier(.55, .05, .25, 1) .25s forwards, sway 7s ease-in-out 2s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(.8deg); } 75% { transform: rotate(-.8deg); } }
#designer figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; font: 400 var(--t-base)/1.4 var(--sans); color: #CDD3E0; }
.designer-title { width: 100%; font: italic 400 var(--t-md)/1.2 var(--serif); color: #F3EFE6; }
.swatches { display: flex; gap: 10px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: transform .15s; }
.sw:hover { transform: scale(1.12); }
.sw[aria-checked="true"] { border-color: #E6CF9A; box-shadow: 0 0 0 3px rgba(230, 207, 154, .35); transform: scale(1.12); }
.sw-bordo { background: #8A1C2C; } .sw-lacivert { background: #1F3A6B; } .sw-zumrut { background: #1F5C4B; } .sw-turkuaz { background: #1E7F8C; } .sw-krem { background: #D8C7A3; }
.designer-send { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: #C8A45A; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.designer-send:hover { color: #E6CF9A; }

/* sections rise into view once */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rug-hang .seccade { animation: none; clip-path: none; }
  .rug-hang { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- mega menu, refined ---------- */
.mega-in { grid-template-columns: 260px 1fr; gap: 40px; padding-block: 28px; align-items: start; }
.mega-cover { position: relative; background: none; overflow: hidden; border-radius: 4px; }
.mega-cover img { aspect-ratio: 4 / 5; transition: transform .5s ease; }
.mega-cover:hover img { transform: scale(1.05); }
.mega-cover-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(14, 21, 40, .92)); }
.mega-cover .mega-title { padding: 0; color: #fff; font-size: var(--t-xl); }
.mega-cover .mega-count { padding: 4px 0 0; }
.mega-head { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); }
.mega-grid, .mega-grid-dense { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 24px; }
.mega-grid a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 4px; }
.mega-grid img, .mega-grid-dense img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.mega-name { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-grid small { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mega-grid a:hover { background: var(--bg); }
.mega-grid a:hover .mega-name { color: var(--bordo); }
.mega-grid a:hover img { box-shadow: 0 0 0 2px #C8A45A; }
.mega-grid:not(.mega-grid-dense) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }
.mega-grid:not(.mega-grid-dense) img { width: 64px; height: 64px; border-radius: 4px; }
.mega-grid.mega-grid-few { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mega-grid-few a { display: block; padding: 0; }
.mega-grid-few img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 4px; object-fit: cover; margin-bottom: 10px; }
.mega-grid-few .mega-name { font: 500 var(--t-md)/1.2 var(--serif); white-space: normal; }
.mega-grid-few small { display: block; margin-top: 2px; }
.mega-grid-few small::after { content: " model"; }
.mega-grid-few a:hover { background: none; }
.mega-grid.mega-grid-few:not(.mega-grid-dense) img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 4px; box-shadow: none; }
.mega-grid.mega-grid-few a:hover img { box-shadow: 0 0 0 2px #C8A45A; }

/* ---------- mobile mega menu (drawer accordion) ---------- */
.drawer-panel { padding: 14px 16px 24px; }
.drawer-acc { border-top: 1px solid var(--line); }
.drawer-acc > li { border-bottom: 1px solid var(--line); }
.drawer-acc summary { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; list-style: none; font: 500 var(--t-md)/1.2 var(--serif); }
.drawer-acc summary::-webkit-details-marker { display: none; }
.drawer-acc summary img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.drawer-acc summary .ic { width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s; }
.drawer-acc details[open] summary { color: var(--bordo); }
.drawer-acc details[open] summary .ic { transform: rotate(180deg); color: var(--bordo); }
.acc-body { padding: 0 0 14px 56px; }
.acc-all { display: inline-block; margin: 2px 0 8px; font-weight: 600; color: var(--bordo); text-decoration: underline; text-underline-offset: 4px; }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acc-list a { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 6px 4px; text-decoration: none; border-radius: 4px; }
.acc-list a:active, .acc-list a:hover { background: var(--surface); }
.acc-list img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.acc-list span { font-size: var(--t-base); line-height: 1.25; }
.acc-list small { color: var(--ink-3); font-size: var(--t-xs); }
.drawer-nav-sm { margin-top: 12px; }
.drawer-nav-sm a { border-bottom: 0; padding: 9px 2px; }
.drawer-acc .acc-list a, .drawer-acc .acc-all { border-bottom: 0; font: inherit; }
.drawer-acc .acc-all { font-weight: 600; padding: 4px 0; }
.drawer-acc .acc-list span { font: 500 var(--t-base)/1.25 var(--sans); }

/* mobile header: menu left, logo centred, tools right */
@media (max-width: 1180px) {
  .header-in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .menu-btn { justify-self: start; }
  .logo { justify-self: center; }
  .header-tools { justify-self: end; margin-left: 0; }
}
@media (max-width: 600px) {
  .header-tools { gap: 0; }
  .header-tools .list-btn { padding: 8px 6px; }
}

/* ---------- cards with colour variants + quick view ---------- */
.card-media { position: relative; margin-bottom: 10px; }
.card-media .card-img { display: block; margin: 0; }
.card-quick { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); opacity: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 0; border-radius: 40px; background: rgba(251, 251, 248, .95); color: var(--ink); font-weight: 600; font-size: var(--t-sm); cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 21, 40, .2); transition: opacity .2s, transform .2s; }
.card:hover .card-quick, .card-quick:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.card-quick:hover { background: var(--ink); color: #fff; }
.card-variants { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.card-variants button { display: block; width: 38px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); cursor: pointer; }
.card-variants img { width: 100%; height: 100%; object-fit: cover; }
.card-variants button[aria-current="true"] { border: 2px solid var(--ink); }
.card-variants button:hover { border-color: var(--bordo); }
.card-variants .more-variants { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
.card-link:hover .card-name { color: var(--bordo); }
.card-media:hover .card-img img { transform: scale(1.03); }
@media (hover: none) { .card-quick { opacity: 1; transform: translate(-50%, 0); padding: 6px 10px; font-size: var(--t-xs); } }

.qv { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(14, 21, 40, .4); }
.qv::backdrop { background: rgba(14, 21, 40, .6); }
.qv[open] { animation: qvIn .25s ease-out; }
@keyframes qvIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.qv-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--bg); }
.qv-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.qv-media { background: var(--surface); padding: 20px; }
.qv-main { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; }
.qv-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qv-thumbs button { width: 64px; height: 50px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: pointer; background: none; }
.qv-thumbs button[aria-current="true"] { border: 2px solid var(--bordo); }
.qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: 40px 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.qv-cat { margin: 0; color: var(--ink-3); font-size: var(--t-sm); }
.qv-title { font-size: var(--t-xl); margin: 0; }
.qv-variant { margin: 4px 0 18px; font-weight: 600; color: var(--bordo); }
.qv-page { margin-top: 18px; align-self: flex-start; }
@media (max-width: 760px) {
  .qv-in { grid-template-columns: 1fr; }
  .qv-media { padding: 12px; }
  .qv-info { padding: 18px 16px 20px; }
  .qv { overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .qv[open] { animation: none; } .card-quick { transition: none; } }

/* menu items without a category cover */
.mega-in-nocover { grid-template-columns: 1fr; }
.acc-dot { width: 44px; height: 44px; border-radius: 4px; background: var(--line); }
.acc-link { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 10px 2px; text-decoration: none; font: 500 var(--t-md)/1.2 var(--serif); }
.acc-link:not(:has(img)) { grid-template-columns: 1fr; }
.acc-link img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.acc-list a > span:first-child:empty { width: 32px; height: 32px; border-radius: 50%; background: var(--line); }

/* analytics cookie bar (own class: .consent is the checkbox row of the quote form) */
.cookie-bar { position: fixed; right: 16px; bottom: 16px; z-index: 85; width: min(520px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--bordo); box-shadow: 0 20px 50px rgba(14, 21, 40, .22); padding: 18px 20px; display: block; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0 0 14px; font-size: var(--t-sm); line-height: 1.55; color: var(--ink); }
.cookie-bar a { color: var(--bordo); font-weight: 600; }
.cookie-bar-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-bar-actions .btn { min-width: 110px; }
@media (max-width: 900px) { .cookie-bar { left: 16px; right: 16px; width: auto; bottom: 72px; } }
@media (max-width: 480px) { .cookie-bar-actions .btn { flex: 1; } }

/* ---------- blog ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 24px; }
.post-card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.post-card img, .post-noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 8px; background: var(--line); }
.post-noimg { display: block; overflow: hidden; }
.post-noimg .weave { width: 100%; height: 100%; }
.post-meta { font-size: var(--t-xs); color: var(--ink-3); }
.post-title { font: 500 var(--t-md)/1.25 var(--serif); }
.post-card a:hover .post-title { color: var(--bordo); }
.post-excerpt { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.blog-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.blog-side h2 { font-size: var(--t-lg); margin: 0; }
.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .tag-cloud span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 40px; text-decoration: none; font-size: var(--t-sm); background: var(--surface); }
.tag-cloud a:hover, .tag-cloud a[aria-current] { border-color: var(--ink); }
.tag-cloud a[aria-current] { background: var(--ink); color: #fff; }
.tag-cloud small { color: var(--ink-3); }
.tag-cloud-sm a, .tag-cloud-sm span { padding: 4px 10px; font-size: var(--t-xs); }
.author-mini { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; margin-top: 10px; }
.author-mini img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: var(--bg); padding: 4px; }
.author-mini span { display: grid; }
.author-mini small { color: var(--ink-3); }
.post { max-width: 760px; margin: 12px auto 0; }
.post-head h1 { font-size: clamp(var(--t-2xl), 5vw, var(--t-4xl)); letter-spacing: -.025em; margin-bottom: .3em; }
.post-byline { color: var(--ink-3); margin-bottom: 14px; }
.post-byline a { color: var(--ink); font-weight: 600; }
.post-cover { width: 100%; margin: 28px 0; }
.post .prose { max-width: none; font-size: 1.12rem; line-height: 1.75; }
.post-faq { margin-top: 48px; }
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 18px; margin-top: 48px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.author-box img { width: 80px; height: 80px; object-fit: contain; border-radius: 50%; background: var(--bg); padding: 6px; }
.author-box p { margin: 0 0 6px; color: var(--ink-2); }
.author-box-name { font: 500 var(--t-md)/1.2 var(--serif); }
.author-box-name a { color: var(--ink); }
.author-box-job { font-size: var(--t-sm); color: var(--ink-3) !important; }
.post-cta { margin-top: 32px; }
.related-posts { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.author-head-in { display: flex; gap: 18px; align-items: center; }
.author-head-in img { width: 88px; height: 88px; object-fit: contain; border-radius: 50%; background: var(--surface); padding: 8px; border: 1px solid var(--line); }
.author-bio { max-width: 60ch; margin-top: 14px !important; }
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; }
  .author-box { grid-template-columns: 1fr; }
}
