@import url('fonts.css');

:root {
  color-scheme: dark;
  --bg: #090a12;
  --work-bg: #0d0e18;
  --panel: #11121d;
  --paper: #f3f1fa;
  --muted: #b7b7cc;
  --accent: #c3b4ff;
  --blue: #8da7ff;
  --line: #ffffff24;
  --display: 'Syne', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(24px, 7vw, 128px);
  --header-height: 74px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; background: var(--bg); color: var(--paper); font: 400 1rem/1.6 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.05em; }
h2 { font-size: clamp(2.55rem, 5.2vw, 5.6rem); font-weight: 700; }
h3 { font-weight: 700; }
em { color: var(--accent); font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { color: #080a15; background: var(--accent); }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  color: #080a15;
  background: var(--paper);
}
.section-shell { width: min(1540px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.button {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff50;
  border-radius: 6px;
  background: transparent;
  padding: 10px 18px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover { border-color: var(--accent); background: #c3b4ff17; }
.button-primary { border-color: var(--accent); color: #101021; background: var(--accent); }
.button-primary:hover { border-color: #e8e1ff; background: #e8e1ff; }

.header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: 1px solid #ffffff18;
  background: #090a1288;
  backdrop-filter: blur(16px);
}
.brand {
  justify-self: start;
  font: 800 2.2rem/.8 var(--display);
  letter-spacing: -.11em;
}
.brand span { color: var(--accent); }
.header nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 52px); }
.header nav a, .header-cta { font-size: .9rem; font-weight: 600; }
.header nav a { color: var(--muted); }
.header nav a:hover, .header nav a[aria-current], .header-cta:hover { color: var(--accent); }
.header-cta {
  justify-self: end;
  border: 1px solid #ffffff43;
  border-radius: 5px;
  padding: 7px 14px;
}

.intro { position: relative; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: max(660px, 100svh);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: calc(var(--header-height) + 45px) var(--gutter) 0;
  background: var(--work-bg);
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  z-index: -3;
  background:
    radial-gradient(ellipse at 74% 48%, #24213b 0, #151421 40%, transparent 65%),
    #0a0b13;
  opacity: var(--camera-opacity, 1);
}
.hero::after {
  z-index: -1;
  background: linear-gradient(180deg, transparent 80%, var(--work-bg) 100%);
}
.motion .intro { min-height: calc(max(660px, 100svh) + 66svh); }
.motion .hero { position: sticky; top: 0; }
.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(#a7a5e60b 1px, transparent 1px),
    linear-gradient(90deg, #a7a5e60b 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 77% 40%, #000 2%, transparent 82%);
  opacity: var(--camera-opacity, 1);
}
.hero-visual {
  position: absolute;
  z-index: -1;
  inset: var(--header-height) 0 0 40%;
  isolation: isolate;
  transform-origin: 60% 48%;
  transform: translate3d(var(--camera-x, 0), var(--camera-y, 0), 0) scale(var(--camera-scale, 1));
  opacity: var(--camera-opacity, 1);
}
.hero-portrait {
  position: absolute;
  z-index: 1;
  right: max(2%, calc((100vw - 1600px) / 2));
  bottom: -3%;
  width: min(94%, 660px);
  height: 108%;
  object-fit: cover;
  object-position: 50% 35%;
  mask-image:
    linear-gradient(90deg, transparent, #000 19% 85%, transparent),
    linear-gradient(0deg, transparent, #000 23% 76%, transparent 99%);
  mask-composite: intersect;
}
.orbit {
  position: absolute;
  width: min(44vw, 625px);
  aspect-ratio: 1;
  left: 56%;
  top: 45%;
  border: 1px solid #8da7ff40;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-inner { width: min(35vw, 500px); border-style: dashed; opacity: .68; }
.orbit-axis {
  position: absolute;
  width: 90%;
  height: 1px;
  inset: 45% auto auto 10%;
  background: linear-gradient(90deg, transparent, #8988bd7d 25%, #8988bd7d 83%, transparent);
}
.orbit-dot {
  position: absolute;
  z-index: 2;
  top: 45%;
  right: 12%;
  width: 7px;
  height: 7px;
  background: #b7adff;
  border-radius: 50%;
  box-shadow: 0 0 20px 5px #8f7fff6c;
  transform: translateY(-50%);
}
.hero-copy {
  width: fit-content;
  transform: translate3d(0, var(--copy-y, 0), 0);
  opacity: var(--copy-opacity, 1);
  padding-block: 0 42px;
  pointer-events: var(--hero-links, auto);
}
.hero:has(:focus-visible) .hero-copy { opacity: 1; }
.hero-label { display: flex; align-items: center; gap: 12px; }
.hero-label span { width: 25px; height: 1px; background: var(--accent); }
.hero h1 {
  margin-block: 22px 24px;
  font-size: clamp(4.1rem, 8.3vw, 9.2rem);
  font-weight: 800;
  line-height: .91;
  letter-spacing: -.08em;
}
.hero h1 em {
  color: transparent;
  background: linear-gradient(110deg, #96abff, #d6b8ff 90%);
  background-clip: text;
}
.hero-subtitle { font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 700; }
.hero-summary { max-width: 34ch; color: var(--muted); margin: 8px 0 27px; }
.hero-bottom {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 14px;
  opacity: var(--bottom-opacity, 1);
  pointer-events: var(--footer-links, auto);
}
.hero:has(:focus-visible) .hero-bottom { opacity: 1; }
.hero-bottom p, .scroll-cue { font-size: .875rem; color: var(--muted); }
.hero-bottom p span {
  display: inline-block;
  vertical-align: middle;
  width: 3px;
  height: 3px;
  margin-inline: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.scroll-cue:hover { color: var(--paper); }
.scroll-icon { width: 15px; height: 23px; border: 1px solid #c3b4ff9c; border-radius: 12px; padding-top: 4px; }
.scroll-icon::after {
  content: '';
  display: block;
  width: 3px;
  height: 6px;
  margin-inline: auto;
  border-radius: 4px;
  background: var(--accent);
  animation: scroll-pulse 2.3s infinite;
}
@keyframes scroll-pulse {
  0%, 74%, 100% { transform: translateY(0); opacity: .65; }
  33% { transform: translateY(4px); opacity: 1; }
}
.work {
  position: relative;
  background:
    linear-gradient(var(--work-bg), transparent 180px),
    radial-gradient(ellipse at 60% 0, #18152a, transparent 650px),
    var(--work-bg);
  padding-block: 114px 116px;
}
.work-header { display: grid; grid-template-columns: 1fr 3fr; align-items: start; gap: 22px; }
.work-header > .eyebrow { margin-top: 13px; }
.work-header div > p { max-width: 48ch; color: var(--muted); margin-top: 20px; }
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(26px, 6vw, 100px);
  margin-top: 50px;
}
.project-visual { position: sticky; top: calc(var(--header-height) + 26px); }
.visual-frame {
  position: relative;
  isolation: isolate;
  overflow: clip;
  aspect-ratio: 1.15;
  max-height: 64svh;
  min-height: 330px;
  background: #121428;
  border: 1px solid #a69eea52;
  border-radius: 10px;
}
.project-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.art-battery { background-image: url('assets/project-battery.webp'); }
.art-heart { background-image: url('assets/project-heart.webp'); }
.art-transport { background-image: url('assets/project-transport.webp'); }
.art-routing { background-image: url('assets/project-routing.webp'); }
.visual-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.10);
  transition: transform .64s cubic-bezier(.22, 1, .36, 1), opacity .42s ease;
}
html:not(.enhanced) .visual-image:first-child, .visual-image.is-active { opacity: 1; transform: scale(1); }
.visual-image.is-active { z-index: 1; }
.visual-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(0deg, #090a16 2%, #090a1677 22%, transparent 43%);
}
.frame-corner { position: absolute; z-index: 3; width: 18px; height: 18px; color: #c3b4ffa0; }
.corner-top { top: 15px; left: 15px; border: solid currentColor; border-width: 1px 0 0 1px; }
.corner-bottom { bottom: 15px; right: 15px; border: solid currentColor; border-width: 0 1px 1px 0; }
.visual-caption { position: absolute; z-index: 3; inset: auto 30px 26px; }
.visual-caption strong { display: block; margin-top: 5px; font: 700 clamp(1.3rem, 2.8vw, 2.4rem)/1.1 var(--display); letter-spacing: -.045em; }
.project-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 13px; }
.project-nav a {
  border-bottom: 1px solid transparent;
  padding-block: 6px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}
.project-nav-short { display: none; }
.project-nav a[aria-current] { border-color: var(--accent); color: var(--paper); }
@media (hover: hover) {
  .project-nav a:hover { color: var(--paper); }
}
.project { min-height: min(66svh, 610px); display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.project + .project { border-top: 1px solid var(--line); }
.project h3 { margin-top: 14px; font-size: clamp(1.8rem, 3.2vw, 3.25rem); hyphens: auto; }
.project h3 + p { margin-top: 19px; color: #e4dff6; font-size: 1.06rem; font-weight: 600; }
.project-focus { margin-top: 9px; color: var(--muted); }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.tags li { border: 1px solid #a99cfd42; border-radius: 5px; padding: 4px 9px; color: #ddd6fa; font-size: .875rem; }
.mobile-image { display: none; }

.about {
  padding-block: clamp(50px, 7vw, 112px);
  background: #10111c;
  border-block: 1px solid var(--line);
}
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
  padding: clamp(26px, 4.5vw, 72px);
  border: 1px solid #a491f04d;
  border-radius: 12px;
  background: radial-gradient(ellipse at 0% 12%, #302346 0, transparent 59%), #141421;
}
.about-heading h2 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: .96;
}
.about-heading h2 em { display: block; margin-top: 8px; }
.about-copy { padding-top: 4px; }
.about-copy > p { color: var(--muted); max-width: 58ch; }
.about-copy > p:first-child { color: var(--paper); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.about-copy > p + p { margin-top: 14px; }
.about-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about-link:hover { color: var(--paper); }
.about-skills {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.about-skills h3.eyebrow { font-family: var(--body); letter-spacing: .15em; line-height: 1.6; }
.about-skills-grid {
  display: grid;
  grid-template-columns: 1fr .85fr 1.22fr;
  gap: clamp(12px, 2.8vw, 36px);
  margin-top: 17px;
}
.about-skills-grid > div + div { border-left: 1px solid var(--line); padding-left: clamp(12px, 2.8vw, 36px); }
.about-skills h4 { margin: 0; color: var(--paper); font-size: 1rem; }
.about-skills .tags { margin-top: 10px; }

.background { display: grid; grid-template-columns: 1.18fr 1fr; gap: clamp(28px, 8vw, 110px); padding-block: clamp(70px, 9vw, 135px); }
.background h2 { margin: 12px 0 28px; font-size: clamp(2.1rem, 3.5vw, 3.9rem); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-top: 1px solid var(--line); padding-block: 20px; }
.timeline-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 15px; font-size: .875rem; color: var(--accent); }
.timeline-org { display: flex; align-items: center; gap: 9px; }
.org-marks { display: inline-flex; gap: 4px; flex: none; }
.org-marks img {
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
}
.org-marks .nexiino-mark { padding: 0; background: #171b29; }
.timeline h3 { margin: 7px 0; font-size: 1.25rem; letter-spacing: -.025em; }
.timeline p, .document p { color: var(--muted); }

.documents { padding-block: 5px clamp(75px, 10vw, 140px); }
.documents h2 { margin-block: 10px 27px; font-size: clamp(2.4rem, 4.7vw, 4.8rem); }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.document {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
  background: #121320;
  padding: clamp(18px, 2.3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.document-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  border: 1px solid #a494ef71;
  border-radius: 4px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
}
.document h3 { margin-bottom: 5px; font-size: 1.35rem; letter-spacing: -.03em; }
.document .button { grid-column: 2; align-self: end; }

.contact {
  background: radial-gradient(ellipse at 70% 22%, #211a3a, transparent 72%), #10101b;
  border-top: 1px solid var(--line);
  padding-block: clamp(66px, 8vw, 110px) 25px;
}
.contact h2 { margin-block: 14px 20px; font-size: clamp(4rem, 11vw, 10rem); }
.contact .section-shell > p:not(.eyebrow) { color: var(--muted); }
.contact-email, .social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 19px; }
.contact-email > a { overflow-wrap: anywhere; font-weight: 700; font-size: clamp(1rem, 2.3vw, 1.45rem); }
.social-links a, footer a { text-decoration: underline; text-underline-offset: 4px; }
.contact a:hover { color: var(--accent); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 55px; padding-top: 20px; color: var(--muted); font-size: .875rem; }

@media (max-width: 930px) {
  .hero-visual { left: 36%; }
  .hero-portrait { right: 0; height: 93%; }
  .work-header { grid-template-columns: 1fr; gap: 10px; }
  .work-header > .eyebrow { margin: 0; }
}
@media (max-width: 720px) {
  :root { --header-height: 60px; }
  .header-cta { border: 0; padding: 0; }
  .header nav { gap: 15px; }
  .header nav a, .header-cta { font-size: .84rem; }
  .hero {
    min-height: max(640px, 100svh);
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    padding-top: max(300px, 46svh);
    padding-inline: clamp(16px, 4.6vw, 28px);
  }
  .motion .intro { min-height: calc(max(640px, 100svh) + 52svh); }
  .hero-visual { inset: var(--header-height) 0 19% 0; transform-origin: 67% 36%; }
  .hero-portrait {
    width: 100%;
    height: 100%;
    object-position: 50% 27%;
    mask-image:
      linear-gradient(90deg, transparent, #000 12% 89%, transparent),
      linear-gradient(0deg, transparent 9%, #000 48% 85%, transparent 99%);
  }
  .orbit { width: 80vw; left: 58%; top: 40%; }
  .orbit-inner { width: 65vw; }
  .orbit-axis, .orbit-dot { top: 40%; }
  .hero h1 {
    margin-block: 13px 15px;
    font-size: clamp(2rem, 11.8vw, 5.25rem);
    overflow-wrap: anywhere;
  }
  .hero-copy { width: 100%; min-width: 0; padding-bottom: 24px; }
  .hero-summary { margin-bottom: 18px; }
  .hero-bottom { min-height: 54px; }
  .hero-bottom p { display: none; }
  .work { padding-block: 84px 25px; }
  .work-layout { display: flex; flex-direction: column; margin-top: 22px; }
  .project-visual { position: static; width: 100%; }
  .visual-frame { display: none; }
  .project-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) minmax(0, 1.05fr) minmax(0, .87fr);
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #0e0e1bcc;
  }
  .project-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 4px 2px;
    border: 0;
    border-radius: 6px;
    text-align: center;
    font-size: clamp(.7rem, 3.3vw, .875rem);
    line-height: 1.2;
  }
  .project-nav a[aria-current] { background: #c3b4ff22; color: var(--paper); }
  .project-nav a:focus-visible { outline-offset: -2px; }
  .project-nav-full { display: none; }
  .project-nav-short { display: inline; }
  .project { min-height: 0; padding-block: 22px 32px; }
  .project h3 { margin-top: 11px; }
  .mobile-image {
    display: block;
    position: relative;
    aspect-ratio: 1.30;
    border-radius: 8px;
    margin-bottom: 19px;
  }
  .about-panel, .about-skills-grid, .background { grid-template-columns: 1fr; }
  .about-panel { gap: 25px; }
  .about-copy { padding-top: 0; }
  .about-skills-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; }
  .background { gap: 33px; }
}
@media (max-width: 500px) {
  .header { padding-inline: 18px; }
  .header nav { gap: 13px; }
  .brand { font-size: 1.8rem; }
  .document-grid { grid-template-columns: 1fr; }
}
@media (max-height: 700px) and (min-width: 721px) {
  .hero { min-height: max(590px, 100svh); }
  .motion .intro { min-height: calc(max(590px, 100svh) + 66svh); }
  .hero h1 { font-size: clamp(4rem, 7.5vw, 7rem); }
  .hero-copy { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
