/* ==========================================================================
   Rivil International: site-wide polish layer
   Loaded last on every page (after mobile.css / destination-theme.css).
   Refines typography, applies the Fern & Silver interaction palette, and
   cleans up the fixed navbar. There are no layout
   or structural changes; presentation only.
   ========================================================================== */

:root {
  --rivil-black: #0B0B0B;
  --rivil-fern-deep: #27500A;
  --rivil-fern: #639922;
  --rivil-fern-bright: #97C459;
  --rivil-silver: #C7CCC9;
  --rivil-offwhite: #F5F5F2;
}

/* ---------- Typography polish ---------- */
/* Premium text rendering: proper kerning, ligatures and tabular feel for
   the shared Hanken Grotesk / JetBrains Mono pairing. */

body {
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------- Homepage destination cards ---------- */
/* Rendered by renderDestinationCards() into #destination-cards-home.
   Portrait 4:5 photo cards: quiet at rest (photo + count pill + country
   name only), tagline/CTA reveal on hover. Scoped entirely under
   #destination-cards-home so no other card renderer is affected. */

#destination-cards-home .dest-home-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#destination-cards-home .dest-home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

#destination-cards-home .dest-home-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s ease-out;
}

#destination-cards-home .dest-home-card:hover .dest-home-card-img {
  transform: scale(1.06);
}

#destination-cards-home .dest-home-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 10, 8, 0.92) 0%,
    rgba(6, 10, 8, 0.72) 28%,
    rgba(6, 10, 8, 0.18) 58%,
    rgba(6, 10, 8, 0.05) 100%
  );
  transition: background 0.4s ease;
}

#destination-cards-home .dest-home-card:hover .dest-home-card-scrim {
  background: linear-gradient(
    to top,
    rgba(6, 10, 8, 1) 0%,
    rgba(6, 10, 8, 0.8) 28%,
    rgba(6, 10, 8, 0.26) 58%,
    rgba(6, 10, 8, 0.13) 100%
  );
}

#destination-cards-home .dest-home-card-count {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 6px 12px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

#destination-cards-home .dest-home-card-body {
  position: absolute;
  inset: 0 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px;
}

#destination-cards-home .dest-home-card-name {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#destination-cards-home .dest-home-card:hover .dest-home-card-name {
  transform: translateY(-4px);
}

#destination-cards-home .dest-home-card-tagline {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 90%;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#destination-cards-home .dest-home-card:hover .dest-home-card-tagline {
  opacity: 1;
  transform: translateY(0);
}

#destination-cards-home .dest-home-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rivil-fern);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

#destination-cards-home .dest-home-card:hover .dest-home-card-cta {
  opacity: 1;
  transform: translateY(0);
}

#destination-cards-home .dest-home-card-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

#destination-cards-home .dest-home-card:hover .dest-home-card-arrow {
  transform: translateX(4px);
}

/* No hover on touch devices: tagline and CTA must stay visible. */
@media (max-width: 768px) {
  #destination-cards-home .dest-home-card-tagline,
  #destination-cards-home .dest-home-card-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #destination-cards-home .dest-home-card,
  #destination-cards-home .dest-home-card-img,
  #destination-cards-home .dest-home-card-scrim,
  #destination-cards-home .dest-home-card-name,
  #destination-cards-home .dest-home-card-tagline,
  #destination-cards-home .dest-home-card-cta,
  #destination-cards-home .dest-home-card-arrow {
    transition: none;
  }

  #destination-cards-home .dest-home-card-tagline,
  #destination-cards-home .dest-home-card-cta {
    opacity: 1;
    transform: translateY(0);
  }

  #destination-cards-home .dest-home-card:hover {
    transform: none;
  }

  #destination-cards-home .dest-home-card:hover .dest-home-card-img {
    transform: none;
  }
}

/* Homepage stat strip and service-excellence markers. */
.home-stat-value,
.home-stat-label,
.service-excellence-mark {
  color: #ffffff !important;
  font-family: "Hanken Grotesk", sans-serif;
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.home-stat-value {
  font-weight: 800;
  letter-spacing: 0;
}

.home-stat-label,
.service-excellence-mark {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.phero-eyebrow.service-excellence-mark {
  color: #ffffff;
  font: 700 11px/1.2 "Hanken Grotesk", sans-serif;
  letter-spacing: 0.14em;
}

.home-stat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--rivil-black);
}

/* Extend decorative separators to the full visual frame. */
.maori-separator img {
  width: 100%;
  min-width: 118vw;
  max-width: none;
  object-fit: cover;
}

/* ---------- Fern CTA buttons (site-wide) ---------- */
/* Interactive fills use the brightest fern; general accents continue to use
   the quieter primary token. Dark text keeps both default and hover states AA. */

a.bg-primary-bright,
button.bg-primary-bright {
  border: 1px solid var(--rivil-fern-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
              0 12px 28px -14px rgba(151, 196, 89, 0.48);
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

a.bg-primary-bright:hover,
button.bg-primary-bright:hover {
  border-color: var(--rivil-fern);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 16px 34px -14px rgba(99, 153, 34, 0.62);
  filter: none;
}

/* ---------- Navbar refinement ---------- */
/* More compact and readable: tighter link rhythm, consistent 14px size,
   no wrapping or crowding against the logo / CTA. */

#site-nav {
  -webkit-backdrop-filter: blur(20px);
}

#site-nav a,
#site-nav button {
  white-space: nowrap;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 1280px) {
  .nav-link { padding: 10px 14px; }
}

.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Micro-interactions ---------- */
/* Gentle, consistent motion for every button-styled link on the site. */

@media (prefers-reduced-motion: no-preference) {
  a.bg-primary-bright,
  button.bg-primary-bright {
    will-change: transform;
  }

  a.bg-primary-bright:hover,
  button.bg-primary-bright:hover {
    transform: translateY(-1px);
  }

  a.bg-primary-bright:active,
  button.bg-primary-bright:active {
    transform: translateY(0);
  }

  /* The event tab is vertically centered via translateY(-50%); the generic
     lift above would overwrite that and make it jump on hover/active. */
  #side-alert-tab:hover,
  #side-alert-tab:active {
    transform: translateY(-50%);
  }
}

/* ---------- Focus visibility ---------- */
/* Keyboard users get a clear, on-brand focus ring everywhere. */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rivil-fern-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==========================================================================
   Editorial visual system
   ========================================================================== */

:root {
  --editorial-gold: #d8b56f;
  --editorial-gold-soft: rgba(216, 181, 111, 0.18);
  --editorial-ivory: #f6f1e8;
  --editorial-ink: #070909;
}

/* ---------- Home hero ---------- */

.home-premium-hero {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  overflow: hidden;
  padding: 150px max(20px, calc((100vw - 1200px) / 2)) 42px;
  background:
    radial-gradient(circle at 78% 18%, rgba(99, 153, 34, 0.15), transparent 30%),
    radial-gradient(circle at 15% 75%, rgba(216, 181, 111, 0.1), transparent 28%),
    linear-gradient(145deg, #080b0c 0%, #0b1010 54%, #11130f 100%);
}

.home-premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.home-hero-aurora {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -140px;
  top: 80px;
  border: 1px solid rgba(216, 181, 111, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(216,181,111,.025), 0 0 0 160px rgba(99,153,34,.025);
  pointer-events: none;
}

.home-hero-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.home-hero-copy { position: relative; z-index: 2; }

.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(246, 241, 232, 0.7);
  font: 600 11px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--editorial-gold);
  box-shadow: 0 0 0 6px rgba(216,181,111,.12);
}

.home-hero-copy h1 {
  max-width: 720px;
  margin-top: 26px;
  color: #fff;
  font: 700 clamp(48px, 5.2vw, 78px)/.98 "Hanken Grotesk", sans-serif;
  letter-spacing: -0.055em;
}

.home-hero-copy h1 span {
  display: block;
  margin-top: 8px;
  color: var(--editorial-ivory);
  background: linear-gradient(110deg, #fff 10%, #d9c18f 54%, #b3c98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-copy > p {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(235, 235, 229, 0.7);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.home-hero-primary,
.home-hero-secondary {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 25px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.home-hero-primary {
  color: #171208;
  border: 1px solid rgba(255, 230, 174, .62);
  background: linear-gradient(135deg, #edcf8f, #c99d4d);
  box-shadow: 0 20px 48px -22px rgba(216,181,111,.9), inset 0 1px rgba(255,255,255,.5);
}

.home-hero-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}

.home-hero-primary:hover,
.home-hero-secondary:hover { transform: translateY(-2px); }
.home-hero-secondary:hover { border-color: rgba(216,181,111,.42); background: rgba(255,255,255,.09); }

.home-hero-visual { position: relative; min-height: 540px; }

.home-hero-image-wrap {
  position: absolute;
  inset: 20px 18px 30px 12px;
  overflow: hidden;
  border-radius: 190px 190px 28px 28px;
  border: 1px solid rgba(255,255,255,.16);
  background: #161a18;
  box-shadow: 0 40px 90px -36px rgba(0,0,0,.95), 0 0 0 10px rgba(255,255,255,.025);
}

.home-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(.78) contrast(1.04);
}

.home-hero-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,7,.9), transparent 55%), linear-gradient(120deg, rgba(216,181,111,.1), transparent 40%);
}

.home-hero-image-caption {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: white;
}

.home-hero-image-caption span {
  color: var(--editorial-gold);
  font: 600 10px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-hero-image-caption strong { font-size: 19px; }

.home-hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: white;
  background: rgba(13,17,15,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px -25px #000;
}

.home-hero-float .material-symbols-outlined { color: var(--editorial-gold); }
.home-hero-float strong, .home-hero-float small { display: block; }
.home-hero-float strong { font-size: 13px; }
.home-hero-float small { margin-top: 2px; color: rgba(255,255,255,.55); font-size: 10px; }
.home-hero-float-top { right: -18px; top: 90px; }
.home-hero-float-bottom { left: -24px; bottom: 75px; }

.home-hero-stats {
  width: min(1200px, 100%);
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(16px);
}

.home-hero-stats > div {
  padding: 20px 26px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.home-hero-stats > div:last-child { border-right: 0; }
.home-hero-stats strong { display: block; color: var(--editorial-ivory); font-size: 25px; }
.home-hero-stats span { display: block; margin-top: 3px; color: rgba(255,255,255,.45); font: 600 10px/1.4 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Shared editorial heroes ---------- */

.editorial-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 500px !important;
  height: min(64vh, 680px) !important;
  overflow: hidden;
  padding: 120px max(20px, calc((100vw - 1200px) / 2)) 76px !important;
  border-bottom: 1px solid rgba(216,181,111,.15);
}

.editorial-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.16) 50%, transparent 50.2%);
  background-size: 25% 100%;
}

.editorial-hero > .absolute { z-index: 0; }
.editorial-hero > .absolute img { filter: saturate(.78) contrast(1.04); }
.editorial-hero > .relative { z-index: 2; }

.editorial-hero span[class*="tracking"] {
  color: var(--editorial-gold) !important;
}

.editorial-hero h1 {
  max-width: 920px;
  letter-spacing: -.045em;
  text-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.editorial-hero p { color: rgba(246,241,232,.72) !important; }

/* ---------- Photo-led cards and infographics ---------- */

.site-service-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: 0 28px 60px -42px #000;
  transition: transform .35s ease, border-color .35s ease;
}

.site-service-card:hover { transform: translateY(-6px); border-color: rgba(216,181,111,.34); }
.site-service-card-image { position: relative; height: 190px; overflow: hidden; }
.site-service-card-image::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(8,10,9,.76), transparent 60%); }
.site-service-card-image img { width:100%; height:100%; object-fit:cover; filter:saturate(.75); transition:transform .65s ease; }
.site-service-card:hover img { transform:scale(1.045); }
.site-service-number { position:absolute; z-index:1; right:18px; bottom:14px; color:var(--editorial-gold); font:600 11px/1 "JetBrains Mono",monospace; letter-spacing:.15em; }
.site-service-card-body { padding: 26px 28px 30px; }
.site-service-card-body h3 { margin-top: 19px; }
.site-service-card-body p { margin-top: 10px; line-height: 1.65; }

.editorial-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 32px 80px -46px #000;
}

.editorial-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(216,181,111,.1), transparent 42%);
}

.editorial-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About page: origin story and connected impact rail ---------- */

.about-story-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about-story-section::before {
  position: absolute;
  z-index: -1;
  top: 5%;
  left: 50%;
  width: min(920px, 82vw);
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 153, 34, .09), transparent 68%);
  content: "";
  filter: blur(18px);
  transform: translateX(-50%);
}

.about-story-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(40px, 7vw, 96px);
  margin-bottom: clamp(40px, 5vw, 68px);
}

.about-story-header h2 {
  max-width: 820px;
  margin-top: 15px;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
}

.about-story-header h2 em {
  display: block;
  margin-top: 6px;
  color: rgba(245, 245, 242, .72);
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

.about-story-deck {
  margin-bottom: 5px;
  padding: 4px 0 4px 24px;
  border-left: 1px solid rgba(151, 196, 89, .62);
  color: rgba(199, 204, 201, .68);
  font-size: 16px;
  line-height: 1.7;
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.about-story-header > *,
.about-story-visual,
.about-story-copy { min-width: 0; }

.about-story-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 30px 10px 30px 10px;
  background: #111415;
  box-shadow: 0 40px 90px -52px rgba(0, 0, 0, .96);
}

.about-story-media {
  position: relative;
  aspect-ratio: 3669 / 2486;
  overflow: hidden;
  background: #0b0d0c;
}

.about-story-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(151, 196, 89, .055), transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}

.about-story-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-story-image-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background:
    linear-gradient(100deg, rgba(151, 196, 89, .08), transparent 40%),
    rgba(8, 11, 9, .94);
}

.about-story-photo-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(7, 10, 8, .55);
  color: rgba(255, 255, 255, .76);
  font: 600 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.about-story-origin-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px 12px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(151, 196, 89, .36);
}

.about-story-origin-badge span,
.about-story-origin-badge small {
  color: rgba(199, 204, 201, .6);
  font: 600 9px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.about-story-origin-badge strong {
  margin: 0;
  color: var(--rivil-fern-bright);
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .9;
}

.about-story-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(36px, 6vw, 84px);
  padding: clamp(34px, 4.2vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px 30px 10px 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(12, 16, 13, .68);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.about-story-copy::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 196, 89, .76));
  content: "";
}

.about-story-copy-kicker {
  display: block;
  margin-bottom: 21px;
  color: var(--rivil-fern-bright);
  font: 700 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.about-story-copy p {
  color: rgba(199, 204, 201, .65);
  font-size: 15px;
  line-height: 1.72;
}

.about-story-copy p + p { margin-top: 18px; }

.about-story-copy-lead,
.about-story-copy-body { min-width: 0; }

.about-story-copy .about-story-lead {
  color: rgba(245, 245, 242, .9);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.42;
}

.about-story-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: rgba(245, 245, 242, .72);
  font: 600 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-story-values i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rivil-fern-bright);
  box-shadow: 0 0 12px rgba(151, 196, 89, .6);
}

.about-stat-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 940px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(151, 196, 89, .26);
  border-radius: 22px;
  background:
    linear-gradient(110deg, rgba(151, 196, 89, .09), transparent 34%),
    rgba(12, 16, 13, .9);
  box-shadow:
    0 34px 80px -52px rgba(0, 0, 0, .98),
    inset 0 1px rgba(255, 255, 255, .045);
}

.about-stat-strip::before {
  position: absolute;
  top: 0;
  left: 3%;
  width: 94%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 196, 89, .82), transparent);
  content: "";
}

.about-stat-intro,
.about-stat-item {
  min-width: 0;
  padding: 28px clamp(20px, 2.5vw, 34px);
}

.about-stat-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(4, 7, 5, .23);
}

.about-stat-intro span {
  color: var(--rivil-fern-bright);
  font: 700 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.about-stat-intro p {
  max-width: 230px;
  margin-top: 10px;
  color: rgba(199, 204, 201, .58);
  font-size: 13px;
  line-height: 1.55;
}

.about-stat-item {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, .09);
  transition: background-color .3s ease;
}

.about-stat-item:hover { background: rgba(151, 196, 89, .055); }

.about-stat-item > .material-symbols-outlined {
  position: absolute;
  top: 27px;
  right: 26px;
  color: rgba(151, 196, 89, .48);
  font-size: 20px;
}

.about-stat-item strong {
  display: block;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 3.5vw, 50px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .95;
}

.about-stat-item p {
  margin-top: 11px;
  color: rgba(245, 245, 242, .8);
  font-size: 13px;
  font-weight: 600;
}

.about-stat-item small {
  display: block;
  margin-top: 5px;
  color: rgba(199, 204, 201, .42);
  font: 600 9px/1.3 "JetBrains Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .about-story-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .about-story-visual {
    justify-self: center;
    width: 66.6667%;
  }

  .about-story-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 36px 40px;
  }

  .about-story-copy-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
  }

  .about-story-copy-body p + p { margin-top: 0; }
  .about-story-copy-body .about-story-values { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .about-story-header { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-story-deck { max-width: 620px; }
  .about-story-grid { grid-template-columns: minmax(0, 1fr); }
  .about-story-visual { min-height: 0; }
  .about-story-copy { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .about-story-copy { border-radius: 10px 26px 10px 26px; }
  .about-stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-stat-intro { grid-column: 1 / -1; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .about-stat-intro p { max-width: 520px; }
  .about-stat-intro + .about-stat-item { border-left: 0; }
}

@media (max-width: 639px) {
  .about-story-header h2 { font-size: 45px; }
  .about-story-deck { padding-left: 18px; font-size: 15px; }
  .about-story-visual { min-height: 0; border-radius: 22px 8px 22px 8px; }
  .about-story-image-caption { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px; }
  .about-story-origin-badge { justify-content: flex-start; width: 100%; padding: 13px 0 0; border-top: 1px solid rgba(151, 196, 89, .28); border-left: 0; }
  .about-story-origin-badge strong { font-size: 33px; }
  .about-story-copy { padding: 31px 23px; }
  .about-story-copy .about-story-lead { font-size: 22px; }
  .about-story-values { gap: 8px; }
  .about-stat-intro { padding: 23px 20px; }
  .about-stat-item { padding: 21px 8px 23px; text-align: center; }
  .about-stat-item > .material-symbols-outlined { position: static; display: block; margin-bottom: 9px; font-size: 17px; }
  .about-stat-item strong { font-size: clamp(27px, 9vw, 36px); }
  .about-stat-item p { font-size: 10px; line-height: 1.25; }
  .about-stat-item small { display: none; }
}

.service-image-panel {
  position: relative;
  min-height: 390px !important;
  overflow: hidden;
  border-radius: 22px !important;
  border-color: rgba(216,181,111,.18) !important;
  box-shadow: 0 36px 80px -48px #000;
}

.service-image-panel::after { content:""; position:absolute; inset:0; background:linear-gradient(to top right, rgba(8,10,9,.45), transparent 55%); pointer-events:none; }
.service-image-panel img { filter: saturate(.82) contrast(1.03); transition: transform .75s ease; }
.service-image-panel:hover img { transform: scale(1.035); }

.journey-timeline > li > div {
  flex: 1;
  padding: 22px 24px 24px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.048), rgba(255,255,255,.018));
}

.journey-timeline > li:nth-child(even) > div { border-color: rgba(216,181,111,.18); }

.image-backed-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,9,8,.94), rgba(7,9,8,.74)), url("assets/site/how-hero.jpg") center 54% / cover;
  opacity: .72;
}

.image-backed-cta > * { position: relative; z-index: 1; }

@media (max-width: 1023px) {
  .home-premium-hero { padding-top: 130px; min-height: auto; }
  .home-hero-shell { grid-template-columns: 1fr; }
  .home-hero-copy { max-width: 760px; }
  .home-hero-visual { min-height: 520px; width: min(620px, 100%); margin: 0 auto; }
  .home-hero-stats { margin-top: 28px; }
}

@media (max-width: 639px) {
  .home-premium-hero { padding: 110px 20px 28px; }
  .home-hero-copy h1 { font-size: 47px; }
  .home-hero-copy > p { font-size: 16px; }
  .home-hero-actions { flex-direction: column; }
  .home-hero-primary, .home-hero-secondary { width: 100%; }
  .home-hero-visual { min-height: 430px; margin-top: 5px; }
  .home-hero-image-wrap { inset: 12px 0 18px; border-radius: 130px 130px 24px 24px; }
  .home-hero-float { min-width: 162px; padding: 12px 13px; }
  .home-hero-float-top { right: -7px; top: 54px; }
  .home-hero-float-bottom { left: -6px; bottom: 46px; }
  .home-hero-stats { grid-template-columns: 1fr 1fr; }
  .home-hero-stats > div { padding: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .home-hero-stats > div:nth-child(2) { border-right: 0; }
  .home-hero-stats > div:nth-child(n+3) { border-bottom: 0; }
  .editorial-hero { min-height: 430px !important; height: 55vh !important; padding: 110px 20px 54px !important; }
}

/* Director's Message (about page) */
.directors-message p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 639px) {
  .directors-message p { font-size: 17px; }
}

/* Awards & Recognition (about page) */
.award-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.award-card:hover {
  transform: scale(1.02);
  border-color: rgba(85, 107, 47, 0.6);
  box-shadow: 0 0 24px rgba(85, 107, 47, 0.25);
}

.award-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.award-lightbox.is-open {
  display: flex;
}
.award-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}
.award-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 639px) {
  .award-lightbox-img {
    max-width: 95vw;
  }
}

/* Branded social links in the footer and fixed follow panel */
.rivil-social-link,
.rivil-social-panel-link {
  color: #fff;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.rivil-social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
}

.rivil-social-facebook { background: #1877f2; border-color: #1877f2; }
.rivil-social-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #e1306c 52%, #fcaf45 100%);
  border-color: #e1306c;
}
.rivil-social-linkedin { background: #0a66c2; border-color: #0a66c2; }
.rivil-social-youtube { background: #f00; border-color: #f00; }
.rivil-social-x { background: #000; border-color: rgba(255, 255, 255, .26); }

.rivil-social-link:hover,
.rivil-social-panel-link:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .34);
}

.rivil-social-link:focus-visible,
.rivil-social-panel-link:focus-visible,
.rivil-social-panel-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.rivil-social-panel {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 40;
  width: 248px;
  transition: transform .5s ease-out;
}

.rivil-social-panel-tab {
  position: absolute;
  top: 50%;
  left: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: #97c459;
  color: #050708;
  box-shadow: 8px 10px 24px rgba(0, 0, 0, .3);
  cursor: pointer;
  font: 700 11px/1 "JetBrains Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(-50%);
  transition: background-color .2s ease;
  writing-mode: vertical-rl;
}

.rivil-social-panel-tab:hover { background: #b4dc78; }
.rivil-social-panel-tab span:last-child { transform: rotate(180deg); }

.rivil-social-panel-body {
  padding: 22px 20px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: #111415;
  box-shadow: 18px 20px 44px rgba(0, 0, 0, .42);
}

.rivil-social-panel-kicker {
  margin: 0;
  color: #97c459;
  font: 700 10px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rivil-social-panel-body h2 {
  margin: 7px 0 17px;
  color: #fff;
  font: 600 19px/1.25 "Hanken Grotesk", sans-serif;
}

.rivil-social-panel-list {
  display: grid;
  gap: 9px;
}

.rivil-social-panel-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 13px/1.2 "Hanken Grotesk", sans-serif;
  text-decoration: none;
}

.rivil-social-panel-icon {
  display: inline-flex;
  width: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .rivil-social-panel { display: none; }
}
