:root {
  --bg: #F8FAFF;
  --text: #141414;
  --text-secondary: #42424C;
  --text-tertiary: #68686F;
  --primary: #5B7CFA;
  --sky: #5FBCE0;
  --mint: #4FD1A5;
  --lavender: #B49CF2;
  --coral: #FF8A73;
  --yellow: #F5C445;
  --peach: #FFB48F;
  --accent: #5B7CFA;
  --accent-soft: rgba(91, 124, 250, 0.35);
  --border: rgba(20, 20, 20, 0.10);
  --card: rgba(20, 20, 20, 0.03);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}

@media (hover:none),
(pointer:coarse) {
  body {
    cursor: auto;
  }
}

::selection {
  background: var(--primary);
  color: #fff;
}

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

.serif {
  font-family: 'Fraunces', serif;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- ambient environment ---------- */
#sceneCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease);
}

.atmo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmo-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  transition: background 1.3s var(--ease);
}

.atmo-blob.b1 {
  top: -14%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  opacity: 0.55;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  animation: drift1 40s ease-in-out infinite;
}

.atmo-blob.b2 {
  bottom: -18%;
  right: -10%;
  width: 44vw;
  height: 44vw;
  opacity: 0.4;
  background: radial-gradient(circle, var(--mint), transparent 72%);
  animation: drift2 48s ease-in-out infinite;
}

.atmo-blob.b3 {
  top: 32%;
  left: 40%;
  width: 34vw;
  height: 34vw;
  opacity: 0.32;
  background: radial-gradient(circle, var(--yellow), transparent 74%);
  animation: drift3 56s ease-in-out infinite;
}

@keyframes drift1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5vw, 4vw) scale(1.1);
  }
}

@keyframes drift2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-4vw, -5vw) scale(1.08);
  }
}

@keyframes drift3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-3vw, 4vw) scale(1.15);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
}

.poster {
  position: absolute;
  z-index: 0;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  opacity: 0.055;
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transition: color 1.2s var(--ease);
}

.poster.p1 {
  top: 8%;
  left: -2%;
  font-size: clamp(110px, 17vw, 280px);
  color: var(--accent);
}

.poster.p2 {
  top: 60%;
  right: -4%;
  font-size: clamp(90px, 14vw, 240px);
  color: var(--coral);
  text-align: right;
}

.poster.p3 {
  top: 84%;
  left: 8%;
  font-size: clamp(80px, 12vw, 200px);
  color: var(--lavender);
  opacity: 0.05;
}

@media (prefers-reduced-motion: reduce) {
  .atmo-blob {
    animation: none;
  }

  #sceneCanvas {
    display: none;
  }
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  position: relative;
  z-index: 2;
}

/* cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--text);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(20, 20, 20, 0.22);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-ring span {
  opacity: 0;
  font-size: 11px;
  letter-spacing: .03em;
  color: #fff;
  transition: opacity .25s var(--ease);
  white-space: nowrap;
  font-weight: 600;
}

.cursor-ring.project {
  width: 104px;
  height: 104px;
  background: var(--text);
  border-color: transparent;
}

.cursor-ring.project span {
  opacity: 1;
}

.cursor-ring.link {
  width: 56px;
  height: 56px;
  background: rgba(20, 20, 20, 0.05);
  backdrop-filter: blur(6px);
  border-color: rgba(20, 20, 20, 0.18);
}

.cursor-ring.inspect {
  width: auto;
  height: auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--text);
  border-color: transparent;
}

.cursor-ring.inspect span {
  opacity: 1;
  font-weight: 500;
}

@media (hover:none),
(pointer:coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 20px clamp(16px, 4vw, 40px) 0;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1240px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s var(--ease), padding .4s var(--ease);
}

header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 20, 20, 0.08);
  box-shadow: 0 12px 32px -16px rgba(20, 20, 20, 0.18);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

header .mark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--primary);
}

header nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

header nav a {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding: 8px 14px;
  border-radius: 100px;
  transition: color .3s var(--ease), background .3s var(--ease);
}

header nav a:hover {
  color: var(--text);
  background: rgba(20, 20, 20, 0.05);
}

header nav a.is-active {
  color: var(--text);
  background: rgba(91, 124, 250, 0.12);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  background: rgba(91, 124, 250, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease) .1s, transform 1s var(--ease) .1s;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

h1.name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(50px, 8.6vw, 146px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.3em;
  row-gap: 0.06em;
  position: relative;
  cursor: none;
}

h1.name .word {
  display: inline-block;
  overflow: hidden;
  position: relative;
  padding: 0 0.06em 0.12em;
  margin: 0 -0.06em -0.12em;
}

h1.name .word em {
  display: block;
  font-style: normal;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}

h1.name .word.tinted em {
  color: var(--primary);
}

h1.name .word.outline em {
  color: rgba(232, 95, 66, 0.06);
  -webkit-text-stroke: 2.75px #E85F42;
  paint-order: stroke fill;
  transform-origin: left center;
}

h1.name .word.rotate {
  transform: rotate(-2.5deg);
  margin-left: -0.08em;
}

.hero.is-in h1.name .word em {
  transform: translateY(0) rotate(0deg);
}

.hero-role {
  margin-top: 28px;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s;
}

.hero-role strong {
  color: var(--text);
  font-weight: 700;
}

.hero.is-in .hero-eyebrow,
.hero.is-in .hero-role {
  opacity: 1;
  transform: translateY(0);
}

.scroll-cue {
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 1s var(--ease) 1s;
}

.hero.is-in .scroll-cue {
  opacity: 1;
}

.scroll-cue .line {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: rgba(20, 20, 20, 0.14);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

/* ---------- workspace: scattered notes, not a grid ---------- */
.workspace {
  padding: 96px 0 40px;
}

.workspace-head {
  margin-bottom: 8px;
}

.workspace-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 36px);
  letter-spacing: -0.01em;
}

.workspace-head p {

  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 800px;
  line-height: 1.6;

}

.board {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  padding: 56px clamp(0px, 2vw, 20px) 64px;
}

.note {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: 10px;
  box-shadow: 0 14px 28px -16px rgba(20, 20, 20, 0.32);
  will-change: transform;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease);
  cursor: default;
}

.note:hover {
  box-shadow: 0 20px 36px -14px rgba(20, 20, 20, 0.36);
  z-index: 5;
}

.note.tape::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 56px;
  height: 15px;
  border-radius: 2px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0 4px, rgba(255, 255, 255, 0.25) 4px 8px);
  box-shadow: 0 2px 6px rgba(20, 20, 20, 0.15);
}

.note.pin::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.35);
  box-shadow: 0 2px 4px rgba(20, 20, 20, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.note.featured {
  border: 1.5px solid rgba(91, 124, 250, 0.4);
  box-shadow: 0 14px 28px -16px rgba(20, 20, 20, 0.32), 0 0 0 5px rgba(91, 124, 250, 0.08);
}

.note.featured:hover {
  box-shadow: 0 20px 36px -14px rgba(20, 20, 20, 0.36), 0 0 0 7px rgba(91, 124, 250, 0.12);
}

@media (max-width:820px) {
  .board {
    gap: 14px 10px;
    padding: 40px 0 48px;
    justify-content: flex-start;
  }

  .note {
    transform: none !important;
  }
}

.section-head {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.01em;
}

.section-head p {

  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: auto;

}

/* editorial project ledger */
.project-block {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  padding: 44px 20px;
  border-radius: 20px;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease-soft);
}

.project-block:hover,
.project-block.is-active {
  background: linear-gradient(135deg, #115E59, #0F766E);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-color: #14B8A6;
  box-shadow: 0 24px 60px -22px rgba(20, 184, 166, 0.45), 0 0 0 1px rgba(20, 184, 166, 0.18);
  transform: scale(1.008);
}

.project-block.align-right {
  flex-direction: row-reverse;
}

.project-block .ghost-num {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(120px, 18vw, 260px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20, 20, 20, 0.10);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color .6s var(--ease);
}

.project-block.align-right .ghost-num {
  left: auto;
  right: 20px;
}

.project-block:hover .ghost-num,
.project-block.is-active .ghost-num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.22);
}

.project-block .content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.project-block.align-right .content {
  text-align: right;
}

.project-block .content h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  transition: transform .5s var(--ease), color .4s var(--ease);
}

.project-block:hover .content h3,
.project-block.is-active .content h3 {
  color: #FFFFFF;
  transition-delay: 0ms;
}

.project-block:hover .content h3 {
  transform: translateX(8px);
}

.project-block.align-right:hover .content h3 {
  transform: translateX(-8px);
}

.project-block .content p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
  transition: color .4s var(--ease);
}

.project-block:hover .content p,
.project-block.is-active .content p {
  color: rgba(255, 255, 255, 0.9);
  transition-delay: 150ms;
}

.project-block.align-right .content p {
  margin-left: auto;
}

.project-block .content .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color .4s var(--ease);
}

.project-block:hover .content .meta,
.project-block.is-active .content .meta {
  color: #FFFFFF;
  transition-delay: 300ms;
}

.project-block .content .swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 6px;
  background: var(--accent);
  transition: background .4s var(--ease);
}

.project-block:hover .content .swatch,
.project-block.is-active .content .swatch {
  background: #FFFFFF;
}

.project-block .content .meta svg {
  width: 12px;
  height: 12px;
  transition: transform .5s var(--ease);
}

.project-block:hover .content .meta svg {
  transform: translate(3px, -3px);
  transition-delay: 450ms;
}

.project-block .index-label {
  position: absolute;
  top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  z-index: 1;
  transition: color .4s var(--ease);
}

.project-block:hover .index-label,
.project-block.is-active .index-label {
  color: #FFFFFF;
}

.project-block:not(.align-right) .index-label {
  left: 20px;
}

.project-block.align-right .index-label {
  right: 20px;
}

.thumb {
  position: relative;
  z-index: 1;
  flex: 0 0 260px;
  width: 260px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(20, 20, 20, 0.3);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease);
  will-change: transform;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-soft);
}

.project-block:hover .thumb {
  box-shadow: 0 28px 54px -22px rgba(20, 20, 20, 0.36);
}

.project-block:hover .thumb img {
  transform: scale(1.08);
}

@media (max-width:820px) {

  .project-block,
  .project-block.align-right {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 36px 16px;
    gap: 20px;
  }

  .project-block .content,
  .project-block.align-right .content {
    text-align: left;
    max-width: 100%;
  }

  .project-block .content p,
  .project-block.align-right .content p {
    margin-left: 0;
  }

  .thumb {
    width: 100%;
    flex-basis: auto;
    height: 200px;
  }

  .ghost-num {
    display: none;
  }
}

@media (max-width:480px) {
  h1.name {
    column-gap: 0.18em;
  }
}

.preview-stack {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 190px;
  height: 130px;
  margin: -65px 0 0 -95px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 24px 50px -18px rgba(20, 20, 20, 0.4);
  transform: translate(0, 0) rotate(0deg) scale(0.85);
  transition: transform .5s var(--ease-soft), opacity .4s ease;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width:820px) {
  .preview-stack {
    display: none;
  }
}

footer {
  padding: 172px 0 48px;
  position: relative;
  z-index: 2;
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.footer-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(33px, 5.4vw, 76px);
  letter-spacing: -0.015em;
  max-width: 640px;
  line-height: 1.08;
}

.magnetic-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(91, 124, 250, 0.55);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease);
}

.magnetic-btn:hover {
  box-shadow: 0 18px 34px -10px rgba(91, 124, 250, 0.65);
}

.magnetic-btn svg {
  transition: transform .35s var(--ease);
}

.magnetic-btn:hover svg {
  transform: translate(4px, -4px);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links .col {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 600;
  position: relative;
  transition: color .3s var(--ease);
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width .35s var(--ease);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links .copy {
  font-size: 12.5px;
  color: var(--text-tertiary);
}

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

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