:root {
  --bg: #0f2c38;
  --surface: #142f3a;
  --surface-2: #12171c;
  --ink: #e8eef0;
  --muted: #9eb5bb;
  --line: rgba(232, 238, 240, 0.16);
  --accent: #5fb8c9;
  --accent-2: #4a7c7c;
  --accent-3: #86d3df;
  --soft: rgba(74, 124, 124, 0.2);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 184, 201, 0.11), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(74, 124, 124, 0.12), transparent 30%),
    linear-gradient(180deg, #0f2c38 0%, #12171c 56%, #0c2029 100%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent);
  overflow: hidden;
}

.brand-mark img,
.portrait-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark img {
  position: absolute;
  inset: 0;
}

.brand-mark img[src=""],
.brand-mark img:not([src]) {
  display: none;
}

.avatar-fallback {
  z-index: 1;
}

.brand-text {
  font-size: 15px;
}

.nav-links {
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.72);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.nav-links a {
  min-width: 54px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--accent);
  outline: none;
}

main {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 76px 0 96px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.hero-summary {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-summary-line {
  display: block;
}

.hero-summary-line.is-key {
  width: fit-content;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(95, 184, 201, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(95, 184, 201, 0.08);
  color: var(--ink);
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button,
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.54);
  color: var(--ink);
  font-weight: 700;
}

.button {
  padding: 0 16px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface-2);
}

.button:hover,
.icon-link:hover,
.button:focus-visible,
.icon-link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.ui-symbol {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-visual {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(74, 124, 124, 0.92), rgba(15, 44, 56, 0.82)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(232, 238, 240, 0.12) 14px 15px);
  color: var(--ink);
  isolation: isolate;
}

.portrait-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-position: 50% 18%;
}

.portrait-visual::before,
.portrait-visual::after {
  position: absolute;
  content: "";
}

.portrait-visual::before {
  inset: 28px;
  border: 1px solid rgba(232, 238, 240, 0.42);
  border-radius: var(--radius);
  z-index: 3;
}

.portrait-visual::after {
  inset: 0;
  z-index: 1;
  background: linear-gradient(140deg, transparent 36%, rgba(15, 44, 56, 0.74) 100%);
  opacity: 0;
}

.portrait-visual #portrait-initials {
  z-index: 2;
  font-size: 132px;
  font-weight: 800;
  line-height: 1;
}

.portrait-visual.has-avatar {
  background: var(--surface-2);
}

.portrait-visual.has-avatar::after {
  opacity: 1;
}

.portrait-name {
  position: absolute;
  right: 48px;
  bottom: 42px;
  z-index: 4;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.portrait-visual.has-avatar .portrait-name {
  opacity: 1;
}

.portrait-visual.has-avatar #portrait-initials,
.brand-mark.has-avatar .avatar-fallback {
  display: none;
}

.profile-meta {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.meta-item {
  display: grid;
  gap: 4px;
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-value {
  font-weight: 700;
}

.section-block {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: start;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.about-story {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(232, 238, 240, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(95, 184, 201, 0.1), transparent 44%),
    rgba(18, 23, 28, 0.46);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.about-story-title {
  margin: 0;
  color: var(--accent-3);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  line-height: 1.1;
}

.about-story-block {
  display: grid;
  gap: 2px;
  color: rgba(232, 238, 240, 0.78);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.about-story-block span {
  display: block;
}

.about-story-block.is-quote {
  gap: 8px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(95, 184, 201, 0.08);
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.28;
}

.about-story-block.is-closing {
  padding-top: 18px;
  border-top: 1px solid rgba(232, 238, 240, 0.12);
  color: var(--accent-3);
  font-weight: 850;
}

.stats-grid,
.work-grid {
  display: grid;
  gap: 14px;
}

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

.stat-card,
.work-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.56);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.14);
}

.stat-card {
  padding: 20px;
}

.stat-value {
  display: block;
  color: var(--accent);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.timeline-date {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.timeline-body p,
.work-card p,
.contact-section p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(95, 184, 201, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.work-grid {
  display: block;
}

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

.work-column {
  min-width: 0;
  padding: 18px 0 14px;
  border: 1px solid rgba(232, 238, 240, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(232, 238, 240, 0.045), transparent 36%),
    rgba(18, 23, 28, 0.34);
  overflow: hidden;
}

.work-column-head {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 0 22px;
}

.work-column-head h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.work-column-head p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.work-carousel {
  position: relative;
  margin-inline: -18px;
  overflow: hidden;
}

.work-rail {
  position: relative;
  min-height: 390px;
  padding: 22px 18px 30px;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.work-rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.work-card {
  position: absolute;
  top: 22px;
  left: 50%;
  display: grid;
  width: min(76vw, 430px);
  min-height: 260px;
  padding: 22px;
  cursor: pointer;
  transform: translateX(-50%) translateZ(-180px) scale(0.78);
  transform-origin: 50% 50%;
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 220ms ease,
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.work-card.is-focus {
  border-color: rgba(95, 184, 201, 0.66);
  box-shadow:
    0 22px 72px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(95, 184, 201, 0.14) inset;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  transform: translateX(-50%) translateZ(64px) scale(1);
}

.work-card.is-before {
  opacity: 0.46;
  filter: blur(0.35px);
  pointer-events: auto;
  transform: translateX(calc(-50% - min(46vw, 520px))) rotateY(18deg) translateZ(-160px)
    scale(0.78);
}

.work-card.is-after {
  opacity: 0.46;
  filter: blur(0.35px);
  pointer-events: auto;
  transform: translateX(calc(-50% + min(46vw, 520px))) rotateY(-18deg) translateZ(-160px)
    scale(0.78);
}

.work-card.is-far {
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
  transform: translateX(-50%) translateZ(-240px) scale(0.72);
}

.work-column .work-carousel {
  margin-inline: 0;
}

.work-column .work-rail {
  min-height: 450px;
  padding: 18px 0 28px;
}

.work-column .work-card {
  width: min(82%, 360px);
  min-height: 340px;
}

.work-column .work-card.is-before {
  opacity: 0.32;
  transform: translateX(calc(-50% - min(28vw, 240px))) rotateY(16deg) translateZ(-150px)
    scale(0.74);
}

.work-column .work-card.is-after {
  opacity: 0.32;
  transform: translateX(calc(-50% + min(28vw, 240px))) rotateY(-16deg) translateZ(-150px)
    scale(0.74);
}

.work-column .work-controls {
  padding: 0 22px;
}

.work-card:nth-child(3n + 1) {
  border-top: 4px solid var(--accent);
}

.work-card:nth-child(3n + 2) {
  border-top: 4px solid var(--accent-2);
}

.work-card:nth-child(3n + 3) {
  border-top: 4px solid var(--accent-3);
}

.work-category {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 8px;
  border: 1px solid rgba(95, 184, 201, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.work-link {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 22px;
  font-weight: 800;
}

.work-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px;
}

.work-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  font-weight: 650;
  line-height: 1;
}

.work-control:hover,
.work-control:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.work-progress {
  min-width: 48px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.article-main {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.article-hero {
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 860px;
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
}

.article-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.article-content {
  padding-top: 40px;
}

.article-content h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.article-content p,
.article-content li {
  color: rgba(232, 238, 240, 0.82);
  font-size: 18px;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul {
  margin: 12px 0 24px;
  padding-left: 1.2em;
}

.article-content a {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.evidence-section {
  margin: 48px 0 56px;
}

.evidence-heading {
  max-width: 760px;
}

.evidence-heading h2 {
  margin-top: 0;
}

.evidence-heading p {
  color: var(--muted);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 22px;
}

.evidence-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.56);
  overflow: hidden;
}

.evidence-card img,
.evidence-card svg {
  display: block;
  width: 100%;
  aspect-ratio: 39 / 76;
  object-fit: cover;
  background: var(--surface-2);
}

.evidence-card figcaption {
  padding: 12px 14px 14px;
  color: rgba(232, 238, 240, 0.76);
  font-size: 14px;
  font-weight: 750;
}

.product-gallery {
  grid-template-columns: 1fr;
}

.product-shot img {
  aspect-ratio: 16 / 10;
  object-position: top center;
}

.product-shot figcaption {
  font-size: 15px;
}

.article-note {
  margin-top: 48px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.56);
}

.mirror-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.52fr);
  gap: 24px;
  align-items: center;
  min-height: 360px;
}

.mirror-hero-copy {
  min-width: 0;
}

.mirror-hero-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(95, 184, 201, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(95, 184, 201, 0.18), transparent 46%),
    rgba(10, 24, 31, 0.9);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(95, 184, 201, 0.16) inset;
}

.mirror-hero-card-head,
.mirror-hero-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(232, 238, 240, 0.76);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mirror-hero-card-head strong {
  color: var(--accent-3);
}

.mirror-hero-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.mirror-hero-score span {
  color: rgba(232, 238, 240, 0.78);
  font-weight: 800;
}

.mirror-hero-score strong {
  color: var(--accent-3);
  font-size: 72px;
  line-height: 0.9;
}

.mirror-hero-bars {
  display: grid;
  gap: 12px;
}

.mirror-hero-bar {
  display: grid;
  gap: 6px;
}

.mirror-hero-bar div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(232, 238, 240, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.mirror-hero-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mirror-hero-bar em {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7f73;
  font-style: normal;
}

.mirror-hero-bar strong {
  color: #ffffff;
}

.mirror-hero-bar i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(232, 238, 240, 0.18);
  position: relative;
  overflow: hidden;
}

.mirror-hero-bar i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, #72d4e4, #ff7f73);
  content: "";
}

.mirror-hero-bar.discipline em {
  background: #f0d567;
}

.mirror-hero-bar.discipline i::after {
  background: linear-gradient(90deg, #78a7a7, #72d4e4);
}

.mirror-hero-bar.emotion em {
  background: #ff7f73;
}

.mirror-hero-legend {
  justify-content: flex-start;
  color: rgba(232, 238, 240, 0.78);
  line-height: 1.5;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 34px;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.62);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.14);
}

.tool-form,
.tool-output {
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-input,
.tool-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 28, 0.92);
  color: var(--ink);
  font: inherit;
}

.tool-input {
  min-height: 260px;
  resize: vertical;
  padding: 14px;
}

.tool-select {
  min-height: 44px;
  padding: 0 12px;
}

.tool-input:focus,
.tool-select:focus {
  border-color: var(--accent);
  outline: none;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 238, 240, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.tool-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface-2);
}

.tool-button:hover,
.tool-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.tool-button.primary:hover,
.tool-button.primary:focus-visible {
  color: var(--surface-2);
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.model-status {
  display: grid;
  gap: 10px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-row span:last-child {
  text-align: right;
  font-weight: 800;
}

.sample-list {
  display: grid;
  gap: 10px;
}

.sample-button {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(95, 184, 201, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.sample-button:hover,
.sample-button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.output-box {
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 44, 56, 0.42);
  color: rgba(232, 238, 240, 0.88);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.tool-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mirror-shell {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.mirror-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.mirror-panel,
.mirror-result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(232, 238, 240, 0.055), transparent 28%),
    rgba(18, 23, 28, 0.68);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.mirror-panel {
  padding: 22px;
}

.mirror-panel h2,
.mirror-panel h3,
.mirror-result-card h2,
.mirror-result-card h3 {
  margin: 0;
}

.mirror-panel > p {
  margin: 8px 0 0;
  color: var(--muted);
}

.mirror-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

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

.mirror-field.full {
  grid-column: 1 / -1;
}

.mirror-field label,
.mirror-question legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mirror-input,
.mirror-select,
.mirror-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 24, 31, 0.78);
  color: var(--ink);
  font: inherit;
}

.mirror-input,
.mirror-select {
  min-height: 44px;
  padding: 0 12px;
}

.mirror-textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
}

.mirror-input:focus,
.mirror-select:focus,
.mirror-textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.mirror-questions {
  display: grid;
  gap: 12px;
}

.mirror-question {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 44, 56, 0.26);
}

.mirror-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mirror-scale label {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 238, 240, 0.05);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.mirror-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mirror-scale label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(95, 184, 201, 0.18);
  color: var(--accent-3);
}

.mirror-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mirror-result-card {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.mirror-card-inner {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.mirror-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.mirror-card-name {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mirror-persona {
  margin-top: 6px;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.05;
}

.mirror-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(95, 184, 201, 0.32);
  border-radius: 999px;
  background: rgba(95, 184, 201, 0.1);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.mirror-metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 24, 31, 0.66);
}

.mirror-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mirror-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1;
}

.mirror-bars {
  display: grid;
  gap: 12px;
}

.mirror-bar {
  display: grid;
  gap: 6px;
}

.mirror-bar-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mirror-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(232, 238, 240, 0.1);
  overflow: hidden;
}

.mirror-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 360ms ease;
}

.mirror-insight {
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(95, 184, 201, 0.09);
  color: rgba(232, 238, 240, 0.86);
}

.mirror-insight p {
  margin: 0;
}

.mirror-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
  color: rgba(232, 238, 240, 0.78);
}

.mirror-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.mirror-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

.ops-main {
  width: min(100% - 32px, 1080px);
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 24px;
  align-items: center;
  min-height: 360px;
}

.ops-hero-copy {
  min-width: 0;
}

.ops-console-card,
.ops-mode-card,
.ops-panel,
.ops-output-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(232, 238, 240, 0.06), transparent 34%),
    rgba(18, 23, 28, 0.7);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.ops-console-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(95, 184, 201, 0.18), transparent 48%),
    rgba(10, 24, 31, 0.88);
}

.ops-console-head,
.ops-panel-head,
.ops-output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ops-console-head span,
.ops-console-grid span,
.ops-mode-card span,
.ops-field span,
.ops-mini-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ops-console-head strong,
.ops-status-pill {
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.ops-console-grid div {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(232, 238, 240, 0.12);
  border-radius: var(--radius);
  background: rgba(15, 44, 56, 0.38);
}

.ops-console-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.ops-signal-stack {
  display: grid;
  gap: 9px;
}

.ops-signal-stack span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(232, 238, 240, 0.12);
  overflow: hidden;
}

.ops-signal-stack span::after {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  content: "";
}

.ops-mode-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.ops-mode-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.ops-mode-card.is-active {
  border-color: rgba(95, 184, 201, 0.58);
  background:
    linear-gradient(135deg, rgba(95, 184, 201, 0.14), transparent 44%),
    rgba(18, 23, 28, 0.74);
}

.ops-mode-card strong {
  color: var(--ink);
  font-size: 18px;
}

.ops-mode-card p {
  margin: 0;
  color: rgba(232, 238, 240, 0.74);
  font-size: 14px;
}

.ops-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.ops-panel {
  padding: 22px;
}

.ops-panel h2,
.ops-output-card h3 {
  margin: 0;
}

.ops-panel h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.ops-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(95, 184, 201, 0.34);
  border-radius: 999px;
  background: rgba(95, 184, 201, 0.09);
  white-space: nowrap;
}

.ops-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

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

.ops-field-full {
  grid-column: 1 / -1;
}

.ops-select,
.ops-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 24, 31, 0.82);
  color: var(--ink);
  font: inherit;
}

.ops-select {
  min-height: 44px;
  padding: 0 12px;
}

.ops-textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

.ops-select:focus,
.ops-textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ops-form .tool-note {
  margin-top: 14px;
}

.ops-result {
  position: sticky;
  top: 92px;
}

.ops-result-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ops-output-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(95, 184, 201, 0.08), transparent 36%),
    rgba(10, 24, 31, 0.56);
}

.ops-output-card p {
  margin: 0;
  color: rgba(232, 238, 240, 0.84);
}

.ops-output-head {
  align-items: center;
}

.ops-copy-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(95, 184, 201, 0.32);
  border-radius: 6px;
  background: rgba(95, 184, 201, 0.1);
  color: var(--accent-3);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ops-copy-button:hover,
.ops-copy-button:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  outline: none;
}

.ops-message-list {
  display: grid;
  gap: 10px;
}

.ops-message-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(232, 238, 240, 0.12);
  border-radius: var(--radius);
  background: rgba(232, 238, 240, 0.045);
}

.ops-message-item > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(95, 184, 201, 0.14);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 900;
}

.ops-message-item p {
  margin: 0;
}

.ops-warning-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
  color: rgba(232, 238, 240, 0.8);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: start;
  margin: 56px 0 88px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(18, 23, 28, 0.98), rgba(15, 44, 56, 0.96));
  color: var(--ink);
}

.contact-section .section-kicker,
.contact-section p {
  color: rgba(232, 238, 240, 0.72);
}

.contact-copy p {
  max-width: 460px;
}

.contact-board {
  display: grid;
  gap: 18px;
}

.contact-methods {
  display: grid;
  gap: 0;
  border: 1px solid rgba(232, 238, 240, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-method {
  display: grid;
  grid-template-columns: 38px minmax(84px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(232, 238, 240, 0.12);
  background: rgba(232, 238, 240, 0.055);
}

.contact-method:last-child {
  border-bottom: 0;
}

.contact-emoji {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(95, 184, 201, 0.14);
  font-size: 18px;
}

.contact-label {
  color: rgba(232, 238, 240, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.contact-value-group {
  display: grid;
  gap: 6px;
}

.contact-value:hover,
.contact-value:focus-visible {
  text-decoration: underline;
  outline: none;
}

.contact-links {
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.icon-link {
  width: 44px;
  padding: 0;
  color: var(--ink);
  background: rgba(232, 238, 240, 0.08);
  border-color: rgba(232, 238, 240, 0.18);
  cursor: pointer;
  font: inherit;
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-text {
  display: inline-grid;
  min-width: 18px;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.icon-popover {
  position: relative;
}

.email-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 4;
  display: grid;
  min-width: min(270px, calc(100vw - 48px));
  padding: 8px;
  border: 1px solid rgba(232, 238, 240, 0.18);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.email-menu[hidden] {
  display: none;
}

.email-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.email-copy:hover,
.email-copy:focus-visible {
  background: rgba(95, 184, 201, 0.12);
  outline: none;
}

.email-copy span {
  overflow-wrap: anywhere;
}

.email-copy small {
  color: rgba(232, 238, 240, 0.55);
  font-size: 12px;
  font-weight: 800;
}

.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

.resume-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.resume-dialog::backdrop {
  background: rgba(18, 23, 28, 0.66);
  backdrop-filter: blur(8px);
}

.resume-dialog-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(18, 23, 28, 0.98), rgba(15, 44, 56, 0.96));
}

.resume-dialog-card h2,
.resume-dialog-card p {
  margin: 0;
}

.resume-dialog-card h2 {
  font-size: 28px;
}

.resume-dialog-card p:not(.section-kicker) {
  color: var(--muted);
}

.resume-dialog-card .tool-button {
  width: fit-content;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
  }

  .hero-section,
  .about-grid,
  .contact-section,
  .tool-shell,
  .mirror-grid,
  .mirror-hero,
  .ops-hero,
  .ops-workbench,
  .work-columns {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 52px;
  }

  .profile-panel {
    max-width: 520px;
  }

  .mirror-hero {
    min-height: auto;
  }

  .mirror-hero-card {
    max-width: 420px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-rail {
    min-height: 430px;
  }

  .work-column-head {
    min-height: auto;
  }

  .work-column .work-rail {
    min-height: 450px;
  }

  .work-card {
    width: min(82vw, 390px);
  }

  .work-card.is-before,
  .work-column .work-card.is-before {
    opacity: 0.38;
    transform: translateX(calc(-50% - min(58vw, 310px))) rotateY(14deg) translateZ(-160px)
      scale(0.74);
  }

  .work-card.is-after,
  .work-column .work-card.is-after {
    opacity: 0.38;
    transform: translateX(calc(-50% + min(58vw, 310px))) rotateY(-14deg) translateZ(-160px)
      scale(0.74);
  }

  .mirror-result-card {
    position: static;
  }

  .ops-result {
    position: static;
  }

  .contact-links {
    justify-content: flex-start;
  }

  .email-menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  h1 {
    font-size: 42px;
  }

  .hero-summary,
  .section-lead {
    font-size: 17px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .mirror-fields,
  .mirror-metrics,
  .ops-fields,
  .ops-mode-board {
    grid-template-columns: 1fr;
  }

  .ops-message-item {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .ops-message-item .ops-copy-button {
    grid-column: 2;
    width: fit-content;
  }

  .portrait-visual {
    min-height: clamp(340px, 78vw, 420px);
  }

  .portrait-visual #portrait-initials {
    font-size: 96px;
  }

  .portrait-name {
    right: 34px;
    bottom: 34px;
  }

  .contact-section {
    padding: 26px;
  }

  .contact-method {
    grid-template-columns: 34px 1fr;
    gap: 8px 12px;
  }

  .contact-value {
    grid-column: 2;
  }

  .contact-value-group {
    grid-column: 2;
  }

  .site-footer {
    flex-direction: column;
  }
}
