/* ==========================================================================
   Perera & Sons — Modern Enterprise Design System
   Brand: P&S Navy / Bakery Gold / Warm Cream, Helvetica Now Display
   ========================================================================== */

@font-face {
  font-family: 'Helvetica Now';
  src: url('../fonts/HelveticaNowDisplay-Light.ttf') format('truetype');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now';
  src: url('../fonts/HelveticaNowDisplay-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now';
  src: url('../fonts/HelveticaNowDisplay-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now';
  src: url('../fonts/HelveticaNowDisplay-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now';
  src: url('../fonts/HelveticaNowDisplay-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-display: swap;
}

:root {
  /* Brand */
  --navy-900: #12233f;
  --navy-800: #16305a;
  --navy-700: #1b3d6d;
  --navy-600: #24518f;
  --gold-500: #f0a632;
  --gold-400: #f5b64f;
  --gold-600: #d98f1b;
  --cream-50: #fdfbf7;
  --cream-100: #f8f3ea;
  --cream-200: #f1e8d8;
  --ink-900: #131313;
  --ink-700: #333333;
  --ink-500: #5c5c5c;
  --ink-300: #9a9a9a;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--cream-50);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --accent: var(--gold-500);
  --accent-ink: #7a4c00;

  /* Type */
  --font-sans: 'Helvetica Now', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Rhythm */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(18, 35, 63, .06), 0 2px 8px rgba(18, 35, 63, .06);
  --shadow-md: 0 8px 24px rgba(18, 35, 63, .10);
  --shadow-lg: 0 24px 60px rgba(18, 35, 63, .18);
  --container: 1200px;
  --container-wide: 1400px;
  --section-pad: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Type scale ---------- */
.display-1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; }
.display-2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.h-md { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.h-sm { font-size: 1.15rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 34px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-400); }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 48px, var(--container-wide)); }
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * .6); }
.section--dark { background: var(--navy-900); color: #eef2f8; }
.section--dark .lead { color: #b9c6da; }
.section--cream { background: var(--cream-100); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 20px rgba(240, 166, 50, .35); }
.btn--gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240, 166, 50, .45); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border: 2px solid currentColor; color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn--outline-light { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy-900); transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: .88rem; }
.btn--lg { padding: 18px 38px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 18px;
}
.site-header.is-scrolled {
  background: rgba(253, 251, 247, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding-block: 10px;
}
.site-header--dark:not(.is-scrolled) { color: #fff; }
.nav-bar { display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.nav-logo img { width: 54px; height: 54px; transition: width .3s var(--ease), height .3s var(--ease); }
.is-scrolled .nav-logo img { width: 44px; height: 44px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links > li > a {
  display: block; padding: 10px 14px; font-weight: 500; font-size: .95rem;
  border-radius: var(--radius-pill); transition: background .2s, color .2s;
}
.nav-links > li > a:hover { background: rgba(240, 166, 50, .14); color: var(--accent-ink); }
.site-header--dark:not(.is-scrolled) .nav-links > li > a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-links > li > a[aria-current="page"] { color: var(--accent-ink); font-weight: 700; }
.site-header--dark:not(.is-scrolled) .nav-links > li > a[aria-current="page"] { color: var(--gold-400); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; z-index: 260; }
.nav-toggle span { width: 26px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 250;
    flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: var(--navy-900); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links > li > a { font-size: 1.4rem; padding: 12px 24px; }
  .nav-links > li > a[aria-current="page"] { color: var(--gold-400); }
  .nav-links > li > a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav-cta { margin: 18px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; align-items: center;
  min-height: min(92vh, 900px); padding-top: 120px; overflow: hidden;
  color: #fff;
}
.hero--short { min-height: min(62vh, 560px); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(75deg, rgba(11, 22, 40, .88) 0%, rgba(11, 22, 40, .62) 45%, rgba(11, 22, 40, .18) 100%);
}
.hero--center .hero__scrim { background: linear-gradient(rgba(11,22,40,.72), rgba(11,22,40,.5)); }
.hero__content { max-width: 720px; padding-block: 48px; }
.hero--center .hero__content { margin-inline: auto; text-align: center; }
.hero .lead { color: rgba(255, 255, 255, .85); max-width: 560px; }
.hero--center .lead { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero--center .hero__actions { justify-content: center; }

/* Ken Burns crossfade slideshow */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides__item {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-slides__item.is-active { opacity: 1; }
.hero-slides__item img { width: 100%; height: 100%; object-fit: cover; }
/* Ken Burns runs only on the slide actually on screen, and restarts each time
   a slide becomes active — animating all four at load wasted the effect and
   left the queued slides sitting pre-zoomed. */
.hero-slides__item.is-active img { animation: kenburns 9s var(--ease) both; }
@keyframes kenburns {
  from { transform: scale(1.0); }
  to { transform: scale(1.08); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 26px 26px 30px; }
.card__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card__body p { color: var(--text-muted); font-size: .97rem; margin-bottom: 18px; }
.card-link { font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px; }
.card-link svg { transition: transform .25s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { text-align: center; }
.stat__value {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1;
  color: var(--gold-500); letter-spacing: -.02em;
}
.stat__label { margin-top: 10px; font-size: .95rem; color: inherit; opacity: .78; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > :nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > :nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > :nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > :nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > :nth-child(6) { transition-delay: .4s; }
.reveal-stagger.is-visible > :nth-child(7) { transition-delay: .48s; }
.reveal-stagger.is-visible > :nth-child(8) { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero-slides__item img { animation: none; }
  .marquee__track { animation: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(48px, 7vw, 88px); text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 85% 15%, rgba(240, 166, 50, .28), transparent 65%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .lead { color: rgba(255,255,255,.82); max-width: 560px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c4cfe0; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-400); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px); padding-block: clamp(48px, 6vw, 80px);
}
.footer-brand img { width: 64px; margin-bottom: 18px; }
.footer-brand p { color: #93a3bc; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.08); transition: background .25s, transform .25s;
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8595af; font-size: .85rem;
}
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ----------
   One consistent treatment for every interior page: same height floor, same
   scrim, same accent, so heroes don't shift size with copy length. */
.page-hero {
  position: relative; padding: 190px 0 96px; color: #fff; overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end;
}
.page-hero > .container { width: min(100% - 48px, var(--container)); }
@media (max-width: 700px) { .page-hero { min-height: 400px; padding: 150px 0 70px; } }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11,22,40,.78), rgba(11,22,40,.58)); }
.page-hero .lead { color: rgba(255,255,255,.85); }
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--gold-400); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .form-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-sm); font: inherit; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(240,166,50,.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(240,166,50,.14); color: var(--accent-ink);
  font-size: .85rem; font-weight: 700;
}
.chip--light { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 22, 40, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; width: min(460px, 100%);
  background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow-lg);
  animation: modal-in .35s var(--ease) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close {
  position: absolute; top: 14px; right: 18px; font-size: 1.8rem; line-height: 1;
  color: var(--ink-300); transition: color .2s;
}
.modal__close:hover { color: var(--ink-900); }
.modal__options { display: grid; gap: 12px; margin-top: 22px; }
.modal__option {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1.5px solid var(--cream-200); border-radius: var(--radius-md);
  font-weight: 700; transition: border-color .2s, background .2s, transform .2s;
}
.modal__option:hover { border-color: var(--gold-500); background: rgba(240,166,50,.07); transform: translateY(-2px); }
.modal__option img { width: 46px; height: 46px; object-fit: contain; }

/* ==========================================================================
   Polish layer — sitewide micro-interactions & refinements
   ========================================================================== */

::selection { background: var(--gold-500); color: var(--navy-900); }

/* Nav link underline slide */
.nav-links > li > a { position: relative; }
.nav-links > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* Button shine sweep + press state */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-20deg); transition: left .55s var(--ease); pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(0) scale(.985); }

/* Hero content entrance. The split-text headline runs its own word animation,
   so exclude it here — stacking both made the H1 animate twice. */
.hero__content > *:not(.splitwords), .page-hero .container > *:not(.splitwords) {
  opacity: 0; transform: translateY(22px);
  animation: rise-in .85s var(--ease) forwards;
}
.hero__content > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .3s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* Scroll cue on the tall home hero */
.hero:not(.hero--short)::after {
  content: ''; position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.55); border-radius: 13px;
  background: radial-gradient(circle, rgba(255,255,255,.95) 2.5px, transparent 3.5px) center 8px / 100% 100% no-repeat;
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue {
  0%, 100% { background-position: center 8px; opacity: 1; }
  55% { background-position: center 20px; opacity: .5; }
}

/* Page-hero gold accent under the H1 */
.page-hero h1::after {
  content: ''; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  margin-top: 22px;
  animation: line-grow .8s var(--ease) .35s backwards;
}
@keyframes line-grow { from { width: 0; opacity: 0; } }

/* Section-head eyebrow line draws in on reveal */
.section-head .eyebrow::before { width: 0; }
.section-head.is-visible .eyebrow::before { width: 34px; transition: width .6s var(--ease) .1s; }

/* Split imagery: soft hover zoom */
.split__media img { transition: transform .9s var(--ease); }
.split__media:hover img { transform: scale(1.035); }

/* Cards: gold ring on hover */
.card:hover { box-shadow: var(--shadow-md), 0 0 0 2px rgba(240, 166, 50, .38); }

/* Stats: gold tick + gentle lift */
.stat { transition: transform .35s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat::after {
  content: ''; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--gold-500); opacity: .55; margin: 14px auto 0;
}

/* CTA band: drifting glow */
.cta-band::after { animation: glow-drift 9s ease-in-out infinite; }
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5%, 9%); }
}

/* Chips */
.chip { transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(18,35,63,.12); }

/* Footer: gold top edge + link slide */
.site-footer { border-top: 3px solid var(--gold-500); }
.footer-col li a { display: inline-block; transition: transform .25s var(--ease), color .2s; }
.footer-col li a:hover { transform: translateX(6px); }

/* Marquee edge fade */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

/* Back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .25s, color .25s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-500); color: var(--navy-900); }

/* Subtle scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream-100); }
::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 6px; border: 3px solid var(--cream-100); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }

@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .page-hero .container > * { animation: none; opacity: 1; transform: none; }
  .hero:not(.hero--short)::after, .cta-band::after, .page-hero h1::after { animation: none; }
  .btn::before { display: none; }
}

/* ==========================================================================
   Distinction layer — unique section treatments per page
   ========================================================================== */

/* Offset gold frame behind split imagery (about, catering, cravings, export, home) */
.split__media {
  box-shadow: var(--shadow-lg), 16px 16px 0 -2px rgba(240, 166, 50, .3);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.split__media:hover {
  box-shadow: var(--shadow-lg), 10px 10px 0 -2px rgba(240, 166, 50, .55);
  transform: translate(3px, 3px);
}
@media (max-width: 640px) { .split__media { box-shadow: var(--shadow-md); } .split__media:hover { transform: none; } }

/* Dark sections: glass cards */
.section--dark .card {
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
}
.section--dark .card:hover { border-color: rgba(240, 166, 50, .5); }

/* Blogs: newest post becomes a wide feature card */
#blog-grid .blog-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
#blog-grid .blog-card:first-child .card__media { aspect-ratio: auto; min-height: 320px; }
#blog-grid .blog-card:first-child .card__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); }
#blog-grid .blog-card:first-child h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
@media (max-width: 800px) { #blog-grid .blog-card:first-child { grid-template-columns: 1fr; } #blog-grid .blog-card:first-child .card__media { min-height: 0; aspect-ratio: 16/9; } }

/* Stores: pin accent + gold reveal edge */
.store-card { border-top: 3px solid transparent; transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.store-card:hover { border-top-color: var(--gold-500); }
.store-card h3::before {
  content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 9px;
  background: var(--gold-500);
  clip-path: path('M7.5 0C3.4 0 0 3.4 0 7.5 0 13 7.5 15 7.5 15S15 13 15 7.5C15 3.4 11.6 0 7.5 0Z');
}

/* Contact: office cards + elevated form panel */
.contact-card { border-top: 3px solid var(--gold-500); }
form[aria-label="Inquiry form"] {
  background: var(--surface); padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

/* Export: editorial quote mark on testimonials */
.testimonial { position: relative; }
.testimonial::before {
  content: '\201C'; position: absolute; top: 2px; right: 22px;
  font-family: Georgia, serif; font-size: 5.5rem; line-height: 1;
  color: rgba(240, 166, 50, .3); pointer-events: none;
}

/* Empty states: dotted halo pattern */
.empty-state {
  background-image: radial-gradient(rgba(27, 61, 109, .05) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* Privacy policy: gold-edged section headings */
.policy h2 { padding-left: 16px; border-left: 4px solid var(--gold-500); }

/* Modal: gold top ribbon */
.modal__panel { border-top: 5px solid var(--gold-500); }

/* ==========================================================================
   Experience layer — cinematic motion primitives
   ========================================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--navy-600));
}

/* Split-text headline: words rise + sharpen.
   Hidden only when JS is confirmed present (html.js), so the headline can't
   paint in place and then visibly jump when JS re-wraps it — and if JS never
   runs, the heading simply shows normally. */
.js .splitwords { opacity: 0; }
.js .splitwords.is-ready { opacity: 1; }
.splitwords .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.splitwords .word > span {
  display: inline-block;
  transform: translateY(105%) rotate(3deg);
  transition: transform 1s cubic-bezier(.16, .84, .28, 1);
}
.splitwords.is-lit .word > span { transform: none; }

/* Gold gradient text */
/* Gold gradient text.
   The split-text animation wraps each word in a transformed inline-block, which
   creates its own painting context — the parent's clipped background never
   reaches it, so the word rendered invisible. Paint the gradient on the word
   spans too, and keep a solid-gold fallback so the text can never disappear. */
.gradient-text { color: var(--gold-400); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text,
  .gradient-text .word > span {
    background: linear-gradient(100deg, var(--gold-400), #ffd98a 45%, var(--gold-500));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}

/* Cinematic hero */
.hero--cinematic { min-height: 100svh; }
.hero--cinematic .hero__scrim {
  background:
    linear-gradient(78deg, rgba(8, 16, 30, .93) 0%, rgba(8, 16, 30, .72) 42%, rgba(8, 16, 30, .28) 72%, rgba(8, 16, 30, .5) 100%),
    linear-gradient(to top, rgba(8, 16, 30, .85) 0%, transparent 38%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 62vw; height: 62vw; max-width: 760px; max-height: 760px;
  right: -8vw; top: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 166, 50, .34), transparent 62%);
  filter: blur(18px); animation: orb 14s ease-in-out infinite;
}
@keyframes orb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  50% { transform: translate3d(-4%, 6%, 0) scale(1.12); opacity: 1; }
}
.hero__seal {
  position: absolute; z-index: -1; right: 6vw; bottom: 12vh;
  width: min(26vw, 300px); opacity: .07; pointer-events: none;
  animation: spin-slow 46s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero__ticker {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 15px 0; background: rgba(8, 16, 30, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__ticker .marquee__track { animation-duration: 42s; gap: 0; }
.hero__ticker b { color: var(--gold-400); }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 34px;
  font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .9); white-space: nowrap;
}
.ticker-item::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-500); margin-left: 22px;
}
.hero--cinematic .hero__content { padding-bottom: 120px; }
@media (max-width: 700px) { .hero__seal { display: none; } }

/* Magnetic buttons */
.mag { transition: transform .35s var(--ease), box-shadow .3s var(--ease), background .25s; }

/* Clip-path wipe reveal */
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.16, .84, .28, 1); }
.wipe.is-visible { clip-path: inset(0 0 0 0); }

/* Blur-in reveal */
.blur-in { opacity: 0; filter: blur(12px); transform: translateY(26px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.blur-in.is-visible { opacity: 1; filter: none; transform: none; }

/* 3D tilt cards */
.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }
.tilt__inner { transform: translateZ(28px); }

/* Gold corner accents on cards */
.corner-card { position: relative; }
.corner-card::before, .corner-card::after {
  content: ''; position: absolute; width: 22px; height: 22px; z-index: 2;
  border-color: var(--gold-500); border-style: solid; border-width: 0;
  opacity: 0; transition: opacity .35s var(--ease), inset .35s var(--ease);
}
.corner-card::before { top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; }
.corner-card::after { bottom: 14px; right: 14px; border-bottom-width: 3px; border-right-width: 3px; }
.corner-card:hover::before, .corner-card:hover::after { opacity: 1; }

/* Floating year badge */
.year-badge {
  position: absolute; z-index: 3; display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 800; line-height: 1.1; box-shadow: var(--shadow-lg);
  animation: bob 5.5s ease-in-out infinite;
}
.year-badge span { display: block; font-size: 1.9rem; letter-spacing: -.02em; }
.year-badge small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Huge display numeral */
.mega-num {
  font-size: clamp(4.5rem, 13vw, 11rem); font-weight: 800; line-height: .88;
  letter-spacing: -.045em;
}

/* Glass stat tiles on dark */
.stat--glass {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md); padding: 30px 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.stat--glass:hover { transform: translateY(-8px); border-color: rgba(240, 166, 50, .55); background: rgba(255, 255, 255, .08); }

/* Animated gradient border panel */
.grad-border { position: relative; border-radius: var(--radius-lg); }
.grad-border::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), var(--gold-500), var(--navy-600), var(--gold-400), var(--gold-500));
  animation: ang-spin 8s linear infinite;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ang-spin { to { --ang: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .splitwords .word > span { transform: none; }
  .hero__glow, .hero__seal, .year-badge, .grad-border::before, .hero__ticker .marquee__track { animation: none; }
  .wipe { clip-path: none; }
  .blur-in { opacity: 1; filter: none; transform: none; }
  .scroll-progress { display: none; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
