/* ArcSmith homepage. After daybreak.css. */

/* The finished home is an aspirational home illustration. The product views below it remain
   separate, with their own capture captions. The photo is visible from the first paint in every motion mode. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: clip;
  isolation: isolate;
  background: #F5F5F7;
}
.hero-copy {
  position: relative; z-index: 2;
  grid-row: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(32px, 4.3vh, 56px);
}
.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 30px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid #E3E1DD;
  font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--as-body);
  text-wrap: balance;
}
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--as-brand-brass); box-shadow: 0 0 0 3px rgba(226, 176, 97, .22); flex: none; }
.hero-copy .display { margin-top: 20px; max-width: 15em; font-size: clamp(44px, 5.1vw, 82px); }
.hero-copy .lede { margin-top: 18px; max-width: 38em; color: var(--as-body); text-wrap: balance; }
.hero-actions {
  position: relative; z-index: 2; grid-row: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: min(100% - var(--gutter) * 2, 640px); margin: 24px auto 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.btn-glass { background: #fff; color: var(--as-ink); border-color: var(--as-line-firm); }
.btn-glass:hover { background: #fff; border-color: #86868B; color: var(--as-ink); }
.hero-signin { text-align: center; text-wrap: balance; }
.hero-signin a { font-weight: 500; }
.hero-plate {
  position: relative; grid-row: 3;
  width: 100%; height: auto; aspect-ratio: 2.4 / 1;
  margin: 0;
  overflow: hidden;
  background: #DED6C8;
}
.hero-frame { position: absolute; inset: 0; overflow: hidden; }
.hero-frame picture { width: 100%; height: 100%; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-plate.vt-house { view-transition-name: house; }
.hero-cap {
  position: absolute; z-index: 1; right: clamp(16px, 2.2vw, 32px); bottom: 16px;
  max-width: calc(100% - 32px); padding: 6px 11px; border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  font-size: 12px; line-height: 1.4; color: #424245;
}

@media screen and (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *, .js .hero-actions { animation: hero-rise 600ms var(--ease-settle) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes hero-rise { from { transform: translateY(10px); } }
html[data-pace="still"] .hero-copy > *, html[data-pace="still"] .hero-actions { animation: none !important; }

@media (max-width: 900px) {
  .hero-copy { padding-top: 32px; }
  .hero-copy .display { max-width: 13em; }
  .hero-copy .lede { max-width: 35em; }
  .hero-actions { margin-bottom: 28px; }
  .hero-plate { height: auto; aspect-ratio: 1672 / 941; }
}
@media (max-width: 640px) {
  .hero-copy { padding-top: 26px; }
  .hero-copy .display { margin-top: 18px; font-size: clamp(40px, 10.4vw, 58px); }
  .hero-copy .lede { margin-top: 16px; font-size: 17px; }
  .hero-actions { margin-top: 22px; margin-bottom: 24px; }
  .hero-ctas { width: 100%; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 140px; min-height: 48px; padding: 0 14px; font-size: 16px; }
  .hero-cap { right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 8px; font-size: 12px; }
}

/* ================= ONE MODEL. EVERY VIEW. =================
   A compact gallery of genuine product captures. The drawings set the content height; the page has no
   pinned stage or scroll-driven view selection. Every drawing remains available without JavaScript. */
.model { padding-top: clamp(40px, 4vw, 64px); scroll-margin-top: calc(var(--bar-h) + 8px); }
.model-head, .model-gallery, .model-note { max-width: 1120px; }
.model-head { display: flex; flex-direction: column; gap: 12px; }
.model-head .chapter { font-size: clamp(32px, 3.1vw, 44px); }
.model-head .lede { max-width: 50em; font-size: 18px; }
.model-gallery { margin-top: 24px; }
.view-switches {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
  width: min(100%, 600px); padding: 4px;
  border: 1px solid var(--as-line-firm); border-radius: 10px; background: #ECECF0;
}
.view-switch {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 0; padding: 0 12px; border: 1px solid transparent; border-radius: 6px;
  color: var(--as-body); font-size: 15px; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none;
}
.view-switch:hover { color: var(--as-ink); background: #fff; }
.view-switch[aria-selected="true"] { color: #fff; background: var(--as-accent); border-color: var(--as-accent); font-weight: 600; }
.view-switch:focus-visible { outline: 3px solid #0051A5; outline-offset: 3px; }
.gallery-panels { display: flex; flex-direction: column; gap: 32px; margin-top: 18px; }
.model.is-gallery .gallery-panels { display: block; }
.view-panel { min-width: 0; scroll-margin-top: calc(var(--bar-h) + 88px); }
.view-panel[hidden] { display: none; }
.view-panel:focus-visible { outline-offset: 6px; }
.view-figure { display: flex; flex-direction: column; gap: 16px; }
.drawing-frame { overflow: hidden; border: 1px solid var(--as-line-firm); border-radius: 10px; background: #fff; }
.drawing-frame picture, .drawing-image { width: 100%; }
.drawing-image { height: auto; }
.drawing-plan { background: #F2F0EC; }
.drawing-3d { background: #A9BC88; }
.view-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.view-description { display: flex; flex-direction: column; gap: 6px; }
.view-description h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.012em; }
.view-description > p:not(.drawing-label) { font-size: 17px; line-height: 1.45; color: var(--as-body); }
.drawing-label { font-size: 14px; line-height: 1.45; color: var(--as-muted); text-align: right; }
.view-description .drawing-label { text-align: left; margin-top: 2px; }
.sheet-detail { width: min(44%, 480px); }
.sheet-detail picture { border: 1px solid var(--as-line); border-radius: 6px; overflow: hidden; }
.detail-image { width: 100%; height: auto; }
.sheet-detail .drawing-label { margin-top: 6px; text-align: left; }
.pdf-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pdf-page { min-width: 0; }
.pdf-page figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--as-ink); }
.pdf-page figcaption span { color: var(--as-muted); font-weight: 400; }
#view-pdf > .view-caption { margin-top: 20px; }
.model-note { margin-top: 20px; line-height: 1.5; }

@media (max-width: 600px) {
  .model { padding-top: 40px; }
  .model-head .lede { font-size: 17px; }
  .model-gallery { margin-top: 20px; }
  .view-switches { gap: 0; padding: 3px; }
  .view-switch { padding: 0 2px; font-size: 13px; letter-spacing: -.01em; }
  .gallery-panels { margin-top: 16px; }
  .view-caption { flex-direction: column; gap: 8px; }
  .drawing-label { text-align: left; font-size: 13px; }
  .sheet-detail { width: 100%; margin-top: 4px; }
  .pdf-pages { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .model-note { font-size: 13px; }
}

/* ================= CLIENTS ================= */
.clients { padding-block: clamp(48px, 5vw, 72px) clamp(56px, 7vw, 120px); }
.clients-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.clients-copy { display: flex; flex-direction: column; gap: 18px; max-width: 34em; }
.clients-copy .small { max-width: 32em; color: var(--as-body); }
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 18px; align-items: center; }
.review-plan {
  position: relative; aspect-ratio: 1045 / 1180; border-radius: var(--as-radius-card); overflow: hidden;
  background: #EEF0F5; border: 1px solid var(--as-line); box-shadow: var(--as-shadow-stage);
}
.review-plan picture, .review-plan img { width: 100%; height: 100%; object-fit: cover; }
.pin {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0;
  display: grid; place-items: center; border-radius: 50%;
  border: 2px solid #fff; background: var(--as-accent); color: #fff;
  font: 600 14px/1 var(--font-ui); cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 47, 100, .18), 0 10px 22px rgba(0, 47, 100, .2);
  transition: transform var(--dur-small) var(--ease-settle);
}
.pin::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(0, 113, 227, .45); opacity: 0; transform: scale(.7); transition: opacity var(--dur-small) var(--ease-standard), transform var(--dur-medium) var(--ease-settle); }
.pin-1 { left: 20%; top: 38.5%; }
.pin-2 { left: 66%; top: 14%; }
.review-notes { display: flex; flex-direction: column; gap: 10px; }
.notes-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 2px; }
.notes-head b { font-size: 14px; font-weight: 600; color: var(--as-ink); }
.notes-head span { font-size: 13px; color: var(--as-muted); }
.note {
  appearance: none; font: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 12px;
  padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--as-line); box-shadow: var(--as-shadow-card);
  transition: border-color var(--dur-small) var(--ease-standard), transform var(--dur-small) var(--ease-settle);
}
.note .num { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--as-accent); color: #fff; font-size: 13px; font-weight: 600; }
.note-message { font-size: 15px; line-height: 1.4; color: var(--as-ink); }
.note .who { font-size: 13px; color: var(--as-muted); }
.signed {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: #EDF7F0; color: var(--as-good); font-size: 14px; font-weight: 500; line-height: 1.35;
}
.signed svg { width: 18px; height: 18px; flex: none; }
.review figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--as-muted); }
/* a pin and its note answer each other */
.review[data-pick="1"] .note-1, .review[data-pick="2"] .note-2,
.review:has(.pin-1:hover, .pin-1:focus-visible) .note-1,
.review:has(.pin-2:hover, .pin-2:focus-visible) .note-2 { border-color: var(--as-accent); transform: translateX(-3px); }
.review[data-pick="1"] .pin-1, .review[data-pick="2"] .pin-2,
.review:has(.note-1:focus-visible) .pin-1, .review:has(.note-2:focus-visible) .pin-2,
.review:has(.note-1:hover) .pin-1, .review:has(.note-2:hover) .pin-2,
.pin:hover, .pin:focus-visible { transform: scale(1.12); }
.review[data-pick="1"] .pin-1::before, .review[data-pick="2"] .pin-2::before,
.review:has(.note-1:focus-visible) .pin-1::before, .review:has(.note-2:focus-visible) .pin-2::before,
.review:has(.note-1:hover) .pin-1::before, .review:has(.note-2:hover) .pin-2::before,
.pin:hover::before, .pin:focus-visible::before { opacity: 1; transform: scale(1); }
.pin:focus-visible { outline-offset: 6px; border-radius: 50%; }
/* one shot: the pins drop, the notes unfold (home.js adds .is-in once) */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveals-on .review:not(.is-in) .pin { opacity: 0; transform: translateY(-16px) scale(.6); }
  .reveals-on .review .pin { transition: opacity 320ms var(--ease-settle), transform 420ms var(--ease-settle); }
  .reveals-on .review.is-in .pin-1 { transition-delay: 180ms; }
  .reveals-on .review.is-in .pin-2 { transition-delay: 300ms; }
  .reveals-on .review:not(.is-in) .note, .reveals-on .review:not(.is-in) .signed, .reveals-on .review:not(.is-in) .notes-head { opacity: 0; transform: translateY(10px); }
  .reveals-on .review .note, .reveals-on .review .signed, .reveals-on .review .notes-head { transition: opacity 420ms var(--ease-standard), transform 560ms var(--ease-settle), border-color var(--dur-small) var(--ease-standard); }
  .reveals-on .review.is-in .notes-head { transition-delay: 300ms; }
  .reveals-on .review.is-in .note-1 { transition-delay: 380ms; }
  .reveals-on .review.is-in .note-2 { transition-delay: 460ms; }
  .reveals-on .review.is-in .signed { transition-delay: 560ms; }
}

/* ================= MAKER ================= */
.maker { padding-block: clamp(56px, 7vw, 120px); }
.maker-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.maker-art { position: relative; display: grid; place-items: center; aspect-ratio: 1.55; border-radius: var(--as-radius-stage); background: radial-gradient(70% 62% at 42% 40%, #FBF1DD 0%, #F7F2EA 46%, rgba(247, 242, 234, 0) 100%); }
.maker-art svg { width: 84%; height: auto; }
.maker-copy { display: flex; flex-direction: column; gap: 16px; max-width: 30em; }

/* ================= FAQ ================= */
.faq { padding-block: clamp(56px, 7vw, 120px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--bar-h) + 48px); display: flex; flex-direction: column; gap: 12px; }
.faq-list { border-top: 1px solid var(--as-line-firm); }
.qa { padding: 26px 0; border-bottom: 1px solid var(--as-line); display: grid; gap: 8px; }
.qa dt { font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--as-ink); letter-spacing: -.005em; }
.qa dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--as-body); max-width: 40em; }

/* ================= THE BETA BAND (the one dark moment) ================= */
.closing { padding-block: clamp(24px, 3vw, 48px) clamp(56px, 7vw, 120px); }
.band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch;
  border-radius: var(--as-radius-stage); background: var(--as-brand-ink); color: var(--as-brand-stone);
  min-height: clamp(380px, 34vw, 500px);
}
.band-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(36px, 5vw, 80px); }
.band .label { color: #C9C1B5; }
.band h2 { color: var(--as-brand-stone); }
.band .lede { color: #D6CFC3; max-width: 30em; }
.band .hero-ctas { justify-content: flex-start; margin-top: 8px; }
.band .btn-quiet { background: transparent; color: var(--as-brand-stone); border-color: #6B655C; }
.band .btn-quiet:hover { border-color: var(--as-brand-stone); color: var(--as-brand-stone); }
.band :focus-visible { outline-color: #8CC2FF; }
.band-art { position: relative; z-index: 1; min-height: 260px; }
.band-tile { position: absolute; right: 8%; bottom: -2px; width: min(84%, 420px); height: auto; overflow: visible; }
.band-glow {
  position: absolute; right: calc(8% + min(84%, 420px) * .5 - 160px); bottom: -150px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 176, 97, .34), rgba(226, 176, 97, .1) 55%, rgba(226, 176, 97, 0));
  pointer-events: none;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .band.is-live .band-glow { animation: breathe 5s var(--ease-standard) infinite alternate; }
  .band-door { transition: opacity 900ms var(--ease-standard); }
  .reveals-on .band:not(.is-in) .band-door { opacity: 0; }
}
@keyframes breathe { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }

/* Friday: the date lines swap by the visitor's clock (head.js sets data-phase before paint) */
html:not([data-phase="open"]) .post, html[data-phase="open"] .pre { display: none; }

/* ================= small screens ================= */
@media (max-width: 900px) {
  .clients-grid, .maker-grid, .faq-grid, .band { grid-template-columns: minmax(0, 1fr); }
  .review { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .band-art { min-height: 220px; }
  .band-tile { right: 50%; translate: 50% 0; width: min(64%, 300px); }
  .band-glow { right: 50%; translate: 50% 0; width: 260px; height: 260px; bottom: -120px; }
  .maker-art { aspect-ratio: 1.4; }
}
@media (max-width: 640px) {
  .pin { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 13px; }
  .qa dt { font-size: 17px; }
  .qa { padding: 20px 0; }
  .band .hero-ctas .btn { flex: 1 1 100%; }
}

@media print {
  .hero { height: auto; min-height: 0; }
  .hero-paper, .hero-draw, .hero-light, .hero-sun { display: none !important; }
  .hero-img { transform: none !important; }

  .view-switches { display: none !important; }
  .model, .clients { padding-top: 24px; }
  .gallery-panels { display: block !important; }
  .view-panel, .view-panel[hidden] { display: block !important; break-inside: avoid; margin-bottom: 24px; }
  .drawing-frame { box-shadow: none; }
  .pdf-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pin, .note, .signed, .notes-head { opacity: 1 !important; transform: none !important; }
}
