/* ══════════════════════════════════════
   OUTLINIES — styles.css
   Palette, reset, layout, components,
   animations, and responsive rules.
══════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --paper:     #f4efe4;
  --paper2:    #ece5d5;
  --ink:       #1e1b15;
  --ink-mid:   #3a3528;
  --ink-faint: rgba(30, 27, 21, 0.12);
  --terra:     #b85c38;
  --moss:      #52714a;
  --slate:     #455e70;
  --ochre:     #b8922a;
  --plum:      #6e4462;
}

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

html {
  scroll-behavior: smooth;
  /* Prevent iOS font inflation */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Keep the source-language markup covered until the shared i18n layer has
   rendered the requested locale. The timeout is a safety valve for no-JS or
   failed-resource scenarios, so the site can never remain permanently masked. */
html::before,
html::after {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms ease,
    visibility 0s linear 160ms;
}

html::before {
  content: '';
  inset: 0;
  z-index: 2147483646;
  background: var(--paper);
  pointer-events: none;
}

html::after {
  content: 'OUTLINIES';
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483647;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(30, 27, 21, 0.24);
  color: var(--ink);
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(0.82rem, 2vw, 1rem);
  letter-spacing: 0.28em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

html:not(.i18n-ready)::before,
html:not(.i18n-ready)::after {
  opacity: 1;
  visibility: visible;
  transition: none;
  animation: i18n-mask-timeout 0s 8s forwards;
}

html:not(.i18n-ready)::before {
  pointer-events: auto;
}

html:not(.i18n-ready)::after {
  animation:
    i18n-mask-breathe 1.35s ease-in-out infinite,
    i18n-mask-timeout 0s 8s forwards;
}

@keyframes i18n-mask-breathe {
  0%,
  100% { transform: translate(-50%, -50%) scaleX(0.98); }
  50% { transform: translate(-50%, -50%) scaleX(1.02); }
}

@keyframes i18n-mask-timeout {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.i18n-ready)::after {
    animation: i18n-mask-timeout 0s 8s forwards;
    transform: translate(-50%, -50%);
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
}

/* Utility — shared across all pages */
.hidden { display: none !important; }

/* Subtle paper grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: multiply;
}


/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-faint);
  /* Safe area for notched phones */
  padding: max(1.1rem, env(safe-area-inset-top))
           max(2.5rem, env(safe-area-inset-right))
           1.1rem
           max(2.5rem, env(safe-area-inset-left));
}

/* Thin public-beta signal shared by every public page. */
.beta-ribbon {
  position: fixed;
  top: var(--outlinies-nav-bottom, 68px);
  left: 0;
  right: 0;
  z-index: 189;
  height: 27px;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 27, 21, 0.16);
  background: linear-gradient(90deg, rgba(236, 229, 213, 0.98), rgba(244, 239, 228, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 3px 12px rgba(30, 27, 21, 0.06);
  pointer-events: none;
}

.beta-ribbon-wave {
  position: absolute;
  inset: 0;
  z-index: var(--wave-layer, 0);
  background: var(--wave-color);
  opacity: var(--wave-opacity, 0.12);
  mix-blend-mode: multiply;
  will-change: clip-path;
}

.beta-ribbon-wave--left {
  background-image: linear-gradient(90deg, rgba(244, 239, 228, 0.18), transparent 72%);
}

.beta-ribbon-wave--right {
  background-image: linear-gradient(270deg, rgba(244, 239, 228, 0.18), transparent 72%);
}

.beta-ribbon-track {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
}

.beta-ribbon-message {
  display: block;
  max-width: calc(100vw - 1rem);
  padding-inline-start: 0.13em;
  color: rgba(30, 27, 21, 0.88);
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.13em;
  text-align: center;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .beta-ribbon-wave {
    animation: none;
  }
}

@media (max-width: 600px) {
  .beta-ribbon { height: 25px; }
  .beta-ribbon-message {
    font-size: 0.48rem;
    line-height: 24px;
    letter-spacing: 0.1em;
  }
}

/* Contextual beta feedback */
.beta-feedback-prompt {
  position: fixed;
  left: 1.2rem;
  right: auto;
  bottom: 1.2rem;
  z-index: 420;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.1rem;
  border: 1px solid rgba(30, 27, 21, 0.22);
  border-top: 3px solid var(--terra);
  border-radius: 4px;
  background: rgba(249, 244, 234, 0.98);
  box-shadow: 0 18px 48px rgba(30, 27, 21, 0.18);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.beta-feedback-prompt.visible {
  opacity: 1;
  transform: translateY(0);
}

.beta-feedback-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  background: transparent;
  color: var(--ink-mid);
  font-size: 0.8rem;
  cursor: pointer;
}

.beta-feedback-close:hover { color: var(--terra); }

.beta-feedback-brand,
.beta-feedback-context {
  display: block;
  padding-right: 2rem;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
}

.beta-feedback-brand {
  color: var(--terra);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.beta-feedback-context {
  margin-top: 0.35rem;
  color: var(--ink-mid);
  font-size: 0.54rem;
  letter-spacing: 0.11em;
}

.beta-feedback-question {
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-family: 'IM Fell English', serif;
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.beta-feedback-form { margin-top: 0.9rem; }

.beta-feedback-sentiments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink-faint);
}

.beta-feedback-sentiments button {
  min-height: 2.2rem;
  padding: 0 0.35rem;
  border: 0;
  border-left: 1px solid var(--ink-faint);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink-mid);
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.beta-feedback-sentiments button:first-child { border-left: 0; }
.beta-feedback-sentiments button:hover { color: var(--ink); }
.beta-feedback-sentiments button.selected { background: var(--ink); color: var(--paper); }

.beta-feedback-note {
  display: block;
  margin-top: 0.8rem;
}

.beta-feedback-note > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-mid);
  font-family: 'Cinzel', serif;
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beta-feedback-note textarea {
  display: block;
  width: 100%;
  min-height: 3.7rem;
  resize: vertical;
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  font: 0.84rem/1.4 'Cormorant Garamond', serif;
}

.beta-feedback-note textarea:focus {
  outline: 1px solid var(--terra);
  border-color: var(--terra);
}

.beta-feedback-pause {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  color: var(--ink-mid);
  font-size: 0.72rem;
  cursor: pointer;
}

.beta-feedback-pause input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: var(--terra);
}

.beta-feedback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.beta-feedback-privacy {
  color: var(--ink-mid);
  font-family: 'IM Fell English', serif;
  font-size: 0.75rem;
  font-style: italic;
}

.beta-feedback-submit {
  min-width: 4.4rem;
  min-height: 2rem;
  border: 1px solid var(--terra);
  border-radius: 2px;
  background: var(--terra);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.beta-feedback-submit:disabled { opacity: 0.42; cursor: default; }

.beta-feedback-status {
  min-height: 1rem;
  margin-top: 0.5rem;
  color: var(--terra);
  font-size: 0.75rem;
  line-height: 1.3;
}

.beta-feedback-status.success { color: var(--moss); }

@media (max-width: 600px) {
  .beta-feedback-prompt {
    top: calc(var(--outlinies-nav-bottom, 74px) + 34px);
    right: 0.75rem;
    bottom: auto;
    left: 0.75rem;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-feedback-prompt { transition: none; }
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.4s;
}
.nav-links a:hover { color: var(--terra); }
.nav-links a.nav-active { color: var(--terra); }
.nav-links a.nav-profile-disabled {
  color: var(--ink-faint) !important;
  cursor: default;
  opacity: 0.62;
}
.nav-links a.nav-profile-disabled:hover { color: var(--ink-faint) !important; }

.nav-connect-wallet {
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--terra);
  background: transparent;
  color: var(--terra);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.nav-connect-wallet:hover { background: var(--terra); color: var(--paper); }
.nav-connect-wallet:disabled { cursor: wait; opacity: 0.55; }
.wallet-nav-hidden { display: none !important; }


/* ── Language Switcher ── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-mid);
  background: none;
  border: 1px solid var(--ink-faint);
  padding: 0.35em 0.75em;
  cursor: pointer;
  transition: all 0.3s;
}
.lang-btn:hover { border-color: var(--terra); color: var(--terra); }
.lang-btn.is-locked,
.lang-btn.is-locked:hover {
  border-color: var(--ink-faint);
  color: var(--ink-mid);
  cursor: not-allowed;
  opacity: 0.72;
}
.lang-btn.is-locked svg { display: none; }
.lang-lock-mark {
  padding-left: 0.45rem;
  border-left: 1px solid var(--ink-faint);
  color: var(--terra);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

@media (max-width: 1320px) and (min-width: 681px) {
  nav {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
  .nav-right { gap: 1rem; }
  .nav-links { gap: 1.15rem; }
  .nav-links a {
    font-size: 0.66rem;
    letter-spacing: 0.17em;
  }
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--ink-faint);
  min-width: 120px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(30, 27, 21, 0.1);
}
.lang-dropdown.open { display: flex; }

.lang-option {
  padding: 0.6em 1em;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--ink-mid);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  font-family: 'Cormorant Garamond', serif;
}
.lang-option:hover  { background: var(--paper2); color: var(--terra); }
.lang-option.active { color: var(--terra); font-style: italic; }


/* ── Hamburger Button ── */
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 210;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → Cross when menu is open */
.nav-mobile-btn.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-mobile-btn.open span:nth-child(2) { opacity: 0; }
.nav-mobile-btn.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }


/* ── Mobile Fullscreen Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244, 239, 228, 0.97);
  backdrop-filter: blur(12px);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--terra); }
.mobile-menu a.nav-profile-disabled {
  color: var(--ink-faint) !important;
  cursor: default;
  opacity: 0.58;
}

.mobile-connect-wallet {
  min-height: 2.8rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--terra);
  background: transparent;
  color: var(--terra);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.mobile-connect-wallet:hover { background: var(--terra); color: var(--paper); }
.mobile-connect-wallet:disabled { cursor: wait; opacity: 0.55; }

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-kicker {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: var(--terra);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: riseIn 1.6s ease 0.5s forwards;
  display: block;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(3.8rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0;
  animation: riseIn 2s cubic-bezier(.16, 1, .3, 1) 1s forwards;
  position: relative;
  text-align: center;
  display: inline-block;
}

/* Animated underline on the hero title */
.hero-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  height: 2.5px;
  width: 0;
  background: var(--terra);
  border-radius: 2px;
  animation: drawLineCentered 2s cubic-bezier(.16, 1, .3, 1) 2.6s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mid);
  margin-top: 2rem;
  line-height: 2;
  opacity: 0;
  animation: riseIn 1.5s ease 2s forwards;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 1.5s ease 2.5s forwards;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.4em 1em;
  border: 1px solid currentColor;
}
.t-terra { color: var(--terra); }
.t-moss  { color: var(--moss);  }
.t-slate { color: var(--slate); }
.t-ochre { color: var(--ochre); }

/* Scroll hint arrow */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: riseIn 1.5s ease 3.2s forwards;
}

.scroll-hint span {
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  padding-inline-start: 0.5em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-family: 'IM Fell English', serif;
  font-style: italic;
}

.scroll-arr {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--ink-mid);
  border-bottom: 1.5px solid var(--ink-mid);
  transform: rotate(45deg);
  animation: bob 3s ease-in-out infinite;
}


/* ══════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════ */
section { position: relative; }

.section-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 7rem 2.5rem;
}

/* Animated ink rule (horizontal line) */
.ink-rule {
  height: 2px;
  width: 0;
  margin-bottom: 2rem;
  border-radius: 2px;
  transition: width 1.8s cubic-bezier(.16, 1, .3, 1);
}
.ink-rule.drawn { width: 70px; }
.ir-terra { background: var(--terra); }
.ir-moss  { background: var(--moss);  }
.ir-slate { background: var(--slate); }
.ir-ochre { background: var(--ochre); }

.sec-label {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--terra);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.sec-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  color: var(--ink);
}


/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.about-text {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--ink-mid);
}
.about-text p + p { margin-top: 1.4rem; }
.about-text strong { color: var(--ink); font-weight: 600; }

.feat-list { list-style: none; margin-top: 2rem; }

.feat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ink-faint);
  font-size: 1rem;
  color: var(--ink-mid);
  font-weight: 300;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.feat-item:last-child { border-bottom: none; }
.feat-item.visible    { opacity: 1; transform: translateX(0); }

.feat-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Decorative corner-bracket card */
.ink-card {
  background: var(--paper2);
  padding: 2.5rem;
  position: relative;
}
.ink-card::before,
.ink-card::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--terra);
  border-style: solid;
}
.ink-card::before { top: 0;    left: 0;  border-width: 2px 0 0 2px; }
.ink-card::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.card-list { list-style: none; }

.card-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink-faint);
  font-size: 1rem;
  color: var(--ink-mid);
  font-weight: 300;
}
.card-item:last-child { border-bottom: none; }

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Inline SVG botanical illustration */
.botanical-wrap {
  margin-top: 2rem;
  opacity: 0.82;
}


/* ══════════════════════════════════════
   CYCLE
══════════════════════════════════════ */
#cycle { background: var(--paper2); }

.cycle-rows { margin-top: 2.5rem; }

.cycle-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--ink-faint);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
.cycle-row:last-child { border-bottom: none; }
.cycle-row.visible    { opacity: 1; transform: translateY(0); }

.cycle-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.2rem;
  gap: 0.5rem;
}

.cycle-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cc1 { color: var(--terra); }
.cc2 { color: var(--moss);  }
.cc3 { color: var(--slate); }

.cycle-vline {
  width: 1px;
  flex: 1;
  background: var(--ink-faint);
}

.cycle-week {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--terra);
  display: block;
  margin-bottom: 0.4rem;
}

.cycle-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.cycle-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 2;
  margin-bottom: 1rem;
}

.cycle-pts { list-style: none; }

.cycle-pt {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-mid);
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}
.cycle-pt strong {
  color: var(--ink);
  font-weight: 600;
}

/* Mint window highlight badge */
.mint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.7rem 1rem;
  border-left: 3px solid currentColor;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  background: rgba(30, 27, 21, 0.04);
}
.mint-badge.public  { color: var(--moss);  border-color: var(--moss);  }
.mint-badge.holders { color: var(--slate); border-color: var(--slate); }
.mint-badge strong  { font-weight: 600; display: block; margin-bottom: 0.15rem; }

/* Reward badges row */
.reward-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.r-badge {
  flex: 1;
  padding: 0.85rem 0.5rem;
  text-align: center;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.r-badge span { display: block; font-size: 1.3rem; margin-bottom: 0.3rem; }
.r-gold   { color: #a87a10; }
.r-silver { color: #607080; }
.r-bronze { color: #7a4f38; }


/* ══════════════════════════════════════
   ROADMAP
══════════════════════════════════════ */
#roadmap { background: var(--paper); }

.road-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem;
}

.road-phase {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--ink-faint);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.road-phase:first-child { border-left: none; }
.road-phase.visible     { opacity: 1; transform: translateY(0); }

/* Animated top border per phase */
.road-phase::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2.5px;
  transition: width 1.6s cubic-bezier(.16, 1, .3, 1) 0.4s;
}
.road-phase.visible::before { width: 100%; }
.rp1::before { background: var(--terra); }
.rp2::before { background: var(--moss);  }
.rp3::before { background: var(--slate); }
.rp4::before { background: var(--ochre); }

.road-label {
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.8rem;
}
.rp1 .road-label { color: var(--terra); }
.rp2 .road-label { color: var(--moss);  }
.rp3 .road-label { color: var(--slate); }
.rp4 .road-label { color: var(--ochre); }

.road-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.road-body {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.85;
}

.road-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-top: 1rem;
  border: 1px solid rgba(184, 146, 42, 0.4);
  padding: 0.25em 0.6em;
}


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--ink);
  /* Safe area for notched phones */
  padding: 3rem 2.5rem max(3rem, env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-pip {
  width: 6px;
  height: 6px;
  background: var(--terra);
  border-radius: 50%;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.footer-link-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link-group--legal {
  padding-left: 1.4rem;
  border-left: 1px solid rgba(244, 239, 228, 0.14);
  gap: 1.15rem;
}

.footer-link-group--legal:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-community-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.footer-community-item .footer-link {
  min-height: auto;
}

.footer-soon {
  font-family: 'IM Fell English', serif;
  font-size: 0.5rem;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: none;
  color: rgba(244, 239, 228, 0.28);
}

.footer-link {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.42);
  text-decoration: none;
  transition: color 0.4s;
}
.footer-link:hover { color: var(--terra); }

.footer-copy {
  width: 100%;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: rgba(244, 239, 228, 0.22);
  margin-top: 0.5rem;
}


/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drawLineCentered {
  from { width: 0;   left: 50%; transform: translateX(-50%); }
  to   { width: 80%; left: 50%; transform: translateX(-50%); }
}

@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0);     opacity: 0.6; }
  50%       { transform: rotate(45deg) translate(3px, 3px); opacity: 1;   }
}


/* ══════════════════════════════════════
   TOUCH & POINTER ENHANCEMENTS
══════════════════════════════════════ */

/* Disable hover-only states on touch devices */
@media (hover: none) {
  .feat-item            { opacity: 1; transform: translateX(0); }
  .nav-links a:hover    { color: var(--ink-mid); }
}

/* Minimum touch target sizes */
.lang-btn, .nav-mobile-btn, .mobile-close,
.lang-option, .mobile-menu a,
.footer-link { min-height: 44px; min-width: 44px; }

.lang-option { display: flex; align-items: center; }
.footer-link { display: inline-flex; align-items: center; }


/* ══════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
══════════════════════════════════════ */
@media (max-width: 900px) {
  nav          { padding: 1rem 1.5rem; }
  .nav-links   { gap: 1.2rem; }
  .nav-links a { font-size: 0.7rem; }

  .section-inner { padding: 5rem 2rem; }

  .about-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .botanical-wrap  { max-width: 320px; }

  .cycle-row { grid-template-columns: 52px 1fr; gap: 0 1.8rem; }

  .road-grid  { grid-template-columns: repeat(2, 1fr); }
  .road-phase { padding: 1.6rem 1.2rem; }

}


/* ══════════════════════════════════════
   RESPONSIVE — Small Tablet / Large Phone (≤ 680px)
══════════════════════════════════════ */
@media (max-width: 680px) {
  /* Show hamburger, hide text links */
  .nav-links     { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-connect-wallet { display: none; }
  nav            { padding: 0.9rem 1.2rem; }

  #hero { min-height: 100svh; }
  .hero-content { padding: 1.5rem 1.2rem; max-width: 100%; }
  .hero-tags    { gap: 0.6rem; }
  .tag          { font-size: 0.62rem; padding: 0.35em 0.8em; }

  .section-inner { padding: 4rem 1.5rem; }
  .sec-title     { font-size: clamp(1.5rem, 6vw, 2.4rem); }

  .about-text { font-size: 1.05rem; }
  .feat-item  { font-size: 0.95rem; }
  .ink-card   { padding: 1.8rem; }

  .cycle-row    { grid-template-columns: 44px 1fr; gap: 0 1.2rem; padding: 2rem 0; }
  .cycle-circle { width: 38px; height: 38px; font-size: 0.88rem; }
  .cycle-title  { font-size: 1.15rem; }
  .cycle-desc   { font-size: 0.98rem; }

  .reward-row { gap: 0.5rem; }
  .r-badge    { padding: 0.7rem 0.3rem; font-size: 0.62rem; }
  .r-badge span { font-size: 1.1rem; }

  .mint-badge { font-size: 0.88rem; padding: 0.6rem 0.8rem; }

  .road-grid  { grid-template-columns: 1fr; }
  .road-phase { padding: 1.4rem 1rem; border-left: none; border-top: 1px solid var(--ink-faint); }
  .road-phase:first-child { border-top: none; }
  .road-phase::before     { display: none; }


  footer         { padding: 2rem 1.5rem; }
  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .footer-brand  { font-size: 1.2rem; }
  .footer-links  { width: 100%; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .footer-link-group { gap: 1.2rem; }
  .footer-link-group--legal {
    width: 100%;
    padding-top: 0.9rem;
    padding-left: 0;
    border-top: 1px solid rgba(244, 239, 228, 0.12);
    border-left: 0;
    gap: 1rem;
  }
  .footer-link-group--legal:first-child {
    padding-top: 0;
    border-top: 0;
  }
}


/* ══════════════════════════════════════
   RESPONSIVE — Mobile (≤ 480px)
══════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-content { padding: 1rem; }
  .hero-kicker  { font-size: 0.82rem; margin-bottom: 0.8rem; }
  .hero-sub     { font-size: 0.95rem; margin-top: 1.5rem; line-height: 1.8; }
  .hero-tags    { margin-top: 1.4rem; }
  .scroll-hint  { bottom: 1.8rem; }

  .section-inner { padding: 3.5rem 1.2rem; }

  .feat-item  { padding: 0.75rem 0; }
  .ink-card   { padding: 1.4rem; }
  .card-item  { font-size: 0.92rem; }

  .cycle-row    { grid-template-columns: 36px 1fr; gap: 0 1rem; padding: 1.6rem 0; }
  .cycle-circle { width: 32px; height: 32px; font-size: 0.8rem; }
  .cycle-title  { font-size: 1.05rem; }
  .cycle-pts    { margin-top: 0.5rem; }
  .cycle-pt     { font-size: 0.88rem; }
  .mint-badge   { font-size: 0.84rem; padding: 0.55rem 0.7rem; margin-top: 0.7rem; }

  .reward-row { flex-direction: row; }
  .r-badge    { padding: 0.6rem 0.2rem; font-size: 0.58rem; }

  .road-title { font-size: 0.9rem; }
  .road-body  { font-size: 0.85rem; }
  .road-lock  { font-size: 0.58rem; }


  .footer-brand { font-size: 1.1rem; }
  .footer-link  { font-size: 0.65rem; }
  .footer-copy  { font-size: 0.6rem; }
}

/* ── Hero CTA buttons ── */
.hero-ctas { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:2.2rem; }
.btn-hero-primary { display:inline-block; padding:.75rem 2rem; background:var(--terra); color:#fff; font-family:'Cinzel',serif; font-size:.82rem; letter-spacing:.12em; border-radius:3px; text-decoration:none; transition:opacity .2s; }
.btn-hero-primary:hover { opacity:.85; }
.btn-hero-secondary { display:inline-block; padding:.75rem 2rem; border:1.5px solid var(--ink); color:var(--ink); font-family:'Cinzel',serif; font-size:.82rem; letter-spacing:.12em; border-radius:3px; text-decoration:none; transition:opacity .2s; }
.btn-hero-secondary:hover { opacity:.7; }

/* ── Tool Preview Section ── */
#tool-preview { background:var(--paper); padding:6rem 0; }
.tool-section-desc { font-size:1.05rem; color:var(--ink-mid); max-width:560px; margin:.8rem 0 2.5rem; line-height:1.8; }
.tool-preview-grid { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
@media(max-width:700px){ .tool-preview-grid{ grid-template-columns:1fr; } }
.tool-feature-list { display:flex; flex-direction:column; gap:1rem; }
.tool-feature { display:flex; align-items:center; gap:.75rem; font-size:.95rem; color:var(--ink-mid); }
.btn-open-tool { display:inline-block; margin-top:1.5rem; padding:.75rem 2rem; background:var(--ink); color:var(--paper); font-family:'Cinzel',serif; font-size:.82rem; letter-spacing:.12em; border-radius:3px; text-decoration:none; transition:opacity .2s; width:fit-content; }
.btn-open-tool:hover { opacity:.8; }
.tool-card-mockup { width:180px; height:240px; border-radius:8px; overflow:hidden; box-shadow:0 8px 32px rgba(30,27,21,.18); margin:0 auto; }
.tool-card-front { width:100%; height:100%; }
.tool-card-art-placeholder { width:100%; height:100%; }


/* ══ NAV PROFILE PILL — shared across all pages ══ */
.nav-profile { position: relative; }

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-mid);
  background: none;
  border: 1px solid var(--ink-faint);
  padding: 0.32em 0.72em 0.32em 0.45em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.profile-btn:hover { border-color: var(--terra); color: var(--terra); }

.profile-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(244,239,228,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ink-faint);
  min-width: 150px;
  z-index: 300;
  box-shadow: 0 6px 24px rgba(30,27,21,0.10);
}
.profile-dropdown.open { display: block; }

.profile-dd-item {
  display: block;
  width: 100%;
  padding: 0.7rem 1.1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.profile-dd-item:hover { color: var(--terra); background: rgba(184,92,56,0.04); }
.profile-dd-item + .profile-dd-item { border-top: 1px solid var(--ink-faint); }
.profile-dd-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--terra);
}
.profile-dd-legal.hidden { display: none; }
.profile-dd-legal-alert {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #c9452c;
  box-shadow: 0 0 0 3px rgba(201,69,44,0.13);
}
.profile-dd-disconnect { color: rgba(184,92,56,0.7); }
.tool-preview-card-wrap { display:flex; justify-content:center; }


/* ======================================
   PROFILE DROPDOWN HEADER (Task 6)
====================================== */
.profile-dd-header {
  padding: 0.9rem 1.1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.profile-dd-username {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.profile-dd-address {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--ink-mid);
}
.profile-dd-nfts {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.1rem;
}
.profile-dd-divider {
  height: 1px;
  background: var(--ink-faint);
  margin: 0 0.8rem 0.3rem;
}
