:root {
  --bg: #f4f5f7;
  --ink: #111418;
  --muted: #5f6873;
  --line: rgba(60, 73, 89, 0.16);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(1300px 620px at 8% -14%, rgba(10, 132, 255, 0.14), transparent 66%),
    radial-gradient(1000px 480px at 92% 10%, rgba(90, 200, 250, 0.1), transparent 70%),
    linear-gradient(160deg, #fbfbfd 0%, #f4f5f7 56%, #eef2f6 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  z-index: 25;
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.site-header-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.current-section {
  font-size: 13px;
  color: #5d6977;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.86);
}

.site-links {
  display: flex;
  gap: 14px;
}

.site-links a {
  text-decoration: none;
  color: #404b58;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-links a:hover {
  color: var(--accent);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.site-links a.active {
  color: #005fcb;
  border-color: rgba(10, 132, 255, 0.35);
  background: rgba(10, 132, 255, 0.1);
}

.flare {
  position: fixed;
  border-radius: 999px;
  filter: blur(62px);
  z-index: -2;
  opacity: 0.26;
  animation: drift 10s ease-in-out infinite alternate;
}

.flare-a {
  width: 280px;
  height: 280px;
  left: -70px;
  top: -70px;
  background: rgba(10, 132, 255, 0.24);
}

.flare-b {
  width: 340px;
  height: 340px;
  right: -90px;
  top: 120px;
  background: rgba(90, 200, 250, 0.24);
  animation-duration: 12.5s;
}

.layout {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 86px 0 64px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.hero,
.panel,
.foot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  min-width: 0;
}

.hero {
  padding: 34px;
  box-shadow: 0 14px 36px rgba(17, 20, 24, 0.08);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 300px);
  gap: 28px;
  align-items: center;
}

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

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.hero-portrait-card {
  margin: 0;
  width: min(100%, 300px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.88));
  box-shadow: 0 14px 30px rgba(17, 20, 24, 0.08);
}

.hero-portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  background: #edf3f8;
  border: 1px solid rgba(60, 73, 89, 0.08);
}

.tag {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0067d6;
  font-weight: 700;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

#headline {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
  font-weight: 590;
}

#about {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.63;
}

.hero-banner {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(130deg, #f8fbff, #edf3ff 55%, #eef5f2);
}

.hero-banner img {
  width: 100%;
  max-height: 320px;
  display: block;
  object-fit: cover;
}

.hero-banner figcaption {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #4a5562;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

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

.cta a,
.cta button {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-solid);
  color: var(--ink);
  padding: 11px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease;
  cursor: pointer;
  font-family: inherit;
}

.cta a:hover,
.cta button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.nav a {
  text-decoration: none;
  color: #3f4853;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.65);
}

.nav a:hover {
  color: var(--accent);
  border-color: var(--line);
  background: #ffffff;
}

.panel {
  padding: 24px;
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  letter-spacing: -0.015em;
  font-weight: 650;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
}

#cvHighlights,
#contactList {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

#cvHighlights li,
#contactList li {
  line-height: 1.55;
}

#contactList a,
#contactList button {
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}


.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(17, 20, 24, 0.04);
}

.card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.company-name-link {
  color: inherit;
  text-decoration: none;
}

.company-name-link:hover {
  color: var(--accent);
}

.company-card {
  display: grid;
  gap: 10px;
}

.company-main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
}

.company-logo-link {
  display: inline-flex;
}

.company-logo {
  width: 64px;
  height: 64px;
  border: 1px solid #d7e1eb;
  border-radius: 12px;
  object-fit: cover;
  background: #f4f7fb;
}

.company-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.expand-btn {
  border: 1px solid var(--line);
  background: #f7f8fa;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.company-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.08);
  color: #0b63cb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.company-cred {
  border-top: 1px dashed #d8e1ea;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.project-card {
  display: grid;
  gap: 10px;
}

.project-main {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

.project-preview {
  width: 120px;
  height: 82px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f7fb;
}

.project-detail {
  border-top: 1px dashed #d8e1ea;
  padding-top: 10px;
}

.project-detail[hidden] {
  display: none;
}

.company-cred[hidden] {
  display: none;
}

.cred-list {
  display: grid;
  gap: 8px;
}

.cred-item {
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  padding: 10px;
  background: #fafcff;
}

.cred-item p {
  margin: 6px 0 0;
  font-size: 13px;
}

.cred-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4f6f86;
  font-weight: 700;
}

.cred-link {
  margin-top: 7px;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.role-labels {
  margin-top: 8px;
}

.role-labels .chips {
  margin-top: 0;
}

.meta {
  margin: 5px 0 0;
  font-size: 13px;
  color: #3c6b86;
}

.card p {
  margin: 8px 0 0;
  line-height: 1.56;
  color: var(--muted);
}

.chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  font-size: 12px;
  border: 1px solid #d8e2ec;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f9fbff;
}

.proof {
  margin-top: 9px;
  font-size: 13px;
}

.proof strong {
  color: var(--ink);
}

.row-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.row-links a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.linkedin-posts-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.linkedin-carousel-controls {
  display: inline-flex;
  gap: 8px;
}

.linkedin-carousel-controls button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.linkedin-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.linkedin-carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.linkedin-carousel-track.is-animating {
  transition: transform 420ms ease;
}

.linkedin-slide {
  flex: 0 0 min(420px, calc(50vw - 56px));
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
}

.linkedin-slide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.linkedin-slide-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.linkedin-slide-head a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.linkedin-slide-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.linkedin-slide-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
  width: 100%;
  max-width: 100%;
  min-height: 196px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
}

.linkedin-slide-frame.is-embed {
  padding: 0;
  min-height: 560px;
  background: #fff;
}

.linkedin-slide-frame.is-embed .linkedin-embed {
  margin: 0;
  width: 100%;
  height: 100%;
}

.linkedin-slide-frame.is-embed .linkedin-embed-shell,
.linkedin-slide-frame.is-embed .linkedin-embed-frame {
  width: 100%;
  max-width: none;
  min-height: 560px;
  border: 0;
  border-radius: 0;
}

.linkedin-slide-frame.is-embed .linkedin-embed-shell--carousel {
  display: grid;
  place-items: center;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.12), transparent 46%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
}

.linkedin-slide-frame.is-embed .linkedin-embed-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.linkedin-embed-pulse {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.12);
  box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.22);
  animation: linkedin-pulse 1.8s ease-in-out infinite;
}

.linkedin-slide-frame.is-embed iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

.linkedin-slide-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0067d6;
}

.linkedin-slide-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 38ch;
}

.linkedin-slide-url {
  margin: auto 0 0;
  font-size: 13px;
  color: #3f4853;
  font-weight: 600;
}

.linkedin-embed {
  margin-top: 14px;
}

.linkedin-embed-shell,
.linkedin-embed-frame {
  width: 100%;
  max-width: 504px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
}

.linkedin-embed-shell {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.linkedin-embed-load {
  border: 1px solid rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.1);
  color: #005fcb;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.linkedin-embed-frame iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
}

@keyframes linkedin-pulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.18);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(10, 132, 255, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(10, 132, 255, 0);
  }
}

.fit {
  border: 1px dashed #c8d6e6;
  border-radius: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--accent-soft);
  font-size: 13px;
}

.fit strong {
  color: var(--ink);
}

.foot {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 14;
  border: 1px solid rgba(10, 132, 255, 0.32);
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  color: #005fcb;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(10, 132, 255, 0.22);
  isolation: isolate;
}

.guide-fab {
  position: fixed;
  right: 20px;
  bottom: 76px;
  z-index: 14;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(14, 25, 36, 0.12);
}

.lang-fab {
  position: fixed;
  right: 20px;
  bottom: 126px;
  z-index: 14;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(14, 25, 36, 0.12);
}

.chat-fab::before,
.chat-fab::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  pointer-events: none;
}

.chat-fab::before {
  border: 2px solid rgba(26, 228, 255, 0.75);
  filter: blur(2px);
  animation: neonPulse 1.8s ease-out infinite;
}

.chat-fab::after {
  border: 2px solid rgba(255, 167, 51, 0.55);
  animation: neonPulse 1.8s ease-out infinite 0.9s;
}

.chat-popup {
  position: fixed;
  right: 20px;
  bottom: 74px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(76vh, 700px);
  z-index: 15;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 20px 50px rgba(36, 56, 77, 0.25);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.hidden {
  display: none;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-head h3 {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

#chatClose {
  border: 1px solid var(--line);
  background: #f6f7f9;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

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

.chat-turnstile {
  min-height: 64px;
}

.chat-log {
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
  overflow: auto;
  max-height: 280px;
  display: grid;
  gap: 8px;
}

.msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 10px;
  padding: 8px 10px;
}

.msg.user {
  justify-self: end;
  background: #e9f8f3;
  border: 1px solid #c2e8de;
}

.msg.ai {
  justify-self: start;
  background: #fff8ea;
  border: 1px solid #f3dfb8;
}

.chat-form {
  display: grid;
  gap: 8px;
}

.chat-form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 84px;
  font: inherit;
  resize: vertical;
}

.chat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#chatSubmit {
  border: 1px solid #0a84ff;
  background: linear-gradient(180deg, #2a9bff, #0a84ff);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 40px;
  font-weight: 700;
  cursor: pointer;
}

#chatSubmit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#chatQuota,
.chat-state {
  color: var(--muted);
  font-size: 12px;
}

.guide-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-actions button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  font-weight: 700;
  cursor: pointer;
}

.guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #d3dce5;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: 700;
}

.tour-target {
  position: relative;
  z-index: 17 !important;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(12, 17, 25, 0.6),
    0 0 0 3px rgba(61, 238, 255, 0.95),
    0 0 24px rgba(61, 238, 255, 0.6);
}

.chat-fab.tour-target {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
}

.tour-popover {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 19;
  width: min(380px, calc(100vw - 20px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 24px 48px rgba(14, 25, 36, 0.26);
  padding: 16px;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
}

.contact-modal.hidden {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 25, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-modal-card {
  position: relative;
  width: min(430px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 48px rgba(14, 25, 36, 0.24);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f6f86;
  font-weight: 700;
}

.contact-modal-card h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.contact-modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-modal-qr {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.contact-modal-qr img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

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

.contact-modal-primary,
.contact-modal-secondary {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}

.contact-modal-primary {
  border: 1px solid #0a84ff;
  background: linear-gradient(180deg, #2a9bff, #0a84ff);
  color: #ffffff;
}

.contact-modal-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.contact-modal-feedback {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: #0a7a43;
}

.tour-step {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4f6f86;
  font-weight: 700;
}

.tour-popover h4 {
  margin: 10px 0 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.55);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .flare,
  .chat-fab::before,
  .chat-fab::after {
    animation: none;
  }
}

.tour-popover p {
  margin: 10px 0 0;
  color: var(--muted);
}

#tourNext {
  border-color: #0a84ff;
  background: linear-gradient(180deg, #2a9bff, #0a84ff);
  color: #ffffff;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(18px, -10px) scale(1.06);
  }
}

@keyframes neonPulse {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }

  70% {
    opacity: 0;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    width: min(1080px, 95vw);
  }

  .layout {
    width: min(1080px, 95vw);
    padding: 78px 0 120px;
    gap: 10px;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-aside {
    justify-content: flex-start;
  }

  .hero-portrait-card {
    width: min(100%, 340px);
  }

  .company-main {
    grid-template-columns: 1fr;
  }

  .project-main {
    grid-template-columns: 1fr;
  }

  .project-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

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

  .chat-fab {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .guide-fab {
    right: 12px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .lang-fab {
    right: 12px;
    bottom: calc(114px + env(safe-area-inset-bottom, 0px));
  }

  .chat-popup {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    max-height: min(78vh, 700px);
  }

  .tour-popover {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 58px;
  }

  .site-header-inner {
    width: min(1080px, 96vw);
    gap: 10px;
  }

  .site-logo {
    font-size: 15px;
    white-space: nowrap;
  }

  .site-links {
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .site-links a {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 5px 7px;
  }

  .current-section {
    display: none;
  }

  .layout {
    padding-top: 72px;
  }

  .hero {
    padding: 14px;
  }

  .hero-shell {
    gap: 12px;
  }

  .hero h1 {
    margin-top: 10px;
    font-size: clamp(1.85rem, 10vw, 2.25rem);
  }

  #headline {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  #about {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-portrait-card {
    width: min(100%, 228px);
    padding: 8px;
    margin: 0 auto;
  }

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

  .cta a,
  .cta button {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .nav {
    display: none;
  }

  .nav a {
    min-height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    text-align: center;
  }

  .panel {
    padding: 14px;
  }

  .panel h2 {
    font-size: 1.28rem;
  }

  .linkedin-posts-head {
    flex-direction: column;
    gap: 10px;
  }

  .linkedin-carousel-track {
    gap: 10px;
  }

  .linkedin-slide {
    flex-basis: min(86vw, 292px);
    padding: 10px;
  }

  .linkedin-slide-frame {
    min-height: 144px;
  }

  .linkedin-slide-frame.is-embed,
  .linkedin-slide-frame.is-embed .linkedin-embed-shell,
  .linkedin-slide-frame.is-embed .linkedin-embed-frame,
  .linkedin-slide-frame.is-embed iframe {
    min-height: 300px;
  }

  .linkedin-slide-head {
    gap: 8px;
  }

  .linkedin-slide-head h3 {
    font-size: 0.9rem;
  }

  .linkedin-slide-head a {
    font-size: 0.9rem;
  }

  .linkedin-posts-sub,
  #linkedinPostsSub {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .linkedin-carousel-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .company-top {
    flex-direction: column;
    align-items: stretch;
  }

  .expand-btn {
    width: 100%;
    min-height: 44px;
  }

  .project-main {
    gap: 12px;
  }

  .chips {
    gap: 6px;
  }

  .chips span {
    font-size: 11px;
    padding: 4px 8px;
  }

  .chat-fab,
  .guide-fab,
  .lang-fab {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 11px;
    border-radius: 18px;
  }

  .chat-fab {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 10px 20px rgba(10, 132, 255, 0.18);
  }

  .guide-fab {
    right: 8px;
    bottom: calc(54px + env(safe-area-inset-bottom, 0px));
  }

  .lang-fab {
    right: 8px;
    bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  }

  .chat-popup {
    left: 6px;
    right: 6px;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    padding: 12px;
    max-height: min(80vh, 720px);
  }

  .chat-log {
    max-height: 220px;
  }

  .contact-modal-card {
    width: min(430px, calc(100vw - 16px));
    padding: 16px;
    border-radius: 20px;
  }

  .linkedin-embed-frame iframe {
    min-height: 420px;
  }
}

@media (max-width: 420px) {
  .layout {
    width: 95vw;
  }

  .cta,
  .nav {
    grid-template-columns: 1fr;
  }

  .guide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .tour-popover {
    left: 6px;
    right: 6px;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
    padding: 12px;
  }

  .linkedin-slide {
    padding: 12px;
    flex-basis: min(84vw, 276px);
  }

  .linkedin-slide-head {
    flex-direction: column;
  }

  .linkedin-slide-frame {
    min-height: 132px;
    padding: 14px;
  }

  .linkedin-slide-frame.is-embed,
  .linkedin-slide-frame.is-embed .linkedin-embed-shell,
  .linkedin-slide-frame.is-embed .linkedin-embed-frame,
  .linkedin-slide-frame.is-embed iframe {
    min-height: 260px;
  }

  .site-links a {
    font-size: 11px;
    padding: 5px 6px;
  }

  .hero {
    padding: 12px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9.5vw, 2.05rem);
  }

  .hero-portrait-card {
    width: min(100%, 208px);
  }

  .chat-fab,
  .guide-fab,
  .lang-fab {
    right: 6px;
  }

  .guide-fab {
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  }

  .lang-fab {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .site-links {
    gap: 4px;
  }

  .site-links a {
    font-size: 12px;
    padding: 5px 6px;
  }

  .site-links a[href="/settings"] {
    display: none;
  }
}
