/* Shared structure. Each site's theme.css sets the tokens below and picks variants via <body> classes. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link, var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); color: var(--head, var(--ink)); line-height: 1.12; margin: 0 0 .5em; font-weight: var(--head-weight, 700); letter-spacing: var(--head-tracking, -0.02em); text-transform: var(--head-case, none); }
h1 { font-size: clamp(2.2rem, 5vw, var(--h1-max, 3.6rem)); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  display: inline-block; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--eyebrow, var(--accent)); margin-bottom: 1rem;
}
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--btn-radius, 10px); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); cursor: pointer; text-decoration: none !important; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong, var(--accent)); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Top bar + header */
.topbar { background: var(--topbar-bg, var(--ink)); color: var(--topbar-ink, #fff); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.topbar a { color: inherit; font-weight: 600; }
.site-header { background: var(--header-bg, var(--bg)); color: var(--header-ink, var(--ink)); border-bottom: 1px solid var(--header-line, var(--line)); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none !important; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font: 700 1.2rem/1.1 var(--font-head); letter-spacing: var(--head-tracking, -0.02em); text-transform: var(--head-case, none); }
.brand-name small { display: block; font: 500 .72rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--header-muted, var(--muted)); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: inherit; font-weight: 500; font-size: .98rem; }
.nav a[aria-current="page"]:not(.btn) { color: var(--nav-active, var(--accent)); }
.nav .btn { padding: .65rem 1.15rem; }
.nav a.btn--primary { color: var(--on-accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: inherit; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

/* Hero */
.hero { background: var(--hero-bg, var(--bg)); color: var(--hero-ink, var(--ink)); position: relative; overflow: hidden; }
.hero h1 { color: var(--hero-head, var(--hero-ink, var(--head, var(--ink)))); }
.hero .lead { color: var(--hero-muted, var(--muted)); }
.hero > .container { position: relative; z-index: 1; padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .65rem; }
.hero-points li { display: flex; gap: .65rem; align-items: flex-start; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep, var(--accent)); display: grid; place-items: center; margin-top: 3px; }
.check svg { width: 13px; height: 13px; }
.hero--split > .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero--center > .container { text-align: center; max-width: 900px; }
.hero--center .hero-actions, .hero--center .chips { justify-content: center; }
.hero--center .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.hero--editorial > .container { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; }
.hero--editorial h1 { font-size: clamp(2.6rem, 6.4vw, var(--h1-max, 4.6rem)); }
.hero--editorial .hero-aside { border-left: 1px solid var(--hero-line, var(--line)); padding-left: 2rem; }
.hero--banner > .container { max-width: 1180px; }
.hero--banner h1 { max-width: 820px; }
.hero--banner .lead { max-width: 640px; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--hero-line, var(--line)); font-size: .88rem; color: var(--hero-muted, var(--muted)); }

/* Cards and forms */
.card { background: var(--surface); border: 1px solid var(--card-line, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow, none); color: var(--ink); }
.form-card { padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-card h2 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--input-bg, var(--surface));
  border: 1.5px solid var(--input-line, var(--line)); border-radius: var(--input-radius, 8px); padding: .75rem .85rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid select { border-color: #c4321c; }
.field-error { color: #c4321c; font-size: .82rem; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .6rem 0 0; font-size: .9rem; }
.form-status.error { color: #c4321c; }
.form-success { text-align: center; padding: 1rem 0; }
.form-success .icon-badge { margin: 0 auto 1rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink-bg, var(--ink)); color: var(--ink-fg, #fff); }
.section--ink h2, .section--ink h3 { color: inherit; }
.section--ink .lead, .section--ink .muted { color: var(--ink-muted, rgba(255,255,255,.75)); }
.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 1.8rem; }
.feature p { color: var(--muted); margin: 0; }
.icon-badge { width: 48px; height: 48px; border-radius: var(--badge-radius, 12px); background: var(--accent-soft); color: var(--accent-deep, var(--accent)); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon-badge svg { width: 24px; height: 24px; }
.cards--outline .feature { background: transparent; box-shadow: none; }
.cards--line .feature { border: 0; border-top: 3px solid var(--accent); border-radius: 0; background: transparent; box-shadow: none; padding: 1.4rem 0 0; }
.cards--bento .grid-3 > .feature:first-child { grid-column: span 2; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.cards--bento .grid-3 > .feature:first-child h3, .cards--bento .grid-3 > .feature:first-child p { color: var(--on-accent); }
.cards--bento .grid-3 > .feature:first-child .icon-badge { background: rgba(255,255,255,.18); color: var(--on-accent); }
.steps { counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem 4.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.5rem;
  font: 700 1.25rem/1 var(--font-head); color: var(--accent);
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); }
.section--ink .step p { color: var(--ink-muted, rgba(255,255,255,.75)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.list-check { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.list-check li { display: flex; gap: .65rem; }
.panel { padding: 2rem; }
.facts { display: grid; gap: 1.1rem; margin: 0; }
.facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: .15rem 0 0; font-weight: 600; }
.cta-band { background: var(--cta-bg, var(--accent)); color: var(--cta-ink, var(--on-accent)); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: inherit; margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn--primary { background: var(--cta-btn-bg, #fff); color: var(--cta-btn-ink, var(--ink)); }
.page-hero { background: var(--hero-bg, var(--bg-alt)); color: var(--hero-ink, var(--ink)); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero h1 { color: var(--hero-head, var(--hero-ink, var(--head, var(--ink)))); max-width: 820px; }
.page-hero .lead { color: var(--hero-muted, var(--muted)); max-width: 680px; margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; align-items: start; }
.contact-item { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-badge { width: 42px; height: 42px; margin: 0; flex: none; }
.contact-item strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item span, .contact-item a { font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { background: var(--footer-bg, var(--ink)); color: var(--footer-ink, rgba(255,255,255,.78)); padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--footer-head, #fff); font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .brand { color: var(--footer-head, #fff); margin-bottom: 1rem; }
.site-footer .brand-name small { color: inherit; opacity: .7; }
.footer-bottom { border-top: 1px solid var(--footer-line, rgba(255,255,255,.14)); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; opacity: .8; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }

@media (max-width: 960px) {
  .hero--split > .container, .hero--editorial > .container, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero--editorial .hero-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--hero-line, var(--line)); padding-top: 1.5rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards--bento .grid-3 > .feature:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1rem; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--header-line, var(--line)); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; }
  .nav .btn { margin-top: .5rem; }
  .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards--bento .grid-3 > .feature:first-child { grid-column: auto; }
  .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* --- Pictures ------------------------------------------------------------------------------ */
.pic { width: 100%; height: 100%; object-fit: cover; display: block; }
body { --pic-radius: var(--radius, 14px); }
body.shape-sharp { --pic-radius: 0; }
body.shape-pill { --pic-radius: 999px; }
.shape-arch .hero-media .pic, .shape-arch .split-media .pic { border-radius: 999px 999px var(--radius, 14px) var(--radius, 14px); }
.hero-media .pic, .split-media .pic, .gallery .pic, .feature-pic { border-radius: var(--pic-radius); }
.shape-pill .split-media .pic, .shape-pill .hero-media .pic { border-radius: 48px; }
.shape-pill .gallery .pic, .shape-pill .feature-pic { border-radius: 24px; }

/* Full-bleed photo heroes and photo bands */
.hero--photo, .photo-band { position: relative; isolation: isolate; color: #fff; }
.hero--photo .hero-bg, .photo-band .band-pic { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,12,16,.78) 0%, rgba(10,12,16,.55) 45%, rgba(10,12,16,.2) 100%); }
.hero--photo h1, .hero--photo .lead, .hero--photo .eyebrow, .photo-band h2, .photo-band p { color: #fff; }
.hero--photo .lead { color: rgba(255,255,255,.88); }
.hero--photo > .container { padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(5rem, 12vw, 9rem); }
.hero--photo .hero-copy { max-width: 720px; }
.hero--photo .chip { color: #fff; border-color: rgba(255,255,255,.4); }
.hero--photo .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero--split.hero--photo .form-card { color: var(--ink); }
.photo-band > .container { padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(4rem, 10vw, 7rem); max-width: 900px; text-align: center; }
.photo-band p { font-size: 1.15rem; margin: 1rem auto 1.6rem; max-width: 640px; }

/* Text beside a large photo */
.hero--side > .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero--side .hero-media { aspect-ratio: 4 / 5; max-height: 620px; }
/* Centered text over a wide photo */
.hero--stacked .hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
.hero--stacked .hero-actions, .hero--stacked .chips { justify-content: center; }
.hero--stacked .lead { margin-left: auto; margin-right: auto; max-width: 680px; }
.hero--stacked .hero-media { margin-top: clamp(2.5rem, 5vw, 3.5rem); aspect-ratio: 21 / 9; }

/* Split sections with a picture */
.split-media { aspect-ratio: 4 / 3; }
.split--flip > :first-child { order: 2; }
.about-media { margin-bottom: 1.5rem; }
.container.narrow { max-width: 820px; }

/* Feature cards with a photo on top */
.feature--pic { padding-top: 0; overflow: hidden; }
.feature--pic .feature-pic { aspect-ratio: 16 / 10; height: auto; margin: 0 0 1.1rem; border-radius: 0; }
.feature--pic > :not(.feature-pic) { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Galleries */
.gallery { display: grid; gap: 1rem; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.gallery--grid { grid-template-columns: repeat(3, 1fr); }
.gallery--grid .pic { aspect-ratio: 4 / 3; height: auto; }
.gallery--mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
.gallery--mosaic figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--mosaic figure { height: 100%; }
.gallery--mosaic .pic { height: 100%; }
.gallery--strip { grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.gallery--strip figure { scroll-snap-align: start; }
.gallery--strip .pic { aspect-ratio: 3 / 4; height: auto; }

/* Header variants */
.site-header--centered .container { flex-direction: column; justify-content: center; gap: .6rem; padding-top: .9rem; padding-bottom: .9rem; }
.site-header--inverse { background: var(--ink-bg, #111); --header-ink: #fff; color: #fff; }
.site-header--inverse .nav a:not(.btn), .site-header--inverse .brand-name { color: #fff; }
.site-header--inverse .brand-name small { color: rgba(255,255,255,.7); }

@media (max-width: 960px) {
  .hero--side > .container { grid-template-columns: 1fr; }
  .hero--side .hero-media { aspect-ratio: 4 / 3; }
  .gallery--grid, .gallery--mosaic { grid-template-columns: repeat(2, 1fr); }
  .split--flip > :first-child { order: 0; }
}
@media (max-width: 760px) {
  .site-header--centered .container { flex-direction: row; justify-content: space-between; }
  .hero--stacked .hero-media { aspect-ratio: 4 / 3; }
  .gallery--mosaic { grid-auto-rows: 140px; }
}
