:root {
  color-scheme: dark;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-width: 1180px;
  --header-height: 76px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-alt: #111721;
  --surface: #151c27;
  --surface-hover: #1a2330;
  --text: #f2f4f7;
  --text-muted: #a5afbd;
  --text-soft: #778495;
  --border: #273241;
  --border-strong: #3b485a;
  --accent: #6f91ff;
  --accent-strong: #89a5ff;
  --accent-soft: #192750;
  --accent-contrast: #081126;
  --header-bg: rgba(13, 17, 23, 0.94);
  --work-toolsera-bg: #15302e;
  --work-resume-bg: #16213d;
  --work-photon-bg: #2b2139;
  --work-deployment-bg: #14243b;
  --work-chat-bg: #251d3e;
  --work-preview-panel: #0e141d;
  --work-chat-accent: #a58cff;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --surface-hover: #f1f4f8;
  --text: #121926;
  --text-muted: #5d6878;
  --text-soft: #7a8594;
  --border: #d9dee7;
  --border-strong: #b7c0cd;
  --accent: #2857d6;
  --accent-strong: #1946c3;
  --accent-soft: #e4eaff;
  --accent-contrast: #ffffff;
  --header-bg: rgba(247, 248, 250, 0.94);
  --work-toolsera-bg: #dff3ed;
  --work-resume-bg: #e4eaff;
  --work-photon-bg: #eee6f7;
  --work-deployment-bg: #e0ebf8;
  --work-chat-bg: #eee9ff;
  --work-preview-panel: #ffffff;
  --work-chat-accent: #6748c4;
  --shadow: 0 20px 55px rgba(33, 43, 62, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  transition: color 180ms ease, background-color 180ms ease;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

::selection {
  color: var(--accent-contrast);
  background: var(--accent);
}

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

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

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.section {
  padding: 112px 0;
}

.section-anchor {
  scroll-margin-top: var(--header-height);
}

.reveal-ready {
  --reveal-delay: 0ms;
  opacity: 0;
  translate: 0 14px;
}

.reveal-ready[data-reveal-direction="left"] {
  translate: -12px 0;
}

.reveal-ready[data-reveal-direction="up"] {
  translate: 0 14px;
}

.reveal-ready[data-reveal-direction="right"] {
  translate: 12px 0;
}

.reveal-ready.is-revealed {
  animation: reveal-element 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay) both;
}

.section-soft {
  background: var(--bg-alt);
}

.section-ink {
  background: var(--bg);
}

.section-copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 6.7vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -0.065em;
}

h1 span {
  display: block;
  color: var(--accent);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-muted);
}

.site-header {
  --page-progress: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  content: "";
  pointer-events: none;
  transform: scaleX(var(--page-progress));
  transform-origin: left;
}

.site-header.header-scrolled,
body.nav-open .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1260px;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 24px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand-logo {
  display: block;
  width: 128px;
  height: 56px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 170ms var(--ease);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms var(--ease);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: transparent;
}

.icon-button:hover,
.icon-button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--accent-strong);
  background: var(--surface-hover);
  border-color: var(--accent);
}

.theme-button i {
  position: absolute;
  transition: opacity 150ms ease, transform 200ms var(--ease);
}

.theme-icon-light {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.theme-icon-dark {
  opacity: 0;
  transform: rotate(-25deg) scale(0.65);
}

html[data-theme="light"] .theme-icon-light {
  opacity: 0;
  transform: rotate(25deg) scale(0.65);
}

html[data-theme="light"] .theme-icon-dark {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-button {
  display: none;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.button-compact {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.8rem;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

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

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 76px 0 84px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(38px, 5vw, 72px);
}

.hero-copy {
  align-self: center;
  max-width: 540px;
  min-width: 0;
}

.hero-intro {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
}

.hero-wave {
  display: inline-block;
  margin-left: 5px;
  transform-origin: 72% 72%;
  animation: hero-wave 2.2s ease-in-out infinite;
}

.hero-name {
  max-width: none;
  margin-bottom: 30px;
  font-size: clamp(3.9rem, 5.2vw, 5.4rem);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hero-name span {
  display: inline;
  color: var(--accent);
}

.hero-role {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 34px;
  font-size: 1rem;
  line-height: 1.75;
}

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

.hero-experience {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 0.9fr);
  align-items: center;
  max-width: 540px;
  margin-top: 34px;
  padding-top: 18px;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.hero-experience > strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-experience-copy {
  display: grid;
  gap: 2px;
}

.hero-experience b {
  color: var(--text);
  font-size: 0.88rem;
}

.hero-experience small {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.hero-current {
  display: grid;
  align-content: center;
  min-height: 40px;
  padding-left: 18px;
  gap: 2px;
  border-left: 1px solid var(--border);
}

.hero-current small {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-current strong {
  color: var(--text);
  font-size: 0.76rem;
  text-align: left;
}

.hero-artwork {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-theme-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.hero-art-light {
  opacity: 0;
}

html[data-theme="light"] .hero-art-light {
  opacity: 1;
}

html[data-theme="light"] .hero-art-dark {
  opacity: 0;
}

.about-heading {
  max-width: 900px;
  margin-bottom: 54px;
}

.about-heading h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.about-heading h2 span {
  color: var(--accent);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
}

.about-portrait {
  width: min(100%, 370px);
  margin: 0;
}

.about-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-photo-frame::after {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 42%;
  height: 38%;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  content: "";
  pointer-events: none;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.about-portrait figcaption {
  display: grid;
  margin-top: 18px;
  padding-top: 15px;
  gap: 3px;
  border-top: 1px solid var(--border);
}

.about-portrait figcaption strong {
  color: var(--text);
  font-size: 0.88rem;
}

.about-portrait figcaption span {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.about-content {
  max-width: 680px;
}

.about-lead {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.about-content .section-copy p {
  font-size: 0.98rem;
}

.about-principle {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin-top: 32px;
  padding: 18px 0;
  gap: 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-principle strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-principle p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  gap: 12px;
}

.feature-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
  overflow: hidden;
  padding: 20px;
  gap: 16px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease);
}

.feature-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 8%, transparent));
  content: "";
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
  transition: border-color 180ms ease;
}

.feature-icon i {
  font-size: 0.92rem;
}

.feature-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.feature-item p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  line-height: 1.6;
}

@media (hover: hover) {
  .feature-item:hover {
    background: var(--surface-hover);
    border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
    box-shadow: 0 16px 35px color-mix(in srgb, var(--bg) 55%, transparent);
    transform: translateY(-4px);
  }

  .feature-item:hover .feature-icon {
    border-color: var(--accent);
  }
}

.expertise-heading,
.skills-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  margin-bottom: 48px;
  gap: clamp(48px, 8vw, 110px);
}

.expertise-heading h2,
.skills-intro h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.expertise-heading h2 span,
.skills-intro h2 span {
  color: var(--accent);
}

.expertise-heading > p,
.skills-intro > p {
  margin-bottom: 5px;
  font-size: 0.94rem;
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list::before {
  position: absolute;
  top: 46px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: var(--border-strong);
  content: "";
}

.process-step {
  position: relative;
  min-width: 0;
  padding: 0 22px;
}

.process-step-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.process-step-meta span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.process-step-meta i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--bg);
  font-size: 0.92rem;
}

.process-step h3 {
  margin: 34px 0 13px;
  font-size: 1.08rem;
}

.process-step p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.skills-block {
  margin-top: 118px;
}

.skill-groups {
  display: grid;
  border-top: 1px solid var(--border);
}

.skill-group {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1.65fr);
  align-items: center;
  padding: 27px 0;
  gap: 36px;
  border-bottom: 1px solid var(--border);
}

.skill-group-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-group-heading h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  gap: 8px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.skill-chip img {
  width: 21px;
  height: 21px;
  filter: saturate(0.82);
  opacity: 0.9;
  object-fit: contain;
}

.text-chip::before {
  color: var(--accent);
  content: "#";
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

@media (hover: hover) {
  .skill-chip:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-color: var(--border-strong);
  }

}

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  margin-bottom: 54px;
  gap: clamp(48px, 8vw, 110px);
}

.work-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.work-heading h2 span {
  color: var(--accent);
}

.work-heading > p {
  margin-bottom: 5px;
  font-size: 0.94rem;
}

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

.work-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 355px;
  overflow: hidden;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}

.work-preview {
  display: grid;
  min-height: 158px;
  padding: 14px;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

.work-preview-deployment {
  background: var(--work-deployment-bg);
}

.work-preview-toolsera {
  background: var(--work-toolsera-bg);
}

.work-preview-resume {
  background: var(--work-resume-bg);
}

.work-preview-photon {
  background: var(--work-photon-bg);
}

.work-preview-chat {
  background: var(--work-chat-bg);
}

.preview-window {
  width: min(100%, 430px);
  height: 128px;
  overflow: hidden;
  background: var(--work-preview-panel);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(8, 13, 23, 0.2);
  transition: transform 260ms var(--ease);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.preview-toolbar span {
  width: 4px;
  height: 4px;
  background: var(--text-soft);
  border-radius: 50%;
  opacity: 0.55;
}

.toolsera-preview {
  display: grid;
  height: 108px;
  padding: 11px 12px;
  align-content: center;
  gap: 11px;
}

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

.toolsera-preview-head span {
  width: 60px;
  height: 5px;
  background: var(--border-strong);
  border-radius: 999px;
}

.toolsera-preview-head i {
  width: 20px;
  height: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 999px;
}

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

.toolsera-preview-grid > span {
  display: grid;
  height: 48px;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  place-items: center;
}

.toolsera-preview-grid > span:nth-child(2) {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
}

.toolsera-preview-grid i {
  font-size: 0.68rem;
}

.resume-preview-layout {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  height: 108px;
}

.resume-preview-menu {
  display: grid;
  padding: 12px 8px;
  align-content: start;
  gap: 7px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.resume-preview-menu span {
  width: 100%;
  height: 3px;
  background: var(--border-strong);
  border-radius: 999px;
}

.resume-preview-menu span:nth-child(2) {
  width: 72%;
  background: var(--accent);
}

.resume-preview-menu span:nth-child(3) {
  width: 86%;
}

.resume-preview-page {
  display: grid;
  width: 78px;
  margin: 8px auto 0;
  padding: 10px 9px;
  align-content: start;
  gap: 5px;
  background: #f7f8fb;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

.resume-preview-page span,
.resume-preview-page strong {
  display: block;
  width: 100%;
  height: 2px;
  background: #7b8798;
  border-radius: 999px;
  opacity: 0.62;
}

.resume-preview-page .preview-name {
  width: 62%;
  height: 4px;
  margin-bottom: 2px;
  background: var(--accent);
  opacity: 1;
}

.resume-preview-page strong {
  width: 38%;
  height: 3px;
  margin-top: 3px;
  opacity: 0.9;
}

.resume-preview-page span:nth-child(3),
.resume-preview-page span:last-child {
  width: 74%;
}

.photon-preview {
  display: grid;
  height: 108px;
  padding: 11px 12px;
  gap: 9px;
}

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

.photon-preview-metrics span {
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.photon-preview-metrics span:nth-child(2) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.photon-preview-chart {
  display: flex;
  height: 52px;
  padding: 8px 10px 0;
  align-items: flex-end;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.photon-preview-chart span {
  height: 32%;
  flex: 1;
  background: var(--border-strong);
  border-radius: 2px 2px 0 0;
}

.photon-preview-chart span:nth-child(2) {
  height: 54%;
}

.photon-preview-chart span:nth-child(3) {
  height: 78%;
  background: var(--accent);
}

.photon-preview-chart span:nth-child(4) {
  height: 64%;
}

.photon-preview-chart span:nth-child(5) {
  height: 88%;
  background: var(--accent-strong);
}

.deployment-preview-layout {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  height: 108px;
}

.deployment-sidebar {
  display: grid;
  align-content: start;
  padding: 12px 8px;
  gap: 7px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.deployment-sidebar span {
  width: 100%;
  height: 3px;
  background: var(--border-strong);
  border-radius: 999px;
}

.deployment-sidebar span:nth-child(2) {
  width: 72%;
  background: var(--accent);
}

.deployment-sidebar span:nth-child(3) {
  width: 86%;
}

.deployment-canvas {
  display: grid;
  padding: 12px 14px;
  align-content: center;
  gap: 12px;
}

.deployment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deployment-summary span {
  width: 54px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 999px;
}

.deployment-summary i {
  width: 22px;
  height: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.deployment-flow {
  display: flex;
  align-items: center;
}

.deployment-flow > i {
  height: 1px;
  flex: 1;
  background: var(--border-strong);
}

.deployment-node {
  position: relative;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
}

.deployment-node.is-complete,
.deployment-node.is-active {
  border-color: var(--accent);
}

.deployment-node.is-complete {
  background: var(--accent);
}

.deployment-node.is-active::after {
  position: absolute;
  inset: 3px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.deployment-environments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.deployment-environments span {
  height: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.deployment-environments span:nth-child(2) {
  border-color: var(--accent);
}

.chat-preview-header {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 6px;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}

.chat-preview-header span {
  width: 18px;
  height: 18px;
  background: var(--work-chat-accent);
  border-radius: 50%;
  opacity: 0.9;
}

.chat-preview-header strong {
  width: 46px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 999px;
}

.chat-preview-header i {
  width: 3px;
  height: 3px;
  background: var(--text-soft);
  border-radius: 50%;
  box-shadow: 0 5px 0 var(--text-soft), 0 -5px 0 var(--text-soft);
}

.chat-preview-body {
  display: flex;
  height: 98px;
  padding: 10px;
  flex-direction: column;
  gap: 7px;
}

.chat-bubble {
  display: grid;
  width: 58%;
  min-height: 21px;
  padding: 6px 8px;
  align-content: center;
  gap: 4px;
  border-radius: 8px 8px 8px 3px;
}

.chat-bubble span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.45;
}

.chat-bubble span:last-child {
  width: 68%;
}

.chat-bubble-in {
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.chat-bubble-out {
  width: 50%;
  margin-left: auto;
  color: var(--accent-contrast);
  background: var(--work-chat-accent);
  border-radius: 8px 8px 3px;
}

.chat-bubble-short {
  width: 40%;
}

.work-card-content {
  display: flex;
  padding: 20px;
  flex: 1;
  flex-direction: column;
}

.work-card-content h3 {
  margin: 13px 0 13px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.8vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.work-card-content p {
  max-width: 620px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
}

.work-card-confidentiality {
  display: flex;
  align-items: center;
  margin-top: 14px;
  gap: 7px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.4;
}

.work-card-confidentiality i {
  color: var(--accent);
  font-size: 0.58rem;
}

.work-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-card-arrow {
  transition: transform 200ms var(--ease);
}

.work-card-open {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: inherit;
}

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

.work-highlights {
  display: grid;
  margin: 18px 0 24px;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.work-highlights li {
  position: relative;
  padding-left: 17px;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.work-highlights li::before {
  position: absolute;
  top: 0.46em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 0 3px var(--accent-soft);
  content: "";
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 5px 8px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
}

.work-dialog {
  width: min(780px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.work-dialog::backdrop {
  background: rgba(4, 8, 14, 0.76);
  backdrop-filter: blur(8px);
}

.work-dialog-shell {
  position: relative;
  display: flex;
  max-height: inherit;
  flex-direction: column;
}

.work-dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  place-items: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.work-dialog-close:hover {
  color: var(--accent-strong);
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: rotate(4deg);
}

.work-dialog-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.work-dialog-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 30px 74px 28px 30px;
  gap: 18px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 72%);
  border-bottom: 1px solid var(--border);
}

.work-dialog-icon {
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(8, 13, 23, 0.14);
  place-items: center;
}

.work-dialog-kicker,
.work-dialog-label {
  display: block;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-dialog-head h3 {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.work-dialog-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.work-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  padding: 30px;
  overflow-y: auto;
  gap: 32px;
}

.work-dialog-body.is-single-column {
  grid-template-columns: 1fr;
}

.work-dialog-overview > p {
  margin: 10px 0 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.work-dialog-overview > .work-dialog-confidentiality {
  display: flex;
  align-items: flex-start;
  margin: -10px 0 26px;
  padding: 11px 12px;
  gap: 9px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.55;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.work-dialog-confidentiality i {
  margin-top: 0.18em;
  color: var(--accent);
}

.work-dialog-confidentiality[hidden] {
  display: none;
}

.work-dialog-highlights {
  margin: 14px 0 0;
}

.work-dialog-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.work-dialog-side[hidden],
.work-dialog-stack[hidden] {
  display: none;
}

.work-dialog-stack {
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.work-dialog-tags {
  margin-top: 14px;
}

.work-dialog-tags span {
  padding: 6px 9px;
  font-size: 0.58rem;
}

.work-dialog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  color: var(--accent-contrast);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9px;
  transition: background 180ms ease, transform 180ms var(--ease);
}

.work-dialog-link:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.work-dialog-link[hidden] {
  display: none;
}

.work-dialog-header-link {
  display: none;
}

body.work-dialog-open,
body.certificate-dialog-open {
  overflow: hidden;
}

@media (hover: hover) {
  .work-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
  }

  .work-card:hover .preview-window {
    transform: translateY(-5px) scale(1.01);
  }

  .work-card:hover .work-card-arrow {
    transform: translateX(4px);
  }
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  margin-bottom: 54px;
  gap: clamp(48px, 8vw, 110px);
}

.experience-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.experience-heading h2 span {
  color: var(--accent);
}

.experience-intro {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.experience-intro p {
  margin: 0;
  font-size: 0.94rem;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  align-items: start;
  gap: 16px;
}

.career-panel,
.career-side-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.career-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 28px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.career-panel-heading > span {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.career-panel-heading i {
  margin-right: 8px;
  color: var(--accent);
}

.career-panel-heading small,
.career-period,
.education-period,
.recognition-list small {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
}

.career-entry {
  display: grid;
  grid-template-columns: 100px 18px minmax(0, 1fr);
  padding: 30px 28px;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  transition: background 180ms ease;
}

.career-entry:last-child {
  border-bottom: 0;
}

.career-entry:hover {
  background: var(--surface-hover);
}

.career-period {
  padding-top: 5px;
  line-height: 1.5;
}

.career-rail {
  position: relative;
  display: block;
  min-height: 100%;
}

.career-rail::after {
  position: absolute;
  top: 20px;
  bottom: -48px;
  left: 50%;
  width: 1px;
  background: var(--border-strong);
  content: "";
  transform: translateX(-50%);
}

.career-entry:last-child .career-rail::after {
  display: none;
}

.career-rail i {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--surface);
  transform: translateX(-50%);
}

.career-entry.is-current .career-rail i {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.career-entry-heading {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.career-logo,
.education-logo {
  display: grid;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  place-items: center;
}

.career-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.career-logo img {
  width: 36px;
  max-height: 24px;
  object-fit: contain;
}

.career-company {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.career-entry-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.career-current {
  padding: 5px 8px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
}

.career-points {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.career-points li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.career-points li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px;
  content: "";
}

.experience-sidebar {
  display: grid;
  gap: 16px;
}

.career-side-card {
  padding: 24px;
}

.career-side-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.career-side-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 0.52rem;
}

.career-side-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.career-side-icon {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
  place-items: center;
}

.education-list,
.recognition-list,
.credential-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.education-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 18px 0;
  gap: 13px;
  border-bottom: 1px solid var(--border);
}

.education-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.education-logo {
  width: 48px;
  height: 48px;
  border-radius: 9px;
}

.education-logo img {
  width: 34px;
  max-height: 30px;
  object-fit: contain;
}

.education-period {
  display: block;
  margin-bottom: 5px;
}

.education-item h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.45;
}

.education-item p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.recognition-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 16px;
  align-items: center;
  width: 100%;
  padding: 12px 8px;
  gap: 8px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  transition: color 180ms ease, background-color 180ms ease;
}

.recognition-list i {
  color: var(--accent);
  font-size: 0.58rem;
}

.recognition-item > span {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.recognition-item .recognition-open-icon {
  color: var(--text-soft);
  opacity: 0.65;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms var(--ease);
}

.recognition-item:hover,
.recognition-item:focus-visible {
  background: var(--surface-hover);
}

.recognition-item:hover .recognition-open-icon,
.recognition-item:focus-visible .recognition-open-icon {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.08);
}

.recognition-item:focus-visible {
  outline-offset: -2px;
}

.certificate-dialog {
  width: min(840px, calc(100vw - 36px));
  height: min(760px, calc(100dvh - 36px));
}

.certificate-dialog[data-certificate-orientation="portrait"] {
  width: min(620px, calc(100vw - 36px));
}

.certificate-dialog-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  flex: 0 0 auto;
  padding: 26px 74px 24px 26px;
  gap: 16px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 72%);
  border-bottom: 1px solid var(--border);
}

.certificate-dialog-shell {
  height: 100%;
}

.certificate-dialog-icon,
.certificate-placeholder-icon {
  display: grid;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  place-items: center;
}

.certificate-dialog-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(8, 13, 23, 0.14);
}

.certificate-dialog-head h3 {
  margin: 5px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.certificate-dialog-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.certificate-preview {
  display: grid;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  flex: 1 1 auto;
  background: var(--bg-alt);
  place-items: center;
}

.certificate-preview > img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  object-fit: contain;
}

.certificate-placeholder {
  display: grid;
  aspect-ratio: 16 / 10;
  min-height: 360px;
  padding: 34px;
  align-content: center;
  justify-items: center;
  color: var(--text-muted);
  text-align: center;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    repeating-linear-gradient(135deg, var(--border), var(--border) 7px, transparent 7px, transparent 14px) border-box;
  border: 1px solid transparent;
  border-radius: 10px;
}

.certificate-dialog[data-certificate-orientation="portrait"] .certificate-placeholder {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.414;
  margin: 0 auto;
}

.certificate-placeholder[hidden] {
  display: none;
}

.certificate-placeholder-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 1rem;
}

.certificate-placeholder strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.9rem;
}

.certificate-placeholder p {
  margin: 0;
  font-size: 0.72rem;
}

.credential-list {
  margin-top: 18px;
  padding-top: 14px;
  gap: 8px;
}

.credential-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  gap: 14px;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.credential-list a:hover,
.credential-list a:focus-visible {
  color: var(--accent-strong);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.credential-list i {
  color: var(--accent);
  font-size: 0.58rem;
}

.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  margin-bottom: 54px;
  gap: clamp(48px, 8vw, 110px);
}

.contact-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.contact-heading h2 span {
  color: var(--accent);
}

.contact-intro {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.contact-intro p {
  margin: 0;
  font-size: 0.94rem;
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.contact-availability i {
  width: 7px;
  height: 7px;
  background: #4ecb8d;
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, #4ecb8d 14%, transparent);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-primary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(32px, 5vw, 52px);
  background: linear-gradient(145deg, var(--surface) 25%, color-mix(in srgb, var(--accent-soft) 55%, var(--surface)) 100%);
  border-right: 1px solid var(--border);
}

.contact-primary-label {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 13px;
}

.contact-primary-icon,
.contact-detail-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
}

.contact-primary-icon {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.contact-primary-label > span:last-child {
  display: grid;
  gap: 2px;
}

.contact-primary-label small,
.contact-detail-row small,
.contact-socials > span {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-primary-label strong {
  color: var(--text);
  font-size: 0.9rem;
}

.contact-email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding-bottom: 18px;
  gap: 22px;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-email-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-email-link i {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
  transition: transform 180ms var(--ease);
}

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

.contact-email-link:hover i,
.contact-email-link:focus-visible i {
  transform: translateX(5px);
}

.contact-primary > p {
  max-width: 520px;
  margin: 22px 0 26px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.contact-copy-button,
.contact-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}

.contact-copy-button {
  align-self: flex-start;
  min-height: 40px;
  padding: 0 14px;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.contact-copy-button:hover,
.contact-copy-button:focus-visible,
.contact-icon-button:hover,
.contact-icon-button:focus-visible {
  color: var(--accent-strong);
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-status {
  min-height: 18px;
  margin: 10px 0 -28px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
}

.contact-secondary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
}

.contact-detail-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.contact-detail-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  padding: 20px 0;
  gap: 13px;
  border-bottom: 1px solid var(--border);
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  font-size: 0.82rem;
}

.contact-detail-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.contact-detail-row a,
.contact-detail-row strong {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-detail-row a:hover,
.contact-detail-row a:focus-visible {
  color: var(--accent-strong);
}

.contact-icon-button {
  width: 38px;
  height: 38px;
  font-size: 0.72rem;
}

.contact-socials {
  margin-top: auto;
  padding-top: 32px;
}

.contact-socials > span {
  display: block;
  margin-bottom: 12px;
}

.contact-social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.contact-social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 0 10px;
  gap: 8px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.65rem;
  font-weight: 800;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease);
}

.contact-social-list a i {
  color: var(--text);
  font-size: 0.9rem;
  transition: color 160ms ease;
}

.contact-social-list a:hover,
.contact-social-list a:focus-visible {
  color: var(--accent-strong);
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-social-list a:hover i,
.contact-social-list a:focus-visible i {
  color: var(--accent-strong);
}

.site-footer {
  color: var(--text-muted);
  background: var(--bg-alt);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  gap: 24px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.footer-bottom > span:nth-child(2) {
  text-align: center;
}

.footer-bottom > a {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-bottom > a i {
  color: var(--accent);
  font-size: 0.55rem;
  transition: transform 160ms var(--ease);
}

.footer-bottom > a:hover,
.footer-bottom > a:focus-visible {
  color: var(--accent-strong);
}

.footer-bottom > a:hover i,
.footer-bottom > a:focus-visible i {
  transform: translateY(-3px);
}

@keyframes hero-wave {
  0%,
  55%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }
}

@keyframes reveal-element {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1120px) {
  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    display: grid;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms var(--ease);
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    min-height: 45px;
    padding: 10px 12px;
  }

  .nav-link::after {
    right: auto;
    bottom: 7px;
    left: 12px;
    width: 28px;
  }

  .menu-button {
    display: inline-flex;
  }

  .button-compact span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 48px;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-list::before {
    display: none;
  }

  .process-step {
    min-height: 0;
    padding: 0 0 48px 78px;
  }

  .process-step::after {
    position: absolute;
    top: 42px;
    bottom: 0;
    left: 21px;
    width: 1px;
    background: var(--border-strong);
    content: "";
  }

  .process-step:last-child {
    padding-bottom: 0;
  }

  .process-step:last-child::after {
    display: none;
  }

  .process-step-meta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 26px;
  }

  .process-step-meta i {
    flex: 0 0 42px;
    order: 1;
  }

  .process-step-meta span {
    order: 2;
  }

  .process-step h3 {
    margin: 27px 0 10px;
  }

  .process-step p {
    max-width: 720px;
  }

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

@media (max-width: 820px) {
  .shell,
  .header-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    padding: 58px 0 76px;
  }

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

  .hero-artwork {
    width: min(100%, 520px);
    margin: 10px auto 0;
    justify-self: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-portrait {
    width: min(100%, 360px);
  }

  .expertise-heading,
  .skills-intro,
  .work-heading,
  .experience-heading,
  .contact-heading {
    grid-template-columns: 1fr;
    margin-bottom: 38px;
    gap: 18px;
  }

  .expertise-heading > p,
  .skills-intro > p,
  .work-heading > p {
    max-width: 620px;
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }

  .experience-intro {
    max-width: 620px;
  }

  .contact-intro {
    max-width: 620px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-primary {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .skills-block {
    margin-top: 82px;
  }

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

}

@media (max-width: 520px) {
  :root {
    --header-height: 68px;
  }

  .header-actions {
    gap: 7px;
  }

  .brand-logo {
    width: 116px;
    height: 52px;
  }

  .header-actions .button {
    display: none;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-name {
    font-size: clamp(2.9rem, 13.5vw, 4.4rem);
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-actions {
    display: grid;
  }

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

  .hero-experience {
    line-height: 1.7;
  }

  .about-heading {
    margin-bottom: 38px;
  }

  .about-principle,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 0;
    padding: 18px;
    gap: 14px;
  }

  .hero-current {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .process-step {
    padding-bottom: 42px;
  }

  .skill-group {
    grid-template-columns: 1fr;
    padding: 24px 0;
    gap: 18px;
  }

  .contact-primary {
    padding: 26px 22px;
  }

  .contact-primary-label {
    margin-bottom: 26px;
  }

  .contact-email-link {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .contact-secondary {
    padding: 22px;
  }

  .contact-detail-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .contact-detail-icon {
    width: 40px;
    height: 40px;
  }

  .contact-social-list a {
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 0.65rem;
  }

  .contact-social-list {
    grid-template-columns: 1fr;
  }

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

  .work-card {
    min-height: 0;
  }

  .work-preview {
    min-height: 180px;
    padding: 18px;
  }

  .work-card-content {
    padding: 20px;
  }

  .work-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    border-radius: 12px;
  }

  .work-dialog:not(.certificate-dialog) {
    max-height: 85vh;
    max-height: 85dvh;
  }

  .work-dialog-shell,
  .work-dialog-body {
    min-height: 0;
  }

  .work-dialog-head {
    grid-template-columns: 1fr;
    padding: 24px 62px 22px 22px;
    gap: 14px;
  }

  .work-dialog-header-link:not([hidden]) {
    display: inline-flex;
    width: fit-content;
    margin-top: 14px;
    gap: 10px;
  }

  .work-dialog-body .work-dialog-link {
    display: none;
  }

  .work-dialog-icon {
    width: 42px;
    height: 42px;
  }

  .work-dialog-body {
    padding: 22px;
    gap: 24px;
  }

  .certificate-dialog-head {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px 58px 18px 18px;
    gap: 12px;
  }

  .certificate-dialog-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .certificate-dialog-head h3 {
    font-size: 1.45rem;
  }

  .certificate-preview {
    padding: 14px;
  }

  .certificate-placeholder {
    min-height: 260px;
    padding: 24px;
  }

  .experience-intro .button {
    width: 100%;
  }

  .experience-sidebar {
    grid-template-columns: 1fr;
  }

  .career-panel-heading {
    padding: 0 18px;
  }

  .career-entry {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 24px 18px;
    gap: 12px 14px;
  }

  .career-period {
    grid-row: 1;
    grid-column: 2;
    padding-top: 0;
  }

  .career-rail {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .career-entry-content {
    grid-row: 2;
    grid-column: 2;
  }

  .career-rail::after {
    bottom: -42px;
  }

  .career-entry-heading {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .career-logo {
    width: 44px;
    height: 44px;
  }

  .career-current {
    grid-column: 2;
    justify-self: start;
  }

  .career-side-card {
    padding: 20px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 20px 0 22px;
    gap: 12px 20px;
  }

  .footer-bottom > span:first-child {
    grid-row: 1;
    grid-column: 1;
  }

  .footer-bottom > span:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
    text-align: left;
  }

  .footer-bottom > a {
    grid-row: 1;
    grid-column: 2;
  }

  .skill-chip {
    width: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after {
    display: none;
  }

  .reveal-ready,
  .reveal-ready[data-reveal-direction] {
    animation: none;
    opacity: 1;
    translate: none;
  }

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