:root {
  --bg: #111110;
  --ink: #ece7dc;
  --muted: #8d877b;
  --line: #2a2824;
  --panel: #191815;
  --accent: #e4a06a;
  --accent-2: #7d9b86;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 50;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
  }

  .cursor.is-grow {
    width: 44px;
    height: 44px;
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  background: linear-gradient(to bottom, rgba(17, 17, 16, 0.92), rgba(17, 17, 16, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.nav__mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.18em;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links a:hover,
.nav__cta:hover {
  color: var(--accent);
}

.nav__cta {
  justify-self: end;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.hero {
  min-height: calc(100vh - 80px);
  padding: 8vh 40px 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
}

.hero__kicker {
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.92;
  font-size: clamp(64px, 12vw, 148px);
}

.hero__title span {
  display: block;
}

.hero__title em {
  display: block;
  font-style: italic;
  font-size: 0.42em;
  margin-top: 18px;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero__lead {
  max-width: 460px;
  margin: 36px 0 48px;
  color: var(--muted);
  font-size: 17px;
}

.hero__meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__meta span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero__meta strong {
  font-weight: 400;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}

.strip__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip__track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.work,
.about,
.contact {
  padding: 120px 40px 0;
  max-width: 1280px;
}

.section-head {
  margin-bottom: 56px;
}

.section-head p {
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  max-width: 14ch;
}

.project {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.project--lg {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  margin-bottom: 24px;
}

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

.project__visual {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.project--lg .project__visual {
  min-height: 420px;
}

.project__visual--atlas {
  background: radial-gradient(circle at 20% 20%, #3a3228, #171513 55%);
}

.project__visual--lumen {
  background: linear-gradient(160deg, #24312b, #141513);
}

.project__visual--tide {
  background: linear-gradient(200deg, #2b2420, #121110);
}

.atlas,
.lumen,
.tide {
  position: absolute;
  inset: 0;
}

.atlas__card {
  position: absolute;
  border: 1px solid rgba(236, 231, 220, 0.18);
  background: rgba(236, 231, 220, 0.06);
  backdrop-filter: blur(6px);
}

.atlas__card--a {
  width: 46%;
  height: 58%;
  left: 12%;
  top: 18%;
  transform: rotate(-8deg);
}

.atlas__card--b {
  width: 38%;
  height: 46%;
  right: 10%;
  top: 28%;
  transform: rotate(7deg);
}

.atlas__card--c {
  width: 28%;
  height: 22%;
  left: 38%;
  bottom: 12%;
}

.lumen span {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 155, 134, 0.55), transparent 70%);
}

.lumen span:nth-child(1) { left: 18%; top: 22%; }
.lumen span:nth-child(2) { right: 16%; top: 38%; width: 90px; height: 90px; }
.lumen span:nth-child(3) { left: 40%; bottom: 10%; width: 180px; height: 180px; }

.tide b {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(228, 160, 106, 0.55);
}

.tide b:nth-child(1) { top: 32%; transform: rotate(-6deg); }
.tide b:nth-child(2) { top: 50%; }
.tide b:nth-child(3) { top: 68%; transform: rotate(5deg); }

.project__body {
  padding: 32px;
}

.project__index {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.project__body h3 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  margin: 10px 0 14px;
}

.project__body p {
  color: var(--muted);
  margin-bottom: 22px;
}

.project__body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.project__body li {
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding-bottom: 20px;
}

.about__copy p + p {
  margin-top: 18px;
}

.about__copy {
  font-size: 18px;
  color: #d8d2c6;
  max-width: 58ch;
}

.about__panel {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--panel);
}

.about__panel h3 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.about__panel h3 + p {
  color: var(--muted);
}

.skills {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 28px;
  color: var(--ink);
}

.contact {
  padding-bottom: 80px;
}

.contact__mail {
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  display: inline-block;
  line-height: 1.2;
}

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

.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

.contact__links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.contact__links a:hover {
  color: var(--ink);
}

.foot {
  margin-top: 40px;
  padding: 28px 40px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 18px 20px;
  }

  .nav__cta {
    display: none;
  }

  .hero,
  .work,
  .about,
  .contact,
  .foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 72px;
  }

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

  .work,
  .about,
  .contact {
    padding-top: 88px;
  }
}
