:root {
  color-scheme: dark;
  --bg: #090c10;
  --surface: #10151b;
  --surface-2: #141b21;
  --line: rgba(207, 222, 235, .13);
  --text: #edf2f3;
  --muted: #a1abb2;
  --accent: #ff9b80;
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

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

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

.shell {
  width: min(calc(100% - 96px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: 20px;
  top: -60px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
}

.skip-link:focus {
  top: 12px;
}

.page-glow {
  position: absolute;
  z-index: -1;
  top: -380px;
  right: 0;
  width: min(940px, 100vw);
  height: 940px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 119, 91, .12), transparent 63%);
  filter: blur(36px);
}

.accent-text {
  color: var(--accent);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 1280px);
  height: 60px;
  border-radius: 9999px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 35%, rgba(255, 255, 255, 0.015) 100%),
    rgba(6, 12, 20, 0.02);
  box-shadow:
    0 12px 30px -8px rgba(0, 0, 0, 0.22),
    0 4px 10px -2px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 8px 16px -8px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px) saturate(190%) contrast(102%) brightness(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(190%) contrast(102%) brightness(1.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: #f3f8fa;
}

.brand-mark {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav>a:not(.nav-contact) {
  color: rgba(230, 242, 248, 0.76);
  transition: color .2s ease;
  position: relative;
  padding: 6px 0;
}

.primary-nav>a:not(.nav-contact):hover {
  color: #fff;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #edf6f8;
  transition: all .24s ease;
}

.nav-contact:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.nav-contact span {
  padding-left: 2px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: none;
  min-height: max(780px, 100svh);
  padding: 185px max(48px, calc((100vw - 1280px) / 2)) 120px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, rgba(4, 13, 22, .79), rgba(4, 13, 22, .42) 48%, transparent 78%), linear-gradient(0deg, #090c10, transparent 26%), url('./assets/ocean-dusk.jpg') 68% center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 14, 22, .71), rgba(3, 14, 22, .35) 39%, transparent 71%), linear-gradient(0deg, rgba(5, 12, 17, .60), transparent 31%);
}

.hero-ocean {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.hero.is-ocean-ready .hero-ocean {
  opacity: 1;
}

.hero-boat {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 54%;
  width: clamp(92px, 8.6vw, 138px);
  aspect-ratio: 1;
  opacity: .96;
  pointer-events: none;
  transform-origin: 50% 68%;
  filter: drop-shadow(0 10px 14px rgba(1, 8, 14, .72));
  animation: boat-bob 6.2s ease-in-out infinite;
}

.hero-boat-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes boat-bob {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(-1.2deg);
  }

  50% {
    transform: translate(-50%, -50%) translateY(7px) rotate(1.3deg);
  }
}

.hero-code {
  position: absolute;
  z-index: 2;
  top: 122px;
  left: max(48px, calc((100vw - 1280px) / 2));
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: rgba(229, 235, 240, .72);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .035em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(730px, 64vw);
}

.hero-copy>* {
  animation: hero-rise .82s cubic-bezier(.22, .7, .24, 1) both;
}

.hero-copy> :nth-child(1) {
  animation-delay: .10s;
}

.hero-copy> :nth-child(2) {
  animation-delay: .25s;
}

.hero-copy> :nth-child(3) {
  animation-delay: .39s;
}

.hero-copy> :nth-child(4) {
  animation-delay: .55s;
}

.hero-copy> :nth-child(5) {
  animation-delay: .7s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #d3d9e0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .15em;
}

.live-line {
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 540;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(54px, 5.7vw, 82px);
  line-height: 1.13;
  font-weight: 670;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.hero-title-line {
  display: block;
}

.hero h1 em {
  font-style: normal;
}

.hero-letter {
  display: inline-block;
  color: transparent;
  background: linear-gradient(112deg, #f6f6f2 0%, #b6d5eb 31%, #ffb7a8 58%, #eaf3f2 83%, #f6f6f2 100%) 0 0 / 310% 100% text;
  -webkit-background-clip: text;
  animation: hero-letter-wave 4.8s cubic-bezier(.45, .05, .25, 1) infinite, hero-letter-sheen 8.5s linear infinite;
  animation-delay: calc(var(--i) * -.12s), calc(var(--i) * -.15s);
  text-shadow: 0 5px 34px rgba(42, 25, 24, .08);
}

.hero-punctuation {
  background-image: linear-gradient(112deg, #ff9b80, #ffd5b3, #ff9b80);
}

@keyframes hero-letter-wave {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(134, 194, 220, .10));
  }

  29% {
    transform: translateY(-.075em) rotate(-.3deg);
    filter: drop-shadow(0 0 17px rgba(142, 205, 226, .28));
  }

  61% {
    transform: translateY(.022em) rotate(.18deg);
    filter: drop-shadow(0 0 12px rgba(255, 166, 142, .21));
  }
}

@keyframes hero-letter-sheen {
  to {
    background-position: 310% 0;
  }
}

.hero-intro {
  max-width: 555px;
  margin-bottom: 34px;
  color: #e4e9e8;
  font-size: 15px;
  line-height: 1.85;
  text-shadow: 0 2px 15px rgba(0, 0, 0, .55);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: rgba(219, 229, 230, .68);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .21em;
  transform: translateX(-50%);
}

.hero-scroll i {
  display: block;
  width: 1px;
  height: 29px;
  background: linear-gradient(rgba(255, 184, 148, .8), transparent);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 21px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .22s ease, background .22s ease;
}

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

.button-primary {
  color: #28140e;
  background: var(--accent);
}

.button-primary:hover {
  background: #ffb8a4;
}

.button span {
  font-size: 19px;
  font-weight: 400;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e0e8e8;
  font-size: 13px;
  font-weight: 650;
  border-bottom: 1px solid rgba(224, 232, 232, .4);
  padding-bottom: 7px;
  transition: color .2s ease, border-color .2s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link span {
  font-size: 18px;
}

.proof-band {
  position: relative;
}

.proof-item {
  border: none;
}

.section {
  padding-top: 130px;
  padding-bottom: 130px;
}

.section-label {
  margin-bottom: 31px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
}

.section-title {
  margin-bottom: 0;
  font-size: clamp(42px, 4.7vw, 73px);
  line-height: 1.19;
  font-weight: 760;
  letter-spacing: -.075em;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: min(11vw, 160px);
}

.about-copy {
  padding-top: 14px;
  color: #aab6ba;
  font-size: 15px;
  line-height: 1.95;
}

.about-copy .lead {
  margin-bottom: 21px;
  color: #e0e6e5;
  font-size: 20px;
  line-height: 1.72;
  letter-spacing: -.02em;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 27px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
}

.work-section {
  background: #10151a;
}

.work-section .section-title {
  margin-bottom: 48px;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(250px, .9fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.timeline-main h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.timeline-main p {
  margin: 0;
  color: #8d9ca1;
  font-size: 13px;
}

.timeline-detail {
  max-width: 460px;
  color: #aab7b9;
  font-size: 13px;
  line-height: 1.85;
}

.projects-section {
  padding-top: 145px;
}

.projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 56px;
}

.projects-heading p {
  max-width: 335px;
  margin: 0 0 7px;
  color: #aab7ba;
  font-size: 14px;
  line-height: 1.8;
}

.feature-project {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: #11181d;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 29px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .07em;
}

.project-topline span+span {
  color: #879398;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 55px;
  padding: 51px 49px 42px;
}

.project-text h3 {
  margin-bottom: 25px;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.19;
  font-weight: 750;
  letter-spacing: -.075em;
}

.project-text>p {
  max-width: 560px;
  margin-bottom: 24px;
  color: #bdc7c8;
  font-size: 14px;
  line-height: 1.85;
}

.project-text ul {
  max-width: 610px;
  margin: 0;
  padding-left: 17px;
  color: #9eadaf;
  font-size: 13px;
  line-height: 1.75;
}

.project-text li+li {
  margin-top: 9px;
}

.project-text li::marker {
  color: var(--accent);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 49px 29px;
}

.project-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 155, 128, .23);
  color: #dfb5a9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.cloud-diagram {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 470px;
  padding: 24px;
  border: 1px solid rgba(255, 155, 128, .16);
  background: radial-gradient(circle at center, rgba(224, 119, 91, .11), transparent 72%), #0b1115;
}

.diagram-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 25px;
  color: var(--accent);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.diagram-title span {
  color: #758487;
}

.diagram-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 280px);
  padding: 10px 13px;
  border: 1px solid rgba(199, 226, 198, .27);
  background: #172027;
  color: #e3eae6;
  font-size: 12px;
}

.diagram-node small {
  color: #91a69a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.diagram-start,
.diagram-end {
  border-color: rgba(255, 155, 128, .58);
}

.diagram-link {
  width: 1px;
  height: 28px;
  background: var(--accent);
  opacity: .67;
}

.diagram-foot {
  margin-top: 27px;
  color: #829087;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  letter-spacing: .08em;
}

.project-ai {
  background: radial-gradient(circle at 19% 57%, rgba(224, 119, 91, .15), transparent 40%), #11181d;
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  padding: 59px 49px 55px;
}

.ai-statement {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 325px;
}

.ai-symbol {
  color: var(--accent);
  font-size: 56px;
  line-height: .8;
}

.ai-statement h3 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.2;
  letter-spacing: -.078em;
}

.ai-statement h3 span {
  color: var(--accent);
}

.ai-detail h4 {
  margin: 0 0 15px;
  font-size: 20px;
  letter-spacing: -.04em;
}

.ai-detail>p {
  margin: 0 0 28px;
  color: #aebcbb;
  font-size: 14px;
  line-height: 1.85;
}

.ai-capabilities {
  border-top: 1px solid var(--line);
}

.ai-capabilities>div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

.ai-capabilities strong {
  color: var(--accent);
  font-weight: 650;
}

.ai-capabilities span {
  color: #a7b4b4;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 36px 35px 0;
  border: 1px solid var(--line);
  background: #11171c;
  transition: border-color .25s ease, transform .25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 155, 128, .4);
}

.card-category {
  color: var(--accent);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.project-card h3 {
  margin: 46px 0 16px;
  font-size: clamp(28px, 3vw, 41px);
  line-height: 1.22;
  letter-spacing: -.065em;
}

.project-card p {
  max-width: 485px;
  margin: 0 0 29px;
  color: #a9b6b8;
  font-size: 13px;
  line-height: 1.85;
}

.project-card .project-tags {
  margin-top: auto;
  padding: 0 0 30px;
}

.skills-section {
  background: #10151a;
}

.skills-section .section-title {
  margin-bottom: 52px;
}

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

.skill-group {
  min-height: unset;
  padding: 26px 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-group h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -.01em;
}

.skill-group p {
  margin: 0;
  color: #9caaae;
  font-size: 13px;
  line-height: 1.65;
}

.education .section-title {
  margin-bottom: 48px;
}

.education-list {
  border-top: 1px solid var(--line);
}

.education-list>div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.education-list span {
  color: var(--accent);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.education-list strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.education-list p {
  margin: 0;
  color: #aab4b7;
  font-size: 13px;
}

.contact-section {
  padding: 104px 0 117px;
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at 69% 20%, rgba(224, 119, 91, .13), transparent 37%), #10171b;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 70px;
}

.contact-section h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 1.12;
  letter-spacing: -.08em;
}

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

.contact-side {
  padding-bottom: 9px;
}

.contact-side p {
  max-width: 390px;
  margin-bottom: 30px;
  color: #adbcbd;
  font-size: 15px;
  line-height: 1.8;
}

.contact-mail {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  width: min(100%, 390px);
  padding: 14px 0;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 600;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.contact-mail span {
  font-size: 25px;
}

.contact-phone {
  display: inline-block;
  margin-top: 15px;
  color: #a7b5b7;
  font-size: 15px;
}

.contact-phone:hover {
  color: var(--accent);
}

.site-footer {
  background: #0a0e11;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 79px;
  color: #7e8b90;
  font-size: 12px;
}

.footer-inner span:first-child {
  color: #e9eee9;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.06em;
}

.footer-inner a:hover {
  color: var(--accent);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  animation: reveal-in .65s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes reveal-in {
  from {
    opacity: .66;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1150px) {
  .shell {
    width: min(calc(100% - 64px), var(--container));
  }

  .hero.shell {
    width: 100%;
  }

  .hero {
    min-height: 760px;
    padding-inline: 32px;
  }

  .hero-code {
    left: 32px;
  }

  .hero h1 {
    font-size: clamp(51px, 6.4vw, 72px);
  }

  .primary-nav {
    gap: 24px;
  }

  .project-content {
    gap: 28px;
    padding-inline: 32px;
  }

  .project-tags {
    padding-inline: 32px;
  }

  .ai-layout {
    padding-inline: 32px;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 790px;
    padding-top: 200px;
    background-position: 76% center;
  }

  .hero-copy {
    width: min(680px, 100%);
  }

  .hero h1 {
    font-size: clamp(52px, 8vw, 73px);
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-note {
    display: none;
  }

  .about-layout {
    gap: 45px;
  }

  .timeline-item {
    grid-template-columns: 145px minmax(0, .9fr) minmax(0, 1fr);
    gap: 20px;
  }

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

  .cloud-diagram {
    min-height: 420px;
  }

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

@media (max-width: 700px) {
  html {
    scroll-padding-top: 70px;
  }

  .shell {
    width: min(calc(100% - 40px), var(--container));
  }

  .header-inner {
    height: 67px;
  }

  .site-header {
    top: 9px;
    left: 10px;
    right: 10px;
    border-radius: 14px;
  }

  .header-inner {
    height: 58px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: -1px;
    right: -1px;
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    background: #17171c;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px 4px;
  }

  .primary-nav .nav-contact {
    margin-top: 10px;
    padding: 12px 14px;
  }

  .hero {
    min-height: max(850px, 100svh);
    padding: 235px 20px 84px;
    background-position: 85% center;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(2, 12, 19, .92), rgba(2, 12, 19, .68) 41%, transparent 75%), linear-gradient(90deg, rgba(2, 12, 19, .36), transparent 75%);
  }

  .hero-code {
    top: 92px;
    left: 20px;
    gap: 8px;
    font-size: 10px;
  }

  .hero-boat {
    top: 43%;
    left: 61%;
    width: 68px;
  }

  .hero-kicker {
    margin-bottom: 29px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .hero-name {
    font-size: 16px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(43px, 11vw, 70px);
    line-height: 1.18;
  }

  .hero-intro {
    max-width: 335px;
    margin-bottom: 28px;
    color: #e6eaeb;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 20px;
  }

  .button {
    min-height: 47px;
    gap: 15px;
    padding-inline: 15px;
    font-size: 12px;
  }

  .text-link {
    font-size: 12px;
  }

  .hero-scroll {
    bottom: 17px;
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-item {
    min-height: 112px;
    padding: 22px 10px;
  }

  .proof-item:first-child {
    padding-left: 0;
  }

  .proof-item strong {
    font-size: 35px;
  }

  .proof-item p {
    font-size: 10px;
    line-height: 1.5;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-label {
    margin-bottom: 25px;
    font-size: 10px;
  }

  .section-title {
    font-size: clamp(40px, 9vw, 60px);
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-copy {
    padding-top: 0;
  }

  .about-copy .lead {
    font-size: 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 24px 0;
  }

  .timeline-main h3 {
    font-size: 19px;
  }

  .timeline-detail {
    margin-top: 3px;
  }

  .projects-section {
    padding-top: 93px;
  }

  .projects-heading {
    display: block;
    margin-bottom: 36px;
  }

  .projects-heading p {
    margin-top: 18px;
  }

  .project-topline {
    padding: 17px 19px;
    font-size: 10px;
  }

  .project-content {
    padding: 32px 22px 20px;
  }

  .project-text h3 {
    font-size: 43px;
  }

  .project-tags {
    padding: 0 22px 23px;
  }

  .cloud-diagram {
    min-height: 400px;
  }

  .ai-layout {
    grid-template-columns: 1fr;
    gap: 37px;
    padding: 39px 22px 25px;
  }

  .ai-statement {
    min-height: 0;
    gap: 40px;
  }

  .ai-symbol {
    font-size: 46px;
  }

  .ai-statement h3 {
    font-size: 46px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    min-height: 0;
    padding: 27px 24px 0;
  }

  .project-card h3 {
    margin-top: 40px;
    font-size: 35px;
  }

  .project-card .project-tags {
    padding-bottom: 25px;
  }

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

  .skill-group {
    min-height: 0;
    padding: 25px 23px 30px;
  }

  .skill-group h3 {
    margin-top: 25px;
  }

  .education-list>div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .education-list strong {
    font-size: 18px;
  }

  .contact-section {
    padding: 78px 0 88px;
  }

  .contact-section h2 {
    font-size: clamp(48px, 11vw, 72px);
  }

  .contact-side {
    padding: 0;
  }

  .contact-mail {
    font-size: 22px;
  }

  .footer-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 22px;
  }

  .footer-inner span:nth-child(2) {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    gap: 14px;
  }

  .button {
    padding-inline: 12px;
  }

  .contact-mail {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .reveal.is-visible {
    animation: none;
  }

  .hero-ocean {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #090c10;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: #25252a;
  }
}