:root {
  --bg: #0b0b0b;
  --bg-deep: #111111;
  --surface: #151515;
  --surface-soft: #1a1a1a;
  --surface-strong: #202020;
  --line: rgba(255, 255, 255, 0.05);
  --line-soft: rgba(255, 255, 255, 0.03);
  --text: #f4f5f7;
  --muted: #a6a8ad;
  --accent: #4e97ff;
  --accent-strong: #2f71ff;
  --accent-glow: rgba(78, 151, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --body-radial: rgba(78, 151, 255, 0.08);
  --body-start: #090909;
  --body-mid: #0d0d0d;
  --body-end: #121212;
  --header-bg: rgba(12, 12, 12, 0.84);
  --button-secondary-bg: rgba(255, 255, 255, 0.02);
  --button-secondary-text: var(--text);
  --signal-bg: rgba(255, 255, 255, 0.035);
  --chip-text: rgba(255, 255, 255, 0.78);
  --prompt-surface: #161616;
  --prompt-surface-deep: #121212;
  --stream-surface: #141414;
  --cta-surface: #171717;
  --cta-surface-deep: #111111;
  --field-surface: var(--surface-soft);
  --field-label: rgba(255, 255, 255, 0.55);
  --field-placeholder: rgba(255, 255, 255, 0.52);
  --header-subtle: rgba(255, 255, 255, 0.72);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
  --section-space: clamp(4.5rem, 8vw, 8rem);
}

body[data-theme="morning"] {
  --bg: #f9fbff;
  --bg-deep: #eef4fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-strong: #eef4fb;
  --line: rgba(14, 28, 56, 0.08);
  --line-soft: rgba(14, 28, 56, 0.05);
  --text: #0f1726;
  --muted: #5f6b7c;
  --accent-glow: rgba(78, 151, 255, 0.18);
  --shadow: 0 26px 80px rgba(29, 52, 93, 0.09);
  --body-radial: rgba(78, 151, 255, 0.13);
  --body-start: #fcfdff;
  --body-mid: #f4f8fe;
  --body-end: #edf3fb;
  --header-bg: rgba(255, 255, 255, 0.9);
  --button-secondary-bg: rgba(15, 23, 38, 0.03);
  --button-secondary-text: #0f1726;
  --signal-bg: rgba(15, 23, 38, 0.04);
  --chip-text: #253043;
  --prompt-surface: #f7faff;
  --prompt-surface-deep: #f2f6fd;
  --stream-surface: #ffffff;
  --cta-surface: #ffffff;
  --cta-surface-deep: #f3f7fd;
  --field-surface: #ffffff;
  --field-label: rgba(15, 23, 38, 0.52);
  --field-placeholder: rgba(15, 23, 38, 0.46);
  --header-subtle: rgba(15, 23, 38, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top center, var(--body-radial), transparent 24%),
    linear-gradient(180deg, var(--body-start) 0%, var(--body-mid) 42%, var(--body-end) 100%);
  font-family: "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

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

button,
input,
select {
  font: inherit;
}

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

select,
input {
  appearance: none;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 140px;
}

.brand span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--header-subtle);
}

.site-nav,
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.button:hover,
.button:focus-visible,
.system-card:hover,
.capability-card:hover,
.role-card:hover,
.platform-layer:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 34px rgba(47, 113, 255, 0.22);
}

.button-secondary,
.button-ghost {
  color: var(--button-secondary-text);
  border-color: var(--line);
  background: var(--button-secondary-bg);
}

.layout-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.layout-reset {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.layout-toggle:hover,
.layout-reset:hover,
.layout-toggle:focus-visible {
  transform: translateY(-2px);
}

.layout-reset:focus-visible {
  transform: translateY(-2px);
}

.layout-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-2px);
}

.theme-toggle__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 22px;
  align-items: start;
  padding: 30px 0 12px;
}

.hero-copy,
.prompt-panel,
.system-card,
.platform-layer,
.capability-card,
.role-card,
.cta-panel {
  position: relative;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow);
}

[data-indent-block] {
  --indent-x: 0px;
  --indent-y: 0px;
  transform: translate(var(--indent-x), var(--indent-y));
  transition: transform 0.18s ease;
}

.layout-resize-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 13;
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 151, 255, 0.12);
  cursor: nwse-resize;
}

body[data-layout-edit="true"] [data-indent-block] {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

body[data-layout-edit="true"] [data-indent-block] * {
  cursor: grab;
}

body[data-layout-edit="true"] [data-indent-block]::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(78, 151, 255, 0.24);
  border-radius: inherit;
  pointer-events: none;
}

body[data-layout-edit="true"] .layout-reset {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

body[data-layout-edit="true"] main {
  position: relative;
}

body[data-layout-edit="true"] main::before {
  content: "";
  position: absolute;
  inset: -24px -16px;
  z-index: 0;
  border-radius: 36px;
  background-image:
    linear-gradient(rgba(78, 151, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 151, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 96%);
  pointer-events: none;
}

body[data-layout-edit="true"] main > * {
  position: relative;
  z-index: 1;
}

body[data-layout-edit="true"] [data-indent-block].is-dragging {
  cursor: grabbing;
  transition: none;
  z-index: 12;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(78, 151, 255, 0.18);
}

body[data-layout-edit="true"] [data-indent-block].is-selected::after {
  border-color: rgba(78, 151, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(78, 151, 255, 0.08);
}

body[data-layout-edit="true"] [data-indent-block].is-selected .layout-resize-handle {
  display: block;
}

body[data-layout-edit="true"] [data-indent-block].is-dragging * {
  cursor: grabbing;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(2.2rem, 4vw, 3.8rem);
  border-radius: calc(var(--radius-xl) + 6px);
}

.eyebrow,
.card-kicker,
.role-team,
.prompt-kicker,
.panel-label {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow-brandcase {
  text-transform: none;
  letter-spacing: 0.08em;
}

.hero h1,
.section-heading h2,
.cta-panel h2,
.prompt-card h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 8.4ch;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  text-wrap: balance;
}

.hero-mark {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.06em 0.16em 0.14em;
  margin-top: 0.18em;
  margin-left: -0.08em;
  white-space: nowrap;
}

.hero-mark-tenacious::before,
.hero-mark-tenacious::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  pointer-events: none;
}

.hero-mark-tenacious::before {
  top: -0.04em;
  bottom: 0.06em;
  border: 2px solid rgba(78, 151, 255, 0.84);
  border-radius: 52% 48% 50% 46% / 44% 54% 46% 56%;
  transform: rotate(0.6deg);
}

.hero-mark-tenacious::after {
  height: 0.18em;
  bottom: -0.08em;
  border-bottom: 2px solid rgba(78, 151, 255, 0.74);
  border-radius: 50%;
  transform: rotate(-1deg) scaleX(1.01);
}

body[data-theme="morning"] .hero-mark-tenacious::before {
  border-color: rgba(78, 151, 255, 0.92);
}

body[data-theme="morning"] .hero-mark-tenacious::after {
  border-bottom-color: rgba(78, 151, 255, 0.82);
}

.hero-text,
.section-heading p + h2 + p,
.system-card p:last-child,
.capability-card p:last-child,
.role-summary,
.roles-meta p,
.cta-panel p,
.culture-copy p,
#streamText {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-signals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-signals span,
.role-tag {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--signal-bg);
  color: var(--chip-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.prompt-shell {
  min-width: 0;
}

.prompt-panel {
  padding: 18px 18px 20px;
  border-radius: calc(var(--radius-xl) + 2px);
  background:
    radial-gradient(circle at top right, rgba(78, 151, 255, 0.08), transparent 30%),
    linear-gradient(180deg, var(--prompt-surface), var(--prompt-surface-deep));
}

.panel-topline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  white-space: nowrap;
  width: fit-content;
}

.panel-dot {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 151, 255, 0.12), 0 0 12px var(--accent-glow);
  animation: panelPulse 1.9s ease-out infinite;
}

.panel-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(78, 151, 255, 0.22);
  border-radius: 999px;
  animation: panelRing 1.9s ease-out infinite;
}

.panel-label {
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.prompt-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.prompt-card {
  flex: 1 1 0;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: var(--surface-soft);
}

.prompt-card-input,
.prompt-card-output {
  min-width: 0;
}

.prompt-card h2 {
  max-width: 9ch;
  font-size: clamp(1.35rem, 2.45vw, 2rem);
}

.prompt-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.prompt-tags li {
  padding: 9px 11px;
  border-radius: 999px;
  background: var(--signal-bg);
  color: var(--muted);
  font-size: 0.86rem;
}

.stream-card {
  min-height: 152px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(78, 151, 255, 0.06), rgba(255, 255, 255, 0.01)),
    var(--stream-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

#streamText {
  display: inline;
  color: var(--text);
}

.stream-caret {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: caretBlink 1s step-end infinite;
}

.response-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.response-metrics div {
  padding: 8px 6px;
  border-radius: 16px;
  background: transparent;
}

.response-metrics strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.response-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
}

body[data-theme="morning"] .site-header {
  border-color: rgba(78, 151, 255, 0.08);
  box-shadow: 0 18px 44px rgba(40, 67, 113, 0.08);
}

body[data-theme="morning"] .hero-copy,
body[data-theme="morning"] .prompt-panel,
body[data-theme="morning"] .system-card,
body[data-theme="morning"] .platform-layer,
body[data-theme="morning"] .capability-card,
body[data-theme="morning"] .tenacity-card,
body[data-theme="morning"] .youth-card,
body[data-theme="morning"] .care-card,
body[data-theme="morning"] .role-card,
body[data-theme="morning"] .cta-panel {
  border-color: rgba(78, 151, 255, 0.05);
  box-shadow: 0 24px 60px rgba(35, 63, 112, 0.08);
}

body[data-theme="morning"] .hero-copy {
  background:
    radial-gradient(circle at top center, rgba(78, 151, 255, 0.05), transparent 42%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

body[data-theme="morning"] .prompt-panel {
  background:
    radial-gradient(circle at top right, rgba(78, 151, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff, #f3f7fd);
}

body[data-theme="morning"] .tenacity-card {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at bottom center, rgba(78, 151, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #f8f6f1, #f6f8fc);
}

body[data-theme="morning"] .youth-card {
  background:
    radial-gradient(circle at top center, rgba(78, 151, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

body[data-theme="morning"] .care-card {
  background:
    radial-gradient(circle at top left, rgba(78, 151, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

body[data-theme="morning"] .tenacity-pill {
  background: rgba(15, 23, 38, 0.06);
  color: #6b7280;
}

body[data-theme="morning"] .tenacity-photo-slot {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.98), rgba(255, 244, 224, 0.7) 42%, rgba(255, 255, 255, 0.4) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(243, 247, 253, 0.9));
  box-shadow: inset 0 0 0 1px rgba(78, 151, 255, 0.04);
}

body[data-theme="morning"] .tenacity-photo-slot span {
  background: rgba(255, 255, 255, 0.88);
}

body[data-theme="morning"] .prompt-card {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(78, 151, 255, 0.04);
}

body[data-theme="morning"] .stream-card {
  box-shadow: inset 0 0 0 1px rgba(78, 151, 255, 0.06);
}

body[data-theme="morning"] .response-metrics div {
  background: transparent;
}

.section {
  padding: var(--section-space) 0 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
}

.system-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

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

.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-card,
.capability-card,
.tenacity-card,
.youth-card,
.care-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.system-card:hover,
.capability-card:hover,
.tenacity-card:hover,
.youth-card:hover,
.care-card:hover,
.role-card:hover,
.platform-layer:hover {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(78, 151, 255, 0.08);
}

.system-card h3,
.capability-card h3,
.tenacity-card h3,
.youth-card h3,
.care-card h3,
.platform-layer h3,
.role-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.youth-card {
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top center, rgba(78, 151, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow);
}

.care-card {
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top left, rgba(78, 151, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow);
}

.youth-metric {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: var(--text);
}

.youth-card p:last-child {
  margin: 0;
  max-width: 26ch;
  color: var(--muted);
  line-height: 1.65;
}

.care-card p:last-child {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.65;
}

.tenacity-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 500px;
  flex: 0 0 min(31vw, 420px);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent 32%),
    radial-gradient(circle at bottom center, rgba(78, 151, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0.08;
  transform: scale(0.88);
  filter: blur(0.8px);
}

.tenacity-card:nth-child(3n + 2) {
  margin-top: 0;
}

.tenacity-card:nth-child(3n + 3) {
  margin-top: 0;
}

.tenacity-meta,
.tenacity-quote {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tenacity-meta {
  margin-bottom: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.tenacity-card__top {
  display: grid;
  gap: 14px;
  align-content: start;
}

.tenacity-pill {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--signal-bg);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tenacity-card h3 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.tenacity-photo-slot {
  position: relative;
  min-height: 250px;
  margin-top: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08) 46%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: tenacityGlow 8s ease-in-out infinite;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tenacity-photo-slot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56%;
  height: 70%;
  transform: translateX(-50%);
  border-radius: 999px 999px 18px 18px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), rgba(78, 151, 255, 0.1) 62%, rgba(255, 255, 255, 0.03) 100%);
  opacity: 0.72;
}

.tenacity-photo-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 70%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 38, 0.08);
  filter: blur(14px);
}

.tenacity-photo-slot span {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.tenacity-photo {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 82%;
  height: 96%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.02) contrast(1.02);
  border-radius: 22px 22px 0 0;
}

.tenacity-photo-slot--engineer::before {
  width: 54%;
}

.tenacity-photo-slot--operator::before {
  width: 60%;
}

.tenacity-photo-slot--leader::before {
  width: 56%;
}

.tenacity-carousel {
  position: relative;
  overflow: hidden;
  padding: 12px 0 6px;
}

.tenacity-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  will-change: transform;
  transition: transform 1.05s cubic-bezier(0.19, 1, 0.22, 1);
}

.tenacity-card.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.tenacity-card.is-near {
  opacity: 0.26;
  transform: scale(0.91);
  filter: blur(0.25px);
}

.tenacity-controls {
  display: none;
}

.tenacity-arrow {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(78, 151, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(35, 63, 112, 0.05);
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.tenacity-arrow:hover,
.tenacity-arrow:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(78, 151, 255, 0.24);
  box-shadow: 0 18px 38px rgba(35, 63, 112, 0.08);
}

.tenacity-dots {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tenacity-dot {
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(78, 151, 255, 0.2);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(78, 151, 255, 0.04);
  transition: transform 0.32s ease, background-color 0.32s ease, box-shadow 0.32s ease;
}

.tenacity-dot.is-active {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(78, 151, 255, 0.08);
}

body[data-theme="night"] .tenacity-arrow {
  background: rgba(26, 26, 26, 0.86);
  border-color: rgba(78, 151, 255, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

body[data-theme="night"] .tenacity-dot {
  background: rgba(78, 151, 255, 0.16);
}

body[data-theme="night"] .tenacity-dot.is-active {
  box-shadow: 0 0 0 6px rgba(78, 151, 255, 0.14);
}

.platform-stack {
  display: grid;
  gap: 12px;
}

.platform-layer {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.layer-index {
  color: rgba(255, 255, 255, 0.34);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.roles-console {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(160px, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.roles-field {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: var(--field-surface);
}

.roles-field span {
  color: var(--field-label);
  font-size: 0.82rem;
  font-weight: 700;
}

.roles-field input,
.roles-field select {
  width: 100%;
  border: none;
  outline: none;
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.roles-field input::placeholder {
  color: var(--field-placeholder);
}

.roles-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 20px;
}

.roles-meta p:first-child {
  color: var(--text);
  font-weight: 800;
}

.roles-list {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

body[data-layout-edit="true"] .roles-list {
  padding-bottom: 72px;
}

.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.role-main {
  display: grid;
  gap: 10px;
  max-width: 46rem;
}

.role-meta-block {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.role-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.role-link {
  color: var(--accent);
  font-weight: 800;
}

.role-link::after {
  content: " ->";
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(320px, 0.46fr);
  gap: clamp(2rem, 4.5vw, 4.4rem);
  align-items: center;
  padding: clamp(2.5rem, 4.6vw, 4.4rem);
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at top right, rgba(78, 151, 255, 0.08), transparent 28%),
    linear-gradient(180deg, var(--cta-surface), var(--cta-surface-deep));
  overflow: hidden;
}

.cta-panel h2 {
  max-width: 8.4ch;
  margin-bottom: 0;
  font-size: clamp(2.05rem, 3.8vw, 4rem);
  line-height: 0.98;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0;
  max-width: 31rem;
}

.cta-copy {
  display: grid;
  gap: 16px;
  max-width: 30rem;
  margin-top: 24px;
}

.cta-copy-group {
  display: grid;
  gap: 4px;
}

.cta-copy p {
  margin: 0;
  color: color-mix(in srgb, var(--muted) 74%, var(--text) 26%);
  line-height: 1.5;
  font-size: 0.995rem;
}

.cta-copy-group-secondary {
  padding-top: 2px;
}

.cta-copy-group-secondary p + p {
  margin-top: 4px;
}

.cta-copy a {
  color: var(--accent);
  font-weight: 700;
}

.cta-actions {
  gap: 16px;
  margin-top: 30px;
}

.cta-actions .button {
  min-height: 52px;
  padding-inline: 24px;
}

.cta-actions .button-primary {
  box-shadow: 0 18px 36px rgba(47, 113, 255, 0.26);
}

.cta-art {
  position: relative;
  min-height: 360px;
  align-self: stretch;
  border: 1px solid var(--line-soft);
  border-radius: 34px;
  background:
    radial-gradient(circle at 24% 22%, rgba(78, 151, 255, 0.08), transparent 28%),
    radial-gradient(circle at 74% 72%, rgba(78, 151, 255, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.cta-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.06), rgba(8, 14, 28, 0.02) 24%, rgba(8, 14, 28, 0.16) 100%),
    radial-gradient(circle at center, transparent 34%, rgba(8, 14, 28, 0.18) 100%);
  pointer-events: none;
}

.cta-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.application-page {
  padding: 36px 0 48px;
}

.application-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.application-intro,
.application-role-card,
.application-form,
.application-sidepanel {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow);
}

.application-intro {
  padding: clamp(2rem, 4vw, 3.2rem);
}

.application-intro h1,
.application-role-card h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.application-intro h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
}

.application-role-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(78, 151, 255, 0.08), transparent 30%),
    linear-gradient(180deg, var(--prompt-surface), var(--prompt-surface-deep));
}

.application-role-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.application-role-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.application-role-meta span,
.application-role-focus,
.application-upload-control span {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--signal-bg);
  color: var(--chip-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.application-role-focus {
  display: inline-flex;
  width: fit-content;
  margin: 0;
}

.application-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  margin-top: 28px;
}

.application-form {
  padding: 24px;
}

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

.application-field {
  display: grid;
  gap: 8px;
}

.application-field span {
  color: var(--field-label);
  font-size: 0.84rem;
  font-weight: 700;
}

.application-field input,
.application-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: var(--field-surface);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.application-field input::placeholder,
.application-field textarea::placeholder {
  color: var(--field-placeholder);
}

.application-field input:focus,
.application-field textarea:focus {
  border-color: rgba(78, 151, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(78, 151, 255, 0.08);
}

.application-field textarea {
  resize: vertical;
  min-height: 144px;
}

.application-field-wide {
  margin-top: 16px;
}

.application-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface-soft);
}

.application-upload-copy {
  margin: 6px 0 0;
  color: var(--muted);
}

.application-upload-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.application-upload-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.application-upload-control span {
  color: var(--text);
}

.application-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.application-sidepanel {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(78, 151, 255, 0.08), transparent 30%),
    linear-gradient(180deg, var(--prompt-surface), var(--prompt-surface-deep));
}

.application-steps {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.application-steps article {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.application-steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
}

.application-steps p,
.application-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.application-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.application-status.is-success {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(78, 151, 255, 0.14);
}

body[data-theme="morning"] .application-intro,
body[data-theme="morning"] .application-form,
body[data-theme="morning"] .application-sidepanel,
body[data-theme="morning"] .application-role-card {
  border-color: rgba(78, 151, 255, 0.05);
  box-shadow: 0 24px 60px rgba(35, 63, 112, 0.08);
}

body[data-theme="morning"] .application-intro,
body[data-theme="morning"] .application-form {
  background:
    radial-gradient(circle at top center, rgba(78, 151, 255, 0.05), transparent 42%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

body[data-theme="morning"] .application-role-card,
body[data-theme="morning"] .application-sidepanel {
  background:
    radial-gradient(circle at top right, rgba(78, 151, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff, #f3f7fd);
}

.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.stagger-1 {
  transition-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.16s;
}

@keyframes caretBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes panelPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@keyframes panelRing {
  0% {
    transform: scale(0.86);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes tenacityGlow {
  0%,
  100% {
    background-position: 50% 10%, 0% 0%, 0% 0%;
    filter: saturate(1);
  }
  50% {
    background-position: 54% 14%, 0% 0%, 0% 0%;
    filter: saturate(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1140px) {
  .site-nav {
    display: none;
  }

  .hero,
  .system-grid,
  .capability-grid,
  .youth-grid,
  .care-grid {
    grid-template-columns: 1fr;
  }

  .prompt-grid {
    flex-direction: column;
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tenacity-card {
    min-height: 450px;
  }

  .platform-layer {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .roles-console {
    grid-template-columns: 1fr 1fr;
  }

  .roles-field.roles-field-wide {
    grid-column: 1 / -1;
  }

  .application-hero,
  .application-form-shell {
    grid-template-columns: 1fr;
  }

  .role-card {
    align-items: start;
    flex-direction: column;
  }

  .role-meta-block {
    width: 100%;
    justify-items: start;
  }

  .role-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .site-header {
    top: 10px;
    padding: 14px 16px;
    border-radius: 24px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 112px;
  }

  .brand span,
  .header-actions .button-ghost {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.8rem);
    max-width: 9ch;
  }

  .hero-mark {
    margin-left: 0;
    width: 100%;
    white-space: normal;
  }

  .hero-copy,
  .prompt-panel,
  .system-card,
  .platform-layer,
  .capability-card,
  .role-card,
  .cta-panel {
    border-radius: 22px;
  }

  .response-metrics,
  .system-grid,
  .capability-grid,
  .youth-grid,
  .care-grid,
  .roles-console,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .tenacity-carousel {
    overflow: visible;
  }

  .tenacity-track {
    display: flex;
    gap: 16px;
    transform: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .tenacity-card {
    flex-basis: auto;
    min-width: min(86vw, 420px);
    min-height: 400px;
    margin-top: 0;
    opacity: 1;
    transform: none;
    scroll-snap-align: start;
  }

  .tenacity-card h3 {
    max-width: 12ch;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-art {
    min-height: 220px;
    width: 100%;
  }

  .cta-grid {
    inset: 10% 6% 10% 6%;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-copy {
    max-width: 100%;
  }

  .prompt-grid {
    flex-direction: column;
  }

  .hero-actions,
  .header-actions,
  .application-actions,
  .application-upload {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .roles-meta {
    flex-direction: column;
  }
}
