/* Brier Creek Cleaning — concept art direction: "neighborhood almanac".
   Warm paper, forest ink, brick accents, a creek running through the page. */
.t-brier {
  --bg: #f3ecdf; --surface: #fbf7ee; --ink: #1f2a22; --muted: #575f50;
  --accent: #24402e; --accent-ink: #fbf7ee; --soft: #e7dcc6; --line: rgba(31, 42, 34, .2);
  --focus: #b4532a; --brick: #a8492a; --gold: #e2b25f; --creek: #9cc3bd;
  --display: var(--serif);
}
.t-brier h1, .t-brier h2, .t-brier h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; }
.t-brier h1 em, .t-brier h2 em { font-style: italic; color: var(--brick); }
.section { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- Header ---------- */
.top { padding-block: 18px; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark svg { width: 42px; height: 42px; flex: none; }
.wordmark b { display: block; font: 600 22px/1 var(--display); letter-spacing: -.01em; }
.wordmark small { display: block; margin-top: 4px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 550; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brick); }
.top nav .nav-cta { padding: 9px 16px; border: 1.5px solid var(--accent); border-radius: 999px; }
.top nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
@media (max-width: 820px) { .top nav a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(44px, 6.6vw, 90px); line-height: .98; }
.hero .lede { margin-top: 22px; max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.facts li { padding: 14px 14px 0 0; }
.facts li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.facts b { display: block; font: 600 19px/1.15 var(--display); }
.facts span { display: block; margin-top: 4px; font: 500 11.5px/1.35 var(--mono); letter-spacing: .03em; color: var(--muted); }

.hero-art { position: relative; max-width: 470px; justify-self: end; width: 100%; }
.hero-art .arch { width: 100%; height: auto; filter: drop-shadow(0 22px 40px rgba(36, 64, 46, .18)); }
.hero-art .seal { position: absolute; left: -46px; bottom: 74px; width: clamp(110px, 12vw, 148px); }
.hero-art figcaption { margin-top: 12px; font: 500 11.5px/1.4 var(--mono); color: var(--muted); text-align: right; }
.seal-text { transform-origin: 80px 80px; }
@media (prefers-reduced-motion: no-preference) {
  .seal-text { animation: spin 48s linear infinite; }
  .hero-art .sun { animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art .glow { animation: glow 4s ease-in-out infinite alternate; }
  .hero-art .birds { animation: drift 14s ease-in-out infinite alternate; }
  .hero-art .ripple { stroke-dasharray: 8 10; animation: flow 3s linear infinite; }
  .hero-copy > * { animation: up .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }
@keyframes glow { to { fill: #f8dc9b; } }
@keyframes drift { to { transform: translate(26px, -8px); } }
@keyframes flow { to { stroke-dashoffset: -36; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
.creek-rule { width: 100%; height: 40px; margin-top: clamp(40px, 6vw, 72px); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 380px; }
  .hero-art .seal { left: -10px; bottom: 56px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .actions .btn { width: 100%; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head h2, .towns h2, .family h2, .quote h2 { margin-top: 12px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; }
.section-head p:last-child { margin: 16px auto 0; max-width: 52ch; color: var(--muted); font-size: 18px; }

/* ---------- Room explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 3.5vw, 48px); align-items: start; }
.house-stage { position: relative; padding: clamp(14px, 2.4vw, 28px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.cutaway { width: 100%; height: auto; }
.room { cursor: pointer; }
.room-bg { fill: #ece2cc; }
@media (prefers-reduced-motion: no-preference) { .room-bg { transition: fill .3s; } .spk { transition: transform .55s cubic-bezier(.2, .8, .2, 1); } }
.room:hover .room-bg { fill: #f6ecd6; }
[data-active="kitchen"] [data-room="kitchen"] .room-bg,
[data-active="bathroom"] [data-room="bathroom"] .room-bg,
[data-active="bedroom"] [data-room="bedroom"] .room-bg,
[data-active="living"] [data-room="living"] .room-bg,
[data-active="office"] [data-room="office"] .room-bg { fill: #f4cf86; }
.sparkles { pointer-events: none; }
.spk { transform: translate(-40px, -40px); }
@media (prefers-reduced-motion: no-preference) { .sparkles { animation: twinkle 1.8s ease-in-out infinite alternate; } }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
[data-active="kitchen"] .s1 { transform: translate(80px, 338px); } [data-active="kitchen"] .s2 { transform: translate(140px, 336px); } [data-active="kitchen"] .s3 { transform: translate(181px, 322px); }
[data-active="bathroom"] .s1 { transform: translate(96px, 206px); } [data-active="bathroom"] .s2 { transform: translate(140px, 230px); } [data-active="bathroom"] .s3 { transform: translate(192px, 196px); }
[data-active="bedroom"] .s1 { transform: translate(250px, 206px); } [data-active="bedroom"] .s2 { transform: translate(352px, 252px); } [data-active="bedroom"] .s3 { transform: translate(282px, 222px); }
[data-active="living"] .s1 { transform: translate(236px, 318px); } [data-active="living"] .s2 { transform: translate(320px, 340px); } [data-active="living"] .s3 { transform: translate(282px, 386px); }
[data-active="office"] .s1 { transform: translate(430px, 306px); } [data-active="office"] .s2 { transform: translate(504px, 312px); } [data-active="office"] .s3 { transform: translate(468px, 288px); }
.stage-hint { position: absolute; top: 18px; left: 22px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.js .stage-hint::before { content: "↘ "; }
html:not(.js) .stage-hint { display: none; }

.room-tabs, .town-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.room-tabs [role="tab"], .town-tabs [role="tab"] { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; }
.room-tabs [role="tab"]:hover { border-color: var(--accent); }
.room-tabs [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.room-card { margin-top: 18px; padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: var(--accent); color: var(--accent-ink); }
.room-card h3 { font-size: clamp(28px, 3vw, 36px); }
.room-card p { margin-top: 8px; color: #d8dccd; }
.room-card :focus-visible, .room-card:focus-visible { outline-color: #ffb27a; }
.checks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 2px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(251, 247, 238, .16); font-weight: 550; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%2324402e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .room-card:not([hidden]) .checks li { animation: tick .45s cubic-bezier(.2, .7, .2, 1) both; }
  .room-card .checks li:nth-child(2) { animation-delay: .07s; }
  .room-card .checks li:nth-child(3) { animation-delay: .14s; }
  .room-card .checks li:nth-child(4) { animation-delay: .21s; }
}
@keyframes tick { from { opacity: 0; transform: translateX(-10px); } }
html:not(.js) .room-card + .room-card { margin-top: 12px; }
.room-ui .example-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } }

/* ---------- Towns ---------- */
.towns { background: var(--accent); color: #f3ecdf; }
.towns .kicker { color: var(--gold); }
.towns h2 em { color: var(--gold); }
.towns :focus-visible { outline-color: #ffb27a; }
.towns-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.towns-lede { margin: 14px 0 26px; color: #d3d8c8; font-size: 18px; }
.town-tabs [role="tab"] { background: transparent; color: #f3ecdf; border-color: rgba(243, 236, 223, .35); }
.town-tabs [role="tab"]:hover { border-color: #f3ecdf; }
.town-tabs [role="tab"][aria-selected="true"] { background: #f3ecdf; color: var(--accent); border-color: #f3ecdf; }
.town-card { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--gold); background: rgba(243, 236, 223, .07); border-radius: 0 12px 12px 0; }
.town-card b { font-family: var(--display); font-size: 1.2em; font-weight: 600; }
html:not(.js) .town-card + .town-card { margin-top: 8px; }
.towns .example-note { color: #c9cfbd; }
.towns .example-note a { color: #fff; }
.map { padding: clamp(10px, 2vw, 22px); border-radius: 28px; background: #f3ecdf; }
.map svg { width: 100%; height: auto; }
.map figcaption { padding: 8px 6px 2px; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.pin { cursor: pointer; }
.pin text { font: 600 17px/1 var(--serif); fill: var(--accent); text-anchor: middle; }
.pin .dot { fill: #fbf7ee; stroke: var(--accent); stroke-width: 3; }
.pin .pulse { fill: none; stroke: var(--brick); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin:hover .dot { fill: var(--gold); }
[data-active="raleigh"] .pin[data-key="raleigh"] .dot, [data-active="cary"] .pin[data-key="cary"] .dot,
[data-active="durham"] .pin[data-key="durham"] .dot, [data-active="wake"] .pin[data-key="wake"] .dot,
[data-active="chapel"] .pin[data-key="chapel"] .dot { fill: var(--brick); stroke: var(--brick); }
[data-active="raleigh"] .pin[data-key="raleigh"] .pulse, [data-active="cary"] .pin[data-key="cary"] .pulse,
[data-active="durham"] .pin[data-key="durham"] .pulse, [data-active="wake"] .pin[data-key="wake"] .pulse,
[data-active="chapel"] .pin[data-key="chapel"] .pulse { opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  [data-active="raleigh"] .pin[data-key="raleigh"] .pulse, [data-active="cary"] .pin[data-key="cary"] .pulse,
  [data-active="durham"] .pin[data-key="durham"] .pulse, [data-active="wake"] .pin[data-key="wake"] .pulse,
  [data-active="chapel"] .pin[data-key="chapel"] .pulse { animation: ping 1.8s ease-out infinite; }
  .map-creek { stroke-dasharray: 14 10; animation: flow 4s linear infinite; }
}
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (max-width: 900px) { .towns-grid { grid-template-columns: 1fr; } }

/* ---------- Family ---------- */
.family-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.polaroids { position: relative; min-height: 380px; }
.polaroid { position: absolute; width: min(300px, 72%); padding: 12px 12px 14px; background: #fff; box-shadow: 0 18px 40px rgba(31, 42, 34, .18); }
.polaroid .ph { border: 2px dashed rgba(31, 42, 34, .3); }
.polaroid svg { width: 100%; height: auto; }
.polaroid span { display: block; margin-top: 10px; font: italic 500 17px/1.2 var(--serif); text-align: center; color: var(--muted); }
.polaroid.p1 { left: 0; top: 0; transform: rotate(-5deg); }
.polaroid.p2 { right: 0; bottom: 0; transform: rotate(4deg); }
@media (prefers-reduced-motion: no-preference) {
  .polaroid { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
  .polaroids:hover .p1 { transform: rotate(-8deg) translate(-8px, -6px); }
  .polaroids:hover .p2 { transform: rotate(7deg) translate(8px, 6px); }
}
.family-copy > p:not(.kicker):not(.example-note) { margin-top: 18px; max-width: 52ch; color: var(--muted); font-size: 18px; }
.story-slot { margin: 26px 0 0; padding: 22px 24px; border: 1.5px dashed var(--brick); border-radius: 18px; background: var(--surface); }
.story-slot p { margin-top: 12px; font: italic 400 clamp(20px, 2vw, 25px)/1.35 var(--serif); color: var(--ink); }
@media (max-width: 860px) { .family-grid { grid-template-columns: 1fr; } .polaroids { min-height: 330px; max-width: 460px; width: 100%; margin-inline: auto; } }

/* ---------- Request flow ---------- */
.quote { background: var(--soft); }
.quote-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; align-items: end; }
.quote-head .example, .quote-head h2 { grid-column: 1; }
.quote-head p { grid-column: 1; max-width: 58ch; color: var(--muted); font-size: 18px; }
.quote-head .btn { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
@media (max-width: 760px) { .quote-head { grid-template-columns: 1fr; } .quote-head .btn { grid-column: 1; grid-row: auto; justify-self: start; } }
.quote-panel { margin-top: 36px; padding: clamp(18px, 3vw, 36px); border-radius: 28px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 24px 60px rgba(31, 42, 34, .14); }
.qp-head h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.planner-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 4vw, 48px); margin: 28px 0; align-items: start; }
.btn-sm { min-height: 42px; font-size: 14.5px; justify-self: start; }
.ticket { position: relative; padding: 26px 22px 22px; background: #f3ecdf; border-radius: 6px; box-shadow: 0 8px 24px rgba(31, 42, 34, .12);
  -webkit-mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) 0 0 / 22px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) 0 0 / 22px 100% repeat-x; }
.ticket h4 { font: 600 22px/1.1 var(--display); margin: 4px 0 14px; padding-right: 72px; }
.ticket-stamp { position: absolute; right: 14px; top: 20px; padding: 4px 8px; border: 2px solid var(--brick); color: var(--brick); border-radius: 6px; font: 800 12px/1 var(--mono); letter-spacing: .14em; transform: rotate(8deg); }
.plan-count { margin: 8px 0 6px; font: 600 12px/1.3 var(--mono); color: var(--muted); }
.ticket-done { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 14.5px; }
.ticket-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .planner-grid { grid-template-columns: 1fr; } }
.quote .dnote { margin-top: 28px; }
