/* ════════════════════════════════════════════════════════════
   MARUZEN GROUP — DESIGN SYSTEM  v1.0
   Entity: Sorae  /  Element: Wind & Air

   ARCHITECTURE:
   ─ Section 1: Shared base tokens (all 4 entities inherit these — never change)
   ─ Section 2: Entity tokens  (Sorae Wind/Air — swap this section per entity)
   ─ Section 3: Reset + Base
   ─ Section 4: Layout utilities
   ─ Section 5: Typography
   ─ Section 6: Nav
   ─ Section 7: Hero
   ─ Section 8: About / Philosophy
   ─ Section 9: Properties
   ─ Section 10: Team
   ─ Section 11: Stats
   ─ Section 12: Contact + Form
   ─ Section 13: Footer
   ─ Section 14: Reveal animations
   ─ Section 15: Responsive

   PORTING TO A NEW ENTITY:
   Copy this file, rename it, and replace Section 2 only.
   ─ Toga  (Fire):  amber/ember accent, fast sharp easing
   ─ Tsubomi (Earth): warm green/clay accent, grounded easing
   ─ Hikari  (Water): deep teal/blue accent, fluid easing
════════════════════════════════════════════════════════════ */


/* ── 1. SHARED BASE TOKENS ────────────────────────────────── */
:root {
  /* Typography */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Base palette — warm neutral, heritage quality */
  --ink:        #0E0F12;   /* near-black, slight cool */
  --paper:      #F7F4ED;   /* warm off-white, washi warmth */
  --paper-alt:  #EEEAE0;   /* slightly deeper warm white */
  --stone:      #5C5A55;   /* warm mid-grey, secondary text */
  --mist:       #9A9590;   /* faint warm grey */
  --rule:       #E2DDD5;   /* hairline borders */
  --bg-dark:    #0C0D0E;   /* near-black, dark sections */

  /* Layout */
  --max-w:   1200px;
  --pad-x:   clamp(1.25rem, 4.5vw, 4.5rem);
  --sec-pad: clamp(5rem, 10vw, 9rem);
  --nav-h:   72px;

  /* Shared easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── 2. ENTITY TOKENS — SORAE (Wind / Air) ────────────────── */
/*
  SWAP GUIDE:
  Toga  (Fire)    → --accent: #C8855A; --accent-deep: #9A5030;
  Tsubomi (Earth) → --accent: #8BAE7A; --accent-deep: #4F7A40;
  Hikari  (Water) → --accent: #6A9FB5; --accent-deep: #2D6B85;
*/
:root {
  --accent:           #9CBDD4;   /* pale sky        */
  --accent-deep:      #4E8BAA;   /* deep sky        */
  --accent-mist:      #D6EAF5;   /* pale mist       */
  --accent-text:      #3D7A97;   /* sky on paper — WCAG AA */
  --accent-dark-text: #A8CBE0;   /* sky on dark   — WCAG AA */
  --accent-glow:      rgba(156, 189, 212, 0.16);

  /* Particle palette — rgb triplets for canvas rgba() */
  --p-rgb-1: 210, 232, 248;
  --p-rgb-2: 255, 255, 255;
  --p-rgb-3: 168, 198, 220;

  /* Motion language: slow, drifting, breath-like */
  --ease-entity:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-reveal:   900ms;
  --reveal-y:     36px;
}


/* ── 3. RESET + BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--sans); cursor: pointer; }

::selection {
  background: var(--accent-deep);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}


/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: var(--sec-pad);
  padding-bottom: var(--sec-pad);
}

.section--alt  { background: var(--paper-alt); }

.section--dark {
  background: var(--bg-dark);
  color: #F9F8F6;
}


/* ── 5. TYPOGRAPHY UTILITIES ──────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--dim {
  color: rgba(255, 255, 255, 0.28);
}

.body-lg {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--stone);
  margin-bottom: 1.25rem;
}

.body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 1.1rem;
}

.section-header {
  max-width: 620px;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-h2 em {
  font-style: italic;
  color: var(--accent-text);
}


/* ── 6. NAV ───────────────────────────────────────────────── */
#mainNav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background    400ms var(--ease),
    border-color  400ms var(--ease),
    backdrop-filter 400ms var(--ease),
    -webkit-backdrop-filter 400ms var(--ease);
}

#mainNav.scrolled {
  background: rgba(247, 244, 237, 0.9);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.nav-logo-word {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  transition: color 400ms var(--ease);
}
.nav-logo-dot {
  font-size: 0.55rem;
  color: var(--accent);
  transition: color 400ms var(--ease);
  position: relative;
  top: -2px;
}

#mainNav.scrolled .nav-logo-word { color: var(--ink); }
#mainNav.scrolled .nav-logo-dot  { color: var(--accent-deep); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-link {
  font-size: 0.7125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 200ms var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: auto 0 -3px 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms var(--ease-entity);
}
.nav-link:hover { color: rgba(255, 255, 255, 0.95); }
.nav-link:hover::after { transform: scaleX(1); }

#mainNav.scrolled .nav-link       { color: var(--stone); }
#mainNav.scrolled .nav-link:hover { color: var(--ink); }

/* CTA pill */
.nav-cta {
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.5rem 1.3rem;
  transition:
    color        200ms var(--ease),
    border-color 200ms var(--ease),
    background   200ms var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.07);
}

#mainNav.scrolled .nav-cta {
  color: var(--accent-text) !important;
  border-color: var(--accent-text);
}
#mainNav.scrolled .nav-cta:hover {
  background: var(--accent-mist);
  border-color: var(--accent-deep);
  color: var(--accent-deep) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#mainNav.scrolled .toggle-bar { background: var(--ink); }

.nav-toggle.open .toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 299;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer.open { display: flex; opacity: 1; }

.drawer-link {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 200ms var(--ease);
}
.drawer-link:hover { color: var(--accent-deep); }


/* ── 7. HERO ──────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a1218; /* fallback while image loads */
}

/* Parallax background layer */
.hero-bg {
  position: absolute;
  inset: -28% 0;        /* extra vertical room for parallax travel */
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  background-color: #0a1520;
}

/* Dark atmospheric overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(6, 12, 18, 0.52) 0%,
    rgba(6, 12, 18, 0.42) 45%,
    rgba(6, 12, 18, 0.62) 100%
  );
  z-index: 1;
}

/* Animated sky-tone gradient accent */
.hero-sky-anim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    125deg,
    rgba(78, 139, 170, 0.10) 0%,
    rgba(156, 189, 212, 0.06) 50%,
    rgba(78, 139, 170, 0.10) 100%
  );
  background-size: 200% 200%;
  animation: sky-drift 12s ease-in-out infinite;
}

@keyframes sky-drift {
  0%, 100% { background-position: 0% 50%;   opacity: 0.5; }
  50%       { background-position: 100% 50%; opacity: 1;   }
}

/* Particle canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Hero text */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 225, 242, 0.7);
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: rgba(200, 225, 242, 0.45);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #fff;
}
.hero-h1 em {
  font-style: italic;
  color: #D6EAF5;
}

.hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.58);
  max-width: 560px;
  margin: 0 auto 3rem;
}

.br-lg { display: none; }
@media (min-width: 640px) { .br-lg { display: inline; } }

/* CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.725rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 1.05rem 2.6rem;
  transition:
    border-color 400ms var(--ease-entity),
    background   400ms var(--ease-entity),
    box-shadow   400ms var(--ease-entity);
  animation: cta-breathe 5s ease-in-out infinite;
}
.hero-cta:hover {
  border-color: var(--accent);
  background: rgba(156, 189, 212, 0.1);
  box-shadow: 0 0 36px rgba(156, 189, 212, 0.18);
  animation-play-state: paused;
}

.cta-arrow {
  display: inline-block;
  transition: transform 400ms var(--ease-entity);
}
.hero-cta:hover .cta-arrow { transform: translateX(5px); }

@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 0  0px rgba(156, 189, 212, 0.00); }
  50%       { box-shadow: 0 0 28px 0px rgba(156, 189, 212, 0.22); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-bar {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2.8s ease-in-out infinite;
}
.scroll-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.9);  }
  50%       { opacity: 0.7; transform: scaleY(1.08); }
}


/* ── 8. ABOUT / PHILOSOPHY ────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.about-h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.about-h2 em {
  font-style: italic;
  color: var(--accent-text);
}

.about-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
}

/* Three-pillar row */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 3rem;
}

.pillar {
  background: var(--paper);
  padding: 1.5rem 1.5rem 1.75rem;
}

.pillar-title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.pillar-body {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--stone);
}


/* ── 9. CONTACT + FORM ────────────────────────────────────── */
.section--contact {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact-h2 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #F9F8F6;
  margin-bottom: 1.5rem;
}
.contact-h2 em {
  font-style: italic;
  color: var(--accent-dark-text);
}

.contact-sub {
  font-size: 0.9375rem;
  line-height: 1.82;
  color: rgba(249, 248, 246, 0.42);
  margin-bottom: 2.75rem;
}

.contact-details { display: flex; flex-direction: column; gap: 0; }

.contact-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding: 1.1rem 0;
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child  { border-bottom: none; padding-bottom: 0; }

.contact-item-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0.3rem;
}
.contact-item-val {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(249, 248, 246, 0.72);
  transition: color 200ms var(--ease);
}
a.contact-item-val:hover { color: var(--accent-dark-text); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(249, 248, 246, 0.85);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 0.875rem 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 250ms var(--ease),
    background   250ms var(--ease);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.18); }
.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.725rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.875rem 2.25rem;
  transition:
    border-color 350ms var(--ease-entity),
    background   350ms var(--ease-entity),
    color        350ms var(--ease-entity);
}
.btn-submit:hover {
  border-color: var(--accent);
  background: rgba(156, 189, 212, 0.08);
  color: #fff;
}

.submit-loading { display: none; }

.contact-form.loading .submit-label   { display: none; }
.contact-form.loading .submit-loading { display: inline; }
.contact-form.loading .btn-submit     { opacity: 0.55; pointer-events: none; }

.form-success {
  display: none;
  font-size: 0.875rem;
  color: rgba(156, 189, 212, 0.72);
  line-height: 1.65;
  letter-spacing: 0.01em;
}
.contact-form.success .form-success { display: block; }
.contact-form.success .btn-submit   { display: none; }


/* ── 13. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: #080909;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
}
.footer-element {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(156, 189, 212, 0.3);
  margin-top: 0.2rem;
}

.footer-copy {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.16);
}

.footer-group-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 0.3rem;
}
.footer-entities {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.13);
}


/* ── 14. REVEAL ANIMATIONS ────────────────────────────────── */

/* Hero elements — fire once on load, staggered */
.reveal-hero {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   800ms var(--ease-entity),
    transform 800ms var(--ease-entity);
}
.reveal-hero:nth-child(1) { transition-delay: 200ms; }
.reveal-hero:nth-child(2) { transition-delay: 400ms; }
.reveal-hero:nth-child(3) { transition-delay: 600ms; }
.reveal-hero:nth-child(4) { transition-delay: 800ms; }
.reveal-hero.visible { opacity: 1; transform: none; }

/* Scroll-triggered — gentle drift up */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition:
    opacity   var(--dur-reveal) var(--ease-entity),
    transform var(--dur-reveal) var(--ease-entity);
}
.reveal.visible { opacity: 1; transform: none; }


/* ── 15. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .about-pillars { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}
