/* ============================================================
   Calder Design + Build : "Quarry & Ember"
   Near black quarry ground, warm limestone, ember copper.
   ============================================================ */

:root {
  --bg:       #14181A;
  --bg-2:     #1E2426;
  --stone:    #D8CFC2;
  --ember:    #C4622D;
  --ember-hi: #E07B41;
  --moss:     #4A5D4E;
  --text:     #ECEAE5;
  --text-dim: #8C918C;
  --line:     rgba(216, 207, 194, 0.14);
  --line-soft:rgba(216, 207, 194, 0.07);

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  --size-hero: clamp(3.2rem, 9.5vw, 8.75rem);
  --size-display: clamp(2.5rem, 6vw, 5.25rem);
  --size-sub: clamp(1.35rem, 2.6vw, 2rem);
  --size-body: clamp(1rem, 1.15vw, 1.125rem);

  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --gap-section: clamp(6rem, 14vh, 11rem);

  --ease-stone: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* clip, not hidden: hidden creates scroll-context quirks that make
   pinned sections jump at their boundaries */
html, body { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--ember); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Grain atmosphere ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: var(--size-display);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
}
.display .accent { color: var(--ember); }

.lede {
  color: var(--text-dim);
  max-width: 34em;
}

/* ---------- Strata divider (signature motif) ---------- */
.strata {
  position: relative;
  height: 72px;
  margin: 0 var(--pad-x);
  overflow: hidden;
}
.strata span {
  position: absolute;
  left: 0;
  height: 1px;
  background: var(--stone);
}
.strata span:nth-child(1) { top: 18%; width: 62%; opacity: 0.16; }
.strata span:nth-child(2) { top: 38%; width: 88%; opacity: 0.10; }
.strata span:nth-child(3) { top: 58%; width: 44%; opacity: 0.20; }
.strata span:nth-child(4) { top: 78%; width: 74%; opacity: 0.08; }
.strata i {
  position: absolute;
  top: calc(58% - 2px);
  left: 44%;
  width: 34px;
  height: 5px;
  background: var(--ember);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1em 1.9em;
  border: 1px solid var(--ember);
  background: var(--ember);
  color: #14181A;
  transition: background 0.45s var(--ease-stone), color 0.45s var(--ease-stone), border-color 0.45s var(--ease-stone);
}
.btn::after {
  content: "\2192";
  font-family: var(--font-body);
  transition: transform 0.45s var(--ease-stone);
}
.btn:hover { background: var(--stone); border-color: var(--stone); }
.btn:hover::after { transform: translateX(0.35em); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--stone); color: #14181A; border-color: var(--stone); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  transition: background 0.5s var(--ease-stone), border-color 0.5s var(--ease-stone), padding 0.5s var(--ease-stone);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(20, 24, 26, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  text-transform: uppercase;
}
.nav__logo svg { display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  min-width: 0;
  white-space: nowrap;
}
.nav__links a:not(.nav__cta) {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: 0.4em 0;
  transition: color 0.3s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-stone);
}
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 0.85em 1.4em; }
@media (max-width: 1100px) {
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 600px) {
  .nav { gap: 1rem; }
  .nav__logo { font-size: 0.95rem; gap: 0.5rem; }
  .nav__cta { padding: 0.7em 1em; font-size: 0.64rem; letter-spacing: 0.1em; }
  .nav__cta::after { content: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20,24,26,0.92) 0%, rgba(20,24,26,0.35) 34%, rgba(20,24,26,0.12) 60%, rgba(20,24,26,0.45) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(2.5rem, 7vh, 5rem);
}
.hero__eyebrow { margin-bottom: 1.4rem; color: var(--stone); }
.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 120%;
  font-size: var(--size-hero);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 11em;
}
.hero__headline .line { display: block; overflow: hidden; }
.hero__headline .line > span { display: inline-block; }
.hero__sub {
  margin-top: 1.6rem;
  max-width: 30em;
  color: var(--stone);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__meter {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(2.5rem, 7vh, 5rem);
  z-index: 2;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--stone);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}
.hero__stage { min-height: 1em; }
.hero__bar {
  width: 120px;
  height: 2px;
  background: rgba(216,207,194,0.22);
  position: relative;
  overflow: hidden;
}
.hero__bar i {
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform-origin: left;
  transform: scaleX(0);
}
.hero__hint {
  color: var(--text-dim);
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .hero__meter { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: var(--gap-section) var(--pad-x); }
.section--flush { padding-left: 0; padding-right: 0; }
.section__head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); max-width: 1600px; }
.section__head .display { margin-top: 1.1rem; }
.section__head .lede { margin-top: 1.4rem; }

/* ---------- Statement ---------- */
.statement {
  padding-top: calc(var(--gap-section) * 1.15);
  padding-bottom: calc(var(--gap-section) * 1.15);
  max-width: 1500px;
}
.statement__lines {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.statement__lines .l2 { color: var(--ember); padding-left: clamp(0rem, 8vw, 9rem); }
.statement__body {
  margin-top: 2.4rem;
  max-width: 36em;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  padding-left: clamp(0rem, 8vw, 9rem);
}

/* ---------- Process (signature) ---------- */
.process { position: relative; }
.process__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 78vh;
}
.process__canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.process__canvas .plan-svg,
.process__canvas .plan-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.plan-photo { object-fit: cover; opacity: 0; }
.plan-svg text {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.14em;
  fill: var(--text-dim);
}
.plan-svg .t-title { fill: var(--stone); font-size: 19px; }
.plan-svg .t-ember { fill: var(--ember); }
.plan-svg .s {
  fill: none;
  stroke: var(--stone);
  stroke-opacity: 0.5;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.plan-svg .s--ember { stroke: var(--ember); stroke-opacity: 1; stroke-width: 2.2; }
.plan-svg .s--faint { stroke-opacity: 0.18; stroke-width: 1; }
.process__caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  background: rgba(20,24,26,0.72);
  padding: 0.55em 0.9em;
  opacity: 0;
}
.process__steps { display: flex; flex-direction: column; gap: clamp(1.4rem, 3vh, 2.4rem); }
.process__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  opacity: 0.32;
  transition: opacity 0.5s var(--ease-stone), border-color 0.5s var(--ease-stone);
}
.process__step.is-active { opacity: 1; border-top-color: var(--ember); }
/* With motion active the steps become a stacked deck: cards sit on top of
   each other and each one jumps up over the last as the build progresses. */
html.js-motion .process__steps {
  position: relative;
  min-height: clamp(230px, 30vh, 300px);
}
html.js-motion .process__step {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  padding: 1.6rem 1.8rem;
  align-content: center;
  opacity: 1;
  transition: border-color 0.5s var(--ease-stone);
  will-change: transform;
}
html.js-motion .process__step.is-active { border-color: rgba(196, 98, 45, 0.5); }
@media (max-width: 980px) {
  html.js-motion .process__steps { min-height: 270px; }
}
.process__step .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ember);
  padding-top: 0.5em;
  letter-spacing: 0.12em;
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.process__step p { color: var(--text-dim); margin-top: 0.35rem; max-width: 26em; }
@media (max-width: 980px) {
  .process__stage { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .process__steps { margin-top: 1rem; }
}

/* ---------- Portfolio ---------- */
.portfolio { padding-left: 0; padding-right: 0; }
.portfolio .section__head { padding: 0 var(--pad-x); }
/* Each project is a photo bleeding off one edge plus a spec panel filling
   the space on the other side, so neither row leaves a dead gutter. */
.portfolio__row {
  display: grid;
  grid-template-columns: min(74vw, 1100px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-right: var(--pad-x);
}
.portfolio__row + .portfolio__row { margin-top: clamp(3rem, 8vh, 6rem); }
.portfolio__row--flip {
  grid-template-columns: minmax(0, 1fr) min(74vw, 1100px);
  padding-right: 0;
  padding-left: var(--pad-x);
}
.portfolio__row--flip .portfolio__item { order: 2; }
.portfolio__row--flip .portfolio__meta { order: 1; text-align: right; justify-items: end; }
.portfolio__item { position: relative; overflow: hidden; height: min(70vh, 46vw); }
.portfolio__item img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}
.portfolio__meta { display: grid; gap: 0.9rem; }
.portfolio__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}
.portfolio__meta h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.05;
}
.portfolio__spec { display: grid; width: 100%; margin-top: 0.4rem; border-top: 1px solid var(--line); }
.portfolio__spec li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.75em 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 760px) {
  .portfolio__row, .portfolio__row--flip { grid-template-columns: 1fr; padding: 0; gap: 1.4rem; }
  .portfolio__row--flip .portfolio__item { order: 0; }
  .portfolio__row--flip .portfolio__meta { order: 1; text-align: left; justify-items: start; }
  .portfolio__item { height: auto; }
  .portfolio__item img { height: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .portfolio__meta { padding: 0 var(--pad-x); }
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.service {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.5s var(--ease-stone);
}
.service:hover { border-color: rgba(196, 98, 45, 0.55); }
.service:nth-child(1) { grid-column: span 7; }
.service:nth-child(2) { grid-column: span 5; }
.service:nth-child(3) { grid-column: span 4; }
.service:nth-child(4) { grid-column: span 4; }
.service:nth-child(5) { grid-column: span 4; }
.service:nth-child(6) { grid-column: span 12; flex-direction: row; }
.service__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; flex: none; }
.service:nth-child(6) .service__img { flex: 1 1 58%; aspect-ratio: auto; min-height: 280px; }
.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-stone);
}
.service:hover .service__img img { transform: scale(1.08); }
.service__body { padding: 1.5rem 1.6rem 1.7rem; position: relative; }
.service:nth-child(6) .service__body { flex: 1 1 42%; display: flex; flex-direction: column; justify-content: center; padding: 2.4rem; }
.service__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--ember);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  margin-top: 0.5rem;
}
.service p { color: var(--text-dim); margin-top: 0.55rem; max-width: 30em; }
.service__rule {
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 1px;
  background: var(--line-soft);
}
.service__rule i {
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-stone);
}
.service:hover .service__rule i { transform: scaleX(1); }
@media (max-width: 980px) {
  .service:nth-child(n) { grid-column: span 12; }
  .service:nth-child(6) { flex-direction: column; }
  .service:nth-child(6) .service__img { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (min-width: 981px) and (max-width: 1200px) {
  .service:nth-child(3), .service:nth-child(4), .service:nth-child(5) { grid-column: span 4; }
}

/* ---------- Fire feature ---------- */
.fire {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.fire__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fire__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(20,24,26,0.88) 0%, rgba(20,24,26,0.45) 42%, rgba(20,24,26,0.05) 75%);
}
.fire__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(70% 60% at 62% 72%, rgba(196,98,45,0.24), transparent 70%);
  opacity: 0;
}
.fire__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  max-width: 780px;
}
.fire__content .display { margin-top: 1.2rem; }
.fire__content .lede { margin-top: 1.5rem; color: var(--stone); }
.fire__content .btn { margin-top: 2.4rem; align-self: flex-start; }
.fire__stage {
  position: absolute;
  right: var(--pad-x);
  bottom: 3rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--stone);
}
@media (max-width: 760px) {
  .fire__stage { display: none; }
}

/* ---------- Materials ---------- */
.materials__split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: stretch;
}
.materials__copy { display: flex; flex-direction: column; justify-content: center; }
.materials__copy .display { margin-top: 1.1rem; }
.materials__copy .lede { margin-top: 1.4rem; }
.materials__layers { margin-top: 2.6rem; }
.materials__layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line-soft);
}
.materials__layer:last-child { border-bottom: 1px solid var(--line-soft); }
.materials__layer .name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}
.materials__layer .name::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 3px;
  background: var(--ember);
  margin-right: 0.9em;
  vertical-align: middle;
}
.materials__layer:nth-child(2) .name::before { opacity: 0.8; }
.materials__layer:nth-child(3) .name::before { opacity: 0.6; }
.materials__layer:nth-child(4) .name::before { opacity: 0.45; }
.materials__layer:nth-child(5) .name::before { opacity: 0.3; }
.materials__layer .detail { color: var(--text-dim); font-size: 0.98rem; }
.materials__figure { position: relative; overflow: hidden; min-height: 420px; }
.materials__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  will-change: transform;
}
@media (max-width: 980px) {
  .materials__split { grid-template-columns: 1fr; }
  /* width must come from the container, never from min-height x aspect-ratio */
  .materials__figure { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Why ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.why__item { border-top: 2px solid var(--line-soft); padding-top: 1.4rem; position: relative; }
.why__item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.6rem;
  height: 2px;
  background: var(--ember);
}
.why__item .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ember);
}
.why__item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  margin-top: 0.7rem;
}
.why__item p { color: var(--text-dim); margin-top: 0.7rem; }
@media (max-width: 980px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.quote {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.quote:nth-child(2) { transform: translateY(clamp(0px, 4vh, 3rem)); }
.quote:nth-child(3) { transform: translateY(clamp(0px, 8vh, 6rem)); }
.quote__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 0.5;
  color: var(--ember);
}
.quote blockquote { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text); flex: 1; }
.quote figcaption { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; }
.quote figcaption b { color: var(--stone); font-weight: 500; display: block; margin-bottom: 0.3em; }
.testimonials { padding-bottom: calc(var(--gap-section) + 6rem); }
@media (max-width: 980px) {
  .testimonials__grid { grid-template-columns: 1fr; }
  .quote:nth-child(n) { transform: none; }
  .testimonials { padding-bottom: var(--gap-section); }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 18vh, 12rem) var(--pad-x);
}
.cta-band img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,24,26,0.55), rgba(20,24,26,0.25) 55%, rgba(20,24,26,0.75));
}
.cta-band__content { position: relative; z-index: 2; }
.cta-band__lines {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 120%;
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.cta-band__lines .l { display: block; }
.cta-band__lines .l:nth-child(2) { color: var(--ember-hi); padding-left: clamp(1rem, 6vw, 6rem); }
.cta-band__lines .l:nth-child(3) { padding-left: clamp(2rem, 12vw, 12rem); }
.cta-band .btn { margin-top: 3rem; }

/* ---------- Contact ---------- */
.contact__split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 2.6rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  padding: 0.95em 1.1em;
  transition: border-color 0.35s var(--ease-stone);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238C918C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1em center;
}
.field textarea { min-height: 9em; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(140,145,140,0.55); }
.contact__form .btn { justify-self: start; }
.contact__success {
  grid-column: 1 / -1;
  display: none;
  border: 1px solid rgba(196, 98, 45, 0.5);
  background: var(--bg-2);
  padding: 1.4rem 1.6rem;
  color: var(--stone);
}
.contact__form.is-sent .contact__success { display: block; }
.contact__form.is-sent .field, .contact__form.is-sent .btn { display: none; }
.contact__aside { padding-top: 2.6rem; }
.contact__nap {
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__nap .tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}
.contact__nap strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.contact__nap p, .contact__nap a { color: var(--text-dim); }
.contact__nap a.tel {
  color: var(--stone);
  font-size: 1.25rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.contact__nap a.tel:hover { color: var(--ember-hi); }
.contact__note { margin-top: 1.6rem; color: var(--text-dim); font-size: 0.95rem; }
.contact__note a { color: var(--stone); border-bottom: 1px solid var(--ember); }
@media (max-width: 980px) {
  .contact__split { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .contact__aside { padding-top: 0; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 3.5rem var(--pad-x) 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
}
.footer__brand { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.footer__nav { display: flex; gap: 1.8rem; flex-wrap: wrap; align-items: center; }
.footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__nav a:hover { color: var(--ember-hi); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.6rem;
}
.footer__disclaimer {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 62em;
  margin: 0;
}
.footer__credit { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer__credit .soak-mark {
  display: inline-block; width: 20px; height: 20px; flex: none;
  background-color: var(--ember);
  -webkit-mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
          mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
  opacity: .9; transition: opacity .2s ease;
}
.footer__credit:hover .soak-mark { opacity: 1; }
.footer__credit:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Reveal defaults (JS adds motion; CSS keeps content visible without it) ---------- */
.reveal { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .plan-photo { opacity: 1; }
  .process__caption { opacity: 1; }
  .portfolio__item img, .materials__figure img, .cta-band img.bg { height: 100%; }
  .fire__glow { opacity: 1; }
}

/* Mobile reframe: reveal the outdoor kitchen (left) in the hero; show more embers (right) in the Stone/Fire/Ground band. */
@media (max-width: 768px) {
  .hero__video { object-position: 25% 50%; }
  .cta-band img.bg { object-position: 80% 50%; }
}

/* ---------- Design audit 2026-09-30 ---------- */
/* Line rule: balanced wraps so no line strands a lone word. */
p, h2, h3, blockquote, .display, .lede { text-wrap: balance; }

/* Position: body left, survey drawing fills the right side. */
.statement__row {
  display: grid;
  grid-template-columns: minmax(0, 36em) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 2.4rem;
  padding-left: clamp(0rem, 8vw, 9rem);
}
.statement__row .statement__body { margin-top: 0; padding-left: 0; }
.statement__survey { margin: 0; justify-self: end; width: min(100%, 540px); }
.statement__survey svg { display: block; width: 100%; height: auto; overflow: visible; }
.statement__survey .sv-c { stroke: var(--stone); stroke-opacity: 0.22; stroke-width: 1.1; }
.statement__survey .sv-c--minor { stroke-opacity: 0.11; stroke-dasharray: 2 5; }
.statement__survey .sv-low { stroke: var(--ember); stroke-width: 1.4; stroke-dasharray: 9 6; stroke-opacity: 0.9; }
.statement__survey .sv-pad { stroke: var(--stone); stroke-opacity: 0.45; stroke-width: 1.1; fill: rgba(216, 207, 194, 0.04); }
.statement__survey .sv-bm, .statement__survey .sv-n { stroke: var(--stone); stroke-opacity: 0.5; stroke-width: 1.2; }
.statement__survey .sv-n path, .statement__survey path.sv-n { fill: none; }
.statement__survey text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; fill: var(--text-dim); }
.statement__survey .sv-t-ember { fill: var(--ember); }
@media (max-width: 860px) {
  .statement__row { grid-template-columns: 1fr; }
  .statement__survey { justify-self: start; width: 100%; max-width: 520px; }
}

/* Six trades: cards size to their content, images fill any slack so no
   card carries dead space under its sentence. */
.service { container-type: inline-size; }
.service__img { flex: 1 1 auto; }
.service h3 { font-size: clamp(1rem, 6.2cqi, 1.5rem); }
.service:nth-child(1) p { max-width: none; }
.service:nth-child(6) h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); }

/* Contact: heading row spans the top; the studio block starts level with
   the Name and Email fields, not above them. Form becomes a glass card. */
.contact__split { grid-template-rows: auto auto; row-gap: 0; }
.contact__head { grid-column: 1 / -1; }
.contact__main { grid-column: 1; }
.contact__aside { grid-column: 2; padding-top: 2.6rem; }
.contact__form {
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  background: linear-gradient(155deg, rgba(216, 207, 194, 0.07), rgba(216, 207, 194, 0.02)), rgba(30, 36, 38, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
          backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(216, 207, 194, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(216, 207, 194, 0.06);
}
.contact__form .field input, .contact__form .field select, .contact__form .field textarea { background: rgba(20, 24, 26, 0.55); }
.contact__nap {
  margin-top: 0;
  background: linear-gradient(155deg, rgba(216, 207, 194, 0.06), rgba(216, 207, 194, 0.015)), rgba(30, 36, 38, 0.45);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-color: rgba(216, 207, 194, 0.14);
}
@media (max-width: 980px) {
  .contact__main, .contact__aside { grid-column: 1; }
  .contact__aside { padding-top: 2rem; }
}

/* Footer: a single concept line, on one line. */
.footer__credit { white-space: nowrap; }
@media (max-width: 420px) { .footer__credit { font-size: 0.56rem; letter-spacing: 0.1em; } }

/* Display type: pretty (not balance) wraps, and sizes that let each
   headline break into multi-word lines instead of stranding one word. */
.display, .statement__lines, .cta-band__lines { text-wrap: pretty; }
.service h3 { font-size: clamp(0.9rem, 5.4cqi, 1.5rem); }
.service:nth-child(6) h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
.fire__content .display { font-size: clamp(2.1rem, 5.2vw, 4.6rem); }
.materials__copy .display { font-size: clamp(2.1rem, 4.6vw, 4.25rem); }
@media (min-width: 761px) {
  .cta-band__lines { font-size: min(7rem, calc((100vw - 2 * var(--pad-x) - 6vw) / 16.2)); }
  .cta-band__lines .l:nth-child(3) { padding-left: clamp(1rem, 6vw, 6rem); white-space: nowrap; }
}
.display, .statement__lines { text-wrap: balance; }
.statement__lines { font-size: clamp(2rem, 4.6vw, 4.6rem); }
.fire__content .display { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
.materials__layer .detail, .materials__layer span { text-wrap: balance; }
@media (max-width: 600px) {
  .display { font-size: clamp(2rem, 9vw, 2.5rem); }
  .statement__lines { font-size: clamp(1.6rem, 7vw, 2rem); }
}
.service h3 { font-size: clamp(0.85rem, 5.1cqi, 1.5rem); }
.service:nth-child(6) h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
@media (min-width: 981px) and (max-width: 1180px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
.contact__head .lede { text-wrap: pretty; margin-top: 1.2rem; }

/* ---------- Round 2 (10-01) ---------- */

/* One section rhythm: top equals bottom, lighter than before. The testimonials
   add back exactly the drop of the lowest staggered card, so the space seen
   under the cards matches the space above the heading. */
:root { --gap-section: clamp(5rem, 11vh, 8.5rem); }
.statement { padding-top: var(--gap-section); padding-bottom: var(--gap-section); }
.testimonials { padding-bottom: calc(var(--gap-section) + clamp(0px, 8vh, 6rem)); }
@media (max-width: 980px) { .testimonials { padding-bottom: var(--gap-section); } }
.section { scroll-margin-top: 1.5rem; }

/* Position: narrower copy column (4 to 5 lines) and a larger survey, so the
   drawing and the text read as one composed row. */
.statement__row {
  grid-template-columns: minmax(0, 23em) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  margin-top: clamp(1.75rem, 3vw, 2.4rem);
}
.statement__row .statement__body { text-wrap: balance; }
.statement__survey { width: min(100%, 640px); justify-self: stretch; }
@media (max-width: 860px) {
  .statement__row { grid-template-columns: 1fr; }
  .statement__survey { width: 100%; max-width: 520px; justify-self: start; }
}

/* Process: the pinned stage sized to its content, so the photo does not sit
   on a tall empty floor before the section ends. */
.process__stage { min-height: 0; }

/* Contact: the aside runs the full height of the form. Studio card on top,
   the site walk drawing fills the rest, ending level with the form. */
.contact__split { align-items: stretch; }
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  /* ends level with the form, not with the phone note under it */
  padding-bottom: calc(1.6rem + 0.95rem * 1.65);
}
@media (max-width: 980px) { .contact__aside { padding-bottom: 0; } }
.contact__walk {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 207, 194, 0.14);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(196, 98, 45, 0.10), transparent 55%),
    linear-gradient(rgba(216, 207, 194, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(216, 207, 194, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    rgba(30, 36, 38, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(216, 207, 194, 0.06);
}
.contact__walk svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.contact__walk .sw-c { stroke: var(--stone); stroke-opacity: 0.2; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.contact__walk .sw-c--minor { stroke-opacity: 0.1; stroke-dasharray: 2 5; }
.contact__walk .sw-road { stroke: var(--stone); stroke-opacity: 0.4; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.contact__walk .sw-road--2 { stroke-opacity: 0.25; }
.contact__walk .sw-lim { stroke: var(--ember); stroke-width: 1.4; stroke-dasharray: 9 6; stroke-opacity: 0.9; vector-effect: non-scaling-stroke; }
.contact__walk .sw-house { stroke: var(--stone); stroke-opacity: 0.5; stroke-width: 1.1; fill: rgba(216, 207, 194, 0.05); vector-effect: non-scaling-stroke; }
.contact__walk .sw-route { stroke: var(--ember-hi); stroke-width: 1.4; stroke-dasharray: 1 6; stroke-opacity: 0.95; vector-effect: non-scaling-stroke; }
.contact__walk .sw-stn { stroke: var(--ember-hi); stroke-width: 1.3; fill: var(--bg); vector-effect: non-scaling-stroke; }
.contact__walk .sw-stn--end { fill: var(--ember); }
.contact__walk .sw-tree, .contact__walk .sw-n, .contact__walk .sw-scale { stroke: var(--stone); stroke-opacity: 0.45; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.contact__walk text { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; fill: var(--text-dim); }
.contact__walk .sw-t-ember { fill: var(--ember); }
.contact__walk-cap {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.9rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  pointer-events: none;
}
.contact__walk-cap span { background: rgba(20, 24, 26, 0.78); padding: 0.45em 0.8em; white-space: nowrap; }
.contact__walk-cap span:first-child { color: var(--ember-hi); }
.contact__walk { container-type: inline-size; }
.contact__walk-cap { flex-wrap: nowrap; }
@container (max-width: 400px) { .contact__walk-cap span:last-child { display: none; } }
@media (max-width: 980px) {
  .contact__walk { flex: none; aspect-ratio: 460 / 290; min-height: 0; }
}
.contact__nap strong { white-space: nowrap; font-size: clamp(0.95rem, 1.5vw, 1.2rem); }

/* Footer bottom row: showcase line left, credit and mark right; phones
   stack both, centred. */
.footer__showcase {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.footer__bottom { flex-wrap: nowrap; }
.footer__credit { margin-left: auto; }
@media (max-width: 640px) {
  .footer__bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; gap: 0.9rem; }
  .footer__credit { margin-left: 0; }
  .footer__showcase { letter-spacing: 0.04em; }
}
@media (max-width: 420px) { .footer__showcase { font-size: 0.58rem; letter-spacing: 0.06em; } }
