/* =========================================================
   JAPANIMALS — Brand Site
   Indigo × Kinari × Sumi / ukiyo-e woodblock mood
   ========================================================= */

:root {
  --ai: #32719f;          /* indigo — brand blue */
  --ai-deep: #24547a;
  --sumi: #17191f;        /* sumi ink */
  --washi: #f6f1e5;       /* unbleached washi */
  --washi-dark: #ece5d3;
  --shu: #b7282e;         /* vermillion accent */
  --kin: #c8a45c;         /* muted gold */
  --serif-en: "Cormorant Garamond", Georgia, serif;
  --serif-ja: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--serif-en);
  background: var(--washi);
  color: var(--sumi);
  line-height: 1.85;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

/* ---------- Seigaiha wave pattern ---------- */
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%2332719f' stroke-width='1'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M8 40a32 32 0 0 1 64 0M16 40a24 24 0 0 1 48 0M24 40a16 16 0 0 1 32 0M32 40a8 8 0 0 1 16 0'/%3E%3Cpath d='M-40 20a40 40 0 0 1 80 0M-32 20a32 32 0 0 1 64 0M-24 20a24 24 0 0 1 48 0M-16 20a16 16 0 0 1 32 0M-8 20a8 8 0 0 1 16 0'/%3E%3Cpath d='M40 20a40 40 0 0 1 80 0M48 20a32 32 0 0 1 64 0M56 20a24 24 0 0 1 48 0M64 20a16 16 0 0 1 32 0M72 20a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: color-mix(in srgb, var(--washi) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--sumi) 12%, transparent);
}

.header-logo img { height: 2rem; width: auto; }

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

.site-nav a {
  text-decoration: none;
  color: var(--sumi);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  position: relative;
  padding: 0.15rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -0.3rem;
  width: 0; height: 2px;
  background: var(--ai);
  transition: width 0.3s ease, left 0.3s ease;
}
.site-nav a:hover::after { width: 100%; left: 0; }
.site-nav a.is-current { color: var(--ai-deep); }
.site-nav a.is-current::after { width: 100%; left: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 50% 30%, color-mix(in srgb, #fff 55%, transparent), transparent 65%),
    var(--washi);
}

.hero-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 5vw, 4rem);
}

.hero-logo {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 3px double var(--ai);
  outline: 1px solid color-mix(in srgb, var(--ai) 35%, transparent);
  outline-offset: 6px;
  background: #fbf8f0;
}

.hero-logo img {
  width: clamp(240px, 42vw, 460px);
  height: auto;
}

.logo-wrap {
  position: relative;
  will-change: transform;
}

/* Eye overlay — positioned over the cat's eye in the logo image */
.cat-eye {
  position: absolute;
  left: 59.55%;
  top: 28.65%;
  width: 4.6%;
  height: auto;
  overflow: visible;
  transform: rotate(-6deg);
  pointer-events: none;
}

.eye-bg { fill: #fbf8f0; }

.cat-pupil { fill: var(--ai); }

.hero-side {
  writing-mode: vertical-rl;
  font-family: var(--serif-ja);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--sumi);
  user-select: none;
}
.hero-side-right { color: var(--ai-deep); }

.hero-tagline {
  margin-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-tagline .line {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-tagline .sub {
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--sumi) 65%, transparent);
}

.scroll-cue {
  margin-top: 3.5rem;
  height: 4rem;
  width: 1px;
  background: color-mix(in srgb, var(--sumi) 25%, transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--ai);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%   { top: -40%; }
  100% { top: 110%; }
}

/* ---------- Sections (shared) ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 1.5rem; }

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 7rem;
  border-left: 1px solid color-mix(in srgb, var(--ai) 45%, transparent);
  padding-left: 1.1rem;
  margin-left: 0.5rem;
}

.vertical-title {
  writing-mode: vertical-rl;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--sumi);
  white-space: nowrap;
}

.section-body { min-width: 0; }

.lead {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--ai);
  padding-left: 1.2rem;
}

.prose p { margin-bottom: 1.6rem; max-width: 46em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- World (dark) ---------- */
.section-world {
  background: var(--sumi);
  color: var(--washi);
}
.section-world .vertical-title { color: var(--washi); }
.section-world .section-title { border-left-color: color-mix(in srgb, var(--kin) 60%, transparent); }
.section-world .lead { border-left-color: var(--kin); }
.section-world .prose p { color: color-mix(in srgb, var(--washi) 92%, transparent); }

.lookbook {
  margin-top: 3.5rem;
  max-width: 34rem;
}
.lookbook img {
  border: 1px solid color-mix(in srgb, var(--washi) 30%, transparent);
  padding: 0.6rem;
}
.lookbook figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--kin);
}

/* ---------- Sub pages ---------- */
.page-main {
  min-height: calc(100svh - 22rem);
  padding-top: 4.5rem;
}

/* ---------- Stockists ---------- */
.stockist-list { list-style: none; }

.stockist-list li {
  padding: 2.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sumi) 15%, transparent);
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 2rem;
  align-items: start;
}
.stockist-list li:first-child { padding-top: 0.5rem; }

.stockist-address {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--sumi) 70%, transparent);
}

.stockist-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ai-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--ai);
  padding-bottom: 0.15rem;
  transition: color 0.3s ease;
}
.stockist-link:hover { color: var(--ai); }

.stockist-map iframe {
  width: 100%;
  height: 220px;
  border: 1px solid color-mix(in srgb, var(--sumi) 25%, transparent);
  display: block;
  filter: saturate(0.75);
}

.stockist-list h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.stockist-loc {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ai);
}

.stockist-list p { margin-top: 0.5rem; }

/* ---------- Contact ---------- */
.contact-mail { margin-top: 1.5rem; }
.contact-mail a {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.04em;
  color: var(--ai-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--ai);
  padding-bottom: 0.2rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-mail a:hover { color: var(--ai); }

/* ---------- About ---------- */
.section-about { background: var(--washi-dark); }

.about-list div {
  display: grid;
  grid-template-columns: 14em 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sumi) 15%, transparent);
}
.about-list dt {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  align-self: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--sumi);
  color: var(--washi);
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23f6f1e5' stroke-width='1'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M8 40a32 32 0 0 1 64 0M16 40a24 24 0 0 1 48 0M24 40a16 16 0 0 1 32 0M32 40a8 8 0 0 1 16 0'/%3E%3Cpath d='M-40 20a40 40 0 0 1 80 0M-32 20a32 32 0 0 1 64 0M-24 20a24 24 0 0 1 48 0M-16 20a16 16 0 0 1 32 0M-8 20a8 8 0 0 1 16 0'/%3E%3Cpath d='M40 20a40 40 0 0 1 80 0M48 20a32 32 0 0 1 64 0M56 20a24 24 0 0 1 48 0M64 20a16 16 0 0 1 32 0M72 20a8 8 0 0 1 16 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px;
  opacity: 0.05;
  pointer-events: none;
}
.footer-logo {
  height: 7.5rem;
  width: auto;
  margin: 0 auto 1.8rem;
}
.footer-line {
  font-family: var(--serif-ja);
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}
.footer-copy {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--washi) 55%, transparent);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
.sp { display: none; }

@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 0.6rem; padding: 0.8rem 1rem; }
  .site-nav { gap: 1.2rem; justify-content: center; }
  .site-nav a { font-size: 0.75rem; letter-spacing: 0.22em; }
  html { scroll-padding-top: 7.5rem; }

  .hero { padding-top: 9rem; }
  .hero-side { display: none; }

  .section-inner { grid-template-columns: 1fr; }
  .section-title {
    position: static;
    border-left: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ai) 45%, transparent);
    padding-left: 0;
    padding-bottom: 0.6rem;
    margin-left: 0;
    align-items: flex-start;
  }
  .vertical-title { writing-mode: horizontal-tb; letter-spacing: 0.3em; }

  .page-main { padding-top: 7.5rem; }
  .stockist-list li { grid-template-columns: 1fr; }
  .about-list div { grid-template-columns: 1fr; gap: 0.2rem; }
  .sp { display: inline; }
}
