/* The home keeps the official monochrome identity. Motion owns only this page. */
html:has(.architecture-opening), html body.home { background: #000; }
.home::before { display: none; }
.home #main { position: relative; }
.home .section-heading h2 em, .home .closing h2 em, .architecture-copy h1 em {
  font-family: var(--font); font-style: normal; font-weight: inherit; color: #b9bcc0;
}
.architecture-opening { position: relative; }
.architecture-stage { position: relative; overflow: clip; }
.architecture-frame { position: relative; min-height: 800px; padding-top: 160px; }
.architecture-copy { position: relative; width: 54%; z-index: 3; padding-bottom: 100px; }
.architecture-copy .eyebrow { font-size: var(--text-2xs); letter-spacing: .08em; }
.architecture-copy h1 { font: 500 clamp(46px,5vw,72px)/1.04 var(--font); letter-spacing: -.055em; margin: 0 0 var(--space-7); }
.architecture-copy .hero-sub { max-width: 54ch; font-size: var(--reading-lead); line-height: 1.5; color: #b9bcc0; margin-bottom: var(--space-7); }
.architecture-copy .hero-actions { display: grid; width: fit-content; max-width: 100%; grid-template-columns: repeat(2,1fr); }
.architecture-copy .hero-actions .button { justify-content: space-between; }
.architecture-static { position: absolute; top: 200px; right: var(--gutter); width: 38%; }
.architecture-static svg { width: 100%; height: auto; }
.architecture-board { display: none; }
.architecture-pathways { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-12); padding: var(--space-16) 0; }
.architecture-card { color: inherit; text-decoration: none; display: block; border-top: 5px solid #fff; padding-top: var(--space-7); }
.architecture-card:nth-child(2) { border-color: #b9bcc0; }
.architecture-card:nth-child(3) { border-color: #7d8187; }
.architecture-card h2 { font: 400 clamp(26px,3vw,42px)/1.15 var(--font); letter-spacing: -.045em; display: flex; justify-content: space-between; margin: 0 0 var(--space-5); }
.architecture-card h2 span { color: #7d8187; font-size: var(--text-2xl); }
.architecture-card p { color: #b9bcc0; font-size: var(--reading-body); line-height: 1.5; max-width: 34ch; }
.architecture-card:focus-visible, .architecture-skip:focus-visible { outline: 2px solid white; outline-offset: 8px; }
.architecture-overlay, .architecture-threads { display: none; }
.architecture-skip { position: fixed; right: var(--gutter); bottom: var(--space-8); z-index: 110; }
.home [data-architecture-chapter] { position: relative; z-index: 1; padding-top: var(--chapter-inset); --chapter-inset: 136px; scroll-margin-top: calc(0px - var(--chapter-inset)); background: transparent; }
.architecture-finale { width: 72px; margin: 0 auto 56px; }
.architecture-finale svg { width: 100%; height: auto; }
.architecture-boot body { background: #000 !important; }
.architecture-boot .cookie-consent, .architecture-introducing .cookie-consent, .architecture-boot .site-header, .architecture-boot main, .architecture-boot .footer { visibility: hidden; }
.home-motion .architecture-opening { height: 300svh; }
.home-motion .architecture-stage { height: 100svh; position: sticky; top: 0; }
.home-motion .architecture-frame { height: 100%; min-height: 0; padding-top: 0; }
.home-motion .architecture-copy {
  position: absolute; inset: 40% var(--gutter) auto; width: auto; text-align: start; padding: 0;
}
.home-motion .architecture-copy h1 { font-size: clamp(40px,min(5.1vw,8svh),78px); margin-bottom: clamp(16px,3svh,28px); }
.architecture-copy h1 .title-line { overflow: clip; }
.home-motion .architecture-copy .hero-sub { max-width: 54ch; margin: 0 0 clamp(16px,3svh,28px); text-wrap: pretty; }
.home-motion .architecture-copy .hero-actions { justify-content: flex-start; }
.home-motion .architecture-static { visibility: hidden; }
.home-motion .architecture-board { position: absolute; top: 17%; left: var(--gutter); display: block; opacity: 0; }
.architecture-board .eyebrow { margin-bottom: var(--space-4); }
.architecture-board-title { font: 400 clamp(40px,4.5vw,58px)/1.04 var(--font); letter-spacing: -.05em; margin: 0; }
.architecture-board-title span { color: #b9bcc0; }
.home-motion .architecture-pathways { position: absolute; top: 49%; left: var(--gutter); right: var(--gutter); padding: 0; }
.home-motion .architecture-card { position: relative; opacity: 0; visibility: hidden; border: 0; padding: 0; }
.home-motion .architecture-overlay, .architecture-introducing .architecture-overlay { display: block; position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.architecture-sprites { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.architecture-lab { position: absolute; top: 50%; left: 50%; width: min(720px,72vw); transform: translate(-50%,-50%); opacity: 0; }
.architecture-math { width: 100%; height: auto; display: block; overflow: visible; }
.math-stroke { fill: none; stroke: #b9bcc0; stroke-width: 1; }
.math-stroke path { vector-effect: non-scaling-stroke; }
.math-arcs { stroke: #7d8187; }
.math-altitude { stroke-dasharray: 5 5; }
.math-measures { fill: #b9bcc0; font: 13px var(--mono); }
.math-ruler { stroke: #7d8187; }
.math-vertices { fill: #fff; }
.math-fibonacci .fib-square { fill: none; stroke: #7d8187; stroke-opacity: .85; stroke-width: .26; stroke-dasharray: 1 1; }
.math-fibonacci .fib-dot { fill: #fff; }
.math-fibonacci .fib-num { fill: #b9bcc0; text-anchor: middle; font-family: var(--mono); dominant-baseline: middle; }
.architecture-equations { text-align: center; min-height: 2em; margin: 0; color: #b9bcc0; font: var(--text-sm) var(--mono); letter-spacing: .07em; }
.architecture-introducing .architecture-overlay { background: #000; z-index: 90; }
.architecture-introducing .site-header { opacity: 0; pointer-events: none; }
.home-motion .architecture-threads { display: block; position: absolute; inset: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.architecture-threads path { stroke: url(#thread-arrival); fill: none; stroke-width: .9; stroke-linecap: round; }
.architecture-threads path:nth-child(1) { stroke-opacity: .39; }
.architecture-threads path:nth-child(2) { stroke-opacity: .22; }
.architecture-threads path:nth-child(3) { stroke-opacity: .15; }
.home-motion .architecture-scroll { display: flex; align-items: center; gap: var(--space-4); position: absolute; bottom: var(--space-7); left: var(--gutter); color: #b9bcc0; font: var(--text-2xs) var(--mono); }
.home-motion .architecture-finale { visibility: hidden; }
@media (hover:hover) and (pointer:fine) {
  .architecture-card:hover h2 span { color: white; }
}
@media (max-width:900px) {
  .architecture-frame { padding-top: 110px; min-height: 0; }
  .architecture-copy { width: 100%; padding: 0 0 var(--space-8); }
  .architecture-copy .hero-sub { font-size: max(1.1875rem,var(--reading-lead)); }
  .architecture-copy h1 { font-size: clamp(36px,7.5vw,58px); }
  .architecture-copy .eyebrow { font-size: var(--text-2xs); max-width: 320px; }
  .architecture-copy { container-type: inline-size; }
  .architecture-copy .hero-actions { grid-template-columns: 1fr; gap: var(--space-2); }
  .architecture-copy .hero-actions .button {
    position: relative; min-height: 38px; padding-inline: var(--space-3);
    gap: var(--space-2); font-size: var(--text-xs);
  }
  /* Extend the touch target into the gap between the pills. */
  .architecture-copy .hero-actions .button::after { content: ""; position: absolute; inset: -4px 0; }
  .architecture-static { position: relative; top: auto; right: auto; width: 54%; max-width: 280px; margin: var(--space-8) auto; }
  .architecture-pathways { gap: var(--space-8); grid-template-columns: 1fr; }
  .architecture-card h2 { font-size: var(--text-3xl); }
  .architecture-card p { max-width: none; }
  .home-motion .architecture-copy { top: 39%; }
  .home-motion .architecture-copy h1 { font-size: min(8.95cqi,56px); }
  .home-motion .architecture-opening { height: 290svh; }
  .home-motion .architecture-board { top: 110px; }
  .architecture-board-title { font-size: 38px; }
  .home-motion .architecture-pathways { top: 33%; gap: var(--space-7); }
  .home-motion .architecture-card { padding-left: var(--space-5); }
  .architecture-card h2 { margin-bottom: var(--space-2); }
  .architecture-card p { font-size: 1rem; margin: 0; }
  .architecture-lab { width: min(92vw,600px); }
  .architecture-skip { right: 24px; bottom: 20px; }
  .home [data-architecture-chapter] { --chapter-inset: 108px; }
  .home .section[data-architecture-chapter] { padding-bottom: var(--space-7); }
  .architecture-finale { margin-bottom: var(--space-8); }
}
@media print { .architecture-overlay,.architecture-threads,.architecture-skip { display: none !important; } }


/* The still composition follows the same reading order as the animated one. */
html:not(.home-motion) .architecture-frame {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 0; padding-top: clamp(100px,16vh,170px);
}
html:not(.home-motion) .architecture-static { position: static; order: -1; width: clamp(90px,13vw,148px); margin: 0 auto 28px; }
html:not(.home-motion) .architecture-copy { width: 100%; text-align: start; padding: 0; }
html:not(.home-motion) .architecture-copy h1 { font-size: min(8.95cqi,72px); }
html:not(.home-motion) .architecture-copy .hero-sub { margin-inline: 0; text-wrap: pretty; }
html:not(.home-motion) .architecture-copy .hero-actions { justify-content: flex-start; }
html:not(.home-motion) .architecture-pathways { width: 100%; }

.proof-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.94fr); align-items: center; gap: clamp(40px,7vw,100px); }
.proof-layout .section-heading { margin-bottom: 24px; }
.proof-layout .section-heading > p:last-child { max-width: 43ch; }
.proof-instrument { color: #e8e9eb; margin: 0; padding-block: 24px; border-block: 1px solid #ffffff36; }
.proof-instrument figcaption,.proof-endpoints { display: flex; justify-content: space-between; gap: 12px; font: 400 var(--text-xs)/1.5 var(--mono); color: #b9bcc0; }
.proof-value { margin-top: 24px; font: 450 clamp(52px,6vw,86px)/1 var(--font); letter-spacing: -.065em; }
.proof-value small { font: 400 18px var(--mono); letter-spacing: 0; color: #b9bcc0; }
.proof-drawing { display: block; width: 100%; overflow: visible; }
.proof-drawing path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.proof-track { opacity: .22; }
.proof-signal,.proof-return { stroke-dasharray: 1; }
.proof-return { opacity: .6; }
[data-proof="ready"] :is(.proof-signal,.proof-return) { stroke-dashoffset: 1; }
[data-proof="interrupted"] .proof-return { stroke-dashoffset: .5; }
.proof-result { margin-block: 24px 16px; min-height: 5.7em; }
.proof-result strong { font: 500 var(--text-lg)/1.4 var(--font); }
.proof-result p { margin-top: 8px; max-width: 44ch; color: #b9bcc0; }
.proof-footnote { display: block; margin-top: 16px; color: #a3a6aa; }
@media(prefers-reduced-motion:no-preference) {
  [data-proof="interrupted"] .proof-signal, [data-proof="confirmed"] .proof-signal { animation: proof-send .68s cubic-bezier(.4,0,.2,1) both; }
  [data-proof="confirmed"] .proof-signal { animation-name: proof-resend; }
  [data-proof="interrupted"] .proof-return { animation: proof-interrupted .5s .55s ease-out both; }
  [data-proof="confirmed"] .proof-return { animation: proof-confirm .65s .55s ease-out both; }
}
@keyframes proof-send { from {stroke-dashoffset:1} to {stroke-dashoffset:0} }
@keyframes proof-resend { from {stroke-dashoffset:1} to {stroke-dashoffset:0} }
@keyframes proof-interrupted { from {stroke-dashoffset:1} to {stroke-dashoffset:.5} }
@keyframes proof-confirm { from {stroke-dashoffset:1} to {stroke-dashoffset:0} }
@media(max-width:900px) { .proof-layout { grid-template-columns: 1fr; gap: 32px; } }


.philosophy-link { padding-bottom: clamp(40px,6vw,80px); text-align: center; }
.philosophy-link a { color: #b9bcc0; }

.architecture-face polygon {
  shape-rendering: geometricPrecision;
}

.architecture-intro-position { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .architecture-introducing .architecture-intro-position {
    display: block; position: absolute; top: 50%; inset-inline: var(--gutter);
    transform: translateY(-50%); margin: 0; opacity: 0;
    font: 500 clamp(24px,5.3vw,88px)/1.05 var(--font); letter-spacing: -.045em;
    text-align: center; text-wrap: balance; color: var(--gray-300);
  }
}

.story-rail b { font-weight: inherit; }
.story-rail button { display: none; }
.proof-followup { margin-top: var(--space-4); }
[data-proof]:not([data-proof="confirmed"]) .proof-followup { display: none; }

@media (max-width: 900px) {
  .story.is-live .story-rail { padding-inline: var(--space-3); gap: var(--space-1); }
  .story.is-live .story-rail :is(b,li > span) { display: none; }
  .story.is-live .story-rail button {
    display: block; width: 100%; min-height: var(--button-height); padding: 0;
    background: transparent; border: 1px solid transparent; border-radius: var(--radius-pill);
    font: 500 var(--text-xs)/1.2 var(--font); color: var(--gray-300); cursor: pointer;
  }
  .story.is-live .story-rail button[aria-pressed="true"] {
    background: var(--liquid-selected); border-color: var(--gray-600); color: var(--gray-0);
  }
  .story.is-live .story-step:not(.is-on) { display: none; }
  .story.is-live .story-step { cursor: auto; margin: 0; }
  .story.is-live .story-step .eyebrow { display: none; }
  .story.is-live .story-grid { gap: var(--space-4); }
}

.architecture-copy h1 { width: fit-content; max-width: 100%; }

@media (max-width: 420px) and (max-height: 650px) {
  html:not(.home-motion) .architecture-frame { padding-top: var(--space-20); }
  html:not(.home-motion) .architecture-static { width: var(--space-10); margin-bottom: var(--space-3); }
  html:not(.home-motion) .architecture-copy h1 { margin-bottom: 0; }
  html:not(.home-motion) .architecture-copy :is(.hero-sub,.hero-actions) { margin-block: var(--space-3) 0; }
}

.home-motion #contato .closing-response { opacity: var(--response-opacity,1); }
.home-motion #contato .closing-grid h2 .title-line {
  transform: translate(var(--caption-x,0px),var(--caption-y,0px)) scale(var(--caption-scale,1));
  opacity: var(--caption-opacity,1);
}
@media (min-width: 901px) {
  .home-motion .architecture-copy { top: 32%; right: 29%; }
  .home-motion .architecture-copy h1 { font-size: clamp(48px,min(5.9vw,9.4svh),114px); }
  .home .architecture-finale { margin-bottom: var(--space-5); }
  .home #contato { --chapter-inset: clamp(80px,7vw,112px); }
  .home .philosophy-link { text-align: start; padding-bottom: var(--space-10); }
}
@media (min-width: 901px) {
  html:not(.home-motion) .architecture-frame {
    display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,1fr);
    gap: var(--space-8); padding-top: clamp(100px,14vh,150px);
  }
  html:not(.home-motion) .architecture-copy { grid-area: 1 / 1; }
  html:not(.home-motion) .architecture-static {
    grid-area: 1 / 2; align-self: start; justify-self: center; width: min(18vw,230px); margin: 0;
  }
  html:not(.home-motion) .architecture-pathways { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  html:not(.home-motion) .architecture-copy h1 { font-size: clamp(48px,5.6vw,110px); }
  .architecture-copy .hero-sub { font-size: clamp(1.375rem,1.1rem + .65vw,1.875rem); }
  html:not(.home-motion) .architecture-static { width: min(23vw,350px); }
}

.architecture-introducing .architecture-static { visibility: hidden; }

@media (min-width: 640px) and (max-width: 900px) and (max-height: 480px) {
  html:not(.home-motion) .architecture-frame { padding-top: var(--space-20); }
  html:not(.home-motion) .architecture-copy h1 { font-size: clamp(26px,3.8vw,34px); margin-bottom: 0; }
  html:not(.home-motion) .architecture-copy :is(.hero-sub,.hero-actions) { margin-block: var(--space-3) 0; }
  .home .cookie-consent-box { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-5); padding: var(--space-3) var(--space-4); }
  .home .cookie-consent-actions { grid-area: 1 / 2 / 3 / 3; }
}
