
/* TOP layout and brand graphics. Common navigation and controls live in site.css. */
.top-page {
  --top-lime-pale: color-mix(in srgb, var(--color-accent) 23%, white);
  --top-leaf-pale: color-mix(in srgb, var(--color-secondary) 15%, white);
}

.top-page .nav-contact { background: var(--top-lime-pale); }
.top-page .nav-contact:hover { background: var(--color-hover); }

.message-flow {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 25% 24%, color-mix(in srgb, var(--color-accent) 11%, transparent), transparent 45%),
    radial-gradient(ellipse at 69% 33%, color-mix(in srgb, var(--color-accent) 21%, transparent), transparent 52%),
    radial-gradient(ellipse at 59% 62%, var(--color-surface), transparent 49%);
}

.message-trail {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.message-trail path { vector-effect: non-scaling-stroke; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 92%, transparent);
}

.n-art {
  position: absolute;
  width: clamp(720px, 74vw, 1040px);
  height: auto;
  right: max(-82px, calc((100% - 1240px) / 2));
  top: 50%;
  translate: 0 -48%;
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(540px, 46vw, 755px);
  padding-block: var(--space-64);
}

.hero-copy { max-width: max-content; }
.hero .eyebrow { margin-block-end: var(--space-24); }
.hero h1 {
  font-size: clamp(2.2rem, 6.1vw, 5.5rem);
  line-height: 1.23;
  letter-spacing: .028em;
}

.message-accent { color: var(--color-primary); }

.hero-lead {
  margin-block-start: var(--space-24);
  color: var(--color-heading);
  font-weight: 500;
  letter-spacing: .035em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  margin-block-start: var(--space-32);
}

.hero-actions .button { gap: 10px; }
.hero-primary { background: var(--color-primary); color: white; }
.hero-primary:hover { background: var(--color-hover); }
.hero-secondary {
  background: rgb(255 255 255 / .8);
  border-color: var(--color-border);
}
.hero-secondary:hover { border-color: var(--color-primary); }

.link-arrow {
  display: inline-block;
  flex: none;
  position: relative;
  width: 19px;
  height: 12px;
}

.link-arrow::before, .link-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
}
.link-arrow::before { width: 15px; border-top: 1px solid; }
.link-arrow::after {
  width: 7px;
  height: 7px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: translateY(-45%) rotate(45deg);
}

.hero-motion-toggle {
  position: absolute;
  right: 0;
  bottom: var(--space-24);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--font-caption);
  font-weight: 700;
}

.hero-motion-toggle:hover { border-color: var(--color-primary); }
.hero-motion-icon { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.hero.is-paused .hero-motion-icon {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.section-heading h2 { letter-spacing: .025em; }
.split > p { max-width: var(--line-width); }

.section-about { padding-block: clamp(64px, 7.5vw, 110px) clamp(64px, 8vw, 116px); }
.about-layout { text-align: center; }

.about-layout h2 {
  font-size: clamp(1.95rem, 4vw, 3.75rem);
  line-height: 1.34;
  letter-spacing: .045em;
}

.about-lead {
  max-width: 29em;
  margin: clamp(22px, 3.5vw, 46px) auto 0;
  color: var(--color-heading);
  font-size: clamp(1.22rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.7;
  line-break: strict;
  text-wrap: balance;
}

.about-lead span { display: inline-block; max-inline-size: 100%; }

.about-copy {
  max-width: 38rem;
  margin: clamp(22px, 3vw, 40px) auto 0;
  text-align: start;
  line-height: 1.95;
  line-break: strict;
}

.about-copy p + p { margin-block-start: var(--space-16); }

.direction-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.direction-link:hover { color: var(--color-hover); text-decoration: underline; text-underline-offset: .3em; }

.direction-link .link-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--top-lime-pale);
}
.direction-link .link-arrow::before, .direction-link .link-arrow::after { right: 7px; }
.direction-link:hover .link-arrow { background: var(--color-accent); }
.about-layout > .direction-link { margin-block-start: var(--space-24); }
.company-inner .direction-link { margin-block-start: var(--space-16); }

.section-business {
  background: linear-gradient(to bottom, transparent, var(--color-surface) 18% 77%, transparent);
}
.business-intro, .values-intro { align-items: end; }

.business-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-block-start: var(--space-32);
}

.video-feature {
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: white;
}

.video-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface);
}
.video-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.top-image-note { padding-block-end: var(--space-24); color: var(--color-text); font-size: .8rem; }

@media (max-width: 767px) {
  .video-media { aspect-ratio: 4 / 3; }
}

.video-feature-copy { padding: clamp(20px, 3.5vw, 36px); }
.video-feature h3 { font-size: var(--font-h2); }

.service-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-block-end: var(--space-8);
  color: var(--color-primary);
  font: 700 var(--font-caption)/1.45 var(--font-en);
  letter-spacing: .11em;
}

.service-label > :first-child {
  align-self: start;
  flex: none;
  padding: 2px 7px;
  background: var(--top-lime-pale);
  border-radius: 3px;
}

.feature-tagline {
  margin-block: var(--space-8) var(--space-16);
  color: var(--color-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
}

.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-block-start: var(--space-16);
}

.business-list { display: grid; border-top: 1px solid var(--color-border); }
.service {
  min-width: 0;
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.service h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  color: var(--color-heading);
  text-decoration: none;
}

.service h3 a:hover { color: var(--color-primary); }
.service-name-part { display: inline-block; max-inline-size: 100%; }
.service h3 a .link-arrow {
  width: 35px;
  height: 35px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: white;
}

.service h3 a:hover .link-arrow { background: var(--color-accent); border-color: var(--color-accent); }
.service h3 a .link-arrow::before, .service h3 a .link-arrow::after { right: 9px; }
.service-tagline { color: var(--color-heading); font-weight: 700; margin-block: 4px; }

.section-values {
  background:
    radial-gradient(ellipse at 83% 70%, color-mix(in srgb, var(--color-accent) 15%, transparent), transparent 58%),
    radial-gradient(ellipse at 13% 36%, var(--color-surface), transparent 58%);
}

.growth {
  position: relative;
  isolation: isolate;
  margin-block-start: var(--space-32);
  overflow: clip;
}

.growth-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.growth-step {
  --stage-color: var(--color-primary);
  --stage-bg: var(--color-surface);
  --stage-edge: var(--color-border);
  position: relative;
  min-width: 0;
  min-height: 340px;
  margin-block-start: clamp(74px, 8vw, 112px);
}

.growth-step:nth-child(2) {
  --stage-color: var(--color-secondary);
  --stage-bg: var(--top-leaf-pale);
  --stage-edge: color-mix(in srgb, var(--color-secondary) 48%, white);
  margin-block-start: clamp(37px, 4vw, 56px);
}

.growth-step:nth-child(3) {
  --stage-color: var(--color-primary);
  --stage-bg: var(--top-lime-pale);
  --stage-edge: var(--color-accent);
  margin-block-start: 0;
}

.step-ground, .step-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-start-start-radius: 16px;
}

.step-ground {
  z-index: -2;
  border-top: 2px solid var(--stage-edge);
  border-left: 1px solid var(--stage-edge);
  background:
    radial-gradient(ellipse at 89% 35%, color-mix(in srgb, var(--color-accent) 38%, transparent), transparent 62%),
    var(--stage-bg);
}

.step-ground::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--step-light, .23);
  background: linear-gradient(142deg, transparent 15%, var(--color-accent) 145%);
}

.growth-step:first-child :is(.step-ground, .step-art) { border-end-start-radius: var(--radius-lg); }
.growth-step:last-child :is(.step-ground, .step-art) {
  border-start-end-radius: var(--radius-lg);
  border-end-end-radius: var(--radius-lg);
}

.step-art {
  z-index: -1;
  opacity: .17;
  color: var(--stage-color);
}

.step-art svg { display: block; width: 100%; height: 100%; }
.plant-tendril, .plant-detail { stroke: currentColor; stroke-linecap: round; }
.plant-tendril { stroke-width: 3; }
.plant-detail { stroke-width: 1; }
.plant-leaf { fill: currentColor; }
.plant-leaf-later { fill: var(--color-secondary); }
.growth-step:first-child .plant-detail { stroke: white; stroke-width: 2; }

.step-copy {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  padding: clamp(22px, 3.1vw, 46px);
}
.step-copy h3 { margin-block-end: var(--space-16); }
.step-en {
  display: block;
  color: var(--color-heading);
  font: 700 clamp(2rem, 3.55vw, 3.6rem)/1 var(--font-en);
  letter-spacing: -.045em;
}

.step-ja {
  display: block;
  margin-block-start: var(--space-8);
  font-size: clamp(1.125rem, 1.6vw, 1.45rem);
}

.growth-thread { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.growth-thread path { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.thread-line { stroke: var(--color-primary); stroke-width: 1.5; opacity: .28; }
.thread-echo { opacity: .16; stroke-width: 1; }
.thread-light { stroke: var(--color-accent); stroke-width: 10; opacity: .24; }
.thread-narrow { display: none; }
.values-link { margin-block-start: var(--space-16); }

.section-company {
  background: radial-gradient(ellipse at 83% 60%, var(--color-surface), transparent 65%);
}
.company-inner { align-items: center; }

.top-page .contact {
  background:
    radial-gradient(ellipse at right top, rgb(181 223 121 / .2), transparent 58%),
    var(--color-hover);
  border-top: 3px solid var(--color-accent);
}

.top-page .contact .button-light { background: var(--top-lime-pale); }
.top-page .contact .button-light:hover { background: white; }

@media (max-width: 1023px) {
  .n-art { right: -62px; }
  .growth-step { min-height: 295px; }
  .step-copy { padding-inline: clamp(15px, 2.3vw, 32px); }
}

@media (max-width: 767px) {
  .hero-inner {
    display: block;
    min-height: clamp(510px, 81vw, 580px);
    padding-block: clamp(44px, 10vw, 78px) 99px;
  }

  .message-flow {
    background:
      radial-gradient(ellipse at 19% 15%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 40%),
      radial-gradient(ellipse at 63% 32%, color-mix(in srgb, var(--color-accent) 21%, transparent), transparent 52%),
      radial-gradient(ellipse at 29% 64%, var(--color-surface), transparent 59%);
  }

  /* Keep both upright folds in view and let the upper fold sit behind the copy. */
  .n-art {
    width: clamp(328px, 115vw, 600px);
    top: clamp(130px, 39vw, 171px);
    right: auto;
    left: 50%;
    translate: -50% 0;
  }

  .n-guide { opacity: .78; }

  .hero .eyebrow { margin-block-end: var(--space-16); }
  .hero h1 { font-size: clamp(2.2rem, 7.8vw, 3.4rem); }
  .hero-lead { margin-block-start: var(--space-16); }
  .hero-actions { margin-block-start: var(--space-24); }
  .hero-actions .button { padding-inline: 12px; gap: 6px; }
  .hero-motion-toggle { bottom: var(--space-16); }
  .section-about { padding-block-start: 54px; }

  .split, .business-layout { grid-template-columns: minmax(0, 1fr); }
  .split, .business-layout { gap: var(--space-24); }
  .business-layout { margin-block-start: var(--space-24); }
  .service-title-long { font-size: 1.125rem; }

  .growth { margin-block-start: var(--space-24); }
  .growth-values { grid-template-columns: minmax(0, 1fr); }
  .growth-values .growth-step { min-height: 218px; margin-block: 0; }
  .growth-step:nth-child(2) { margin-inline-start: 10px; }
  .growth-step:nth-child(3) { margin-inline-start: 20px; }
  .growth-step:first-child :is(.step-ground, .step-art) { border-end-start-radius: 0; }
  .growth-step:last-child :is(.step-ground, .step-art) {
    border-start-end-radius: 0;
    border-end-start-radius: var(--radius-lg);
  }

  .step-copy { padding: 22px 18px 29px; }
  .step-en { font-size: clamp(2.15rem, 7vw, 3.25rem); }
  .step-copy h3 { margin-block-end: 11px; }
  .thread-wide { display: none; }
  .thread-narrow { display: block; }
  .thread-narrow .thread-line { opacity: .2; }
  .thread-narrow .thread-light { opacity: .19; }
}

@media (max-width: 359px) {
  .hero-actions .button { padding-inline: 10px; }
  .hero-actions .link-arrow { width: 15px; }
}
