/* Hero layout */
.hero {
  padding-top: var(--s8);
  padding-bottom: var(--s6);
  overflow: hidden;
}
.hero__text {
  max-width: 900px;
  margin-bottom: var(--s8);
}
.hero__text .display {
  margin-bottom: var(--s4);
}
.hero__text .lede {
  color: var(--ink-2);
  margin-bottom: var(--s5);
}
.hero__ctas {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}
.prospect-msg {
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: var(--s4);
}
@media (min-width: 900px) {
  .hero__text { text-align: left; }
}
@media (max-width: 899px) {
  .hero__text { text-align: center; margin-inline: auto; }
  .hero__text .lede { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
}

/* Terrace */
.terrace {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}
.house {
  flex: 0 1 clamp(70px, 15vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.railing {
  flex: 1 1 20px;
  max-width: 60px;
  height: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 3px, transparent 3px, transparent clamp(10px, 2vw, 16px));
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.house__fanlight {
  width: 100%;
  height: auto;
}
.house__plaque {
  background: var(--limestone);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 2px 8px;
  font-size: clamp(9px, 1.2vw, 11px);
  font-weight: 700;
  border-radius: 2px;
  margin: 6px 0;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(21, 35, 59, 0.1);
}
.door-frame {
  width: 100%;
  aspect-ratio: 1 / 2.2;
  background: var(--ink);
  padding: 4px 4px 0 4px;
  position: relative;
  perspective: 1200px;
  display: block;
}
.door-leaf {
  width: calc(100% - 8px);
  height: calc(100% - 4px);
  background: var(--door-bg);
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  transform-origin: left;
  transition: transform 1s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12%;
  padding: 15% 15% 25%;
}
.door-panel {
  flex: 1;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.door-knocker {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 3px solid var(--brass);
  border-radius: 50%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}
.house__step {
  width: 115%;
  height: 12px;
  background: var(--granite-2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

/* Porter specific door */
.door-frame--porter {
  background: var(--backroom);
}
.door-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 60%, rgba(244, 196, 48, 0.45), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.2s;
}
.phone-glow {
  width: 14px;
  height: 28px;
  background: #E9EDEF;
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  transform: translate(8px, 12px);
}
.terrace.is-loaded .door-frame--porter .door-leaf {
  transform: rotateY(-25deg);
}
@media (prefers-reduced-motion: reduce) {
  .terrace.is-loaded .door-frame--porter .door-leaf { transform: none; transition: none; }
}
@media (max-width: 759px) {
  .house--red, .railing--1,
  .house--plum, .railing--4 { display: none; }
}

/* Flagship Band */
.flagship-band {
  background: var(--backroom);
  color: var(--term-text);
  padding-block: var(--s8);
}
.flagship__header {
  text-align: center;
  margin-bottom: var(--s7);
}
.flagship__header .display {
  color: #fff;
  margin-bottom: var(--s2);
}
.flagship__header p {
  color: var(--term-dim);
  font-size: var(--fs-md);
}
.flagship__grid {
  display: flex;
  gap: var(--s6);
  justify-content: center;
  align-items: stretch;
}
.flagship__chat {
  flex: 0 1 340px;
}
.flagship__term {
  flex: 1;
  min-height: 400px;
}
.flagship__footer {
  text-align: center;
  margin-top: var(--s7);
}
@media (max-width: 759px) {
  .flagship__grid { flex-direction: column; align-items: center; }
  .flagship__chat { width: 100%; max-width: 340px; }
  .flagship__term { width: 100%; min-height: 300px; }
}

/* Services Ledger */
.services {
  padding-block: var(--s8);
}
.ledger {
  border-top: 1px solid var(--line);
}
.ledger__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.ledger__row h3 {
  font-size: var(--fs-lg);
  font-stretch: 75%;
}
.ledger__row p {
  color: var(--ink-2);
}
.ledger__row .bubble {
  justify-self: start;
}
@media (min-width: 900px) {
  .ledger__row {
    grid-template-columns: minmax(200px, 320px) 1fr auto;
    gap: var(--s6);
  }
  .ledger__row .bubble {
    justify-self: end;
  }
}

/* POC */
.poc {
  padding-block: var(--s8);
}
.poc__inner {
  background: var(--limestone);
  padding: var(--s7) var(--s5);
  border-radius: var(--r-lg);
  max-width: 900px;
  margin: 0 auto;
}
.poc__inner h2 {
  margin-bottom: var(--s2);
}
.poc__inner > p {
  color: var(--ink-2);
  font-size: var(--fs-md);
}
.steps-list {
  list-style: none;
  padding: 0;
  margin: var(--s6) 0;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.steps-list li:last-child {
  border-bottom: none;
}
.step-num {
  font-size: var(--fs-xl);
  color: var(--saffron);
  line-height: 1;
  min-width: 24px;
}
.step-content { flex: 1; }
.step-content strong {
  display: block;
  font-size: var(--fs-md);
  margin-bottom: var(--s1);
}
.step-content p {
  color: var(--ink-2);
}

/* About */
.about {
  padding-block: var(--s8);
  max-width: 800px;
}
.about h2 {
  margin-bottom: var(--s4);
}
.about > p {
  color: var(--ink-2);
  font-size: var(--fs-md);
  margin-bottom: var(--s6);
}
.about__map svg {
  width: 100%;
  height: auto;
  color: var(--ink-3);
}

/* FAQ */
.faq {
  padding-block: var(--s8);
  max-width: 800px;
}
.faq h2 {
  text-align: center;
  margin-bottom: var(--s6);
}
.faq__list details {
  background: var(--limestone);
  margin-bottom: var(--s3);
  border-radius: var(--r-md);
  padding: var(--s4);
  border: 1px solid var(--line);
}
.faq__list summary {
  font-weight: 700;
  cursor: pointer;
  position: relative;
  list-style: none;
  padding-right: var(--s6);
  font-size: var(--fs-md);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--mono);
  color: var(--saffron);
  font-weight: bold;
}
.faq__list details[open] summary::after { content: '-'; }
.faq__list p {
  margin-top: var(--s3);
  color: var(--ink-2);
}

/* Final CTA */
.final-cta {
  background: var(--navy);
  color: #fff;
  padding-block: var(--s8);
  text-align: center;
}
.final-cta .lede {
  color: var(--term-dim);
  margin-inline: auto;
  margin-bottom: var(--s5);
}

/* Footer overrides specific to layout grouping */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
