:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0b1020;
  --text: #f7fbff;
  --muted: #a7b2c7;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(13, 22, 42, 0.62);
  --glass-strong: rgba(20, 31, 55, 0.78);
  --cyan: #4de3ff;
  --green: #75f7b5;
  --rose: #ff6fae;
  --amber: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --font-sans: Inter, "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --h1-home: 4.6rem;
  --h1-detail: 3.25rem;
  --h2-size: 2.15rem;
  --h3-size: 1.08rem;
  --body-size: 0.98rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(77, 227, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(255, 111, 174, 0.14), transparent 25rem),
    linear-gradient(135deg, #05070d 0%, #0b1020 48%, #08111a 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

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

h1,
h2,
h3,
p,
a,
span,
li,
strong,
button,
figcaption {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px;
  border: 1px solid rgba(77, 227, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(77, 227, 255, 0.12), rgba(255, 111, 174, 0.1)),
    rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), 0 0 28px rgba(77, 227, 255, 0.08);
  transition: transform 240ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.brand,
.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #041016;
  font-size: 0.7rem;
  box-shadow: 0 0 24px rgba(77, 227, 255, 0.54);
}

.brand-mark svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-links {
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  transform: translateY(-2px);
  border-color: rgba(117, 247, 181, 0.58);
  background: linear-gradient(135deg, rgba(77, 227, 255, 0.96), rgba(117, 247, 181, 0.96));
  color: #041016;
  box-shadow: 0 14px 32px rgba(77, 227, 255, 0.22);
}

.language-switcher {
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.language-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.language-switcher button:hover,
.language-switcher button.active {
  transform: translateY(-1px);
  border-color: rgba(117, 247, 181, 0.48);
  background: linear-gradient(135deg, rgba(77, 227, 255, 0.92), rgba(117, 247, 181, 0.92));
  color: #041016;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 64px 0 56px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 14px;
  font-size: var(--h1-home);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: var(--h2-size);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--h3-size);
  line-height: 1.3;
}

.hero-title {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.25;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 750;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(117, 247, 181, 0.72);
  background: linear-gradient(135deg, rgba(77, 227, 255, 0.96), rgba(117, 247, 181, 0.96));
  color: #041016;
  box-shadow: 0 18px 44px rgba(77, 227, 255, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.glass-panel,
.glass-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--glass), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(77, 227, 255, 0.14), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.panel-header,
.profile-photo-wrap,
.signal-score,
.metric-grid {
  position: relative;
}

.profile-photo-wrap {
  width: min(220px, 72%);
  aspect-ratio: 1;
  margin: 4px auto 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), 0 0 34px rgba(77, 227, 255, 0.16);
}

.profile-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.signal-score {
  margin: 28px 0 28px;
}

.score-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.signal-score strong {
  display: block;
  margin-top: 8px;
  font-size: 4.1rem;
  line-height: 0.95;
}

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

.metric-grid div {
  min-height: 100px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.metric-grid span,
.glass-card p,
.experience-card li,
.timeline-item p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
}

.metric-grid span {
  display: block;
  min-height: 38px;
  font-size: 0.8rem;
}

.metric-grid strong {
  display: block;
  color: var(--cyan);
  font-size: 1.15rem;
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

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

.value-card {
  min-height: 320px;
}

.value-visual {
  display: grid;
  place-items: center;
  height: 128px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.value-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card,
.education-card {
  min-height: 300px;
}

.education-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.education-item:first-of-type {
  margin-top: 14px;
}

.education-item span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.education-item strong {
  display: block;
  margin-top: 8px;
}

.card-grid,
.experience-list,
.skill-clusters {
  display: grid;
  gap: 20px;
}

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

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

.glass-card {
  min-height: 250px;
  padding: 26px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) 1fr;
  gap: 28px;
  min-height: auto;
  background: rgba(13, 22, 42, 0.7);
}

.experience-card.condensed {
  align-items: center;
}

.experience-meta span,
.project-type,
.card-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experience-meta strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.role {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 750;
}

ul {
  margin: 0;
  padding-left: 1.05rem;
}

li + li {
  margin-top: 7px;
}

.skill-card {
  min-height: 380px;
}

.card-index {
  margin-bottom: 44px;
}

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

.pill-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-card {
  cursor: pointer;
  display: grid;
  grid-template-rows: 180px auto;
  gap: 22px;
  min-height: 470px;
  outline: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(77, 227, 255, 0.38);
  background: linear-gradient(145deg, rgba(18, 32, 58, 0.78), rgba(255, 255, 255, 0.06));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44), 0 0 34px rgba(77, 227, 255, 0.12);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(77, 227, 255, 0.14), rgba(255, 111, 174, 0.1)),
    rgba(255, 255, 255, 0.04);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.16) 46%, transparent 68%);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 180ms ease, transform 520ms ease;
}

.project-card:hover .project-visual::after,
.project-card:focus-visible .project-visual::after {
  opacity: 1;
  transform: translateX(70%);
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.project-card:hover .project-visual img,
.project-card:focus-visible .project-visual img {
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.04);
}

.project-content {
  display: grid;
  align-content: start;
}

.project-visual.alt {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(77, 227, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.project-visual.automation {
  background:
    linear-gradient(135deg, rgba(117, 247, 181, 0.13), rgba(77, 227, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.project-visual.brand {
  background:
    linear-gradient(135deg, rgba(255, 111, 174, 0.13), rgba(255, 209, 102, 0.11)),
    rgba(255, 255, 255, 0.04);
}

.project-open,
.detail-back {
  justify-self: start;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(77, 227, 255, 0.36);
  border-radius: 8px;
  background: rgba(77, 227, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.project-card:hover .project-open,
.project-card:focus-visible .project-open,
.detail-back:hover {
  border-color: rgba(117, 247, 181, 0.58);
  background: rgba(117, 247, 181, 0.12);
}

.detail-main {
  padding: 64px 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 48px;
  align-items: center;
  padding: 38px 0 60px;
}

.detail-visual {
  position: relative;
  z-index: 1;
  min-height: 360px;
  overflow: hidden;
}

.detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-copy h1 {
  max-width: 580px;
  font-size: var(--h1-detail);
  line-height: 1.05;
  text-wrap: balance;
}

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

.detail-card {
  min-height: auto;
}

.detail-card ul {
  color: var(--muted);
  line-height: 1.65;
}

.brand-project {
  margin-top: 22px;
}

.brand-project-list-header {
  max-width: 760px;
  margin-bottom: 22px;
}

.brand-project-list-header p:not(.project-type) {
  color: var(--muted);
  line-height: 1.7;
}

.brand-project-dropdowns {
  display: grid;
  gap: 14px;
}

.brand-project-dropdown {
  overflow: hidden;
  border: 1px solid rgba(77, 227, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.brand-project-dropdown summary {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  padding: 18px 58px 18px 18px;
  cursor: pointer;
  list-style: none;
  background:
    linear-gradient(135deg, rgba(77, 227, 255, 0.16), rgba(117, 247, 181, 0.1)),
    rgba(255, 255, 255, 0.04);
  transition: background 180ms ease, border-color 180ms ease;
}

.brand-project-dropdown summary::-webkit-details-marker {
  display: none;
}

.brand-project-dropdown summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(117, 247, 181, 0.42);
  border-radius: 8px;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.brand-project-dropdown[open] summary::after {
  content: "-";
}

.brand-project-dropdown summary:hover {
  background:
    linear-gradient(135deg, rgba(77, 227, 255, 0.24), rgba(117, 247, 181, 0.14)),
    rgba(255, 255, 255, 0.06);
}

.brand-project-dropdown summary strong {
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.22;
}

.brand-project-dropdown summary > span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.dropdown-meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(77, 227, 255, 0.3);
  border-radius: 8px;
  background: rgba(77, 227, 255, 0.09);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-project-content {
  padding: 24px 18px 18px;
}

.brand-project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 24px;
  align-items: start;
}

.brand-project-header h3 {
  font-size: 1.65rem;
  line-height: 1.16;
}

.brand-project-header p,
.brand-project-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.project-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(77, 227, 255, 0.22);
  border-radius: 8px;
  background: rgba(77, 227, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.brand-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.brand-project-grid article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.brand-project-grid ul {
  color: var(--muted);
  line-height: 1.65;
}

.campaign-feature {
  margin-top: 24px;
}

.campaign-flyer {
  margin: 0;
}

.campaign-flyer img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  image-orientation: from-image;
}

.campaign-flyer figcaption {
  padding: 11px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.project-gallery {
  margin-top: 18px;
}

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

.photo-slot {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

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

.real-photos figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.lightbox-item {
  cursor: zoom-in;
  outline: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lightbox-item:hover,
.lightbox-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(77, 227, 255, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.real-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-orientation: from-image;
}

.real-photos figcaption {
  padding: 11px 12px 13px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 5, 12, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  width: min(1100px, 96vw);
  max-height: 88vh;
  margin: 0;
}

.lightbox-frame img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
  image-orientation: from-image;
}

.lightbox-frame figcaption {
  margin-top: 12px;
  color: var(--text);
  font-weight: 750;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 40px 0 64px;
  padding: 32px;
}

.contact-section h2 {
  max-width: 780px;
  margin-bottom: 12px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
}

.contact-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(77, 227, 255, 0.42);
  border-radius: 8px;
  background: rgba(77, 227, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
  white-space: normal;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  min-height: 72px;
  padding: 10px 8px;
  border: 1px solid rgba(117, 247, 181, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(117, 247, 181, 0.92)),
    rgba(77, 227, 255, 0.9);
  color: #041016;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(77, 227, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(77, 227, 255, 0.16);
  border-radius: inherit;
  opacity: 0.72;
  pointer-events: none;
}

.back-to-top-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 22px;
  transition: transform 180ms ease;
}

.back-to-top-icon::before,
.back-to-top-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.back-to-top-icon::before {
  top: 1px;
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
}

.back-to-top-icon::after {
  top: 6px;
  width: 3px;
  height: 17px;
  border-radius: 999px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  box-shadow: 0 24px 52px rgba(117, 247, 181, 0.32);
  transform: translateY(-2px);
}

.back-to-top:hover .back-to-top-icon,
.back-to-top:focus-visible .back-to-top-icon {
  transform: translateY(-4px);
}

@media (max-width: 920px) {
  .site-header {
    display: grid;
    gap: 10px;
    align-items: center;
    justify-items: stretch;
    top: 8px;
    padding: 12px;
  }

  .site-header.is-hidden {
    transform: translateY(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    padding: 2px 2px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .language-switcher {
    justify-self: center;
    padding: 3px;
  }

  .language-switcher button {
    min-height: 30px;
    min-width: 42px;
    font-size: 0.76rem;
  }

  .hero,
  .detail-hero,
  .brand-project-header,
  .section-heading,
  .about-grid,
  .value-grid,
  .card-grid.two,
  .detail-grid,
  .brand-project-grid,
  .skill-clusters,
  .experience-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 26px;
    padding-top: 44px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-title {
    font-size: 1.24rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 20px;
  }

  .value-card,
  .project-card,
  .skill-card {
    min-height: auto;
  }

  .contact-section {
    display: grid;
  }

  .contact-links {
    align-items: flex-start;
  }

  .skill-card {
    min-height: auto;
  }

  .detail-copy h1 {
    max-width: 100%;
    font-size: 2.85rem;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .project-badges {
    justify-content: flex-start;
  }

  .brand-project-dropdown summary {
    grid-template-columns: 1fr;
  }

  .brand-project-dropdown summary > span:last-child {
    text-align: left;
  }
}

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

  .site-header {
    gap: 6px;
    margin-top: 7px;
    padding: 8px;
  }

  .brand {
    gap: 7px;
    font-size: 0.76rem;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-mark svg {
    width: 14px;
    height: 14px;
  }

  .nav-links {
    display: flex;
    gap: 5px;
    margin: 0 -4px;
    padding: 0 4px 3px;
  }

  .nav-links a {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    text-align: center;
    white-space: nowrap;
  }

  .language-switcher {
    width: min(100%, 150px);
  }

  .language-switcher button {
    flex: 1;
    min-height: 25px;
    padding: 0 7px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: 2.65rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 1.65rem;
    line-height: 1.16;
  }

  .hero-title {
    font-size: 1.12rem;
  }

  .hero-text {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero {
    gap: 22px;
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.84rem;
  }

  .detail-copy h1 {
    font-size: 2.4rem;
    line-height: 1.08;
  }

  .hero-panel,
  .glass-card,
  .contact-section {
    padding: 18px;
  }

  .profile-photo-wrap {
    width: min(180px, 66%);
    margin-bottom: 18px;
  }

  .panel-header {
    gap: 10px;
    font-size: 0.76rem;
  }

  .signal-score {
    margin: 22px 0;
  }

  .signal-score strong {
    font-size: 3.25rem;
  }

  .brand-project-content {
    padding: 18px 12px 14px;
  }

  .brand-project-dropdown summary {
    padding: 16px 52px 16px 14px;
  }

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

  .metric-grid div {
    min-height: 88px;
    padding: 14px;
  }

  .metric-grid span {
    min-height: 34px;
    font-size: 0.76rem;
  }

  .metric-grid strong {
    font-size: 1rem;
  }

  .nav-links a:last-child {
    grid-column: auto;
  }

  .card-grid,
  .experience-list,
  .skill-clusters {
    gap: 16px;
  }

  .glass-card {
    min-height: auto;
  }

  .value-visual {
    height: 108px;
    margin-bottom: 16px;
  }

  .project-card {
    grid-template-rows: 150px auto;
    gap: 16px;
  }

  .contact-section {
    gap: 18px;
    margin-bottom: 54px;
  }

  .contact-links {
    width: 100%;
  }

  .contact-note {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 52px;
    min-height: 66px;
    padding: 9px 7px;
  }
}

@media (max-width: 380px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.48rem;
  }
}
