:root {
  --ink: #10233a;
  --ink-soft: #3d5166;
  --sun: #e59b12;
  --sun-deep: #c4840c;
  --sea: #0e6e6b;
  --sand: #f4ede3;
  --paper: #fffdf9;
  --line: #d9cfc3;
  --ok: #1f7a4d;
  --err: #9b2c2c;
  --shadow: 0 18px 40px rgba(16, 35, 58, 0.08);
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:hover { color: var(--ink); }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 20; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { width: auto; height: auto; max-width: none; object-fit: contain; display: block; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sun); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 6px; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.lang a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 6px;
  border: 1px solid transparent;
}
.lang a[aria-current="true"] {
  border-color: var(--line);
  color: var(--ink);
  background: var(--sand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
}
.btn-primary { background: var(--sun); color: #1a1408; }
.btn-primary:hover { background: var(--sun-deep); color: #1a1408; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; border-color: var(--line); color: var(--ink); }

.hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%); }
.hero-title {
  width: 100%;
  margin: 0 0 24px;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--sea); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; margin: 0; }
.stats {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 56px;
  margin: 36px 0 0;
}
.stats dt { font-size: 0.8rem; color: var(--ink-soft); }
.stats dd { font-family: var(--serif); font-size: 2rem; margin: 4px 0 0; }
.hero-panel { position: relative; border-radius: 12px; overflow: hidden; }
.hero-art { width: 100%; height: auto; display: block; }
.hero-slides {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #d9cfc3;
}
.hero-slides img.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
}
.hero-slides img.hero-art.is-active { opacity: 1; z-index: 1; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img.hero-art { transition: none; }
}

.section-title { text-align: center; }
.faq-list { display: grid; gap: 10px; margin: 28px 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 18px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--sea);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 18px 16px; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }
.section { padding: 56px 0; }
.section-alt { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.cards-3, .project-grid, .quotes, .result-grid { display: grid; gap: 18px; }
.cards-3, .quotes { grid-template-columns: repeat(3, 1fr); }
.project-grid { grid-template-columns: repeat(4, 1fr); }
.card, .project-card, blockquote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.project-card { text-decoration: none; color: inherit; padding: 0 0 16px; overflow: hidden; }
.project-card h3, .project-card p { padding: 0 14px; margin: 8px 0 0; }
.project-thumb { aspect-ratio: 4/3; background: #143248; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: #f4ede3;
  font-family: var(--serif);
  font-size: 2rem;
}
blockquote p { margin-top: 0; }
blockquote footer { color: var(--ink-soft); font-size: 0.9rem; }

.band { background: var(--ink); color: var(--sand); padding: 40px 0; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.band h2 { color: #fff; }
.band p { color: #d9cfc3; margin: 0; }

.page-plain { padding: 40px 0 72px; }
.page-about .wrap { width: min(960px, calc(100% - 40px)); }
.page-about h1 { text-align: center; }
.page-about .prose :where(p, ul, h2) { max-width: none; }
.page-plain h1 {
  white-space: nowrap;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  margin-bottom: 20px;
}
.page-calculator .site-footer { display: none; }
.page-calc { padding: 0; }
.pv-frame {
  width: 100% !important;
  height: calc(100vh - 100px) !important;
  min-height: 900px !important;
  border: 0 !important;
  display: block;
  background: #fff;
}
.prose :where(p, ul, h2) { max-width: 65ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.6em; }
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.filters a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}
.filters a[aria-current="true"] { background: var(--ink); color: #fff; }
.meta-list { padding: 0; list-style: none; color: var(--ink-soft); }
.gallery { display: grid; gap: 12px; margin: 24px 0; }
.gallery img { border-radius: 12px; width: 100%; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-facts { list-style: none; padding: 0; }
.contact-facts li { margin: 0 0 8px; }
.map { width: 100%; min-height: 240px; border: 0; border-radius: 12px; margin-top: 16px; }

.stack-form, .calc-form { display: grid; gap: 12px; }
.stack-form label, .calc-form label { display: grid; gap: 6px; font-size: 0.92rem; }
input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.choice input { width: auto; margin-top: 4px; }
.is-hidden { display: none !important; }
.calc-wrap { width: min(860px, calc(100% - 40px)); }
.calc-results, .calc-lead {
  margin-top: 28px;
  padding: 24px;
  background: var(--sand);
  border-radius: 16px;
}
.result-grid { grid-template-columns: repeat(3, 1fr); }
.result-grid dt { color: var(--ink-soft); font-size: 0.85rem; }
.result-grid dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; }
.notice { padding: 12px 14px; border-radius: 10px; }
.notice-ok { background: #e7f6ee; color: var(--ok); }
.notice-err { background: #fdecec; color: var(--err); }
.muted { color: var(--ink-soft); font-size: 0.92rem; }

.site-footer { background: #0c1b2c; color: #d9cfc3; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin: 0 0 8px; }
.footer-label { color: var(--sun); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav a, .site-footer a { color: #f4ede3; text-decoration: none; }
.footer-copy { border-top: 1px solid #24384c; margin-top: 24px; padding-top: 16px; font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero-grid, .cards-3, .quotes, .project-grid, .contact-grid, .footer-grid, .result-grid, .band-inner {
    grid-template-columns: 1fr;
  }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 8px; }
  .hero-title { white-space: normal; }
  .page-plain h1 { white-space: normal; }
}
