:root {
  --wine: #7b2d3a;
  --wine-dark: #5f1f2b;
  --wine-soft: #a4566a;
  --cream: #f7ede8;
  --sand: #fbf6f2;
  --terracotta: #c97b63;
  --ink: #2e2a28;
  --muted: #6f6660;
  --line: #eadfd8;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(94, 47, 56, 0.35);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--wine);
  text-decoration: none;
}

a:hover {
  color: var(--terracotta);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.45em;
}

.container {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
}

.topbar {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
  flex-wrap: wrap;
}

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

.site-header {
  background: var(--wine);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 20px -12px rgba(61, 20, 29, 0.65);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}

.brand:hover {
  color: #f5d9d0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #f0c9c1;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffe9e4;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.main-nav a.active {
  background: #fff;
  color: var(--wine);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  color: #fff;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

.hero {
  background: linear-gradient(180deg, var(--sand) 0%, #fff 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wine-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--wine);
  color: #fff;
}

.btn-primary:hover {
  background: var(--wine-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}

.btn-ghost:hover {
  background: var(--cream);
  color: var(--wine-dark);
}

.media-frame {
  background: linear-gradient(135deg, var(--cream), #fff);
  border: 1px dashed var(--terracotta);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
  margin: 0;
}

.media-frame.image-frame {
  display: grid;
  padding: 0;
  border: 1px solid var(--line);
  min-height: 0;
  overflow: hidden;
}

.media-frame.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.contact-map-frame {
  margin-top: 24px;
  min-height: 250px;
}

.media-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--terracotta);
  display: grid;
  place-items: center;
  color: var(--terracotta);
  font-size: 1.5rem;
}

.media-frame figcaption {
  font-size: 0.85rem;
  max-width: 34ch;
}

.hero-portrait {
  min-height: 420px;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #f3ddd6 0%, #fdf7f3 55%, #fff 100%);
  border-style: solid;
  border-color: #f0d8cf;
}

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 38px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head p {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 62ch;
}

.section-link {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-media {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--wine-soft);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.card h3 a {
  color: var(--ink);
}

.card h3 a:hover {
  color: var(--wine);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card .read-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-strip {
  background: var(--wine);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-strip .stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  color: #ffe1d8;
}

.stat-strip .stat span {
  font-size: 0.88rem;
  color: #f1cfc8;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.split .media-frame {
  min-height: 320px;
}

.note-box {
  background: var(--sand);
  border-left: 4px solid var(--wine);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 26px 0;
}

.note-box p:last-child {
  margin-bottom: 0;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  align-items: start;
}

.news-date {
  font-family: var(--serif);
  color: var(--wine);
  font-size: 0.95rem;
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.news-item h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.page-hero {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}

.page-hero .breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.page-hero .breadcrumbs a {
  color: var(--muted);
}

.page-hero .breadcrumbs a:hover {
  color: var(--wine);
}

.page-hero p.lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.prose h2 {
  margin-top: 1.6em;
}

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

.prose h3 {
  margin-top: 1.4em;
}

.prose blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--cream);
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--wine-dark);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose figure {
  margin: 30px 0;
}

.figure-placeholder {
  border: 1px dashed var(--terracotta);
  border-radius: 14px;
  min-height: 300px;
  background: linear-gradient(135deg, #f8e9e3, #fff 70%);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 0.9rem;
}

.sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 96px;
}

.side-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.side-card h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}

.side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.93rem;
}

.side-card li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.side-card li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.side-card a {
  color: var(--ink);
}

.side-card a:hover {
  color: var(--wine);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.tag-cloud a:hover {
  border-color: var(--wine-soft);
  color: var(--wine);
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--cream);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 36px;
}

.author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.author-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.author-box strong {
  color: var(--ink);
}

.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terracotta);
  line-height: 1;
}

.feature-row h3 {
  margin-bottom: 4px;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- project cards ---------- */
.project-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.project-card .project-media {
  min-height: 230px;
  background: var(--sand);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.project-card .project-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 26px 28px 26px 0;
}

.project-body .card-meta {
  margin-bottom: 6px;
}

.project-body p {
  color: var(--muted);
  font-size: 0.96rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-tags span {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.78rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px 16px;
  font-size: 0.95rem;
}

.contact-card dt {
  color: var(--muted);
}

.contact-card dd {
  margin: 0;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--wine-soft);
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.team-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px dashed var(--terracotta);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--wine);
  margin-bottom: 16px;
}

.team-card h3 {
  margin-bottom: 2px;
}

.team-card .role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wine-soft);
  margin-bottom: 10px;
}

.team-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 28px;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 4px #fff;
}

.timeline strong {
  display: block;
  font-family: var(--serif);
  color: var(--wine);
  font-size: 1.05rem;
}

.timeline span {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--wine);
  font-family: var(--sans);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 0.96rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--wine) 0%, #8f3a4a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  color: #f3d3cc;
  max-width: 56ch;
}

.cta-band .btn {
  background: #fff;
  color: var(--wine);
  flex-shrink: 0;
}

.cta-band .btn:hover {
  background: var(--cream);
  color: var(--wine-dark);
}

.site-footer {
  background: #2f1c21;
  color: #d8c4c0;
  margin-top: 64px;
  padding: 48px 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 36px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: var(--sans);
  letter-spacing: 0.4px;
}

.site-footer a {
  color: #d8c4c0;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.footer-brand strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-about p {
  color: #bda9a6;
  max-width: 34ch;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #a89491;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .content-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    position: static;
  }

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

  .project-card .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 200px;
  }

  .project-card .project-media img {
    min-height: 200px;
  }

  .project-body {
    padding: 0 24px 24px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin: 0;
    padding-bottom: 12px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 11px 14px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .grid-3,
  .grid-2,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .news-date {
    border-right: 0;
    padding-right: 0;
    font-size: 0.82rem;
  }

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

  .cta-band {
    padding: 30px 26px;
  }

  .hero {
    padding: 38px 0 34px;
  }

  .hero-portrait {
    min-height: 280px;
  }

  .section {
    padding: 40px 0;
  }

  .stat-strip {
    padding: 26px 24px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .contact-card dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-card dd {
    margin-bottom: 10px;
  }
}
