:root {
  color-scheme: light;
  --ground: #f8fbff;
  --ground-deep: #e7f0ff;
  --surface: #ffffff;
  --surface-soft: #f1f7ff;
  --ink: #0b1f52;
  --charcoal: #071943;
  --muted: #657491;
  --muted-strong: #273f73;
  --line: rgba(15, 58, 132, 0.14);
  --line-strong: rgba(15, 58, 132, 0.24);
  --accent: #1452eb;
  --accent-dark: #0b36b4;
  --sage: #08bfb9;
  --error: #b72d22;
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ground);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  letter-spacing: 0;
}

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

.route-canvas {
  display: none;
}

.grain {
  display: none;
}

.topbar,
.access-gate,
.site-shell,
.owner-shell {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(1240px, calc(100% - 48px));
  min-height: 98px;
  margin: 0 auto;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 184px;
  height: auto;
  object-fit: contain;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  color: var(--surface);
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.identity strong,
.identity small {
  display: block;
}

.identity strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.identity small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.access-gate {
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100dvh - 74px);
  margin: 0 auto;
  padding: 76px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 440px);
  align-items: center;
  gap: 56px;
}

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.owner-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 56px;
}

.owner-hero {
  min-height: 280px;
  display: grid;
  align-items: end;
  margin-bottom: 22px;
}

.owner-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.owner-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 0.74fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.code-result {
  display: grid;
  gap: 10px;
  margin: 0 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.code-result span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.code-result strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}

.code-result button {
  min-height: 42px;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  color: var(--surface);
  background: var(--charcoal);
  font-weight: 850;
  cursor: pointer;
}

.code-list {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.68);
  padding: 12px;
}

.code-row div {
  display: grid;
  gap: 5px;
}

.code-row strong {
  font-size: 1.08rem;
}

.code-row span {
  color: var(--muted);
  font-size: 0.86rem;
  word-break: break-word;
}

.code-status {
  width: fit-content;
  border-radius: var(--radius);
  padding: 4px 7px;
  color: var(--surface) !important;
  background: var(--accent);
  font-weight: 850;
}

.code-status.used {
  background: var(--charcoal);
}

.gate-copy {
  max-width: 760px;
}

.gate-copy h1 {
  max-width: 760px;
}

.gate-title {
  display: grid;
  gap: 0;
  margin-bottom: 28px;
}

.gate-title span {
  display: block;
}

.gate-note {
  width: fit-content;
  margin: 34px 0 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  color: var(--muted-strong);
  font-size: 0.96rem;
  font-weight: 750;
}

.gate-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px;
}

.gate-form::before {
  content: "ACCESS CODE";
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 410px);
  grid-template-areas: "left form";
  align-items: stretch;
  gap: 28px;
  min-height: auto;
}

.hero-left {
  grid-area: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "copy preview"
    "workflow workflow";
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  grid-area: copy;
  padding-top: 40px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 6.6vw, 7.2rem);
}

.hero-title {
  display: grid;
  gap: 0.04em;
  max-width: none;
  font-size: clamp(3.25rem, 4.25vw, 4.95rem);
  line-height: 1.02;
}

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

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.3vw, 3.6rem);
}

h3 {
  margin-bottom: 10px;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.24rem;
  font-weight: 850;
  line-height: 1.18;
}

.lede {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.2vw, 1.16rem);
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 36px;
}

.primary-link,
.secondary-link,
.submit-button,
.receipt button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 850;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.primary-link,
.submit-button,
.receipt button {
  border: 1px solid var(--accent);
  color: var(--surface);
  background: var(--accent);
}

.primary-link,
.secondary-link {
  min-width: 150px;
  padding: 0 18px;
}

.secondary-link {
  border: 1px solid var(--line-strong);
  color: var(--charcoal);
  background: transparent;
  border-left: 0;
}

.primary-link:hover,
.secondary-link:hover,
.submit-button:hover,
.receipt button:hover {
  transform: translateY(-1px);
}

.secondary-link:hover {
  color: var(--surface);
  background: var(--sage);
  border-color: var(--sage);
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  min-height: 52px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-bottom: 0;
}

.hero-facts dt {
  margin-bottom: 8px;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.site-preview {
  grid-area: preview;
  position: relative;
  align-self: stretch;
  min-height: 300px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(20, 82, 235, 0.1), rgba(8, 191, 185, 0.14)),
    var(--surface);
}

.case-label {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  color: var(--ink);
}

.case-label span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-label strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 100%;
}

.case-tile {
  min-height: 128px;
  display: grid;
  align-content: end;
  gap: 6px;
  border: 1px solid rgba(20, 82, 235, 0.18);
  background:
    linear-gradient(rgba(20, 82, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 82, 235, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 18px 18px, 18px 18px, auto;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.case-tile::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  opacity: 0.2;
}

.case-tile::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 24px;
  width: 52px;
  height: 36px;
  background: currentColor;
  opacity: 0.08;
  transform: rotate(-8deg);
}

.case-tile span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.case-tile strong {
  font-size: 1rem;
  line-height: 1.05;
}

.case-tile em {
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.case-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.case-tile.sakura {
  color: #11234f;
}

.case-tile.machinery {
  color: #111111;
  background:
    linear-gradient(rgba(26, 22, 14, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 22, 14, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #ffe38a, #fffaf0 64%, #ffffff);
  background-size: 18px 18px, 18px 18px, auto;
}

.case-tile.machinery span {
  color: #9b6a00;
}

.case-tile.storage {
  color: #063a43;
  background:
    linear-gradient(rgba(8, 191, 185, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 191, 185, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f6fffe, #e9fbff);
  background-size: 18px 18px, 18px 18px, auto;
}

.case-tile.storage span {
  color: var(--sage);
}

.case-tile.cnc {
  color: #f8fbff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 83, 72, 0.32), transparent 28%),
    linear-gradient(135deg, #111827, #29313e);
}

.case-tile.cnc span,
.case-tile.cnc em {
  color: #ffb2a9;
}

.case-tile.vertical {
  color: #f6fff1;
  background:
    radial-gradient(circle at 72% 24%, rgba(184, 242, 74, 0.34), transparent 30%),
    linear-gradient(rgba(184, 242, 74, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 242, 74, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #062014, #164f28);
  background-size: auto, 18px 18px, 18px 18px, auto;
}

.case-tile.vertical span,
.case-tile.vertical em {
  color: #c9ff69;
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 100%;
  border: 1px solid rgba(20, 82, 235, 0.28);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  color: var(--ink);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.case-card:hover {
  border-color: var(--accent);
  background: #ffffff;
  transform: translateY(-2px);
}

.case-copy {
  display: grid;
  gap: 6px;
}

.case-kicker {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-copy strong {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  line-height: 1;
}

.case-copy span:last-child {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 750;
}

.case-thumb {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.thumb-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  padding: 0 9px;
}

.thumb-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.thumb-stage {
  position: relative;
  display: block;
  height: calc(100% - 24px);
  min-height: 98px;
  background:
    linear-gradient(rgba(20, 82, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 82, 235, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(8, 191, 185, 0.08));
  background-size: 18px 18px, 18px 18px, auto;
}

.thumb-stage b {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--surface);
  background: var(--charcoal);
  font-size: 0.86rem;
}

.thumb-title,
.thumb-line,
.thumb-product {
  position: absolute;
  display: block;
}

.thumb-title {
  left: 12px;
  top: 58px;
  width: 56%;
  height: 11px;
  background: var(--ink);
}

.thumb-line {
  left: 12px;
  top: 77px;
  width: 46%;
  height: 5px;
  background: rgba(39, 63, 115, 0.34);
}

.thumb-line.short {
  top: 88px;
  width: 34%;
}

.thumb-product {
  right: 12px;
  bottom: 12px;
  width: 58px;
  height: 44px;
  border: 1px solid rgba(7, 25, 67, 0.22);
  background: linear-gradient(135deg, #ffffff, rgba(8, 191, 185, 0.2));
  transform: rotate(-4deg);
}

.thumb-product.two {
  right: 52px;
  bottom: 28px;
  background: linear-gradient(135deg, #ffffff, rgba(20, 82, 235, 0.18));
  transform: rotate(6deg);
}

.thumb-product.three {
  right: 82px;
  bottom: 8px;
  background: linear-gradient(135deg, #ffffff, rgba(20, 82, 235, 0.1));
  transform: rotate(-9deg);
}

.case-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 850;
}

.case-cta::after {
  content: "→";
}

.form-card {
  grid-area: form;
  align-self: start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.form-card::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--sage));
}

.form-head {
  padding: 24px 26px 0;
}

.form-head h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
}

.form-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.request-form {
  display: grid;
  gap: 18px;
  padding: 20px 26px 26px;
}

.form-section {
  min-width: 0;
  display: grid;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.form-section legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
}

label span,
summary,
dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.38;
}

input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}

select {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(20, 18, 15, 0.34);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
}

input[readonly] {
  color: var(--accent-dark);
  background: rgba(156, 53, 31, 0.07);
  cursor: not-allowed;
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
  transform: none;
}

.option-group {
  display: grid;
  gap: 9px;
}

.option-title {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.style-grid {
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
}

.chip-grid label,
.inline-check {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 10px 11px;
  cursor: pointer;
}

.chip-grid label span,
.inline-check span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.chip-grid label:has(input:checked),
.inline-check:has(input:checked) {
  border-color: var(--accent);
  background: rgba(20, 82, 235, 0.09);
}

.upload-field {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.upload-field p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.reference-field {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 14px;
}

.reference-field summary {
  cursor: pointer;
  list-style: none;
}

.reference-field summary::-webkit-details-marker {
  display: none;
}

.reference-field summary::after {
  content: "+";
  float: right;
  color: var(--accent-dark);
  font-size: 1rem;
}

.reference-field[open] summary::after {
  content: "-";
}

.reference-field p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.reference-list {
  display: grid;
  gap: 8px;
}

.submit-button,
.receipt button {
  width: 100%;
  min-height: 50px;
  border: 0;
  cursor: pointer;
}

.submit-button {
  justify-content: space-between;
  padding: 0 16px;
}

.submit-button:hover,
.receipt button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.compact-status {
  min-height: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.form-status.error {
  color: var(--error);
}

.workflow {
  margin-top: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.workflow li span {
  margin-bottom: 0;
  line-height: 1.62;
}

.workflow {
  grid-area: workflow;
  margin-top: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  overflow: hidden;
}

.workflow-head {
  min-height: 180px;
  display: grid;
  align-content: end;
  padding: 30px;
  color: var(--surface);
  background: linear-gradient(135deg, var(--charcoal), var(--accent-dark));
}

.workflow-head h2 {
  margin: 0;
  color: var(--surface);
}

.workflow ol {
  display: grid;
  grid-template-rows: repeat(4, minmax(74px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.workflow li {
  display: grid;
  grid-template-columns: 128px minmax(0, 720px);
  gap: 20px;
  align-items: center;
  min-height: 74px;
  padding: 22px 30px 22px 0;
  border-bottom: 1px solid var(--line);
}

.workflow li:last-child {
  border-bottom: 0;
}

.workflow li strong {
  color: var(--ink);
  font-weight: 850;
}

.workflow li span {
  color: var(--muted);
}

.service-title {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.receipt {
  width: min(640px, 100%);
  margin: 24px auto 0;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  animation: pop 260ms var(--ease) both;
}

.receipt h2 {
  font-size: 2rem;
}

.receipt dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.receipt div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.receipt dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.receipt [data-receipt-id] {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
}

.is-hidden {
  display: none;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 1140px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
    grid-template-areas: "left form";
    min-height: auto;
  }

  .hero-left {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "preview"
      "workflow";
  }

  .hero-copy {
    padding-top: 12px;
  }

  .site-preview {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .topbar,
  .access-gate,
  .owner-shell,
  .site-shell {
    width: min(100% - 24px, 1240px);
  }

  .topbar {
    min-height: 76px;
  }

  .brand-logo {
    width: 142px;
  }

  .identity small {
    display: none;
  }

  .access-gate {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    gap: 28px;
    padding-top: 38px;
  }

  .gate-note {
    margin-top: 28px;
  }

  .gate-form {
    padding: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "form";
  }

  .hero-left {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "copy"
      "preview"
      "workflow";
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-title {
    font-size: clamp(2.45rem, 10vw, 3.4rem);
  }

  .gate-title {
    font-size: clamp(2.9rem, 12vw, 4rem);
    line-height: 1.06;
  }

  .hero-facts,
  .two-col,
  .owner-workspace,
  .code-row {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
  }

  .hero-facts div + div {
    padding-left: 0;
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .primary-link,
  .secondary-link {
    width: 50%;
    min-width: 0;
  }

  .site-preview {
    min-height: 310px;
  }

  .workflow-head {
    min-height: 152px;
    padding: 24px;
  }

  .workflow ol {
    padding-left: 18px;
  }

  .workflow li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 18px 18px 0;
  }

  .form-head,
  .request-form {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Public marketing homepage */
.marketing-page {
  --mw-bg: #f7fbff;
  --mw-panel: #ffffff;
  --mw-panel-2: #eaf7ff;
  --mw-ink: #08245a;
  --mw-soft: rgba(8, 36, 90, 0.72);
  --mw-dim: rgba(8, 36, 90, 0.56);
  --mw-line: rgba(8, 36, 90, 0.13);
  --mw-line-strong: rgba(8, 36, 90, 0.24);
  --mw-blue: #1452eb;
  --mw-lime: #7de86a;
  --mw-mint: #04a8a3;
  --mw-coral: #ff6b4a;
  color: var(--mw-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 82, 235, 0.13), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(4, 168, 163, 0.14), transparent 26rem),
    radial-gradient(circle at 38% 84%, rgba(125, 232, 106, 0.16), transparent 30rem),
    linear-gradient(180deg, #f8fcff 0%, #edf7ff 48%, #f5fff3 100%);
}

.marketing-page .route-canvas {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  pointer-events: none;
}

.marketing-page .grain {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(8, 36, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 36, 90, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

.public-shell,
.intake-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.mw-topbar,
.intake-head {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--mw-line);
  padding-top: 22px;
}

.mw-identity {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--mw-ink);
  padding: 0;
  filter: drop-shadow(0 12px 22px rgba(20, 82, 235, 0.13));
}

.mw-logo {
  display: block;
  width: 152px;
  height: auto;
  object-fit: contain;
}

.mw-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.mw-nav a,
.mw-small-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--mw-soft);
  font-size: 0.78rem;
  font-weight: 850;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.mw-nav a:hover,
.mw-small-link:hover {
  color: var(--mw-ink);
  border-color: var(--mw-line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.mw-hero {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.92fr);
  gap: clamp(42px, 5.8vw, 82px);
  align-items: center;
  padding: clamp(56px, 7vw, 86px) 0;
}

.mw-hero-copy {
  min-width: 0;
  max-width: 620px;
}

.mw-kicker {
  margin: 0 0 14px;
  color: var(--mw-mint);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mw-hero h1,
.mw-section h2,
.intake-note h1 {
  margin: 0;
  color: var(--mw-ink);
  font-size: clamp(2.75rem, 4.05vw, 4.45rem);
  line-height: 1.04;
  font-weight: 920;
  letter-spacing: 0;
}

.mw-hero h1 span {
  display: block;
  white-space: normal;
}

.mw-hero h1 span + span {
  margin-top: 0.04em;
}

.mw-section h2,
.intake-note h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.7rem);
}

.mw-lede,
.mw-section-head p,
.intake-note p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--mw-soft);
  font-size: clamp(1rem, 1.4vw, 1.17rem);
  line-height: 1.72;
}

.mw-hero-points {
  display: grid;
  gap: 6px;
  line-height: 1.48;
}

.mw-hero-points span {
  display: block;
}

.keep-together {
  white-space: nowrap;
}

.mw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.mw-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mw-line-strong);
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.mw-button:hover {
  transform: translateY(-2px);
}

.mw-button-primary {
  color: #ffffff;
  border-color: rgba(20, 82, 235, 0.42);
  background: linear-gradient(135deg, var(--mw-blue), var(--mw-mint));
  box-shadow: 0 22px 60px rgba(20, 82, 235, 0.18);
}

.mw-button-ghost {
  color: var(--mw-ink);
  background: rgba(255, 255, 255, 0.7);
}

.mw-visual {
  position: relative;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--mw-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(125, 232, 106, 0.16), transparent 16rem),
    linear-gradient(rgba(8, 36, 90, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 36, 90, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 246, 255, 0.86));
  background-size: auto, 30px 30px, 30px 30px, auto;
  box-shadow: 0 32px 90px rgba(8, 36, 90, 0.14);
  transform-style: preserve-3d;
}

.mw-orbit {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201, 255, 93, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(125, 232, 106, 0.14), 0 0 90px rgba(20, 82, 235, 0.14);
}

.mw-site-frame {
  position: absolute;
  display: grid;
  align-content: end;
  gap: 10px;
  border: 1px solid var(--mw-line-strong);
  border-radius: 8px;
  padding: 22px;
  color: var(--mw-ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 74px rgba(8, 36, 90, 0.13);
  backdrop-filter: blur(18px);
  will-change: transform;
}

.mw-site-frame > span,
.mw-case-card > span {
  color: var(--mw-coral);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mw-site-frame strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.06;
}

.mw-site-frame p {
  margin: 0;
  color: var(--mw-soft);
  line-height: 1.5;
}

.mw-frame-main {
  left: 42px;
  top: 54px;
  width: min(58%, 340px);
  height: 190px;
}

.mw-frame-side {
  right: 42px;
  top: 270px;
  width: min(50%, 310px);
  height: 150px;
}

.mw-frame-float {
  left: 86px;
  top: 460px;
  bottom: auto;
  width: min(54%, 330px);
  height: 138px;
}

.mw-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -24px 0 0;
}

.mw-strip span,
.mw-checklist span {
  border: 1px solid var(--mw-line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--mw-soft);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

.mw-section {
  padding: clamp(82px, 10vw, 132px) 0 0;
}

.mw-section-head {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 12px;
  align-items: start;
  margin-bottom: 30px;
}

.mw-section-head h2 {
  font-size: clamp(2.35rem, 4vw, 4.35rem);
  line-height: 0.98;
}

.mw-section-head h2 span {
  display: block;
}

.mw-case-note {
  margin-top: 0;
}

.mw-flow .mw-section-head p {
  max-width: 860px;
}

.mw-case-note > span {
  display: block;
}

.mw-case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.mw-case-card {
  min-height: 286px;
  display: grid;
  align-content: end;
  gap: 9px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mw-line);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 8%, var(--case-glow, rgba(125, 232, 106, 0.18)), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(231, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 24px 80px rgba(8, 36, 90, 0.11);
  will-change: transform;
}

.mw-case-card::before {
  content: "";
  position: absolute;
  inset: 10px 10px 74px;
  border: 1px solid rgba(236, 246, 255, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 36, 90, 0.06)),
    var(--case-image),
    #eef3f7;
  background-position: center, var(--case-position, center), center;
  background-size: auto, var(--case-size, cover), auto;
  background-repeat: no-repeat;
  box-shadow: 0 18px 48px rgba(8, 36, 90, 0.12);
  filter: saturate(1.08) contrast(1.04);
  transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.mw-case-card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 58px;
  border: 1px solid rgba(236, 246, 255, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(232, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mw-case-card:hover::before {
  transform: scale(1.035);
  filter: saturate(1.16) contrast(1.08);
}

.mw-case-card strong,
.mw-case-card em,
.mw-case-card span {
  position: relative;
  z-index: 1;
}

.mw-case-card strong {
  display: block;
  align-self: end;
  overflow-wrap: anywhere;
  padding: 0 4px 2px;
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  line-height: 1;
  color: var(--mw-ink);
  text-shadow: 0 12px 36px rgba(255, 255, 255, 0.54);
}

.mw-case-card em {
  color: var(--mw-soft);
  font-style: normal;
  font-weight: 850;
}

.case-machinery {
  --case-glow: rgba(255, 171, 64, 0.2);
}

.case-storage {
  --case-glow: rgba(88, 166, 255, 0.22);
}

.case-cnc {
  --case-glow: rgba(236, 246, 255, 0.18);
}

.case-greenhouse {
  --case-glow: rgba(103, 232, 201, 0.22);
}

.case-sakura {
  --case-glow: rgba(255, 122, 182, 0.22);
}

.mw-flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-flow-list li {
  min-height: 220px;
  display: grid;
  grid-template-rows: minmax(58px, auto) auto;
  align-content: start;
  gap: 34px;
  border: 1px solid var(--mw-line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.mw-flow-list strong {
  color: var(--mw-blue);
  font-size: clamp(1.34rem, 1.8vw, 1.8rem);
  line-height: 1.08;
}

.mw-flow-list span {
  color: var(--mw-soft);
  font-size: clamp(1.12rem, 1.2vw, 1.24rem);
  line-height: 1.62;
}

.mw-partner-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: auto;
  margin: 0 0 clamp(56px, 8vw, 96px);
  border: 1px solid var(--mw-line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
  background:
    radial-gradient(circle at 16% 10%, rgba(20, 82, 235, 0.12), transparent 17rem),
    rgba(255, 255, 255, 0.74);
}

.marketing-page .gate-copy {
  max-width: 720px;
}

.marketing-page .gate-copy h2 {
  margin: 0 0 18px;
  color: var(--mw-ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
}

.marketing-page .gate-copy h2 span {
  display: block;
}

.marketing-page .gate-copy p:not(.mw-kicker) {
  margin: 0;
  color: var(--mw-soft);
  line-height: 1.72;
}

.marketing-page .gate-form,
.marketing-page .form-card,
.marketing-page .form-section,
.marketing-page .upload-field,
.marketing-page .reference-field,
.marketing-page .chip-grid label,
.marketing-page .inline-check {
  border-color: var(--mw-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.marketing-page .gate-form {
  padding: 24px;
}

.marketing-page .gate-form::before {
  content: none;
}

.marketing-page label span,
.marketing-page summary,
.marketing-page dt,
.marketing-page .option-title,
.marketing-page .eyebrow {
  color: var(--mw-dim);
}

.marketing-page .form-section legend,
.marketing-page .chip-grid label span,
.marketing-page .inline-check span {
  color: var(--mw-ink);
}

.marketing-page .chip-grid label:has(input:checked),
.marketing-page .inline-check:has(input:checked) {
  border-color: var(--mw-lime);
  background: rgba(201, 255, 93, 0.13);
}

.marketing-page input,
.marketing-page select,
.marketing-page textarea {
  border-color: var(--mw-line);
  border-radius: 8px;
  color: var(--mw-ink);
  background: rgba(255, 255, 255, 0.86);
}

.marketing-page input::placeholder,
.marketing-page textarea::placeholder {
  color: rgba(8, 36, 90, 0.36);
}

.marketing-page input:focus,
.marketing-page select:focus,
.marketing-page textarea:focus {
  border-color: var(--mw-blue);
  background: #ffffff;
}

.marketing-page .submit-button,
.marketing-page .receipt button {
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mw-blue), var(--mw-mint));
}

.marketing-page .form-status {
  color: var(--mw-mint);
}

.marketing-page .form-status.error {
  color: var(--mw-coral);
}

.intake-shell {
  padding-bottom: 60px;
}

.intake-head {
  margin-bottom: 34px;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
  gap: 0;
  align-items: start;
}

.intake-note {
  position: sticky;
  top: 24px;
  border: 1px solid var(--mw-line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at 84% 16%, rgba(201, 255, 93, 0.18), transparent 14rem),
    rgba(255, 255, 255, 0.055);
}

.intake-note dl {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--mw-line);
}

.intake-note dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--mw-line);
  padding: 13px 0;
}

.intake-note dd {
  margin: 0;
  color: var(--mw-ink);
  font-weight: 850;
}

.marketing-page .form-card::before {
  background: linear-gradient(90deg, var(--mw-blue), var(--mw-lime), var(--mw-coral));
}

.marketing-page .form-head p:not(.eyebrow),
.marketing-page .upload-field p,
.marketing-page .reference-field p,
.marketing-page .field-note,
.marketing-page .receipt dd {
  color: var(--mw-soft);
}

.marketing-page .receipt {
  border-color: var(--mw-line);
  border-radius: 8px;
  color: var(--mw-ink);
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(18px);
}

@media (max-width: 1120px) {
  .mw-case-grid,
  .mw-flow-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mw-hero,
  .mw-section-head,
  .mw-partner-entry,
  .intake-layout {
    grid-template-columns: 1fr;
  }

  .mw-visual {
    min-height: 560px;
  }

  .mw-case-grid,
  .mw-flow-list {
    grid-template-columns: 1fr 1fr;
  }

  .intake-note {
    position: static;
  }
}

@media (max-width: 700px) {
  .marketing-page .route-canvas {
    opacity: 0.2;
  }

  .public-shell,
  .intake-shell {
    width: min(100% - 24px, 1240px);
  }

  .mw-topbar,
  .intake-head {
    min-height: 98px;
    padding-top: 15px;
  }

  .mw-logo {
    width: 112px;
  }

  .mw-identity {
    border-radius: 12px;
    padding: 6px 9px;
  }

  .mw-nav {
    gap: 2px;
    margin-top: 12px;
  }

  .mw-nav a {
    padding: 8px 7px;
    font-size: 0.68rem;
  }

  .mw-nav a:nth-child(2) {
    display: none;
  }

  .mw-hero {
    min-height: auto;
    padding: 46px 0 36px;
  }

  .mw-hero h1 {
    font-size: clamp(2rem, 9.6vw, 3.05rem);
    line-height: 0.98;
  }

  .mw-actions,
  .mw-button {
    width: 100%;
  }

  .mw-visual {
    min-height: 600px;
  }

  .mw-frame-main {
    left: 18px;
    top: 24px;
    width: 72%;
    height: 150px;
  }

  .mw-frame-side {
    right: 18px;
    top: 212px;
    width: 68%;
    height: 150px;
  }

  .mw-frame-float {
    left: 28px;
    top: 400px;
    bottom: auto;
    width: 72%;
    height: 150px;
  }

  .mw-strip {
    margin-top: 0;
  }

  .mw-case-grid,
  .mw-flow-list {
    grid-template-columns: 1fr;
  }

  .mw-case-card,
  .mw-flow-list li {
    min-height: 190px;
  }

  .mw-flow-list li {
    align-content: start;
    min-height: auto;
    grid-template-rows: auto auto;
    gap: 18px;
  }

  .mw-section {
    padding-top: 72px;
  }

  .mw-partner-entry {
    padding: 22px;
  }

  .marketing-page .gate-copy h2 {
    font-size: 1.75rem;
    line-height: 1.08;
  }

  .intake-note dl div,
  .two-col {
    grid-template-columns: 1fr;
  }

  .request-form {
    padding: 18px 14px 18px;
  }

  .form-head {
    padding: 20px 16px 0;
  }

  .form-section {
    padding: 14px 12px;
  }

  .intake-note h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}

@media (max-width: 440px) {
  .primary-link,
  .secondary-link {
    width: 100%;
    border-left: 1px solid var(--line-strong);
  }

  .secondary-link {
    border-top: 0;
  }
}
