@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@500;600;700&display=swap");

:root {
  --ink: #1c1917;
  --logo: #4a2c24;
  --cream: #fffdfb;
  --line: #e7e0d8;
  --dusty: #8ea6b8;
  --blush: #f3c9d4;
  --rose: #e8b7c8;
  --sand: #f4eee6;
  --sage: #c9d2b8;
  --pill: #f3d0d8;
  --muted: #6a625b;
  --chip: #3d2a16;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.cursor-flower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.cursor-sq {
  display: block;
  width: 14px;
  height: 14px;
  background: #e8b7c8;
  box-shadow: 0 0 0 1px rgba(255, 253, 251, 0.35);
}

.cursor-flower.is-on {
  opacity: 1;
}

body.has-flower,
body.has-flower a,
body.has-flower button {
  cursor: none;
}

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 100;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--rose), var(--dusty));
  pointer-events: none;
}

.cursor-spark {
  position: fixed;
  z-index: 89;
  width: 5px;
  height: 5px;
  margin: 0;
  pointer-events: none;
  background: #e8b7c8;
  animation: sparkOut 0.65s ease forwards;
}

@keyframes sparkOut {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) translateY(-18px);
  }
}

#app {
  opacity: 1;
}

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

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px 28px 16px;
  min-height: 88px;
}

.logo {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--logo);
  letter-spacing: 0.18em;
  text-align: center;
  line-height: 1;
  transition: letter-spacing 0.45s ease;
}

.logo:hover {
  letter-spacing: 0.3em;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.main-nav a {
  text-align: center;
  padding: 13px 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease;
}

.main-nav a:last-child {
  border-right: 0;
}

.main-nav a.is-active,
.main-nav a:hover {
  background: #faf6f2;
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(78vh, 760px);
}

.split-hero--short {
  min-height: 38vh;
}

.split-hero > * {
  min-width: 0;
}

.split-hero .panel {
  display: grid;
  place-items: center;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: rise 0.9s ease both;
}

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

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: rgba(28, 25, 23, 0.72);
}

.split-hero h1 {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.4;
  max-width: 10.5em;
}

.split-hero p.lede {
  margin-top: 22px;
  max-width: 28em;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.hero-photo {
  min-height: 460px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: photoIn 1.2s ease both;
}

.hero-photo:hover img {
  transform: scale(1.03);
  transform-origin: center top;
  transition: transform 1.1s ease;
}

.hero-photo--about img {
  object-position: center top;
}

.hero-photo--about:hover img {
  transform-origin: center top;
}

@keyframes photoIn {
  from {
    opacity: 0;
    transform: scale(1.04);
    transform-origin: center top;
  }
  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: center top;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--pill);
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.pill.dark {
  background: var(--chip);
  color: #f6e7c8;
}

.pill:hover {
  box-shadow: 0 10px 24px rgba(74, 44, 36, 0.12);
}

.bg-dusty {
  background: var(--dusty);
}
.bg-rose {
  background: var(--rose);
}
.bg-sand {
  background: var(--sand);
}
.bg-sage {
  background: var(--sage);
}
.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: rgba(201, 210, 184, 0.42);
  border-radius: 42% 58% 48% 52%;
  animation: blobMorph 14s ease-in-out infinite;
}

.blob-hero {
  width: 70%;
  height: 74%;
  right: -18%;
  top: 8%;
}

.blob-work {
  width: 62%;
  height: 80%;
  left: -16%;
  bottom: -18%;
  background: rgba(255, 253, 251, 0.35);
}

.blob-cta {
  width: 46%;
  height: 120%;
  left: 27%;
  top: -10%;
  background: rgba(255, 253, 251, 0.28);
}

@keyframes blobMorph {
  0%,
  100% {
    border-radius: 42% 58% 48% 52%;
  }
  33% {
    border-radius: 62% 38% 56% 44%;
  }
  66% {
    border-radius: 36% 64% 40% 60%;
  }
}

.doodle {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.doodle-petal {
  width: 44px;
  right: 11%;
  bottom: 12%;
  animation: floatSpin 8s ease-in-out infinite;
}

.doodle-work {
  right: 10%;
  top: 14%;
  bottom: auto;
}

.doodle-contact {
  right: 12%;
  top: 18%;
  bottom: auto;
}

.doodle-star {
  width: 26px;
  left: 6%;
  top: -10px;
  animation: twinkle 3.6s ease-in-out infinite;
}

.doodle-loop {
  width: 86px;
  right: 4%;
  bottom: -8px;
  animation: drift 6.5s ease-in-out infinite;
}

@keyframes floatSpin {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(18deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: rotate(18deg) scale(1.12);
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

.blink {
  display: inline-block;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.scribble {
  display: block;
  width: min(180px, 46vw);
  height: 18px;
  margin: 6px auto 0;
}

.scribble path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: draw 1.6s ease forwards 0.4s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.marquee-stack .marquee {
  border-bottom: 0;
}

.marquee-alt {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.marquee-track.reverse {
  animation-direction: reverse;
  animation-duration: 40s;
  font-size: 22px;
}

.section-pad {
  padding: 64px 0 0;
}

.kicker {
  text-align: center;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px 12px;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: #eee;
  --mx: 50%;
  --my: 50%;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.28),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.work-card:hover::after {
  opacity: 1;
}

.work-card-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform 0.7s ease;
}

.work-card:hover .work-card-frame {
  transform: scale(1.045);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px 24px;
  background: linear-gradient(to top, rgba(18, 12, 8, 0.62), transparent);
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.work-card:hover .meta {
  transform: none;
}

.work-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 600;
}

.work-card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 28px 20px 32px;
}

.filter-bar a {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.filter-bar a.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: #fff;
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: slide 32s linear infinite;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 30px;
  letter-spacing: 0.06em;
}

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

.values-kicker {
  padding-top: 48px;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.value {
  padding: 56px 48px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.35s ease;
}

.value:nth-child(2n) {
  border-right: 0;
}

.value:hover {
  background: #faf6f2;
}

.value h3 {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 28px;
  margin-bottom: 14px;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.45s ease;
}

.value:hover h3 {
  background-size: 100% 1px;
}

.value p {
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.down-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 36px auto 8px;
}

.down-cue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  animation: cuePulse 1.6s ease-in-out infinite;
}

.down-cue svg {
  width: 22px;
  height: 58px;
  animation: cueBounce 1.6s ease-in-out infinite;
}

.down-stem,
.down-head {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw 1.1s ease forwards 0.2s;
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes cuePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.55);
    opacity: 1;
  }
}

.about-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px 40px;
}

.hello {
  letter-spacing: 0.32em;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--muted);
}

.about-wrap h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 36px;
  margin-bottom: 22px;
}

.about-wrap .bio {
  font-weight: 300;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 16px;
}

.resume {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 28px 72px;
}

.resume h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  margin: 36px 0 16px;
}

.job {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  margin-bottom: 8px;
}

.job h4 {
  font-size: 15px;
  font-weight: 500;
}

.job .role {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}

.job ul {
  grid-column: 1 / -1;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  font-size: 14px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 12px;
}

.meta-grid p {
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  font-size: 14px;
}

.project-head {
  padding: 56px 28px 32px;
  text-align: center;
}

.project-head .cat {
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--muted);
}

.project-head h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(32px, 4vw, 52px);
}

.project-head p {
  margin: 16px auto 0;
  max-width: 32em;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 40px;
}

.gallery-item {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.gallery img,
.gallery embed {
  width: 100%;
  height: auto;
  background: #f3f0eb;
}

.gallery embed {
  min-height: 90vh;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 10, 8, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
  animation: fade 0.25s ease;
}

.lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 28px 72px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.contact-hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--dusty);
  position: relative;
  overflow: hidden;
}

.contact-hero h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(36px, 5vw, 64px);
}

.contact-hero a.mail {
  display: inline-block;
  margin-top: 18px;
  font-size: 20px;
  border-bottom: 1px solid currentColor;
}

.cta-band {
  background: var(--rose);
  padding: 88px 28px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2,
.cta-band p,
.cta-band .scribble,
.cta-band .pill {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(36px, 5vw, 56px);
}

.cta-band p {
  margin: 14px 0 8px;
  font-weight: 300;
}

.cta-mail {
  margin: 16px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--logo);
}

.site-footer {
  background: #fff;
  padding: 48px 40px 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto 36px;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
}

.footer-grid h4 {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}

.copyright {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

@media (max-width: 860px) {
  .brand-bar {
    padding: 18px 16px 12px;
  }

  .logo {
    font-size: 28px;
    letter-spacing: 0.12em;
  }

  .main-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav a {
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.08em;
    font-size: 11px;
  }

  .split-hero,
  .work-grid,
  .values,
  .footer-grid,
  .meta-grid,
  .job {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 520px;
    order: -1;
  }
}

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

  .marquee-track,
  .work-card-frame,
  .hero-copy,
  .hero-photo img,
  .blob,
  .doodle,
  .down-cue svg,
  .down-cue-dot,
  .down-stem,
  .down-head,
  .blink,
  .scribble path,
  #app,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }

  .cursor-flower,
  .cursor-spark,
  .scroll-line {
    display: none;
  }
}
