﻿:root {
  --ink: #1f1f1f;
  --coal: #3c3732;
  --bg: #f1ede6;
  --surface: #f7f3ee;
  --sand: #eee8e0;
  --accent: #a3988b;
  --accent-dark: #7b7167;
  --accent-soft: #e6dfd6;
  --line: #d7d0c8;
  --shadow: 0 14px 24px rgba(31, 31, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  position: relative;
  opacity: 1;
  transition: opacity 0.35s ease;
}

body.page.is-leaving {
  opacity: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 12px;
  color: var(--coal);
}

.page-background {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #faf7f2 0%, #f0ebe3 55%, #ffffff 100%);
  z-index: -2;
}

.page-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(163, 152, 139, 0.2), transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(230, 223, 214, 0.7), transparent 55%);
  opacity: 0.7;
  z-index: -1;
}

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

body.page a:not(.button):not(.brand-link) {
  position: relative;
  display: inline-block;
  padding-bottom: var(--underline-offset, 2px);
  transition: color 0.3s ease;
}

body.page a:not(.button):not(.brand-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--underline-height, 1px);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page a:not(.button):not(.brand-link):hover {
  color: var(--accent-dark);
}

body.page a:not(.button):not(.brand-link):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(241, 237, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
  position: relative;
}

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

.brand-link {
  color: inherit;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  font-size: 18px;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(31, 31, 31, 0.9);
  border-radius: 2px;
}

body.page .nav-links a {
  color: var(--coal);
  --underline-offset: 6px;
  --underline-height: 1px;
  padding-bottom: 6px;
  position: relative;
  font-weight: 600;
}

body.page .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: none;
  padding: 0 0 6px;
  border-radius: 0;
  text-transform: inherit;
  letter-spacing: inherit;
  font-size: inherit;
  background: none;
  box-shadow: none;
}

.hero {
  padding: 110px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 12px 0 18px;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(60, 55, 50, 0.8);
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: rgba(31, 31, 31, 0.55);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.button.primary {
  background: var(--accent-dark);
  color: white;
  box-shadow: var(--shadow);
}

.button.ghost {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: transparent;
}

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

.hero-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.hero-card::after {
  content: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.hero-card h3 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(60, 55, 50, 0.6);
  margin: 0;
}

.hero-card p {
  margin: 0;
  line-height: 1.7;
  color: rgba(60, 55, 50, 0.78);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(31, 31, 31, 0.2);
  border-bottom: 1px solid rgba(31, 31, 31, 0.2);
  padding: 24px 0;
  margin-top: 18px;
  gap: 24px;
}

.metrics .metric {
  display: grid;
  gap: 10px;
}

.metrics .metric + .metric {
  border-left: 1px solid rgba(31, 31, 31, 0.2);
  padding-left: 24px;
}

.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #5b4339;
  font-variant-numeric: tabular-nums;
}

.metrics small {
  display: block;
  text-transform: none;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(60, 55, 50, 0.7);
  letter-spacing: 0.02em;
}

section {
  padding: 80px 0;
  scroll-margin-top: 90px;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 680px;
  padding-bottom: 18px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.section-title h2 {
  font-size: 2rem;
}

.section-title p {
  color: rgba(60, 55, 50, 0.75);
  margin: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.mission-values-panel {
  display: grid;
  border-top: 1px solid var(--line);
}

.mv-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.mv-meta {
  display: grid;
  gap: 10px;
}

.mv-index {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.45);
}

.mission-values .mv-row h3 {
  margin: 0;
  font-size: 1.4rem;
}

.mission-values .mv-content p {
  margin: 0;
  color: rgba(60, 55, 50, 0.8);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .mv-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.card,
.post-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.mission-values .card {
  position: relative;
  padding: 30px 30px 34px;
  background: linear-gradient(160deg, #fbf8f3 0%, #f1e7db 100%);
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 30px rgba(31, 31, 31, 0.08);
  overflow: hidden;
  display: grid;
  gap: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mission-values .card::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 24px;
  width: 52px;
  height: 2px;
  background: var(--accent-dark);
  opacity: 0.55;
}

.mission-values .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(163, 152, 139, 0.2), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.mission-values .card > * {
  position: relative;
  z-index: 1;
}

.mission-values .card:hover {
  border-color: rgba(123, 113, 103, 0.45);
  box-shadow: 0 22px 36px rgba(31, 31, 31, 0.1);
}

.mission-values .card h3 {
  margin-top: 18px;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: -0.01em;
}

.mission-values .card p {
  margin-top: 0;
  color: rgba(60, 55, 50, 0.78);
  line-height: 1.75;
}

.service-accordion {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.service-accordion details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
}

.service-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-dark);
  transition: transform 0.9s ease;
}

.accordion-icon::before {
  width: 14px;
  height: 1px;
  top: 6px;
  left: 0;
  transform: translateY(0);
}

.accordion-icon::after {
  width: 14px;
  height: 1px;
  left: 0;
  top: 6px;
  transform: rotate(90deg);
  transform-origin: center;
}

.service-accordion details[open] .accordion-icon::before {
  transform: translateY(-3px);
}

.service-accordion details[open] .accordion-icon::after {
  transform: translateY(3px) rotate(0deg);
}

.service-accordion details > .accordion-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
  border-top: 1px solid transparent;
  color: rgba(60, 55, 50, 0.78);
  transition:
    max-height 1.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.8s ease,
    padding-top 1.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    margin-top 1.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-top-color 1.3s ease;
}

.service-accordion details[open] > .accordion-body {
  max-height: 500px;
  opacity: 1;
  padding-top: 12px;
  margin-top: 12px;
  border-top-color: rgba(31, 31, 31, 0.12);
}

.accordion-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}

.accordion-body li {
  position: relative;
  padding-left: 16px;
}

.accordion-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dark);
}

.contact {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.contact-card,
.contact-form {
  background: var(--surface);
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: none;
  height: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-card h2,
.contact-form h3 {
  font-size: 1.75rem;
  line-height: 1.2;
}

.contact-form h3 {
  margin-top: 16px;
  margin-bottom: 8px;
}


.contact-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 4px;
  margin-top: 8px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
}


.contact-details {
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.contact-details div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.contact-details div:last-child {
  border-bottom: none;
}

.contact-info {
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-link {
  color: var(--accent-dark);
  font-weight: 600;
  padding-bottom: 0;
}

body.page a.contact-link::after {
  display: none;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

body.page .social-row a {
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--accent-dark);
  text-transform: none;
  letter-spacing: 0.08em;
  background-image: none;
}

body.page .social-row a::after {
  content: "";
}

.alert {
  background: rgba(231, 211, 194, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.alert.success {
  background: rgba(163, 152, 139, 0.3);
}

.page-hero {
  padding: 110px 0 60px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  margin: 12px 0 14px;
}

.page-hero p {
  max-width: 640px;
  color: rgba(60, 55, 50, 0.75);
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.team-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: rgba(31, 31, 31, 0.55);
}

.team-index {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.4);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.team-text h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  margin-bottom: 18px;
}

.team-intro {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.7;
  color: rgba(60, 55, 50, 0.8);
  margin-bottom: 32px;
}

.team-detail {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  transition: opacity 0.25s ease;
}

.team-detail.is-updating {
  opacity: 0.55;
}

.team-detail .team-name {
  margin: 0;
  font-size: 1.2rem;
}

.team-detail .team-role {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: rgba(60, 55, 50, 0.6);
}

.team-detail .team-bio {
  margin: 0;
  color: rgba(60, 55, 50, 0.75);
  line-height: 1.7;
}

.team-carousel {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.team-frame {
  width: 360px;
  height: 450px;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: transparent;
  isolation: isolate;
  clip-path: inset(0);
  position: relative;
}

.team-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.team-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.team-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.team-slide:first-of-type {
  opacity: 1;
  pointer-events: auto;
}

.team-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.08) brightness(1.06);
  border-radius: 6px;
}

.team-slide .team-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 32px;
  border-radius: 6px;
}

.team-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.team-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(123, 113, 103, 0.4);
  background: transparent;
  color: rgba(123, 113, 103, 0.8);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.team-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 113, 103, 0.6);
  color: rgba(123, 113, 103, 1);
}

.team-carousel.is-single .team-controls {
  display: none;
}

@media (max-width: 980px) {
  .team-layout {
    grid-template-columns: 1fr;
  }

  .team-carousel {
    width: 100%;
    max-width: 520px;
  }

  .team-frame {
    width: 100%;
    height: clamp(280px, 70vw, 420px);
    aspect-ratio: auto;
    min-height: 320px;
  }
}

.map-wrapper iframe {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 20px;
}

.location-address {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  max-width: 420px;
}

.location-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: rgba(31, 31, 31, 0.5);
}

.location-text {
  font-size: 14px;
  color: rgba(60, 55, 50, 0.8);
}

.post-carousel {
  padding: 40px 0 20px;
}

.carousel-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(31, 31, 31, 0.12);
  background: linear-gradient(160deg, #efe8dd 0%, #e6dfd4 100%);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  gap: 28px;
}

.carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(circle at 88% 10%, rgba(123, 113, 103, 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.carousel-card > * {
  position: relative;
  z-index: 1;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(31, 31, 31, 0.2);
  background: rgba(246, 240, 232, 0.7);
  color: var(--ink);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 31, 31, 0.35);
  background: rgba(246, 240, 232, 0.9);
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.8s ease;
  will-change: transform;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  display: grid;
  gap: 18px;
  text-align: center;
  padding: 10px 0 24px;
}

.carousel-topic {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: rgba(31, 31, 31, 0.55);
}

.carousel-quote {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.55;
  color: rgba(31, 31, 31, 0.78);
}

.carousel-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 31, 31, 0.55);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.carousel-dot {
  width: 48px;
  height: 2px;
  border: none;
  background: rgba(123, 113, 103, 0.28);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.carousel-card.is-single .carousel-controls,
.carousel-card.is-single .carousel-dots {
  display: none;
}

.carousel-progress {
  position: absolute;
  inset: 0;
  background: rgba(123, 113, 103, 0.85);
  transform: scaleX(0);
  transform-origin: left;
}

.carousel-card.is-paused .carousel-progress {
  animation-play-state: paused;
}

@keyframes carousel-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-btn,
  .carousel-progress {
    transition: none;
    animation: none;
  }
}

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

.post-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #f3eee7;
  border: 1px solid rgba(31, 31, 31, 0.16);
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.post-card:hover {
  border-color: rgba(123, 113, 103, 0.55);
  background: #f1ece5;
}

.post-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.post-body {
  padding-top: 0;
}

.post-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 6px;
}

.post-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
}

.post-detail-body {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(60, 55, 50, 0.78);
  line-height: 1.8;
  white-space: pre-wrap;
}

.post-detail .post-media {
  max-width: 860px;
  margin: 24px auto 0;
}

@media (max-width: 1100px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-slide {
    text-align: left;
  }

  .carousel-quote {
    margin: 0;
  }

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

.post-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 31, 0.12);
  background: #e9e1d8;
  box-shadow: 0 10px 18px rgba(31, 31, 31, 0.08);
}

.post-media:not(.link-card) {
  order: -1;
}

.post-media img,
.post-media video,
.post-media iframe {
  width: 100%;
  margin-top: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: none;
}

.post-media iframe {
  border: none;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(163, 152, 139, 0.18);
  padding: 16px 18px;
  border-radius: 14px;
  margin-top: 0;
  border: 1px solid rgba(31, 31, 31, 0.12);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #2a2521 0%, #1c1916 55%, #161311 100%);
  color: #f6f0e8;
  padding: 70px 0 24px;
  border-top: 1px solid rgba(246, 240, 232, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 240, 232, 0.5), transparent);
  background-size: 200% 100%;
  animation: footer-line 10s ease-in-out infinite;
  opacity: 0.7;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(246, 240, 232, 0.12), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(123, 113, 103, 0.18), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  animation: footer-glow 14s ease-in-out infinite;
}

.site-footer a {
  color: #f6f0e8;
  --underline-height: 1px;
  --underline-offset: 4px;
}

.site-footer a:not(.button):not(.brand-link):hover {
  color: #ffffff;
}

.site-footer p {
  color: rgba(246, 240, 232, 0.72);
  margin-bottom: 8px;
}

.site-footer .container {
  display: grid;
  gap: 28px;
}

.site-footer .footer-grid {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(246, 240, 232, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  margin-bottom: 0;
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(246, 240, 232, 0.6);
  display: grid;
  gap: 6px;
  justify-items: center;
}

.footer-legend {
  font-size: 11px;
  color: rgba(246, 240, 232, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-credit {
  color: inherit;
  text-decoration: none;
}

.site-footer a.footer-credit::after {
  display: none;
}

.footer-credit:hover {
  color: rgba(246, 240, 232, 0.85);
}

.heart {
  color: #7a1e1e;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

@keyframes footer-line {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes footer-glow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-bar {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 4vw 20px;
    background: rgba(241, 237, 230, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 6px 0;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .hero-grid {
    gap: 28px;
  }

  section {
    padding: 72px 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-card {
    min-height: auto;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 0;
  }

  .metrics .metric + .metric {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(31, 31, 31, 0.2);
    padding-top: 18px;
    margin-top: 18px;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-card,
  .contact-form {
    padding: 22px;
    border-radius: 16px;
    height: auto;
  }

  .contact-form h3 {
    margin-top: 0;
  }

  .contact-form .button {
    width: 100%;
  }

  .page-hero {
    padding: 90px 0 50px;
  }
}

@media (max-width: 720px) {
  .carousel-card {
    border-radius: 22px;
    padding: 28px;
  }

  .carousel-quote {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .post-card {
    padding: 18px;
    border-radius: 8px;
  }

  .site-footer {
    padding: 56px 0 22px;
  }

  .footer-grid {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .nav-links {
    font-size: 10px;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 7vw, 2.6rem);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .metric-value {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .contact-card h2,
  .contact-form h3 {
    font-size: 1.5rem;
  }

  .contact-details {
    margin: 18px 0;
  }

  .team-frame {
    width: 100%;
    max-width: 520px;
    height: clamp(280px, 70vw, 420px);
    aspect-ratio: auto;
    min-height: 320px;
  }

  .team-controls {
    gap: 10px;
  }

  .team-carousel {
    justify-items: center;
    margin: 0 auto;
  }

  .team-frame {
    margin: 0 auto;
  }

  .carousel-controls {
    width: 100%;
    justify-content: center;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .map-wrapper iframe {
    min-height: 240px;
  }
}

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

  [data-reveal] {
    transition: none;
    opacity: 1;
    transform: none;
  }

  body.page {
    transition: none;
  }
}
