/* Final responsive proportions and scroll-led scenes. */
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
.section { max-width: 1540px; margin-inline: auto; }

.hero {
  height: 160svh;
  min-height: 0;
  overflow: visible;
  background: #4c5969;
}
.hero-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
#hero-sequence {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #4c5969 url('./assets/hero-frames/frame-000.png') center / cover no-repeat;
  transform: scale(var(--hero-scale, 1.01));
  filter: saturate(1.04);
}
.hero-copy.reveal.visible {
  opacity: var(--hero-copy-opacity, 1);
  transform: translateY(var(--hero-copy-shift, 0px));
  transition: opacity .16s linear, transform .16s linear;
}
.hero-scroll-state { opacity: var(--hero-scroll-opacity, 1); }
.hero-scroll-state span { transform: scaleX(var(--hero-scroll-scale, .22)); }
.hero.scrubbing .hero-scroll-state small::after { content: ' / SCRUBBING'; }

.trusted { height: 220px; padding: 20px 0; }
.trusted > p { margin-bottom: 24px; }
.trusted .logo-marquee { margin-bottom: 13px; }

/* Six Figma pointers move into one top-aligned line as the section is scrolled. */
.idea-map {
  position: relative;
  height: 250svh;
  min-height: 0;
  padding: 0;
  overflow: visible;
}
.idea-sticky.section {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  padding: clamp(70px, 12vh, 101px) 100px 70px;
  overflow: hidden;
  align-items: flex-start;
}
.idea-sticky h2, .idea-map h2 { flex: 0 0 407px; width: 309px; }
.idea-steps {
  flex: 0 0 792px;
  width: 792px;
  height: 584px;
  margin: 0;
  transform: none;
  transform-origin: left top;
}
.idea-steps article,
.idea-map.idea-in .idea-steps article,
.idea-steps article.active,
.idea-steps article.past,
.idea-steps article.future {
  opacity: var(--step-opacity, .4) !important;
  transform: translateY(calc(0px - var(--lift, 0px))) !important;
  transition: opacity .15s linear, color .25s ease !important;
  filter: none;
}
.idea-steps article:hover { opacity: 1 !important; }
.idea-steps article.settled b { color: #c2451c; }
.idea-steps article.current b { color: #c75c39; }
.idea-progress-note {
  position: absolute;
  right: 100px;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b7664c;
  font: 9px "DM Mono", monospace;
  letter-spacing: .06em;
}
.idea-progress-note i { width: 105px; height: 1px; background: linear-gradient(90deg, #b7664c var(--idea-fill, 0%), #e8dfd7 0); }
.idea-progress-note small { font-size: 8px; color: #a9a09a; }

/* Original square image cells are cropped to separate source-ratio assets. */
.sprite-1 { background-image: url('./assets/editorial-01.jpg') !important; }
.sprite-2 { background-image: url('./assets/editorial-02.jpg') !important; }
.sprite-3 { background-image: url('./assets/editorial-03.jpg') !important; }
.sprite-4 { background-image: url('./assets/editorial-04.jpg') !important; }
.sprite-5 { background-image: url('./assets/editorial-05.jpg') !important; }
.sprite-6 { background-image: url('./assets/editorial-06.jpg') !important; }
.sprite-7 { background-image: url('./assets/editorial-07.jpg') !important; }
.sprite-8 { background-image: url('./assets/editorial-08.jpg') !important; }
.sprite-9 { background-image: url('./assets/editorial-09.jpg') !important; }
.sprite-10 { background-image: url('./assets/editorial-10.jpg') !important; }
.sprite-11 { background-image: url('./assets/editorial-11.jpg') !important; }
.sprite-12 { background-image: url('./assets/editorial-12.jpg') !important; }
.sprite { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }

.gallery { padding-top: 100px; padding-bottom: 100px; }
.gallery-head { max-width: 1120px; }
.gallery-grid {
  width: min(100%, 1120px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 11.5vw, 170px);
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: 42px;
}
.gallery-grid > button { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 12px; }
.gallery-grid > button:nth-child(1),
.gallery-grid > button:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.gallery-grid > button:nth-child(4),
.gallery-grid > button:nth-child(9) { grid-row: span 2; }
.gallery-grid > button:nth-child(7),
.gallery-grid > button:nth-child(10) { grid-column: span 2; }

.portrait { background-size: cover !important; background-position: center !important; }
.portrait-1 { background-image: url('./assets/portrait-01.png') !important; }
.portrait-2 { background-image: url('./assets/portrait-02.png') !important; }
.portrait-3 { background-image: url('./assets/portrait-03.png') !important; }
.testimonials { padding-top: 68px; padding-bottom: 72px; }
.testimonial-heading { margin-bottom: 30px; }
.quote-grid.bento { max-width: 1100px; margin-inline: auto; grid-template-columns: 1.05fr .95fr; grid-template-rows: 200px 200px; gap: 12px; }
.quote-main { grid-template-columns: 42% 58%; }
.quote-side { grid-template-columns: 38% 62%; }
.quote-wide { grid-template-columns: 62% 38%; }
.quote-main .quote-body { padding: 26px; }
.quote-body { padding: 18px; }
.quote-body > p { font-size: 11px; line-height: 1.45; margin: 12px 0 auto; }
.quote-main .quote-body > p { font-size: 15px; line-height: 1.4; }
.quote-body em { margin-top: 9px; }

/* Keep the rest of the page on one consistent editorial scale. */
.thoughts { gap: clamp(35px, 5vw, 72px); padding-top: 85px; padding-bottom: 95px; }
.thought-visual img { width: 100%; height: auto; }
.capabilities { padding-top: 66px; padding-bottom: 72px; }
.capabilities > h2 { margin-bottom: 44px; }
.feature-stack { padding-bottom: 48px; isolation: isolate; }
.feature-card, .feature-card:nth-child(n) {
  display: grid;
  grid-template-columns: 51% 49%;
  position: sticky;
  top: 72px;
  z-index: 1;
  width: 100%;
  height: 378px;
  min-height: 0;
  margin: 0 0 76px;
  transform: none;
  transition: box-shadow .35s ease, filter .35s ease;
  box-shadow: 0 16px 42px rgba(35,33,29,.11);
}
.feature-card:nth-child(2) { top: 90px; z-index: 2; }
.feature-card:nth-child(3) { top: 108px; z-index: 3; }
.feature-card:nth-child(4) { top: 126px; z-index: 4; }
.feature-card:not(.arrived), .feature-card.arrived { opacity: 1; transform: none; }
.feature-card:hover { transform: none; box-shadow: 0 20px 48px rgba(35,33,29,.15); }
.feature-card.is-behind { filter: saturate(.9); }
.feature-art {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 30px 0 30px 30px;
  display: grid;
  place-items: center;
}
.feature-art img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}
.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 28px 34px;
}
.feature-text > p { margin-bottom: 13px; }
.feature-text h3 { font-size: clamp(23px, 2vw, 27px); margin-bottom: 10px; }
.feature-text ul { margin-top: 13px; }
.feature-text li { margin: 6px 0; }
.canvas-section { padding-top: 72px; padding-bottom: 75px; }
.dashboard-window { max-width: 1000px; margin-top: 48px; }
.rooms { padding-top: 75px; padding-bottom: 95px; }
.room-panel { gap: clamp(28px, 5vw, 74px); }
.room-image { aspect-ratio: 4 / 3; }
.metric-wrap { padding-top: 80px; padding-bottom: 90px; }
.metrics article { aspect-ratio: auto; min-height: 220px; }
.process-grid article > div { height: auto; aspect-ratio: 4 / 3; }
.pricing { padding-top: 75px; padding-bottom: 70px; }
.price-grid article { min-height: 420px; }
.faq { padding-top: 85px; padding-bottom: 90px; }
.final-cta {
  height: min(660px, 78svh);
  background: #20212a url('./assets/hero-architectural/desktop/frame-095.jpg') center / cover no-repeat;
}
.final-cta .cta-shade { background: linear-gradient(180deg, rgba(20, 18, 21, .42), rgba(18, 15, 16, .78)); }

@media (min-width: 1101px) and (max-width: 1399px) {
  .idea-sticky.section { padding-left: 6vw; padding-right: 6vw; gap: 18px; }
  .idea-sticky h2, .idea-map h2 { flex-basis: 355px; }
  .idea-steps { flex-basis: 602px; transform: scale(.76); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .idea-sticky.section { padding-left: 5vw; padding-right: 5vw; gap: 16px; }
  .idea-sticky h2, .idea-map h2 { flex-basis: 300px; font-size: 33px; }
  .idea-steps { flex-basis: 491px; transform: scale(.62); }
  .gallery-grid { grid-auto-rows: 135px; }
}
@media (min-width: 991px) and (max-width: 1100px) {
  .idea-steps { flex-basis: 570px; transform: scale(.72); }
}
@media (max-width: 900px) {
  .idea-map { height: 225svh; }
  .idea-sticky.section { padding: 42px 5vw; display: block; }
  .idea-sticky h2, .idea-map h2 { width: auto; font-size: clamp(28px, 5vw, 36px); line-height: 1.22; }
  .idea-steps {
    display: grid;
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    height: auto;
    margin-top: 24px;
    transform: none;
  }
  .idea-steps article,
  .idea-steps article:nth-child(n) {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: clamp(108px, 18svh, 138px);
    padding: 9px 12px;
    border: 1px solid #e8e1da;
    border-radius: 10px;
    transform: none !important;
  }
  .idea-steps article b { font-size: 31px; line-height: 1; }
  .idea-steps article i { height: 1px; width: 30px; }
  .idea-steps article h3 { font-size: 16px; line-height: 1.1; }
  .idea-steps article p { font-size: 9px; }
  .idea-progress-note { left: 5vw; right: auto; bottom: 34px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 125px; }
  .quote-grid.bento { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .testimonial-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .testimonial-heading p { order: -1; margin: 0; }
  .quote-main { grid-row: 1 / 3; grid-template-columns: 40% 60%; }
  .quote-main .portrait { height: 100%; }
  .quote-main .quote-body { padding: 15px; }
  .quote-main .quote-body > p { font-size: 12px; }
  .quote-side, .quote-wide { grid-template-columns: 39% 61%; }
  .quote-wide { grid-template-columns: 61% 39%; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .price-grid { gap: 12px; }
  .price-grid article { min-height: 425px; padding: 18px; }
  .price-grid h3 { font-size: 30px; }
  .price-grid h3 small { display: block; margin-top: 7px; }
}
@media (max-width: 760px) {
  .hero { height: 150svh; }
  .trusted { height: 184px; padding: 18px 0; }
  .trusted > p { margin-bottom: 14px; }
  .trusted .logo-marquee { margin-bottom: 10px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-copy { top: 28%; }
  .idea-map { height: 205svh; }
  .idea-sticky.section { padding: 35px 20px; }
  .idea-steps { margin-top: 18px; }
  .idea-steps article, .idea-steps article:nth-child(n) { height: clamp(99px, 17svh, 126px); }
  .thoughts, .capabilities, .canvas-section, .rooms, .gallery, .testimonials, .pricing, .faq { padding-top: 55px; padding-bottom: 60px; }
  .capabilities > h2 { margin-bottom: 35px; }
  .feature-stack { padding-bottom: 32px; }
  .feature-card, .feature-card:nth-child(n) {
    display: flex;
    flex-direction: column;
    height: 390px;
    margin-bottom: 54px;
    top: 60px;
  }
  .feature-card:nth-child(2) { top: 72px; }
  .feature-card:nth-child(3) { top: 84px; }
  .feature-card:nth-child(4) { top: 96px; }
  .feature-art { height: 145px; min-height: 145px; aspect-ratio: auto; padding: 14px 18px 0; }
  .feature-text { height: auto; min-height: 0; padding: 17px 21px 18px; }
  .feature-text h3 { font-size: 21px; }
  .feature-text > p { margin-bottom: 7px; }
  .feature-text ul { margin-top: 8px; }
  .feature-text li { margin: 4px 0; }
  .dashboard-window { margin-top: 40px; }
  .room-image { aspect-ratio: 4 / 3; }
  .metrics article { min-height: 175px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 105px; gap: 8px; }
  .gallery-grid > button { border-radius: 9px; }
  .gallery-grid > button:nth-child(8) { grid-column: span 1; grid-row: span 2; }
  .gallery-grid > button:nth-child(7), .gallery-grid > button:nth-child(10) { grid-column: span 1; }
  .quote-grid.bento { grid-template-columns: 1fr; grid-template-rows: auto; max-width: 480px; }
  .quote-main { grid-row: auto; grid-template-columns: 39% 61%; height: 270px; }
  .quote-main .portrait { height: 100%; }
  .quote-main .quote-body > p { font-size: 12px; }
  .quote-side, .quote-wide { height: 164px; }
  .quote-body { padding: 15px; }
  .quote-body > p { font-size: 10px; margin-top: 8px; }
  .quote-body em { display: none; }
  .pricing > h2 { margin-bottom: 36px; }
  .price-grid article { min-height: 0; padding: 24px; }
  .price-grid article ul { padding-top: 16px; margin: 20px 0 8px; }
  .price-grid article > a { margin-top: 22px; }
  .faq { gap: 35px; }
  .final-cta { height: 640px; }
}
@media (max-width: 380px) {
  .idea-steps article, .idea-steps article:nth-child(n) { height: 96px; padding: 7px 9px; }
  .idea-steps article b { font-size: 26px; }
  .idea-steps article p { font-size: 8px; }
  .quote-main { grid-template-columns: 36% 64%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy.reveal.visible { opacity: 1 !important; transform: none !important; }
  .idea-map { height: auto; }
  .idea-sticky.section { position: relative; height: auto; min-height: 660px; }
  .idea-steps article, .idea-steps article:nth-child(n) { opacity: 1 !important; transform: none !important; }
}

/* Page-wide sizing QA: readable copy and controls without changing the visual language. */
.hero-actions a { font-size: 13px; padding: 13px 23px; }
.thought-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thought-copy small { font-size: 14px; line-height: 1.5; }
.feature-text > span { font-size: 14px; line-height: 1.5; }
.feature-text li { font-size: 13px; line-height: 1.35; }
.canvas-add-note, .canvas-mode, .canvas-reset, .generate-button { font-size: 11px; }
.canvas-toolbar label, .canvas-toolbar output { font-size: 10px; }
.canvas-feedback { min-height: 42px; height: auto; font-size: 11px; }
.canvas-feedback small { font-size: 10px; }
.room-tabs button { font-size: 13px; padding: 10px 16px; }
.room-copy > p { font-size: 15px; line-height: 1.55; }
.room-copy dt, .room-copy dd { font-size: 11px; }
.room-kicker, .room-window-bar { font-size: 10px; }
.metrics p { font-size: 14px; line-height: 1.45; }
.metrics small { font-size: 11px; line-height: 1.45; color: #a4a19a; }
.metric-note { font-size: 11px; line-height: 1.5; margin-bottom: 90px; }
.process-grid small { font-size: 10px; }
.process-grid p { font-size: 14px; line-height: 1.55; }
.gallery-head p { font-size: 13px; line-height: 1.5; }
.gallery-head > span { font-size: 10px; }
.quote-body > p, .quote-main .quote-body > p { font-size: 14px; line-height: 1.45; }
.quote-body footer strong, .quote-body footer small { font-size: 11px; }
.quote-body em { font-size: 9px; }
.price-grid article > p, .price-grid article > span { font-size: 12px; }
.price-grid li { font-size: 13px; line-height: 1.4; }
.price-grid article > a { font-size: 13px; padding: 12px 19px; }
.price-note { font-size: 11px; }
.faq-intro > p:nth-of-type(2), .faq-intro > p:last-child { font-size: 14px; line-height: 1.55; }
.accordion summary { font-size: 15px; line-height: 1.35; padding: 19px 26px 19px 0; }
.accordion details p { font-size: 14px; }
.cta-copy a { font-size: 13px; }
.cta-copy h2 { font-size: clamp(52px, 5.6vw, 78px); }
.site-footer {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: 48px;
  padding-top: 70px;
  padding-bottom: 34px;
}
.footer-logo { font-size: 25px; }
.site-footer > div:first-child p { max-width: 350px; font-size: 13px; line-height: 1.6; margin-top: 16px; }
.site-footer nav { gap: 20px; }
.site-footer nav section { gap: 13px; }
.site-footer nav b { color: #a5a09a; font-size: 10px; letter-spacing: .12em; margin-bottom: 7px; }
.site-footer nav a { color: #ddd9d4; font-size: 16px; line-height: 1.3; width: max-content; max-width: 100%; transition: color .2s ease, transform .2s ease; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: #e7a184; transform: translateX(3px); }
.footer-bottom { margin-top: 28px; padding-top: 24px; font-size: 11px; line-height: 1.4; }

@media (max-width: 900px) {
  .idea-map { height: 150svh; }
  .idea-steps article h3 { font-size: 17px; }
  .idea-steps article p { font-size: 11px; line-height: 1.35; }
  .quote-body em { display: none; }
  .site-footer { grid-template-columns: 1fr; gap: 36px; }
  .site-footer nav { width: 100%; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .thoughts { grid-template-columns: 1fr; gap: 36px; }
  .thought-copy h2 { max-width: 620px; font-size: 45px; }
  .thought-visual { width: 100%; height: 440px; }
  .room-panel { grid-template-columns: 1fr; gap: 30px; }
  .room-copy h3, .room-copy > p { max-width: 600px; }
  .room-visual { width: 100%; }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price-grid article { min-height: 0; padding: 28px; }
  .price-grid article > a { margin-top: 22px; }
  .price-note { text-align: center; }
}

@media (max-width: 760px) {
  .idea-map { height: 150svh; }
  .hero-actions a { font-size: 12px; padding: 12px 17px; }
  .idea-steps article h3 { font-size: 17px; }
  .idea-steps article p { font-size: 11px; line-height: 1.35; }
  .thought-copy small { font-size: 13px; }
  .feature-card, .feature-card:nth-child(n) { height: 410px; }
  .feature-text > span { font-size: 12.5px; }
  .feature-text li { font-size: 12px; }
  .canvas-mode { font-size: 10px; }
  .canvas-feedback { font-size: 10px; }
  .room-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; border: 0; padding-bottom: 0; }
  .room-tabs button { width: 100%; white-space: normal; font-size: 12px; border: 1px solid #e7e1da; text-align: center; }
  .room-tabs button:nth-child(5) { grid-column: 1 / -1; }
  .room-copy > p { font-size: 14px; }
  .metrics p { font-size: 12px; }
  .metrics small { font-size: 10px; }
  .process-grid p { font-size: 13px; }
  .quote-main { height: 310px; }
  .quote-side, .quote-wide { height: 205px; }
  .quote-body > p, .quote-main .quote-body > p { font-size: 12px; line-height: 1.45; }
  .quote-body footer strong, .quote-body footer small { font-size: 10px; }
  .price-grid li { font-size: 13px; }
  .accordion summary { font-size: 14px; }
  .cta-copy h2 { font-size: clamp(40px, 10.5vw, 48px); }
  .site-footer { padding: 58px 22px 30px; gap: 30px; }
  .site-footer nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .site-footer nav section { gap: 12px; }
  .site-footer nav a { font-size: 14px; }
  .footer-bottom { margin-top: 6px; font-size: 10px; }
}

@media (max-width: 380px) {
  .feature-card, .feature-card:nth-child(n) { height: 430px; }
  .feature-art { height: 125px; min-height: 125px; padding: 8px 14px 0; }
  .idea-steps article h3 { font-size: 15px; }
  .idea-steps article p { font-size: 10px; }
  .quote-side, .quote-wide { height: 230px; }
  .site-footer nav a { font-size: 13px; }
}
