/* ===== Cotorara TOP — static styles ===== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Shippori+Mincho:wght@500;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #000; }
body {
  color: #fff;
  font-family: Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #fff; text-decoration: none; }
a:hover { color: #ccc; }
img { max-width: 100%; }

@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== Layout shell ===== */
.page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== Background slideshow ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}
.bg__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.bg__slide.is-active { opacity: 1; }
.bg__slide--1 { animation: kenburns 16s ease-in-out infinite alternate; }
.bg__slide--2 { animation: kenburns 16s ease-in-out infinite alternate-reverse; }
.bg__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.45) 100%);
}

/* ===== Header ===== */
.hero { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.site-header { padding: 16px 40px 8px; display: flex; align-items: center; gap: 10px; }
.logo { line-height: 1; }
.logo__sub { font-size: 10px; letter-spacing: .35em; font-family: "Shippori Mincho", serif; }
.logo__name { font-size: 24px; letter-spacing: .18em; font-family: "Shippori Mincho", serif; font-weight: 700; margin-top: 4px; }

/* ===== Hero copy ===== */
.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1svh 0 0;
  min-height: 0;
  overflow: hidden;
}
.hero__title {
  margin: 0;
  padding: 0 4vw;
  font-weight: 800;
  font-size: clamp(24px, min(6.4vw, 8.5svh), 94px);
  letter-spacing: .05em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero__title .ch { display: inline-block; white-space: pre; opacity: 0; }
.hero__rule {
  height: 1px;
  background: rgba(255,255,255,.65);
  margin: 1.6svh 0 1.4svh;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.22,.9,.3,1);
}
.hero__rule.is-on { transform: scaleX(1); }
.hero__tagline {
  padding: 0 4vw;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: clamp(10px, min(1.2vw, 2.3svh), 17px);
  line-height: 1.5;
  letter-spacing: .06em;
  color: rgba(255,255,255,.92);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero__tagline.is-on { opacity: 1; transform: translateY(0); }

/* ===== Nav bar ===== */
.hero__nav { display: flex; flex-wrap: wrap; width: min(760px, 100%); }
.navbtn {
  flex: 1 1 240px;
  background: #0a0a0a;
  color: #fff;
  padding: 14px 26px;
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  letter-spacing: .28em;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-110%);
  transition: transform .9s cubic-bezier(.22,.9,.3,1), background .35s ease;
}
.navbtn--2 { transform: translateX(-130%); transition-delay: 0s, .15s; }
.navbtn.is-on { transform: translateX(0); }
.navbtn__mark { font-size: 11px; }
.navbtn--service:hover { background: #1e5fe0; color: #fff; }
.navbtn--company:hover { background: #e9a13c; color: #fff; }

/* ===== Coming Soon cards ===== */
.cards {
  position: relative;
  z-index: 1;
  background: rgba(5,5,5,.55);
  backdrop-filter: blur(2px);
  display: flex;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .2s, transform 1s ease .2s;
}
.cards.is-on { opacity: 1; transform: translateY(0); }
.card {
  flex: 1 1 200px;
  min-height: 22svh;
  padding: 14px 22px 20px;
  border-right: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  cursor: pointer;
}
.card__title { font-family: "Shippori Mincho", serif; font-size: 17px; letter-spacing: .14em; }
.card__panel {
  flex: 1;
  background: #000;
  border: 1px solid rgba(255,255,255,.28);
  position: relative;
  overflow: hidden;
}
.card__icon {
  position: absolute;
  inset: 0 0 22% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .45s ease, transform .45s ease;
}
.card__label {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: "EB Garamond", serif;
  font-size: 21px;
  letter-spacing: .04em;
  transition: top .45s ease;
}
.card__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}
.card:hover .card__icon { opacity: 1; transform: translateY(0); }
.card:hover .card__label { top: 82%; }
.card:hover .card__bar { transform: scaleX(1); }
.card--filler { flex: 1 1 200px; min-height: 0; padding: 0; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: #000;
  padding: 16px 40px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.footer__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.footer__links { display: flex; font-family: "Shippori Mincho", serif; font-size: 15px; letter-spacing: .08em; }
.footer__links a { padding: 0 22px; }
.footer__links a:first-child { border-right: 1px solid rgba(255,255,255,.5); }
.footer__logo { line-height: 1; text-align: left; }
.footer__logo .logo__sub { font-size: 8px; letter-spacing: .32em; }
.footer__logo .logo__name { font-size: 17px; letter-spacing: .16em; margin-top: 3px; }
.copyright { font-family: "EB Garamond", serif; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.85); }

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  flex-direction: column;
  transition: opacity .9s ease, visibility .9s ease;
  pointer-events: none;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__logo { flex: 1; display: flex; align-items: center; padding-left: 8vw; }
.loader__logo .logo { opacity: .28; }
.loader__logo .logo__sub { font-size: 11px; }
.loader__logo .logo__name { font-size: 28px; margin-top: 5px; }
.loader__line { height: 1px; background: rgba(255,255,255,.5); transform: scaleX(0); transform-origin: left; }
.loader__pct { height: 38vh; padding: 22px 0 0 8vw; font-family: "EB Garamond", serif; font-size: 15px; letter-spacing: .1em; color: rgba(255,255,255,.8); }

/* ===== Sub pages ===== */
.subpage { min-height: 100svh; display: flex; flex-direction: column; }
.subpage .site-header { justify-content: space-between; padding: 22px 40px; flex-wrap: wrap; }
.subpage__back { font-family: "Shippori Mincho", serif; font-size: 13px; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; opacity: .85; }
.subpage__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 8vw; }
.subpage__eyebrow { font-family: "EB Garamond", serif; font-style: italic; font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .14em; color: rgba(255,255,255,.65); animation: fadeUp .9s ease both; }
.subpage__title { margin: 10px 0 0; font-weight: 800; font-size: clamp(44px, 9vw, 120px); letter-spacing: .05em; line-height: 1; animation: fadeUp .9s ease both; }
.subpage__rule { height: 1px; background: rgba(255,255,255,.55); margin: 34px 0; transform-origin: left; animation: lineGrow 1.2s cubic-bezier(.22,.9,.3,1) .3s both; }
.subpage__text { font-family: "Shippori Mincho", serif; font-size: clamp(15px, 1.6vw, 19px); letter-spacing: .08em; line-height: 2; color: rgba(255,255,255,.82); max-width: 720px; animation: fadeUp .9s ease .5s both; }
.subpage .site-footer { border-top: 1px solid rgba(255,255,255,.12); padding: 26px 40px 32px; }

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .site-header { padding: 18px 22px 6px; }
  .hero__title { padding: 0 22px; }
  .hero__tagline { padding: 0 22px; }
  .site-footer { padding: 20px 22px 24px; }
  .subpage__main { padding: 0 22px; }
  .subpage .site-header { padding: 18px 22px; }
}
