/* ==========================================================================
   Vayura Digital — Classic theme
   Ivory paper, deep plum, wine accent and antique gold.
   Playfair Display (headings) + Source Sans 3 (body).
   ========================================================================== */

:root {
  --plum: #2B1840;
  --plum-2: #3D2456;
  --plum-3: #1C0F2B;
  --wine: #8E1F55;
  --wine-d: #6E1641;
  --gold: #B08D57;
  --gold-d: #8A6A3A;
  --gold-l: #EADFCB;
  --paper: #FBF8F3;
  --paper-2: #F4EEE4;
  --white: #FFFFFF;
  --ink: #221B2B;
  --muted: #5E5767;
  --line: #E4DCCF;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(43, 24, 64, .06), 0 8px 24px rgba(43, 24, 64, .07);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--plum); letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.ico { flex: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 13.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 28px; border: 1px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-d); color: #fff; }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-3); color: #fff; }
.btn-gold { background: var(--gold); color: var(--plum-3); }
.btn-gold:hover { background: #C29E66; color: var(--plum-3); }
.btn-outline { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--plum); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--wine); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ── Section scaffolding ─────────────────────────────────── */
.sec { padding-block: clamp(64px, 8vw, 104px); }
.sec-alt { background: var(--paper-2); }
.sec-white { background: var(--white); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); }
.sec-head p { color: var(--muted); font-size: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 14px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-d);
}
.sec-head .kicker::before, .sec-head .kicker::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.kicker-left::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.kicker-light { color: var(--gold); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 22px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.ornament i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.ornament.left { justify-content: flex-start; }
.ornament.left::before { display: none; }
.lead { font-size: 19px; color: var(--muted); }

/* ── Top bar & header ───────────────────────────────────── */
.topbar { background: var(--plum-3); color: rgba(255,255,255,.82); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-block: 9px; }
.tb-info { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.tb-info a, .tb-info span { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.tb-info a:hover { color: #fff; }
.tb-info .ico { color: var(--gold); }
.tb-social { display: flex; gap: 6px; }
.tb-social a { display: grid; place-items: center; width: 28px; height: 28px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.tb-social a:hover { color: var(--plum-3); background: var(--gold); border-color: var(--gold); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-bottom: 1px solid var(--line); pointer-events: none; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 25px/1 var(--serif); letter-spacing: .01em; }
.brand-name em { font-style: italic; font-weight: 500; color: var(--wine); }
.brand-sub { font: 600 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-d); margin-top: 6px; }
.brand-light { color: #fff; }
.brand-light .brand-name em { color: var(--gold); }
.brand-light .brand-sub { color: rgba(255,255,255,.6); }

.primary > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary a { display: block; padding: 10px 13px; font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative; }
.primary > ul > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.primary > ul > li > a:hover::after, .primary > ul > li > a[aria-current]::after { transform: scaleX(1); }
.primary a[aria-current] { color: var(--wine); }
.primary .nav-cta { margin-left: 10px; }
.primary .nav-cta .btn { padding: 13px 18px; color: #fff; font-size: 12.5px; }
.primary .nav-cta .btn::after { display: none; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 6px; margin-left: -10px; color: var(--muted); cursor: pointer; }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 400; padding: 10px 20px; }
.sub a .ico { color: var(--gold-d); }
.sub a:hover { background: var(--paper); color: var(--wine); }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); padding: 9px 14px; font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--plum); cursor: pointer; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; background: var(--plum) url('../img/stock/hero-desk.jpg') center/cover no-repeat; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--plum-3) 0%, rgba(28,15,43,.94) 32%, rgba(28,15,43,.74) 52%, rgba(28,15,43,.42) 75%); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 30%, rgba(142,31,85,.45), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 34em; margin-bottom: 34px; }
.hero .kicker { color: var(--gold); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: rgba(255,255,255,.78); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ico { color: var(--gold); }

.frame { position: relative; background: var(--paper); color: var(--ink); padding: 38px 34px; outline: 1px solid var(--gold); outline-offset: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.frame h2 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.frame .ornament { margin-bottom: 18px; }
.frame-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.frame-stats div { padding: 18px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.frame-stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.frame-stats strong { display: block; font: 600 34px/1.1 var(--serif); color: var(--wine); font-variant-numeric: lining-nums tabular-nums; }
.frame-stats span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.frame-foot { margin: 18px 0 0; text-align: center; font: italic 500 17px/1.5 var(--serif); color: var(--plum-2); }

/* ── Animated stats band (count-up numbers) ────────────── */
.counter-band { position: relative; background: var(--plum); color: #fff; overflow: hidden; }
.counter-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 15%, rgba(142,31,85,.55), transparent 55%), radial-gradient(ellipse at 85% 85%, rgba(176,141,87,.18), transparent 55%); }
.counter-band .wrap { position: relative; }
.counter-band .sec-head { text-align: center; margin-bottom: 44px; }
.counter-band .sec-head h2 { color: #fff; }
.counter-band .kicker { color: var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat-item { text-align: center; padding: 28px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; transition: transform .3s ease, background .3s ease, opacity .7s ease; }
.stat-item:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.stat-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 14px; border-radius: 50%; background: rgba(176,141,87,.15); color: var(--gold); }
.stat-num { display: block; font: 600 42px/1.1 var(--serif); color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.stat-label { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat-num { font-size: 34px; } }

/* ── Industries we serve ─────────────────────────────────── */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ind-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 30px 24px; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ind-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(43,24,64,.1); border-color: var(--gold); }
.ind-ico { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%; background: var(--paper-2); color: var(--wine); }
.ind-card h3 { font-size: 18px; margin-bottom: 8px; }
.ind-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 980px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ind-grid { grid-template-columns: 1fr; } }

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero { position: relative; background: var(--plum); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 20%, rgba(142,31,85,.5), transparent 55%), repeating-linear-gradient(135deg, rgba(176,141,87,.06) 0 1px, transparent 1px 22px); }
.page-hero .wrap { position: relative; padding-block: clamp(52px, 7vw, 92px); text-align: center; }
.page-hero h1 { color: #fff; max-width: 900px; margin-inline: auto; }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 720px; margin: 0 auto; }
.page-hero .kicker { color: var(--gold); }
.page-hero .ornament { color: var(--gold); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0 0 18px; padding: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--gold); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ── Feature row ────────────────────────────────────────── */
.features { position: relative; z-index: 2; margin-top: -56px; }
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.f-item { padding: 34px 30px; display: flex; gap: 18px; }
.f-item + .f-item { border-left: 1px solid var(--line); }
.f-ico { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--wine); border-radius: 50%; }
.f-item h3 { font-size: 20px; margin-bottom: 6px; }
.f-item p { margin: 0; color: var(--muted); font-size: 16px; }

/* ── Two-column split ───────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--gold-d); margin-top: 3px; }
.checks.one { grid-template-columns: 1fr; }

.portrait { position: relative; padding: 0 22px 22px 0; }
.portrait::before { content: ""; position: absolute; right: 0; bottom: 0; top: 22px; left: 22px; border: 1px solid var(--gold); }
.portrait-inner { position: relative; background: var(--plum) url('../img/stock/about-team.jpg') center/cover no-repeat; color: #fff; padding: clamp(32px, 4vw, 48px); isolation: isolate; }
.portrait-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,24,64,.88), rgba(43,24,64,.96)); }
.portrait-inner blockquote { margin: 0; font: italic 500 clamp(22px, 2.4vw, 28px)/1.45 var(--serif); }
.portrait-inner cite { display: block; margin-top: 18px; font: 600 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--gold); }
.portrait-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.portrait-stats div { padding-top: 18px; }
.portrait-stats strong { display: block; font: 600 30px/1.1 var(--serif); color: var(--gold); }
.portrait-stats span { font-size: 13.5px; color: rgba(255,255,255,.75); }

/* ── Framed photo (reusable, matches .portrait gold-outline style) ─ */
.img-frame { position: relative; padding: 0 18px 18px 0; aspect-ratio: 4/3; }
.img-frame::before { content: ""; position: absolute; right: 0; bottom: 0; top: 18px; left: 18px; border: 1px solid var(--gold); z-index: 0; }
.img-frame img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 20px 44px rgba(0,0,0,.18); }

/* ── Audit band ─────────────────────────────────────────── */
.audit-band { background: var(--wine); color: #fff; position: relative; overflow: hidden; }
.audit-band::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(234,223,203,.35); pointer-events: none; }
.audit-band .wrap { position: relative; padding-block: clamp(52px, 6vw, 76px); text-align: center; }
.audit-band h2 { color: #fff; }
.audit-band p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 28px; }
.inline-form { display: flex; max-width: 720px; margin: 0 auto; background: #fff; padding: 6px; gap: 6px; }
.inline-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 12px 16px; color: var(--ink); }
.inline-form input + input { border-left: 1px solid var(--line); }
.inline-form .btn { flex: none; }

/* ── Service cards ──────────────────────────────────────── */
.s-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.s-card { position: relative; padding: 38px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: background .25s; }
.s-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.s-card:hover { background: var(--paper); }
.s-card:hover::before { transform: scaleX(1); }
.s-num { font: italic 500 15px/1 var(--serif); color: var(--gold-d); margin-bottom: 18px; }
.s-card .s-ico { color: var(--wine); margin-bottom: 18px; }
.s-card h3 { font-size: 21px; }
.s-card h3 a { color: inherit; text-decoration: none; }
.s-card h3 a::after { content: ""; position: absolute; inset: 0; }
.s-card p { color: var(--muted); font-size: 16px; flex: 1; }
.s-card .link-arrow { position: relative; }

/* ── Why / numbered list ────────────────────────────────── */
.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.num-list li:first-child { border-top: 1px solid var(--line); }
.num-list li::before { content: counter(n, upper-roman) "."; font: italic 500 26px/1 var(--serif); color: var(--gold-d); padding-top: 4px; }
.num-list h3 { font-size: 19px; margin-bottom: 4px; }
.num-list p { margin: 0; color: var(--muted); font-size: 16px; }

/* ── Process timeline ───────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 33px; left: 10%; right: 10%; height: 1px; background: var(--gold); }
.timeline li { text-align: center; padding: 0 14px; position: relative; }
.t-num { width: 66px; height: 66px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--gold); font: italic 600 22px/1 var(--serif); color: var(--wine); position: relative; box-shadow: 0 0 0 8px var(--paper-2); }
.sec-white .t-num { background: var(--white); box-shadow: 0 0 0 8px var(--white); }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 20px; font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--wine); border-bottom-color: var(--wine); }
.tab .ico { color: var(--gold-d); }
.tab-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-art { aspect-ratio: 4/3; background: var(--plum); display: grid; place-items: center; color: var(--gold); outline: 1px solid var(--gold); outline-offset: -14px; position: relative; overflow: hidden; }
.tab-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(176,141,87,.07) 0 1px, transparent 1px 18px); }
.tab-art .ico { width: 34%; height: auto; position: relative; stroke-width: .8; }
.tab-panel h3 { font-size: clamp(24px, 2.6vw, 32px); }

/* ── Cases ──────────────────────────────────────────────── */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { background: transparent; border: 1px solid var(--line); padding: 10px 18px; font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s; }
.case:hover { box-shadow: var(--shadow); }
.case-art { aspect-ratio: 16/10; background: var(--plum); display: grid; place-items: center; color: var(--gold); position: relative; overflow: hidden; }
.case-art::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(176,141,87,.5); }
.case-art .ico { width: 64px; height: 64px; stroke-width: 1.1; }
.case-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.case-tag { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); font-weight: 600; margin-bottom: 8px; }
.case h3 { font-size: 20px; }
.case p { color: var(--muted); font-size: 16px; margin: 0; }

/* ── Testimonials ───────────────────────────────────────── */
.testi { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
.testi::before { content: "\201C"; position: absolute; left: 50%; top: -110px; transform: translateX(-50%); font: 400 360px/1 var(--serif); color: rgba(176,141,87,.10); }
.testi .wrap { position: relative; text-align: center; padding-block: clamp(64px, 8vw, 100px); max-width: 900px; }
.testi h2 { color: #fff; }
.testi .kicker { color: var(--gold); }
.quote-text { font: italic 500 clamp(21px, 2.4vw, 27px)/1.55 var(--serif); margin: 10px auto 26px; min-height: 5.5em; }
.quote-who strong { display: block; font: 600 15px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.quote-who span { font-size: 15px; color: rgba(255,255,255,.72); }
.sample-tag { display: inline-block; margin-top: 14px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; border: 1px dashed rgba(255,255,255,.4); padding: 4px 12px; color: rgba(255,255,255,.7); }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 1px solid var(--gold); background: transparent; transform: rotate(45deg); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--gold); }

/* ── Blog cards ─────────────────────────────────────────── */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.b-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; position: relative; }
.b-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.b-media { display: block; aspect-ratio: 8/5; overflow: hidden; background: var(--plum); }
.b-media .cover, .b-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.b-cat { font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); text-decoration: none; position: relative; z-index: 1; }
.b-cat:hover { color: var(--wine); }
.b-card :is(h2, h3) { font-size: 21px; line-height: 1.3; }
.b-card :is(h2, h3) a { color: var(--plum); text-decoration: none; }
.b-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.b-card :is(h2, h3) a:hover { color: var(--wine); }
.b-card p { color: var(--muted); font-size: 16px; flex: 1; }
.b-card .link-arrow { margin-top: 6px; }
.b-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.b-feature .b-media { aspect-ratio: auto; min-height: 320px; }
.b-feature .b-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.b-feature :is(h2, h3) { font-size: clamp(24px, 2.6vw, 32px); }

/* ── Blog listing layout ────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.blog-layout .b-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sidebar { display: grid; gap: 28px; position: sticky; top: 110px; }
.widget { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.widget h2 { font-size: 20px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); position: relative; }
.widget h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--gold); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; font-size: 16px; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a:hover, .cat-list a[aria-current] { color: var(--wine); }
.cat-list a[aria-current] { font-weight: 700; }
.cat-list span { color: var(--muted); font-size: 14px; }
.mini-post { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.mini-post:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-post .cover, .mini-post img { width: 72px; height: 54px; object-fit: cover; display: block; }
.mini-post strong { display: block; font: 600 15.5px/1.35 var(--serif); color: var(--plum); }
.mini-post:hover strong { color: var(--wine); }
.mini-post small { color: var(--muted); font-size: 13px; }
.widget-cta { background: var(--plum); color: #fff; border: 0; outline: 1px solid var(--gold); outline-offset: -10px; text-align: center; padding: 34px 28px; }
.widget-cta h2 { color: #fff; border: 0; padding: 0; }
.widget-cta h2::after { display: none; }
.widget-cta p { color: rgba(255,255,255,.8); font-size: 16px; }
.search-form { display: flex; border: 1px solid var(--line); background: var(--white); }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 13px 14px; font: inherit; font-size: 16px; background: transparent; }
.search-form button { border: 0; background: var(--plum); color: #fff; padding: 0 16px; cursor: pointer; }
.result-note { margin: 0 0 24px; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .tag { display: inline-block; font-size: 13.5px; padding: 5px 12px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; background: var(--white); }
.tag-cloud a:hover { border-color: var(--gold); color: var(--wine); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 48px; list-style: none; padding: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--gold); color: var(--wine); }
.pager [aria-current] { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ── Single post ────────────────────────────────────────── */
.post-hero .wrap { padding-bottom: clamp(48px, 6vw, 72px); }
.post-hero h1 { font-size: clamp(32px, 4.2vw, 50px); }
.post-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: rgba(255,255,255,.78); }
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .ico { color: var(--gold); }
.post-cat { display: inline-block; margin-bottom: 16px; padding: 6px 14px; border: 1px solid var(--gold); color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; font-weight: 600; }
.post-cat:hover { background: var(--gold); color: var(--plum-3); }
.post-figure { margin: -40px auto 0; max-width: 1000px; position: relative; z-index: 2; border: 10px solid var(--white); box-shadow: var(--shadow); }
.post-figure .cover, .post-figure img { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; display: block; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { font-size: 18.5px; line-height: 1.8; max-width: 72ch; }
.prose > p:first-of-type::first-letter { float: left; font: 600 4.1em/.82 var(--serif); color: var(--wine); margin: .06em .1em 0 0; }
.prose h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .5em; scroll-margin-top: 110px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold-d); }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--gold); font: italic 500 22px/1.55 var(--serif); color: var(--plum-2); }
.prose strong { color: var(--plum); }
.prose a { color: var(--wine); }
.prose img { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-2); font-weight: 600; }
.key-points { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 22px 26px; margin: 0 0 2em; }
.key-points h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: .02em; }
.toc { font-size: 15.5px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 7px 0; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.toc a::before { content: counter(t, upper-roman) "."; font: italic 500 14px/1.6 var(--serif); color: var(--gold-d); }
.toc a:hover, .toc a.active { color: var(--wine); }
.toc .lvl3 a { padding-left: 16px; font-size: 14.5px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--plum); cursor: pointer; transition: .2s; }
.share-btn:hover { color: #fff; }
.s-facebook:hover { background: #1877F2; border-color: #1877F2; }
.s-x:hover { background: #000; border-color: #000; }
.s-linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.s-whatsapp:hover { background: #25D366; border-color: #25D366; }
.s-email:hover, .s-copy:hover { background: var(--plum); border-color: var(--plum); }
.s-copy.copied { background: var(--gold); border-color: var(--gold); color: var(--plum-3); }
.share-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 22px 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 20px; margin-top: 40px; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.author-av { width: 72px; height: 72px; border-radius: 50%; background: var(--plum); color: var(--gold); display: grid; place-items: center; font: italic 600 26px/1 var(--serif); outline: 1px solid var(--gold); outline-offset: 3px; }
.author-box h2 { font-size: 20px; margin-bottom: 4px; }
.author-box p { margin: 0; color: var(--muted); font-size: 16px; }
.faq { margin-top: 48px; }
.faq h2 { margin-bottom: 18px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa:first-of-type { border-top: 1px solid var(--line); }
details.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font: 600 19px/1.4 var(--serif); color: var(--plum); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--gold-d); transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .ans { padding: 0 0 20px; color: var(--muted); }
details.qa .ans p { margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav a { display: block; padding: 20px 22px; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--plum); }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.post-nav strong { font: 600 17px/1.35 var(--serif); }
.post-nav .next { text-align: right; }
.post-nav .next small { justify-content: flex-end; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 60; }

/* ── Service page ───────────────────────────────────────── */
.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.inc-grid.two { grid-template-columns: repeat(2, 1fr); }
.inc-item { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inc-item .ico { color: var(--gold-d); margin-bottom: 14px; }
.inc-item h3 { font-size: 19px; }
.inc-item p { color: var(--muted); font-size: 16px; margin: 0; }
.ideal { background: var(--white); border: 1px solid var(--line); padding: 32px; outline: 1px solid var(--line); outline-offset: 6px; }
.ideal h3 { font-size: 22px; }
.svc-nav { list-style: none; margin: 0; padding: 0; }
.svc-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; }
.svc-nav a[aria-current] { color: var(--wine); font-weight: 700; }
.svc-nav a:hover { color: var(--wine); }
.svc-nav .ico { color: var(--gold-d); }

/* ── Team ───────────────────────────────────────────────── */
.t-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.member { text-align: center; padding: 34px 24px; background: var(--white); border: 1px solid var(--line); }
.m-ph { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: var(--gold); outline: 1px solid var(--gold); outline-offset: 5px; }
.member h3 { font-size: 20px; margin-bottom: 2px; }
.member .role { display: block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); font-weight: 600; margin-bottom: 10px; }
.member p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ── Stats band ─────────────────────────────────────────── */
.stats-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats div { text-align: center; padding: 38px 16px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 600 clamp(34px, 4vw, 46px)/1 var(--serif); color: var(--wine); margin-bottom: 8px; }
.stats span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ── Forms ──────────────────────────────────────────────── */
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { margin-bottom: 18px; }
.f-field label { display: block; font: 600 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--plum); margin-bottom: 7px; }
.f-field label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.f-field input, .f-field select, .f-field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.f-field textarea { min-height: 150px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.f-field [aria-invalid="true"] { border-color: #B3261E; }
.f-err { display: block; color: #B3261E; font-size: 14px; margin-top: 5px; }
.notice { padding: 16px 20px; margin-bottom: 22px; border: 1px solid; }
.notice-ok { background: #EEF6EF; border-color: #A8CDB0; color: #1F5130; }
.notice-err { background: #FBEDEC; border-color: #E5B3AE; color: #8A1F17; }
.contact-cards { display: grid; gap: 18px; }
.c-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; background: var(--white); border: 1px solid var(--line); }
.c-card .f-ico { width: 52px; height: 52px; }
.c-card h3 { font-size: 18px; margin-bottom: 2px; }
.c-card p, .c-card a { margin: 0; color: var(--muted); font-size: 16px; text-decoration: none; }
.c-card a:hover { color: var(--wine); }
.map-frame { border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 16/9; width: 100%; }

/* ── Legal / plain content ──────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 26px; margin-top: 1.6em; }

/* ── CTA strip & footer ─────────────────────────────────── */
.cta-strip { background: var(--plum-3); color: #fff; border-top: 3px solid var(--gold); }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px 40px; padding-block: 52px; }
.cta-strip h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-strip p { margin: 0; color: rgba(255,255,255,.78); }
.cta-strip a:not(.btn) { color: var(--gold); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: var(--plum); color: rgba(255,255,255,.75); font-size: 16px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.ft-about p { margin: 18px 0; }
.ft-about a:not(.brand) { color: var(--gold); }
.ft-h { font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 20px; }
.ft-h-sm { margin-top: 26px; }
.ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.ft-links a:hover { color: #fff; text-decoration: underline; }
.ft-contact { font-style: normal; display: grid; gap: 12px; }
.ft-contact span, .ft-contact a { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.78); text-decoration: none; }
.ft-contact a:hover { color: #fff; }
.ft-contact .ico { color: var(--gold); margin-top: 4px; }
.ft-social { display: flex; gap: 8px; }
.ft-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(176,141,87,.5); color: var(--gold); border-radius: 50%; }
.ft-social a:hover { background: var(--gold); color: var(--plum-3); }
.nl { display: flex; border: 1px solid rgba(176,141,87,.6); }
.nl input { flex: 1; min-width: 0; border: 0; background: rgba(255,255,255,.06); color: #fff; padding: 12px 14px; font: inherit; font-size: 15px; }
.nl input::placeholder { color: rgba(255,255,255,.5); }
.nl button { border: 0; background: var(--gold); color: var(--plum-3); padding: 0 16px; font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ft-note { font-size: 13.5px; margin-top: 8px; color: rgba(255,255,255,.55); }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.ft-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 20px; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.ft-legal a { color: rgba(255,255,255,.7); text-decoration: none; }
.ft-legal a:hover { color: #fff; }

.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.to-top { position: fixed; right: 20px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 44px; height: 44px; background: var(--plum); color: var(--gold); border: 1px solid var(--gold); cursor: pointer; display: grid; place-items: center; }

/* ── Reveal animation ───────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .s-grid { grid-template-columns: repeat(2, 1fr); }
  .primary a { padding: 10px 9px; font-size: 13px; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .primary { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow-y: auto; display: none; }
  .primary.open { display: block; }
  .primary > ul { flex-direction: column; align-items: stretch; padding: 10px clamp(16px, 4vw, 32px) 20px; gap: 0; }
  .primary > ul > li { border-bottom: 1px solid var(--line); }
  .primary > ul > li > a { padding: 15px 0; }
  .primary > ul > li > a::after { display: none; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .sub-toggle { margin: 0; padding: 12px; }
  .sub { position: static; flex-basis: 100%; min-width: 0; box-shadow: none; border: 0; border-top: 1px dashed var(--line); opacity: 1; visibility: visible; transform: none; display: none; padding: 6px 0; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .sub a { padding: 10px 6px; }
  .primary .nav-cta { margin: 16px 0 0; border: 0; }
  .primary .nav-cta .btn { width: 100%; }
  .hdr { position: relative; }
  .hero .wrap, .split, .tab-panel, .blog-layout, .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .f-grid { grid-template-columns: 1fr; }
  .f-item + .f-item { border-left: 0; border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 33px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 66px 1fr; gap: 20px; text-align: left; padding: 0; }
  .t-num { margin: 0; }
  .c-grid, .b-grid, .inc-grid { grid-template-columns: 1fr 1fr; }
  .b-feature { grid-template-columns: 1fr; }
  .b-feature .b-media { min-height: 0; aspect-ratio: 8/5; }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .post-figure { margin-top: -24px; border-width: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .tb-hide { display: none !important; }
  .tb-social { display: none; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .2em; }
  .brand-mark { width: 40px; height: 40px; }
  .menu-btn span { display: none; }
  .s-grid, .c-grid, .b-grid, .blog-layout .b-grid, .inc-grid, .inc-grid.two, .t-grid, .ft-grid, .checks, .f-row, .post-nav { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .inline-form input + input { border-left: 0; border-top: 1px solid var(--line); }
  .frame { padding: 28px 20px; outline-offset: 6px; }
  .portrait-stats { grid-template-columns: 1fr 1fr 1fr; }
  .portrait-stats strong { font-size: 24px; }
  .tab { padding: 12px 12px; font-size: 12.5px; }
  .tab .ico { display: none; }
  .prose { font-size: 17.5px; }
  .post-nav .next { text-align: left; }
  .post-nav .next small { justify-content: flex-start; }
  .author-box { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .cta-strip, .site-footer, .sidebar, .share-bar, .post-nav, .wa-float, .to-top { display: none !important; }
  body { background: #fff; }
}

/* ── Device robustness (all phones, tablets, desktops) ───── */
/* Grid/flex children may shrink below their content width, so wide content
   (tables, long words, email addresses) never pushes the page sideways. */
.split > *, .blog-layout > *, .post-layout > *, .b-grid > *, .c-grid > *, .s-grid > *,
.t-grid > *, .inc-grid > *, .ft-grid > *, .f-row > *, .f-grid > *, .hero .wrap > *,
.tab-panel > *, .stats > *, .post-nav > *, .contact-cards > *, .c-card > div, .sidebar > *, .search-form > * { min-width: 0; }
.prose, .ft-contact, .c-card, .ft-about, .widget, .b-body, .author-box { overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; max-width: 100%; }
.prose iframe, .prose video { max-width: 100%; }
/* 16px+ form text stops iOS Safari from zooming in on focus */
input, select, textarea, .nl input, .search-form input, .inline-form input { font-size: 16px; }
details.qa summary { padding-right: 6px; }
details.qa summary::after { flex: none; width: 22px; text-align: center; }
/* Comfortable tap targets on touch screens */
@media (pointer: coarse) {
  .ft-links a, .cat-list a, .toc a, .svc-nav a { padding-block: 10px; }
  .ft-links { gap: 2px; }
  .tb-info a { padding-block: 4px; }
}
/* Very small phones (320–359px) */
@media (max-width: 359px) {
  .wrap { padding-inline: 14px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 19px; }
  .brand-sub { display: none; }
  .btn { padding: 15px 18px; letter-spacing: .08em; }
  .frame-stats strong { font-size: 28px; }
  .tb-info { gap: 4px 14px; font-size: 13px; }
  .share-btn { width: 38px; height: 38px; }
}
/* Phones in landscape: shorter hero and scrollable menu */
@media (max-height: 500px) and (orientation: landscape) {
  .hero .wrap { padding-block: 40px; }
  .site-header { position: relative; }
  .primary { max-height: 70vh; }
}
/* Tablets: keep two-column grids readable between 641px and 980px */
@media (min-width: 641px) and (max-width: 980px) {
  .hero .wrap { gap: 48px; }
  .frame { max-width: 520px; margin-inline: auto; width: 100%; }
}
/* Large screens */
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  body { font-size: 18px; }
}
