/* Camilty — Mastered execution */
:root {
  --night: #101F22;      /* deepest teal: header, hero (matches logo ground) */
  --teal: #16292D;       /* primary dark */
  --teal-2: #21393E;     /* raised dark */
  --rose: #DEAF9B;       /* rose-gold accent */
  --rose-deep: #9C7463;  /* copper, for text on light */
  --stone: #EAE0D6;      /* warm stone panels */
  --ivory: #F6F1EA;      /* page */
  --ink: #1B2A2D;        /* body text on light */
  --muted: #5E6A6B;
  --on-dark: #E9E3DB;
  --on-dark-muted: rgba(233, 227, 219, 0.72);
  --line: rgba(27, 42, 45, 0.14);
  --line-dark: rgba(222, 175, 155, 0.22);

  --f-serif: "Newsreader", Georgia, serif;
  --f-sans: "Montserrat", "Segoe UI", sans-serif;

  --s-1: .25rem; --s-2: .5rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2.5rem; --s-6: 4rem; --s-7: 6.5rem;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-sans); font-size: 1rem; line-height: 1.7; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--rose-deep); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 var(--s-3); color: var(--teal); }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.7rem; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--rose); }
p { margin: 0 0 var(--s-3); max-width: 62ch; }
.lead { font-size: 1.15rem; line-height: 1.7; max-width: 50ch; }
.rule { width: 96px; height: 2px; background: var(--rose); border: 0; margin: var(--s-4) 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--rose); color: var(--night); padding: var(--s-2) var(--s-3); z-index: 100; }
.skip:focus { left: var(--s-3); }

.dark { background: var(--teal); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #FBF7F2; }
.dark p { color: var(--on-dark-muted); }
.dark a:not(.btn) { color: var(--rose); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid var(--line-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: var(--s-4); }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: .95rem; font-weight: 500; padding: var(--s-1) 0; border-bottom: 1px solid transparent; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"]:not(.btn) { color: var(--rose); border-bottom-color: var(--rose); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--on-dark); border-radius: 2px; padding: .45rem .8rem; font: inherit; cursor: pointer; }

/* ---------- Buttons: flat rose-gold plaques, as in the posts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-sans); font-weight: 600; font-size: .98rem; padding: .95rem 1.6rem; border-radius: 2px; text-decoration: none; border: 1px solid var(--rose); cursor: pointer; transition: background .2s, color .2s; }
.btn-rose { background: linear-gradient(100deg, #E6B9A5, #D3A08A); color: var(--night); }
.btn-rose:hover { background: #F0CBB9; color: var(--night); }
.btn-line { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--ivory); }
.dark .btn-line { color: var(--on-dark); border-color: var(--rose); }
.dark .btn-line:hover { background: var(--rose); color: var(--night); }
.nav .btn { padding: .65rem 1.2rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: var(--on-dark); display: grid; grid-template-columns: 1.15fr .85fr; min-height: min(calc(100vh - 80px), 860px); }
.hero-copy { padding: var(--s-7) var(--s-6) var(--s-6) max(1.25rem, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #FBF7F2; }
.hero .triad { font-size: 1.25rem; line-height: 1.5; color: var(--on-dark); margin: 0 0 var(--s-3); }
.hero p.lead { color: var(--on-dark-muted); }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0; }
.hero-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(16,31,34,0) 28%); z-index: 1; }

/* ---------- Section rhythm ---------- */
section { padding: var(--s-7) 0; }
.stone { background: var(--stone); }
.head { max-width: 760px; margin-bottom: var(--s-6); }

/* Feature rows: image + text, alternating */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.feature + .feature { margin-top: var(--s-7); }
.feature.flip .feature-img { order: 2; }
.feature-img { position: relative; }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.feature ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature li { padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 14px; height: 1px; background: var(--rose-deep); }
.dark .feature ul, .dark .feature li { border-color: var(--line-dark); }
.dark .feature li::before { background: var(--rose); }
.feature .tagline { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--rose-deep); margin-bottom: var(--s-3); }
.dark .feature .tagline { color: var(--rose); }

/* Back-office trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); margin-top: var(--s-5); }
.trio > div { padding: var(--s-5) var(--s-4) 0 0; }
.trio > div + div { padding-left: var(--s-4); border-left: 1px solid var(--line-dark); }
.trio h3 { font-size: 1.45rem; }
.trio ul { list-style: none; margin: 0; padding: 0; }
.trio li { padding: .35rem 0; color: var(--on-dark-muted); font-size: .95rem; }
.stone .trio, .light .trio { border-color: var(--line); }
.light .trio > div + div { border-color: var(--line); }
.light .trio li { color: var(--muted); }

/* Next-step log: the one moving moment */
.log-wrap { position: relative; }
.log-wrap > img { width: 100%; height: 520px; object-fit: cover; border-radius: 2px; }
.log { position: absolute; right: var(--s-5); top: 50%; transform: translateY(-50%); width: min(440px, 90%); background: rgba(16, 31, 34, .94); border: 1px solid var(--line-dark); padding: var(--s-4) var(--s-4) var(--s-3); color: var(--on-dark); }
.log h3 { color: #FBF7F2; font-size: 1.45rem; margin-bottom: var(--s-3); }
.log ol { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--line-dark); font-size: .95rem; line-height: 1.4; }
.log li small { display: block; color: var(--on-dark-muted); font-size: .8rem; margin-top: 3px; }
.tick { width: 20px; height: 20px; border: 1px solid var(--rose); border-radius: 50%; display: grid; place-items: center; margin-top: 1px; transition: background .35s; }
.tick svg { width: 11px; height: 11px; opacity: 0; transition: opacity .35s; }
.log li.done .tick { background: var(--rose); }
.log li.done .tick svg { opacity: 1; }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--teal); }
.audience { padding: var(--s-4) var(--s-4) 0 0; }
.audience + .audience { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.audience p { color: var(--muted); font-size: .97rem; }
.audience .need { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: var(--rose-deep); }

/* Steps (real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line-dark); padding-top: var(--s-4); }
.light .steps li { border-color: var(--line); }
.steps li::before { content: counter(s); font-family: var(--f-serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--rose); display: block; margin-bottom: var(--s-3); }
.light .steps li::before { color: var(--rose-deep); }
.steps h3 { font-size: 1.4rem; }
.steps p { font-size: .95rem; }
.light .steps p { color: var(--muted); }

/* Models */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.model { border: 1px solid var(--line); background: var(--ivory); padding: var(--s-5) var(--s-4); display: flex; flex-direction: column; }
.model.featured { background: var(--teal); border-color: var(--teal); color: var(--on-dark); }
.model.featured h3 { color: #FBF7F2; }
.model.featured p, .model.featured li { color: var(--on-dark-muted); }
.model ul { padding-left: 1.1rem; margin: 0 0 var(--s-4); font-size: .95rem; }
.model .btn { margin-top: auto; align-self: flex-start; }

/* CTA band */
.cta { background: var(--night); text-align: center; padding: var(--s-7) 0; }
.cta h2 { margin-inline: auto; max-width: 20ch; }
.cta p { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* Inner page head */
.page-head { background: var(--night); color: var(--on-dark); padding: var(--s-7) 0 var(--s-6); }
.page-head h1 { color: #FBF7F2; font-size: clamp(2.5rem, 5.4vw, 4.6rem); max-width: 17ch; }
.page-head .lead { color: var(--on-dark-muted); }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-6); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal); }
.facts li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 1.3rem; color: var(--teal); }

.faq details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.faq summary { cursor: pointer; font-family: var(--f-serif); font-size: 1.35rem; color: var(--teal); list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose-deep); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--s-3); color: var(--muted); }

/* Form */
.form { display: grid; gap: var(--s-3); background: #FFFDFA; border: 1px solid var(--line); padding: var(--s-5); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: grid; gap: .35rem; }
.field label, fieldset legend { font-weight: 600; font-size: .9rem; color: var(--teal); }
.field input, .field select, .field textarea { font: inherit; font-size: .98rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 2px; background: var(--ivory); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose-deep); background: #fff; box-shadow: 0 0 0 3px rgba(222, 175, 155, .4); }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: .4rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); padding: .45rem .85rem; font-size: .9rem; font-weight: 500; cursor: pointer; background: var(--ivory); }
.checks input { accent-color: var(--rose-deep); }
.checks label:has(input:checked) { border-color: var(--rose-deep); background: #F3E2D8; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #2F6B48; }
.form-status.err { color: #A2361B; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: var(--s-6) 0 var(--s-4); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-5); }
.site-footer .brand img { height: 58px; margin-bottom: var(--s-3); }
.site-footer h3 { font-family: var(--f-sans); font-size: .95rem; font-weight: 600; color: var(--on-dark); letter-spacing: 0; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.signature { max-width: none; display: flex; align-items: center; gap: var(--s-4); justify-content: center; margin: var(--s-6) 0 var(--s-4); color: var(--on-dark); font-size: .82rem; letter-spacing: .42em; text-transform: uppercase; }
.signature::before, .signature::after { content: ""; flex: 0 1 140px; height: 1px; background: var(--rose); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); border-top: 1px solid var(--line-dark); padding-top: var(--s-4); font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-copy { padding: var(--s-6) 1.25rem; }
  .hero-img { height: 360px; order: -1; }
  .hero-img::before { background: linear-gradient(0deg, var(--night) 0%, rgba(16,31,34,0) 40%); }
  .hero-img img { object-position: 30% 25%; }
  .feature, .split { grid-template-columns: 1fr; gap: var(--s-5); }
  .feature.flip .feature-img { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: var(--s-6) 0; }
  .nav { height: 72px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: var(--s-4); background: var(--night); border-bottom: 1px solid var(--line-dark); padding: var(--s-4) 1.25rem var(--s-5); }
  .nav-links.open { display: flex; }
  .trio, .audiences { grid-template-columns: 1fr; }
  .trio > div, .trio > div + div { padding: var(--s-4) 0; border-left: 0; }
  .trio > div + div { border-top: 1px solid var(--line-dark); }
  .audience, .audience + .audience { padding: var(--s-4) 0; border-left: 0; }
  .audience + .audience { border-top: 1px solid var(--line); }
  .log-wrap > img { height: 260px; }
  .log { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: -40px; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: var(--s-4); }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .signature { letter-spacing: .3em; font-size: .75rem; }
  .signature::before, .signature::after { flex-basis: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ================= Articles ================= */
.latest-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.latest-head h2 { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-4); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.card-link { display: flex; flex-direction: column; gap: var(--s-3); text-decoration: none; color: inherit; height: 100%; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; transition: filter .3s; }
.card-link:hover img { filter: brightness(1.06); }
.card h2 { font-size: 1.65rem; line-height: 1.15; margin: 0 0 var(--s-2); color: var(--teal); }
.card-link:hover h2 { color: var(--rose-deep); }
.card p { font-size: .95rem; color: var(--muted); margin: 0 0 var(--s-3); }
.card .card-meta { font-size: .82rem; font-weight: 600; color: var(--rose-deep); margin-bottom: var(--s-2); }
.card .read { font-weight: 600; font-size: .9rem; color: var(--teal); border-bottom: 1px solid var(--rose); align-self: flex-start; }
.card .mins { font-weight: 400; color: var(--muted); }
.card-lead { grid-column: 1 / -1; }
.card-lead .card-link { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-5); align-items: center; }
.card-lead h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.card-lead p { font-size: 1.05rem; }

.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.filters a { text-decoration: none; color: var(--teal); border: 1px solid var(--line); padding: .45rem 1rem; font-size: .9rem; font-weight: 500; }
.filters a:hover { border-color: var(--rose-deep); }
.filters a[aria-current] { background: var(--teal); color: var(--ivory); border-color: var(--teal); }
.empty { max-width: 560px; padding: var(--s-5) 0; }

/* Single article */
.narrow { width: min(100% - 2.5rem, 720px); margin-inline: auto; }
.post-head { background: var(--night); color: var(--on-dark); padding: var(--s-7) 0 var(--s-6); }
.post-head h1 { color: #FBF7F2; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.post-head .lead { color: var(--on-dark-muted); }
.post-meta { font-size: .85rem; color: var(--on-dark-muted); margin-bottom: var(--s-4); }
.post-meta a { color: var(--rose); text-decoration: none; font-weight: 600; }
.post-cover { margin: calc(var(--s-5) * -1) auto 0; max-width: 1000px; }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 2px; }
.post-body { padding: var(--s-6) 0 var(--s-7); font-family: var(--f-serif); font-size: 1.24rem; line-height: 1.75; color: #22302F; }
.post-body p, .post-body li { max-width: none; }
.post-body p { margin: 0 0 1.3em; }
.post-body h2 { font-size: 2rem; margin: 1.6em 0 .6em; }
.post-body h3 { font-size: 1.5rem; margin: 1.4em 0 .5em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.post-body li { margin-bottom: .45em; }
.post-body li::marker { color: var(--rose-deep); }
.post-body blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid var(--rose); font-style: italic; font-size: 1.4rem; color: var(--teal); }
.post-body a { color: var(--rose-deep); }
.post-body img { margin: 1.5em 0; border-radius: 2px; }
.post-body strong { font-weight: 600; color: var(--teal); }
.post-sign { font-family: var(--f-sans); font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-3); margin-top: var(--s-5); }
.preview-bar { background: var(--rose); color: var(--night); text-align: center; padding: .7rem 1rem; font-weight: 600; font-size: .92rem; }
.preview-bar a { color: var(--night); }

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-lead .card-link { grid-template-columns: 1fr; gap: var(--s-3); }
}
@media (max-width: 640px) {
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .post-body { font-size: 1.12rem; }
  .post-cover { margin-top: 0; width: 100%; }
}

/* LinkedIn */
.li-link { display: inline-flex; align-items: center; gap: .5rem; }
.li-icon { width: 16px; height: 16px; flex: none; }
.post-share { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); font-family: var(--f-sans); }
.post-share .btn { font-size: .92rem; padding: .75rem 1.2rem; }
.post-body .post-share a.btn-rose { color: var(--night); text-decoration: none; }
.post-body .post-share a.btn-line { color: var(--teal); text-decoration: none; }
.post-body .post-share a.btn-line:hover { color: var(--ivory); }

/* ================= Interactive: service explorer ================= */
.ex { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-5); align-items: start; }
.ex-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.ex-tab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-muted); font: inherit; font-size: 1rem; font-weight: 500; padding: 1rem .25rem 1rem 1.1rem; cursor: pointer; position: relative; transition: color .2s, padding .2s; }
.ex-tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--rose); transition: width .25s; }
.ex-tab:hover { color: var(--on-dark); }
.ex-tab[aria-selected="true"] { color: #FBF7F2; padding-left: 2.1rem; font-weight: 600; }
.ex-tab[aria-selected="true"]::before { width: 1.4rem; }
.ex-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-5); align-items: center; animation: exIn .45s ease; }
.ex-panel[hidden] { display: none; }
.ex-visual img, .ex-visual svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; display: block; }
.ex-copy h3 { font-size: 2.1rem; }
.ex-copy .tagline { font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; color: var(--rose); margin-bottom: var(--s-2); }
.ex-copy ul { list-style: none; padding: 0; margin: var(--s-3) 0 var(--s-4); border-top: 1px solid var(--line-dark); }
.ex-copy li { padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid var(--line-dark); position: relative; color: var(--on-dark); font-size: .95rem; }
.ex-copy li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 12px; height: 1px; background: var(--rose); }
@keyframes exIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.team-art { width: 100%; height: auto; display: block; border-radius: 2px; aspect-ratio: 4 / 3; }

/* ================= Interactive: technology demo ================= */
.tech-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-6); align-items: center; }
.tech-points { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-5); }
.tech-points li { padding: .7rem 0; border-top: 1px solid var(--line); font-size: .97rem; color: var(--muted); }
.tech-points strong { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 1.25rem; color: var(--teal); }
.demo { background: var(--night); border-radius: 8px; box-shadow: 0 30px 60px -30px rgba(16,31,34,.6); overflow: hidden; color: var(--on-dark); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; background: var(--teal-2); }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); opacity: .8; }
.demo-bar span:nth-child(2) { opacity: .5; } .demo-bar span:nth-child(3) { opacity: .3; }
.demo-bar p { margin: 0 0 0 .8rem; font-size: .8rem; color: var(--on-dark-muted); }
.demo-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.demo-nav { display: flex; flex-direction: column; gap: 2px; padding: .8rem .5rem; background: rgba(33,57,62,.55); }
.demo-nav button { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; color: var(--on-dark-muted); font: inherit; font-size: .88rem; padding: .6rem .7rem; border-radius: 4px; cursor: pointer; text-align: left; }
.demo-nav button:hover { color: var(--on-dark); }
.demo-nav button[aria-selected="true"] { background: rgba(222,175,155,.16); color: #FBF7F2; }
.demo-nav b { font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rose); color: var(--night); display: grid; place-items: center; padding: 0 5px; transition: transform .2s; }
.demo-nav b.zero { background: transparent; color: var(--on-dark-muted); border: 1px solid var(--line-dark); }
.demo-nav b.bump { transform: scale(1.25); }
.demo-main { padding: 1.1rem 1.2rem; position: relative; }
.demo-h { font-size: .8rem; color: var(--on-dark-muted); margin: 0 0 .6rem; }
.demo-list { list-style: none; margin: 0; padding: 0; }
.demo-list li { border-top: 1px solid var(--line-dark); padding: .75rem 0; font-size: .92rem; line-height: 1.35; transition: opacity .3s; }
.demo-list small { display: block; color: var(--on-dark-muted); font-size: .76rem; margin-top: 2px; }
.demo-list label { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.demo-list input { accent-color: var(--rose); width: 17px; height: 17px; margin-top: 2px; }
.demo-list li.done span { text-decoration: line-through; opacity: .55; }
.demo-list .ap { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.demo-btn { background: var(--rose); color: var(--night); border: 0; font: inherit; font-size: .8rem; font-weight: 600; padding: .45rem .8rem; border-radius: 3px; cursor: pointer; }
.demo-btn[disabled] { background: transparent; color: var(--rose); border: 1px solid var(--rose); cursor: default; }
.demo-list .rn { display: grid; grid-template-columns: 1fr 90px 64px; gap: .8rem; align-items: center; }
.demo-list .rn i { height: 5px; background: rgba(233,227,219,.12); border-radius: 3px; position: relative; overflow: hidden; }
.demo-list .rn i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--rose); border-radius: 3px; }
.demo-list .rn i.warn::after { background: #E58A6B; }
.demo-list .rn em { font-style: normal; font-size: .8rem; color: var(--on-dark-muted); text-align: right; }
.demo-status { margin: .8rem 0 0; font-size: .8rem; color: var(--rose); min-height: 1.2em; }

/* ================= Interactive: calculator ================= */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.calc-box { background: var(--ivory); border: 1px solid var(--line); padding: var(--s-5); display: grid; gap: var(--s-4); }
.range { display: grid; gap: .6rem; font-weight: 600; font-size: .95rem; color: var(--teal); }
.range span { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.range output { font-family: var(--f-serif); font-size: 1.7rem; font-weight: 500; color: var(--rose-deep); min-width: 2ch; text-align: right; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--rose-deep) var(--p, 20%), var(--line) var(--p, 20%)); outline: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); border: 3px solid var(--rose); cursor: pointer; }
.range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 3px solid var(--rose); cursor: pointer; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(222,175,155,.5); }
.calc-out { border-top: 2px solid var(--teal); padding-top: var(--s-3); }
.calc-out p { margin: 0 0 .3rem; font-size: 1rem; }
.calc-out strong { font-family: var(--f-serif); font-weight: 500; font-size: 2.4rem; color: var(--teal); line-height: 1.1; }
.calc-out p + p strong { font-size: 1.4rem; }
.calc-note { font-size: .8rem; color: var(--muted); margin: 0; }
.calc .btn { justify-self: start; }

/* Teaser band */
.teaser { padding: var(--s-6) 0; background: var(--night); }
.teaser-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.teaser h2 { margin-bottom: var(--s-2); }

/* ================= Interactive: health check ================= */
.hc-section { padding-top: var(--s-6); }
.hc { position: relative; }
.hc-progress { height: 3px; background: var(--line); margin-bottom: var(--s-5); }
.hc-progress span { display: block; height: 100%; width: 0; background: var(--rose-deep); transition: width .35s ease; }
.hc-q { border: 0; padding: 0; margin: 0; animation: exIn .4s ease; }
.hc-q legend { font-family: var(--f-serif); font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; color: var(--teal); padding: 0; margin-bottom: var(--s-5); }
.hc-count { display: block; font-family: var(--f-sans); font-size: .85rem; font-weight: 600; color: var(--rose-deep); margin-bottom: var(--s-3); }
.hc-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.hc-opts label { cursor: pointer; }
.hc-opts input { position: absolute; opacity: 0; pointer-events: none; }
.hc-opts span { display: block; text-align: center; padding: 1.2rem 1rem; border: 1px solid var(--line); background: #FFFDFA; font-weight: 600; color: var(--teal); transition: border-color .2s, background .2s, transform .15s; }
.hc-opts label:hover span { border-color: var(--rose-deep); }
.hc-opts input:checked + span { background: var(--teal); color: var(--ivory); border-color: var(--teal); }
.hc-opts input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 3px; }
.hc-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); }
.hc-nav .btn[disabled] { opacity: .35; cursor: default; }
.hc-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.hc-result { animation: exIn .5s ease; outline: none; }
.hc-score { position: relative; width: 170px; height: 170px; margin-bottom: var(--s-4); }
.hc-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hc-score circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--line); }
.ring { stroke: var(--rose-deep); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s ease; }
.hc-score div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hc-score strong { font-family: var(--f-serif); font-weight: 500; font-size: 3.2rem; line-height: 1; color: var(--teal); }
.hc-score span { font-size: .78rem; color: var(--muted); }
.hc-bars { display: grid; gap: .9rem; margin: var(--s-5) 0; }
.hc-bar { display: grid; grid-template-columns: 220px 1fr 44px; gap: var(--s-3); align-items: center; font-size: .95rem; }
.hc-bar i { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.hc-bar i b { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--teal); transition: width 1s ease; }
.hc-bar.weak i b { background: var(--rose-deep); }
.hc-bar em { font-style: normal; font-weight: 600; color: var(--teal); text-align: right; }
.hc-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.hc-rec { border: 1px solid var(--line); background: #FFFDFA; padding: var(--s-4); }
.hc-rec h4 { font-family: var(--f-serif); font-weight: 500; font-size: 1.3rem; color: var(--teal); margin: 0 0 .4rem; }
.hc-rec p { font-size: .92rem; color: var(--muted); margin: 0 0 .8rem; }
.hc-rec a { font-weight: 600; font-size: .9rem; }

@media (max-width: 1000px) {
  .ex { grid-template-columns: 1fr; }
  .ex-tabs { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line-dark); scrollbar-width: none; }
  .ex-tab { white-space: nowrap; border-bottom: 2px solid transparent; padding: .8rem 1rem; }
  .ex-tab::before { display: none; }
  .ex-tab[aria-selected="true"] { padding-left: 1rem; border-bottom-color: var(--rose); }
  .tech-grid, .calc-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 760px) {
  .ex-panel { grid-template-columns: 1fr; gap: var(--s-4); }
  .demo-body { grid-template-columns: 1fr; }
  .demo-nav { flex-direction: row; overflow-x: auto; }
  .demo-nav button { flex: 1; gap: .4rem; justify-content: center; white-space: nowrap; }
  .demo-list .rn { grid-template-columns: 1fr 60px; }
  .demo-list .rn i { display: none; }
  .hc-opts { grid-template-columns: 1fr; }
  .hc-bar { grid-template-columns: 1fr 44px; }
  .hc-bar i { grid-column: 1 / -1; order: 3; }
  .calc-box { padding: var(--s-4); }
}
@media (prefers-reduced-motion: reduce) {
  .ex-panel, .hc-q, .hc-result { animation: none; }
}
.hc-result, .hc { scroll-margin-top: 110px; }
.hc-result .btn-row + .calc-note { margin-top: var(--s-3); }
