:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --ink: #0d0d0d;
  --muted: #626262;
  --line: #e6e6e6;
  --accent: #0d0d0d;
  --accent-strong: #0d0d0d;
  --on-accent: #ffffff;
  --accent-soft: rgba(17, 17, 17, 0.06);
  --accent-muted: rgba(17, 17, 17, 0.16);
  --font-main: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.08);
  --max: 1080px;
  --pad: clamp(20px, 5vw, 48px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #171717;
  --surface-soft: #202020;
  --ink: #f2f2f2;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.12);
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-muted: rgba(255, 255, 255, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.22), 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.28);
}

[data-palette="ink"] {
  --accent: #111111;
  --accent-strong: #111111;
}

[data-palette="cobalt"] {
  --accent: #2454d6;
  --accent-strong: #173fa8;
}

[data-palette="plum"] {
  --accent: #7a2e66;
  --accent-strong: #5d214e;
}

[data-palette="copper"] {
  --accent: #9a4f2f;
  --accent-strong: #783a22;
}

[data-theme="dark"][data-palette="ink"] {
  --accent: #ffffff;
  --accent-strong: #ffffff;
  --on-accent: #0f0f0f;
}

[data-font="system"] {
  --font-main: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-font="editorial"] {
  --font-main: Georgia, "Times New Roman", serif;
}

[data-font="technical"] {
  --font-main: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--on-accent);
  background: var(--accent-strong);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
}

nav a {
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch button {
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.language-switch button.active {
  color: var(--on-accent);
  background: var(--accent-strong);
}

.style-toggle {
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

nav a:hover,
.contact-links a:hover,
.work-list a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(30px, 5vw, 58px);
  align-items: center;
  max-width: var(--max);
  min-height: auto;
  margin: 0 auto;
  padding: clamp(52px, 8vh, 84px) var(--pad) clamp(54px, 8vh, 92px);
}

.hero > * {
  min-width: 0;
}

.role-line {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

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

.hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.hero-summary {
  max-width: 46ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.4vw, 18px);
  line-height: 1.58;
}

.actions,
.contact-links,
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: var(--on-accent);
  background: var(--accent-strong);
}

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

.executive-card {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.executive-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  filter: grayscale(1) contrast(1.04);
}

.executive-card .portrait-image {
  object-position: center 24%;
  filter: grayscale(0.08) contrast(1.03);
}

.profile-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.profile-strip span {
  padding: 12px 14px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.signal-list {
  display: grid;
  gap: 11px;
  padding: 6px 6px 4px;
}

.signal-list p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.signal-list strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.signal-list span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.48;
}

.board {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.board article {
  min-height: 220px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.board article:first-child {
  background: var(--accent-soft);
  color: var(--ink);
}

.board span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.board article:first-child span,
.board article:first-child p {
  color: var(--muted);
}

.board h2 {
  margin: 18px 0 12px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.board p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
}

.work-section,
.skills-section,
.method-section,
.video-section,
.stack-section,
.experience-section,
.meeting-section,
.closing {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(62px, 8vw, 92px) var(--pad);
}

.section-title {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-title.compact {
  margin-bottom: 26px;
}

.section-title h2,
.resume-section h2,
.closing p {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.section-title p,
.resume-section p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.method-section {
  padding-top: clamp(54px, 7vw, 78px);
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-list article {
  display: grid;
  grid-template-columns: 120px minmax(220px, 0.44fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.method-list span,
.timeline time {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.method-list h3,
.timeline h3 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 650;
}

.method-list p,
.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-work {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  padding: clamp(24px, 4vw, 36px);
  color: #fff;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-strong) 92%, transparent), rgba(17, 17, 17, 0.68)),
    url("assets/images/scientific-ai-hero.jpg");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
}

.feature-work h3 {
  max-width: 15ch;
  margin-bottom: 16px;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.feature-work p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

.feature-work a {
  width: fit-content;
  margin-top: 12px;
  color: #fff;
  font-weight: 650;
}

.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.work-list article {
  min-height: 200px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-list h3,
.skill-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.22;
}

.work-list p,
.skill-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.56;
}

.skills-section {
  background: transparent;
}

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.52fr);
  gap: 28px;
  align-items: stretch;
  padding-top: clamp(18px, 3vw, 34px);
}

.media-links {
  display: grid;
  gap: 12px;
}

.video-copy {
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.video-copy h2 {
  max-width: 15ch;
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.video-copy p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.video-panel {
  position: relative;
  display: flex;
  min-height: 254px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-strong) 90%, transparent), rgba(17, 17, 17, 0.62)),
    url("assets/images/scientific-ai-hero.jpg");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.play-button {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}

.video-panel strong {
  font-size: 27px;
  line-height: 1.08;
  font-weight: 650;
}

.video-panel small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.youtube-card {
  display: grid;
  min-height: 148px;
  align-content: end;
  padding: 22px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.youtube-card span {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.youtube-card strong {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 650;
}

.youtube-card small {
  max-width: 38ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.youtube-card:hover {
  border-color: var(--accent-muted);
  background: var(--surface-soft);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stack-section {
  background: transparent;
  padding-top: 0;
}

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

.stack-grid div {
  min-height: 164px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stack-grid div:nth-child(2),
.stack-grid div:nth-child(5) {
  background: var(--surface-soft);
}

.stack-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 650;
}

.stack-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.56;
}

.experience-section {
  padding-top: 0;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skill-grid div {
  min-height: 238px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skill-grid div:nth-child(2),
.skill-grid div:nth-child(4) {
  background: var(--surface-soft);
}

.resume-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  max-width: var(--max);
  margin: clamp(58px, 8vw, 86px) auto 0;
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.meeting-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.78fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 42px);
  color: var(--on-accent);
  background: var(--accent-strong);
  border-radius: var(--radius-lg);
}

.meeting-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.meeting-section h2 {
  max-width: 14ch;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.meeting-section p {
  max-width: 68ch;
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--on-accent) 78%, transparent);
  font-size: 16.5px;
  line-height: 1.6;
}

.meeting-section .role-line {
  color: color-mix(in srgb, var(--on-accent) 76%, transparent);
}

.meeting-section .button.secondary {
  width: fit-content;
  color: var(--on-accent);
  border-color: color-mix(in srgb, var(--on-accent) 70%, transparent);
  background: transparent;
}

.calendly-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
}

.calendly-inline-widget {
  width: 100%;
}

.resume-section h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.resume-actions {
  justify-content: flex-end;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.74fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(62px, 8vw, 92px) var(--pad);
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  max-width: 16ch;
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.site-footer p {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.footer-panel {
  display: grid;
  gap: 20px;
}

.availability-grid {
  display: grid;
  gap: 10px;
}

.availability-grid span {
  padding: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 650;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.social-links a:hover,
.style-toggle:hover,
.quick-prompts button:hover {
  color: var(--on-accent);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.style-panel {
  position: fixed;
  top: 76px;
  right: clamp(16px, 3vw, 28px);
  z-index: 35;
  display: grid;
  width: min(340px, calc(100vw - 32px));
  gap: 18px;
  padding: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.style-panel[hidden] {
  display: none;
}

.style-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.style-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

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

.control-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.segmented-control,
.palette-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control.stacked {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.segmented-control button,
.palette-options button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.segmented-control button.active,
.palette-options button.active {
  color: var(--on-accent);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.palette-options button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.palette-options span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

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

.chat-launcher {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  min-width: 72px;
  height: 46px;
  padding: 0 18px;
  color: var(--on-accent);
  background: var(--accent-strong);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.16);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.faq-chat {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + 62px);
  z-index: 31;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 112px));
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.faq-chat[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--accent-strong);
  color: #fff;
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.chat-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 14px;
  overflow-y: auto;
  background: var(--surface-soft);
}

.chat-message {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}

.chat-message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  color: var(--on-accent);
  background: var(--accent-strong);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
  background: var(--surface);
}

.quick-prompts button {
  padding: 7px 10px;
  color: var(--accent-strong);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 14px 14px;
  background: var(--surface);
}

.chat-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
}

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

.chat-form button {
  height: 42px;
  padding: 0 14px;
  color: var(--on-accent);
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.closing p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.16;
}

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

.contact-links a {
  color: var(--accent-strong);
  font-weight: 650;
}

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

  .button {
    transition: none;
  }
}

@media (max-width: 1040px) {
  .hero,
  .work-layout,
  .video-section,
  .meeting-section,
  .site-footer,
  .closing {
    grid-template-columns: 1fr;
  }

  .board,
  .skill-grid,
  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    min-height: auto;
    padding-block: 16px;
  }

  nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 8px;
    font-size: 11px;
  }

  .language-switch {
    margin-top: 2px;
  }

  .style-toggle {
    margin-top: 2px;
  }

  .style-panel {
    top: 126px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100dvh - 146px);
    overflow: auto;
  }

  nav a {
    min-width: 0;
    padding-right: 0;
    overflow-wrap: anywhere;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy,
  .executive-card,
  .video-copy,
  .video-panel {
    width: 100%;
    max-width: min(100%, calc(100vw - 40px));
  }

  .hero h1 {
    width: 100%;
    max-width: 340px;
    font-size: clamp(28px, 7.6vw, 31px);
    line-height: 1.08;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .hero-summary {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .executive-card {
    padding: 10px;
  }

  .profile-strip,
  .board,
  .work-list,
  .skill-grid,
  .stack-grid,
  .method-list article,
  .timeline article,
  .meeting-section,
  .resume-section {
    grid-template-columns: 1fr;
  }

  .calendly-inline-widget {
    min-width: 100% !important;
    height: 680px !important;
  }

  .board {
    margin-inline: auto;
    padding-inline: 20px;
  }

  .work-list article,
  .skill-grid div {
    min-height: auto;
  }

  .resume-section {
    align-items: start;
  }

  .resume-actions {
    justify-content: flex-start;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .faq-chat {
    right: 14px;
    bottom: 76px;
    width: calc(100vw - 28px);
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .site-footer h2 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 40px);
  }

  .segmented-control.stacked {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 44px;
  }

  .signal-list span,
  .profile-strip span,
  .method-list p,
  .timeline p {
    overflow-wrap: break-word;
  }
}
