/* ============================================================
   BANA: brand identity single-page site
   Palette sampled directly from BANA_logo_clean.png
   ============================================================ */

:root {
  --gold-deep: #A67E31;
  --gold-mid: #C3913A;
  --gold-warm: #BC9240;
  --cream: #FBF9EF;
  --cream-deep: #F2ECDC;
  --ink: #1E1B16;
  --stone: #6B6255;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --header-h: 84px;
  --gutter: clamp(24px, 6vw, 96px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Large slide movement is what reduced-motion asks us to drop.
     A gentle opacity fade is still fine, and keeps the reveal from
     looking like a broken/rigid jump-cut. */
  .js .reveal {
    transform: none !important;
    transition: opacity 0.5s linear !important;
    transition-delay: var(--d, 0s) !important;
  }
  /* Same story as .reveal above: a color/blur fade isn't the kind of
     motion reduced-motion is meant to suppress, just the instant
     snap is jarring. */
  .site-header {
    transition: background-color 1.6s linear, border-color 1.6s linear, backdrop-filter 1.6s linear !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

/* ---------- eyebrow / labels ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  --reveal-opacity: 0.85;
  margin: 0 0 20px;
}
.eyebrow--dark { color: var(--gold-deep); opacity: 1; --reveal-opacity: 1; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.js .reveal {
  --reveal-opacity: 1;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: var(--reveal-opacity);
  transform: translateY(0);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background-color: rgba(251, 249, 239, 0);
  backdrop-filter: blur(0px);
  transition: background-color 1.6s var(--ease), border-color 1.6s var(--ease), backdrop-filter 1.6s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(251, 249, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(30, 27, 22, 0.08);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: flex;
  align-items: center;
  height: 100%;
}
.brand-mark img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  transition: filter 0.4s var(--ease);
}
.site-header.is-scrolled .brand-mark img {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav .nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(251,249,239,0.5);
  padding: 10px 22px;
  border-radius: 2px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled .nav-link {
  color: var(--ink);
  border-color: rgba(30,27,22,0.25);
}
.nav-link:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--cream);
}

/* Pages with no dark photo behind the header (e.g. About) need the
   header to start in its solid/opaque appearance, since transparent
   cream-on-cream text would be unreadable from the very top. */
body.no-hero .site-header {
  background-color: rgba(251, 249, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(30, 27, 22, 0.08);
}
body.no-hero .brand-mark img {
  filter: none;
}
body.no-hero .nav-link {
  color: var(--ink);
  border-color: rgba(30, 27, 22, 0.25);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #12181f 0%, #1c2534 55%, #0d1117 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* graceful placeholder state until the real hero photo is added */
.hero-media.no-image .hero-image { display: none; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(13,17,23,0.55) 0%, rgba(13,17,23,0.15) 30%, rgba(13,17,23,0.35) 65%, rgba(13,17,23,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter) 120px;
  color: var(--cream);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 16ch;
}

.hero-subline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(251,249,239,0.78);
  max-width: 46ch;
  margin: 0;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 40px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(251,249,239,0.4);
  background: rgba(251,249,239,0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.scroll-cue:hover {
  border-color: var(--gold-mid);
  background: rgba(195, 145, 58, 0.15);
}
.scroll-cue .chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--cream);
  border-bottom: 1.5px solid var(--cream);
  transform: rotate(45deg) translate(-1px, -1px);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(-1px, -1px); }
  50% { transform: rotate(45deg) translate(-1px, 4px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .chevron { animation: none; }
}

/* ============================================================
   Story
   ============================================================ */

.story {
  background: var(--cream);
  padding: 128px var(--gutter) 120px;
  border-bottom: 1px solid rgba(30,27,22,0.08);
}

.story-inner {
  max-width: 760px;
  margin: 0 auto;
}

.story-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0 0 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.story-copy {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--stone);
  margin: 0;
}

.story-more {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.95rem;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  background: var(--cream-deep);
  padding: 80px var(--gutter);
}

.contact-inner {
  max-width: 560px;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.contact-copy {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--stone);
  margin: 0 0 32px;
}

.contact-email {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(166, 126, 49, 0.4);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-email:hover {
  color: var(--ink);
  border-color: var(--gold-deep);
}

.contact-fallback {
  font-size: 0.92rem;
  color: var(--stone);
  margin: 28px 0 0;
}

/* ---- form ---- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(30,27,22,0.25);
  padding: 10px 2px 12px;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}

.field textarea { min-height: 110px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.field label {
  position: absolute;
  left: 2px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  pointer-events: none;
  transition: transform 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s var(--ease);
  transform-origin: left top;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.86);
  color: var(--gold-deep);
}

/* <select> has no :placeholder-shown, so its label stays static
   above the field instead of floating like the text inputs. */
.field--select label {
  position: static;
  display: block;
  margin-bottom: 8px;
  transition: none;
}

.field--select select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(30,27,22,0.25);
  padding: 10px 26px 12px 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s var(--ease);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--stone) 50%),
    linear-gradient(135deg, var(--stone) 50%, transparent 50%);
  background-position: calc(100% - 12px) center, calc(100% - 6px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field--select select:invalid {
  color: var(--stone);
}

.field--select select:focus {
  outline: none;
  border-color: var(--gold-deep);
}

.submit-btn {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-deep));
  border: none;
  padding: 15px 38px;
  cursor: pointer;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(166, 126, 49, 0.55);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-deep);
  min-height: 1em;
}

/* ============================================================
   About
   ============================================================ */

.about-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) var(--gutter) 100px;
}

.about-inner {
  max-width: 700px;
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 56px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.about-section {
  margin-bottom: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(30, 27, 22, 0.12);
}
.about-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.about-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.about-section p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--stone);
  margin: 0;
}

.about-cta {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 12px 0 0;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--cream);
  padding: 48px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-mark { height: 28px; width: auto; opacity: 0.9; }
.site-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .brand-mark img { height: 38px; }
  .hero-content { padding-bottom: 96px; }
  .hero-headline { max-width: 100%; }
  .scroll-cue { right: 50%; transform: translateX(50%); bottom: 28px; }
  .story { padding-top: 88px; padding-bottom: 88px; }
  .contact { padding-top: 48px; padding-bottom: 48px; }
}
