@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f6faff;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #edf6ff;
  --text: #10233d;
  --text-strong: #07172c;
  --muted: #5f7188;
  --accent: #1677ff;
  --accent-strong: #075dcc;
  --accent-soft: #dcecff;
  --accent-2: #36b7ff;
  --line: #dce8f5;
  --line-strong: #bfd7ef;
  --success: #20a66a;
  --shadow: 0 24px 80px rgba(36, 92, 145, 0.12);
  --shadow-soft: 0 12px 34px rgba(36, 92, 145, 0.09);
  --header: rgba(246, 250, 255, 0.78);
  --grid: rgba(22, 119, 255, 0.08);
  --selection: #1677ff;
  --selection-text: #ffffff;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --max: 1240px;
  --header-h: 76px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080808;
  --bg-elevated: #11110f;
  --surface: rgba(18, 18, 16, 0.86);
  --surface-solid: #141412;
  --surface-soft: #1b1a13;
  --text: #f5f3e9;
  --text-strong: #fffdf0;
  --muted: #aaa79b;
  --accent: #ffd400;
  --accent-strong: #f0c400;
  --accent-soft: #302a08;
  --accent-2: #ff9f1c;
  --line: #2e2c22;
  --line-strong: #514b27;
  --success: #a5dc58;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.3);
  --header: rgba(8, 8, 8, 0.78);
  --grid: rgba(255, 212, 0, 0.07);
  --selection: #ffd400;
  --selection-text: #080808;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 36%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 30rem);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--selection);
  color: var(--selection-text);
}

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

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--selection-text);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 60px);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--header);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 720;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--selection-text);
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 0.9rem;
  font-weight: 560;
}

.site-nav a {
  position: relative;
  color: var(--muted);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text-strong);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-controls,
.theme-picker {
  display: flex;
  align-items: center;
}

.header-controls {
  justify-content: flex-end;
  gap: 12px;
}

.theme-picker {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.theme-picker button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-picker button[aria-pressed="true"] {
  background: var(--surface-soft);
  color: var(--text-strong);
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(128, 128, 128, 0.32);
  border-radius: 50%;
}

.theme-swatch.light {
  background: linear-gradient(135deg, #fff 50%, #1677ff 50%);
}

.theme-swatch.dark {
  background: linear-gradient(135deg, #0a0a0a 50%, #ffd400 50%);
}

.control-label {
  display: none;
  font-size: 0.72rem;
}

.language-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--text);
}

.section-shell,
.hero-grid,
.site-footer {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.section-shell {
  padding-block: clamp(88px, 12vw, 170px);
}

main > .section-shell {
  content-visibility: auto;
  contain-intrinsic-size: auto 960px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(42px, 7vw, 84px);
}

.section-heading > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.section-heading.compact {
  margin-bottom: 38px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding-block: calc(var(--header-h) + 50px) 80px;
  overflow: clip;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

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

.hero h1 {
  display: flex;
  margin-bottom: 30px;
  flex-direction: column;
  font-size: clamp(3.6rem, 9.2vw, 8.8rem);
  line-height: 0.84;
}

.hero h1 > span {
  margin-bottom: 24px;
  font-size: 0.38em;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero h1 em {
  width: max-content;
  max-width: 100%;
  color: transparent;
  font-size: 0.52em;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 1.08;
  -webkit-text-stroke: 1.7px var(--text-strong);
  transition: color 180ms ease, transform 180ms ease;
}

.hero h1 em:hover {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
  transform: translateX(12px);
}

.hero-tagline {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 570;
  line-height: 1.45;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 720;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--selection-text);
}

.button.secondary {
  background: var(--surface);
  color: var(--text-strong);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.87rem;
}

.availability span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 16%, transparent);
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 52%;
  width: min(78vw, 1100px);
  opacity: 0.5;
  pointer-events: none;
  transform: translate(calc(-50% + var(--hero-x, 0px)), calc(-50% + var(--hero-y, 0px)));
  transition: transform 160ms linear;
}

.hero-orbit svg {
  width: 100%;
  overflow: visible;
}

.orbit-line {
  fill: none;
  stroke: var(--accent);
  stroke-dasharray: 9 12;
  stroke-width: 1.3;
}

.line-a {
  animation: dash 30s linear infinite;
}

.line-b {
  animation: dash 24s linear infinite reverse;
}

.line-c {
  animation: dash 36s linear infinite;
}

.hero-orbit circle {
  fill: var(--accent);
}

@keyframes dash {
  to {
    stroke-dashoffset: -420;
  }
}

.portrait-stage {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 0.84;
}

.portrait-frame {
  position: absolute;
  z-index: 3;
  inset: 8% 10%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 48% 48% 26% 26% / 34% 34% 18% 18%;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--bg) 92%, transparent));
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.82) contrast(1.03);
}

.portrait-ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.ring-one {
  inset: 1% 3% 9%;
  animation: spin 28s linear infinite;
}

.ring-two {
  inset: 14% -8% 0%;
  border-style: dashed;
  animation: spin 34s linear infinite reverse;
}

.ring-one::before,
.ring-two::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.ring-one::before {
  top: 12%;
  left: 7%;
}

.ring-two::after {
  right: 10%;
  bottom: 14%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.portrait-label {
  position: absolute;
  z-index: 5;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text-strong);
  font-size: 0.75rem;
  font-weight: 720;
  backdrop-filter: blur(14px);
}

.label-people {
  top: 10%;
  left: -2%;
}

.label-systems {
  top: 44%;
  right: -11%;
}

.label-ideas {
  bottom: 12%;
  left: -4%;
}

.conversation {
  display: grid;
  grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(32px, 7vw, 100px);
}

.conversation-heading {
  position: sticky;
  top: calc(var(--header-h) + 44px);
}

.conversation-heading h2 {
  margin-bottom: 16px;
}

.conversation-heading > p:last-child {
  color: var(--muted);
}

.chat-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.chat-toolbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.assistant-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-avatar,
.message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--selection-text);
  font-weight: 800;
}

.assistant-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.76rem;
}

.assistant-identity div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.assistant-identity small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
}

.local-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.local-badge[data-state="api"] {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent-strong);
}

.local-badge[data-state="api"] i {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chat-log {
  display: flex;
  min-height: 270px;
  max-height: 520px;
  padding: 26px 22px;
  overflow-y: auto;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  max-width: 88%;
  align-items: flex-start;
  gap: 10px;
  animation: message-in 300ms ease both;
}

.message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 31px;
  height: 31px;
  font-size: 0.62rem;
}

.user-message .message-avatar {
  background: var(--text-strong);
  color: var(--bg);
}

.message-bubble {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px 18px 18px 18px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.94rem;
}

.user-message .message-bubble {
  border-color: var(--accent);
  border-radius: 18px 6px 18px 18px;
  background: var(--accent);
  color: var(--selection-text);
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.message-jump {
  display: inline-flex;
  margin-top: 9px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 760;
}

.typing-bubble {
  display: flex;
  min-width: 66px;
  align-items: center;
  gap: 5px;
}

.typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 800ms ease-in-out infinite alternate;
}

.typing-bubble i:nth-child(2) {
  animation-delay: 160ms;
}

.typing-bubble i:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes typing {
  to {
    opacity: 0.3;
    transform: translateY(-4px);
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.quick-prompts {
  display: flex;
  padding: 4px 20px 14px;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: thin;
}

.prompt-chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.prompt-chip:hover,
.prompt-chip:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
  padding: 7px 8px 7px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}

.chat-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chat-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.chat-form input::placeholder {
  color: var(--muted);
  opacity: 0.86;
}

.send-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--selection-text);
  font-size: 1.15rem;
  cursor: pointer;
}

.chat-privacy {
  margin: 10px 24px 18px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

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

.answer-card,
.capability-card,
.learning-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.answer-card {
  padding: clamp(24px, 4vw, 38px);
}

.answer-card h3 {
  margin-bottom: 14px;
}

.answer-card p,
.capability-card p,
.learning-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-top: 28px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--text-strong);
  color: var(--bg);
}

.profile-summary > p {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.65;
}

.summary-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-summary .text-link {
  color: var(--bg);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric {
  min-height: 220px;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-list {
  display: grid;
  gap: clamp(34px, 7vw, 90px);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.project-card:nth-child(even) .project-media {
  order: 2;
}

.project-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--surface-soft);
}

.project-zoom-button {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.project-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.5));
  content: "";
  pointer-events: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-zoom-label {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 24px;
  border: 1px solid color-mix(in srgb, #fff 42%, transparent);
  border-radius: 999px;
  padding: 9px 13px;
  background: color-mix(in srgb, #07111f 58%, transparent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-zoom-button:hover .project-zoom-label,
.project-zoom-button:focus-visible .project-zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.project-number {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  color: #fff;
  font-size: 3rem;
  font-weight: 250;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.project-copy {
  padding: clamp(28px, 5vw, 62px);
}

.project-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
}

.project-summary {
  color: var(--muted);
  font-size: 1.05rem;
}

.project-facts {
  margin: 30px 0;
}

.project-facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding-block: 15px;
  border-top: 1px solid var(--line);
}

.site-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  background: color-mix(in srgb, #06111f 84%, transparent);
  backdrop-filter: blur(14px);
}

.site-lightbox[hidden] {
  display: none !important;
}

.site-lightbox-inner {
  position: relative;
  width: min(100%, 1120px);
  max-height: calc(100svh - 48px);
  overflow: auto;
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}

.site-lightbox-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  left: calc(100% - 58px);
  display: grid;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--selection-text);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 850;
}

.site-lightbox-image {
  width: 100%;
  min-height: min(76svh, 760px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.site-lightbox-caption {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.project-facts dt {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-list {
  display: flex;
  margin: 0 0 24px;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.tag-list li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.68rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--accent-strong);
  font-weight: 750;
}

.capability-map {
  position: relative;
  min-height: 680px;
}

.capability-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--line-strong);
  stroke-dasharray: 8 10;
  stroke-width: 1.3;
}

.capability-lines circle {
  fill: var(--accent);
  stroke: none;
}

.capability-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--text-strong);
  box-shadow: 0 0 0 18px var(--accent-soft), var(--shadow);
  color: var(--bg);
  transform: translate(-50%, -50%);
}

.capability-center strong {
  font-size: 1.35rem;
}

.capability-center span {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 110px 18px;
  padding-top: 10px;
}

.capability-card {
  min-height: 215px;
  padding: 26px;
}

.capability-card:nth-child(2),
.capability-card:nth-child(5) {
  transform: translateY(34px);
}

.capability-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.capability-icon svg {
  width: 24px;
  height: 24px;
}

.capability-card h3 {
  margin-bottom: 12px;
}

.timeline {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 188px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 60px;
  padding-bottom: 64px;
}

.timeline-item::before {
  position: absolute;
  top: 8px;
  left: 181px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  content: "";
}

.timeline-date {
  padding-top: 4px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 780;
  letter-spacing: 0.03em;
  text-align: right;
}

.timeline-copy {
  padding: 0 0 6px;
}

.timeline-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
}

.timeline-company {
  color: var(--accent-strong);
  font-weight: 680;
}

.timeline-copy > p:not(.timeline-company),
.timeline-copy li {
  color: var(--muted);
}

.timeline-copy ul {
  padding-left: 1.2rem;
}

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

.learning-card {
  min-height: 270px;
  padding: 28px;
}

.learning-card > span {
  display: block;
  margin-bottom: 38px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.learning-card .provider {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 720;
}

.education-block {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(30px, 7vw, 90px);
  margin-top: clamp(70px, 10vw, 130px);
}

.education-block > h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.education-list {
  border-top: 1px solid var(--line-strong);
}

.education-item {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 24px;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}

.education-item > span {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 780;
}

.education-item h3 {
  margin-bottom: 7px;
}

.education-item p,
.education-item small {
  color: var(--muted);
}

.education-item p {
  margin-bottom: 3px;
}

.vault-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 70px;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.vault-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 22px;
  background: var(--text-strong);
  color: var(--bg);
  font-size: 2rem;
}

.vault-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.vault-card p:not(.eyebrow) {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--muted);
}

.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
}

.community-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.community-media img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.community-copy h2 {
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.community-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.privacy-callout {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text) !important;
  font-size: 0.88rem;
}

.contact {
  text-align: center;
}

.contact > h2 {
  max-width: 950px;
  margin-inline: auto;
  font-size: clamp(3rem, 8vw, 8rem);
}

.contact > p:not(.eyebrow) {
  max-width: 690px;
  margin: 0 auto 48px;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}

.contact-card {
  position: relative;
  display: flex;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  flex-direction: column;
  justify-content: flex-end;
}

.contact-card span {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
}

.contact-card i {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--accent);
  font-size: 1.4rem;
  font-style: normal;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 30px;
  padding-block: 44px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 530px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-links a:hover,
.back-top:hover {
  color: var(--accent-strong);
}

.back-top {
  color: var(--muted);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

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

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  transition: width 150ms ease, height 150ms ease, background 150ms ease;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
}

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

@media (min-width: 1180px) {
  .control-label {
    display: inline;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 18px;
    left: 18px;
    display: grid;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-controls {
    order: 3;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.72fr;
  }

  .project-media {
    min-height: 460px;
  }

  .capability-map {
    min-height: auto;
  }

  .capability-lines,
  .capability-center {
    display: none;
  }

  .capability-grid {
    gap: 16px;
  }

  .capability-card:nth-child(2),
  .capability-card:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .conversation,
  .project-card,
  .community,
  .education-block {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-h) + 72px);
  }

  .hero-copy {
    order: 1;
  }

  .portrait-stage {
    order: 2;
    max-width: 390px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 7rem);
  }

  .hero h1 em {
    width: auto;
  }

  .conversation-heading {
    position: static;
  }

  .answer-grid,
  .learning-grid,
  .contact-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .answer-card:last-child,
  .contact-card:last-child {
    grid-column: 1 / -1;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .project-card:nth-child(even) .project-media {
    order: 0;
  }

  .project-media {
    min-height: 380px;
    aspect-ratio: 4 / 3;
  }

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

  .vault-card {
    grid-template-columns: auto 1fr;
  }

  .vault-card .button {
    grid-column: 1 / -1;
  }

  .community-media img {
    min-height: 380px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 68px;
  }

  body {
    background-size: 44px 44px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    padding-inline: 14px;
  }

  .brand > span:last-child {
    display: none;
  }

  .theme-picker {
    border: 0;
    background: transparent;
  }

  .theme-picker button {
    padding-inline: 5px;
  }

  .language-link {
    padding: 7px 9px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    padding-inline: 7px;
  }

  .section-shell {
    padding-block: 82px;
  }

  .hero-grid {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: 3.35rem;
    gap: 2px;
    line-height: 1;
  }

  .hero h1 > span {
    margin-bottom: 18px;
  }

  .hero h1 em {
    color: var(--text-strong);
    font-size: 0.43em;
    line-height: 1.28;
    -webkit-text-stroke: 0;
  }

  .hero h1 em:hover {
    color: var(--accent);
    transform: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .portrait-stage {
    max-width: 310px;
  }

  .portrait-label {
    font-size: 0.65rem;
  }

  .conversation {
    width: 100%;
  }

  .conversation-heading {
    width: calc(100% - 36px);
    margin-inline: auto;
  }

  .chat-window {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .chat-log {
    min-height: 250px;
    padding-inline: 16px;
  }

  .message {
    max-width: 94%;
  }

  .quick-prompts {
    padding-inline: 14px;
  }

  .chat-form {
    margin-inline: 14px;
  }

  .answer-grid,
  .learning-grid,
  .contact-actions,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .answer-card:last-child,
  .contact-card:last-child {
    grid-column: auto;
  }

  .profile-summary {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 180px;
    padding: 22px;
  }

  .metric strong {
    font-size: 3.1rem;
  }

  .project-media {
    min-height: 280px;
  }

  .project-copy {
    padding: 25px 22px 32px;
  }

  .project-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .timeline::before {
    left: 7px;
  }

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

  .timeline-item::before {
    left: 0;
  }

  .timeline-date {
    text-align: left;
  }

  .education-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vault-card {
    grid-template-columns: 1fr;
  }

  .vault-card .button {
    grid-column: auto;
  }

  .community-media img {
    min-height: 290px;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

@media print {
  .site-header,
  .hero-orbit,
  .cursor-dot,
  .cursor-ring,
  .chat-form,
  .quick-prompts,
  .back-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

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

  .section-shell {
    padding-block: 40px;
  }

  .project-card,
  .answer-card,
  .learning-card,
  .chat-window {
    break-inside: avoid;
    box-shadow: none;
  }
}
