/* =========================================================
   Traviary Official Site
   Palette: cream paper + sage green + warm ember accent
   Fonts: Zen Maru Gothic (display) / Zen Kaku Gothic New (body)
   ========================================================= */

:root {
  --paper:      #F3EBDB;
  --paper-soft: #EFE6D2;
  --paper-deep: #E7DBC3;
  --white:      #FCF8EF;

  --ink:   #2B322E;
  --ink-2: #4C554D;
  --ink-3: #6E766C;

  --sage:      #6F7D68;
  --sage-deep: #515C4B;
  --sage-soft: #93A187;

  --sand:  #C6AF87;
  --ember: #CB7A3F;
  --ember-soft: #DE9A63;

  --line: rgba(43, 50, 46, 0.12);
  --line-strong: rgba(43, 50, 46, 0.22);

  --shadow-soft: 0 18px 40px -24px rgba(43, 50, 46, 0.45);
  --radius: 18px;

  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-display: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  /* layered, non-flat background */
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(222, 154, 99, 0.16), transparent 60%),
    radial-gradient(900px 560px at 4% 8%, rgba(147, 161, 135, 0.20), transparent 58%),
    linear-gradient(180deg, #F5EEDF 0%, #F1E8D6 42%, #ECE2CD 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- shared type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.eyebrow.light { color: rgba(252, 248, 239, 0.82); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(245, 238, 223, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px -22px rgba(43, 50, 46, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px -12px rgba(43, 50, 46, 0.6);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav > a:hover { color: var(--ink); }
.nav > a:hover::after { transform: scaleX(1); }

.nav-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sage-deep);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: default;
  opacity: 0.72;
}
.nav-store .soon {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--sage-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(252, 248, 239, 0.7);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  background: rgba(245, 238, 223, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a, .mobile-nav .mobile-store {
  padding: 14px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.mobile-nav .mobile-store { color: var(--ink-3); border-bottom: none; }

/* =========================================================
   Hero — full-bleed single composition
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo {
  position: absolute;
  inset: -4%;
  background: url("assets/hero.jpg") center 42% / cover no-repeat;
  transform: scale(1.06);
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(243, 235, 219, 0.96) 0%, rgba(243, 235, 219, 0.82) 34%, rgba(243, 235, 219, 0.30) 60%, rgba(243, 235, 219, 0.04) 82%),
    linear-gradient(180deg, rgba(243, 235, 219, 0.35) 0%, transparent 24%, transparent 62%, rgba(70, 62, 48, 0.20) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 64px;
  max-width: 760px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.hero-mark {
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(43, 50, 46, 0.14);
  box-shadow: var(--shadow-soft);
}
.hero-mark img { width: 100%; height: 100%; object-fit: cover; }
.hero-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.03em;
  color: var(--ink);
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--ink);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--ink-2);
  max-width: 30em;
  margin-bottom: 38px;
}

/* ---------- buttons ---------- */
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 16px 30px -16px rgba(81, 92, 75, 0.85);
}
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn-primary[aria-disabled="true"] {
  background: rgba(111, 125, 104, 0.28);
  color: var(--sage-deep);
  box-shadow: none;
  cursor: default;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
  padding: 12px 26px;
}
.btn-primary[aria-disabled="true"]:hover { transform: none; }
.btn-primary[aria-disabled="true"] .btn-note {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
  opacity: 0.85;
}
.btn-ghost {
  background: rgba(252, 248, 239, 0.72);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); }
.btn-line {
  background: transparent;
  color: var(--white);
  border-color: rgba(252, 248, 239, 0.6);
}
.btn-line:hover { background: rgba(252, 248, 239, 0.14); transform: translateY(-2px); }

/* =========================================================
   Value
   ========================================================= */
.value { padding: clamp(72px, 12vw, 128px) 0; }
.value-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.value-copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 22px; }
.value-copy .lead { color: var(--ink-2); font-size: 1.05rem; }
.value-visual { position: relative; }
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.rec-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
  background: rgba(43, 50, 46, 0.62);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
}
.rec-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(203, 122, 63, 0.55);
  animation: recpulse 2s ease-out infinite;
}
@keyframes recpulse {
  0%   { box-shadow: 0 0 0 0 rgba(203, 122, 63, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(203, 122, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 122, 63, 0); }
}

/* =========================================================
   Features
   ========================================================= */
.features {
  padding: clamp(72px, 12vw, 128px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 400px at 88% 0%, rgba(147, 161, 135, 0.18), transparent 62%);
}
.feature-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: rgba(252, 248, 239, 0.7);
  padding: clamp(28px, 4vw, 44px);
  transition: background 0.3s var(--ease);
}
.feature:hover { background: var(--white); }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  color: var(--sage);
  background: rgba(111, 125, 104, 0.12);
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 0.98rem; }

/* =========================================================
   How to — step flow with route line
   ========================================================= */
.how { padding: clamp(72px, 12vw, 128px) 0; }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sage-soft) 0 10px, transparent 10px 20px);
  opacity: 0.6;
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--sage);
  margin-bottom: 20px;
  box-shadow: 0 12px 22px -14px rgba(81, 92, 75, 0.9);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.95rem; }

/* =========================================================
   Assurance (privacy)
   ========================================================= */
.assure {
  position: relative;
  padding: clamp(84px, 14vw, 150px) 0;
  overflow: hidden;
  color: var(--white);
}
.assure-media {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/scene-coast.jpg") center 60% / cover no-repeat;
}
.assure-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 50, 46, 0.62), rgba(43, 50, 46, 0.78));
}
.assure-inner { position: relative; z-index: 1; max-width: 720px; }
.assure-inner h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); margin-bottom: 20px; color: var(--white); }
.assure-sub { color: rgba(252, 248, 239, 0.86); font-size: 1.05rem; margin-bottom: 34px; }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding: clamp(72px, 12vw, 120px) 0; }
.contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-inner h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin-bottom: 16px; }
.contact-inner p { color: var(--ink-2); margin-bottom: 30px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(231, 219, 195, 0.5);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.footer-mark img { width: 100%; height: 100%; object-fit: cover; }
.footer-word { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: var(--ink-2); font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { text-align: right; color: var(--ink-3); }
.footer-domain {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--sage-deep);
  letter-spacing: 0.04em;
}
.footer-meta small { font-size: 0.82rem; }

/* =========================================================
   Reveal on scroll (motion 2)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.feature.reveal:nth-child(2) { transition-delay: 0.08s; }
.feature.reveal:nth-child(3) { transition-delay: 0.16s; }
.feature.reveal:nth-child(4) { transition-delay: 0.24s; }
.step.reveal:nth-child(2) { transition-delay: 0.1s; }
.step.reveal:nth-child(3) { transition-delay: 0.2s; }
.step.reveal:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .mobile-nav { display: flex; }
  .site-header.menu-open { background: rgba(245, 238, 223, 0.96); }

  .value-grid { grid-template-columns: 1fr; }
  .value-visual { order: -1; }
  .feature-list { grid-template-columns: 1fr; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
  .steps::before { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero-content { padding-top: 104px; }
  .hero-brand { gap: 13px; margin-bottom: 24px; }
  .hero-mark { width: 62px; height: 62px; border-radius: 17px; }
  .hero-word { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero-title { font-size: clamp(1.7rem, 8.4vw, 2.3rem); }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(243, 235, 219, 0.55) 0%, rgba(243, 235, 219, 0.86) 40%, rgba(243, 235, 219, 0.96) 100%);
  }
  .cta-group { width: 100%; }
  .cta-group .btn { flex: 1 1 auto; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
  .rec-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
