@font-face {
  font-family: "ReDPL Rounded";
  src: url("./assets/lp-rounded.88020cb3829c.woff2") format("woff2");
  font-weight: 700;
  font-display: optional;
}
@font-face {
  font-family: "ReDPL Sans";
  src: url("./assets/lp-sans.72c5f654de17.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
}

:root {
  --navy: #10275c;
  --ink: #24324a;
  --muted: #505e75;
  --yellow: #ffd84d;
  --line: #dfe7f3;
  --cream: #fff8ed;
  --paper: #fffdf8;
  --soft-yellow: #ffedbd;
  --mint: #24d9b4;
  --white: #fff;
  --display-font: "ReDPL Rounded", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --text-font: "ReDPL Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --page-gutter: clamp(1rem, 4.6vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 1rem/1.8 var(--text-font);
  font-kerning: normal;
  letter-spacing: .015em;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 {
  color: var(--navy);
  font-family: var(--text-font);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .025em;
}
h1, .story-intro h2, .service-title { font-family: var(--display-font); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.35vw, 2.45rem); }
h3 { font-size: 1.16rem; }
.title-phrase { display: inline-block; max-inline-size: 100%; }
.unbroken { white-space: nowrap; }
a { color: var(--navy); text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #2963c8; outline-offset: 4px; }
:target { scroll-margin-top: 5.5rem; }
.wrap { width: min(100% - 2 * var(--page-gutter), 72rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .5rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.topbar { position: sticky; top: 0; z-index: 3; background: var(--cream); border-bottom: 1px solid #ecddbb; }
.topbar-inner { min-height: 3.85rem; display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.brand { display: block; width: clamp(7rem, 37vw, 11.25rem); height: auto; }
.topbar nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.5rem); }
.nav-case { display: none; text-decoration: none; font-size: .9375rem; font-weight: 700; }
.nav-case:hover, .footer a:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: var(--yellow); }
.primary:hover { background: #ffce26; }
.secondary { background: var(--white); border-color: #b9c9df; }
.secondary:hover { border-color: var(--navy); }
.header-cta { min-height: 2.75rem; padding-inline: .75rem; font-size: .8125rem; white-space: nowrap; }
.scroll-canvas {
  display: none;
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: var(--scroll-color, var(--cream));
  pointer-events: none;
}
.scroll-canvas::after {
  position: absolute;
  content: "";
  inset: -15vh -15vw;
  background: radial-gradient(ellipse at 84% 52%, #ffd84d44, transparent 49%);
  transform: translateY(var(--wash-offset, 0px));
}
.scene-opening { --scene-color: #fff3d6; }
.scene-cream { --scene-color: var(--cream); }
.scene-yellow { --scene-color: var(--soft-yellow); }
.scene-paper { --scene-color: var(--paper); }
.scene { background: var(--scene-color); }
.has-scroll-scenes .scroll-canvas { display: block; }
.has-scroll-scenes .scene { background: transparent; }
.opening-story {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.opening-story::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -5rem -17% 7%;
  border-radius: 0 0 49% 49% / 0 0 23% 23%;
  background: #ffebae;
  transform: translateY(var(--opening-offset, 0px));
}
.opening-layout { position: relative; }
.opening-stroke {
  position: absolute;
  z-index: -1;
  top: 62%;
  right: -23rem;
  width: max(56rem, 105vw);
  height: clamp(17rem, 37vw, 34rem);
  border: 2px solid #d7ad4542;
  border-inline-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translateY(var(--stroke-offset, 0px)) rotate(-14deg);
  pointer-events: none;
}
.hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem) 0;
  text-align: center;
}
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--navy); font-size: .875rem; font-weight: 800; }
.eyebrow span { display: inline-block; width: 1.7rem; height: .2rem; border-radius: 4px; background: var(--yellow); }
.hero-wordmark {
  position: absolute;
  top: 73%;
  left: 50%;
  z-index: -1;
  width: min(92%, 61rem);
  height: auto;
  translate: -50% -50%;
  transform: translateY(var(--wordmark-offset, 0px));
  opacity: .095;
  pointer-events: none;
}
.hero h1 {
  display: inline-block;
  margin-block: 1rem .7rem;
  writing-mode: vertical-rl;
  text-align: start;
  font-size: clamp(2.15rem, 9.7vw, 4.15rem);
  letter-spacing: .035em;
  line-height: 1.21;
  line-break: strict;
  overflow-wrap: normal;
  text-wrap: wrap;
}
.hero h1 span { display: block; }
.hero h1 span:first-child { margin-inline-start: .65em; }
.note { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.hero-art {
  width: min(100%, 59rem);
  margin: clamp(-1.6rem, -2vw, -.4rem) auto 0;
  padding-bottom: clamp(.75rem, 2vw, 2rem);
  pointer-events: none;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(calc(var(--art-offset, 0px) * .55));
}
.price-story { padding-block: clamp(1.8rem, 4.5vw, 4.5rem) clamp(3.5rem, 7vw, 6.5rem); }
.revolution-story h2, .development-shift h2, .price-story h2 {
  font-size: clamp(1.55rem, 1.18rem + 1.55vw, 2.65rem);
  line-height: 1.42;
  text-align: center;
}
.revolution-intro { max-width: 35rem; margin: .9rem auto 0; }
.revolution-figure { width: min(100%, 48rem); margin: clamp(1.2rem, 3vw, 2.2rem) auto 0; }
.revolution-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.railway-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 3vw, 1.5rem);
  margin-top: .45rem;
  color: var(--navy);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.railway-comparison dt { font-size: clamp(.9rem, .8rem + .35vw, 1.15rem); font-weight: 600; }
.railway-comparison dd { display: grid; margin-top: .1rem; line-height: 1.45; }
.railway-time { font-size: clamp(1.25rem, 1rem + 1.45vw, 2.45rem); font-weight: 750; letter-spacing: .005em; }
.railway-fare { font-size: clamp(1rem, .9rem + .75vw, 1.7rem); font-weight: 650; }
.railway-caption {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .12rem .8rem;
  margin: 1rem auto 0;
  color: var(--muted);
  text-align: center;
  font-size: .8125rem;
  line-height: 1.6;
}
.revolution-more { margin-top: 1.25rem; text-align: center; }
.revolution-more .button { gap: .45rem; }
.development-intro { max-width: 35rem; margin: .9rem auto 0; }
.development-layout {
  display: grid;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  width: min(100%, 64rem);
  margin: clamp(1.55rem, 4.6vw, 3.5rem) auto 0;
}
.development-figure {
  width: min(100%, 34rem);
  margin-inline: auto;
}
.development-art {
  display: block;
  width: 100%;
  height: auto;
}
.development-model-steps {
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5ce96;
}
.development-model-steps > li {
  padding: clamp(.85rem, 2vw, 1.2rem) 0;
  border-bottom: 1px solid #e5ce96;
}
.development-model-steps h3 { margin-bottom: .25rem; font-size: clamp(1.08rem, .98rem + .45vw, 1.38rem); }
.development-model-steps p { font-size: .9375rem; }
.development-check {
  max-width: 26rem;
  margin: .65rem auto 0;
  color: var(--muted);
  font-size: .875rem;
}
.development-result {
  display: grid;
  align-items: baseline;
  gap: .3rem 1.5rem;
  width: min(100%, 64rem);
  margin: clamp(1.4rem, 4vw, 2.4rem) auto 0;
  padding-top: clamp(.8rem, 2vw, 1.4rem);
  border-top: 1px solid #e5ce96;
}
.development-result h3 { font-size: clamp(1.2rem, .95rem + 1.3vw, 1.8rem); }
.development-result h3 strong {
  margin-inline: .15em;
  font-size: clamp(1.65rem, 1rem + 2.4vw, 2.75rem);
  font-variant-numeric: tabular-nums;
}
.development-result p { color: var(--muted); font-size: .875rem; }
.section { padding-block: clamp(2.7rem, 5.4vw, 5.5rem); }
.section-intro { margin-top: 1rem; max-width: 48rem; }
.story-intro { text-align: center; }
.story-intro h2 { font-size: clamp(1.75rem, 1.1rem + 2.35vw, 3.2rem); }
.story-intro p { max-width: 36rem; margin: 1.15rem auto 0; }
.story-region {
  border-radius: 50% 50% 4% 4% / clamp(1.7rem, 6vw, 5.4rem) clamp(1.7rem, 6vw, 5.4rem) 2.35rem 2.35rem;
  padding-top: clamp(4.2rem, 10vw, 8.3rem);
  background: var(--navy);
}
.story-region:focus-visible, .contact-section:focus-visible { outline-color: var(--yellow); outline-offset: -.25rem; }
.service-title {
  width: fit-content;
  padding-bottom: .25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .15em;
  font-size: clamp(2.15rem, 1.15rem + 4.5vw, 5.15rem);
  line-height: 1.22;
  letter-spacing: .015em;
  margin-inline: auto;
  justify-content: center;
  color: #fff8ed;
  text-align: center;
}
.service-title-lead { font-size: .52em; white-space: nowrap; letter-spacing: .005em; }
.service-title-question { color: var(--yellow); }
.has-scroll-scenes .service-title {
  transform: translateX(var(--title-offset, 0px));
  opacity: var(--title-opacity, 1);
}
.service-diagram {
  margin: clamp(2.25rem, 5vw, 4.25rem) auto 0;
  text-align: center;
}
.service-diagram h3 {
  color: var(--cream);
  font-size: clamp(1.45rem, 1rem + 1.65vw, 2.4rem);
}
.services-intro {
  max-width: 38rem;
  margin: .75rem auto 0;
  color: var(--cream);
  text-align: start;
}
.module-diagram {
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid #fff8ed44;
}
.service-grid {
  display: grid;
  gap: 1rem;
  width: min(100%, 34rem);
  margin: 1.35rem auto 0;
  padding: 0;
  list-style: none;
}
.hr-flow { gap: 1.75rem; }
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(4.5rem, 22vw, 8rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.25rem);
  padding: .8rem;
  border-radius: .85rem 1.25rem 1.05rem .9rem;
  background: var(--cream);
  text-align: start;
}
.service-card img { display: block; width: 100%; height: auto; }
.service-card h4 {
  margin: 0 0 .3rem;
  color: var(--navy);
  font: 700 clamp(1.06rem, .98rem + .45vw, 1.4rem)/1.4 var(--text-font);
}
.service-card h4 span {
  display: block;
  margin-bottom: .13rem;
  color: #73521e;
  font: 600 .8125rem/1.35 var(--text-font);
}
.service-card p { font-size: .9rem; line-height: 1.6; }
.service-card .service-example { margin-top: .32rem; color: var(--muted); font-size: .8125rem; }
.service-card:focus-visible { outline-color: var(--yellow); }
.module-grid .service-card { background: #fff1cb; }
.hr-flow .service-card:not(:last-child)::after {
  position: absolute;
  content: "";
  top: calc(100% + .45rem);
  left: 50%;
  width: 1rem;
  height: .6rem;
  background: var(--yellow);
  clip-path: polygon(0 40%, 65% 40%, 53% 0, 72% 0, 100% 50%, 72% 100%, 53% 100%, 65% 60%, 0 60%);
  transform: translateX(-50%) rotate(90deg);
}
.price-story {
  --estimate-rule: #cdbc97;
  --estimate-accent: #76500e;
  --estimate-highlight: #ffe29a;
  --estimate-paper-inset: clamp(.65rem, 1.8vw, 1.55rem);
}
.price-story h2, .estimate-intro { text-align: center; }
.estimate-intro { margin-top: .65rem; color: var(--muted); font-size: .975rem; }
.estimate-comparison { margin-top: clamp(1.6rem, 4vw, 3rem); }
.estimate-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(.4rem, 2vw, 1rem);
  align-items: center;
  max-width: 35rem;
  margin-inline: auto;
  padding: clamp(.7rem, 2vw, 1.25rem);
  border-block: 1px solid var(--estimate-rule);
  color: var(--navy);
  text-align: center;
}
.estimate-key div { display: grid; justify-items: center; gap: .3rem; }
.estimate-key div span { font-size: clamp(.8rem, .7rem + .43vw, 1rem); font-weight: 700; }
.estimate-key strong {
  font-size: clamp(1.7rem, 1.15rem + 2.3vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}
.estimate-key-arrow { color: var(--estimate-accent); font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); }
.estimate-key div:last-child strong { padding-inline: .22em; box-shadow: inset 0 -.48em var(--estimate-highlight); }
.estimate-key-note {
  max-width: 38rem;
  margin: .9rem auto 0;
  color: var(--ink);
  font-size: .9rem;
  text-align: center;
}
.estimate-layout { display: grid; gap: 1.15rem; margin-top: clamp(2rem, 4.5vw, 3.6rem); }
.estimate-paper {
  min-width: 0;
  padding: var(--estimate-paper-inset);
  border: 1px solid #ddcfb1;
  border-radius: .35rem;
  background: #fff9eb;
  box-shadow: 0 .2rem .7rem #65450c12;
}
.estimate-link-arrow {
  block-size: 1rem;
  background: var(--estimate-accent);
  clip-path: polygon(0 43%, calc(100% - .65rem) 43%, calc(100% - .94rem) 13%, calc(100% - .78rem) 0, 100% 50%, calc(100% - .78rem) 100%, calc(100% - .94rem) 87%, calc(100% - .65rem) 57%, 0 57%);
}
.estimate-link-arrow--stacked { justify-self: center; inline-size: 1.7rem; transform: rotate(90deg); }
.estimate-link-arrow--inline { display: none; }
.estimate-paper h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); }
.estimate-table {
  width: 100%;
  margin-top: .85rem;
  border-collapse: collapse;
  color: var(--navy);
  font-size: clamp(.8125rem, .75rem + .22vw, .95rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  letter-spacing: 0;
}
.estimate-table :is(th, td) { padding: .5rem clamp(.2rem, .7vw, .65rem); border-bottom: 1px solid var(--estimate-rule); }
.estimate-table th { text-align: left; font-weight: 600; }
.estimate-table td, .estimate-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.estimate-table thead th { border-top: 1px solid var(--estimate-rule); color: var(--ink); }
.estimate-table thead th > span { display: block; font-size: .85em; }
.estimate-table tbody th[scope="row"] > span:not(.estimate-link-arrow) { display: block; color: var(--ink); font-size: .9em; font-weight: 400; }
.estimate-group { font-weight: 700; }
.estimate-group-label { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; }
.estimate-change-label {
  padding: .12em .48em;
  border-radius: .25rem;
  background: var(--estimate-accent);
  color: #fff9eb;
  font-size: .86em;
  font-weight: 700;
  white-space: nowrap;
}
.estimate-change-effort { color: var(--estimate-accent); font-size: .9em; white-space: nowrap; }
.estimate-implementation { background: #fff0c9; }
.estimate-implementation tr > :first-child { box-shadow: inset 2px 0 #b98028; }
.estimate-implementation tr > :last-child { border-inline-end: 2px solid #b98028; }
.estimate-implementation tr:first-child > * { border-top: 1px solid #b98028; }
.estimate-implementation tr:last-child > * { border-bottom: 1px solid #b98028; }
.estimate-implementation .estimate-group, .estimate-ai { background: var(--estimate-highlight); }
.estimate-ai { font-weight: 700; }
.estimate-table .estimate-total :is(th, td) { padding-block: .85rem .35rem; border-bottom: 0; }
.estimate-total strong { color: var(--navy); font-size: clamp(1.25rem, .95rem + 1vw, 1.8rem); }
.estimate-total td > span { display: block; }
.estimate-paper-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.estimate-paper-heading p { text-align: right; font-size: .8125rem; line-height: 1.45; }
.estimate-subject, .estimate-ai-note { margin-top: .65rem; color: var(--ink); font-size: .85rem; }
.estimate-subject strong { color: var(--navy); }
.estimate-table--proposal :is(th, td) { padding-block: .7rem; }
.estimate-comparison figcaption { margin-top: 1.25rem; color: var(--ink); font-size: .8125rem; text-align: center; }
@media (min-width: 54rem) {
  .estimate-layout {
    --estimate-gutter: clamp(2.15rem, 4.6vw, 4rem);
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--estimate-gutter);
    align-items: start;
  }
  .estimate-ai th { position: relative; }
  .estimate-link-arrow--stacked { display: none; }
  .estimate-link-arrow--inline {
    display: block;
    position: absolute;
    z-index: 1;
    top: 50%;
    right: calc(100% + .15rem);
    inline-size: calc(var(--estimate-gutter) + var(--estimate-paper-inset) * 2 - .3rem);
    transform: translateY(-50%);
    pointer-events: none;
  }
  .estimate-table tbody th[scope="row"] > span:not(.estimate-link-arrow) { display: inline; }
  .estimate-total td > span { display: inline; }
}
.faq { max-width: 59rem; }
.faq h2 { margin-bottom: 1.25rem; text-align: center; }
.faq details { border-bottom: 1px solid #decca8; }
.faq summary { padding-block: .9rem; cursor: pointer; color: var(--navy); font-weight: 700; }
.faq details p { padding: 0 0 1rem 1.3rem; }
.case-list {
  margin-top: clamp(1.3rem, 3vw, 2rem);
  padding: 0;
  border-bottom: 1px solid #d7c7aa;
  list-style: none;
}
.case-card { border-top: 1px solid #d7c7aa; }
.case-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding-block: clamp(.95rem, 2vw, 1.3rem);
  cursor: pointer;
  list-style: none;
}
.case-card summary::-webkit-details-marker { display: none; }
.case-card summary:hover h3 { text-decoration: underline; text-underline-offset: .22em; }
.case-card summary h3 { font-size: clamp(1.05rem, .94rem + .52vw, 1.4rem); }
.case-card summary p { margin-top: .2rem; color: var(--muted); font-size: .875rem; }
.case-toggle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: .45rem;
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 700;
}
.case-toggle > span {
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-.13rem);
}
.case-card[open] .case-toggle > span { transform: rotate(225deg) translate(-.08rem, -.08rem); }
.case-body { padding-bottom: clamp(1.4rem, 4vw, 2.5rem); }
.case-features {
  display: grid;
  gap: .75rem 1.5rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: .55rem;
  background: #ffedbd66;
}
.case-features dt { color: var(--navy); font-weight: 700; }
.case-features dd { margin-top: .15rem; font-size: .9rem; }
.case-comic { margin-top: clamp(1.4rem, 4vw, 2rem); }
.case-comic h4 { margin: 0; color: var(--navy); font-size: clamp(1rem, .92rem + .5vw, 1.3rem); }
.case-comic-label { margin: .1rem 0 .8rem; color: var(--muted); font-size: .825rem; }
.case-comic-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  padding: 0;
  list-style: none;
  counter-reset: case-panel;
}
.case-comic-panels li { counter-increment: case-panel; }
.case-comic-panels figure {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d7c7aa;
  border-radius: .4rem;
  background: #fff9ec;
}
.case-comic-panels figure::before {
  content: counter(case-panel);
  position: absolute;
  top: .45rem;
  left: .45rem;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: .72rem;
  font-weight: 700;
}
.case-comic-panels img { display: block; width: 100%; height: auto; }
.case-comic-panels figcaption {
  padding: .65rem .7rem .8rem;
  border-top: 1px solid #e6d9bb;
  font-size: clamp(.8125rem, .77rem + .22vw, .9375rem);
  line-height: 1.55;
}
@media (max-width: 35.99rem) {
  body:not(.history-page) { --text-font: Meiryo, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; font-kerning: auto; }
  .case-card summary { flex-wrap: wrap; row-gap: .3rem; }
}
@media (min-width: 48rem) {
  .case-features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
  .case-comic-panels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.owned { margin-top: 1.4rem; padding: .2rem 0 .2rem 1.05rem; border-left: 4px solid var(--mint); }
.process {
  display: grid;
  gap: 1.15rem clamp(1rem, 2.5vw, 2.25rem);
  margin-top: clamp(1.3rem, 3vw, 2.7rem);
  padding: 0;
  list-style: none;
}
.process li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(4.2rem, 24vw, 6.75rem) minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  border-top: 1px solid #d7bd7b;
  padding-top: .9rem;
  color: var(--navy);
}
.process img { display: block; width: min(100%, 13rem); height: auto; }
.process-heading {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.process-label {
  font-size: clamp(1.03rem, .9rem + .45vw, 1.22rem);
}
.process-step {
  flex: 0 0 1.45rem;
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid #be8a23;
  border-radius: 47% 54% 49% 51%;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.process-copy > p { margin-top: .35rem; font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.process-copy .process-team { margin-top: .6rem; font-size: .8125rem; color: #684b23; font-weight: 700; }
.contact-section { background: var(--navy); color: white; }
.contact-layout { display: grid; gap: 1.5rem; }
.contact-layout h2 { color: white; }
.contact-layout > div > p { max-width: 34rem; margin-top: .9rem; }
.form-card { min-width: 0; padding: clamp(1.15rem, 3.5vw, 2.2rem); border-radius: 1.1rem; background: white; color: var(--ink); }
#consult-form { display: grid; gap: 1rem; }
#consult-form label { display: grid; gap: .3rem; font-weight: 700; }
#consult-form :is(input:not([type=checkbox]), textarea) { width: 100%; min-height: 2.85rem; padding: .55rem .7rem; border: 1px solid #aab9d0; border-radius: .45rem; background: white; color: var(--ink); font-weight: 400; }
#consult-form textarea { resize: vertical; }
#consult-form .consent { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.consent input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--navy); }
.honey { position: absolute; inline-size: 1px !important; block-size: 1px !important; opacity: 0; pointer-events: none; }
.preview-note { margin: 0; padding: .5rem .65rem; border-radius: .4rem; background: var(--cream); }
button:disabled { opacity: .65; cursor: wait; }
.status { padding: .75rem; border-radius: .45rem; }
.error { background: #fff0ed; color: #8c2525; }
.success { background: #e9f8ed; color: #18472d; }
.success h3 { color: inherit; }
.footer { padding-block: 1.5rem; background: var(--paper); }
.footer-inner { display: flex; gap: .7rem 2rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .875rem; }
#expo-note { flex-basis: 100%; font-size: .875rem; color: var(--muted); }

@media (max-width: 35.99rem) {
  .service-title { flex-direction: column; align-items: center; gap: .22em; }
  .service-diagram h3 { font-size: clamp(1.28rem, 1.05rem + 1.2vw, 1.65rem); }
  .service-card { grid-template-columns: clamp(4rem, 20vw, 7rem) minmax(0, 1fr); }
  .railway-caption { column-gap: .5rem; }
  .railway-caption span { flex-basis: 100%; }
}
@media (min-width: 36rem) {
  .revolution-intro, .development-intro { text-align: center; }
  .services-intro { text-align: center; }
  .module-grid { width: min(100%, 44rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid .service-card { grid-template-columns: minmax(0, 1fr); }
  .module-grid .service-card img { width: min(100%, 11rem); margin-inline: auto; }
  .nav-case { display: inline; }
  .header-cta { padding-inline: 1.1rem; font-size: .875rem; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    justify-items: center;
    align-items: start;
    text-align: center;
  }
  .process-heading { justify-content: center; }
  .process-copy { display: flex; flex-direction: column; height: 100%; align-items: center; }
  .process-copy .process-team { margin-top: auto; padding-top: .65rem; }
}
@media (min-width: 48rem) {
  .development-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .development-result { grid-template-columns: auto minmax(0, 1fr); }
}
@media (min-width: 54rem) {
  .hero { padding-top: clamp(2.25rem, 4vw, 3.65rem); }
  .hero h1 { font-size: clamp(3.2rem, 5.25vw, 5.2rem); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .process li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 5.5rem;
    left: calc(100% + .2rem);
    width: 1.35rem;
    height: .55rem;
    background: #a87524;
    clip-path: polygon(0 42%, 76% 42%, 63% 0, 73% 0, 100% 50%, 73% 100%, 63% 100%, 76% 58%, 0 58%);
  }
  .contact-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
}
@media (min-width: 60rem) {
  .service-grid { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-card,
  .module-grid .service-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: .5rem;
    padding: 1rem;
  }
  .service-card img {
    aspect-ratio: 3 / 2;
    object-fit: contain;
  }
  .module-grid .service-card img { width: 100%; }
  .hr-flow .service-card:not(:last-child)::after {
    top: 50%;
    left: calc(100% + .375rem);
    transform: translateY(-50%);
  }
}
/* Keep scroll positions steady while offscreen sections wait to be laid out. */
body:not(.history-page) main > section {
  content-visibility: auto;
  contain-intrinsic-block-size: auto var(--section-height, 22rem);
}
.story-region { --section-height: 106rem; }
.revolution-story { --section-height: 37rem; }
.development-shift { --section-height: 72rem; }
.price-story { --section-height: 117rem; }
.case-section { --section-height: 48rem; }
.process-section { --section-height: 43rem; }
.contact-section { --section-height: 58rem; }
@media (min-width: 54rem) {
  .story-region { --section-height: 87rem; }
  .revolution-story { --section-height: 49rem; }
  .development-shift { --section-height: 56rem; }
  .price-story { --section-height: 84rem; }
  .case-section { --section-height: 48rem; }
  .process-section { --section-height: 35rem; }
  .contact-section { --section-height: 55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-scroll-scenes .scroll-canvas { display: none; }
  .has-scroll-scenes .scene { background: var(--scene-color); }
  .opening-story::before, .hero-wordmark { transform: none; }
  .hero-art img { transform: none; }
  .opening-stroke { transform: rotate(-14deg); }
  .has-scroll-scenes .service-title { transform: none; opacity: 1; }
}
