:root {
  --bg: #f4f0ea;
  --surface: #ffffff;
  --surface-soft: #f8f4ef;
  --text: #1b1714;
  --muted: #5b544d;
  --heading: #130f0d;
  --accent: #972e31;
  --accent-deep: #7d2327;
  --line: #d8cec3;
  --line-strong: #c6b9ad;
  --footer-bg: #1b1714;
  --footer-text: #efe7df;
  --footer-muted: #c7bbb0;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
  --container: 1180px;
  --shadow-soft: 0 8px 18px rgba(18, 15, 13, 0.02);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(151, 46, 49, 0.018), rgba(151, 46, 49, 0) 180px),
    linear-gradient(90deg, rgba(19, 15, 13, 0.012), rgba(19, 15, 13, 0) 14%, rgba(19, 15, 13, 0) 86%, rgba(19, 15, 13, 0.012)),
    var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
select,
textarea {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.site-shell {
  width: min(calc(100% - 18px), 100%);
  max-width: none;
  margin: 0 auto;
  padding: 10px 0 28px;
}

.site-header {
  margin-bottom: 12px;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 22px 7px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.utility-meta {
  min-width: 0;
  letter-spacing: 0.02em;
}

.utility-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.utility-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-links a {
  color: var(--muted);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: auto;
  flex: 0 0 auto;
}

.brand-lockup {
  display: grid;
  gap: 0;
}

.eyebrow,
.section-label,
.summary-label,
.footer-heading,
.post-meta,
.small-note {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-name {
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.48rem;
  line-height: 1;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1 1 auto;
}

.portal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--heading);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.theme-toggle-icon {
  display: block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  font-size: 14px;
  font-weight: 600;
}

.theme-toggle-icon::before {
  content: "◐";
}

.main-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.main-nav a {
  position: relative;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.93rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active,
.main-nav a[aria-current="page"] {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.button-compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.button-inline {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.portal-button,
.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.portal-button-secondary {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--heading);
}

.button-secondary {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--heading);
}

.hero,
.page-hero,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 32px;
  padding: 58px 42px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
}

.hero-centered {
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 64px 44px 44px;
}

.hero-content-centered {
  text-align: center;
}

.hero-content-centered > * {
  margin-left: auto;
  margin-right: auto;
}

.hero-content-centered h1 {
  max-width: 24ch;
}

.hero-content-centered .lead {
  max-width: 60ch;
}

.hero-title-wide {
  max-width: 30ch !important;
}

.action-row-centered {
  justify-content: center;
}

.hero-heritage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(151, 46, 49, 0.06), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 40%);
  pointer-events: none;
}

.hero-overlay-art {
  display: block;
  position: absolute;
  top: -34px;
  left: -18px;
  width: min(86%, 500px);
  max-width: none;
  height: auto;
  opacity: 0.68;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay-art-centered {
  position: relative;
  top: auto;
  left: auto;
  width: min(56%, 390px);
  margin: 0 auto 16px;
  opacity: 0.86;
}

.hero-content h1,
.page-hero h1,
.section h2,
.feature-item h3,
.process-step h3,
.post-card h2 {
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
}

.hero-content h1,
.page-hero h1 {
  max-width: 13ch;
  margin-top: 6px;
  font-size: clamp(1.85rem, 3.1vw, 2.8rem);
  line-height: 1.12;
}

.lead {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.lead-tight {
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.68;
}

.compact-lead {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.symbol-motif {
  pointer-events: none;
  user-select: none;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.clean-list {
  padding-left: 20px;
}

.text-block p,
.feature-item p,
.process-step p,
.footer-copy,
.footer-base,
.legal-copy p,
.post-card p,
.supporting-copy,
.form-note,
.form-status {
  color: var(--muted);
  line-height: 1.85;
}

.hero-media {
  display: block;
  align-content: start;
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(18, 15, 13, 0.08);
}

.hero-image-single {
  aspect-ratio: 4 / 3;
  min-height: 430px;
  object-position: 84% 58%;
}

.page-hero,
.section {
  margin-top: 16px;
  padding: 40px 34px;
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.page-hero-copy {
  max-width: 640px;
}

.page-hero-aside {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-hero-compact {
  padding: 24px 34px;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero-compact h1 {
  margin-top: 6px;
  max-width: none;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.22;
}

.page-hero-compact .lead {
  margin-top: 8px;
  max-width: 42ch;
  font-size: 0.94rem;
  line-height: 1.55;
}

.place-marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.place-marker-image {
  width: 32px;
  height: auto;
  flex: 0 0 auto;
}

.place-marker-copy {
  display: grid;
  gap: 2px;
}

.place-marker-copy strong {
  color: var(--heading);
  font-size: 0.96rem;
  line-height: 1.2;
}

.place-marker-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-hero-centered {
  text-align: center;
}

.page-hero-centered h1,
.page-hero-centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.heritage-frame {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 14px 0 0;
}

.heritage-image {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(18, 15, 13, 0.06);
}

.heritage-image-architectural {
  filter: grayscale(0.18) saturate(0.84) contrast(1.04);
}

.heritage-swirl {
  position: absolute;
  top: 50%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(151, 46, 49, 0.18);
  border-radius: 999px;
  transform: translateY(-50%);
  animation: swirlDrift 12s linear infinite;
  pointer-events: none;
}

.heritage-swirl::before,
.heritage-swirl::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(151, 46, 49, 0.12);
  border-radius: 999px;
}

.heritage-swirl::after {
  inset: 26px;
}

.heritage-swirl-left {
  left: -16px;
}

.heritage-swirl-right {
  right: -16px;
  animation-direction: reverse;
}

.approach-summary {
  display: grid;
  gap: 20px;
}

.split-section,
.contact-layout,
.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
}

.split-section-tight {
  gap: 20px;
}

.action-row-compact {
  gap: 10px;
  margin-top: 14px;
}

.section-with-symbol .section-intro {
  display: grid;
  gap: 18px;
  align-content: start;
}

.section-symbol {
  width: min(240px, 100%);
  max-width: 240px;
  opacity: 0.92;
  filter: saturate(0.92);
}

.section-symbol-handshake {
  width: min(260px, 100%);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading-centered {
  text-align: center;
}

.section-heading-centered > div {
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.2;
}

.text-block {
  display: grid;
  gap: 16px;
}

.text-block p,
.feature-item p,
.process-step p,
.post-card p,
.supporting-copy,
.legal-copy p,
.clean-list li {
  font-size: 0.99rem;
}

.feature-grid,
.process-grid,
.post-grid {
  display: grid;
  gap: 18px 24px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid-compact {
  gap: 14px 20px;
}

.single-column-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.process-list-item h3 {
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.25;
}

.process-list-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.service-stack {
  display: grid;
  gap: 28px;
  max-width: 940px;
}

.service-block {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.service-block-head {
  display: grid;
  gap: 6px;
}

.service-block h2 {
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.22;
}

.service-bullet-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-bullet-list li {
  line-height: 1.8;
}

.service-bullet-list strong {
  color: var(--heading);
}

.single-column-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.75;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-list {
  display: grid;
  gap: 6px;
}

.post-card-horizontal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.post-card-copy {
  max-width: 72ch;
}

.newsletter-panel {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.newsletter-panel h3 {
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.2;
}

.newsletter-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.newsletter-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.newsletter-form-wide {
  max-width: 760px;
}

.feature-item,
.process-step,
.post-card {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.feature-item,
.process-step,
.post-card,
.location-marker,
.place-marker {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.feature-item:hover,
.feature-item:focus-within,
.process-step:hover,
.process-step:focus-within,
.post-card:hover,
.post-card:focus-within {
  transform: translateY(-2px);
  border-top-color: var(--accent);
}

.location-marker:hover,
.location-marker:focus-within,
.place-marker:hover,
.place-marker:focus-within {
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(18, 15, 13, 0.06);
}

.portal-button:hover,
.portal-button:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-image:hover,
.hero-image:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(18, 15, 13, 0.12);
}

.feature-item h3,
.process-step h3,
.post-card h2 {
  font-size: 1.42rem;
  line-height: 1.2;
}

.feature-item p,
.process-step p,
.post-card p {
  margin-top: 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  transform: translateX(3px);
}

.text-link.inline {
  display: inline;
  margin-top: 0;
}

.location-marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.location-marker-image {
  width: 30px;
  height: auto;
  flex: 0 0 auto;
}

.location-marker-link {
  color: var(--heading);
  font-size: 0.96rem;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-content {
  max-width: 76ch;
}

.article-hero {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 34px;
  text-align: center;
}

.article-hero h1,
.article-hero .lead {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  justify-content: center;
}

.article-share {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 0.94rem;
  color: var(--muted);
}

.article-share a {
  color: var(--accent-deep);
}

.reveal-block,
.reveal-graphic {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-graphic {
  transition-duration: 720ms;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-graphic:hover {
  transform: translateY(-2px);
}

.article-body {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 44px 54px;
}

.article-content h2 {
  margin-top: 28px;
  font-size: 1.45rem;
}

.article-content p,
.article-content li {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.article-content ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.contact-link {
  color: var(--heading);
  font-size: 1.14rem;
  line-height: 1.6;
}

.contact-link.strong {
  font-weight: 700;
}

.stack-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.query-form {
  margin-top: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-span {
  grid-column: 1 / -1;
}

.consent-panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.consent-panel legend {
  padding: 0;
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.checkbox-field-disabled {
  opacity: 0.72;
}

.contact-side-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

textarea {
  resize: vertical;
  min-height: 170px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(151, 46, 49, 0.14);
  border-color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(151, 46, 49, 0.22);
  outline-offset: 3px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.form-note,
.form-status,
.small-note {
  font-size: 0.88rem;
}

.form-status:empty {
  display: none;
}

.legal-copy {
  max-width: 78ch;
}

.legal-copy h2 {
  margin-top: 26px;
  font-size: 1.5rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  margin-top: 12px;
}

.site-footer {
  margin-top: 24px;
  padding: 36px 28px 20px;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-radius: var(--radius-lg);
}

.thunai-swal {
  border-radius: 0;
  padding: 1.6rem;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}

.thunai-swal .swal2-title {
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.thunai-swal .swal2-html-container {
  color: var(--muted);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.98rem;
}

.thunai-swal-confirm,
.thunai-swal-cancel {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 1.1rem !important;
}

.thunai-swal-cancel {
  color: var(--heading) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 24px 28px;
}

.footer-heading {
  color: var(--footer-muted);
}

.footer-copy {
  margin-top: 14px;
  color: var(--footer-muted);
}

.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-links a {
  color: var(--footer-text);
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.faq-item summary {
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.cookie-banner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 999;
  width: min(100% - 28px, 540px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(18, 15, 13, 0.16);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner-inner {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.cookie-banner-copy h2 {
  margin-top: 8px;
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.22;
}

.cookie-banner-copy p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.cookie-banner-actions,
.cookie-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-preferences-panel {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@keyframes swirlDrift {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--footer-muted);
  font-size: 0.86rem;
}

@media (max-width: 920px) {
  .hero,
  .page-hero-split,
  .split-section,
  .contact-layout,
  .two-column-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-single {
    min-height: 360px;
  }

  .hero-centered {
    padding: 48px 24px 32px;
  }

  .heritage-image {
    min-height: 300px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-grid-two {
    grid-template-columns: 1fr;
  }

  .feature-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card-horizontal {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-overlay-art {
    top: -28px;
    left: -12px;
    width: min(92%, 520px);
  }

  .hero-overlay-art-centered {
    top: auto;
    left: auto;
    width: min(64%, 320px);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 10px), 100%);
    padding-top: 6px;
  }

  .utility-bar,
  .topbar,
  .footer-base {
    align-items: flex-start;
    flex-direction: column;
  }

  .utility-bar {
    padding: 8px 16px;
  }

  .topbar {
    padding: 14px 16px 10px;
  }

  .hero,
  .page-hero,
  .section,
  .site-footer {
    padding: 28px 18px;
  }

  .article-body,
  .article-hero {
    padding: 24px 18px;
  }

  .hero-content h1,
  .page-hero h1 {
    max-width: none;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero-image-single {
    min-height: 300px;
  }

  .heritage-frame {
    width: 100%;
  }

  .heritage-image {
    min-height: 240px;
  }

  .heritage-swirl {
    width: 88px;
    height: 88px;
  }

  .location-marker {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    gap: 14px;
    justify-content: flex-start;
  }

  .portal-button,
  .button {
    width: 100%;
  }

  .button-inline {
    width: auto;
    min-height: 34px;
  }

  .action-row,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row.action-row-compact {
    flex-direction: row;
    align-items: center;
  }

  .article-share {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .feature-grid,
  .feature-grid-three,
  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-list-item {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
  }

  .section-symbol,
  .section-symbol-handshake {
    max-width: 220px;
  }

  .place-marker {
    width: 100%;
  }

  .field-span {
    grid-column: auto;
  }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #161311;
    --surface: #211c18;
    --surface-soft: #2a241f;
    --text: #f1e8de;
    --muted: #d0c2b4;
    --heading: #fffaf4;
    --accent: #d67a7d;
    --accent-deep: #bd6669;
    --line: #3a322c;
    --line-strong: #56493f;
    --footer-bg: #120f0d;
    --footer-text: #f4ebe1;
    --footer-muted: #d0c2b4;
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.22);
    color-scheme: dark;
  }

  html:not([data-theme="light"]) body {
    background: linear-gradient(180deg, #171310 0%, #1d1814 100%);
  }

  html:not([data-theme="light"]) .hero-overlay-art {
    opacity: 0.58;
    filter: brightness(1.02) saturate(1.02) contrast(1.04);
  }

  html:not([data-theme="light"]) .hero-image {
    filter: brightness(0.94) contrast(1.02);
  }
}

html[data-theme="dark"] {
  --bg: #14110f;
  --surface: #1e1916;
  --surface-soft: #26201c;
  --text: #f2ece4;
  --muted: #d5c9be;
  --heading: #fffbf6;
  --accent: #de7f80;
  --accent-deep: #cb6f71;
  --line: #413730;
  --line-strong: #5a4d43;
  --footer-bg: #120f0d;
  --footer-text: #f4ebe1;
  --footer-muted: #d7cbc1;
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

html[data-theme="dark"] .hero-overlay-art {
  opacity: 0.66;
  filter: brightness(1.05) saturate(1.04) contrast(1.06);
}

html[data-theme="dark"] .hero-image {
  filter: brightness(0.94) contrast(1.02);
}

html[data-theme="dark"] .theme-toggle-icon::before {
  content: "◑";
}

html[data-theme="light"] {
  --bg: #f3f0ea;
  --surface: #ffffff;
  --surface-soft: #f7f4ee;
  --text: #1b1714;
  --muted: #5e5750;
  --heading: #130f0d;
  --accent: #972e31;
  --accent-deep: #7d2327;
  --line: #d9d1c8;
  --line-strong: #cbc1b7;
  --footer-bg: #1b1714;
  --footer-text: #efe7df;
  --footer-muted: #c7bbb0;
  --shadow-soft: 0 8px 26px rgba(18, 15, 13, 0.05);
  color-scheme: light;
}

html[data-theme="light"] .hero-overlay-art {
  opacity: 0.76;
  filter: saturate(1.04) contrast(1.07) brightness(1.02);
}

html[data-theme="light"] .hero-overlay-art-centered {
  opacity: 0.82;
}

html[data-theme="dark"] body {
  background: linear-gradient(180deg, #0e0e0e 0%, #121212 100%);
}

html[data-theme="dark"] .portal-button,
html[data-theme="dark"] .button-primary {
  color: #fff8f5;
}

html[data-theme="dark"] .portal-button-secondary,
html[data-theme="dark"] .button-secondary {
  background: var(--surface-soft);
  color: var(--heading);
  border-color: var(--line-strong);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #131313;
  border-color: var(--line-strong);
  color: var(--text);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #8f847a;
}

html[data-theme="dark"] .footer-base {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .thunai-swal {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.44) !important;
}

html[data-theme="dark"] .thunai-swal .swal2-title {
  color: var(--heading);
}

html[data-theme="dark"] .thunai-swal .swal2-html-container {
  color: var(--muted);
}

html[data-theme="dark"] .thunai-swal-confirm {
  background: var(--accent) !important;
  color: #fff8f5 !important;
}

html[data-theme="dark"] .thunai-swal-cancel {
  background: var(--surface-soft) !important;
  color: var(--heading) !important;
  border: 1px solid var(--line-strong) !important;
}

html[data-theme="dark"] .heritage-image {
  filter: brightness(0.92) contrast(1.05) saturate(0.96);
}

html[data-theme="dark"] .cookie-banner {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.44);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-block,
  .reveal-graphic {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reveal-graphic:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
