:root {
  --accent: #c76e50;
  --accent-deep: #9d4f37;
  --yellow: var(--accent);
  --yellow-deep: var(--accent-deep);
  --white: #fffdf6;
  --white-soft: #f7f3ea;
  --taupe: #a89c8e;
  --taupe-light: #d7cfc4;
  --taupe-pale: #ebe5dc;
  --taupe-dark: #71685e;
  --ink: #181613;
  --ink-soft: #28241f;
  --muted: #685f55;
  --line: rgba(24, 22, 19, 0.2);
  --line-light: rgba(255, 253, 246, 0.18);
  --display: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --latin: "Space Grotesk", "Noto Sans TC", sans-serif;
  --page: min(100% - 48px, 1320px);
  --header-height: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-panel: 8px;
  --system-flow: 0;
  --brand-word-fill: 0.8;
  --brand-word-level: 17%;
  --capability-fill: 0.2;
  --capability-level: 20%;
  --pipe-size: 8px;
  --pipe-bend: 30px;
  --pipe-entry-bend: 44px;
  --pipe-track: rgba(168, 156, 142, 0.22);
  --pipe-liquid:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 38%),
    var(--yellow);
  --pipe-glow: 0 0 16px rgba(199, 110, 80, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

main[data-main] {
  position: relative;
  isolation: isolate;
}

.system-flow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 0;
  pointer-events: none;
}

main[data-main] > section {
  position: relative;
  z-index: 1;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 32px, 1380px);
  height: 56px;
  padding: 0 10px 0 20px;
  transform: translateX(-50%);
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    width 400ms var(--ease-out),
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

.site-header.is-scrolled {
  width: min(100% - 32px, 980px);
  border-color: rgba(24, 22, 19, 0.11);
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 16px 48px rgba(55, 46, 35, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-mark {
  width: 88px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.66);
  box-shadow: 0 8px 28px rgba(68, 57, 45, 0.05);
  backdrop-filter: blur(12px);
}

.desktop-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.header-cta i {
  font-size: 15px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.section-shell {
  width: var(--page);
  margin: 0 auto;
}

.micro-label,
.section-index,
.eyebrow,
.capability-en,
.capability-number,
.project-status,
.measure {
  font-family: var(--latin);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-index,
.eyebrow {
  margin: 0 0 18px;
  color: var(--taupe-dark);
  font-size: 12px;
  font-weight: 700;
}

.section-heading h2,
.projects-heading h2,
.process h2,
.faq h2,
.contact h2 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.08;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 260ms var(--ease-out),
    background-color 200ms ease,
    color 200ms ease,
    box-shadow 260ms ease;
}

.button-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(214, 173, 0, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 42px rgba(214, 173, 0, 0.28);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

.text-link i,
.button i {
  transition: transform 220ms var(--ease-out);
}

.text-link:hover i,
.button:hover i:last-child {
  transform: translateX(4px);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 760ms var(--ease-out),
    transform 760ms var(--ease-out);
}

[data-reveal="left"] {
  transform: translate3d(-28px, 0, 0);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(500px, 1.32fr) minmax(400px, 1fr);
  gap: clamp(24px, 2.4vw, 36px);
  align-items: center;
  width: var(--page);
  min-height: 100svh;
  margin: 0 auto;
  padding: 112px 0 74px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: calc(18% - 1px);
  z-index: -2;
  width: 1px;
  background: rgba(24, 22, 19, 0.09);
  content: "";
}

.hero-ghost {
  position: absolute;
  right: -2vw;
  bottom: 3vh;
  z-index: -1;
  padding-right: 0.16em;
  color: rgba(168, 156, 142, 0.13);
  font-family: var(--latin);
  font-size: clamp(118px, 17vw, 248px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.74;
  pointer-events: none;
  white-space: nowrap;
}

.hero-ghost::after {
  position: absolute;
  inset: 0;
  color: var(--yellow);
  content: attr(data-word);
  -webkit-mask-image:
    radial-gradient(
      ellipse 54px 11px at 52px var(--brand-word-level),
      #000 46%,
      rgba(0, 0, 0, 0.88) 56%,
      transparent 72%
    ),
    linear-gradient(
      to bottom,
      transparent 0 calc(var(--brand-word-level) - 3px),
      rgba(0, 0, 0, 0.74) var(--brand-word-level),
      #000 calc(var(--brand-word-level) + 8px) 100%
    );
  mask-image:
    radial-gradient(
      ellipse 54px 11px at 52px var(--brand-word-level),
      #000 46%,
      rgba(0, 0, 0, 0.88) 56%,
      transparent 72%
    ),
    linear-gradient(
      to bottom,
      transparent 0 calc(var(--brand-word-level) - 3px),
      rgba(0, 0, 0, 0.74) var(--brand-word-level),
      #000 calc(var(--brand-word-level) + 8px) 100%
    );
  -webkit-mask-position: 0 0, 0 0;
  mask-position: 0 0, 0 0;
  -webkit-mask-repeat: repeat-x, no-repeat;
  mask-repeat: repeat-x, no-repeat;
  -webkit-mask-size: 104px 100%, 100% 100%;
  mask-size: 104px 100%, 100% 100%;
  animation: brandLiquidWave 1.35s linear infinite;
  will-change: mask-position;
}

@keyframes brandLiquidWave {
  from {
    -webkit-mask-position: 0 0, 0 0;
    mask-position: 0 0, 0 0;
  }
  to {
    -webkit-mask-position: 104px 0, 0 0;
    mask-position: 104px 0, 0 0;
  }
}

.hero-rail {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  max-height: 680px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-panel);
  background: var(--taupe-light);
}

.hero-rail .micro-label {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
}

.rail-statement {
  padding-top: 28px;
  border-top: 1px solid rgba(24, 22, 19, 0.2);
}

.rail-statement .rail-title {
  margin: 0 0 16px;
  font-size: clamp(25px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.2;
}

.rail-title span {
  display: block;
  white-space: nowrap;
}

.rail-statement > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.75;
}

.rail-lifecycle {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(24, 22, 19, 0.22);
  list-style: none;
}

.rail-lifecycle li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(24, 22, 19, 0.14);
  transition:
    color 220ms ease,
    padding-left 300ms var(--ease-out);
}

.rail-lifecycle li::before {
  position: absolute;
  top: 50%;
  left: -10px;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) scale(0);
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  transition: transform 260ms var(--ease-out);
}

.rail-lifecycle li.is-current {
  padding-left: 8px;
}

.rail-lifecycle li.is-current::before {
  transform: translateY(-50%) scale(1);
}

.rail-lifecycle li.is-complete {
  color: var(--ink);
}

.rail-lifecycle strong {
  font-size: 12px;
}

.rail-compact {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 3;
  padding: 38px 0 0 12px;
}

.hero-copy .eyebrow {
  color: var(--taupe-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.03;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  transform: translateX(clamp(14px, 2.2vw, 34px));
}

.hero h1 span:nth-child(3) {
  transform: translateX(clamp(28px, 4.4vw, 68px));
}

.hero-summary {
  max-width: 430px;
  margin: 30px 0 0;
  margin-left: clamp(14px, 2.2vw, 34px);
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 600;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  margin-left: clamp(28px, 4.4vw, 68px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 2;
  align-self: center;
  min-width: 0;
}

.machine-stage {
  position: relative;
  display: grid;
  min-height: 630px;
  place-items: center;
  overflow: visible;
  isolation: isolate;
}

.machine-stage::before {
  display: none;
}

.hero-visual:hover .machine-stage::before,
.hero-visual:focus-within .machine-stage::before {
  display: none;
}

.machine-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 34px 28px rgba(62, 50, 35, 0.13));
  outline: none;
}

.machine-lever-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.machine-lever-control {
  position: absolute;
  width: 76px;
  height: 138px;
  padding: 0;
  transform: translate(-50%, -78%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.machine-lever-control:active {
  cursor: grabbing;
}

.machine-lever-control:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 4px;
}

.machine-project-cta {
  position: absolute;
  z-index: 5;
  display: block;
  width: clamp(96px, 8.6vw, 116px);
  height: clamp(96px, 8.6vw, 116px);
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.machine-project-cta:hover {
  background: transparent;
}

.machine-project-cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.machine-fallback {
  position: absolute;
  inset: 34% 15% auto;
  z-index: 5;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  text-align: center;
}

.machine-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero-pipe-link {
  position: absolute;
  top: var(--pipe-start-y, 76%);
  bottom: -4px;
  left: -18px;
  z-index: 3;
  width: calc(var(--pipe-start-x, 39%) + 18px);
  pointer-events: none;
}

.hero-pipe-link::before {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  width: 18px;
  height: 18px;
  transform: scale(calc(0.72 + var(--pipe-connector-active, 0) * 0.28));
  border: 4px solid var(--white);
  border-radius: 50%;
  background: color-mix(
    in srgb,
    var(--yellow) calc(var(--pipe-connector-active, 0) * 100%),
    var(--taupe-pale)
  );
  box-shadow: 0 0 calc(var(--pipe-connector-active, 0) * 24px) rgba(199, 110, 80, 0.42);
  content: "";
  transition:
    background-color 180ms ease,
    transform 240ms var(--ease-out);
}

.hero-pipe-vertical,
.hero-pipe-horizontal {
  position: absolute;
  overflow: hidden;
  background: var(--pipe-track);
}

.hero-pipe-vertical::after,
.hero-pipe-horizontal::after {
  position: absolute;
  inset: 0;
  background: var(--pipe-liquid);
  box-shadow: var(--pipe-glow);
  content: "";
}

.hero-pipe-vertical {
  top: var(--pipe-entry-bend);
  right: calc(var(--pipe-entry-bend) - var(--pipe-size));
  bottom: var(--pipe-bend);
  width: var(--pipe-size);
  border-radius: 999px;
}

.hero-pipe-vertical::after {
  transform: scaleY(var(--hero-vertical-scale, 0));
  transform-origin: top;
}

.hero-pipe-horizontal {
  right: calc(var(--pipe-entry-bend) - var(--pipe-size) + var(--pipe-bend));
  bottom: 0;
  left: var(--pipe-bend);
  height: var(--pipe-size);
}

.hero-pipe-horizontal::after {
  transform: scaleX(var(--hero-horizontal-scale, 0));
  transform-origin: right;
}

.hero-pipe-machine-elbow,
.hero-pipe-boundary-elbow,
.hero-pipe-entry-elbow {
  position: absolute;
  width: var(--pipe-bend);
  height: var(--pipe-bend);
  pointer-events: none;
}

.hero-pipe-machine-elbow::after,
.hero-pipe-boundary-elbow::after,
.hero-pipe-entry-elbow::after {
  position: absolute;
  box-sizing: border-box;
  border-color: var(--yellow);
  content: "";
  filter: drop-shadow(0 0 7px rgba(199, 110, 80, 0.28));
}

.hero-pipe-entry-elbow {
  top: 0;
  right: 0;
  width: var(--pipe-entry-bend);
  height: var(--pipe-entry-bend);
  box-sizing: border-box;
  border-top: var(--pipe-size) solid var(--pipe-track);
  border-left: var(--pipe-size) solid var(--pipe-track);
  border-top-left-radius: var(--pipe-entry-bend);
}

.hero-pipe-entry-elbow::after {
  top: calc(0px - var(--pipe-size));
  left: calc(0px - var(--pipe-size));
  width: var(--pipe-entry-bend);
  height: var(--pipe-entry-bend);
  border-top: var(--pipe-size) solid var(--yellow);
  border-left: var(--pipe-size) solid var(--yellow);
  border-top-left-radius: var(--pipe-entry-bend);
  opacity: var(--hero-entry-elbow-flow, 0);
}

.hero-pipe-machine-elbow {
  right: calc(var(--pipe-entry-bend) - var(--pipe-size));
  bottom: 0;
  box-sizing: border-box;
  border-right: var(--pipe-size) solid var(--pipe-track);
  border-bottom: var(--pipe-size) solid var(--pipe-track);
  border-bottom-right-radius: var(--pipe-bend);
}

.hero-pipe-machine-elbow::after {
  top: 0;
  left: 0;
  width: var(--pipe-bend);
  height: var(--pipe-bend);
  border-right: var(--pipe-size) solid var(--yellow);
  border-bottom: var(--pipe-size) solid var(--yellow);
  border-bottom-right-radius: var(--pipe-bend);
  opacity: var(--hero-machine-elbow-flow, 0);
}

.hero-pipe-boundary-elbow {
  bottom: calc(var(--pipe-size) - var(--pipe-bend));
  left: 0;
  box-sizing: border-box;
  border-top: var(--pipe-size) solid var(--pipe-track);
  border-left: var(--pipe-size) solid var(--pipe-track);
  border-top-left-radius: var(--pipe-bend);
}

.hero-pipe-boundary-elbow::after {
  top: calc(0px - var(--pipe-size));
  left: calc(0px - var(--pipe-size));
  width: var(--pipe-bend);
  height: var(--pipe-bend);
  border-top: var(--pipe-size) solid var(--yellow);
  border-left: var(--pipe-size) solid var(--yellow);
  border-top-left-radius: var(--pipe-bend);
  opacity: var(--hero-boundary-elbow-flow, 0);
}

.capabilities {
  position: relative;
  padding: clamp(100px, 11vw, 160px) 0 80px;
}

.capability-entry-pipe {
  position: absolute;
  top: calc(var(--pipe-bend) - 14px);
  left: -18px;
  z-index: 0;
  width: 51px;
  height: var(--entry-pipe-height, 430px);
  pointer-events: none;
}

.entry-pipe-track,
.entry-pipe-fluid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--pipe-size);
  border-radius: 999px;
}

.entry-pipe-track {
  bottom: var(--pipe-bend);
  background: var(--pipe-track);
}

.entry-pipe-fluid {
  bottom: auto;
  height: var(--entry-flow, 0%);
  max-height: calc(100% - var(--pipe-bend));
  background: var(--pipe-liquid);
  box-shadow: var(--pipe-glow);
  transition: height 100ms linear;
}

.entry-pipe-elbow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 51px;
  height: var(--pipe-bend);
  box-sizing: border-box;
  border-left: var(--pipe-size) solid var(--pipe-track);
  border-bottom: var(--pipe-size) solid var(--pipe-track);
  border-bottom-left-radius: var(--pipe-bend);
}

.entry-pipe-elbow::after {
  position: absolute;
  top: 0;
  left: calc(0px - var(--pipe-size));
  width: 51px;
  height: var(--pipe-bend);
  box-sizing: border-box;
  border-left: var(--pipe-size) solid var(--yellow);
  border-bottom: var(--pipe-size) solid var(--yellow);
  border-bottom-left-radius: var(--pipe-bend);
  clip-path: inset(0 calc(100% - var(--entry-elbow-flow, 0%)) 0 0);
  content: "";
  filter: drop-shadow(0 0 7px rgba(199, 110, 80, 0.28));
  transition: clip-path 100ms linear;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.capability-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 54px);
  margin-top: 86px;
  padding-top: 1px;
}

.flow-track {
  position: absolute;
  top: 33px;
  right: 33px;
  left: 33px;
  height: var(--pipe-size);
  overflow: hidden;
  border-radius: 999px;
  background: var(--pipe-track);
}

.flow-track span {
  display: block;
  width: var(--flow, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--pipe-liquid);
  box-shadow: var(--pipe-glow);
  transition: width 100ms linear;
}

.capability {
  position: relative;
  z-index: 1;
  padding-top: 84px;
}

.capability-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 26px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 300ms var(--ease-out);
}

.capability-icon::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  height: var(--capability-level);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 46%),
    var(--yellow);
  content: "";
  transition: height 100ms linear;
  will-change: height;
}

.capability-icon::after {
  position: absolute;
  bottom: calc(var(--capability-level) - 8px);
  left: -30%;
  z-index: 1;
  width: 160%;
  height: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--yellow);
  clip-path: polygon(
    0 58%,
    8% 38%,
    17% 52%,
    27% 30%,
    38% 48%,
    49% 26%,
    60% 48%,
    71% 32%,
    82% 52%,
    91% 36%,
    100% 56%,
    100% 100%,
    0 100%
  );
  content: "";
  animation: capability-liquid-wave 2.8s ease-in-out infinite;
  transition: bottom 100ms linear;
  will-change: bottom, transform;
}

.capability:nth-child(2) .capability-icon::after {
  animation-delay: -0.7s;
}

.capability:nth-child(3) .capability-icon::after {
  animation-delay: -1.4s;
}

.capability:nth-child(4) .capability-icon::after {
  animation-delay: -2.1s;
}

@keyframes capability-liquid-wave {
  0%,
  100% {
    transform: translate3d(-7%, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(5%, 1px, 0) rotate(1deg);
  }
}

.capability-icon i,
.capability-icon img {
  position: relative;
  z-index: 2;
}

.capability-icon img {
  width: 28px;
  height: 28px;
}

@media (min-width: 901px) {
  .capability-icon {
    opacity: 1;
  }
}

.capability.is-active .capability-icon {
  transform: rotate(-7deg) scale(1.055);
}

.capability.is-filled .capability-icon {
  box-shadow: 0 10px 30px rgba(199, 110, 80, 0.22);
}

.capability-number {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
}

.capability-en {
  margin: 0 0 3px;
  color: var(--taupe-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.capability h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.capability > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.projects {
  margin-top: 42px;
  padding: clamp(100px, 11vw, 150px) 0 0;
  background: var(--taupe-pale);
}

.projects-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 60px;
  align-items: end;
}

.projects-intro {
  max-width: 520px;
  margin: 0 0 8px auto;
  color: var(--muted);
  font-size: 18px;
}

.project-caseboard {
  width: var(--page);
  margin: 78px auto 0;
  padding-bottom: clamp(90px, 10vw, 138px);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.project-filter {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    transform 260ms var(--ease-out);
}

.project-filter:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.project-filter:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 3px;
}

.project-filter.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
}

.project-filter span {
  font-size: 13px;
  font-weight: 700;
}

.project-filter small {
  color: var(--taupe-dark);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  transition:
    opacity 150ms ease,
    transform 180ms var(--ease-out);
}

.project-grid.is-filtering {
  opacity: 0;
  transform: translateY(8px);
}

.project-card {
  position: relative;
  display: flex;
  grid-column: span 4;
  flex-direction: column;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 320ms var(--ease-out);
}

.project-card[hidden] {
  display: none;
}

a.project-card:hover {
  border-color: var(--ink);
  box-shadow: 0 20px 46px rgba(60, 49, 36, 0.11);
  transform: translateY(-5px);
}

.project-card-featured {
  grid-column: span 8;
  min-height: 400px;
  padding: clamp(30px, 4vw, 48px);
  background: var(--ink);
  color: var(--white);
}

.project-card-shopify {
  grid-column: span 4;
  min-height: 400px;
  background: var(--yellow);
}

.project-card-compact {
  grid-column: span 6;
  min-height: 290px;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.project-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 42px);
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--taupe-dark);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.project-card-featured .project-status {
  border-color: rgba(255, 253, 246, 0.28);
  color: var(--taupe-light);
}

.project-card-shopify .project-status {
  border-color: rgba(24, 22, 19, 0.28);
  color: var(--ink);
}

.project-status-live i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  animation: projectPulse 2.2s ease-in-out infinite;
}

@keyframes projectPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.project-status-muted {
  color: var(--muted);
}

.project-number {
  color: var(--taupe-dark);
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 700;
}

.project-card-featured .project-number {
  color: var(--taupe);
}

.project-card h3 {
  max-width: 760px;
  margin: auto 0 0;
  padding-top: 62px;
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.project-card-featured h3 {
  font-size: clamp(34px, 4.5vw, 62px);
}

.project-card > p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-card-featured > p {
  color: var(--taupe-light);
}

.project-card-shopify > p {
  color: rgba(24, 22, 19, 0.72);
}

.project-card blockquote {
  margin: 18px 0 0;
  color: var(--taupe);
  font-size: 14px;
  font-style: italic;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: 26px;
}

.project-stack li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.46);
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 600;
}

.project-card-featured .project-stack li {
  border-color: rgba(255, 253, 246, 0.25);
  background: rgba(255, 253, 246, 0.08);
  color: var(--taupe-light);
}

.project-card-shopify .project-stack li {
  border-color: rgba(24, 22, 19, 0.22);
  background: rgba(255, 253, 246, 0.22);
}

.project-fit {
  margin-top: 12px;
  color: var(--taupe-dark);
  font-family: var(--latin);
  font-size: 10px;
}

.project-card-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: max-content;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.project-card-action i {
  transition: transform 240ms var(--ease-out);
}

a.project-card:hover .project-card-action i {
  transform: translate(3px, -3px);
}

.project-card-action-muted {
  color: var(--taupe-dark);
  border-bottom-color: transparent;
}

.project-card-featured .project-card-action-muted {
  color: var(--taupe);
}

.process {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) 1.45fr;
  gap: clamp(60px, 9vw, 142px);
  padding: clamp(110px, 13vw, 180px) 0;
}

.process-title {
  position: sticky;
  top: 130px;
  align-self: start;
}

.process-title > p:last-child {
  max-width: 330px;
  margin: 28px 0 0;
  color: var(--muted);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(150px, 0.8fr) 1.3fr auto;
  gap: 24px;
  align-items: center;
  min-height: 134px;
  padding: 22px 8px;
  border-top: 1px solid var(--line);
  transition:
    padding-left 300ms var(--ease-out),
    background-color 300ms ease;
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list li::before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 5px;
  background: var(--yellow);
  content: "";
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 340ms var(--ease-out);
}

.process-list li.is-active {
  padding-left: 22px;
  background: var(--white-soft);
}

.process-list li.is-active::before {
  transform: scaleY(1);
}

.process-list li > span {
  font-family: var(--latin);
  font-size: 26px;
}

.process-list h3 {
  margin: 0;
  font-size: 22px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.process-list i {
  font-size: 20px;
}

.faq {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(60px, 10vw, 160px);
  padding: 30px 0 clamp(110px, 13vw, 180px);
}

.faq-heading > p:last-child {
  max-width: 300px;
  margin-top: 24px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary i {
  flex: none;
  font-size: 20px;
  transition: transform 260ms var(--ease-out);
}

.faq-list details[open] summary i {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 680px;
  margin: -6px 0 28px;
  color: var(--muted);
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  width: min(100% - 20px, 1480px);
  min-height: 590px;
  margin: 0 auto 10px;
  padding: clamp(58px, 8vw, 112px);
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.contact-ghost {
  position: absolute;
  right: -2%;
  bottom: 56px;
  z-index: -1;
  color: rgba(168, 156, 142, 0.23);
  font-family: var(--latin);
  font-size: clamp(110px, 17vw, 252px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.7;
  pointer-events: none;
  white-space: nowrap;
}

.contact .section-index {
  color: var(--taupe);
}

.contact h2 {
  max-width: 760px;
}

.contact-action {
  display: flex;
  align-self: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.contact-action p {
  max-width: 410px;
  margin: 0;
  color: var(--taupe-light);
}

.contact-action .button {
  min-height: 58px;
  padding-inline: 24px;
}

.contact footer {
  position: absolute;
  right: 34px;
  bottom: 24px;
  left: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  color: var(--taupe);
}

.contact footer p {
  margin: 0;
  font-family: var(--latin);
  font-size: 11px;
}

.contact footer nav {
  display: flex;
  justify-self: end;
  gap: 22px;
  font-size: 11px;
}

.brand-light {
  color: var(--white);
}

.brand-light .brand-mark {
  width: 78px;
}

.progress-rail {
  position: fixed;
  top: 88px;
  right: 14px;
  bottom: 28px;
  z-index: 80;
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(168, 156, 142, 0.24);
  pointer-events: none;
}

.progress-rail span {
  display: block;
  width: 100%;
  height: var(--page-progress, 0%);
  background: var(--yellow-deep);
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 999;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-panel);
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

@media (max-width: 1120px) {
  :root {
    --page: min(100% - 36px, 1040px);
  }

  .hero {
    grid-template-columns: 166px minmax(400px, 1.18fr) minmax(330px, 0.92fr);
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.7vw, 64px);
  }

  .hero-rail {
    min-height: 570px;
    padding-inline: 20px;
  }

  .rail-statement .rail-title {
    font-size: 24px;
  }

  .machine-stage {
    min-height: 570px;
  }

  .capability-flow {
    gap: 24px;
  }

  .project-card-featured {
    grid-column: span 7;
  }

  .project-card-shopify {
    grid-column: span 5;
  }

  .project-card {
    padding: 25px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .site-header,
  .site-header.is-scrolled {
    top: 10px;
    right: 10px;
    left: 10px;
    grid-template-columns: 1fr auto;
    width: auto;
    height: 54px;
    padding: 0 58px 0 18px;
    transform: none;
    border-color: rgba(24, 22, 19, 0.1);
    background: rgba(255, 253, 246, 0.9);
    box-shadow: 0 10px 38px rgba(55, 46, 35, 0.08);
    backdrop-filter: blur(16px);
  }

  .brand-mark {
    width: 76px;
  }

  .brand {
    z-index: 3;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    top: 5px;
    right: 6px;
    z-index: 102;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 240ms var(--ease-out);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 94px 24px 30px;
    overflow-y: auto;
    background: var(--white);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu nav {
    display: grid;
  }

  .mobile-menu nav a {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(34px, 8vw, 54px);
    font-weight: 900;
    letter-spacing: -0.05em;
  }

  .hero {
    grid-template-columns: 92px 1fr;
    gap: 26px;
    align-items: start;
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero::before {
    left: 118px;
  }

  .hero-rail {
    grid-row: 1 / span 2;
    min-height: 470px;
    padding: 20px 14px;
  }

  .rail-statement,
  .rail-lifecycle {
    display: none;
  }

  .rail-compact {
    display: block;
    padding-top: 28px;
    border-top: 1px solid rgba(24, 22, 19, 0.2);
  }

  .rail-compact p {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
  }

  .hero-copy {
    grid-row: auto;
    grid-column: auto;
    padding: 32px 0 0;
  }

  .hero h1 span:nth-child(2),
  .hero h1 span:nth-child(3) {
    transform: none;
  }

  .hero-summary,
  .hero-actions {
    margin-left: 0;
  }

  .hero-visual {
    grid-row: auto;
    grid-column: auto;
    width: min(100%, 620px);
    margin: -10px auto 0;
  }

  .machine-stage {
    min-height: 0;
    aspect-ratio: 1;
  }

  .machine-stage::before {
    display: none;
  }

  .machine-project-cta {
    width: 92px;
    height: 92px;
  }

  .hero-ghost {
    bottom: 4%;
    font-size: 22vw;
  }

  .hero-pipe-link,
  .capability-entry-pipe {
    display: none;
  }

  .system-flow-canvas {
    display: block;
  }

  .capability-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 34px;
  }

  .flow-track {
    display: none;
  }

  .capability {
    padding-top: 72px;
  }

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

  .project-card,
  .project-card-shopify,
  .project-card-compact {
    grid-column: span 1;
  }

  .project-card-featured {
    grid-column: 1 / -1;
  }

  .process,
  .faq {
    grid-template-columns: 1fr;
  }

  .process-title {
    position: static;
  }

  .contact {
    grid-template-columns: 1fr;
    min-height: 650px;
  }

  .contact-action {
    align-self: start;
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 32px);
  }

  .progress-rail {
    display: none;
  }

  .section-heading h2,
  .projects-heading h2,
  .process h2,
  .faq h2,
  .contact h2 {
    font-size: clamp(38px, 11.5vw, 54px);
    letter-spacing: -0.06em;
  }

  .hero {
    position: relative;
    display: block;
    min-height: 620px;
    padding: 96px 0 54px;
    overflow: hidden;
    isolation: isolate;
  }

  .hero::before,
  .hero-rail,
  .measure,
  .crosshair {
    display: none;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 470px;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .hero-summary {
    margin-top: 24px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
    margin-left: 0;
  }

  .hero-visual {
    position: absolute;
    top: 160px;
    left: 4%;
    z-index: 0;
    width: 92%;
    margin: 0;
    pointer-events: none;
  }

  .hero .hero-visual {
    opacity: 0.16;
    transform: none;
  }

  .machine-lever-controls,
  .machine-project-cta {
    display: none;
  }

  .hero-ghost {
    right: -8px;
    bottom: 8px;
    z-index: 1;
    display: block;
    font-size: 23.5vw;
    line-height: 0.8;
    opacity: 0.85;
  }

  .capabilities {
    padding-top: 48px;
    scroll-margin-top: 0;
  }

  .capabilities .section-heading {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .capabilities .section-index {
    margin-bottom: 18px;
  }

  #capabilities-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(36px, 10.5vw, 48px);
    text-wrap: pretty;
  }

  .capability-flow {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 50px;
  }

  .capability {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 18px;
    padding-top: 0;
  }

  .capability-icon {
    position: relative;
    grid-row: 1 / span 4;
    width: 56px;
    height: 56px;
    font-size: 23px;
  }

  .capability-number {
    margin-bottom: 8px;
  }

  .capability > p:last-child {
    grid-column: 2;
  }

  .projects-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .projects-intro {
    margin-left: 0;
    font-size: 16px;
  }

  .project-caseboard {
    margin-top: 52px;
  }

  .project-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 14px;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .project-filter {
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding-inline: 14px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-card,
  .project-card-featured,
  .project-card-shopify,
  .project-card-compact {
    grid-column: 1;
    min-height: 320px;
    padding: 24px 20px;
  }

  .project-card-featured {
    min-height: 390px;
  }

  .project-card h3 {
    padding-top: 46px;
  }

  .process {
    gap: 52px;
    padding-block: 96px;
  }

  .process-list li {
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    min-height: 118px;
  }

  .process-list h3 {
    font-size: 19px;
  }

  .process-list p {
    grid-column: 2 / -1;
  }

  .faq {
    gap: 46px;
    padding-bottom: 96px;
  }

  .contact {
    width: calc(100% - 12px);
    min-height: 680px;
    padding: 50px 24px 120px;
  }

  .contact-action .button {
    max-width: 100%;
    font-size: 12px;
  }

  .contact footer {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .contact footer nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

}
