:root {
  --bg: #f5f3ee;
  --surface: #fcfbf8;
  --ink: #1f2629;
  --muted: #48555b;
  --line: rgba(31, 38, 41, 0.2);
  --accent: #2f5e6a;
  --accent-strong: #224852;
  --accent-soft: rgba(47, 94, 106, 0.12);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  line-height: 1.62;
}

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

a:hover {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.82rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.header-link {
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: #13181b;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 0.82rem;
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.24rem, 2.35vw, 1.5rem);
}

p {
  margin: 0;
  max-width: 70ch;
  font-size: 1rem;
  color: var(--muted);
}

p + p {
  margin-top: 0.58rem;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
}

.content-narrow p {
  max-width: 62ch;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(74svh - 3.6rem);
  display: flex;
  align-items: center;
  padding: 3.5rem 1.35rem 3.1rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 18%, rgba(47, 94, 106, 0.2), transparent 48%),
    radial-gradient(circle at 85% 75%, rgba(86, 59, 39, 0.14), transparent 52%),
    linear-gradient(110deg, #f0ece2 0%, #f5f3ee 44%, #ede7db 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.27) 0,
    rgba(255, 255, 255, 0.27) 1px,
    transparent 1px,
    transparent 8px
  );
  opacity: 0.22;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  margin: 0 auto;
  animation: hero-rise 850ms ease both;
}

.sub-hero {
  min-height: auto;
  padding: 2.85rem 1.35rem 2.65rem;
}

.sub-hero h1 {
  max-width: 20ch;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #41545b;
}

.hero-copy {
  margin-top: 0.92rem;
  max-width: 53ch;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  color: #2c373c;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.66rem 1.07rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 94, 106, 0.35);
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 72, 82, 0.62);
  background: rgba(255, 255, 255, 0.95);
}

.button-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #f6f8f9;
}

.button-primary:hover {
  background: #193840;
  color: #f8f9fa;
}

.section {
  padding: 2.95rem 1.35rem;
  border-top: 1px solid var(--line);
  animation: section-rise 680ms ease both;
}

.section-intro,
.door-section {
  background: var(--surface);
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.door-card {
  border: 1px solid rgba(31, 38, 41, 0.14);
  background: #faf8f3;
  padding: 0.95rem 0.95rem 0.88rem;
}

.door-card p {
  font-size: 0.94rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.48rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 0.9rem;
}

.fit-grid article {
  padding: 0.72rem 0.12rem 0.72rem 0.72rem;
  border-left: 2px solid rgba(47, 94, 106, 0.26);
  transition: border-color 170ms ease, background-color 170ms ease;
}

.fit-grid article:hover {
  border-color: rgba(47, 94, 106, 0.66);
  background: var(--accent-soft);
}

.fit-grid p {
  font-size: 0.95rem;
  max-width: 56ch;
}

.landscape-note {
  margin-bottom: 0.55rem;
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #596a71;
}

.table-wrap {
  overflow-x: auto;
}

.landscape-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.landscape-table th,
.landscape-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(31, 38, 41, 0.14);
}

.landscape-table th {
  font-weight: 700;
  color: #253136;
  padding-top: 0.44rem;
  padding-bottom: 0.44rem;
  font-size: 0.9rem;
}

.landscape-table td:first-child,
.landscape-table th:first-child {
  padding-left: 0.22rem;
}

.landscape-table td:last-child,
.landscape-table th:last-child {
  padding-right: 0.22rem;
}

.landscape-brief {
  margin-top: 0.58rem;
  max-width: 60ch;
  font-size: 0.95rem;
}

.gap-message {
  margin-top: 0.3rem;
  max-width: 58ch;
  font-weight: 700;
  color: #253136;
}

.final-cta {
  background: #ede9de;
}

.intake-line {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #3c4c52;
}

.panel-grid,
.split-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.panel {
  border: 1px solid rgba(31, 38, 41, 0.15);
  background: #faf8f3;
  padding: 0.88rem 0.9rem;
}

.flow-list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ll-flow;
}

.flow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(31, 38, 41, 0.13);
}

.flow-list li::before {
  counter-increment: ll-flow;
  content: "0" counter(ll-flow);
  margin-top: 0.06rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #5c6f77;
}

.flow-list li:last-child {
  border-bottom: 0;
}

.compact-list,
.section ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.compact-list li,
.section li {
  margin-bottom: 0.32rem;
  color: var(--muted);
}

.placeholder-list {
  margin-top: 0.58rem;
}

.placeholder-list li {
  color: #61737a;
}

.return-row {
  margin-top: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.35rem;
  text-align: center;
  color: #4e5d63;
  font-size: 0.9rem;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: calc(70svh - 3.6rem);
  }

  .door-grid,
  .fit-grid,
  .panel-grid,
  .split-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .landscape-table {
    min-width: 44rem;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .hero,
  .section {
    padding-left: 0.96rem;
    padding-right: 0.96rem;
  }

  .hero {
    padding-top: 2.85rem;
  }

  .header-link {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
