:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --bg-alt: #efebe5;
  --surface: #ffffff;
  --surface-muted: #f3f0eb;
  --ink: #15171c;
  --text: #3a3e46;
  --muted: #6c707a;
  --line: #e2ddd5;
  --line-strong: #cbc4b9;
  --accent: #d62f33;
  --accent-hover: #b8262a;
  --accent-text: #c0272b;
  --accent-soft: #fbe6e4;
  --logo-tile: #ffffff;
  --code-bg: #15171c;
  --success: #15803d;
  --success-soft: #e7f6ec;
  --danger-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(21, 23, 28, 0.05), 0 6px 16px -10px rgba(21, 23, 28, 0.18);
  --shadow-md: 0 22px 44px -24px rgba(21, 23, 28, 0.35);
  --shadow-lg: 0 44px 88px -44px rgba(21, 23, 28, 0.5);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --header-height: 76px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1013;
  --bg-alt: #14161a;
  --surface: #191b20;
  --surface-muted: #1f2228;
  --ink: #f4f2ee;
  --text: #c8cad0;
  --muted: #8e939d;
  --line: #2a2d34;
  --line-strong: #3d414a;
  --accent-hover: #e8474a;
  --accent-text: #ff6b6b;
  --accent-soft: rgba(214, 47, 51, 0.16);
  --logo-tile: #f1efea;
  --code-bg: #0b0c0f;
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.12);
  --danger-soft: rgba(214, 47, 51, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -10px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 22px 44px -24px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 44px 88px -44px rgba(0, 0, 0, 0.85);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

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

button {
  cursor: pointer;
}

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

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.menu-open .site-header {
  background: var(--bg);
  border-bottom-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 0.35s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.language-switch button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, color 0.2s;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.2s var(--ease-out), border-color 0.2s, background-color 0.2s;
}

.icon-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-theme-dark,
[data-theme="dark"] .icon-theme-light {
  display: none;
}

[data-theme="dark"] .icon-theme-dark {
  display: block;
}

.menu-toggle,
.icon-menu-close,
.menu-open .icon-menu-open {
  display: none;
}

.menu-open .icon-menu-close {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}

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

.button:active {
  transform: translateY(0) scale(0.97);
}

.button .icon {
  transition: transform 0.25s var(--ease-out);
}

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

.button:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 26px -14px rgba(214, 47, 51, 0.9);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 18px 32px -16px rgba(214, 47, 51, 0.95);
}

.button-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--ink);
}

.button-outline {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: transparent;
  color: var(--accent-text);
}

.button-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.button-light:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.button-block {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + 24px) 0 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 42%, #000000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 42%, #000000 15%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -140px;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 47, 51, 0.24), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fae5b;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #1fae5b;
  animation: status-pulse 2.4s ease-out 1.2s 2 both;
}

.hero-greeting {
  margin-top: 24px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.hero-title {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.3vw, 3.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-title em {
  position: relative;
  color: var(--accent-text);
  font-style: normal;
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.02em;
  left: 0;
  height: 0.12em;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.22;
  transform-origin: left;
  animation: underline-draw 1s var(--ease-out) 1.1s both;
}

.hero-lead {
  max-width: 56ch;
  margin-top: 22px;
  font-size: 1.08rem;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(28px, 4.5vw, 56px);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: grid;
  align-content: start;
  gap: 6px;
}

.hero-stat dd {
  grid-row: 1;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero-stat dt {
  grid-row: 2;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: -1;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xl);
}

.portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fe4749;
  box-shadow: var(--shadow-lg);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.hero-visual:hover .portrait img {
  transform: scale(1.03);
}

.portrait-badge {
  position: absolute;
  top: -24px;
  right: -32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.portrait-badge small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.portrait-badge strong {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.3;
}

.code-card {
  position: absolute;
  top: 86%;
  left: -96px;
  width: min(380px, 96%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: var(--code-bg);
  color: #e4e5e9;
  box-shadow: var(--shadow-lg);
}

.code-card-bar,
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
}

.code-card-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.code-dot:nth-child(2) {
  background: #febc2e;
}

.code-dot:nth-child(3) {
  background: #28c840;
}

.code-file {
  margin-left: 10px;
  color: #8b909a;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.code-card-body {
  margin: 0;
  padding: 16px 18px 20px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.75;
  white-space: pre;
}

.code-line {
  display: block;
  min-height: 1.75em;
  opacity: 0;
  animation: code-line-in 0.45s var(--ease-out) forwards;
  animation-delay: calc(900ms + var(--line-order) * 130ms);
}

.code-line:last-child::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: caret-blink 1s steps(1) 2s 4;
}

.tok-var {
  color: #ff8a80;
}

.tok-key {
  color: #ff9e64;
}

.tok-class {
  color: #ffcb6b;
}

.tok-str {
  color: #c3e88d;
}

.tok-num {
  color: #89ddff;
}

.tok-fn {
  color: #82aaff;
}

.section {
  position: relative;
  padding: clamp(96px, 12vw, 136px) 0;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-title {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lead {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 1.08rem;
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.service-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.service-icons li,
.skill-logo,
.app-logo {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  background: var(--logo-tile);
}

.service-icons li {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out);
}

.service-icons li:nth-child(2) {
  transition-delay: 40ms;
}

.service-icons li:nth-child(3) {
  transition-delay: 80ms;
}

.service-icons li:nth-child(4) {
  transition-delay: 120ms;
}

.service-icons li:nth-child(5) {
  transition-delay: 160ms;
}

.service-card:hover .service-icons li {
  transform: translateY(-3px);
}

.service-icons img {
  width: 22px;
  height: 22px;
}

.experience-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.experience-tabs {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 8px;
}

.experience-tab {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 20px 18px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease-out);
}

.experience-tab:hover {
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  transform: translateX(2px);
}

.experience-tab strong {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.experience-tab span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.experience-tab[aria-selected="true"] {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.experience-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.experience-panel {
  min-height: 440px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.experience-panel > * {
  animation: panel-in 0.45s var(--ease-out) both;
}

.experience-panel > :nth-child(2) {
  animation-delay: 70ms;
}

.experience-role {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.experience-company {
  margin-top: 6px;
  color: var(--accent-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.experience-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.experience-meta .icon {
  width: 16px;
  height: 16px;
}

.experience-points {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.experience-points li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.experience-points .icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  stroke-width: 3;
}

.skills-layout,
.apps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.skill-groups {
  display: grid;
  gap: 32px;
}

.skill-group-title {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.25s var(--ease-out), border-color 0.2s, box-shadow 0.25s;
}

.skill-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.skill-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.skill-logo img {
  width: 26px;
  height: 26px;
  transition: transform 0.35s var(--ease-out);
}

.skill-item:hover .skill-logo img {
  transform: scale(1.12);
}

.skill-text {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.skill-text strong {
  color: var(--ink);
  font-weight: 600;
}

.skill-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capability-list li {
  padding: 8px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.education-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(214, 47, 51, 0.75);
}

.education-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 44px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.education-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.education-icon .icon {
  width: 24px;
  height: 24px;
}

.education-label {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.education-degree {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.education-school {
  margin-top: 6px;
  font-weight: 600;
}

.education-period {
  font-size: 0.9rem;
  opacity: 0.85;
}

.education-gpa {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.education-gpa span,
.education-gpa small {
  font-size: 0.9rem;
  opacity: 0.85;
}

.education-gpa strong {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.app-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.app-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.app-window-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.app-address {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  padding: 4px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-body {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.app-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.app-logo img {
  width: 30px;
  height: 30px;
}

.app-initial {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.app-title {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-tags li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.app-updated {
  color: var(--muted);
  font-size: 0.85rem;
}

.app-state {
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.demo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.demo-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.demo-note {
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.field-control input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.field-control .icon-button {
  border-radius: 10px;
}

.reset-result {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--ink);
  font-size: 0.88rem;
}

.reset-result.is-failed {
  background: var(--danger-soft);
}

.reset-result ul {
  display: grid;
  gap: 8px;
}

.reset-result li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
}

.reset-result b {
  color: var(--success);
}

.reset-result li.is-failed b {
  color: var(--accent-text);
}

.reset-result pre {
  grid-column: 1 / -1;
  max-height: 160px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  background: var(--code-bg);
  color: #e4e5e9;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: pre-wrap;
}

.contact {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding: clamp(36px, 6vw, 76px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #15171c;
  color: #c4c7ce;
  isolation: isolate;
}

[data-theme="dark"] .contact-panel {
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-panel::before {
  content: "";
  position: absolute;
  bottom: -300px;
  left: -180px;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 47, 51, 0.5), transparent 65%);
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000000 100%);
  mask-image: linear-gradient(110deg, transparent 35%, #000000 100%);
}

.contact .eyebrow {
  color: #ff8080;
}

.contact-title {
  margin-top: 16px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.contact-lead {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 1.08rem;
}

.contact-cv {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.contact-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.contact-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 20px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

a.contact-link:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
}

.contact-text {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.contact-text small {
  color: #9da1aa;
  font-size: 0.8rem;
}

.contact-text strong {
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  margin-left: auto;
  color: #9da1aa;
  transition: transform 0.25s var(--ease-out), color 0.2s;
}

a.contact-link:hover .contact-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

.contact-copy-button {
  width: 58px;
  height: auto;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.contact-copy-button:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.site-footer {
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
}

.footer-top span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}

.footer-top:hover span {
  background-size: 100% 1.5px;
}

.footer-top .icon {
  transition: transform 0.25s var(--ease-out);
}

.footer-top:hover .icon {
  transform: translateY(-2px);
}

.reset-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.reset-dialog[open] {
  animation: dialog-in 0.3s var(--ease-out);
}

.reset-dialog::backdrop {
  background: rgba(10, 11, 14, 0.55);
  backdrop-filter: blur(4px);
}

.reset-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.reset-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

[data-enter] {
  animation: enter-up 0.9s var(--ease-out) both;
  animation-delay: calc(var(--enter-order, 0) * 90ms + 80ms);
}

.hero-visual[data-enter] {
  animation-name: enter-visual;
  animation-duration: 1.1s;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes enter-visual {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes code-line-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@keyframes status-pulse {
  from {
    opacity: 0.45;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes underline-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .header-cta {
    display: none;
  }

  .site-nav a {
    padding: 8px 10px;
  }
}

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

  .menu-toggle {
    display: inline-grid;
  }

  .header-tools {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 40;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 16px var(--gutter) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }

  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
  }

  .site-nav a[aria-current="true"] {
    background: none;
    box-shadow: none;
    color: var(--accent-text);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero-grid,
  .experience-layout,
  .skills-layout,
  .apps-layout,
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-self: center;
    width: min(100% - 40px, 420px);
    margin-bottom: 150px;
  }

  .code-card {
    left: -40px;
  }

  .portrait-badge {
    right: -24px;
  }

  .experience-tabs {
    position: static;
  }

  .education-card {
    position: relative;
    top: auto;
  }

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

  .experience-panel {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .service-grid,
  .experience-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .button,
  .contact-cv .button {
    flex: 1 1 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .hero-visual {
    width: 100%;
    margin-bottom: 0;
  }

  .hero-visual::before {
    display: none;
  }

  .portrait-badge {
    top: -20px;
    right: 14px;
  }

  .code-card {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: -64px 14px 0;
  }

  .code-card-body {
    font-size: 0.7rem;
  }

  .experience-tab:hover {
    transform: none;
  }

  .contact-panel {
    padding: 36px 22px;
    border-radius: var(--radius-lg);
  }

  .contact-link {
    gap: 12px;
    padding: 14px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .contact-text strong {
    font-size: 0.98rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-arrow {
    display: none;
  }

  .contact-copy-button {
    width: 50px;
  }

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

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
