/* =========================================================
   Brand layer — shared by every page (body.brand)
   Palette + type tokens, pills, loader, nav, PinCard, contact form, footer.
   Homepage sections live in css/home.css; inner pages in css/pages.css.
   html.motion → GSAP + Lenis running (js/home/motion.js); html.static → no motion
   ========================================================= */
.brand {
  --green: #17402B;
  --green-d: #0F2E1F;
  --cream: #F0E6E3;
  --yellow: #F7B500;
  --red: #C8102E;
  --sage: #8FA08F;
  --ink: #123022;
  --cream-70: rgba(240, 230, 227, 0.7);
  --display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
  --pw: 200px;                       /* PinCard base width */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--green);
  color: var(--cream);
  font-family: var(--body);
  letter-spacing: 0;
  color-scheme: light;
}
@media (max-width: 767px) { .brand { --pw: 140px; --nav-h: 64px; } }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

.brand h1, .brand h2 { letter-spacing: .005em; }
.brand :focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.brand ::selection { background: rgba(247, 181, 0, 0.45); color: var(--ink); }

/* ---------- Shared bits ---------- */
.brand .pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font: 700 16px/1 var(--body); white-space: nowrap;
  transition: transform .3s var(--ease-out), background-color .2s;
}
.brand .pill:hover { background: #ffc426; transform: translateY(-2px); }
.brand .pill-icon {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  transition: transform .4s var(--ease-out);
}
.brand .pill-icon:hover { transform: rotate(-14deg) scale(1.06); }
.brand .pill-icon svg { width: 22px; height: 22px; color: var(--red); }

/* ---------- 1. Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); pointer-events: none;
  animation: loader-wipe .95s cubic-bezier(.76, 0, .24, 1) .4s forwards;
}
.loader svg { width: 64px; height: 88px; --spark: var(--red); animation: loader-mark .4s ease-out both; }
@keyframes loader-wipe { to { transform: translateY(-100%); } }
@keyframes loader-mark { from { opacity: 0; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ---------- 1. Nav ---------- */
.brand .header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: transparent; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  --text: var(--cream); --bg: var(--green-d); --line-soft: rgba(240, 230, 227, .12);
  transition: background-color .35s, box-shadow .35s,
    transform .9s cubic-bezier(.16, 1, .3, 1) .35s, opacity .6s ease .35s; /* slides in after the intro */
}
.brand .header.scrolled {
  background: rgba(15, 46, 31, .94);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(240, 230, 227, .08);
}
.brand .nav-inner {
  width: min(100% - 40px, 1400px); height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.brand .header .logo { grid-column: 2; grid-row: 1; justify-self: center; }
.brand .header .logo img { height: 34px; }
.brand .nav { grid-column: 1; grid-row: 1; margin: 0; gap: 4px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.brand .nav a { opacity: 1; color: var(--cream-70); padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.brand .nav a:hover { color: var(--cream); }
.brand .nav a.active { color: var(--ink); background: var(--cream); font-weight: 700; }
.brand .nav-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 10px; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(240, 230, 227, .25);
  color: var(--cream); font-size: 13px; font-weight: 700; transition: background-color .2s;
}
.lang-btn:hover { background: rgba(240, 230, 227, .08); }
.lang-btn svg { transition: transform .25s; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px;
  background: var(--cream); color: var(--ink); border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .3s var(--ease-out), visibility .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a, .lang-menu .is-current {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.lang-menu a:hover { background: rgba(18, 48, 34, .07); }
.lang-menu small { font-size: 11px; color: rgba(18, 48, 34, .55); }
.lang-menu .is-current span { color: var(--red); }

.contact-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 5px 0 18px;
  border-radius: 999px; background: var(--ink); color: var(--cream);
  border: 1px solid rgba(240, 230, 227, .14); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.contact-pill .arrow {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); transition: transform .35s var(--ease-out);
}
.contact-pill:hover .arrow { transform: rotate(45deg); }

@media (max-width: 1080px) { .brand .nav a { padding: 8px 10px; } .lang { display: none; } }
@media (max-width: 860px) {
  .brand .nav-inner { grid-template-columns: auto 1fr; }
  .brand .header .logo { grid-column: 1; justify-self: start; }
  .brand .nav-actions { grid-column: 2; }
  .brand .nav { font-size: 28px; gap: 4px; }
  .brand .nav a { padding: 8px 0; color: var(--cream); background: none; }
  .brand .nav a.active { color: var(--yellow); background: none; }
  .contact-pill { padding: 0 5px; }
  .contact-pill .label { display: none; }
}

/* ---------- PinCard ---------- */
.pin {
  position: relative; width: var(--pw); aspect-ratio: 9 / 16; margin: 0;
  border-radius: 24px; border: 5px solid #fff; overflow: hidden; isolation: isolate;
  background: var(--green-d);
  box-shadow: 0 30px 60px -22px rgba(4, 18, 11, .6), 0 8px 18px -8px rgba(4, 18, 11, .35);
  transform: rotate(var(--rot, 0deg));
  backface-visibility: hidden;
}
.pin > img, .pin > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin::after {
  content: ""; position: absolute; inset: auto 0 0; height: 46%; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}
.pin-meta {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: grid; gap: 1px; color: #fff; line-height: 1.1; text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.pin-handle { font-size: 11px; font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-views { display: flex; align-items: center; gap: 5px; font: 400 24px/1 var(--display); letter-spacing: .01em; }
.pin-views svg { width: 11px; height: 11px; flex: none; }

/* ---------- Contact (existing form, restyled) ---------- */
.contact-s {
  background: var(--green); color: var(--cream); padding: clamp(96px, 11vw, 150px) 0; color-scheme: dark;
  --bg: var(--green); --text: var(--cream); --text-2: var(--cream-70); --line: rgba(240, 230, 227, .2);
  --surface: var(--green-d); --input-bg: rgba(240, 230, 227, .05); --accent: var(--yellow);
  --shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); --error: #ff8a80; --success: #9fe0a8;
}
.contact-s h2 { font: 400 clamp(44px, 6vw, 96px)/.9 var(--display); text-transform: uppercase; color: var(--cream); }
.contact-s .eyebrow { color: var(--yellow); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.contact-s .btn-outline { border-color: rgba(240, 230, 227, .3); color: var(--cream); }
.contact-s .btn-outline:hover { border-color: var(--cream); }
.brand .contact-form { border-radius: 24px; border: 1px solid rgba(240, 230, 227, .08); }
.brand .contact-form .btn-primary { background: var(--yellow); color: var(--ink); font-weight: 700; }
.brand .contact-form .btn-primary:hover { background: #ffc426; }

/* ---------- 8. Footer ---------- */
.home-footer { position: relative; overflow: hidden; background: var(--cream); color: var(--ink); padding-top: clamp(72px, 9vw, 120px); }
.ft-ribbon { position: absolute; left: -8%; top: 0; width: 116%; height: 78%; color: rgba(18, 48, 34, .07); pointer-events: none; }
.ft-top { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.ft-tag { font: 400 clamp(36px, 4.4vw, 68px)/.95 var(--display); text-transform: uppercase; }
.newsletter { margin-top: 36px; max-width: 470px; }
.newsletter label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nl-field {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(18, 48, 34, .12); transition: box-shadow .2s;
}
.nl-field:focus-within { box-shadow: 0 0 0 3px rgba(247, 181, 0, .5); }
.nl-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 0 16px; font: 500 15px var(--body); color: var(--ink); }
.nl-field .pill { min-height: 44px; padding: 0 22px; font-size: 14px; }
.newsletter .form-status { margin-top: 8px; font-size: 13px; color: rgba(18, 48, 34, .7); }
.newsletter .form-status.error { color: var(--red); }
.newsletter .form-status.success { color: var(--green); }
.ft-copy { margin-top: 28px; font-size: 12px; color: rgba(18, 48, 34, .6); }
.ft-copy a { text-decoration: underline; text-underline-offset: 2px; }
.ft-copy a:hover { color: var(--ink); }
.ft-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; gap: clamp(24px, 4vw, 64px); }
.ft-cols h4 { margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(18, 48, 34, .5); }
.ft-cols a, .ft-cols span { display: block; margin: 10px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.ft-cols a:hover { color: var(--red); }
.ft-wordmark { position: relative; margin-top: clamp(48px, 7vw, 96px); padding: 0 clamp(10px, 1.5vw, 24px); }
.ft-wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.ft-wordmark text { font-family: var(--display); font-size: 230px; fill: var(--green); }
@media (max-width: 860px) {
  .ft-top { grid-template-columns: 1fr; }
  .ft-cols { justify-content: start; grid-template-columns: repeat(2, 1fr); }
}

