/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Colors ── */
  --color-ivory:          #F7F3EC;
  --color-ivory-deep:     #EDE7DB;
  --color-ivory-panel:    rgba(240, 235, 225, 0.92);
  --color-ivory-warm:     rgba(248, 244, 237, 0.88);

  --color-greige:         #9E8F82;
  --color-greige-light:   #C8BDB4;
  --color-greige-dark:    #6B5F56;
  --color-greige-pale:    rgba(158, 143, 130, 0.2);

  --color-gold:           #C4A24A;
  --color-gold-light:     #E8CC82;
  --color-gold-pale:      rgba(196, 162, 74, 0.15);
  --color-gold-border:    rgba(196, 162, 74, 0.35);
  --color-gold-strong:    rgba(196, 162, 74, 0.65);
  --color-gold-glow:      rgba(196, 162, 74, 0.25);

  --color-text-primary:   #3A3028;
  --color-text-secondary: #7A6E67;
  --color-text-muted:     #A89E96;

  /* ── Typography ── */
  --font-en:   'Cormorant Garamond', Georgia, serif;
  --font-jp:   'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  /* ── Spacing ── */
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   32px;
  --sp-xl:   64px;
  --sp-2xl:  96px;
  --sp-3xl:  128px;

  /* ── Animation ── */
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   0.3s;
  --dur-mid:    0.6s;
  --dur-slow:   0.9s;

  /* ── Borders / Shadows ── */
  --border-gold:       1px solid var(--color-gold-border);
  --border-gold-soft:  1px solid var(--color-gold-pale);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-jp);
  font-weight: 300;
  color: var(--color-text-primary);
  background-color: var(--color-ivory);
  background-image:
    url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='0.7' fill='%23C8B9A8' fill-opacity='0.45'/%3E%3C/svg%3E");
  cursor: none;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   CANVAS
   ============================================================ */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

/* ============================================================
   CURSOR SPARKLE TRAIL (Magic Wand — trail stays in place)
   ============================================================ */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  will-change: transform, opacity;
  animation: sparkleTrail var(--sp-dur, 900ms) ease-out forwards;
}

/* 4-pointed star */
.cursor-sparkle--star4 {
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}

/* 5-pointed star */
.cursor-sparkle--star5 {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Small circle (dot) */
.cursor-sparkle--dot {
  border-radius: 50%;
}

/* Trail animation: appears at cursor position, stays bright, slowly fades */
@keyframes sparkleTrail {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotate(25deg);
  }
  65% {
    opacity: 0.9;
    transform:
      translate(
        calc(-50% + var(--tx, 0px)),
        calc(-50% + var(--ty, 0px))
      )
      scale(0.9) rotate(50deg);
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--tx, 0px)),
        calc(-50% + var(--ty, 0px))
      )
      scale(0.1) rotate(90deg);
  }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 28px 56px;
  transition:
    padding var(--dur-mid) var(--ease-inout),
    background var(--dur-mid),
    border-color var(--dur-mid);
}

#site-header.scrolled {
  padding: 18px 56px;
  background: var(--color-ivory-warm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-gold);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.nav-logo::after {
  content: '✦';
  font-size: 0.5rem;
  vertical-align: 0.5em;
  margin-left: 0.3em;
  color: var(--color-gold);
  display: inline-block;
  animation: starTwinkle 5s ease-in-out 0.8s infinite;
}

.nav-links {
  display: flex;
  gap: 52px;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  position: relative;
  transition: color var(--dur-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0; right: 0;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-mid) var(--ease-expo);
}

.nav-links a:hover { color: var(--color-gold); }
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 4px;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 65% 50%, var(--color-gold-pale) 0%, transparent 70%);
  pointer-events: none;
}

/* Side vertical line decoration */
.hero-side-line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-expo) 1.4s forwards;
  z-index: 3;
}

.hero-side-line--left { left: 28px; }

.side-line-text {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-greige-light);
  writing-mode: vertical-rl;
}

.side-line-bar {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-gold-border), transparent);
}

/* Main layout */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 60px 100px 100px;
  gap: 48px;
  position: relative;
  z-index: 2;
}

/* ── Text block ── */
.hero-text-block {
  flex: 0 0 auto;
  max-width: 440px;
  opacity: 0;
  transform: translateX(-50px);
  animation: heroTextIn 1.2s var(--ease-expo) 0.3s forwards;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

/* Portfolio badge */
.hero-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-variant: small-caps;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  border: var(--border-gold);
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero-name {
  font-family: var(--font-jp);
  font-size: clamp(3.5rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.1em;
  background: linear-gradient(
    130deg,
    var(--color-text-primary) 0%,
    var(--color-text-primary) 30%,
    var(--color-gold) 50%,
    var(--color-text-primary) 70%,
    var(--color-text-primary) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 9s linear 1.6s infinite;
  margin-bottom: 14px;
}

.hero-name-en {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.22em;
  color: var(--color-greige);
  margin-bottom: 36px;
}

.hero-tagline {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 300;
  line-height: 2.3;
  color: var(--color-text-secondary);
  margin-bottom: 44px;
}

.hero-deco-line {
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-pale), transparent);
}

/* ── Image block ── */
.hero-image-wrap {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 640px;
  opacity: 0;
  transform: translateX(50px);
  animation: heroImageIn 1.2s var(--ease-expo) 0.5s forwards;
}

.hero-image-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 55%;
  background: radial-gradient(ellipse at center bottom,
    rgba(196, 162, 74, 0.16) 0%,
    rgba(196, 162, 74, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.hero-image-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--color-gold-border);
  pointer-events: none;
  z-index: 0;
}

.hero-image-ring--outer {
  width: 420px;
  height: 420px;
  border-color: rgba(196, 162, 74, 0.12);
  animation: ringPulse 5s ease-in-out infinite;
}

.hero-image-ring--inner {
  width: 300px;
  height: 300px;
  border-color: rgba(196, 162, 74, 0.08);
  animation: ringPulse 5s ease-in-out 1s infinite;
}

/* Hero image — larger, no shadow */
.hero-img {
  position: relative;
  z-index: 2;
  max-height: 92vh;
  width: auto;
  object-fit: contain;
  animation: float 7s ease-in-out infinite;
}

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s var(--ease-expo) 1.8s forwards;
}

.hero-scroll__text {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--color-greige-light);
}

.hero-scroll__bar {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
  transform-origin: top;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-divider {
  max-width: 480px;
  margin: var(--sp-2xl) auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}

.section-divider::before {
  background: linear-gradient(to right, transparent, var(--color-gold-border));
}

.section-divider::after {
  background: linear-gradient(to left, transparent, var(--color-gold-border));
}

.section-star {
  color: var(--color-gold);
  font-size: 0.72rem;
  padding: 0 18px;
  flex-shrink: 0;
  animation: starTwinkle 4s ease-in-out infinite;
  display: inline-block;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.76rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}

.works-header .section-eyebrow::after {
  content: ' ✦';
  font-size: 0.65rem;
  color: var(--color-gold);
  display: inline-block;
  animation: starTwinkle 4.5s ease-in-out 2s infinite;
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  margin-bottom: 28px;
}

.section-accent-line {
  width: 44px;
  height: 1px;
  background: var(--color-gold);
  margin: 0 auto 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp-xl);
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
}

.about-inner .section-accent-line {
  margin-bottom: 40px;
}

.about-text {
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 2.4;
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* ============================================================
   WORKS
   ============================================================ */
#works {
  position: relative;
  z-index: 2;
  padding-bottom: var(--sp-3xl);
}

.works-header {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl) var(--sp-2xl);
}

.works-header .section-accent-line {
  margin: 0 auto;
}

/* ── Work item ── */
.work-item {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1360px;
  margin: 0 auto;
  padding: var(--sp-2xl) 80px;
  position: relative;
  overflow: hidden;
}

.work-item:nth-child(even) {
  background: rgba(210, 200, 185, 0.06);
}

.work-item + .work-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-greige-pale), transparent);
}

.work-item[data-dir="right"] {
  flex-direction: row-reverse;
}

/* ── Image wrap (no frame, no border) ── */
.work-image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  position: relative; /* for curtain */
}

/* Frame is now frameless — just a clean container */
.work-image-frame {
  max-width: 540px;
  width: 100%;
  position: relative;
}

.work-image-frame img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  display: block;
  transition: transform var(--dur-mid) var(--ease-expo);
}

.work-image-frame:hover img {
  transform: scale(1.02) translateY(-4px);
}

/* ── Text block ── */
.work-text-block {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative; /* for curtain */
}

.work-number {
  font-family: var(--font-en);
  font-size: 0.74rem;
  letter-spacing: 0.38em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.work-number::after {
  content: ' ✦';
  font-size: 0.55rem;
  vertical-align: 0.3em;
  color: var(--color-gold);
  opacity: 0.7;
  display: inline-block;
  animation: starTwinkle 6s ease-in-out infinite;
}
.work-item:nth-child(2) .work-number::after { animation-delay: 1.2s; }
.work-item:nth-child(3) .work-number::after { animation-delay: 2.4s; }
.work-item:nth-child(4) .work-number::after { animation-delay: 0.6s; }
.work-item:nth-child(5) .work-number::after { animation-delay: 1.8s; }
.work-item:nth-child(6) .work-number::after { animation-delay: 3.0s; }

.work-title-jp {
  font-family: var(--font-jp);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--color-text-primary);
}

.work-title-en {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--color-greige);
  margin-top: -4px;
}

/* Medium / year line */
.work-medium {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: -4px;
}

.work-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-pale), transparent);
  margin: 4px 0;
}

.work-desc {
  font-family: var(--font-jp);
  font-size: 0.96rem;
  line-height: 2.2;
  color: var(--color-text-secondary);
  font-weight: 300;
}

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

.work-tags span {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: var(--border-gold);
  padding: 6px 14px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.work-tags span:hover {
  background: var(--color-gold-pale);
}

/* ============================================================
   CURTAIN REVEAL ANIMATION SYSTEM
   ============================================================ */

/* Initial hidden state — no transform, just invisible */
.work-item .work-image-wrap,
.work-item .work-text-block {
  opacity: 0;
}

/* The curtain overlay injected by JS */
.reveal-curtain {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: linear-gradient(90deg, #B8973E 0%, #E8CC82 50%, #C4A24A 100%);
  will-change: transform;
}

/* Curtain-active: overflow hidden so curtain clips to element bounds */
.curtain-overflow {
  overflow: hidden;
}

/* Curtain IN animations */
@keyframes curtainInFromLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0%); }
}
@keyframes curtainInFromRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0%); }
}

/* Curtain OUT: fade in place */
@keyframes curtainFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Post-reveal golden glow burst on image */
@keyframes revealGlow {
  0%   { box-shadow: 0 0 0 0 rgba(196, 162, 74, 0); }
  30%  { box-shadow: 0 0 70px 30px rgba(196, 162, 74, 0.45); }
  100% { box-shadow: 0 0 24px 0 rgba(196, 162, 74, 0.08); }
}

.reveal-glow-active {
  animation: revealGlow 1.2s ease-out forwards;
}

/* Generic reveal-up for About/Works headers */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.85s var(--ease-expo),
    transform 0.85s var(--ease-expo);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
#contact {
  position: relative;
  z-index: 2;
  padding: var(--sp-3xl) var(--sp-xl) var(--sp-2xl);
  text-align: center;
  border-top: var(--border-gold);
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
}

.footer-deco {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: var(--sp-xl);
}

.footer-deco__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-border));
}

.footer-deco__line:last-child {
  background: linear-gradient(90deg, var(--color-gold-border), transparent);
}

.footer-deco__star {
  color: var(--color-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  animation: starTwinkle 5s ease-in-out 1.5s infinite;
  display: inline-block;
}

.footer-name {
  font-family: var(--font-jp);
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.footer-name-en {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.28em;
  color: var(--color-greige);
  margin-bottom: var(--sp-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: var(--sp-lg);
}

.footer-links a {
  color: var(--color-greige);
  transition: color var(--dur-fast), transform var(--dur-fast);
  display: inline-flex;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateY(-3px);
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
/* Small twinkling star before hero name */
.hero-name::before {
  content: '✦';
  font-size: 1.4rem;
  vertical-align: 0.15em;
  margin-right: 0.2em;
  display: inline-block;
  animation: starTwinkle 3s ease-in-out infinite;
  -webkit-text-fill-color: var(--color-gold);
  background: none;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.9; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.25; transform: scale(0.65) rotate(45deg); }
}

@keyframes heroTextIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroImageIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.3; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes scrollDrop {
  0%   { transform: scaleY(1); opacity: 1; }
  50%  { transform: scaleY(0.5); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 220% center; }
}

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

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1000px)
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner {
    padding: 110px 48px 80px;
    gap: 40px;
  }

  .hero-image-ring--outer { width: 300px; height: 300px; }
  .hero-image-ring--inner { width: 210px; height: 210px; }

  .work-item,
  .work-item[data-dir="right"] {
    padding: var(--sp-xl) 48px;
    gap: 56px;
  }

  .work-text-block { flex: 0 0 300px; }

  /* ── Previously unset — desktop 128px reduced for tablet ── */
  .works-header    { padding: 80px 40px 60px; }
  #contact         { padding: 80px 40px 60px; }
  #about           { padding: 0 40px; }
  .section-divider { margin: 60px auto; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 760px)
   ============================================================ */
@media (max-width: 760px) {
  body { cursor: auto; }
  .cursor, .cursor-dot, .cursor-sparkle { display: none; }
  .hero-side-line { display: none; }

  #site-header { padding: 20px 24px; }
  #site-header.scrolled { padding: 14px 24px; }

  .hero-inner {
    flex-direction: column;
    padding: 92px 20px 56px;
    text-align: center;
    gap: 28px;
  }

  .hero-text-block { max-width: 100%; }
  .hero-badge { display: none; }
  .hero-deco-line { margin: 0 auto; }
  .hero-image-wrap { max-width: 300px; width: 100%; }
  .hero-image-ring { display: none; }
  .hero-img { max-height: 55vh; }

  .work-item,
  .work-item[data-dir="right"] {
    flex-direction: column !important;
    padding: 40px 24px;
    gap: 32px;
  }

  .work-text-block {
    flex: none;
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .work-divider { margin: 4px auto; }
  .work-tags { justify-content: center; }

  .work-item + .work-item::before {
    left: 24px;
    right: 24px;
  }

  #about { padding: 0 var(--sp-md); }
  .section-divider { margin: 44px auto; }
  .nav-links { display: none; }

  /* ── Previously unset — desktop 128px reduced for mobile ── */
  .works-header { padding: 60px 24px 44px; }
  #contact      { padding: 56px 24px 48px; }
  .footer-deco  { margin-bottom: 40px; }
}

/* ============================================================
   RESPONSIVE — Smartphone Portrait (≤ 430px)
   Targets 375–428px: iPhone SE / 14 / 15 / Plus etc.
   ============================================================ */
@media (max-width: 430px) {
  .hero-name     { font-size: 3rem; }
  .work-title-jp { font-size: 1.6rem; }

  .hero-inner      { padding: 88px 16px 48px; gap: 24px; }
  .works-header    { padding: 44px 16px 32px; }
  .work-item,
  .work-item[data-dir="right"] { padding: 32px 16px; gap: 24px; }
  #contact         { padding: 44px 16px 40px; }
  .section-divider { margin: 32px auto; }
  .footer-deco     { margin-bottom: 28px; }
  #about           { padding: 0 16px; }
}
