:root {
  --ink: #0c0b09;
  --ink-2: #1a1612;
  --paper: #f3ead8;
  --paper-2: #e7dcc4;
  --amber: #e8a54b;
  --amber-2: #c4843a;
  --mist: #8a8378;
  --line: rgba(243, 234, 216, 0.14);
  --line-dark: rgba(12, 11, 9, 0.12);
  --serif: "Noto Serif SC", "Instrument Serif", "Songti SC", serif;
  --sans: "Noto Sans SC", "Syne", system-ui, sans-serif;
  --display: "Instrument Serif", "Noto Serif SC", serif;
  --latin: "Syne", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  cursor: none;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

.cursor.is-hover {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--amber);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--amber);
  z-index: 70;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 36px;
  mix-blend-mode: difference;
}

.nav__mark {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.nav__meta {
  display: flex;
  gap: 16px;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero__lamp {
  position: absolute;
  right: 8%;
  top: 0;
  width: 280px;
  height: 72vh;
  pointer-events: none;
}

.hero__cord {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 28%;
  background: linear-gradient(var(--mist), var(--paper));
}

.hero__bulb {
  position: absolute;
  left: 50%;
  top: 26%;
  width: 18px;
  height: 26px;
  border-radius: 8px 8px 4px 4px;
  background: var(--paper);
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(232, 165, 75, 0.7);
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 165, 75, 0.38) 0%, rgba(232, 165, 75, 0.08) 42%, transparent 70%);
  animation: breathe 5.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero__kicker {
  font-family: var(--latin);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--mist);
}

.hero__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(72px, 16vw, 188px);
  line-height: 0.92;
  letter-spacing: 0.08em;
  margin: 28px 0 18px;
}

.hero__name span {
  display: inline-block;
  animation: rise 1s ease both;
}

.hero__name span:nth-child(2) { animation-delay: 0.12s; }
.hero__name span:nth-child(3) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero__sub {
  margin-top: 10px;
  color: var(--mist);
  max-width: 420px;
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  background: var(--amber);
  color: var(--ink);
  letter-spacing: 0.14em;
  font-size: 13px;
  cursor: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #f0b45d;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.hero__avail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
  font-size: 13px;
}

.hero__avail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dce8a;
  box-shadow: 0 0 0 0 rgba(125, 206, 138, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(125, 206, 138, 0); }
}

.hero__stats {
  position: absolute;
  left: 48px;
  bottom: 48px;
  display: flex;
  gap: 48px;
  list-style: none;
}

.hero__stats b {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.hero__stats span {
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.12em;
}

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

.strip__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.4em;
  color: var(--mist);
}

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

.work,
.notes {
  padding: 120px 48px;
}

.about,
.contact {
  background: var(--paper);
  color: var(--ink);
  padding: 120px 48px;
}

.sec {
  max-width: 760px;
  margin-bottom: 72px;
}

.sec__index {
  font-family: var(--latin);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--mist);
  margin-bottom: 16px;
}

.sec--light .sec__index {
  color: #7a7268;
}

.sec h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.project--b {
  grid-template-columns: 0.9fr 1.1fr;
}

.project__year {
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project h3 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 10px 0 16px;
}

.project__body p {
  max-width: 460px;
  color: #d8d0c2;
}

.project__body ul {
  margin-top: 22px;
  list-style: none;
  color: var(--mist);
  font-size: 14px;
}

.project__body li {
  padding: 6px 0 6px 18px;
  position: relative;
}

.project__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 1px;
  background: var(--amber);
}

.viz {
  height: 380px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.viz__label {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-family: var(--serif);
  letter-spacing: 0.2em;
  font-size: 14px;
}

.viz--tide {
  background: linear-gradient(180deg, #14110e 0%, #1c2a33 55%, #2a4a58 100%);
}

.viz__wave {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 18%;
  height: 90px;
  border-radius: 50%;
  background: rgba(232, 165, 75, 0.18);
  animation: wave 7s ease-in-out infinite;
}

.viz__wave--2 {
  bottom: 8%;
  height: 70px;
  background: rgba(243, 234, 216, 0.12);
  animation-delay: -2s;
}

@keyframes wave {
  0%, 100% { transform: translateX(-4%) scaleX(1); }
  50% { transform: translateX(4%) scaleX(1.08); }
}

.viz--fold {
  background: #c9b496;
}

.viz__page {
  position: absolute;
  width: 46%;
  height: 72%;
  top: 14%;
  left: 16%;
  background: #f6efe0;
  box-shadow: 12px 16px 0 rgba(12, 11, 9, 0.18);
  transform: rotate(-6deg);
}

.viz__page--2 {
  left: 38%;
  background: #efe4cc;
  transform: rotate(7deg);
  box-shadow: none;
}

.viz--lamp {
  background: #161310;
}

.viz__desk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: #2a2118;
}

.viz__pool {
  position: absolute;
  left: 18%;
  bottom: 28%;
  width: 64%;
  height: 46%;
  background: radial-gradient(circle, rgba(232, 165, 75, 0.55), transparent 70%);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.1fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.about__portrait {
  border: 1px solid var(--line-dark);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: linear-gradient(160deg, #1a1612 0%, #3a2b1c 100%);
  color: var(--paper);
}

.mono {
  font-family: var(--serif);
  font-size: 84px;
  line-height: 0.9;
  letter-spacing: 0.12em;
}

.mono span {
  display: block;
}

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

.about__facts {
  display: grid;
  gap: 22px;
}

.about__facts dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #7a7268;
  margin-bottom: 4px;
}

.about__facts dd {
  font-family: var(--serif);
  font-size: 18px;
}

.notes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.notes article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.notes time {
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.notes h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 12px 0;
  letter-spacing: 0.08em;
}

.notes p {
  color: #d8d0c2;
  font-size: 15px;
}

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact__left p + p {
  margin-top: 16px;
}

.mail {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--latin);
  font-size: 28px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.form input,
.form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 10px 0;
  outline: none;
  cursor: none;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-bottom-color: var(--amber-2);
}

.form .btn {
  justify-self: start;
  margin-top: 8px;
}

.form__ok {
  color: #3d6b45;
  font-size: 14px;
}

.foot {
  display: flex;
  justify-content: space-between;
  padding: 28px 48px 40px;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.12em;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.8s ease forwards;
}

@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none; }
  .btn, .form input, .form textarea { cursor: auto; }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto auto;
    padding: 16px 20px;
  }
  .nav__links { display: none; }
  .hero { padding: 120px 20px 80px; }
  .hero__lamp { width: 180px; right: -20px; opacity: 0.6; }
  .hero__stats { position: static; margin-top: 56px; gap: 24px; }
  .work, .notes, .about, .contact { padding: 80px 20px; }
  .project, .project--b, .about__grid, .notes__list, .contact__wrap {
    grid-template-columns: 1fr;
  }
  .foot { padding: 24px 20px; flex-direction: column; gap: 8px; }
}
