/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --beige:        #F7F2EA;
  --beige-mid:    #EDE5D8;
  --beige-deep:   #E2D5C3;
  --brown-light:  #C4A882;
  --brown:        #9A7A58;
  --brown-dark:   #6B4F33;
  --ink:          #3A2A1A;
  --ink-soft:     #7A6553;
  --white:        #FDFCFA;

  --ff-serif:     'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --ff-sans:      'Poppins', 'Noto Serif JP', sans-serif;
  --ff-jp:        'Noto Serif JP', 'Poppins', sans-serif;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --transition:   0.35s var(--ease-out);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--beige);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.lang-jp { font-family: var(--ff-jp); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ──────────────────────────────────────────────── */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 10vw, 120px);
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(107, 79, 51, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1100px, 92vw);
  margin-inline: auto;
  height: 64px;
}

.wordmark {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--beige);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  inset-block-end: -3px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--beige);
  transition: width var(--transition);
}

.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { width: 100%; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 2px 0;
  transition: color var(--transition);
}

.lang-btn.active { color: var(--brown-dark); font-weight: 600; }
.lang-btn:hover { color: var(--brown); }

.lang-divider {
  font-size: 0.65rem;
  color: var(--beige-deep);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(196, 168, 130, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(196, 168, 130, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, var(--white) 0%, var(--beige) 60%, var(--beige-mid) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative large faint circle */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(196, 168, 130, 0.2);
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(196, 168, 130, 0.15);
  top: 50%;
  right: 50px;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-inner {
  width: min(1100px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: 6rem 4rem;
  flex-wrap: wrap;
}

/* Photo */
.hero-photo-wrap {
  flex: 0 0 auto;
}

.photo-frame {
  position: relative;
  width: clamp(200px, 22vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--beige-mid);
  box-shadow: 0 12px 40px rgba(107, 79, 51, 0.18), 0 4px 16px rgba(107, 79, 51, 0.08);
  border: 3px solid var(--beige-deep);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Fallback when no photo */
.photo-frame.photo-missing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame.photo-missing .hero-photo { display: none; }

.photo-placeholder-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--brown-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-frame.photo-missing .photo-placeholder-label { display: flex; }

/* Hero text */
.hero-text {
  flex: 1 1 300px;
}

.hero-greeting {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-greeting::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--brown-light);
}

.hero-name {
  font-family: var(--ff-serif);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--brown-dark);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  position: relative;
}

.hero-name::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--brown-light), transparent);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--brown-dark);
  color: var(--beige);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 79, 51, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--brown-dark);
  border: 1.5px solid var(--brown-dark);
}

.btn-outline:hover {
  background: var(--brown-dark);
  color: var(--beige);
}

/* ── Section titles ──────────────────────────────────────────────── */
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  margin-top: 0.6rem;
  width: 40px;
  height: 1px;
  background: var(--brown-light);
}

/* ── Works subtitle ─────────────────────────────────────────────── */
.works-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-top: -2rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── About ───────────────────────────────────────────────────────── */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.85;
}

.about-text p:last-child { margin-bottom: 0; }

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 1.5px solid var(--beige-deep);
  padding-left: 1.25rem;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-light);
}

.detail-value {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
}

/* ── Works ───────────────────────────────────────────────────────── */
.works {
  background: var(--beige);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.work-card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(107, 79, 51, 0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(107, 79, 51, 0.14);
}

.work-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--beige-mid);
  position: relative;
}

.work-img-wrap.img-missing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(196, 168, 130, 0.12) 8px,
    rgba(196, 168, 130, 0.12) 9px
  );
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-img { transform: scale(1.04); }

.work-info {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 0.5rem;
  display: block;
}

.work-title {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.work-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.5rem;
}

.work-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  transition: color var(--transition), letter-spacing var(--transition);
  align-self: flex-start;
}

.work-link:hover {
  color: var(--brown-dark);
  letter-spacing: 0.18em;
}

/* ── Contact ─────────────────────────────────────────────────────── */
.contact {
  background: var(--white);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
}

.contact-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brown-dark);
  color: var(--beige-light, #ede5d8);
  padding-block: 2.5rem;
}

.footer-inner {
  width: min(1100px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--beige-mid);
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brown-light);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    padding-block: 5rem 3rem;
  }

  .photo-frame {
    width: clamp(160px, 60vw, 260px);
  }

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

  .site-nav { display: none; }

  .footer-inner { justify-content: center; text-align: center; }
}

/* ── Scroll-reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
