/* GrowSpark, Inc. corporate site */

:root {
  --bg: #04050a;
  --bg-bar: rgba(6, 7, 13, 0.78);
  --text: #eef2f6;
  --muted: #9ba6b8;
  --line: rgba(238, 242, 246, 0.14);
  --line-strong: rgba(238, 242, 246, 0.32);
  --accent: #ff7a3d;
  --accent-hover: #ff9461;
  --accent-ink: #0b0c14;

  --paper: #eef1f7;
  --ink: #0d1020;
  --ink-muted: #4a5368;
  --ink-line: rgba(13, 16, 32, 0.14);

  --font: "Geist", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --fs-label: 0.6875rem;
  --fs-small: 0.8125rem;
  --fs-body: 0.9375rem;
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.3125rem);
  --fs-catch: clamp(1.25rem, 2.3vw, 2.125rem);
  --fs-title: clamp(1.5rem, 2.6vw, 2.25rem);
  --fs-headline: clamp(1.875rem, 3.8vw, 3.5rem);
  --fs-display: clamp(2.5rem, 4.8vw, 4.375rem);

  --header-h: 76px;
  --gutter: clamp(20px, 5.2vw, 76px);
  --section-y: clamp(112px, 15vh, 176px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-color: #2a3046 var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

/* Without WebGL the page keeps a still ground in the same colours. */
.no-webgl body {
  background:
    radial-gradient(58% 46% at 82% 22%, rgba(47, 90, 255, 0.22), transparent 70%),
    radial-gradient(40% 34% at 76% 30%, rgba(255, 122, 61, 0.1), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.no-webgl .field { display: none; }

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

h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
i { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.field {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}

main, .site-footer { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  border-radius: 999px;
}
.skip:focus { top: 14px; }

/* ---------- Motion: masked characters, rising blocks, typed line ---------- */

.ph { display: inline-block; white-space: nowrap; }

.ch {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block: 0.14em;
  margin-block: -0.14em;
}
.ch i { display: inline-block; }

.js [data-split] .ch i { transform: translateY(112%); }
.js [data-split].is-in .ch i {
  transform: none;
  transition: transform 1s var(--ease) calc(var(--d, 0ms) + var(--i) * 26ms);
}

.js .rise { opacity: 0; transform: translateY(20px); }
.js .rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease) calc(var(--d, 0ms) + 180ms), transform 1s var(--ease) calc(var(--d, 0ms) + 180ms);
}

.tc { position: relative; display: inline-block; }
.js .tc i { opacity: 0; }
.js .tc.on i { opacity: 1; }
.caret {
  position: absolute;
  right: -0.14em;
  top: 0.16em;
  bottom: 0.16em;
  width: 2px;
  background: var(--accent);
  animation: blink 0.9s steps(1) infinite;
}
.caret.is-done { animation: none; opacity: 0; transition: opacity 0.6s var(--ease); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Loading screen ---------- */

/* The field itself is the loading image: its particles draw in to the spark.
   This layer only adds the gauge around that point and the words. */
.is-loading { overflow: hidden; }
.site-nav,
.menu-button { transition: opacity 0.9s var(--ease); }
.hud-label,
.hud-scroll,
.hud-rail { transition: opacity 0.9s var(--ease); }
.is-loading .site-nav,
.is-loading .menu-button,
.is-loading .hud-label,
.is-loading .hud-scroll,
.is-loading .hud-rail { opacity: 0; }

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  --sx: 50vw;
  --sy: 50vh;
  --p: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.js .loader.is-set { opacity: 1; }

.loader-gauge {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: clamp(148px, 15vw, 212px);
  aspect-ratio: 1;
  margin: 0;
  transform: translate(-50%, -50%);
}
.loader-gauge svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  transition: transform 0.64s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.2s var(--ease) 0.5s;
}
.gauge-track,
.gauge-ticks { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gauge-fill {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p) * 100);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.loader-count {
  position: absolute;
  left: 50%;
  top: calc(100% + 20px);
  transform: translateX(-50%);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  transition: opacity 0.3s var(--ease);
}

.loader-foot {
  position: absolute;
  inset: auto 0 34px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.3s var(--ease);
}
.loader-steps { display: flex; gap: clamp(18px, 3vw, 36px); }
.loader-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.76;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.loader-steps li::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.loader-steps li.is-on { opacity: 1; color: var(--text); }
.loader-steps li.is-done { opacity: 1; }
.loader-steps li.is-done::before { background: var(--accent); border-color: var(--accent); }

/* Leaving: the words fade, the gauge closes on the gathered particles,
   and the field ignites from that point. */
.loader.is-out { pointer-events: none; }
.loader.is-out .loader-count,
.loader.is-out .loader-foot { opacity: 0; }
.loader.is-out .loader-gauge svg { transform: scale(0.03); opacity: 0; }
/* ---------- Fixed frame ---------- */

.hud {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.6s var(--ease);
}
.hud.is-end { opacity: 0; }

.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--line-strong);
}
.hud-tl { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.hud-tr { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; }
.hud-bl { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-br { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }

/* Both labels run up the side margins, clear of the text column. */
.hud-label,
.hud-scroll {
  position: absolute;
  bottom: 52px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.hud-label { left: 19px; }
.hud-scroll {
  right: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hud-scroll { transition: opacity 0.5s var(--ease); }
.hud.is-last .hud-scroll { opacity: 0; }
.hud-scroll i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(transparent, var(--text));
}

.hud-rail {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 1px;
  height: 168px;
  margin-top: -84px;
  background: var(--line);
}
.hud-rail i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top center;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.site-header.is-solid {
  background: var(--bg-bar);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  padding-block: 12px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 44px);
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--text);
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.site-nav a:not(.nav-contact):hover::after,
.site-nav a:not(.nav-contact).is-current::after { transform: scaleX(1); }

.site-nav .nav-contact {
  padding: 12px 26px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 999px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-nav .nav-contact:hover { background: var(--accent-hover); }
/* Over the first screen the hero's own action leads, so this one stays an outline. */
.site-header:not(.is-solid):not(.is-menu-open) .nav-contact {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.site-header:not(.is-solid):not(.is-menu-open) .nav-contact:hover { box-shadow: inset 0 0 0 1px var(--text); }
.site-nav .nav-contact.is-current { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }

.current-section { display: none; }

.menu-button {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 84px;
}

.hero-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px;
}

/* The first screen says one thing: the sentence the company is named after.
   It breaks after the ninth character; narrower screens break between phrases. */
.hero-title {
  max-width: 9.8em;
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.04em;
}

.hero-sub {
  margin-top: clamp(22px, 3.4vh, 36px);
  max-width: 29em;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.95;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4.4vh, 44px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 12px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn .arrow {
  width: 20px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.5s var(--ease);
}
.btn:hover .arrow { transform: translateX(6px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(4, 5, 10, 0.35); }
.btn-ghost:hover { border-color: var(--text); }

/* What is coming, as two doors at the foot of the first screen. */
.now {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  border-top: 1px solid var(--line-strong);
}
.now li + li { border-left: 1px solid var(--line); }
.now a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 20px;
  padding: 18px 24px 0 0;
}
.now li + li a { padding-left: 24px; }
.now-name {
  grid-column: 1;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--muted);
}
.now-state {
  grid-column: 1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.3s var(--ease);
}
.now .arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 20px;
  height: 12px;
  margin-bottom: 7px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  transition: transform 0.5s var(--ease), stroke 0.3s var(--ease);
}
.now a:hover .now-state { color: var(--accent); }
.now a:hover .arrow { transform: translateX(6px); stroke: var(--accent); }

/* ---------- Sections ---------- */

.section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--section-y);
}

.headline {
  font-size: var(--fs-headline);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
/* Large Japanese settings close the half-width gaps that punctuation leaves. */
.headline,
.hero-title,
.product-title,
.panel-title,
.when { font-feature-settings: "palt"; }
.lead {
  max-width: 31em;
  margin-top: clamp(22px, 3.4vh, 36px);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.95;
  text-wrap: balance;
}
/* A lead of two sentences breaks between them, not inside the first. */
.lead-sentences { max-width: 34em; text-wrap: pretty; }
.lead-sentences .sentence { display: inline-block; }
.origin-text .sentence,
.origin-alt-text .sentence { display: inline-block; }

/* ---------- Philosophy ---------- */

.section-philosophy { display: block; padding-block: 0 clamp(24px, 4vh, 48px); }
/* The belief holds a screen of its own beside the spark before the detail begins. */
.creed-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--section-y);
}

.creed-label {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.origin-rows {
  margin-top: 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
/* The name and what it means: the pair on the left, the reason in a plain sentence on the right. */
.origin-row,
.origin-alt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  align-items: baseline;
}
.origin-row { padding: 44px 0 40px; }
.origin-word {
  font-size: var(--fs-headline);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.origin-word i {
  margin-inline: 0.12em;
  color: var(--accent);
  font-weight: 400;
}
.origin-text {
  max-width: 30em;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.95;
  text-wrap: pretty;
}
/* The second reading sits small under the first: the same name with its S faded, so "park" shows. */
.origin-alt {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.origin-alt-word {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.origin-alt-word span { color: var(--muted); font-weight: 400; }
.origin-alt-text {
  max-width: 34em;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Business ---------- */

/* The opening statement holds a screen of its own before the detail begins. */
.section-business { display: block; padding-top: 0; }
.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--section-y);
}


.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-strong);
}
.product-title {
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.tag {
  padding: 5px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
}

.product-text {
  max-width: 40em;
  margin-top: 28px;
  text-wrap: pretty;
}

.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.points li { padding: 34px 28px 36px 0; }
.points li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.points .icon {
  display: block;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.points p {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.85;
  text-wrap: pretty;
}

/* The one light surface: a rounded panel for the private room. */
.panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(64px, 10vh, 112px);
  padding: clamp(28px, 4.6vw, 64px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
}
.panel ::selection { background: var(--ink); color: var(--paper); }
.panel :focus-visible { outline-color: var(--ink); }
.panel-title {
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.panel-head p { margin-top: 16px; color: var(--ink-muted); text-wrap: pretty; }

.spec { border-top: 1px solid var(--ink); }
.spec > div {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr);
  gap: 6px 24px;
  padding-block: 17px;
  border-bottom: 1px solid var(--ink-line);
}
.spec dt { font-weight: 700; line-height: 1.8; }
.spec dd { line-height: 1.8; }

/* ---------- Status ---------- */

/* The headline breaks after the date, which keeps it clear of the two orbits. */
.section-status .headline { max-width: 16em; }

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-top: clamp(56px, 9vh, 96px);
  border-top: 1px solid var(--line-strong);
}
.timeline li { position: relative; padding: 36px 28px 0 0; }
.timeline li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.timeline li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.timeline li + li::before { left: 28px; }

.when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.what {
  margin-top: 12px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
}
.desc {
  margin-top: 10px;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Next product: what is known is written, the rest is covered ---------- */

.section-next .wrap { width: 100%; }
.file {
  max-width: 880px;
  margin-top: clamp(48px, 8vh, 88px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(4, 5, 10, 0.72);
}
.file-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
}
.file-no {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}
.tag-quiet { border-color: var(--line-strong); color: var(--muted); }
.file-name {
  margin-top: clamp(20px, 3.4vh, 34px);
  font-size: var(--fs-headline);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.cipher { display: inline-block; letter-spacing: 0.06em; }
.cipher i {
  display: inline-block;
  width: 0.86em;
  font-style: normal;
  text-align: center;
}
.file-spec {
  margin-top: clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--line-strong);
}
.file-spec > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  align-items: center;
  gap: 6px 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.file-spec dt { color: var(--muted); line-height: 1.8; }
.file-spec dd { font-size: 1rem; line-height: 1.8; }
/* A covered value. A slow light passes over it; the words stay covered. */
.redact {
  display: inline-block;
  width: var(--w, 7em);
  max-width: 100%;
  height: 0.95em;
  border-radius: 4px;
  vertical-align: -0.12em;
  background: rgba(238, 242, 246, 0.2) linear-gradient(100deg, rgba(238, 242, 246, 0) 42%, rgba(238, 242, 246, 0.26) 50%, rgba(238, 242, 246, 0) 58%) 120% 0 / 260% 100% no-repeat;
  animation: redact-pass 5.2s var(--ease) infinite;
}
.file-spec > div:nth-child(3) .redact { animation-delay: 0.5s; }
.file-spec > div:nth-child(4) .redact { animation-delay: 1s; }
@keyframes redact-pass {
  0%, 35% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
.file-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(24px, 4vh, 36px);
}
.file-foot p {
  flex: 1 1 22em;
  max-width: 30em;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Company ---------- */

.company-body {
  max-width: 640px;
  margin-top: clamp(40px, 6vh, 64px);
}
.profile { border-top: 1px solid var(--line-strong); }
.profile > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 6px 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.profile dt { color: var(--muted); line-height: 1.8; }
.profile dd { font-size: 1rem; line-height: 1.7; }

/* ---------- Contact ---------- */

.section-contact { text-align: center; }
.section-contact .headline { font-size: var(--fs-display); }
.section-contact .lead { margin-inline: auto; }
.contact-address {
  margin-top: clamp(32px, 5vh, 48px);
  font-size: var(--fs-catch);
  font-weight: 500;
  line-height: 1.5;
}
.mail {
  display: inline-block;
  padding: 0.5em 1.1em;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(4, 5, 10, 0.5);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.mail:hover { border-color: var(--accent); color: var(--accent); }
/* The sign between the two halves is drawn by the stylesheet, not written in the page. */
.mail-at::before { content: "\0040"; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vh, 88px) 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}
.footer-wordmark {
  font-size: clamp(2.25rem, 5.4vw, 4.375rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.footer-address { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); }
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 44px;
}
.footer-nav a {
  display: inline-block;
  padding-block: 7px;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: text-decoration-color 0.3s var(--ease);
}
.footer-nav a:hover { text-decoration-color: var(--accent); }
.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- Narrow desktop and tablet ---------- */

@media (max-width: 1080px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points li:nth-child(3) { padding-left: 0; border-left: 0; }
  .points li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hud { display: none; }
  .hero-inner { padding-bottom: 40px; }
}

/* ---------- Phone ---------- */

@media (max-width: 720px) {
  :root { --header-h: 64px; --section-y: 96px; }

  .js .menu-button { display: inline-block; flex: none; }
  .wordmark { font-size: 1rem; }
  .header-inner { gap: 10px; }

  .js .current-section {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    font-size: var(--fs-small);
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }
  .js .current-section.is-shown { opacity: 1; }
  .js .current-section::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 0.1em;
  }
  .js .is-menu-open .current-section { opacity: 0; }
  .menu-is-open { overflow: hidden; }

  .js .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    padding: 8px var(--gutter) 28px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { display: block; padding-block: 18px; font-size: 1rem; }
  .js .site-nav a:not(.nav-contact)::after { display: none; }
  .js .site-nav a.is-current { color: var(--accent); }
  .js .site-nav li:last-child { border-top: 0; padding-top: 12px; }
  .js .site-nav .nav-contact { text-align: center; padding: 15px 24px; color: var(--accent-ink); }
  .site-header.is-menu-open { background: var(--bg); border-bottom-color: var(--line); }

  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 12px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .hero-inner { padding-top: 48px; }

  /* Nine characters must fit on the first line of the narrowest phone. */
  .hero-title { font-size: min(var(--fs-display), 9.4vw); }
  .hero-copy { justify-content: flex-start; padding-block: 40px 32px; }
  .hero-inner { padding-bottom: 28px; }

  .actions .btn { flex: 1 1 100%; justify-content: space-between; }

  .now { grid-template-columns: minmax(0, 1fr); background: rgba(4, 5, 10, 0.55); }
  .now li + li { border-left: 0; border-top: 1px solid var(--line); }
  .now a,
  .now li + li a { padding: 12px 0; }
  .now li:last-child a { padding-bottom: 0; }

  .section { min-height: 0; }
  .section-status, .section-company, .section-contact { min-height: 100svh; }
  .creed-intro { min-height: 88svh; }
  .origin-row,
  .origin-alt { grid-template-columns: minmax(0, 1fr); }
  .origin-row { gap: 16px; padding: 28px 0 30px; }
  .origin-alt { gap: 6px; padding: 20px 0 24px; }
  .intro { min-height: 88svh; }

  .points { grid-template-columns: minmax(0, 1fr); }
  .points li,
  .points li + li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 20px;
    padding: 24px 0;
    border-left: 0;
  }
  .points li + li { border-top: 1px solid var(--line); }
  .points p { margin-top: 0; align-self: center; }

  .panel { border-radius: 16px; }
  .spec > div,
  .profile > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec dt, .profile dt { font-size: var(--fs-small); }

  .section-next { padding-block: var(--section-y); }
  .file { border-radius: 16px; }
  .file-spec > div { grid-template-columns: 6em minmax(0, 1fr); gap: 6px 16px; }
  .file-foot .btn { flex: 1 1 100%; justify-content: space-between; }

  /* The gap above the timeline is where the two orbits sit on a phone. */
  .timeline { grid-template-columns: minmax(0, 1fr); margin-top: 136px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .timeline li,
  .timeline li + li { padding: 0 0 36px 28px; border-left: 0; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before,
  .timeline li + li::before { top: 9px; left: -6px; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 36px; }
  .footer-nav ul { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .loader { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js [data-split] .ch i { transform: none; }
  .js .rise { opacity: 1; transform: none; }
  .js .tc i { opacity: 1; }
}
