﻿:root {
  --ink: #09060f;
  --ink-soft: #110b19;
  --panel: rgba(22, 13, 31, .72);
  --panel-solid: #170d21;
  --text: #f8f3ff;
  --muted: #a89caf;
  --line: rgba(255, 255, 255, .1);
  --line-bright: rgba(210, 124, 255, .28);
  --purple: #c35cff;
  --purple-soft: #8c3dff;
  --pink: #ff7bd5;
  --gold: #e7c47a;
  --green: #70e8ae;
  --max: 1280px;
  --header-h: 82px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--ink);
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--ink);
  background-size: 72px 72px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.intro-active {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

::selection {
  color: #120718;
  background: var(--purple);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20000;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

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

/* Intro */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(154, 50, 229, .2), transparent 30%),
    #050208;
  opacity: 1;
  visibility: visible;
  transition: opacity .75s ease, visibility .75s ease;
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-grid {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(211, 127, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 127, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle, #000 12%, transparent 65%);
  animation: introGrid 4s linear both;
}

.intro-core {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
  opacity: 0;
  animation: introCore 3.3s var(--ease) .25s both;
}

.intro-emblem {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(221, 147, 255, .48);
  border-radius: 50%;
  color: #e3a4ff;
  box-shadow:
    0 0 0 12px rgba(181, 77, 255, .035),
    0 0 60px rgba(171, 65, 255, .28),
    inset 0 0 32px rgba(193, 92, 255, .13);
}

.intro-emblem::before,
.intro-emblem::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(218, 132, 255, .18);
}

.intro-emblem::before {
  inset: -20px;
  border-style: dashed;
  animation: spin 9s linear infinite;
}

.intro-emblem::after {
  inset: 8px;
}

.intro-emblem span {
  font-family: "Syne", sans-serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
}

.intro-emblem i {
  position: absolute;
  bottom: 23px;
  width: 36px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(231, 196, 122, .7);
}

.intro-kicker,
.intro-mantra {
  margin: 0;
  color: #bcaec5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .35em;
}

.intro-word {
  margin: 8px 0 10px;
  font-family: "Syne", sans-serif;
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .95;
  background: linear-gradient(110deg, #fff 25%, #d68bff 55%, #f0cf8b 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-mantra b {
  color: var(--purple);
}

.intro-skip {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 8;
  width: auto;
  padding: 10px 18px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: #d8cce0;
  background: rgba(18, 8, 26, .7);
  cursor: pointer;
  opacity: 0;
  animation: fadeIn .5s ease 1s both;
}

.intro-skip:hover {
  color: #fff;
  border-color: var(--purple);
}

.intro-gate {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 50.1%;
  background:
    linear-gradient(rgba(185, 79, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 79, 255, .05) 1px, transparent 1px),
    linear-gradient(135deg, #0b0610, #050208);
  background-size: 52px 52px, 52px 52px, auto;
  animation-duration: 1s;
  animation-delay: 3.15s;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
}

.intro-gate-left {
  left: 0;
  border-right: 1px solid rgba(214, 124, 255, .18);
  animation-name: gateLeft;
}

.intro-gate-right {
  right: 0;
  border-left: 1px solid rgba(214, 124, 255, .18);
  animation-name: gateRight;
}

/* Ambient */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  max-width: 100vw;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .13;
}

.orb-one {
  top: 6%;
  right: -170px;
  background: #a638ff;
}

.orb-two {
  top: 55%;
  left: -210px;
  background: #e04dad;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.petal {
  position: absolute;
  top: -30px;
  width: 9px;
  height: 14px;
  border-radius: 70% 10% 70% 30%;
  background: linear-gradient(135deg, #ff9de2, #b44cff);
  opacity: .4;
  animation: petalFall linear infinite;
}

/* Header */
.site-header {
  position: fixed;
  top: 18px;
  right: 24px;
  left: 24px;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9, 6, 15, .72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
  transition: height .25s ease, background .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  height: 68px;
  border-color: rgba(205, 112, 255, .18);
  background: rgba(9, 6, 15, .9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(208, 116, 255, .45);
  border-radius: 50%;
  color: #e0a5ff;
  background: rgba(175, 67, 255, .08);
  box-shadow: inset 0 0 18px rgba(186, 70, 255, .1);
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: "Syne", sans-serif;
  font-size: 16px;
  letter-spacing: .25em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .28em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
}

.nav a {
  position: relative;
  color: #bfb3c7;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

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

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

.replay-intro,
.menu-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

.replay-intro {
  width: 40px;
  height: 40px;
  color: #bbaec4;
  font-size: 12px;
}

.replay-intro:hover {
  color: var(--purple);
  border-color: var(--line-bright);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 12px;
  color: #120818;
  background: linear-gradient(110deg, #e5a7ff, #c369ff 56%, #e5bf72);
  font-size: 13px;
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 1px;
  background: #fff;
  transition: transform .25s ease;
}

.menu-button.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Global section type */
main {
  overflow: clip;
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 130px 0;
}

.section-label,
.eyebrow {
  margin: 0 0 24px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25em;
}

.eyebrow b {
  color: var(--gold);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 60px;
}

.section-heading h2,
.journey h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(45px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .98;
}

.section-heading h2 span,
.journey h2 span,
.about h2 span,
.contact h2 span {
  color: #8f8199;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 145px 0 70px;
  gap: clamp(50px, 7vw, 100px);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  padding: 7px 12px;
  border: 1px solid rgba(112, 232, 174, .18);
  border-radius: 999px;
  color: #bcd7ca;
  background: rgba(76, 176, 126, .045);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(112, 232, 174, .07), 0 0 16px rgba(112, 232, 174, .7);
  animation: pulse 2s ease infinite;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(54px, 7.2vw, 96px);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .93;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 220, 245, .46);
}

.hero-lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: #b7acbe;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.hero-lead strong {
  color: #fff;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease;
}

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

.button-primary {
  border-color: transparent;
  color: #16091e;
  background: linear-gradient(110deg, #dfa4ff, #bd5dff 58%, #e6be72);
  box-shadow: 0 14px 44px rgba(171, 62, 246, .2);
}

.button-ghost {
  color: #eee5f3;
  background: rgba(255, 255, 255, .025);
}

.button-ghost:hover {
  border-color: var(--line-bright);
  background: rgba(196, 92, 255, .06);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 670px;
  margin-top: 48px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.hero-proof div {
  display: grid;
  padding-right: 18px;
}

.hero-proof div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero-proof strong {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  letter-spacing: -.03em;
}

.hero-proof span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 590px;
  place-items: center;
  perspective: 1000px;
}

.visual-halo {
  position: absolute;
  border: 1px solid rgba(204, 103, 255, .2);
  border-radius: 50%;
}

.halo-one {
  width: 480px;
  height: 480px;
  border-style: dashed;
  animation: spin 34s linear infinite;
}

.halo-two {
  width: 340px;
  height: 340px;
  border-color: rgba(229, 196, 122, .16);
  animation: spinReverse 25s linear infinite;
}

.dojo-seal {
  position: absolute;
  top: 42px;
  right: 9%;
  z-index: 3;
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  border: 1px solid rgba(224, 157, 255, .34);
  border-radius: 50%;
  background: rgba(20, 9, 29, .85);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3), inset 0 0 24px rgba(195, 92, 255, .1);
  transform: rotate(8deg);
}

.seal-kanji {
  margin-top: 10px;
  color: #d99cff;
  font-family: serif;
  font-size: 48px;
  line-height: 1;
}

.dojo-seal small {
  margin-top: -15px;
  color: var(--gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .2em;
}

.code-window {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  border: 1px solid rgba(217, 133, 255, .2);
  border-radius: 21px;
  overflow: hidden;
  background: rgba(14, 8, 20, .88);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, .5),
    0 0 80px rgba(153, 52, 222, .08);
  backdrop-filter: blur(20px);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform .4s var(--ease);
}

.hero-visual:hover .code-window {
  transform: rotateY(0) rotateX(0) translateY(-5px);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 53px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}

.code-head > span {
  display: flex;
  gap: 6px;
}

.code-head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #563e61;
}

.code-head i:first-child { background: #d26486; }
.code-head i:nth-child(2) { background: #d9b466; }
.code-head i:last-child { background: #6bc798; }

.code-head small {
  color: #85768e;
  font-family: monospace;
  font-size: 10px;
}

.code-body {
  padding: 28px 24px 30px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 2;
}

.code-body p {
  margin: 0;
  white-space: nowrap;
}

.code-body em {
  display: inline-block;
  width: 30px;
  color: #4e4255;
  font-style: normal;
}

.code-body .purple { color: #d175ff; }
.code-body .gold { color: #e7c47a; }
.code-body .green { color: #70e8ae; }

.terminal-line {
  margin-top: 15px !important;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: #aaa0b0;
}

.terminal-line b {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -3px;
  background: var(--purple);
  animation: blink 1s steps(1) infinite;
}

.floating-tag {
  position: absolute;
  z-index: 4;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c3b7cb;
  background: rgba(17, 9, 24, .85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  backdrop-filter: blur(15px);
  animation: float 5s ease-in-out infinite;
}

.tag-linux { top: 23%; left: -3%; }
.tag-docker { right: -2%; bottom: 22%; animation-delay: -1.3s; }
.tag-python { bottom: 8%; left: 12%; animation-delay: -2.5s; }

/* Marquee */
.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 64px;
  animation: marquee 32s linear infinite;
}

.marquee span {
  padding: 0 24px;
  color: #9d8fa6;
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.marquee i {
  color: var(--purple);
  font-style: normal;
}

/* Projects */
.projects {
  padding-top: 150px;
}

.project {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(26, 14, 36, .88), rgba(14, 8, 20, .82));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .18);
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
}

.project-media,
.project-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.loza-media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(217, 190, 125, .2), transparent 28%),
    linear-gradient(135deg, #123b43, #08252d 60%, #06181d);
}

.loza-media::before,
.loza-media::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(232, 205, 146, .16);
  border-radius: 50%;
}

.loza-media::before {
  width: 370px;
  height: 370px;
}

.loza-media::after {
  width: 490px;
  height: 490px;
  border-style: dashed;
  animation: spin 40s linear infinite;
}

.loza-stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.loza-monogram {
  display: grid;
  width: 105px;
  height: 105px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(232, 205, 146, .5);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Syne", sans-serif;
  font-size: 54px;
}

.loza-stage strong {
  color: #f7f0df;
  font-family: "Syne", sans-serif;
  font-size: 50px;
  letter-spacing: .25em;
  line-height: 1;
}

.loza-stage small {
  margin-top: 14px;
  color: #d8c699;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .28em;
}

.media-number {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: rgba(255, 255, 255, .82);
  background: rgba(8, 5, 12, .24);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.media-chip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(113, 234, 176, .25);
  border-radius: 999px;
  color: var(--green);
  background: rgba(4, 22, 15, .35);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.project-content {
  display: flex;
  min-width: 0;
  padding: clamp(30px, 5vw, 62px);
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-meta small {
  color: #86778e;
  font-size: inherit;
}

.project h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.055em;
  line-height: 1;
}

.project-content > p {
  margin: 22px 0;
  color: #b2a6ba;
  font-size: 15px;
  line-height: 1.75;
}

.project-result {
  display: grid;
  gap: 3px;
  margin: 4px 0 24px;
  padding-left: 16px;
  border-left: 2px solid var(--purple);
}

.project-result span {
  color: #766980;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-result strong {
  color: #e8dfed;
  font-size: 12px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bdb0c5;
  background: rgba(255, 255, 255, .02);
  font-size: 10px;
  font-weight: 700;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.project-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #eee5f3;
  font-size: 12px;
  font-weight: 800;
}

.project-links a span,
.text-link span {
  color: var(--purple);
  transition: transform .2s ease;
}

.project-links a:hover span,
.text-link:hover span {
  transform: translate(3px, -3px);
}

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

.project-card {
  display: grid;
}

.project-card .project-image {
  min-height: 340px;
  background-color: #120a19;
  background-position: center;
  background-size: cover;
}

.airbnb-image {
  background-image: url("image/project-airbnb.png");
}

.bbva-image {
  background-image: url("image/project-bbva.png");
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 5, 14, .72));
}

.project-card h3 {
  font-size: clamp(32px, 3.4vw, 48px);
}

.project-card .project-content {
  justify-content: flex-start;
}

.project-card .text-link {
  margin-top: 28px;
}

/* Expertise */
.expertise {
  position: relative;
}

.expertise::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(107, 42, 145, .05), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.expertise-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.expertise-card {
  position: relative;
  min-height: 430px;
  padding: 34px 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .012);
  transition: background .3s ease, transform .3s var(--ease);
}

.expertise-card:hover {
  z-index: 2;
  background: rgba(190, 81, 255, .055);
  transform: translateY(-7px);
}

.card-index {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #584d60;
  font-family: monospace;
  font-size: 10px;
}

.expertise-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 78px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  color: #d794ff;
  background: rgba(188, 75, 255, .06);
  font-size: 24px;
}

.expertise-card h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 23px;
  letter-spacing: -.03em;
}

.expertise-card p {
  min-height: 100px;
  margin: 15px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.expertise-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.expertise-card li {
  color: #c4b7cc;
  font-size: 10px;
  font-weight: 700;
}

.expertise-card li::before {
  margin-right: 7px;
  color: var(--purple);
  content: "•";
}

/* Journey */
.journey {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
  align-items: start;
  gap: clamp(60px, 9vw, 130px);
}

.journey-intro {
  position: sticky;
  top: 125px;
}

.journey-intro > p:not(.section-label) {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.journey blockquote {
  margin: 35px 0 0;
  padding: 18px 0 18px 22px;
  border-left: 2px solid var(--gold);
  color: #e3d4e9;
  font-family: "Syne", sans-serif;
  font-size: 17px;
}

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

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 95px 1fr auto;
  align-items: center;
  min-height: 175px;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), background .3s ease;
}

.journey-item:hover {
  padding: 0 18px;
  background: linear-gradient(90deg, rgba(195, 92, 255, .06), transparent);
}

.journey-item > span {
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.journey-item h3 {
  margin: 0 0 8px;
  font-family: "Syne", sans-serif;
  font-size: 24px;
  letter-spacing: -.035em;
}

.journey-item p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.journey-item > b {
  color: rgba(221, 162, 248, .13);
  font-family: serif;
  font-size: 36px;
  font-weight: 400;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(55px, 9vw, 135px);
}

.about-visual {
  position: relative;
}

.profile-image {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 210px 210px 28px 28px;
  background:
    linear-gradient(180deg, transparent 55%, rgba(10, 5, 15, .6)),
    url("image/profile-photo.png") center / cover no-repeat,
    #150b1e;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
}

.profile-stamp {
  position: absolute;
  right: -25px;
  bottom: 45px;
  display: grid;
  min-width: 200px;
  padding: 19px 22px;
  border: 1px solid rgba(226, 154, 255, .28);
  border-radius: 14px;
  background: rgba(15, 8, 21, .88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
}

.profile-stamp strong {
  font-family: "Syne", sans-serif;
  letter-spacing: .18em;
}

.profile-stamp span {
  margin-top: 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}

.about-lead {
  margin-top: 32px !important;
  color: #ded3e4 !important;
  font-size: 20px !important;
}

.about-copy > p:not(.section-label) {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.principles {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.principles div {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--purple);
  font-family: monospace;
  font-size: 10px;
}

.principles strong {
  font-size: 13px;
}

/* Contact */
.contact {
  position: relative;
  margin-bottom: 100px;
  padding: 100px clamp(24px, 7vw, 90px);
  border: 1px solid var(--line-bright);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(85, 28, 116, .22), transparent 48%),
    rgba(18, 9, 25, .8);
}

.contact::before {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 420px;
  height: 420px;
  content: "道";
  color: rgba(220, 149, 255, .035);
  font-family: serif;
  font-size: 360px;
  line-height: 1;
  transform: rotate(8deg);
}

.contact-glow {
  position: absolute;
  bottom: -200px;
  left: 20%;
  width: 500px;
  height: 300px;
  border-radius: 50%;
  background: rgba(177, 63, 249, .16);
  filter: blur(100px);
}

.contact-main,
.contact-bottom,
.contact > .section-label {
  position: relative;
  z-index: 2;
}

.contact-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.contact h2 {
  font-size: clamp(44px, 6vw, 78px);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--purple);
  color: #f0e8f4;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
}

.contact-email span {
  color: var(--purple);
}

.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 75px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-bottom > div {
  display: flex;
  gap: 25px;
}

.contact-bottom a {
  font-size: 12px;
  font-weight: 800;
}

/* Footer */
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  min-height: 110px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: #766a7e;
  font-size: 10px;
}

footer > a:last-child {
  justify-self: end;
  color: #a99bb2;
  font-size: 11px;
  font-weight: 700;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

/* Keyframes */
@keyframes introCore {
  0% { opacity: 0; transform: scale(.86); filter: blur(12px); }
  22%, 78% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.05); filter: blur(5px); }
}

@keyframes introGrid {
  from { transform: perspective(600px) rotateX(56deg) translateY(-12%); }
  to { transform: perspective(600px) rotateX(56deg) translateY(7%); }
}

@keyframes gateLeft {
  0%, 70% { transform: translateX(0); }
  100% { transform: translateX(-105%); }
}

@keyframes gateRight {
  0%, 70% { transform: translateX(0); }
  100% { transform: translateX(105%); }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.85); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes petalFall {
  from { transform: translate3d(0, -20px, 0) rotate(0deg); }
  to { transform: translate3d(var(--drift), 110vh, 0) rotate(540deg); }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tablet */
@media (max-width: 1080px) {
  .nav {
    gap: 19px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .8fr);
    gap: 30px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .halo-one { width: 390px; height: 390px; }
  .halo-two { width: 285px; height: 285px; }

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

  .expertise-card {
    min-height: 370px;
  }

  .expertise-icon {
    margin-bottom: 45px;
  }

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

  .journey-intro {
    position: static;
    max-width: 780px;
  }

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

  .contact-email {
    justify-self: start;
    margin-top: 10px;
  }
}

/* Mobile nav and layout */
@media (max-width: 820px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    top: 10px;
    right: 12px;
    left: 12px;
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
    padding: 0 12px;
    border-radius: 16px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .nav {
    position: fixed;
    top: 89px;
    right: 12px;
    left: 12px;
    z-index: 999;
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line-bright);
    border-radius: 18px;
    background: rgba(10, 5, 15, .97);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: .25s var(--ease);
  }

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

  .nav a {
    padding: 13px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
  }

  .nav a::after {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .section,
  .hero {
    width: calc(100% - 28px);
  }

  .section {
    padding: 90px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 135px 0 70px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 76px);
  }

  .hero-visual {
    min-height: 500px;
  }

  .floating-tag {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 42px;
  }

  .section-heading h2,
  .journey h2,
  .about h2 {
    font-size: clamp(42px, 12vw, 68px);
  }

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

  .project-media {
    min-height: 400px;
  }

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

  .project-card .project-image {
    min-height: 300px;
  }

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

  .about-visual {
    max-width: 540px;
  }

  .profile-image {
    min-height: 570px;
  }

  .profile-stamp {
    right: 15px;
  }

  .contact {
    width: calc(100% - 28px);
    margin-bottom: 70px;
  }

  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr auto;
    width: calc(100% - 28px);
    padding: 25px 0;
    gap: 20px;
  }

  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 46px 46px;
  }

  .intro-word {
    font-size: 39px;
  }

  .intro-kicker,
  .intro-mantra {
    font-size: 8px;
    letter-spacing: .23em;
  }

  .intro-emblem {
    width: 92px;
    height: 92px;
  }

  .intro-emblem span {
    font-size: 48px;
  }

  .intro-skip {
    right: 16px;
    bottom: 16px;
  }

  .replay-intro {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .availability {
    max-width: 100%;
    font-size: 9px;
  }

  .eyebrow {
    font-size: 9px;
    line-height: 1.8;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-buttons {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .hero-proof div {
    padding: 0;
  }

  .hero-proof div + div {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: none;
  }

  .hero-visual {
    min-height: 410px;
  }

  .halo-one { width: 340px; height: 340px; }
  .halo-two { width: 250px; height: 250px; }

  .dojo-seal {
    top: 10px;
    right: 0;
    width: 82px;
    height: 82px;
  }

  .seal-kanji {
    font-size: 36px;
  }

  .code-window {
    width: 100%;
    transform: none;
  }

  .code-body {
    padding: 22px 13px 24px;
    font-size: 10.5px;
  }

  .code-body em {
    width: 23px;
  }

  .marquee span {
    padding: 0 15px;
  }

  .section-label {
    font-size: 9px;
  }

  .section-heading h2,
  .journey h2,
  .about h2,
  .contact h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .project,
  .contact {
    border-radius: 22px;
  }

  .project-media {
    min-height: 330px;
  }

  .loza-media::before {
    width: 260px;
    height: 260px;
  }

  .loza-media::after {
    width: 330px;
    height: 330px;
  }

  .loza-stage strong {
    font-size: 36px;
  }

  .loza-stage small {
    font-size: 7px;
  }

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

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .project h3 {
    font-size: 37px;
  }

  .project-card .project-image {
    min-height: 230px;
  }

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

  .expertise-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .expertise-icon {
    margin-bottom: 38px;
  }

  .expertise-card p {
    min-height: auto;
  }

  .journey-item {
    grid-template-columns: 1fr auto;
    min-height: 190px;
    padding: 24px 0;
  }

  .journey-item > span {
    grid-column: 1 / -1;
  }

  .journey-item > b {
    align-self: start;
    font-size: 28px;
  }

  .profile-image {
    min-height: 450px;
    border-radius: 160px 160px 22px 22px;
  }

  .profile-stamp {
    right: 12px;
    bottom: 20px;
    min-width: 165px;
  }

  .about-lead {
    font-size: 17px !important;
  }

  .contact {
    padding: 55px 20px;
  }

  .contact-email {
    max-width: 100%;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .contact-bottom > div {
    flex-wrap: wrap;
  }

  footer .brand-copy {
    display: none;
  }
}

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

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

  .intro-screen {
    display: none;
  }

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

