/* =============================================================
   Site Extras — Vibrant treatments shared across every page.
   Loaded after style.css (and home.css if present).
   ============================================================= */

:root {
  --grad-orange-site: linear-gradient(135deg, #ff8a3d 0%, #fd5523 45%, #e84a1d 100%);
}

/* -----------------------------------------------------------------
   1. Cards across the site — modern hover with top accent line
   ----------------------------------------------------------------- */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-orange-site);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Stat-card enhancement (used on duty-consultation etc.) */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-orange-soft);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 85, 35, .18), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.stat-card:hover::after {
  opacity: 1;
}

/* -----------------------------------------------------------------
   2. Service / Industry / Post cards — gradient icon wells
   ----------------------------------------------------------------- */
.industry {
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.industry:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.industry__icon {
  transition: background .3s, transform .3s;
}

.industry:hover .industry__icon {
  background: var(--grad-orange-site);
  color: #fff;
  transform: rotate(-5deg) scale(1.08);
}

/* -----------------------------------------------------------------
   3. Feature list — subtle hover indicator
   ----------------------------------------------------------------- */
.feature-list li {
  padding: .6rem .8rem;
  border-radius: 10px;
  transition: background-color .25s, transform .25s, box-shadow .25s;
}

.feature-list li:hover {
  background: var(--bg-muted);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--brand-orange);
}

/* Mobile: turn each item into a self-contained card with a permanent
   orange accent so the list scans cleanly without hover. */
@media (max-width: 600px) {
  .feature-list { gap: .55rem; }
  .feature-list li {
    padding: .8rem 1rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-orange);
    border-radius: 10px;
    line-height: 1.55;
  }
  .feature-list li:hover {
    transform: none;
    box-shadow: none;
  }
  .feature-list li::before {
    margin-top: .12rem;
  }
  .feature-list li strong { color: var(--text-strong); }
}

/* -----------------------------------------------------------------
   4. Aside / sticky sidebar accent
   ----------------------------------------------------------------- */
.aside {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(180deg, var(--brand-orange), transparent 70%) border-box;
  border: 1px solid transparent;
  border-left: 3px solid var(--brand-orange);
  position: relative;
  overflow: hidden;
}

.aside::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 85, 35, .15), transparent 70%);
  pointer-events: none;
}

.aside h4 {
  position: relative;
}

/* -----------------------------------------------------------------
   5. Steps grid — refreshed
   ----------------------------------------------------------------- */
.steps__item {
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.steps__item:hover {
  transform: translateY(-3px);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow);
}

.steps__num {
  background: var(--grad-orange-site) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -6px rgba(253, 85, 35, .55);
}

[data-theme="dark"] .steps__num {
  background: var(--grad-orange-site) !important;
  color: #fff !important;
}

/* -----------------------------------------------------------------
   6. Buttons — subtle gradient + lift on primary
   ----------------------------------------------------------------- */
.btn--primary {
  background: var(--grad-orange-site);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .30) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}

.btn--primary:hover {
  background-position: 100% 0;
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

/* -----------------------------------------------------------------
   7. Section eyebrow icon support
   ----------------------------------------------------------------- */
.eyebrow i {
  margin-right: .35rem;
  color: var(--brand-orange);
}

/* -----------------------------------------------------------------
   8. Section heading divider — animated on reveal
   ----------------------------------------------------------------- */
.divider {
  position: relative;
  background: var(--grad-orange-site);
}

/* -----------------------------------------------------------------
   9. Glass card variant — drop on any page
   ----------------------------------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 1.4rem;
}

/* -----------------------------------------------------------------
   10. Post (blog) card refresh
   ----------------------------------------------------------------- */
.post {
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.post:hover {
  transform: translateY(-4px);
  border-color: var(--brand-orange-soft);
  box-shadow: var(--shadow);
}

.post__cover {
  background: linear-gradient(135deg, #062f3a 0%, #0a3d4a 50%, #1a5160 100%);
  position: relative;
}

.post__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 80% 20%, rgba(253, 85, 35, .35), transparent 70%);
  z-index: 1;
}

.post__cover svg {
  z-index: 2;
}

.post__cover::after {
  z-index: 3;
}

/* -----------------------------------------------------------------
   11. Testimonial polish
   ----------------------------------------------------------------- */
.testimonial {
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.testimonial:hover {
  transform: translateY(-3px);
  border-color: var(--brand-orange-soft);
  box-shadow: var(--shadow);
}

/* -----------------------------------------------------------------
   12. Form polish (contact + quote pages)
   ----------------------------------------------------------------- */
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 4px rgba(253, 85, 35, .18) !important;
}

/* -----------------------------------------------------------------
   13. CTA band gradient flair
   ----------------------------------------------------------------- */
.cta-band:not(.cta-band--immersive) {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(253, 85, 35, .30), transparent 60%),
    linear-gradient(135deg, #062f3a 0%, #0a3d4a 100%);
}

/* -----------------------------------------------------------------
   14. Reveal-class entry — softer, more natural
   ----------------------------------------------------------------- */
.reveal {
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

/* -----------------------------------------------------------------
   15. Empty-state styling (used by faq.php, blog.php, testimonials.php)
   ----------------------------------------------------------------- */
.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
}

.empty h3 {
  margin-bottom: .4rem;
}

.empty p {
  margin: 0;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------
   16. Responsive split (services pages)
   ----------------------------------------------------------------- */
.split {
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

/* -----------------------------------------------------------------
   17. Section divider line decoration on .section--alt
   ----------------------------------------------------------------- */
.section--alt {
  position: relative;
  overflow: hidden;
}

.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--grad-orange-site);
  border-radius: 0 0 4px 4px;
}

/* -----------------------------------------------------------------
   18. About page collage
   ----------------------------------------------------------------- */
.about-collage {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  aspect-ratio: 1 / 0.95;
}

.about-collage__main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-collage__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.about-collage__main:hover img {
  transform: scale(1.04);
}

.about-collage__chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
}

.about-collage__chip i {
  color: #ff8a52;
}

.about-collage__side {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-collage__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.about-collage__side:hover img {
  transform: scale(1.05);
}

.about-collage__stat {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .92);
  color: #062f3a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -15px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .about-collage__stat {
  background: rgba(8, 48, 61, .92);
  color: #f4f5f9;
  border-color: rgba(255, 255, 255, .08);
}

.about-collage__stat i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--grad-orange-site);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
}

.about-collage__stat strong {
  display: block;
  font-size: .95rem;
}

.about-collage__stat span {
  display: block;
  font-size: .72rem;
  color: rgba(0, 0, 0, .55);
  margin-top: .15rem;
}

[data-theme="dark"] .about-collage__stat span {
  color: rgba(255, 255, 255, .65);
}

@media (max-width: 760px) {
  .about-collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    aspect-ratio: auto;
  }

  .about-collage__main {
    grid-row: auto;
    aspect-ratio: 16/10;
  }

  .about-collage__side {
    aspect-ratio: 16/9;
  }
}

/* -----------------------------------------------------------------
   19. Page section: alert success/error icons
   ----------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: center;
  gap: .55rem;
}

/* -----------------------------------------------------------------
   20. Doc-guide list — icon flair
   ----------------------------------------------------------------- */
.feature-list--icon li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.feature-list--icon li::before {
  display: none;
}

.feature-list--icon li>.li-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-orange-tint);
  color: var(--brand-orange);
  border-radius: 9px;
  font-size: .9rem;
}

[data-theme="dark"] .feature-list--icon li>.li-icon {
  background: rgba(253, 85, 35, .16);
}

/* -----------------------------------------------------------------
   21. Vibrant form card (contact + quote pages share)
   ----------------------------------------------------------------- */
.quote-form-card {
  background: var(--bg-elevated);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 30px 60px -25px rgba(6, 47, 58, .25);
  color: var(--text);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.quote-form-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 85, 35, .18), transparent 70%);
  pointer-events: none;
}

.quote-form-card__head {
  margin-bottom: 1.2rem;
  position: relative;
}

.quote-form-card__head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--text-strong);
}

.quote-form-card__head p {
  margin: 0;
  font-size: .92rem;
  color: var(--text-muted);
}

.form--vibrant .field input,
.form--vibrant .field select,
.form--vibrant .field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: .85rem 1rem;
}

.form--vibrant .hint {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .4rem;
}

.form--vibrant .hint i {
  color: var(--brand-orange);
}

/* -----------------------------------------------------------------
   21b. Downloadable-resources cards (documentation-guide.php)
   ----------------------------------------------------------------- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.download-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-orange);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow);
  color: var(--text);
}
.download-card__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-orange-tint);
  color: var(--brand-orange);
  border-radius: 10px;
  font-size: 1.4rem;
}
[data-theme="dark"] .download-card__icon { background: rgba(253, 85, 35, .14); }
.download-card__body { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 0; }
.download-card__body strong { color: var(--text-strong); font-size: .98rem; line-height: 1.3; }
.download-card__desc {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.download-card__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .35rem;
  color: var(--text-muted);
  font-size: .78rem;
}
.download-card__meta i { color: var(--brand-orange); }
.pill--orange {
  background: var(--brand-orange);
  color: #fff;
  font-size: .65rem;
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .08em;
  font-weight: 700;
}

/* -----------------------------------------------------------------
   22. Contact methods list
   ----------------------------------------------------------------- */
.contact-methods {
  display: grid;
  gap: .8rem;
  margin-top: 1.4rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-method:hover {
  transform: translateX(4px);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow);
  color: var(--text);
}

.contact-method__ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--grad-orange-site);
  color: #fff;
  border-radius: 11px;
  font-size: 1.05rem;
  flex: none;
}

.contact-method__ico--wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-method__lbl {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}

.contact-method strong {
  display: block;
  font-weight: 600;
  color: var(--text-strong);
  font-size: .95rem;
}

/* -----------------------------------------------------------------
   23. Section heads with icons
   ----------------------------------------------------------------- */
.section__head h2 i {
  color: var(--brand-orange);
  margin-right: .35rem;
}

/* -----------------------------------------------------------------
   24. Modern testimonials (also used outside home page)
   ----------------------------------------------------------------- */
.testimonial--modern {
  position: relative;
  overflow: hidden;
}

.testimonial--modern::before {
  content: '"';
  font: 700 6rem/1 'Playfair Display', serif;
  color: var(--brand-orange);
  opacity: .08;
  position: absolute;
  top: -.6rem;
  right: 1rem;
}

.testimonial__stars {
  display: flex;
  gap: .2rem;
  margin-bottom: .8rem;
}

.testimonial__stars i {
  font-size: .95rem;
  color: #f59e0b;
}

.av--gradient {
  background: var(--grad-orange-site) !important;
  color: #fff !important;
}

/* -----------------------------------------------------------------
   25. Vibrant accordion (used on faq.php too)
   ----------------------------------------------------------------- */
.accordion--vibrant {
  border-top: none;
  display: grid;
  gap: .8rem;
}

.accordion--vibrant .accordion__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.accordion--vibrant .accordion__item:hover {
  border-color: var(--brand-orange-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.accordion--vibrant .accordion__btn {
  padding: 1.2rem 1.4rem;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.accordion__num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--brand-orange-tint);
  color: var(--brand-orange);
  border-radius: 10px;
  font: 700 .82rem/1 'Playfair Display', serif;
  letter-spacing: .04em;
  transition: background .3s, color .3s, transform .3s;
}

[data-theme="dark"] .accordion__num {
  background: rgba(253, 85, 35, .16);
}

.accordion__q {
  flex: 1;
  text-align: left;
}

.accordion--vibrant .accordion__btn[aria-expanded="true"] .accordion__num {
  background: var(--grad-orange-site);
  color: #fff;
  transform: scale(1.05);
}

.accordion--vibrant .accordion__btn[aria-expanded="true"] {
  color: var(--brand-orange);
}

.accordion--vibrant .accordion__panel-inner {
  padding: 0 1.4rem 1.3rem 4.6rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.accordion--vibrant .plus {
  border-color: var(--brand-orange-soft);
}

@media (max-width: 760px) {
  .accordion--vibrant .accordion__btn {
    padding: 1rem 1.1rem;
    gap: .7rem;
    font-size: .95rem;
  }

  .accordion__num {
    width: 32px;
    height: 32px;
    font-size: .76rem;
  }

  .accordion--vibrant .accordion__panel-inner {
    padding: 0 1.1rem 1rem 3.6rem;
  }
}

/* -----------------------------------------------------------------
   26. Text gradient utility
   ----------------------------------------------------------------- */
.text-grad {
  background: var(--grad-orange-site);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------------------------------------------
   27. Title cargo-plane animation (oscillating)
   Inserted by main.js after every section h2. A small fixed-width
   track (~6 dots) sits inline next to the heading. A plane flies
   back and forth across those dots forever — flips its rotation
   when it turns around at the ends.
   ----------------------------------------------------------------- */
/* Now injected into .eyebrow spans instead of h2 */
.eyebrow {
  position: relative;
}

.title-plane {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  position: relative;
  /* 6 dots * 16px = 96px track width */
  width: 96px;
  height: 22px;
  pointer-events: none;
}

.title-plane--trailing {
  margin-left: 10px;
}

.title-plane--leading {
  margin-right: 10px;
}

/* Dotted track — 6 evenly spaced orange dots */
.title-plane__trail {
  position: absolute;
  inset: 0;
  /* radial gradient: 6 dots * 16px stride = 96px total */
  background-image: radial-gradient(circle, var(--brand-orange) 1.8px, transparent 2.4px);
  background-size: 16px 4px;
  background-repeat: repeat-x;
  background-position: 8px center;
  /* offset so dots sit centred */
  opacity: .55;
}

/* Plane chip — fixed 20x20 box that flies outward from the text.
   Sized + positioned in the box-model only; transform handles rotation. */
.title-plane__icon {
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  /* vertically centred */
  left: -10px;
  /* start: near the text edge */
  display: grid;
  place-items: center;
  color: var(--brand-orange);
  font-size: 1.05rem;
  filter: drop-shadow(0 4px 10px rgba(253, 85, 35, .55));
  animation: titlePlaneFlyOut 3s ease-in-out infinite;
}

/* Plane flies from text-side → outward end, fades, then snaps back
   and repeats. Both leading + trailing share the same keyframes —
   the leading container is mirrored with scaleX(-1) so visually
   one goes left while the other goes right simultaneously. */
@keyframes titlePlaneFlyOut {
  0% {
    left: -10px;
    transform: rotate(90deg) scale(.7);
    opacity: 0;
  }

  8% {
    transform: rotate(90deg) scale(1);
    opacity: 1;
  }

  80% {
    left: calc(100% - 10px);
    transform: rotate(90deg) scale(1);
    opacity: 1;
  }

  95% {
    left: calc(100% - 10px);
    transform: rotate(90deg) scale(.8);
    opacity: 0;
  }

  100% {
    left: -10px;
    transform: rotate(90deg) scale(.7);
    opacity: 0;
  }
}

/* Leading plane — mirrored so it visually flies the opposite direction.
   When trailing flies right, leading flies left — both outward from text. */
.title-plane--leading {
  transform: scaleX(-1);
}

/* Compact the track on phones — smaller but still visible */
@media (max-width: 600px) {
  .title-plane {
    width: 56px;
    height: 18px;
  }

  .title-plane--trailing {
    margin-left: 6px;
  }

  .title-plane--leading {
    margin-right: 6px;
  }

  .title-plane__icon {
    font-size: .8rem;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    left: -8px;
  }

  .title-plane__trail {
    background-size: 14px 3px;
    background-position: 7px center;
  }
}

/* Centred section heads — the track sits beside the heading on the
   same baseline. With centred headings it floats inline next to the
   text after the title. */
.section__head--center .eyebrow .title-plane {
  /* keep inline-flex so it sits next to the centred text */
}

/* -----------------------------------------------------------------
   28. Image / element slide-in animations
   driven by [data-anim="slideInLeft|slideInRight|slideInUp|fadeInUp|zoomIn"]
   Toggled by main.js with .anim-played. Repeating items receive --i
   for cascade stagger (capped at 8 so long grids don't drag on).
   ----------------------------------------------------------------- */
[data-anim] {
  opacity: 0;
  --i: 0;
  will-change: transform, opacity;
  transition:
    transform 900ms cubic-bezier(.2, .7, .2, 1),
    opacity 900ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(min(var(--i), 8) * 70ms);
}

[data-anim="slideInLeft"] {
  transform: translateX(-60px);
}

[data-anim="slideInRight"] {
  transform: translateX(60px);
}

[data-anim="slideInUp"] {
  transform: translateY(40px);
}

[data-anim="slideInDown"] {
  transform: translateY(-40px);
}

[data-anim="fadeInUp"] {
  transform: translateY(24px);
}

[data-anim="zoomIn"] {
  transform: scale(.92);
}

[data-anim].anim-played {
  opacity: 1;
  transform: none;
}

/* -----------------------------------------------------------------
   29. Page-hero floating particles — colour matched to brand
   ----------------------------------------------------------------- */
.page-hero__icons .ph-icon {
  will-change: transform;
}

.page-hero__icons .ph-icon:nth-child(odd) {
  color: rgba(253, 85, 35, .30);
}

.page-hero__icons .ph-icon:nth-child(even) {
  color: rgba(255, 255, 255, .14);
}

/* -----------------------------------------------------------------
   30. Reduced motion
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .title-plane__icon {
    animation: none !important;
    opacity: 0 !important;
  }

  .title-plane__trail {
    transform: scaleX(1) !important;
    transition: none !important;
  }
}

/* -----------------------------------------------------------------
   31. Mobile tightening for new effects
   ----------------------------------------------------------------- */
@media (max-width: 760px) {
  .title-plane__icon {
    font-size: .9rem;
  }
}

/* -----------------------------------------------------------------
   32. Page Hero Graphics (Inner Pages)
   ----------------------------------------------------------------- */
.page-hero__graphics {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.phg-right {
  position: absolute;
  right: -5%;
  bottom: 0;
  height: 110%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.8;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

.phg-wave {
  position: absolute;
  right: 40%;
  top: -5%;
  height: 55%;
  width: auto;
  object-fit: contain;
  animation: phgWave 5s ease-in-out infinite;
  opacity: 0.95;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}

@keyframes phgWave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(20px);
  }
}

@media (max-width: 1024px) {
  .page-hero__graphics {
    width: 100%;
    opacity: 0.25;
  }

  /* dim on mobile */
  .phg-right {
    right: -15%;
  }

  .phg-wave {
    right: 10%;
    height: 40%;
  }
}

@media (max-width: 760px) {
  .page-hero__graphics {
    display: none;
  }
}