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

/* ── Custom properties ──────────────────────────── */
:root {
  --bg:          #EDEBE3;
  --text:        #141420;
  --text-muted:  #9B9B8E;
  --blue:        #3D5CE6;
  --btn-bg:      #0F0F1A;
  --btn-text:    #F0EEE6;
  --pill:        9999px;
  --pad-x:       clamp(32px, 4vw, 56px);
}

/* ── Base ───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Helvetica Neue', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Left accent line ───────────────────────────── */
.left-border {
  position: fixed;
  top: 0;
  left: 18px;
  width: 1px;
  height: 100%;
  background: rgba(20, 20, 32, 0.10);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  animation: fadeUp 0.7s ease both;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--pill);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
}

.nav-link:hover {
  background: rgba(20, 20, 32, 0.07);
  color: var(--text);
}

.nav-link.active {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  margin-left: 8px;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
}

.nav-btn:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* ── Hero (index page) ──────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--pad-x) 90px;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  line-height: 0.93;
  color: var(--text);
  margin-bottom: clamp(20px, 2.8vw, 40px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.title-line {
  display: block;
  font-size: clamp(70px, 11.8vw, 152px);
}

.title-line--indent {
  margin-left: clamp(36px, 5.2vw, 88px);
}

.blue-dot {
  color: var(--blue);
}

.hero-role {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: clamp(28px, 4vw, 52px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(20, 20, 32, 0.22);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

.hero-works-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  pointer-events: none;
  z-index: 50;
}

.footer-scroll {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-availability {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avail-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.avail-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Works page ─────────────────────────────────── */
.works-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
}

.works-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(60px, 10vw, 128px);
  line-height: 1;
  color: var(--text);
  margin-bottom: clamp(18px, 2.2vw, 30px);
}

.works-tagline {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.works-desc {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 30px;
  max-width: 380px;
}

.works-desc a {
  color: var(--blue);
}

.works-desc a:hover {
  text-decoration: underline;
}

/* Password form */
.password-form {
  display: flex;
  align-items: center;
  border-radius: var(--pill);
  border: 1.5px solid rgba(20, 20, 32, 0.17);
  background: rgba(255, 255, 255, 0.30);
  overflow: hidden;
  margin-bottom: 14px;
  width: 100%;
  max-width: 360px;
}

.password-input {
  flex: 1;
  min-width: 0;
  padding: 13px 22px;
  font-size: 13.5px;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}

.password-input::placeholder {
  color: var(--text-muted);
}

.btn-unlock {
  flex-shrink: 0;
  margin: 3px;
  padding: 10px 22px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-unlock:hover {
  opacity: 0.82;
}

.password-hint {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-muted);
}

.hint-tag {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(20, 20, 32, 0.08);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-left: 4px;
}

/* Works page floating home link */
.works-back {
  position: fixed;
  top: 24px;
  left: var(--pad-x);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  z-index: 100;
  transition: color 0.2s;
}

.works-back:hover {
  color: var(--text);
}

/* ── Hamburger button ───────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
}

/* ── Mobile nav overlay ─────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
}

.nav-mobile-close:hover {
  color: var(--text);
}

.nav-mobile-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 11vw, 60px);
  color: var(--text-muted);
  padding: 6px 20px;
  border-radius: var(--pill);
  transition: color 0.2s;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--text);
}

.nav-mobile-contact {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.nav-mobile-contact:hover {
  opacity: 0.82;
}

/* ── Mobile responsive ──────────────────────────── */
@media (max-width: 680px) {
  :root {
    --pad-x: 24px;
  }

  .site-nav {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .left-border {
    display: none;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .title-line--indent {
    margin-left: clamp(16px, 4vw, 40px);
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-footer {
    padding: 18px 24px;
  }

  .works-page {
    padding: 60px 24px;
  }

  .password-form {
    max-width: 100%;
  }

  .works-back {
    left: 24px;
    top: 20px;
  }

  .section {
    padding: 60px 24px 100px;
    min-height: 50vh;
  }

  .section-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ── Scroll sections (index below fold) ─────────── */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px var(--pad-x) 120px;
  border-top: 1px solid rgba(20, 20, 32, 0.08);
}

/* Two-column split: title left, content right */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  width: 100%;
}

.section-split-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-split-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Contact: full-width stacked */
.section-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(52px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.section-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  color: var(--text);
}

/* Contact — oversized email */
.section-email-large {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 68px);
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.section-email-large:hover {
  color: var(--blue);
}

.section-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
