:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --paper-soft: #fbfaf4;
  --ink: #101312;
  --ink-soft: #383d3b;
  --muted: #76756f;
  --air: #9fc9d2;
  --air-soft: #d7e9e9;
  --mist: rgba(159, 201, 210, 0.34);
  --line: rgba(16, 19, 18, 0.14);
  --line-strong: rgba(16, 19, 18, 0.26);
  --card: rgba(251, 250, 244, 0.72);
  --placeholder: #a5a7a1;
  --shadow: rgba(16, 19, 18, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.72;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  transform-origin: center;
  animation: breatheGrid 6.2s ease-in-out infinite;
}

body::after {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at calc(24% + var(--mx, 0px)) calc(28% + var(--my, 0px)), rgba(159, 201, 210, 0.38), transparent 22%),
    radial-gradient(circle at calc(78% - var(--mx, 0px)) calc(66% - var(--my, 0px)), rgba(222, 222, 213, 0.56), transparent 28%),
    radial-gradient(circle at 48% 46%, rgba(255, 255, 255, 0.66), transparent 34%);
  filter: blur(28px);
  animation: airField 11s ease-in-out infinite alternate;
}

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

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

#motion-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 1px solid rgba(16, 19, 18, 0.42);
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width 180ms ease,
    height 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.cursor.is-active {
  width: 42px;
  height: 42px;
  border-color: rgba(159, 201, 210, 0.92);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.brand span {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-block: 6px;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 124px clamp(18px, 4vw, 56px) 92px;
  overflow: clip;
}

.ticker {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.ticker-top {
  top: 86px;
  opacity: 0.3;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 38px;
  animation: ticker 32s linear infinite;
}

.ticker span {
  color: transparent;
  font-size: 7.2rem;
  font-weight: 950;
  line-height: 0.86;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(16, 19, 18, 0.24);
  text-stroke: 1px rgba(16, 19, 18, 0.24);
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: min(980px, 92vw);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--air);
  box-shadow: 0 0 24px rgba(159, 201, 210, 0.9);
  content: "";
  animation: pulse 2.8s ease-in-out infinite;
}

.hero-title {
  display: grid;
  gap: 0;
  margin: 0;
  font-size: 8.7rem;
  font-weight: 950;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-title span {
  white-space: nowrap;
}

.hero-title span:nth-child(2) {
  color: var(--air);
  text-shadow: 0 0 38px rgba(159, 201, 210, 0.38);
  transform: translateX(48px);
}

.hero-lead {
  max-width: 640px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.95;
}

.hero-stage {
  position: absolute;
  right: -68px;
  top: 16vh;
  z-index: 1;
  width: min(58vw, 680px);
  aspect-ratio: 1;
  pointer-events: none;
}

.orbit {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(16, 19, 18, 0.2);
  border-radius: 50%;
  animation: breathe 5.4s ease-in-out infinite;
}

.orbit-one::before,
.orbit-one::after,
.orbit-two::before {
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(16, 19, 18, 0.16);
  border-radius: 50%;
  content: "";
}

.orbit-one::after {
  inset: 34%;
  border: 0;
  background: rgba(159, 201, 210, 0.52);
  filter: blur(16px);
  animation: pulseGlow 5.4s ease-in-out infinite;
}

.orbit-two {
  inset: 20%;
  border-color: rgba(159, 201, 210, 0.48);
  animation-delay: -2.3s;
  animation-direction: reverse;
}

.signal-stack {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  opacity: 0.78;
}

.signal-stack span {
  position: absolute;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 19, 18, 0.32), transparent);
  transform: rotate(calc(var(--i, 0) * 18deg));
  animation: breatheLine 4.8s ease-in-out infinite;
}

.signal-stack span:nth-child(1) {
  --i: 1;
}

.signal-stack span:nth-child(2) {
  --i: 4;
  animation-delay: -0.8s;
}

.signal-stack span:nth-child(3) {
  --i: 7;
  animation-delay: -1.5s;
}

.signal-stack span:nth-child(4) {
  --i: 10;
  animation-delay: -2.1s;
}

.type-cloud b {
  position: absolute;
  color: rgba(16, 19, 18, 0.62);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.type-cloud b:nth-child(1) {
  top: 12%;
  left: 38%;
}

.type-cloud b:nth-child(2) {
  top: 46%;
  right: 4%;
}

.type-cloud b:nth-child(3) {
  right: 28%;
  bottom: 8%;
}

.type-cloud b:nth-child(4) {
  bottom: 34%;
  left: 7%;
}

.type-cloud b:nth-child(5) {
  top: 31%;
  left: 16%;
}

.hero-footer {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 24px;
  left: clamp(18px, 4vw, 56px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-footer p {
  margin: 0;
}

.hero-footer a {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.hero-footer a:hover,
.hero-footer a:focus-visible {
  background: var(--air-soft);
  transform: translateY(-3px);
}

.section-band {
  position: relative;
  border-block: 1px solid var(--line);
  background: rgba(251, 250, 244, 0.42);
}

.intro,
#works,
#profile,
#contact {
  scroll-margin-top: 92px;
}

.intro {
  padding: 120px clamp(18px, 4vw, 56px);
}

.intro > * {
  max-width: var(--max);
  margin-inline: auto;
}

.statement {
  margin-block: 0;
  font-size: 5.8rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.statement span {
  color: var(--air);
}

.works,
.profile,
.contact {
  padding: 112px clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto 52px;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 5.8rem;
  font-weight: 950;
  line-height: 0.9;
  text-align: right;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  max-width: var(--max);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 0;
  background: var(--card);
  box-shadow: 0 22px 80px var(--shadow);
  transform-style: preserve-3d;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.84);
}

.project-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--placeholder);
}

.project-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.34;
}

.project-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(16, 19, 18, 0.18));
}

.project-visual span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: rgba(251, 250, 244, 0.86);
  font-size: 3.6rem;
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.visual-01 {
  background: #a9aba4;
}

.visual-02 {
  background: #999d98;
}

.visual-03 {
  background: #b3b3ad;
}

.visual-04 {
  background: #8d928f;
}

.scan {
  display: none;
}

.project-content {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.project-index {
  margin: 0;
  color: var(--muted);
  font-weight: 950;
}

.project-content h3,
.profile-copy h2,
.contact h2 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 950;
  line-height: 0.96;
  text-transform: uppercase;
}

.project-content p:not(.project-index),
.profile-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.project-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.project-content li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile {
  display: grid;
  max-width: calc(var(--max) + (clamp(18px, 4vw, 56px) * 2));
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 7vw, 90px);
}

.profile-copy {
  align-self: center;
}

.profile-copy h2 {
  margin-bottom: 14px;
  font-size: 5rem;
}

.profile-name {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.skill-cloud span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(251, 250, 244, 0.5);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-list {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-list div {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.profile-list dt {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.profile-list dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.contact {
  min-height: 48svh;
  display: grid;
  align-content: center;
  text-align: center;
}

.contact-link {
  justify-self: center;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 5.4rem;
  font-weight: 950;
  line-height: 1;
  transition:
    background-size 360ms ease,
    color 220ms ease;
  background: linear-gradient(transparent 62%, var(--air-soft) 62%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
}

.contact-link:hover,
.contact-link:focus-visible {
  background-size: 100% 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes breatheGrid {
  0%,
  100% {
    background-size: 50px 50px;
    opacity: 0.54;
  }
  50% {
    background-size: 62px 62px;
    opacity: 0.78;
  }
}

@keyframes airField {
  from {
    transform: translate3d(-2%, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(3%, -3%, 0) rotate(4deg);
  }
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.54;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes breatheLine {
  0%,
  100% {
    opacity: 0.28;
    transform: rotate(calc(var(--i, 0) * 18deg)) scaleX(0.7);
  }
  50% {
    opacity: 0.8;
    transform: rotate(calc(var(--i, 0) * 18deg)) scaleX(1.12);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.84;
  }
  50% {
    transform: scale(1.8);
    opacity: 0.42;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.14);
    opacity: 0.92;
  }
}

@media (max-width: 1000px) {
  .hero-title {
    font-size: 6.2rem;
  }

  .statement,
  .section-heading h2,
  .contact-link {
    font-size: 4.4rem;
  }

  .hero-stage {
    right: -24vw;
    width: 82vw;
    opacity: 0.76;
  }

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

@media (max-width: 700px) {
  .site-header {
    padding: 18px 18px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 92svh;
    padding: 110px 18px 86px;
  }

  .ticker-top {
    top: 82px;
  }

  .ticker span {
    font-size: 4.8rem;
  }

  .hero-title {
    font-size: 4.8rem;
  }

  .hero-title span {
    white-space: normal;
  }

  .hero-title span:nth-child(2) {
    transform: translateX(0);
  }

  .hero-lead {
    margin-top: 28px;
    font-size: 0.96rem;
    line-height: 1.78;
  }

  .hero-footer {
    right: 18px;
    left: 18px;
  }

  .intro,
  .works,
  .profile,
  .contact {
    padding: 82px 18px;
  }

  .statement,
  .section-heading h2,
  .profile-copy h2,
  .contact-link {
    font-size: 3.25rem;
  }

  .section-heading {
    display: grid;
  }

  .section-heading h2 {
    text-align: left;
  }

  .project-card {
    min-height: auto;
  }

  .project-visual {
    min-height: 250px;
  }

  .project-visual span {
    font-size: 2.9rem;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
    padding-inline: 18px;
  }
}

@media (max-width: 430px) {
  .nav-links {
    display: grid;
    gap: 6px;
    justify-items: end;
  }

  .hero-title {
    font-size: 3.8rem;
  }

  .statement,
  .section-heading h2,
  .profile-copy h2,
  .contact-link {
    font-size: 2.7rem;
  }
}

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

  .cursor {
    display: none;
  }
}
