/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; }

:root {
  --blue:  #002395;
  --red:   #ED2939;
  --navy:  #0b1640;
  --cream: #faf8f5;
  --white: #ffffff;
  --text:  #1a1a2e;
  --muted: #aaa;
}

body {
  font-family: 'DM Sans', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  min-height: 55vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem 3.5rem;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.deco-ring--lg {
  width: 380px; height: 380px;
  bottom: -60px; left: -80px;
  border: 2px solid rgba(255,255,255,0.18);
}
.deco-ring--md {
  width: 200px; height: 200px;
  bottom: 60px; left: 60px;
  border: 2px solid rgba(237,41,57,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 55%;
}

.avatar {
  position: absolute;
  bottom: -20px;
  right: 2.5rem;
  height: 200px;
  width: auto;
  object-fit: contain;
  z-index: 2;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}

.name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.role {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

/* ── Tricolor Bar ── */
.tricolor-bar {
  display: flex;
  height: 5px;
}
.bar { flex: 1; }
.bar.blue  { background: var(--blue); }
.bar.white { background: #d0d0d0; }
.bar.red   { background: var(--red); }

/* ── Quote Section ── */
.quote-section {
  background: #12183a;
  padding: 5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.quote-bg-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(8rem, 35vw, 18rem);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  position: absolute;
  bottom: -1rem; right: -1rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.quote-inner { position: relative; }
.quote-mark {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-bottom: 2rem;
}
.quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6.5vw, 3rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ── Favorites Section ── */
.favorites-section {
  padding: 3.5rem 2.5rem 3rem;
  background: var(--cream);
}
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.fav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.fav-card {
  border-radius: 50%;
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.fav-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.fav-card--blue  { background: #d5e3ff; }
.fav-card--light { background: #e8eaf2; }
.fav-card--red   { background: #ffd5d8; }

.fav-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(0,0,0,0.25);
  position: absolute;
  top: 0.9rem; left: 1.2rem;
}
.fav-icon {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.fav-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.06em;
  text-align: center;
}

@media (max-width: 480px) {
  .fav-grid { gap: 0.6rem; }
  .fav-name { font-size: 0.78rem; }
}

/* ── What I Do Section ── */
.work-section {
  padding: 3rem 2.5rem 2.5rem;
  background: var(--cream);
  border-top: 1px solid rgba(0,0,0,0.07);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.work-card {
  border-radius: 16px;
  padding: 2rem 1.5rem;
  background: var(--white);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.work-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  display: block;
  margin-bottom: 0.6rem;
}
.work-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ── Footer ── */
.site-footer {
  padding: 3rem 2.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: var(--navy);
}
.footer-name {
  font-family: 'DM Sans', 'Hiragino Sans', sans-serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700;
  font-style: normal;
  color: #aaa;
  opacity: 0.5;
  letter-spacing: 0.02em;
  line-height: 1;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: Desktop ── */
@media (min-width: 768px) {
  .hero,
  .quote-section,
  .favorites-section,
  .work-section,
  .site-footer {
    padding-left: max(2.5rem, calc(50% - 360px));
    padding-right: max(2.5rem, calc(50% - 360px));
  }

  .avatar {
    height: 250px;
    right: max(2.5rem, calc(50% - 360px));
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1.5rem 3rem; }
  .quote-section { padding: 3rem 1.5rem 2.5rem; }
  .favorites-section { padding: 2.5rem 1.5rem 1.5rem; }
  .site-footer { padding: 2rem 1.5rem; }
}
