/* ===================================================
   AOI PORTFOLIO — MASTER STYLESHEET
   =================================================== */

/* 1. CSS RESET & VARIABLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --white: #f5f0e8;
  --cream: #ede8de;
  --gray-dark: #1a1a1a;
  --gray-mid: #333;
  --gray-light: #888;
  --gray-pale: #ccc;
  --accent: #c8b89a;
  --accent-dark: #9a8a72;
  --accent-light: #e8dece;
  --gold: #d4af7a;

  --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-jp: 'Noto Serif JP', serif;
  --font-mono: 'Space Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 70px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-serif);
  overflow-x: hidden;
  cursor: none;
}

body.loading {
  overflow: hidden;
}

/* 2. CUSTOM CURSOR */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
  mix-blend-mode: difference;
}

#cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 184, 154, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 18px;
  height: 18px;
}

body:has(a:hover) #cursor-follower,
body:has(button:hover) #cursor-follower {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}

/* 3. LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-in-out), visibility 0.8s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.loader-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--white);
  animation: pulseGlow 2s ease-in-out infinite;
}

.loader-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  animation: lineExpand 1.5s var(--ease-out) forwards;
}

@keyframes lineExpand {
  from { width: 0; }
  to { width: 60px; }
}

.loader-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gray-light);
}

.loader-progress {
  width: 200px;
  height: 1px;
  background: var(--gray-dark);
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: var(--accent);
  animation: loadProgress 2s var(--ease-out) forwards;
}

@keyframes loadProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 4. NAVIGATION */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 184, 154, 0.1);
}

.nav-logo-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-logo-link:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gray-light);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}

.nav-menu span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-menu.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-menu.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--accent);
}

/* 5. HERO SECTION */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 184, 154, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(100, 80, 50, 0.08) 0%, transparent 50%);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(32px, 8vw, 120px);
  padding-top: var(--nav-h);
  max-width: 60%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 2.2s forwards;
}

.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 32px;
}

.title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
  overflow: hidden;
  line-height: 1.05;
}

.title-word {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity 0.8s var(--ease-out);
}

.title-line--en .title-word {
  font-size: clamp(5rem, 12vw, 13rem);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 184, 154, 0.8);
  letter-spacing: 0.15em;
}

.title-word.visible {
  transform: translateY(0);
  opacity: 1;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--gray-light);
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.hero-tagline em {
  color: var(--accent);
  font-style: normal;
}

.hero-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 3s forwards;
}

.scroll-indicator {
  width: 28px;
  height: 44px;
  border: 1px solid rgba(200, 184, 154, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0.3; }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  text-transform: uppercase;
}

/* Hero Portrait */
.hero-portrait {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  animation: portraitReveal 1.5s var(--ease-out) 2.5s forwards;
}

@keyframes portraitReveal {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0% 0 0); }
}

.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.6s var(--ease-out), transform 8s linear;
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--black) 0%,
    rgba(10,10,10,0.5) 30%,
    transparent 60%
  ),
  linear-gradient(
    to top,
    var(--black) 0%,
    transparent 40%
  );
}

.portrait-border {
  position: absolute;
  bottom: 48px;
  right: 48px;
  width: 120px;
  height: 120px;
  border-right: 1px solid rgba(200, 184, 154, 0.3);
  border-bottom: 1px solid rgba(200, 184, 154, 0.3);
}

/* Hero Marquee */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  overflow: hidden;
  z-index: 3;
  border-top: 1px solid rgba(200, 184, 154, 0.1);
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gray-light);
  text-transform: uppercase;
  flex-shrink: 0;
}

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

/* 6. SECTION UTILITIES */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-label span:first-child {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section-label span:last-child {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gray-light);
  text-transform: uppercase;
}

/* Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.reveal-fade.visible {
  opacity: 1;
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }

/* 7. ABOUT SECTION */
#about {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 8vw, 100px);
  padding: 0 clamp(32px, 8vw, 120px);
  align-items: start;
}

.about-left {
  position: sticky;
  top: 100px;
}

.about-image-wrap {
  position: relative;
  margin-top: 40px;
}

.about-image-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.8s var(--ease-out);
}

.about-image-inner:hover .about-image {
  transform: scale(1.04);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.4) 0%, transparent 50%);
}

.about-image-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 184, 154, 0.2);
}

.about-image-caption span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray-light);
}

.about-heading {
  margin-bottom: 32px;
}

.about-heading-en {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  display: block;
}

.about-philosophy {
  margin-bottom: 32px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: rgba(200, 184, 154, 0.03);
}

.philosophy-text {
  font-family: var(--font-jp);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 200;
  color: var(--accent-light);
  line-height: 2;
  letter-spacing: 0.08em;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.about-body p {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  line-height: 2.2;
  color: rgba(245, 240, 232, 0.75);
  letter-spacing: 0.05em;
}

.about-body em {
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}

.about-timeline {
  border-top: 1px solid rgba(200, 184, 154, 0.15);
  padding-top: 32px;
}

.timeline-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(200, 184, 154, 0.08);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.timeline-event {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

/* 8. WORKS SECTION */
#works {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--gray-dark);
  position: relative;
}

.works-header {
  padding: 0 clamp(32px, 8vw, 120px);
  margin-bottom: 64px;
}

.works-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
}

.works-grid {
  padding: 0 clamp(32px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.work-item {
  grid-column: span 6;
}

.work-item--large {
  grid-column: span 7;
}

.work-item--wide {
  grid-column: span 5;
}

.work-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(200, 184, 154, 0.12);
  background: rgba(255,255,255,0.01);
  transition: border-color 0.4s, background 0.4s;
  overflow: hidden;
}

.work-inner:hover {
  border-color: rgba(200, 184, 154, 0.35);
  background: rgba(255,255,255,0.03);
}

.work-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-out);
}

.work-inner:hover .work-image {
  transform: scale(1.04);
}

.work-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.work-inner:hover .work-hover-overlay {
  opacity: 1;
}

.work-hover-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 10px 24px;
}

/* Work Image Designs */
.work-image-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Editorial */
.work-image--editorial {
  background: #111;
}

.editorial-layout {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.editorial-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 2fr 1fr;
  gap: 3px;
  padding: 3px;
}

.ed-block { background: var(--gray-mid); }
.ed-block--1 { background: #1e1e1e; }
.ed-block--2 { background: rgba(200,184,154,0.15); grid-row: span 2; }
.ed-block--3 { background: #161616; }
.ed-block--4 { background: rgba(200,184,154,0.08); }

.editorial-text-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--accent);
}

/* Event */
.work-image--event {
  background: #0d0d0d;
}

.event-layout {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.event-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,184,154,0.2);
  animation: expandCircle 4s var(--ease-out) infinite;
}

.ev-circle--1 { width: 100px; height: 100px; animation-delay: 0s; }
.ev-circle--2 { width: 180px; height: 180px; animation-delay: 0.8s; }
.ev-circle--3 { width: 260px; height: 260px; animation-delay: 1.6s; }

@keyframes expandCircle {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.2); }
}

.event-text-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--accent);
}

/* UX */
.work-image--ux {
  background: #0e0e0e;
}

.ux-layout {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 24px;
}

.ux-wireframe {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.ux-bar {
  height: 6px;
  background: rgba(200,184,154,0.2);
  border-radius: 3px;
}

.ux-bar--1 { width: 70%; }
.ux-bar--2 { width: 55%; animation: barPulse 2s ease-in-out infinite; }
.ux-bar--3 { width: 40%; animation: barPulse 2s ease-in-out infinite 0.5s; }

@keyframes barPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.7; }
}

.ux-dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.ux-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.ux-text-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--accent);
}

/* Brand */
.work-image--brand {
  background: #111;
}

.brand-layout {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(200,184,154,0.25);
  text-align: center;
  line-height: 2;
  z-index: 1;
}

.brand-lines {
  position: absolute;
  inset: 0;
}

.br-line {
  position: absolute;
  height: 1px;
  width: 100%;
  background: rgba(200,184,154,0.1);
}

.br-line:nth-child(1) { top: 33%; }
.br-line:nth-child(2) { top: 50%; background: rgba(200,184,154,0.2); }
.br-line:nth-child(3) { top: 67%; }

/* Work Info */
.work-info {
  padding: 24px 28px 28px;
  flex: 1;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.work-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.work-year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray-light);
  letter-spacing: 0.1em;
}

.work-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.work-desc {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  line-height: 1.9;
  color: rgba(245,240,232,0.6);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  border: 1px solid rgba(200,184,154,0.2);
  padding: 4px 10px;
  text-transform: uppercase;
}

/* 9. QUOTE SECTION */
#quote {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
  background: var(--black);
  text-align: center;
}

.quote-container {
  position: relative;
  padding: 0 clamp(32px, 8vw, 120px);
}

.quote-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,184,154,0.04);
  letter-spacing: 0.2em;
  pointer-events: none;
  white-space: nowrap;
}

.quote-main {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 2;
  color: var(--white);
  letter-spacing: 0.05em;
  max-width: 700px;
  margin: 0 auto;
}

.quote-main em {
  color: var(--accent);
  font-style: italic;
}

.quote-mark {
  font-size: 1.5em;
  color: var(--accent);
  opacity: 0.4;
  line-height: 0;
  vertical-align: -0.2em;
}

.quote-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 48px auto 0;
  transition: width 1.2s var(--ease-out);
}

.quote-divider.visible {
  width: 200px;
}

/* 10. SKILLS SECTION */
#skills {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--gray-dark);
}

.skills-container {
  padding: 0 clamp(32px, 8vw, 120px);
}

.skills-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 64px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(200,184,154,0.1);
  margin-bottom: 80px;
  border: 1px solid rgba(200,184,154,0.1);
}

.skill-card {
  background: var(--gray-dark);
  transition: background 0.4s;
}

.skill-card:hover {
  background: rgba(200,184,154,0.04);
}

.skill-card-inner {
  padding: 36px 28px;
}

.skill-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}

.skill-card:hover .skill-icon {
  opacity: 1;
  transform: scale(1.1);
}

.skill-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.skill-desc {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(200,184,154,0.5);
  text-transform: uppercase;
}

/* Skill Bars */
.skill-bars {
  max-width: 700px;
}

.skill-bar-item {
  margin-bottom: 28px;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-bar-label span:first-child {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray-pale);
  text-transform: uppercase;
}

.skill-bar-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.skill-bar-track {
  height: 1px;
  background: rgba(200,184,154,0.15);
  overflow: visible;
  position: relative;
}

.skill-bar-fill {
  height: 1px;
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  width: 0%;
  transition: width 1.5s var(--ease-out);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* 11. CONTACT SECTION */
#contact {
  padding: clamp(80px, 12vw, 160px) 0 0;
  background: var(--black);
  position: relative;
}

.contact-container {
  padding: 0 clamp(32px, 8vw, 120px);
  margin-bottom: 80px;
}

.contact-heading {
  margin-bottom: 32px;
}

.contact-heading-line {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}

.contact-heading-line--italic {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,184,154,0.6);
}

.contact-body {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  line-height: 2.2;
  color: rgba(245,240,232,0.6);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.contact-cta {
  margin-bottom: 48px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(200,184,154,0.4);
  padding: 16px 36px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}

.contact-btn:hover::before {
  transform: translateX(0);
}

.contact-btn:hover {
  color: var(--black);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-btn-text,
.contact-btn-arrow {
  position: relative;
  z-index: 1;
}

.contact-btn-arrow {
  transition: transform 0.3s var(--ease-out);
}

.contact-btn:hover .contact-btn-arrow {
  transform: translateX(4px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-item {
  display: flex;
  gap: 24px;
  align-items: center;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  min-width: 60px;
}

.contact-info-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(245,240,232,0.6);
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(200,184,154,0.1);
  padding: 32px clamp(32px, 8vw, 120px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--white);
}

.footer-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-light);
  letter-spacing: 0.1em;
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  text-transform: uppercase;
}

/* 12. UTILITY ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* 12b. NAV ACTIVE STATE */
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

/* 12c. ABOUT IMAGE TILT TRANSITION */
.about-image-inner {
  transition: transform 0.4s var(--ease-out);
}

/* 12d. WORK INNER 3D TRANSITION */
.work-inner {
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-out);
}

/* 12e. CONTACT BTN POSITION RELATIVE */
.contact-btn {
  position: relative;
}

/* 12f. SKILL BAR NUMBER COUNTER */
.skill-bar-num {
  transition: all 0.3s;
}

/* 12g. QUOTE SECTION SCROLL REVEAL */
#quote .reveal-fade {
  opacity: 0;
}

#quote .reveal-fade.visible {
  opacity: 1;
}

/* 12h. HERO SECTION OVERFLOW */
#hero {
  overflow: hidden;
}

/* 12i. PORTRAIT ANIMATION OVERRIDE */
.hero-portrait {
  animation-fill-mode: forwards !important;
}

/* 12j. SECTION TRANSITIONS */
section {
  position: relative;
}

/* 12k. LINK STYLE */
a {
  color: inherit;
}

/* 10b. MALMARY WORK CARD */
.work-item--malmary {
  grid-column: span 12;
}

.work-inner--malmary {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}

.work-inner--malmary .work-image-wrap {
  aspect-ratio: unset;
  min-height: 340px;
}

.work-image--malmary-vis {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.malmary-layout {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  gap: 32px;
}

.malmary-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(245, 240, 232, 0.85);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  transition: color 0.4s, transform 0.6s var(--ease-out);
}

.work-inner--malmary:hover .malmary-wordmark {
  color: var(--accent);
  transform: scale(1.04);
}

.malmary-reg {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--accent);
  opacity: 0.7;
  font-style: normal;
  letter-spacing: 0;
}

.malmary-logo-img {
  display: none;
}

/* Malva flower animation */
.malmary-flower {
  position: absolute;
  width: 180px;
  height: 180px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.12;
  transition: opacity 0.6s;
}

.work-inner--malmary:hover .malmary-flower {
  opacity: 0.22;
}

.flower-petal {
  position: absolute;
  width: 54px;
  height: 90px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(160deg, rgba(200,184,154,0.8), rgba(160,130,100,0.3));
  top: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  animation: petalSway 6s ease-in-out infinite;
}

.fp--1 { transform: translateX(-50%) translateY(-100%) rotate(0deg);   animation-delay: 0s; }
.fp--2 { transform: translateX(-50%) translateY(-100%) rotate(60deg);  animation-delay: 0.3s; }
.fp--3 { transform: translateX(-50%) translateY(-100%) rotate(120deg); animation-delay: 0.6s; }
.fp--4 { transform: translateX(-50%) translateY(-100%) rotate(180deg); animation-delay: 0.9s; }
.fp--5 { transform: translateX(-50%) translateY(-100%) rotate(240deg); animation-delay: 1.2s; }
.fp--6 { transform: translateX(-50%) translateY(-100%) rotate(300deg); animation-delay: 1.5s; }

@keyframes petalSway {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.flower-center {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(200,184,154,0.4);
}

/* MalMary brand concept text */
.malmary-brand-concept {
  margin: 16px 0;
  padding: 16px 20px;
  border-left: 1px solid rgba(200,184,154,0.3);
  background: rgba(200,184,154,0.03);
}

.malmary-concept-line {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.malmary-concept-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--gray-light);
  text-transform: uppercase;
}

/* 10c. TOOLS SECTION */
.tools-section {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid rgba(200,184,154,0.12);
}

.tools-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(200,184,154,0.08);
  border: 1px solid rgba(200,184,154,0.08);
}

.tool-item {
  background: var(--gray-dark);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s;
}

.tool-item:hover {
  background: rgba(200,184,154,0.05);
}

.tool-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}

.tool-item:hover .tool-icon {
  opacity: 1;
  transform: scale(1.15);
}

.tool-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}

.tool-desc {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: rgba(245,240,232,0.45);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 10d. CERTIFICATIONS */
.certifications-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid rgba(200,184,154,0.12);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(200,184,154,0.1);
  background: rgba(255,255,255,0.01);
  transition: border-color 0.3s, background 0.3s;
}

.cert-item:hover {
  border-color: rgba(200,184,154,0.3);
  background: rgba(200,184,154,0.03);
}

.cert-badge {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.03em;
}

.cert-org {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Responsive for MalMary card */
@media (max-width: 900px) {
  .work-inner--malmary {
    grid-template-columns: 1fr;
  }
  .work-inner--malmary .work-image-wrap {
    aspect-ratio: 16/9;
    min-height: unset;
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 13. RESPONSIVE */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .work-item,
  .work-item--large,
  .work-item--wide {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .hero-content {
    max-width: 100%;
    padding-bottom: 120px;
  }

  .hero-portrait {
    opacity: 0.15 !important;
    animation: none !important;
    clip-path: none !important;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-left {
    position: static;
  }

  .about-image-inner {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  #nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .hero-content {
    padding: 0 24px;
    padding-top: var(--nav-h);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .about-container,
  .skills-container,
  .contact-container,
  .works-header,
  .quote-container {
    padding: 0 24px;
  }

  .footer {
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title .title-word {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .title-line--en .title-word {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  #cursor, #cursor-follower {
    display: none;
  }

  body { cursor: auto; }
}
