/* SOLVYN, a Vitana Venture — solvyn.vitanaventures.in
   Palette from the SOLVYN brand brief: matte stone and alabaster, deep obsidian, graphite, brushed gold. */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --stone: #EFECE6;
  --alabaster: #F4F3EE;
  --obsidian: #141619;
  --graphite: #2D323A;
  --gold: #A67C2E;
  --gold-ink: #7A5A1E;      /* gold text on light: 5.6:1 on stone */
  --gold-light: #D9A441;    /* gold on dark surfaces */
  --muted: #5B6069;         /* secondary text on light: 5.9:1 */
  --muted-dark: #A3A8B0;    /* secondary text on dark */
  --rule: #D8D3C9;
  --rule-dark: #33383F;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2.0rem;
  --step-4: clamp(2.25rem, 4.2vw, 3.25rem);
  --step-5: clamp(2.6rem, 6vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--obsidian);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; max-width: 64ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--step-5); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--obsidian); color: var(--alabaster); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The SOLVYN name, styled as the logo wordmark */
.sv-name {
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
  background: linear-gradient(90deg, #451A03, #B45309 55%, #C9790F);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.dark .sv-name, .site-footer .sv-name { background-image: linear-gradient(90deg, #B45309, #F59E0B 55%, #FDE68A); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 236, 230, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(239, 236, 230, 0.82); backdrop-filter: blur(10px); } }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { width: 158px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding: 8px 12px; border-radius: 6px; color: var(--graphite);
}
.nav a:hover { color: var(--obsidian); background: rgba(20, 22, 25, 0.05); }
.nav a[aria-current="page"] { color: var(--obsidian); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 9px 12px; font: inherit; font-weight: 500; color: var(--obsidian); cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--alabaster); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 22px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--obsidian); color: var(--alabaster); }
.btn-primary:hover { background: var(--graphite); }
.dark .btn-primary { background: var(--gold-light); color: var(--obsidian); }
.dark .btn-primary:hover { background: #E8B85C; }
.btn-quiet { border-color: currentColor; color: inherit; background: transparent; }
.btn-quiet:hover { background: rgba(127, 127, 127, 0.1); }
.nav .btn { padding: 11px 16px; font-size: 0.95rem; color: var(--alabaster); }
.nav .btn:hover { background: var(--graphite); color: var(--alabaster); }
.nav a.btn[aria-current="page"], .nav a.btn[aria-current="page"]:hover { color: var(--alabaster); background: var(--graphite); box-shadow: none; border-radius: 8px; padding-left: 16px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.dark { background: var(--obsidian); color: #E9E7E1; }
.dark + .section, .section + .dark { border-top: 0; }
.raised { background: var(--alabaster); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--graphite); max-width: 58ch; }
.dark .lede { color: #C9CCD1; }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-dark); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: currentColor; }

/* Page intro (inner pages) */
.page-intro { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-intro h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 18ch; }
.page-intro .lede { margin-top: 24px; }
.crumb { display: block; color: var(--muted); font-size: var(--step--1); margin-bottom: 18px; font-weight: 500; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13.5ch; }
.hero h1 .line2 { display: block; color: var(--graphite); }
.hero .sub { font-size: var(--step-1); font-weight: 500; margin: 26px 0 12px; }
.hero .lede { font-size: var(--step-0); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Signature: your logic → your system */
.logic {
  background: var(--obsidian); color: #E9E7E1;
  border-radius: 14px; padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(20,22,25,0.45);
}
.logic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.logic h2 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--muted-dark); margin-bottom: 14px; }
.logic h2 strong { color: #F1EFEA; font-weight: 600; }
.today li { list-style: none; position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--rule-dark); font-size: 0.93rem; line-height: 1.4; color: #D5D7DB; }
.today li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; border: 1.5px solid #6B7079; border-radius: 50%; }
.system { position: relative; }
.mod {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--rule-dark); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
  background: #1B1E22; font-size: 0.93rem; line-height: 1.3;
}
.mod:last-child { margin-bottom: 0; }
.mod b { font-weight: 600; color: #F4F3EE; display: block; }
.mod span { color: var(--muted-dark); font-size: 0.82rem; }
.mod i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(217,164,65,0.16); }
.mod + .mod::before { content: ""; position: absolute; left: 15px; top: -11px; width: 2px; height: 10px; background: var(--gold-light); opacity: .7; }
.logic-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; gap: 16px; font-size: 0.85rem; color: var(--muted-dark); }
.logic-foot strong { color: var(--gold-light); font-weight: 600; }
@media (max-width: 560px) { .logic-cols { grid-template-columns: 1fr; } }

/* One orchestrated load moment: today's steps settle, the system assembles */
@media (prefers-reduced-motion: no-preference) {
  .logic .today li { animation: settle .5s ease both; }
  .logic .mod { animation: assemble .55s cubic-bezier(.2,.7,.2,1) both; }
  .logic .today li:nth-child(1) { animation-delay: .15s; }
  .logic .today li:nth-child(2) { animation-delay: .3s; }
  .logic .today li:nth-child(3) { animation-delay: .45s; }
  .logic .today li:nth-child(4) { animation-delay: .6s; }
  .logic .today li:nth-child(5) { animation-delay: .75s; }
  .logic .mod:nth-child(1) { animation-delay: 1.0s; }
  .logic .mod:nth-child(2) { animation-delay: 1.15s; }
  .logic .mod:nth-child(3) { animation-delay: 1.3s; }
  .logic .mod:nth-child(4) { animation-delay: 1.45s; }
  .logic .logic-foot { animation: settle .6s ease 1.75s both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes assemble { from { opacity: 0; transform: translateX(-14px); border-color: var(--gold-light); } to { opacity: 1; transform: none; } }

/* Comparison table */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--obsidian); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-weight: 600; font-size: 0.95rem; color: var(--muted); padding-top: 16px; }
.compare thead th.us { color: var(--obsidian); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--graphite); width: 19.5%; }
.compare td.us { color: var(--obsidian); font-weight: 500; background: linear-gradient(var(--alabaster), var(--alabaster)) padding-box; box-shadow: inset 3px 0 0 var(--gold); padding-left: 16px; }
.compare thead th.us { padding-left: 16px; }

/* Service rows */
.svc-list { border-top: 2px solid var(--obsidian); }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 56px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.svc h3 { font-size: var(--step-2); }
.svc p { margin: 0; color: var(--graphite); }
.svc a.svc-more { display: inline-block; margin-top: 12px; }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; } }

/* Service detail */
.svc-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--rule); }
.svc-detail:first-child { padding-top: 0; }
.svc-detail h2 { font-size: var(--step-3); }
.svc-detail .for { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.deliver { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 22px; }
.deliver li { list-style: none; padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); position: relative; font-size: 0.98rem; }
.deliver li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 2px; background: var(--gold); }
.deliver-label { margin: 26px 0 0; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; } .deliver { grid-template-columns: 1fr; } }

/* Work */
.work-list { border-top: 2px solid var(--obsidian); }
.proj { display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2.2fr); gap: 20px 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.proj img.ic { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.proj h3 { font-size: var(--step-2); }
.proj .kind { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }
.proj p { margin: 0; color: var(--graphite); }
.proj .facts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; color: var(--muted); }
.proj .side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--alabaster); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8A8F98; }
.status.live::before { background: #2F8F5B; }
.status.use::before { background: var(--gold); }
.status.trial::before { background: #2F6F9F; }
.proj.feature { grid-template-columns: 72px minmax(0, 10fr) minmax(0, 2.2fr); }
.proj.feature .body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px 32px; }
@media (max-width: 960px) {
  .proj, .proj.feature { grid-template-columns: 64px minmax(0, 1fr); }
  .proj > .desc, .proj > .side, .proj.feature .body { grid-column: 2; }
  .proj.feature .body { grid-template-columns: 1fr; }
  .proj .side { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
.also { margin-top: 28px; color: var(--muted); }

/* Featured work (home) */
.feat { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; border-top: 2px solid #E9E7E1; }
.feat article { padding: 28px 28px 28px 0; border-right: 1px solid var(--rule-dark); }
.feat article + article { padding-left: 28px; }
.feat article:last-child { border-right: 0; padding-right: 0; }
.feat img { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 18px; object-fit: cover; }
.feat h3 { font-size: var(--step-2); color: #F4F3EE; }
.feat .kind { color: var(--muted-dark); font-size: 0.92rem; margin: 6px 0 14px; }
.feat p { color: #C9CCD1; font-size: 0.98rem; }
.feat .status { background: transparent; border-color: var(--rule-dark); color: #E9E7E1; }
.feat .big { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--gold-light); line-height: 1; margin: 6px 0 4px; }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
  .feat article, .feat article + article { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--rule-dark); }
  .feat article:last-child { border-bottom: 0; }
}

/* Process steps (a real sequence, so numbered) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--obsidian); }
.steps li { list-style: none; counter-increment: step; padding: 24px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; font-size: var(--step-3); font-weight: 600; color: var(--gold-ink); line-height: 1; margin-bottom: 18px; }
.steps h3 { font-size: var(--step-1); margin-bottom: 8px; }
.steps p { color: var(--graphite); font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { border-left: 0; padding-left: 0; } .steps li { padding-bottom: 24px; border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; padding-left: 0; } }

/* Long process timeline */
.timeline { counter-reset: t; border-left: 2px solid var(--obsidian); margin-left: 18px; }
.timeline li { list-style: none; counter-increment: t; position: relative; padding: 0 0 clamp(36px, 5vw, 52px) 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(t); position: absolute; left: -19px; top: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--stone); border: 2px solid var(--obsidian); display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; }
.timeline h3 { font-size: var(--step-2); }
.timeline .when { color: var(--gold-ink); font-weight: 600; font-size: 0.95rem; margin: 6px 0 10px; }
.timeline p { color: var(--graphite); }
.timeline .out { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.principles div { padding: 26px 0; border-top: 1px solid var(--rule-dark); }
.principles h3 { font-size: var(--step-1); color: #F4F3EE; margin-bottom: 10px; }
.principles p { margin: 0; color: #C9CCD1; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid var(--obsidian); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: var(--step-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--obsidian); border-bottom: 2px solid var(--obsidian); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--graphite); padding-bottom: 8px; }

/* Two-column prose (about) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; }
.split + .split { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.split h2 { font-size: var(--step-3); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.statement { font-size: var(--step-2); line-height: 1.38; font-weight: 500; letter-spacing: -0.012em; max-width: 34ch; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--obsidian); }
.facts-grid div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.facts-grid dt { color: var(--muted); font-size: 0.92rem; }
.facts-grid dd { margin: 4px 0 0; font-weight: 600; font-size: var(--step-1); }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.cta h2 { max-width: 16ch; }
.cta .promise { border-left: 2px solid var(--gold-light); padding-left: 18px; color: #C9CCD1; margin-bottom: 24px; }
.cta .promise strong { color: #F4F3EE; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Demo page */
.demo-grid { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.demo-aside { position: sticky; top: 104px; }
.demo-aside h2 { font-size: var(--step-2); margin-bottom: 18px; }
.next { counter-reset: n; border-top: 2px solid var(--obsidian); }
.next li { list-style: none; counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.next li::before { content: counter(n); font-weight: 600; color: var(--gold-ink); font-size: var(--step-1); line-height: 1.2; }
.next b { display: block; margin-bottom: 2px; }
.next span { color: var(--graphite); font-size: 0.97rem; }
.hours { margin-top: 24px; padding: 18px 20px; background: var(--alabaster); border: 1px solid var(--rule); border-radius: 10px; font-size: 0.97rem; }
.hours b { display: block; margin-bottom: 4px; }
@media (max-width: 920px) { .demo-grid { grid-template-columns: 1fr; } .demo-aside { position: static; order: 2; } }

.form-card { background: var(--alabaster); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(22px, 3.4vw, 40px); }
.form-card h2 { font-size: var(--step-3); }
.form-card > p.muted { margin: 10px 0 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.fgroup > legend { font-weight: 600; font-size: var(--step-1); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.fgroup > legend + * { clear: both; }
.fgroup .hint { color: var(--muted); font-size: 0.93rem; margin: 0 0 16px; clear: both; padding-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--obsidian);
  background: #FFFFFF; border: 1px solid #BDB7AB; border-radius: 8px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--obsidian); box-shadow: 0 0 0 3px rgba(166,124,46,0.28); }
.field [aria-invalid="true"] { border-color: #A3332B; }
.field .err { display: none; color: #A3332B; font-size: 0.9rem; margin-top: 6px; }
.field.has-err .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 15px; border: 1px solid #BDB7AB; border-radius: 999px; background: #fff; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.chip input:checked + span { background: var(--obsidian); border-color: var(--obsidian); color: var(--alabaster); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 28px; font-size: 0.95rem; color: var(--graphite); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--obsidian); }
.consent a { font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 28px; }
.form-actions .btn[disabled] { opacity: .65; cursor: progress; }
.form-actions small { color: var(--muted); font-size: 0.92rem; }
.form-error { display: none; margin-top: 20px; padding: 14px 16px; border-radius: 8px; background: #F6E3E0; color: #7E2620; border: 1px solid #E5BDB7; }
.form-error.show { display: block; }

.confirm { display: none; }
.confirm.show { display: block; }
.confirm:focus { outline: none; }
.confirm-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--obsidian); display: grid; place-items: center; margin-bottom: 22px; }
.confirm-mark svg { width: 26px; height: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .confirm.show .confirm-mark { animation: pop .45s cubic-bezier(.2,.9,.3,1.3) both; }
  .confirm.show .confirm-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s ease .25s forwards; }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm h2 { font-size: var(--step-3); }
.reply-by { margin: 22px 0; padding: 20px 22px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 10px 10px 0; }
.reply-by .label { color: var(--muted); font-size: 0.93rem; }
.reply-by strong { display: block; font-size: var(--step-2); letter-spacing: -0.015em; margin-top: 4px; line-height: 1.25; }
.confirm dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 22px; font-size: 0.97rem; }
.confirm dt { color: var(--muted); }
.confirm dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--obsidian); color: #C9CCD1; padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.3fr)); gap: 36px 40px; }
.foot-brand img { width: 190px; }
.foot-brand p { margin-top: 18px; max-width: 36ch; color: var(--muted-dark); }
.site-footer h2 { font-size: 0.95rem; color: #F4F3EE; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.site-footer li { list-style: none; margin-bottom: 9px; }
.site-footer a { text-decoration: none; color: #C9CCD1; }
.site-footer a:hover { color: #F4F3EE; text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted-dark); font-size: 0.9rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Small utilities (no inline styles: the CSP forbids them) */
.mt-xs { margin-top: 10px; } .mt-s { margin-top: 14px; } .mt-m { margin-top: 22px; } .mt-l { margin-top: 36px; }
.small { font-size: 0.92rem; }
.lede-body { font-size: var(--step-0); color: var(--graphite); }
.split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-3 > div { padding-top: 22px; border-top: 2px solid var(--obsidian); }
@media (max-width: 860px) { .split-3 { grid-template-columns: 1fr; } }
.h1-sm { font-size: var(--step-4); }

/* 404 */
.notfound { min-height: 56vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta { display: none; } body { background: #fff; } }
