/* The homepage only (pages/Home.jsx, / and /ja/). Page-owned, loaded through
   PageHead.stylesheets after the shared sheets. Every class is `home-*`.
   Sparse on purpose (owner, 2026-10-19: the first version was "ugly and
   cluttered"): lots of black, one accent. Black page, Darker Grotesque display and Nunito text, orange as the one
   accent, rank colours only on job cards. The primary button is the site's own
   (global.css .talent-hero-button--primary): orange with white bold text. The
   example email is LIGHT, because the real email is (user-api
   chat/emailRender.mjs) — it is the one light thing on the page. */

.home {
  --home-grey-225: rgb(225, 225, 225);
  --home-grey-200: rgb(200, 200, 200);
  --home-grey-150: rgb(150, 150, 150);
  --home-grey-120: rgb(120, 120, 120);
  --home-grey-70: rgb(70, 70, 70);
  --home-hairline: rgba(255, 255, 255, 0.08);
  --home-outline: rgba(255, 255, 255, 0.22);
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
  /* The rows lay out by the room the PAGE has, not the window: the rail
     takes 260px on desktop, so a 1024px window leaves a tablet's width. */
  container: home / inline-size;
  --ex: 0.94;
  box-sizing: border-box;
  color: var(--home-grey-225);
  font-family: 'Nunito', sans-serif;
  line-height: 1.5;
}
html[lang="ja"] .home {
  font-family: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home p { margin: 0; }

.home .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.home a { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--home-grey-70); }
.home a:hover { color: var(--brand); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- hero */
.home-hero-copy { container-type: inline-size; }
.home-hero {
  max-width: 72rem;
  margin: 0 auto;
  /* The whole hero fits the first screen on a desktop (owner, 2026-10-29). */
  padding: clamp(2.5rem, 9vh, 5rem) 0 clamp(3.5rem, 10vh, 6rem);
  display: grid;
  justify-items: center;
  text-align: center;
}
.home-hero-copy { width: 100%; max-width: 44rem; display: grid; justify-items: center; }
.home-hero .home-start { width: 100%; }
.home-start-fine { text-align: inherit; }
/* The orange label is the page header's section label (.section-toggle):
   Darker Grotesque, bold, caps, no tracking. */
.home-eyebrow {
  font-family: 'Darker Grotesque', sans-serif;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.9rem !important;
}
html[lang="ja"] .home-eyebrow { font-family: inherit; font-size: 0.85rem; }
.home-h1 {
  font-family: 'Darker Grotesque', sans-serif;
  /* Two lines at every width: "Get found." is ~4.01em wide, so the size is
     capped at 24% of the copy column (a container, below). Sentence case:
     all-caps read as too intense (owner, 2026-10-28). */
  font-size: min(5.25rem, 24cqi);
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 1.5rem;
}
html[lang="ja"] .home-h1 {
  font-family: inherit;
  font-size: 3.3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
.home-lead {
  font-size: 1.1rem;
  color: var(--home-grey-200);
  max-width: 30rem;
  margin-bottom: 2rem !important;
}
.home-proof {
  font-size: 0.92rem;
  color: var(--home-grey-150);
  margin: -0.75rem 0 1.5rem !important;
}
.home-proof::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #30a46c;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}
.home-alt { margin-top: 1.25rem !important; font-size: 0.92rem; color: var(--home-grey-150); }

/* ---------------------------------------------------------- email box */
/* Square, like every Ranked control and card (owner, 2026-10-29: rounded
   "doesn't feel Ranked"). Only the pictures of OTHER products — the email
   client, the AI assistant's chat — keep their rounded corners. */
.home-start { max-width: 22rem; display: grid; gap: 0.5rem; }
.home-start-input {
  width: 100%;
  /* White, like the site's own search box (owner, 2026-10-29: the dark grey
     field read as "kinda ugly"). */
  background: #fff;
  border: 0.0625rem solid #fff;
  border-radius: 0;
  outline: 0;
  color: #000;
  font: inherit;
  /* 16px: iPad Safari zooms in on a smaller field too. */
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
  padding: 0.65rem 0.9rem;
}
/* global.css greys every input:hover and turns a FILLED input orange (its
   filter-box style); this one stays a white field with black text. */
.home-start-input:hover,
.home-start-input:focus,
.home-start-input:not(:placeholder-shown) { background: #fff; color: #000; border-color: #fff; }
.home-start-input:focus { border-color: var(--brand-fill); box-shadow: 0 0 0 0.125rem var(--brand-fill); }
.home-start-input::placeholder { color: rgb(120, 120, 120); }
.home-start-button {
  width: 100%;
  border: 0.0625rem solid var(--brand-fill);
  border-radius: 0;
  background: var(--brand-fill);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
}
.home-start-button:hover { filter: brightness(1.1); }
.home-start-button:focus-visible { outline: 0.125rem solid var(--info-blue); outline-offset: 0.125rem; }
.home-start-button[disabled] { opacity: 0.6; cursor: progress; }
.home-start-status { font-size: 0.98rem; color: #fff; }
.home-start-status:empty { display: none; }
.home-start-status.is-error { color: #e5484d; }
.home-start-fine { font-size: 0.82rem; color: var(--home-grey-150); }
.home-start.is-sent .home-start-input,
.home-start.is-sent .home-start-button,
.home-start.is-sent .home-start-fine { display: none; }
.home-start.is-sent .home-start-status {
  border-left: 0.1875rem solid var(--brand-fill);
  padding: 0.6rem 0 0.6rem 0.9rem;
  font-size: 1.05rem;
}

/* -------------------------------------------------- the example email */
.home-demo { width: 100%; max-width: calc(30rem * var(--ex)); justify-self: end; }
.home-thread { display: grid; gap: calc(0.6 * var(--u)); }
.home-mail {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f1f1f;
  background: #fff;
  border-radius: calc(0.8 * var(--u));
  box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, 0.5);
  font-size: calc(0.86 * var(--u));
  overflow: hidden;
}
html[lang="ja"] .home-mail { font-family: "Hiragino Sans", "Yu Gothic", Meiryo, -apple-system, sans-serif; }
.home-mail-top {
  display: flex;
  align-items: center;
  gap: calc(0.55 * var(--u));
  padding: calc(0.85 * var(--u)) calc(1.1 * var(--u));
  border-bottom: calc(0.0625 * var(--u)) solid #ececf0;
  font-size: calc(0.98 * var(--u));
}
.home-mail-top img { border-radius: calc(0.25 * var(--u)); }
.home-mail-top b { font-weight: 600; color: #111; }
.home-mail-chip { font-size: calc(0.7 * var(--u)); color: #555; background: #ececf0; border-radius: calc(0.25 * var(--u)); padding: calc(0.05 * var(--u)) calc(0.4 * var(--u)); }
.home-mail-msg { padding: calc(0.9 * var(--u)) calc(1.1 * var(--u)); }
.home-mail-msg + .home-mail-msg { border-top: calc(0.0625 * var(--u)) solid #ececf0; }
.home-mail-sender { display: flex; align-items: center; gap: calc(0.6 * var(--u)); margin-bottom: calc(0.6 * var(--u)); }
.home-mail-sender > div { flex: 1 1 auto; min-width: 0; }
.home-mail-avatar {
  flex: 0 0 auto;
  width: calc(1.9 * var(--u));
  height: calc(1.9 * var(--u));
  border-radius: 50%;
  background: #e6e6ea;
  color: #333;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: calc(0.8 * var(--u));
}
img.home-mail-avatar { display: block; object-fit: cover; }
.home-mail-name { font-weight: 600; color: #111; }
.home-mail-meta { font-size: calc(0.74 * var(--u)); color: #777; }
.home-mail-text { margin-bottom: calc(0.55 * var(--u)) !important; line-height: 1.45; color: #333; }
.home-mail-card {
  display: flex;
  gap: calc(0.8 * var(--u));
  align-items: flex-start;
  border: calc(0.0625 * var(--u)) solid #e6e6ea;
  border-radius: calc(0.6 * var(--u));
  margin-top: calc(0.85 * var(--u));
  padding: calc(0.85 * var(--u)) calc(0.9 * var(--u));
}
.home-mail-logo {
  flex: 0 0 auto;
  width: calc(2.4 * var(--u));
  height: calc(2.4 * var(--u));
  border-radius: calc(0.4 * var(--u));
  display: grid;
  place-items: center;
}
/* The invented logo marks (pages/Home.jsx MARKS): the mark fills ~60% of its
   tile, like a real company icon. */
.home-mail-logo svg, .home-space-logo svg { width: 60%; height: 60%; }
.home-mail-card-body { flex: 1 1 auto; min-width: 0; }
.home-mail-card-title { font-size: calc(0.98 * var(--u)); font-weight: 600; color: #111; line-height: 1.25; }
.home-mail-card-company { font-size: calc(0.8 * var(--u)); color: #555; margin-bottom: calc(0.35 * var(--u)) !important; }
.home-mail-card-row { display: flex; align-items: center; gap: calc(0.4 * var(--u)); font-size: calc(0.78 * var(--u)); color: #444; line-height: 1.6; }
.home-mail-card-row svg { width: 13px; height: 13px; color: #777; flex: none; }
.home-mail-card-tags { display: flex; flex-wrap: wrap; gap: calc(0.35 * var(--u)); margin-top: calc(0.55 * var(--u)); }
.home-mail-card-tags span {
  font-size: calc(0.72 * var(--u));
  color: #333;
  background: #f1f1f4;
  border: calc(0.0625 * var(--u)) solid #e6e6ea;
  border-radius: calc(0.35 * var(--u));
  padding: calc(0.1 * var(--u)) calc(0.5 * var(--u));
}
.home-mail-card-go { color: #888; font-size: calc(1.3 * var(--u)); line-height: 1; }
.home-mail-more { margin-top: calc(0.55 * var(--u)) !important; font-size: calc(0.76 * var(--u)); color: #777; }

/* ------------------------------------------------------------ stories */
/* The two "Get found" halves: copy on the left, the illustration on the
   right, like the hero, each above a hairline. */
.home-story {
  max-width: 72rem;
  margin: 0 auto;
  border-top: 0.0625rem solid var(--home-hairline);
  padding: clamp(2.5rem, 4.5cqi, 3.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 5cqi, 4rem);
  align-items: center;
}
.home-story .home-lead { margin-bottom: 0 !important; }
/* The rows' own text unit: 1rem on a full-width page, down to 0.8rem as the
   page narrows, so the copy column keeps its line breaks instead of wrapping
   into a tall ribbon beside the picture. */
.home-story { --r: clamp(0.8rem, 100cqi / 70, 1rem); }
.home-story .home-h2--big { font-size: calc(2.9 * var(--r)); }
.home-story .home-lead { font-size: calc(1.2 * var(--r)); }
html[lang="ja"] .home-story .home-h2--big { font-size: calc(2 * var(--r)); }
.home-story .home-eyebrow { font-size: calc(1.1 * var(--r)); }
.home-story-fine { font-size: calc(0.92 * var(--r)) !important; }
/* Rows alternate sides; the profile row gets the wider picture column, it
   holds two cards. */
.home-story--flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.home-story--flip .home-story-copy { order: 2; }
.home-story--flip .home-ai { margin-left: 0; margin-right: auto; }
.home-story--grow { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
.home-story--grow.home-story--flip { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); }
.home-story-fine { margin-top: 1.25rem !important; font-size: 0.92rem; color: var(--home-grey-150); max-width: 30rem; }

/* email exchange → profile card */
/* THE PICTURES SCALE, THEY DO NOT REFLOW (owner, 2026-10-29: "shrink instead
   of breaking lines"). Every size inside an illustration is a multiple of
   --u, and --u is the picture's own width over the width it was drawn at, so
   a narrower column draws the same picture smaller instead of re-wrapping its
   text line by line. Capped at --ex (one factor for the boxes' widths AND
   the unit, so a smaller example is the same picture drawn smaller, text
   included — owner, 2026-10-29: 0.88 was a touch small, 1 too big). Floor 0.8rem, then it reflows; phones keep 1rem (their
   own sizes are in the ≤600px block). */
.home-demo, .home-grow-visual, .home-found-visual { container-type: inline-size; }
.home-demo > * { --u: clamp(0.7rem, 100cqi / 30, calc(1rem * var(--ex))); }
.home-found-visual > * { --u: clamp(0.7rem, 100cqi / 34, calc(1rem * var(--ex))); }
.home-grow-visual > * { --u: clamp(0.6rem, 100cqi / 44, calc(1rem * var(--ex))); }
.home-grow-visual {
  max-width: calc(44rem * var(--ex));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.5rem, 2%, 0.9rem);
  align-items: center;
}
.home-grow-arrow { color: var(--brand); font-size: calc(1.6 * var(--u)); font-weight: 700; }
.home-mail-text--last { margin-bottom: 0 !important; }

/* The profile example, drawn like the real one (global.css
   .talent-profile-card): black face, the brand-orange frame of a top-ranked
   card, an orange glow on the cover, the square initial, nothing rounded. */
.home-pc {
  background: #000;
  border: calc(0.125 * var(--u)) solid var(--brand-fill);
  font-size: calc(0.86 * var(--u));
  overflow: hidden;
}
.home-pc-cover {
  position: relative;
  height: calc(3.6 * var(--u));
  background:
    radial-gradient(ellipse at left top, rgba(255, 128, 0, 0.85) 0%, rgba(255, 128, 0, 0) 62%),
    radial-gradient(ellipse at right top, rgb(10, 10, 10) 0%, #000 47%, rgb(10, 10, 10) 100%);
  border-bottom: calc(0.0625 * var(--u)) solid rgba(255, 128, 0, 0.35);
}
/* Faint, top-right, like the real cover's "Updated" line. */
.home-pc-private {
  position: absolute;
  top: calc(0.45 * var(--u));
  right: calc(0.7 * var(--u));
  font-size: calc(0.68 * var(--u));
  color: rgba(255, 255, 255, 0.6);
}
.home-pc-body { padding: 0 calc(1.1 * var(--u)) calc(1.1 * var(--u)); }
.home-pc-avatar {
  flex: 0 0 auto;
  width: calc(2.6 * var(--u));
  height: calc(2.6 * var(--u));
  background: var(--brand-fill);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 700;
  font-size: calc(1.5 * var(--u));
  line-height: 1;
}
.home-pc .home-pc-avatar {
  width: calc(4 * var(--u));
  height: calc(4 * var(--u));
  font-size: calc(2.3 * var(--u));
  margin-top: calc(-2.1 * var(--u));
  border: calc(0.2 * var(--u)) solid #000;
  box-sizing: content-box;
  position: relative; /* over the cover, which is positioned too */
}
.home-pc-name {
  margin-top: calc(0.6 * var(--u)) !important;
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 700;
  font-size: calc(1.6 * var(--u));
  line-height: 1;
  color: #fff;
}
.home-pc-role { color: var(--home-grey-200); font-size: calc(0.86 * var(--u)); margin-top: calc(0.3 * var(--u)) !important; }
.home-pc-place { display: flex; align-items: center; gap: calc(0.3 * var(--u)); color: var(--home-grey-150); font-size: calc(0.8 * var(--u)); margin-top: calc(0.15 * var(--u)) !important; }
.home-pc-place svg { width: calc(0.75 * var(--u)); height: calc(0.75 * var(--u)); flex: none; }
.home-pc-skills { display: flex; flex-wrap: wrap; gap: calc(0.35 * var(--u)); margin-top: calc(0.75 * var(--u)); }
.home-pc-skills span { border: calc(0.0625 * var(--u)) solid rgba(255, 255, 255, 0.35); color: #fff; padding: calc(0.15 * var(--u)) calc(0.55 * var(--u)); font-size: calc(0.8 * var(--u)); }
/* The real page's section heading: small, orange, caps. */
.home-pc-heading {
  margin: calc(1 * var(--u)) 0 calc(0.5 * var(--u)) !important;
  padding-top: calc(0.85 * var(--u));
  border-top: calc(0.0625 * var(--u)) solid rgba(255, 255, 255, 0.1);
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 700;
  font-size: calc(0.95 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  color: var(--brand);
}
html[lang="ja"] .home-pc-heading { font-family: inherit; font-size: calc(0.78 * var(--u)); }
.home-pc-rows { margin: 0; display: grid; gap: calc(0.4 * var(--u)); }
.home-pc-rows > div { display: grid; grid-template-columns: calc(5.2 * var(--u)) minmax(0, 1fr); gap: calc(0.5 * var(--u)); }
.home-pc-rows dt { color: var(--home-grey-150); }
.home-pc-rows dd { margin: 0; color: #fff; }

/* the AI-assistant chat: neutral, no third-party look */
.home-ai {
  background: #151419;
  border: calc(0.0625 * var(--u)) solid rgba(255, 255, 255, 0.1);
  border-radius: calc(0.8 * var(--u));
  padding: calc(1.1 * var(--u)) calc(1.2 * var(--u)) calc(1.3 * var(--u));
  font-size: calc(0.9 * var(--u));
  max-width: calc(34 * var(--u));
  margin-left: auto;
}
.home-ai-head { display: flex; align-items: center; gap: calc(0.5 * var(--u)); color: var(--home-grey-150); font-size: calc(0.8 * var(--u)); margin-bottom: calc(1 * var(--u)) !important; }
.home-ai-dot { width: calc(0.55 * var(--u)); height: calc(0.55 * var(--u)); border-radius: 50%; background: var(--home-grey-150); }
.home-ai-q {
  margin-left: auto !important;
  max-width: 85%;
  width: fit-content;
  background: #2a2830;
  color: #fff;
  border-radius: calc(1 * var(--u)) calc(1 * var(--u)) calc(0.25 * var(--u)) calc(1 * var(--u));
  padding: calc(0.65 * var(--u)) calc(0.9 * var(--u));
  margin-bottom: calc(1 * var(--u)) !important;
}
.home-ai-a > p { color: var(--home-grey-225); margin-bottom: calc(0.7 * var(--u)) !important; }
.home-ai-profile { display: flex; gap: calc(0.75 * var(--u)); align-items: flex-start; margin-top: calc(0.2 * var(--u)); }
.home-ai-profile .home-pc-avatar { width: calc(2.3 * var(--u)); height: calc(2.3 * var(--u)); font-size: calc(1.35 * var(--u)); }
.home-ai-name { display: flex; align-items: center; gap: calc(0.35 * var(--u)); color: var(--brand); font-weight: 700; }
.home-ai-name svg { width: 0.9em; height: 0.9em; flex: none; }
.home-ai-role, .home-ai-tags { font-size: 0.85em; }
.home-ai-role { color: rgb(170, 170, 170); }
.home-ai-tags { color: var(--home-grey-120); }

.home-h2 {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin: 0 0 0.5rem;
}
html[lang="ja"] .home-h2 { font-family: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.home-h2--big { font-size: clamp(2.3rem, 4.2cqi, 2.9rem); line-height: 0.95; margin-bottom: 1rem; }
html[lang="ja"] .home-h2--big { font-size: 2rem; line-height: 1.3; }

/* --------------------------------------------------------------- closing */
.home-closing {
  max-width: 72rem;
  margin: 0 auto;
  border-top: 0.0625rem solid var(--home-hairline);
  padding: clamp(2.5rem, 4.5cqi, 3.5rem) 0 0;
  display: grid;
  justify-items: center;
  text-align: center;
}
.home-closing .home-lead { margin-bottom: 1.75rem !important; }
.home-closing .home-start { width: 100%; }

/* ----------------------------------------------------------------- steps */
/* The three rows read as numbered STEPS at every width (owner, 2026-10-29:
   "divided more clearly … maybe steps", first on phones, then desktop too):
   a grey hairline across the top of each (orange read as "a bit too much"),
   and the step number in a square orange box — square like every Ranked
   control — before its label. */
.home { counter-reset: home-step; }
.home-story { counter-increment: home-step; border-top: 0.0625rem solid rgba(255, 255, 255, 0.14); }
.home-story .home-eyebrow { display: flex; align-items: center; gap: 0.6rem; }
.home-story .home-eyebrow::before {
  content: counter(home-step);
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--brand-fill);
  color: #fff;
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.home-closing { border-top-color: rgba(255, 255, 255, 0.14); }

/* ---------------------------------------------------------------- narrow */
/* Narrower pages keep the desktop's shape as long as there is room for it
   (owner, 2026-10-29: "keep that vibe on tablets and phones, not cramped"):
   every row stays side by side down to a tablet's width and SHRINKS as the
   page narrows (its text by --r, its picture by --u) rather than re-wrapping;
   below that every row is ONE centred column, its picture as wide as its text,
   never pinned to the left with empty space beside it. */
@container home (max-width: 42rem) {
  .home-story,
  .home-story--flip,
  .home-story--grow,
  .home-story--grow.home-story--flip { grid-template-columns: minmax(0, 1fr); max-width: 36rem; }
  .home-story--grow { max-width: 44rem; }
  .home-story { --r: 1rem; }
  .home-story--flip .home-story-copy { order: 0; }
  .home-demo, .home-ai { justify-self: stretch; max-width: none; margin-left: 0; }
}
@container home (max-width: 40rem) {
  /* Stacked: each card is drawn at its own width (~28rem), not the pair's. */
  .home-grow-visual > * { --u: clamp(0.8rem, 100cqi / 28, 1rem); }
  .home-grow-visual { grid-template-columns: minmax(0, 1fr); }
  .home-grow-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
}
@media (max-width: 75rem) {
  .home-hero { padding: clamp(2.5rem, 8vh, 4rem) 0 clamp(3.5rem, 9vh, 5rem); }
  html[lang="ja"] .home-h1 { font-size: 2.6rem; }
}
@media (max-width: 48rem) {
  /* A real gutter on phones, ~26px, so nothing runs to the glass. */
  .home { padding: 0 2rem 2rem; }
  /* More air above and below the pitch, so it stands on its own before
     step 1 (owner, 2026-10-29). */
  .home-hero { padding: clamp(4rem, 14vh, 7.5rem) 0 10rem; }
  .home-closing { padding-top: 3rem; }
  /* Tighter rows: less air between and inside them. */
  .home-story { padding: 3rem 0; gap: 1.75rem; }
}
/* Phones. global.css shrinks the root font with the viewport below 600px
   (~9px on a 390px phone) — right for the job grid, far too small for a
   pitch, so this page holds the root at 14px. The input is 16px or iOS
   zooms the page when it is tapped. */
@media (max-width: 600px) {
  /* Phones reflow, never scale — at 90%, so the pictures read as examples
     beside the copy rather than filling the screen. */
  .home-demo > *, .home-grow-visual > *, .home-found-visual > * { --u: 0.9rem; }
  /* 13px, not global.css's tiny phone root nor the desktop's 16px — the
     owner found 14px with bigger illustration text "cramped" (2026-10-29),
     so everything is a step smaller and the pictures use their own sizes. */
  html.home-page { font-size: 13px; }
  .home-start-input { font-size: 16px; }
}

@media (max-width: 36rem) {
  /* The hero on a phone (owner, 2026-10-29: first "too big", cut to ~75%,
     then "a bit bigger" — this is about 85% of the original). */
  .home-h1 { font-size: min(5.6rem, 16cqi); }
  html[lang="ja"] .home-h1 { font-size: 2.2rem; }
  .home-lead { font-size: 1.1rem; }
  .home-hero .home-lead { font-size: 0.97rem; margin-bottom: 1.6rem !important; }
  /* No line of the hero is wider than its email box (owner, 2026-10-29). */
  .home-hero .home-lead, .home-hero .home-proof, .home-hero .home-start-fine { max-width: 82%; }
  .home-hero .home-start .home-start-fine { max-width: none; }
  .home-hero .home-proof { font-size: 0.8rem; margin: -0.55rem 0 1.4rem !important; }
  /* Both email boxes: ~75% of the column wide and a step lower. The
     input's TEXT stays 16px — any smaller and iOS zooms in on tap — so the
     box shrinks around it instead. */
  .home-hero .home-start, .home-closing .home-start { width: 82%; gap: 0.5rem; }
  /* The field is laid out at 16px text (iOS zooms in on tap below that)
     and DRAWN at 80%: 125% wide and 44px tall, scaled from its top-left
     corner, with the height it no longer fills taken back below. It reads as
     ~13px text in a 35px-high box. */
  .home-start-input {
    box-sizing: border-box;
    width: 125%;
    height: 44px;
    padding: 0 0.95rem;
    transform: scale(0.8);
    transform-origin: 0 0;
    margin-bottom: -8.8px;
  }
  .home-start-button { font-size: 0.88rem; padding: 0.7rem 1rem; }
  .home-start-fine, .home-hero .home-alt { font-size: 0.8rem; }
  /* The closing box mirrors the hero, size for size (owner, 2026-10-29): the
     headline face and size, the same sentence, the same 82% column for text
     and form, the same air above it. */
  .home-closing { padding: clamp(4rem, 14vh, 7.5rem) 0 1rem; }
  .home-closing .home-h2 { font-size: min(5.6rem, 16cqi); line-height: 0.9; margin-bottom: 1.5rem; text-wrap: balance; }
  html[lang="ja"] .home-closing .home-h2 { font-size: 2.2rem; line-height: 1.3; }
  .home-closing .home-lead { font-size: 0.97rem; max-width: 82%; margin-bottom: 1.6rem !important; }
  .home-hero .home-alt { margin-top: 0.95rem !important; }
  .home-story .home-h2--big { font-size: 2.2rem; }
  /* The steps' descriptions are the hero's size (owner, 2026-10-29), and
     their small print the hero's small print. */
  .home-story .home-lead { font-size: 0.97rem; }
  .home-story-fine { font-size: 0.8rem !important; }
  /* The examples sit at 82% of the column, left-aligned with the text above
     them, so they read as pictures rather than the page itself (owner,
     2026-10-29). */
  .home-story .home-demo, .home-story .home-grow-visual, .home-story .home-found-visual { width: 82%; justify-self: start; }
}

/* ------------------------------------------------------------- backdrop */
/* The hero's backdrop (pages/Home.jsx HeroSpace): invented job and company
   cards at three depths, dark so the copy stays the only thing to read. FLAT
   3D (owner, 2026-10-29 — the perspective-tilted version read as "curved"):
   every card faces the viewer, and depth is only size, dimness and how far a
   plane drifts. Cheap on purpose: no perspective, no blur, no mask — three
   composited planes that functions/homeStart.js moves with a transform, and
   one overlay on top for the dark pool and the fade-out. It is the first child
   of <body>, painted under everything (z-index -1, above the page's black). */
html.home-page body { position: relative; }
.home-space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: max(100svh, 46rem);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
  font-family: 'Nunito', sans-serif;
  line-height: 1.3;
}
/* The rail is fixed over the right edge of <body>'s box: centre the space on
   the page, not under the rail. */
@media (min-width: 62.0625em) {
  html.has-rail.home-page:not(.rail-collapsed) .home-space { width: calc(100% - var(--rail-w)); }
}
.home-space-plane {
  position: absolute;
  inset: 0;
  will-change: transform;
}
/* A dark pool behind the centred copy, so no card sits under a word, and the
   fade to the page's black before the first row. */
.home-space::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 60%, #000 100%),
    radial-gradient(ellipse 42% 46% at 50% 46%, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}
.home-space-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 19em;
  padding: 0.85em 0.9em 0.75em;
  border: 2px solid var(--rank);
  background: radial-gradient(ellipse at right top, rgb(14, 14, 14) 0%, #000 47%, rgb(12, 12, 12) 100%);
  color: rgb(200, 200, 200);
  font-size: 0.72em;
  /* --k is 1 near, ~0.35 far (HeroSpace, from the card's depth). */
  transform: translate(-50%, -50%) scale(var(--k));
  opacity: calc(var(--k) * 0.62 - 0.05);
}
.home-space-card--co { width: 13em; text-align: center; padding-top: 1.6em; }
.home-space-head { display: flex; gap: 0.6em; align-items: flex-start; }
.home-space-logo {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 0.3em;
}
.home-space-card--co .home-space-logo { width: 4em; height: 4em; margin-bottom: 0.55em; }
.home-space-title { color: #fff; font-size: 0.95em; }
.home-space-sub { color: rgb(150, 150, 150); font-size: 0.75em; }
.home-space-count { position: absolute; top: 0.45em; right: 0.55em; font-size: 0.55em; color: rgb(150, 150, 150); }
.home-space-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.15em 0.4em; margin-top: 0.7em; }
/* The description, as lines rather than words: nobody reads it at this depth. */
.home-space-desc {
  height: 1.9em;
  margin-top: 0.7em;
  background:
    linear-gradient(rgb(55, 55, 55), rgb(55, 55, 55)) 0 0.15em / 100% 0.3em no-repeat,
    linear-gradient(rgb(55, 55, 55), rgb(55, 55, 55)) 0 0.85em / 92% 0.3em no-repeat,
    linear-gradient(rgb(55, 55, 55), rgb(55, 55, 55)) 0 1.55em / 58% 0.3em no-repeat;
}
.home-space-card--co .home-space-desc { margin: 0.7em auto 0.2em; width: 85%; background-position: 50% 0.15em, 50% 0.85em, 50% 1.55em; }
.home-space-salary {
  margin-top: 0.6em;
  padding-top: 0.55em;
  border-top: 1px solid rgb(40, 40, 40);
  text-align: center;
  color: var(--brand, orange);
  font-size: 0.8em;
}

/* Phones: a smaller space with fewer, smaller cards, kept to the edges. */
@media (max-width: 48rem) {
  .home-space { height: max(100svh, 40rem); font-size: 0.72rem; }
  .home-space-card { opacity: calc((var(--k) * 0.62 - 0.05) * 0.75); }
  .home-space-card--wide { display: none; }
  .home-space::after {
    background:
      linear-gradient(to bottom, transparent 60%, #000 100%),
      radial-gradient(ellipse 60% 44% at 50% 42%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%);
  }
}
