/* ============================================================
   Funnyeye — subpage extras: UTILITIES
   ============================================================
   Atomic / structural building blocks shared across all subpages
   (about, contact, gallery, story, tour, ...).  Loaded AFTER
   chrome.css so these rules can override chrome defaults where
   needed.

   Sister file: chrome-extras-blocks.css holds the larger content
   components (grids, form, parallax, gallery masonry).  Splitting
   keeps this file focused on primitives; content changes go in
   the blocks file.

   Load order in a subpage:
     <link rel="stylesheet" href="../_chrome/chrome.css">
     <link rel="stylesheet" href="../_chrome/chrome-extras.css">
     <link rel="stylesheet" href="../_chrome/chrome-extras-blocks.css">
     <!-- then per-page CSS last so it can override everything -->

   Tokens are inherited from chrome.css :root — no re-declaration.

   Sections covered (in order):
     1. Section corners       — decorative SVG corners on .fe-section
     2. Wrap utilities        — fe-wrap-md / fe-wrap-lg / fe-wrap-sm
     3. Typography tokens     — fe-text-lg / fe-text-muted / fe-text-soft
     4. Section tag           — small uppercase eyebrow (animates on show)
    12. Visibility utilities  — fe-desktop-hidden / fe-mobile-only
    13. Fade targets + sticky — [data-fe-anim-fade] + .fe-sticky-left
   ============================================================ */

/* ---- 1. Section corners ---------------------------------------------- */

.fe-section {
  position: relative;
  padding: var(--spacing--section-top-and-bottom)
           var(--spacing--section-left-and-right);
}
.fe-section-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.fe-section-corners img {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.65;
}
.fe-section-corner-top-left     { top: 0.5rem;    left: 0.5rem; }
.fe-section-corner-top-right    { top: 0.5rem;    right: 0.5rem; }
.fe-section-corner-bottom-left  { bottom: 0.5rem; left: 0.5rem; }
.fe-section-corner-bottom-right { bottom: 0.5rem; right: 0.5rem; }
.fe-section > * { position: relative; z-index: 1; }

/* ---- 2. Wrap utilities ---------------------------------------------- */

.fe-wrap-sm,
.fe-wrap-md,
.fe-wrap-lg {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing--section-left-and-right);
  padding-right: var(--spacing--section-left-and-right);
}
.fe-wrap-sm { max-width: 720px; }
.fe-wrap-md { max-width: var(--containers--medium); }
.fe-wrap-lg { max-width: var(--containers--large); }

/* ---- 3. Typography tokens ------------------------------------------- */

.fe-text-lg {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 500;
  color: var(--colors--white);
  margin: 0;
}
.fe-text-muted {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--colors--light-grey);
  opacity: 0.75;
}
.fe-text-soft {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--colors--light-grey);
  opacity: 0.85;
}
.fe-text-block {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--colors--white);
}

/* ---- 4. Section tag (small uppercase eyebrow) ----------------------- */

.fe-section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--colors--brand-gold-500);
  margin: 0 0 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fe-section-tag[data-fe-anim-shown="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 12. Visibility utilities --------------------------------------- */

.fe-desktop-hidden { display: none; }
.fe-mobile-only { display: none; }

@media (max-width: 767px) {
  .fe-desktop-hidden { display: block; }
  .fe-mobile-hidden { display: none !important; }
  .fe-mobile-only { display: initial; }
}

/* ---- 13. Fade targets + sticky helper ------------------------------- */

/* Markup contract: any element with [data-fe-anim-fade] starts hidden
   (opacity 0 + 12px down).  chrome.js adds [data-fe-anim-shown="true"]
   when the element scrolls into view, triggering this transition.

   If you need a one-shot fade without JS (e.g. for the hero, which is
   above the fold), add data-fe-anim-shown="true" inline. */
[data-fe-anim-fade] {
  opacity: 0;
  transform: translateY(12px);
}
[data-fe-anim-fade][data-fe-anim-shown="true"] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Sticky eyebrow pattern: heading column stays in view while the right
   column scrolls past it.  Reference uses CSS position: sticky. */
.fe-sticky-left { position: sticky; top: 8rem; align-self: start; }

@media (max-width: 767px) {
  .fe-sticky-left { position: static; }
}
