:root {
  --bg: #fbfbfb;
  --paper: #ffffff;
  --ink: #141414;
  --soft-ink: #4b4b4b;
  --muted: #8c8c8c;
  --line: #e8e8e8;
  --wash: #f4f4f4;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --tiffany: #81d8d0;
  --tiffany-deep: #1da9a0;
  --blush: #f3b9c2;
  --shadow: 0 24px 80px rgba(20, 20, 20, 0.08);
  --soft-shadow: 0 14px 42px rgba(20, 20, 20, 0.08);
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0;
  cursor: none;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(20, 20, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
  z-index: -1;
}

a,
button,
[role="button"] {
  color: inherit;
  font: inherit;
  cursor: none;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 1px solid rgba(29, 169, 160, 0.42);
  outline-offset: 5px;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: none;
}

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

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000;
  transform: translate3d(-50%, -50%, 0);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--tiffany-deep);
  box-shadow: 0 0 18px rgba(129, 216, 208, 0.65);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(29, 169, 160, 0.52);
  border-radius: 999px;
  background: rgba(129, 216, 208, 0.14);
  backdrop-filter: blur(9px);
  transition: width 180ms ease, height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(129, 216, 208, 0.2);
  border-color: rgba(29, 169, 160, 0.78);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(22px, 5vw, 72px);
  mix-blend-mode: normal;
}

.brand-mark {
  font-size: 13px;
  color: rgba(20, 20, 20, 0.54);
  letter-spacing: 0;
}

.brand-mark span {
  position: relative;
}

.brand-mark span::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blush);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.52);
}

.top-nav a,
.language-switch button,
.brand-mark {
  transition: color 180ms ease;
}

.top-nav a:hover,
.language-switch button:hover,
.brand-mark:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b4b4b4;
}

.language-switch button {
  padding: 2px;
  color: #aaa;
}

.language-switch button.is-active {
  color: var(--ink);
  font-weight: 400;
}

.section-panel {
  position: relative;
  min-height: 100svh;
  padding: clamp(86px, 11vw, 132px) clamp(22px, 7vw, 104px);
  overflow: hidden;
}

.hero {
  display: grid;
  place-items: center;
  padding-top: 62px;
}

.hero-inner {
  position: relative;
  width: min(1120px, 100%);
  min-height: calc(100svh - 124px);
}

.home-catalog {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  text-align: center;
  min-width: 260px;
  padding: 14px 0 160px;
}

.hero-kicker {
  margin: 0 0 2px;
  font-size: clamp(12px, 1.5vw, 15px);
  color: rgba(20, 20, 20, 0.34);
}

.hero-name {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0;
  color: rgba(20, 20, 20, 0.24);
  font-size: clamp(62px, 8vw, 118px);
  font-weight: 200;
  line-height: 0.88;
}

.hero-name i {
  width: clamp(7px, 0.9vw, 11px);
  height: clamp(7px, 0.9vw, 11px);
  margin-bottom: clamp(8px, 1.2vw, 14px);
  border-radius: 50%;
  background: var(--blush);
  opacity: 0.72;
}

.home-menu {
  position: absolute;
  left: 50%;
  top: calc(50% + 34px);
  display: grid;
  gap: 20px;
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 260ms ease;
}

.home-catalog:hover .home-menu,
.home-catalog.is-open .home-menu,
.home-catalog:focus-within .home-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.home-menu a {
  color: rgba(20, 20, 20, 0.42);
  font-size: clamp(18px, 2.3vw, 30px);
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.home-menu a:nth-child(1) {
  transition-delay: 40ms;
}

.home-menu a:nth-child(2) {
  transition-delay: 80ms;
}

.home-menu a:nth-child(3) {
  transition-delay: 120ms;
}

.home-menu a:nth-child(4) {
  transition-delay: 160ms;
}

.home-menu a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-photo {
  position: absolute;
  left: 0;
  bottom: 42px;
  width: clamp(112px, 13vw, 172px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-line {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: min(440px, 54vw);
  margin: 0;
  color: rgba(20, 20, 20, 0.48);
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.8;
  text-align: right;
}

.resume-pill {
  position: absolute;
  right: 0;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(29, 169, 160, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(20, 20, 20, 0.58);
  font-size: 12px;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(20, 20, 20, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.resume-pill::after {
  content: "↗";
  color: var(--tiffany-deep);
}

.resume-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 169, 160, 0.48);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.top-link {
  position: fixed;
  right: clamp(22px, 4vw, 48px);
  bottom: 24px;
  z-index: 45;
  color: rgba(20, 20, 20, 0.42);
  font-size: 11px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: min(1040px, 100%);
  margin: 0 auto clamp(42px, 7vw, 72px);
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 300;
  letter-spacing: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(36px, 8vw, 96px);
  width: min(1040px, 100%);
  margin: 0 auto;
}

.about-photo {
  align-self: start;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wash);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: min(66svh, 560px);
  object-fit: cover;
  object-position: center top;
}

.about-content {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  align-content: start;
}

.about-block {
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}

.about-block:last-child {
  border-bottom: 0;
}

.block-label {
  margin: 0 0 16px;
  color: rgba(20, 20, 20, 0.84);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.about-block p:not(.block-label),
.education-list {
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.85;
}

.education-list {
  display: grid;
  gap: 16px;
}

.education-list div {
  display: grid;
  gap: 4px;
}

.education-list strong {
  color: var(--ink);
  font-weight: 400;
}

.education-list span {
  color: var(--muted);
  font-size: 0.92em;
}

.skills {
  padding-bottom: clamp(76px, 12vw, 142px);
}

.macbook-stage {
  position: relative;
  width: min(1120px, 100%);
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  align-content: start;
}

.macbook-graphic {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(690px, 82vw);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.86;
}

.mac-screen {
  height: clamp(300px, 38vw, 392px);
  border: clamp(8px, 1.1vw, 13px) solid #202124;
  border-bottom-width: clamp(12px, 1.6vw, 18px);
  border-radius: 20px 20px 10px 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.08);
}

.screen-copy {
  width: min(470px, 68%);
  margin: clamp(64px, 9vw, 94px) auto 0;
}

.screen-copy span {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 18px;
  color: #b43737;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.screen-copy span::before {
  content: "";
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bf1b1b;
}

.screen-copy strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 300;
}

.screen-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.mac-hinge {
  width: 93%;
  height: 12px;
  margin: -2px auto 0;
  border-radius: 0 0 12px 12px;
  background: #d9d9d9;
  box-shadow: inset 0 5px 10px rgba(255, 255, 255, 0.8);
}

.mac-base {
  position: relative;
  width: 116%;
  height: clamp(34px, 5vw, 54px);
  margin-left: -8%;
  background: linear-gradient(#f8f8f8, #dedede);
  border-radius: 0 0 42px 42px;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.08);
}

.mac-base div {
  width: 18%;
  height: 8px;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  background: #cfcfcf;
}

.skill-window {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin-top: clamp(210px, 29vw, 300px);
}

.skill-controls {
  position: absolute;
  right: 0;
  top: -58px;
  display: flex;
  gap: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  background: var(--glass);
  color: rgba(20, 20, 20, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.06);
  transition: transform 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 169, 160, 0.36);
}

.skill-track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  min-width: 0;
  padding: 10px 4px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.skill-track::-webkit-scrollbar {
  display: none;
}

.skill-card {
  flex: 0 0 clamp(218px, 24vw, 282px);
  min-height: 214px;
  padding: 24px 22px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--soft-shadow);
  scroll-snap-align: center;
  text-align: left;
  transition: transform 260ms ease, background 260ms ease, border-color 260ms ease;
}

.skill-card:hover,
.skill-card.is-active {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(29, 169, 160, 0.32);
}

.skill-card small {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 300;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.skill-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.skill-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d2d2d2;
}

.skill-dots span.is-active {
  background: #c11616;
}

.skill-detail {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 32px auto 0;
  padding: 24px 26px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(20, 20, 20, 0.06);
}

.skill-detail h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
}

.skill-detail p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 20, 20, 0.58);
  font-size: 12px;
}

.detail-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 15px;
  border: 1px solid rgba(29, 169, 160, 0.34);
  border-radius: 999px;
  background: rgba(129, 216, 208, 0.13);
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease;
}

.detail-action:hover {
  transform: translateY(-2px);
  background: rgba(129, 216, 208, 0.22);
}

.experience-intro {
  width: min(760px, 100%);
  margin: -22px auto 44px;
  color: var(--soft-ink);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.9;
}

.experience-list {
  display: grid;
  gap: 16px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr) auto;
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  width: 100%;
  padding: clamp(22px, 3.2vw, 34px);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  text-align: left;
  box-shadow: 0 12px 34px rgba(20, 20, 20, 0.045);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 169, 160, 0.28);
  box-shadow: 0 22px 58px rgba(20, 20, 20, 0.08);
}

.experience-card.is-featured {
  background: rgba(255, 255, 255, 0.84);
}

.experience-date {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.experience-main h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
}

.experience-role {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.experience-summary {
  margin: 0;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.8;
}

.experience-extra {
  display: grid;
  grid-template-rows: 0fr;
  grid-column: 2 / -1;
  transition: grid-template-rows 260ms ease;
}

.experience-card.is-expanded .experience-extra {
  grid-template-rows: 1fr;
  margin-top: 4px;
}

.experience-extra ul {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding-left: 18px;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.8;
}

.experience-action {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 50%;
  color: rgba(20, 20, 20, 0.56);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.experience-card:hover .experience-action {
  transform: translateX(3px);
  border-color: rgba(29, 169, 160, 0.32);
  background: rgba(129, 216, 208, 0.12);
}

.contact {
  min-height: 86svh;
}

.contact-wrap {
  width: min(880px, 100%);
  margin: 0 auto;
}

.contact-note {
  margin: 0 0 34px;
  color: var(--soft-ink);
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 300;
  line-height: 1.7;
}

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

.contact-card {
  min-height: 142px;
  padding: 22px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 169, 160, 0.34);
  background: rgba(255, 255, 255, 0.9);
}

.contact-card span {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--ink);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  overflow-wrap: anywhere;
}

.resume-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(29, 169, 160, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.resume-link:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 169, 160, 0.42);
  background: rgba(255, 255, 255, 0.92);
}

.resume-link span {
  color: var(--ink);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 300;
}

.resume-link strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  text-align: right;
}

.resume-link::after {
  content: "↗";
  flex: 0 0 auto;
  color: var(--tiffany-deep);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  z-index: 120;
  padding: 12px 18px;
  border: 1px solid rgba(29, 169, 160, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  backdrop-filter: blur(16px);
  box-shadow: var(--soft-shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 260ms ease;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: blur(18px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(780px, 92svh);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 28px 110px rgba(20, 20, 20, 0.16);
  overflow: hidden;
}

.vibe-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.window-bar {
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
}

.window-bar p {
  margin: 0;
  text-align: center;
  color: var(--soft-ink);
  font-size: 13px;
}

.traffic {
  display: flex;
  gap: 8px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic span:nth-child(1) {
  background: #ff5f57;
}

.traffic span:nth-child(2) {
  background: #febc2e;
}

.traffic span:nth-child(3) {
  background: #28c840;
}

.browser-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.browser-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-line a {
  flex: 0 0 auto;
  color: var(--tiffany-deep);
}

.iframe-shell {
  min-height: min(620px, 68svh);
  background: #fff;
}

.iframe-shell iframe {
  width: 100%;
  height: min(620px, 68svh);
  border: 0;
}

.vision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
  background: #fff;
}

.vision-close {
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.modal-kicker {
  margin: 0 0 14px;
  color: #a42020;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.vision-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.08;
}

.vision-copy > p:not(.modal-kicker):not(.vision-footnote) {
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
}

.vision-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.vision-metrics span {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
}

.vision-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
}

.vision-metrics em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

.vision-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.phone-mockup {
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  width: min(268px, 70vw);
  aspect-ratio: 0.49;
  padding: 20px 16px 18px;
  border: 10px solid #17181b;
  border-radius: 42px;
  background: #fafafa;
  box-shadow: 0 34px 90px rgba(20, 20, 20, 0.18);
  overflow: hidden;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 94px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
  z-index: 1;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #6d6d6d;
  font-size: 11px;
}

.phone-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #7a7a7a;
  font-size: 13px;
}

.phone-toolbar strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.phone-tabs button {
  padding: 7px 5px;
  border-bottom: 2px solid transparent;
  color: #8c8c8c;
  font-size: 12px;
}

.phone-tabs button.is-active {
  border-color: #b31212;
  color: var(--ink);
}

.phone-content {
  display: grid;
  gap: 10px;
  max-height: calc(100% - 106px);
  overflow: auto;
  padding-right: 3px;
}

.phone-card {
  padding: 12px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.055);
  animation: floatIn 300ms ease both;
}

.phone-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
}

.phone-card p {
  margin: 0;
  color: #7a7a7a;
  font-size: 11px;
  line-height: 1.55;
}

.phone-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.mini-doc {
  min-height: 76px;
  border-radius: 8px;
  background: #fbfbfb;
  border: 1px solid #ededed;
  padding: 9px;
}

.mini-doc i {
  display: block;
  height: 5px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #e5e5e5;
}

.mini-doc i:nth-child(2) {
  width: 78%;
}

.mini-doc i:nth-child(3) {
  width: 56%;
  background: rgba(129, 216, 208, 0.45);
}

.mini-doc i:nth-child(4) {
  width: 92%;
}

.mini-doc i:nth-child(5) {
  width: 66%;
  background: rgba(179, 18, 18, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  a,
  button,
  [role="button"] {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .site-header {
    padding: 22px;
  }

  .top-nav {
    display: none;
  }

  .hero-inner {
    min-height: calc(100svh - 96px);
  }

  .home-catalog {
    top: 42%;
  }

  .home-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .hero-photo {
    width: 104px;
    bottom: 32px;
  }

  .hero-line {
    left: 0;
    right: auto;
    bottom: 158px;
    width: min(380px, 100%);
    text-align: left;
  }

  .resume-pill {
    right: 0;
    bottom: 104px;
  }

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

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

  .about-photo img {
    height: 440px;
  }

  .macbook-stage {
    min-height: 700px;
  }

  .skill-window {
    margin-top: 258px;
  }

  .screen-copy {
    width: 76%;
  }

  .skill-controls {
    top: -50px;
  }

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

  .experience-date {
    grid-column: 1 / -1;
  }

  .experience-extra {
    grid-column: 1 / -1;
  }

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

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

  .resume-link strong {
    text-align: left;
  }

  .resume-link::after {
    position: absolute;
    right: 22px;
    top: 18px;
  }

  .vision-panel {
    grid-template-columns: 1fr;
    overflow: auto;
  }
}

@media (max-width: 560px) {
  .section-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-mark {
    display: none;
  }

  .site-header {
    justify-content: flex-end;
  }

  .hero-name {
    font-size: clamp(54px, 17vw, 78px);
  }

  .home-menu a {
    font-size: 22px;
  }

  .hero-photo {
    width: 92px;
  }

  .hero-line {
    bottom: 144px;
    font-size: 13px;
  }

  .resume-pill {
    bottom: 92px;
    font-size: 12px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .about-photo img {
    height: 380px;
  }

  .macbook-graphic {
    width: 95vw;
  }

  .mac-screen {
    height: 300px;
  }

  .screen-copy {
    margin-top: 54px;
  }

  .screen-copy p {
    display: none;
  }

  .skill-window {
    margin-top: 242px;
  }

  .skill-card {
    flex-basis: 78vw;
  }

  .modal {
    padding: 10px;
  }

  .window-bar {
    grid-template-columns: 70px 1fr 38px;
  }

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

  .iframe-shell,
  .iframe-shell iframe {
    height: 68svh;
  }

  .vision-panel {
    padding: 52px 18px 24px;
  }

  .vision-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
