/* ============================================
   AYAKO MORI — Avant-garde Portfolio
   Tokens
   ============================================ */
:root {
  --bone:   #f0ebe0;
  --bone-2: #e7e0d2;
  --ink:    #0a0a0a;
  --ink-2:  #1a1a1a;
  --mute:   #6a665d;
  --acid:   #c4ff3e;
  --acid-d: #9bd000;

  --ff-serif: "Fraunces", "Times New Roman", serif;
  --ff-mono:  "JetBrains Mono", ui-monospace, monospace;

  --edge: 28px;
  --topbar-h: 64px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--ff-serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: auto; }
body { overflow-x: hidden; min-height: 100vh; cursor: none; }
@media (max-width: 900px) { body { cursor: auto; } }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--acid); color: var(--ink); }

/* ============================================
   Film grain
   ============================================ */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* ============================================
   Custom cursor
   ============================================ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  mix-blend-mode: difference;
}
.cursor__ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), background-color .25s;
}
.cursor__dot {
  position: fixed; top: 0; left: 0; width: 4px; height: 4px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: var(--acid); border-color: var(--acid); mix-blend-mode: normal; }
@media (max-width: 900px) { .cursor { display: none; } }

/* ============================================
   Topbar
   ============================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}
.topbar__mark { display: flex; gap: 10px; align-items: center; }
.star { font-size: 14px; transform: translateY(-1px); }
.topbar__nav { display: flex; gap: 28px; justify-self: center; }
.topbar__nav a {
  position: relative; padding: 4px 2px;
}
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .35s var(--ease-out);
}
.topbar__nav a:hover::after { right: 0; }
.topbar__status {
  display: flex; gap: 14px; align-items: center; justify-self: end;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--topbar-h) + 40px) var(--edge) 40px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.hero__sweep {
  position: absolute; top: 50%; left: -10%; right: -10%;
  height: 1px; background: var(--ink);
  transform-origin: left; transform: scaleX(0);
  z-index: 1;
}

.hero__meta {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.55;
  z-index: 2;
}
.hero__meta--left {
  top: calc(var(--topbar-h) + 30px);
  left: var(--edge);
  max-width: 220px;
}
.hero__meta--right {
  top: calc(var(--topbar-h) + 30px);
  right: var(--edge);
  text-align: right;
}
.meta-label { color: var(--mute); margin-bottom: 8px; }
.meta-text { color: var(--ink); }

.hero__title {
  margin-top: auto;
  font-family: var(--ff-serif);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(80px, 22vw, 360px);
  line-height: .82;
  letter-spacing: -0.04em;
  font-feature-settings: "ss01" on;
  color: var(--ink);
  z-index: 3;
  position: relative;
}
.hero__row {
  display: block;
  white-space: nowrap;
}
.hero__row--offset {
  padding-left: 12vw;
  font-style: italic;
  font-weight: 500;
}
.hero__period { color: var(--acid-d); }

.hero__caption {
  position: absolute;
  bottom: 40px;
  left: var(--edge);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 3;
}
.caption-tag { color: var(--mute); margin-bottom: 10px; font-size: 10px; }
.caption-line { margin-bottom: 4px; }
.caption-line--small { color: var(--mute); font-size: 10px; }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: var(--edge);
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase;
  z-index: 3;
}
.hero__scroll-line {
  width: 1px; height: 60px; background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--acid);
  transform: translateY(-100%);
  animation: scrollLine 2.4s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
.hero__scroll-counter { color: var(--mute); }

/* ============================================
   LOOKBOOK
   ============================================ */
.lookbook {
  position: relative;
  background: var(--bone);
  padding: 120px 0 0;
}

.lookbook__intro {
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.ll-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 16px;
}
.ll-heading {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.ll-heading em {
  font-style: italic; font-weight: 300;
  font-variation-settings: "opsz" 144;
}
.ll-strike {
  position: relative;
  font-style: italic;
  color: var(--mute);
}
.ll-strike::after {
  content: ""; position: absolute;
  left: -4%; right: -4%; top: 52%;
  height: 4px; background: var(--acid);
  transform: rotate(-2deg);
  z-index: -1;
}

.lookbook__viewport {
  width: 100%;
  overflow: hidden;
}
.lookbook__track {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 60px var(--edge) 60px calc(var(--edge) + 40px);
  width: max-content;
}

/* Each work */
.work {
  position: relative;
  flex: 0 0 auto;
  width: 460px;
}
.work--tall { width: 380px; }
.work--short { width: 360px; }

.work__art {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--bone-2);
  margin-bottom: 24px;
  transition: transform .6s var(--ease-out);
}
.work--tall .work__art { height: 720px; }
.work--short .work__art { height: 420px; }
.work:hover .work__art { transform: scale(1.02); }

.work__meta { font-family: var(--ff-mono); }
.work__num {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mute);
  margin-bottom: 10px;
  transition: color .3s;
}
.work:hover .work__num { color: var(--acid-d); }
.work__title {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.work__sub {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mute);
}

/* --- abstract artwork compositions per card --- */
.work__art--a {
  background:
    radial-gradient(circle at 50% 40%, #c8a988 0%, #8a6a4d 40%, #2a1a10 100%);
}
.art-blob {
  position: absolute; left: 50%; top: 50%;
  width: 70%; height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #f3d8b5 0%, #a37454 50%, #2a1a10 100%);
  border-radius: 65% 35% 55% 45% / 60% 50% 50% 40%;
  filter: blur(.3px);
  box-shadow: inset -30px -50px 80px rgba(0,0,0,.5),
              inset 20px 30px 40px rgba(255,255,255,.1);
}
.art-line {
  position: absolute; left: 0; right: 0; bottom: 22%;
  height: 1px; background: rgba(255,255,255,.4);
}

.work__art--b {
  background: linear-gradient(180deg, #1a1d20 0%, #0d0f11 100%);
}
.art-curve {
  position: absolute; inset: 12% 8% 12% 8%;
  background: radial-gradient(ellipse at 50% 35%, rgba(196,255,62,.15) 0%, rgba(0,0,0,0) 60%),
              radial-gradient(ellipse at 50% 80%, rgba(255,255,255,.08) 0%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 75% 75% 25% 25%;
  border: 1px solid rgba(255,255,255,.18);
}
.art-noise {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(255,255,255,.03) 4px 5px);
  mix-blend-mode: overlay;
}

.work__art--c {
  background: var(--bone-2);
}
.art-grid {
  position: absolute; inset: 18%;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  transform: rotate(-4deg);
}
.work__art--c::before {
  content: ""; position: absolute; left: 10%; top: 10%;
  font-family: var(--ff-serif); font-style: italic;
  font-size: 130px; line-height: 1; color: var(--ink);
  content: "04";
  opacity: .9;
}

.work__art--d {
  background: linear-gradient(135deg, #d94e2e 0%, #b13418 60%, #2a0d05 100%);
}
.art-field {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 35% 45%, rgba(255,220,180,.35) 0%, transparent 35%),
    radial-gradient(circle at 70% 65%, rgba(0,0,0,.4) 0%, transparent 40%);
  mix-blend-mode: overlay;
}
.art-dot {
  position: absolute; left: 36%; top: 44%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 60px rgba(196,255,62,.6);
}

.work__art--e {
  background: #efe9db;
}
.art-fold {
  position: absolute;
  left: 50%; top: 50%;
  width: 70%; height: 70%;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: linear-gradient(135deg, #fff 0%, #d8cfba 45%, #ada48c 60%, #fff 80%);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.3);
}
.art-fold--2 {
  width: 50%; height: 50%;
  transform: translate(-30%, -30%) rotate(8deg);
  clip-path: polygon(0 0, 100% 20%, 80% 100%, 20% 80%);
  background: linear-gradient(135deg, #f5edd6 0%, #a89572 100%);
  opacity: .8;
}

.work__art--f {
  display: flex;
  background: var(--ink);
}
.art-split {
  flex: 1; height: 100%;
}
.art-split--l {
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-2) 100%);
}
.art-split--r {
  background:
    radial-gradient(circle at 40% 30%, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
}
.art-split--r::after {
  content: ""; position: absolute;
  left: -1px; top: 30%; bottom: 30%;
  width: 2px; background: var(--acid);
}

/* Marquee */
.lookbook__marquee {
  padding: 60px 0 80px;
  overflow: hidden;
  border-top: 1px solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--ff-mono);
  font-size: 13vw;
  font-weight: 300;
  letter-spacing: -0.03em;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  color: var(--ink);
  opacity: .92;
}
.marquee__track span { padding-right: .3em; }
@keyframes marquee {
  to { transform: translateX(-33.333%); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 140px var(--edge) 40px;
  position: relative;
}

.footer__manifesto {
  margin-bottom: 140px;
}
.manifesto {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 8vw, 140px);
  line-height: .98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.manifesto em {
  font-style: italic;
  color: var(--acid);
  font-weight: 200;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 120px;
  padding-top: 60px;
  border-top: 1px solid rgba(240,235,224,.15);
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.col-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(240,235,224,.5);
  margin-bottom: 8px;
}
.col-link, .col-text {
  font-family: var(--ff-mono);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.5;
}
.col-link {
  display: inline-block;
  width: fit-content;
  position: relative;
  padding-bottom: 2px;
  transition: color .3s;
}
.col-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; right: 100%;
  height: 1px; background: var(--acid);
  transition: right .35s var(--ease-out);
}
.col-link:hover { color: var(--acid); }
.col-link:hover::after { right: 0; }

.footer__big {
  display: flex;
  align-items: flex-end;
  gap: 4vw;
  font-family: var(--ff-serif);
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: clamp(120px, 28vw, 480px);
  line-height: .82;
  letter-spacing: -0.05em;
  margin-bottom: 60px;
}
.big-num { color: var(--bone); }
.big-dash { color: var(--mute); font-weight: 200; }
.big-caret {
  display: inline-block;
  width: 6px; height: 1em;
  background: var(--acid);
  margin-left: 12px;
  align-self: flex-end;
  margin-bottom: .12em;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.footer__bottom {
  display: flex; justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(240,235,224,.45);
  padding-top: 20px;
  border-top: 1px solid rgba(240,235,224,.12);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  :root { --edge: 18px; }
  .topbar { font-size: 10px; }
  .topbar__nav { display: none; }
  .hero { padding-bottom: 200px; }
  .hero__meta--left, .hero__meta--right { display: none; }
  .hero__title {
    font-size: clamp(56px, 19vw, 160px);
    margin-bottom: 80px;
  }
  .hero__row--offset { padding-left: 6vw; }
  .hero__caption { bottom: 100px; }
  .hero__scroll { bottom: 30px; right: var(--edge); }
  .hero__scroll-line { height: 36px; }
  .lookbook { padding-top: 60px; }
  .lookbook__intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .lookbook__track { flex-direction: column; gap: 40px; padding: 40px var(--edge); width: 100%; align-items: stretch; }
  .work, .work--tall, .work--short { width: 100%; }
  .work__art, .work--tall .work__art, .work--short .work__art { height: 420px; }
  .footer { padding-top: 80px; }
  .footer__manifesto { margin-bottom: 80px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}

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