/* Material refinement: clear reading order, compact proof, and calm product scenes.
   Load after styles.css and draft.css. Workflow internals live in workflow.css. */

:root {
  --page-max: 74rem;
  --page-gutter: clamp(1.25rem, 4vw, 2.75rem);
  --measure: 34rem;
  --text-base: 1.125rem;
  --weight-display: 580;
  --color-glass: rgba(255,255,255,.96);
  --color-glass-solid: #fff;
  --color-glass-edge: rgba(25,47,34,.13);
  --color-muted: oklch(43% 0.014 150);
  --shadow-card: 0 1px 2px rgba(11,48,32,.035),
    0 5px 12px -8px rgba(11,48,32,.14);
}

html { scroll-snap-type: none; }
body { font-size: var(--text-base); line-height: 1.55; }
.wire::before { background: var(--color-rule-2); }
.wire::after, .wire__done, .wire__mark { display: none; }
.btn { min-height: 2.875rem; border-radius: .625rem; padding-inline: 1.375rem; font-size: .9375rem; }
.btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 4px rgba(11,48,32,.10); }
.btn--quiet { min-height: 2.75rem; border-color: var(--color-rule); padding-inline: 1.125rem; box-shadow: 0 1px 2px rgba(11,48,32,.025); }
.btn {
  transition: background-color 240ms var(--ease-out),
    border-color 240ms var(--ease-out), color 240ms var(--ease-out),
    box-shadow 320ms var(--ease-reveal), transform 320ms var(--ease-reveal);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 3px 7px rgba(11,48,32,.12); }
}

/* Hero: one introduction and one integrated demonstration. */
.hero { background: var(--color-paper-2); }
.hero__field, .hero__grain, .cta__field { display: none; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto;
  grid-template-areas: "nav" "title" "sub" "actions" "scene";
  min-height: 0;
  max-width: var(--page-max);
  padding: 1.75rem var(--page-gutter) 3.5rem;
  margin-inline: auto;
  gap: 0;
}
.hero__top,
.hero__top.is-past-hero {
  grid-area: nav;
  position: static;
  align-self: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin: 0 0 3rem;
  gap: 1rem;
}
.hero__top::before { display: none; }
.hero__wordmark,
.site-footer__inner .site-footer__mark {
  --wordmark-stroke: rgba(255,253,248,.65);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .5rem .7rem;
  border: 1px solid transparent;
  border-radius: 0;
  background:
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) left top / 10px 1px no-repeat,
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) left top / 1px 10px no-repeat,
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) right top / 10px 1px no-repeat,
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) right top / 1px 10px no-repeat,
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) left bottom / 10px 1px no-repeat,
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) left bottom / 1px 10px no-repeat,
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) right bottom / 10px 1px no-repeat,
    linear-gradient(var(--wordmark-stroke), var(--wordmark-stroke)) right bottom / 1px 10px no-repeat;
  background-origin: border-box;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  color: #fffdf8;
}
.hero__title {
  grid-area: title;
  align-self: end;
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 560;
  line-height: 1.07;
  letter-spacing: -.042em;
  overflow-wrap: normal;
  text-wrap: balance;
}
.hero__sub {
  grid-area: sub;
  margin: 1.5rem 0 0;
  max-width: 38ch;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.012em;
}
.hero__actions { grid-area: actions; margin-top: 1.75rem; align-self: start; }
.hero .cd {
  grid-area: scene;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 23.5rem;
  margin: 3rem 0 0;
  padding: 0;
  gap: 0;
}
.hero .cd__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: "phone" "log";
  justify-items: center;
  align-items: start;
  gap: 0;
}
.hero .cd-phone {
  width: 17.5rem;
  max-width: calc(100% - 1.25rem);
  height: 28.75rem;
  margin: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border-width: 4px;
  border-color: color-mix(in srgb, var(--color-ink) 84%, var(--color-accent));
  border-radius: 2.125rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.65),
    0 3px 6px -3px rgba(11,48,32,.12),
    0 22px 44px -24px rgba(11,48,32,.24);
}
.hero .cd-phone__status { padding: .75rem 1rem .25rem; font-size: .75rem; }
.hero .cd-phone__head {
  min-height: 3.5rem;
  padding: .4rem .65rem .5rem;
  background: color-mix(in srgb, var(--color-paper) 94%, transparent);
  border-bottom-color: var(--color-rule-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero .cd-phone__contact,
.hero .cd-phone__back,
.hero .cd-phone__video { background: transparent; border: 0; box-shadow: none; }
.hero .cd-phone__contact { padding: 0; }
.hero .cd-phone__name { font-size: .8125rem; }
.hero .cd-phone__name span { font-size: .6875rem; }
.hero .cd-thread { padding-top: 4rem; }
.hero .cd-sms { font-size: .8125rem; line-height: 1.45; }
.hero .cd-stamp { font-size: .6875rem; }
.hero .cd-message__receipt { font-size: .6875rem; line-height: 1.35; }
.hero .cd-composer { padding-bottom: .875rem; }

/* A short, readable activity summary attaches to the phone. */
.hero .cd-log {
  position: relative;
  z-index: 2;
  display: block;
  grid-area: log;
  width: 100%;
  max-width: 21.5rem;
  min-height: 0;
  margin-top: -.75rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--color-glass-edge);
  border-radius: .875rem;
  background: var(--color-glass-solid);
  box-shadow: var(--shadow-card);
  font-size: .875rem;
}
.hero .cd-log__group {
  --activity-shift: 0px;
  position: static;
  inset: auto;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 7rem;
  margin: 0;
  padding: 0;
  gap: .75rem;
  align-content: start;
  text-align: left;
}
.hero .cd-log__head { color: var(--color-ink); font-size: .875rem; font-weight: 550; line-height: 1.4; }
.hero .cd-log__list { padding: 0; gap: .55rem; }
.hero .cd-act { opacity: 1; color: var(--color-ink-2); font-size: .8125rem; font-weight: 400; line-height: 1.4; gap: .5rem; padding-top: 0; }
.hero .cd-act:nth-last-child(n + 4) { display: none; }
.hero .cd-act::before { display: none; }
.hero .cd-act svg { width: .9375rem; height: .9375rem; margin-top: .0625rem; }
.hero .cd-act__detail { display: none; }
.hero .cd-act.is-busy .cd-act__text { animation: none; }

/* A compact project record adds the saved approval without repeating the demo. */
.signoff { background: var(--color-paper); border-top-color: var(--color-rule-2); }
.signoff::before, .signoff__plan { display: none; }
.signoff .signoff__inner { display: block; max-width: var(--page-max); padding: 1.75rem var(--page-gutter); }
.signoff .approval-record {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) auto;
  grid-template-areas: none;
  align-items: center;
  width: 100%;
  max-width: none;
  gap: 1.5rem;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-glass-solid);
  border: 1px solid var(--color-glass-edge);
  border-radius: .875rem;
  box-shadow: var(--shadow-card);
  opacity: 1;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.approval-record__job { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.approval-record__image { display: block; width: 6rem; height: 4.5rem; border-radius: .5rem; object-fit: cover; border: 1px solid var(--color-rule-2); }
.signoff .approval-record h2 { max-width: none; font-size: 1.125rem; font-weight: 550; line-height: 1.3; letter-spacing: -.025em; text-wrap: initial; overflow-wrap: normal; }
.approval-record__job p { margin-top: .375rem; color: var(--color-muted); font-size: .8125rem; line-height: 1.4; }
.approval-record__approval { padding-left: 1.5rem; border-left: 1px solid var(--color-rule-2); }
.approval-record .shot__sig { width: 9rem; height: 2.25rem; padding: 0; border: 0; }
.approval-record__approval p { margin-top: .25rem; font-size: .75rem; line-height: 1.5; color: var(--color-ink-2); }
.approval-record__approval p span { color: var(--color-muted); }
.approval-record__approval p span::before { content: "· "; }
.approval-record__invoice { display: grid; justify-items: end; gap: .375rem; padding-left: 1.5rem; border-left: 1px solid var(--color-rule-2); }
.approval-record__amount { color: var(--color-ink); font-size: 1.5rem; font-weight: 550; line-height: 1.2; letter-spacing: -.035em; }
.approval-record__status { display: flex; align-items: center; gap: .375rem; color: var(--color-accent); font-size: .75rem; line-height: 1.5; white-space: nowrap; }
.approval-record__status svg { width: .875rem; height: .875rem; }
@media (max-width: 59.99rem) {
  .signoff .approval-record { grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; }
  .approval-record__job { grid-column: 1 / -1; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-rule-2); }
  .approval-record__approval { padding: 0; border: 0; }
  .approval-record__invoice { padding-left: 1rem; }
}
@media (max-width: 39.99rem) {
  .signoff .signoff__inner { padding-block: 1.25rem; }
  .signoff .approval-record { padding: 1rem; gap: 1rem; }
  .approval-record__image { width: 4.5rem; height: 3.75rem; }
  .approval-record__job { gap: .75rem; padding-bottom: 1rem; }
  .signoff .approval-record h2 { font-size: 1.0625rem; }
  .approval-record__job p { font-size: .75rem; }
  .approval-record__approval p span { display: block; }
  .approval-record__approval p span::before { content: none; }
  .approval-record .shot__sig { width: 7rem; }
  .approval-record__invoice { padding-left: .75rem; }
}

/* One clear statistic; the explanation supports it. */
.story { background: var(--color-paper-2); }
.story .story__stage {
  max-width: var(--page-max);
  min-height: 0;
  padding-block: 3.25rem;
  row-gap: 1.25rem;
  align-content: start;
}
.story h2 {
  font-size: clamp(2rem, 2.8vw, 2.375rem);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -.035em;
  max-width: none;
  overflow-wrap: normal;
}
.story__big { font-size: clamp(5rem, 8vw, 6.75rem); font-weight: 550; line-height: .95; letter-spacing: -.055em; }
.story__unit { font-size: 1.0625rem; line-height: 1.5; }
.panel__lede { max-width: 35ch; font-size: 1.1875rem; font-weight: 400; line-height: 1.55; letter-spacing: -.012em; color: var(--color-ink-2); }
.story__chart { gap: .875rem; }
.story__chart-title { font-size: .9375rem; font-weight: 500; }
.story__bar { height: 3.75rem; gap: 2px; }
.story .seg-judge { transform: none; box-shadow: 0 5px 14px -10px rgba(29,90,62,.18); }
.story .seg-judge b { transform: none; }
.story__legend { gap: .625rem 1rem; font-size: .8125rem; line-height: 1.4; }
.story__legend li { gap: .375rem; }
.story__legend li::before { width: .625rem; height: .625rem; }
.story__stage::before { opacity: calc(var(--gain, 0) * .45); }
.steps { font-size: .8125rem; gap: .875rem; }
.steps__label { min-height: 2.75rem; }

/* Workflow internals are defined independently in workflow.css. */
.how__inner { max-width: var(--page-max); padding-block: 4.5rem; gap: 2.5rem; }
.how__head { align-items: start; }
.how h2 { max-width: none; font-size: clamp(2rem, 3.8vw, 2.875rem); font-weight: 560; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: normal; }

.how h2 > span { display: block; }

/* The original full-color photograph is framed around the entrance and light
   trails. A neutral scrim protects the invitation without recoloring the image. */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #263033;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(7,13,18,.28), rgba(7,13,18,.52) 48%, rgba(7,13,18,.22)),
    var(--cta-photo, url("assets/cta-architecture-1920.webp"));
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--background-shift, 0px), 0) scaleX(-1);
}
/* Extra image beyond the section edges allows a small drift without seams.
   The CTA's focal-point correction keeps its entrance/light-trail crop intact. */
.hero.has-parallax,
.cta.has-parallax { --parallax-padding: 80px; }
.hero.has-parallax::before,
.cta.has-parallax::before {
  inset-block: calc(-1 * var(--parallax-padding));
  will-change: transform;
}
.cta.has-parallax::before {
  background-position: center calc(80% - var(--parallax-padding) * .6);
}
@media (max-width: 59.99rem) {
  .hero.has-parallax,
  .cta.has-parallax { --parallax-padding: 48px; }
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  align-content: center;
  justify-items: center;
  max-width: var(--page-max);
  min-height: clamp(20rem, 32vw, 26rem);
  padding: 3rem var(--page-gutter);
  gap: 1.5rem;
}
.cta__copy { grid-column: 1; justify-items: center; text-align: center; }
.cta p { max-width: 32ch; font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; color: #fffdf8; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.cta .btn { grid-column: 1; justify-self: center; }
@media (min-width: 120rem), (min-width: 80rem) and (min-resolution: 1.5dppx) {
  .cta { --cta-photo: url("assets/cta-architecture-2560.webp"); }
}
@media (max-width: 59.99rem) {
  .cta { --cta-photo: url("assets/cta-architecture-960.webp"); }
}
.site-footer { background: #101b16; border-top-color: rgba(255,253,248,.1); }
.site-footer__inner { max-width: var(--page-max); padding-block: 1.75rem; gap: 1rem; font-size: .8125rem; color: #b9c6bd; }
.site-footer__inner .site-footer__mark { font-size: 1.375rem; }

@media (min-width: 40rem) {
  .hero__inner { padding-block: 2rem 4rem; }
  .hero__top { margin-bottom: 3.5rem; }
  .hero__title { max-width: 19ch; }
  .cta__inner { padding-block: 3.25rem; }
}

@media (min-width: 60rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(1rem, 1fr) auto auto auto minmax(1rem, 1fr);
    grid-template-areas: "nav nav" ". scene" "title scene" "sub scene" "actions scene" ". scene";
    column-gap: clamp(2.5rem, 5vw, 4.25rem);
    /* Fill the available desktop view; intrinsic content can still make short
       windows taller without clipping the phone or shrinking the typography. */
    min-height: max(44rem, 100vh);
    min-height: max(44rem, 100svh);
    padding-block: 2rem 3.5rem;
  }
  .hero__top { margin-bottom: 2.5rem; }
  .hero__title { max-width: none; font-size: clamp(2.375rem, 4vw, 3.375rem); }
  .hero__keep { white-space: nowrap; }
  .hero__sub { max-width: 35ch; font-size: 1.1875rem; }
  .hero .cd { margin: 0; }
  .story .story__stage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "steps chart" "head chart" "num chart" "copy chart";
    column-gap: 3.5rem;
    row-gap: 1.125rem;
    padding-block: 3.5rem;
  }
  .story__chart { align-self: center; }
}

@media (max-width: 39.99rem) {
  .cta::before { background-size: auto 250%; background-position: 50% 82%; }
  .cta.has-parallax::before {
    background-size: auto calc(250% - var(--parallax-padding) * 5);
    background-position: 50% calc(82% - var(--parallax-padding) * .64);
  }
  .hero__top { margin-bottom: 2.625rem; }
  .hero__wordmark { font-size: 1.25rem; }
  .hero__top .btn { font-size: .8125rem; padding-inline: .875rem; }
  .hero__title { font-size: clamp(2.25rem, 8.2vw, 3.125rem); }
  .hero .cd { max-width: 21.5rem; }
  .hero .cd-log { padding: 1rem; }
  .story .story__stage { padding-block: 2.75rem; }
  .how__inner { padding-block: 3.25rem; gap: 2rem; }
  .how h2 { font-size: clamp(1.375rem, 6.7vw, 2rem); }
  .cta__break { display: none; }
  .story .story__stage { grid-template-areas: "steps" "head" "num" "chart" "copy"; }
  .story__chart { margin-block: .5rem; }
  .story__bar { height: 3.25rem; }
  .story__legend { column-gap: .875rem; font-size: .75rem; }
  .panel__lede { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.has-parallax::before,
  .cta.has-parallax::before { inset-block: 0; will-change: auto; }
  .hero::before { transform: none; }
  .cta::before { transform: scaleX(-1); }
  .cta.has-parallax::before { background-position: center 80%; }
  .btn { transition: none; }
  .hero .cd-phone__face, .hero .cd-act { transition: none; }
  .story__stage::before { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 39.99rem) {
  .cta.has-parallax::before { background-size: auto 250%; background-position: 50% 82%; }
}
