:root {
  --graphite: #272a28;
  --graphite-soft: #50534f;
  --concrete: #cfccc4;
  --concrete-light: #e8e4dc;
  --line: rgba(39, 42, 40, 0.2);
  --line-strong: rgba(39, 42, 40, 0.42);
  --signal: #e25520;
  --signal-soft: rgba(226, 85, 32, 0.14);
  --paper: rgba(241, 238, 230, 0.66);
}

/* Interactive process explanations */
.process-tip {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  cursor: help;
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.process-tip::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-top: 2px solid transparent;
  pointer-events: none;
  transition: border-color 220ms ease;
}

.process-tip:hover,
.process-tip:focus-visible,
.process-tip.is-process-active {
  z-index: 12;
  background-color: rgba(250, 248, 242, .78);
  box-shadow:
    0 18px 34px rgba(43, 43, 39, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .42);
  transform: translateY(-4px);
  outline: none;
}

.process-tip:hover::before,
.process-tip:focus-visible::before,
.process-tip.is-process-active::before {
  border-top-color: #f05a2a;
}

.process-popover {
  position: fixed;
  z-index: 1000;
  width: min(310px, calc(100vw - 24px));
  padding: 13px 15px 14px 17px;
  color: #242522;
  border: 1px solid rgba(54, 55, 50, .34);
  border-left: 3px solid #f05a2a;
  background:
    linear-gradient(135deg, rgba(247, 245, 239, .97), rgba(218, 216, 208, .97));
  box-shadow: 0 18px 42px rgba(35, 35, 31, .2);
  font: 600 12px/1.45 "IBM Plex Mono", "Courier New", monospace;
  letter-spacing: .015em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
}

.process-popover.is-visible {
  animation: process-pop 220ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.process-popover[hidden] {
  display: block;
  visibility: hidden;
}

@keyframes process-pop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .process-tip {
    cursor: pointer;
  }

  .process-popover {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-tip,
  .process-tip::before {
    transition: none;
  }

  .process-popover.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--concrete);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--graphite);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.28), transparent 43%),
    linear-gradient(180deg, rgba(229, 226, 218, 0.14), rgba(80, 80, 75, 0.08)),
    url("assets/background-top.webp") center / cover fixed,
    var(--concrete);
  font-family: "IBM Plex Mono", monospace;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(46, 74, 78, 0.055) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(46, 74, 78, 0.055) 79px 80px);
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 86%, transparent);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 70% 36%, rgba(255, 252, 243, 0.34), transparent 34%);
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding: clamp(20px, 2.3vw, 40px) clamp(20px, 4vw, 72px) clamp(22px, 3vw, 48px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-code,
.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-code__mark {
  width: 23px;
  height: 23px;
  border: 2px solid currentColor;
  background: linear-gradient(135deg, transparent 0 46%, var(--signal) 47% 59%, transparent 60%);
}

.status {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(235, 232, 224, 0.38);
}

.status__dot {
  width: 7px;
  height: 7px;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.12fr) minmax(410px, 0.88fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  padding: clamp(44px, 5.3vw, 90px) 0 clamp(38px, 4vw, 64px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  animation: copy-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--graphite-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--signal);
}

h1 {
  max-width: 930px;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(66px, 9.7vw, 176px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.8;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.45), 0 12px 28px rgba(42, 43, 39, 0.13);
}

h1 span {
  display: block;
  transform-origin: left bottom;
  animation: title-in 760ms cubic-bezier(0.2, 0.75, 0.18, 1) both;
}

h1 span:last-child {
  margin-top: 0.14em;
  color: transparent;
  -webkit-text-stroke: 2px var(--graphite);
  animation-delay: 90ms;
}

.hero__intro {
  display: grid;
  max-width: 760px;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
  gap: 32px;
  align-items: start;
  margin-top: clamp(34px, 4vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.hero__lead,
.hero__note {
  margin: 0;
}

.hero__lead {
  max-width: 620px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(16px, 1.35vw, 23px);
  font-weight: 500;
  line-height: 1.45;
}

.hero__note {
  padding-left: 18px;
  border-left: 3px solid var(--signal);
  color: var(--graphite-soft);
  font-size: 13px;
  line-height: 1.6;
}

.specs {
  display: flex;
  gap: 26px;
  margin: 32px 0 0;
}

.specs div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.specs dt {
  color: var(--signal);
  font-size: 10px;
  font-weight: 600;
}

.specs dd {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
  margin: 0 auto;
  animation: drawing-in 900ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__visual::before {
  position: absolute;
  inset: 10% 8% 7% 3%;
  z-index: -1;
  border: 1px solid var(--line);
  content: "";
  transform: rotate(-4deg);
}

.hero__visual svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.drawing-grid path {
  fill: none;
  stroke: #536b6a;
  stroke-width: 1;
  opacity: 0.13;
}

.drawing-grid .axis {
  stroke-dasharray: 5 8;
  opacity: 0.22;
}

.block-top {
  fill: url("#concreteTop");
  stroke: #4e504d;
  stroke-width: 1.5;
}

.block-left,
.block-right {
  fill: url("#concreteSide");
  stroke: #4e504d;
  stroke-width: 1.5;
}

.block-left {
  filter: brightness(0.88);
}

.block-noise {
  fill: url("#aggregate");
  opacity: 0.9;
}

.block-slot {
  fill: rgba(67, 69, 65, 0.25);
  stroke: rgba(54, 56, 53, 0.62);
  stroke-width: 2;
}

.dimension path,
.callout path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.7;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: line-draw 1.2s 650ms ease-out forwards;
}

.dimension text,
.callout text,
.drawing-label text {
  fill: var(--graphite);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.dimension text,
.callout circle {
  fill: var(--signal);
}

.callout__sub {
  fill: var(--graphite-soft) !important;
  font-size: 9px !important;
}

.drawing-label text {
  font-size: 9px;
  opacity: 0.66;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  backdrop-filter: blur(4px);
}

.workflow__heading {
  padding: 22px 26px 20px 0;
}

.workflow__heading .eyebrow {
  margin-bottom: 10px;
}

.workflow h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.workflow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
  list-style: none;
}

.workflow__steps li {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: auto auto 1fr;
  gap: 13px;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  opacity: 0;
  animation: step-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.workflow__steps li:nth-child(1) { animation-delay: 380ms; }
.workflow__steps li:nth-child(2) { animation-delay: 450ms; }
.workflow__steps li:nth-child(3) { animation-delay: 520ms; }
.workflow__steps li:nth-child(4) { animation-delay: 590ms; border-right: 0; }

.workflow__steps li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--signal);
  border-right: 1px solid var(--signal);
  background: var(--concrete-light);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.step__number {
  align-self: start;
  color: var(--signal);
  font-size: 9px;
  font-weight: 600;
}

.step__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
}

.step__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.step__copy {
  display: grid;
  gap: 5px;
}

.step__copy strong {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.step__copy small {
  color: var(--graphite-soft);
  font-size: 10px;
  line-height: 1.35;
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(0.28em) skewY(3deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

@keyframes drawing-in {
  from { opacity: 0; transform: translate(24px, 18px) scale(0.96); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes line-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
  }

  .workflow__heading .eyebrow {
    margin: 0;
  }

  .workflow__steps {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }
}

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
  }

  .status {
    max-width: 180px;
    padding: 8px 10px;
    line-height: 1.35;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(60px, 18vw, 128px);
  }

  .hero__visual {
    width: min(88vw, 570px);
    margin-top: -30px;
  }

  .workflow__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow__steps li:nth-child(2) {
    border-right: 0;
  }

  .workflow__steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .workflow__steps li:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding-inline: 16px;
  }

  .topbar {
    font-size: 9px;
  }

  .brand-code {
    max-width: 150px;
    line-height: 1.4;
  }

  .hero {
    gap: 12px;
    padding: 34px 0 30px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 9px;
  }

  h1 {
    font-size: clamp(54px, 19vw, 94px);
    line-height: 0.86;
  }

  h1 span:last-child {
    -webkit-text-stroke-width: 1px;
  }

  .hero__intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }

  .hero__note {
    max-width: 310px;
  }

  .specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 18px;
  }

  .hero__visual {
    width: 104%;
    margin-top: -22px;
    margin-left: -2%;
  }

  .workflow__heading {
    display: block;
  }

  .workflow__heading .eyebrow {
    margin-bottom: 9px;
  }

  .workflow__steps {
    grid-template-columns: 1fr;
  }

  .workflow__steps li {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow__steps li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -5px;
    transform: translateX(50%) rotate(135deg);
  }

  .workflow__steps li:nth-child(2)::after {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Refinement: protected spacing for the process title. */
.flow-heading {
  justify-content: center;
  padding: clamp(28px, 3vw, 44px) clamp(32px, 3.4vw, 56px) !important;
}

.flow-heading h2 {
  padding: 0;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .flow-heading {
    padding: 26px 30px !important;
  }
}

/* High-resolution procedural concrete: no stretched raster texture. */
body {
  background-color: #c8c6be;
  background-image:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, .52) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(ellipse at 82% 88%, rgba(69, 72, 68, .16) 0, rgba(69, 72, 68, 0) 48%),
    linear-gradient(118deg, #d8d6ce 0%, #c8c6be 42%, #b8b6af 72%, #cfcdc5 100%);
  background-attachment: fixed;
}

body::before {
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' viewBox='0 0 1600 1000'%3E%3Cfilter id='noise' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.42' numOctaves='4' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='.34 0 0 0 .36 0 .34 0 0 .35 0 0 .34 0 .32 0 0 0 .42 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: .32;
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(49, 53, 50, .28) 0 1px, transparent 1.8px) 17px 23px / 137px 173px,
    radial-gradient(circle, rgba(255, 255, 255, .34) 0 1px, transparent 2px) 61px 49px / 211px 157px,
    radial-gradient(circle, rgba(58, 61, 58, .16) 0 1.5px, transparent 2.4px) 8px 81px / 283px 229px;
  opacity: .48;
}

.page {
  z-index: 1;
}

/* The heading receives its own breathing room regardless of its legacy class. */
.workflow > :first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 2.5vw, 42px) clamp(34px, 3vw, 54px) !important;
}

.workflow > :first-child > :first-child {
  margin-top: 0;
}

.workflow > :first-child h2 {
  margin: 0;
  max-width: 100%;
}

@media (max-width: 820px) {
  .workflow > :first-child {
    padding: 28px 30px !important;
  }
}

/* Animated build telemetry in the top status rail. */
.status--build {
  display: grid;
  width: clamp(300px, 24vw, 380px);
  max-width: none;
  grid-template-columns: 30px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  background: rgba(235, 232, 224, .58);
  backdrop-filter: blur(8px);
}

.build-loader {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
}

.build-loader::before {
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(39, 42, 40, .16);
  border-top-color: var(--signal);
  border-right-color: var(--signal);
  border-radius: 50%;
  content: "";
  animation: build-spin 1.05s linear infinite;
}

.build-loader::after {
  position: absolute;
  inset: 12px;
  background: var(--signal);
  content: "";
}

.build-copy {
  display: block;
  min-width: 0;
}

.build-kicker {
  display: block;
  color: var(--graphite-soft);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.build-cycle {
  position: relative;
  display: block;
  height: 12px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--graphite);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.build-cycle > span {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(7px);
  animation: build-message 6s cubic-bezier(.2, .7, .2, 1) infinite;
}

.build-cycle > span:nth-child(2) {
  animation-delay: 3s;
}

.build-progress {
  position: relative;
  display: block;
  height: 2px;
  margin-top: 6px;
  overflow: hidden;
  background: rgba(39, 42, 40, .14);
}

.build-progress i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--signal);
  transform: scaleX(.08);
  transform-origin: left;
  animation: build-progress 3s cubic-bezier(.2, .7, .2, 1) infinite;
}

.build-code {
  padding-left: 9px;
  border-left: 1px solid var(--line);
  color: var(--graphite-soft);
  font-size: 7px;
  letter-spacing: .12em;
  line-height: 1.35;
}

.build-code b {
  color: var(--signal);
  font-weight: 600;
}

@keyframes build-spin {
  to { transform: rotate(360deg); }
}

@keyframes build-message {
  0% { opacity: 0; transform: translateY(7px); }
  8%, 42% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; transform: translateY(-7px); }
}

@keyframes build-progress {
  0% { transform: scaleX(.08); opacity: .65; }
  82% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@media (max-width: 620px) {
  .status--build {
    width: min(215px, 57vw);
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 8px;
  }

  .build-loader {
    width: 24px;
    height: 24px;
  }

  .build-loader::after { inset: 10px; }
  .build-cycle { font-size: 6.5px; letter-spacing: 0; }
  .build-code { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .build-loader::before,
  .build-progress i,
  .build-cycle > span {
    animation: none;
  }

  .build-cycle > span:first-child {
    opacity: 1;
    transform: none;
  }
}
