/* ====================================================
AJ SITE STYLES
----------------------------------------------------
Breakpoints (reference only):
XS ≤600 | SM 601–750 | MD 751–899 | LG ≥901

Notes:
- Media queries may overlap (e.g. 900 / 901)
- Labels are descriptive, not enforced
- Menu behaviour is unchanged
==================================================== */

/* ====================================================
FILE STRUCTURE OVERVIEW (LOGICAL ORDER)
----------------------------------------------------
NOTE: Physical order reflects historical evolution.
Logical groupings listed here for navigation only.

1. Baseline - All Breakpoints
2. Global Baseline Non Menu
3. Footer + Reusable UI components (roundall, buttons)
4. Content sections (homepage blurb, endorsements, projects)
5. Page-specific sections (about, shop, inner pages)
6. Homepage mobile and inner sections
7. Image systems homepage - banners (landscape), squares
8. Homepage — structural layout & component responsive rules
9. Parallax scroll effects - hompage only
10. Menu & navigation system
11. Mobile header
12. Responsive adjustments + safety overrides
13. Hero system (layout + responsive rules)
==================================================== */

/* ====================================================
1. BASELINE RULES (ALL BREAKPOINTS)
==================================================== */

/* Default: hide mobile header unless ≤900px */
.aj-mobile-header {
  display: none;
}

/* Default: hide tray unless in mobile mode */
.aj-menu {
  display: none;
}

html {
  scroll-behavior: smooth;
}

/* stop horizontal scrollbars caused by transforms */
html,
body {
  overflow-x: hidden;
}

.mobile-only {
  display: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* -------------------------------------------------
≤900px — CONSOLIDATED (DO NOT CHANGE BEHAVIOUR)
------------------------------------------------- */

/* Mobile: hide desktop AJ logo + availability wrapper */
@media (max-width: 900px) {

  /* MD */
  .bang-logo {
    display: none !important;
  }

  .hero-text {
    left: 46%;
    transform: translate(-50%, -36%);
  }

  /* ====== Roundall — Mobile Visibility & Layout ====== */
  .roundall img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .roundall:hover {
    transform: scale(1.1);
    transition: transform 0.15s ease-out;
    transform-origin: center center;
  }
}

/* ---------------------------------------------------
DESKTOP ≥901px — CONSOLIDATED (DO NOT CHANGE BEHAVIOUR)
----------------------------------------------------- */

/* Align footer with main content when desktop left menu is visible */
@media (min-width: 901px) { /* LG */ 
  #site-footer .footer-inner {
    transform: translateX(55px);
  }
}

/* ====================================================
2. GLOBAL BASELINE (NON-MENU)
==================================================== */

/* ------------------------------------------
3. FOOTER — BASE (GLOBAL) + UI Components
------------------------------------------ */
footer,
.footer,
.site-footer {
  max-width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
  overflow-x: hidden;
  text-align: center;
}

/* Desktop sticky roundall */
.roundall-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #58d1af;

  position: fixed;
  bottom: 40px;
  left: 20px;
  z-index: 9999;
  border: 2px solid #fff;
  text-decoration: none;
}

.roundall-desktop img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.roundall-desktop:hover {
  background: #3c4a50;
  cursor: pointer;
  transform: scale(1.1);
}

/* Hide roundall initially */
.roundall-desktop {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.25s;
}

/* Reveal with hero */
body.hero-ready .roundall-desktop {
  opacity: 1;
  transform: translateY(0);
}

#site-footer {
  background: #58d1af;
  color: #fff;
  text-align: center;
  padding: 30px 20px 100px;
  font-family: Karla, sans-serif;
  font-weight: 400;
  margin-top: 80px;
  font-size: 2rem;
  line-height: 1.5;
}

#site-footer a {
  color: #fff;
  text-decoration: none
}

#site-footer .footer-top p {
  margin-bottom: 1.6rem
}

#site-footer a:hover {
  color: #3c4a50
}

#site-footer .footer-social {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 70px
}

#site-footer .footer-social a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: color .3s ease
}

#site-footer .footer-social a:hover {
  color: #3c4a50
}

#site-footer .footer-social .icon-instagram {
  font-size: 25px;
  position: relative;
  top: -1px
}

#site-footer .footer-social .icon-email {
  font-size: 21px;
  position: relative;
  left: -2px;
  top: 0px
}

#site-footer .footer-social .icon-linkedin {
  font-size: 23px;
  position: relative;
  top: -3px
}

#site-footer .footer-line {
  margin: 18px auto;
}

#site-footer .footer-shop-title {
  margin: 5px 0 16px;
}

#site-footer .footer-shop-block {
  margin-top: 5px;
  margin-bottom: 25px;
}

#site-footer .footer-shop-books {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Shop logos: RB, TeePublic, Amazon */
.shop-link img {
  display: block;
  height: 50px;
  width: auto;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.shop-link:hover img {
  filter: brightness(0.4);
}

/* Redbubble */
.footer-shop-row a:nth-child(1) img {
  height: 37px;
}

/* TeePublic */
.footer-shop-row a:nth-child(2) img {
  height: 31px;
}

/* Amazon */
.footer-shop-books img {
  height: 41px;
}

.footer-shop-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px 80px;
  flex-wrap: wrap; 
}

.footer-shop-books {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- END FOOTER — BASE (GLOBAL) --- */

@media (max-width: 600px) {

  /* XS */
  .footer-shop-row {
    gap: 0 30px;
    flex-wrap: wrap;
  }

  /* RB Mobile */
  .footer-shop-row a:nth-child(1) img {
    height: 27px;
  }

  /* TeePublic Mobile */
  .footer-shop-row a:nth-child(2) img {
    height: 22px;
  }

  /* Amazon Mobile */
  .footer-shop-books img {
    height: 32px;
  }
}

/* ---------------------------------------
4. CONTENT SECTIONS
--------------------------------------- */

/* Homepage Intro Blurb */
@media screen and (max-width: 650px) {/* SM */
  .blurb {
    margin-bottom: 20px;
  }
}

.blurb h1 {
  margin: 30px 15% 50px;
  color: #58D1AF;
}

.blurb p:first-of-type {
  margin-top: 3rem;
}

.blurb p.subhead {
  font-size: clamp(2.6rem, 3.0vw, 3.5rem);
  font-weight: 300;
}

.aj-home .homepage-blurb {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 1200px;
  margin: 5.5rem auto;      /* same vertical rhythm Skeleton gave */
  padding: 0 2rem;        /* replaces column side-padding */
  text-align: center;
  box-sizing: border-box;
}

.aj-home .homepage-blurb p {
  margin: 0;
  line-height: 1.5;
}

.home .blurb {
  margin: 0 5% 40px;
}

.home .blurb p {
  font-size: 2rem;
  line-height: 39px;
  text-align: center;
  padding-top: 2rem;
}

.home .homepage-blurb {
  padding-left: 0;
  padding-right: 0;
}

.home .homepage-blurb .subhead {
  font-size: 1.8em;
  line-height: 1.5;
  margin: 1.5em auto;
  text-align: center;
}
/* --- END Homepage blurb section --- */

/* Homepage endorsements/testimonials slider section */
.endorsements {
  margin-bottom: 40px;
  text-align: center;
}

.endorsements h3 {
  font-size: 28px;
  line-height: 33px;
  color: #58d1af;
  font-weight: 400;
  text-align: center;
}

/* Testimonials slider - New slide handling */
.slider {
  position: relative;
  transition: height 250ms ease;
}

blockquote.ssslide {
  display: none;
  text-align: center;
  padding: 5px clamp(40px, 10vw, 80px);
}

blockquote.ssslide.active {
  display: block;
  animation: fadeIn 600ms ease;
  pointer-events: auto;
}

blockquote.ssslide .name {
  margin-top: 1em;
  font-weight: bold;
  font-style: italic;
}

blockquote.ssslide {
  font-weight: 400;
}

blockquote.ssslide .name {
  font-weight: 600;
}

/* Fade keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Arrows with bang-icons */
.sssprev:before,
.sssnext:after {
  width: 35px;
  height: 35px;
  line-height: 35px;
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  font-family: 'bang-icons';
  font-size: 1em;
  border-radius: 50%;
  color: #fff;
  background-color: #58d1af;
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}

.sssprev:before { content: '\e906'; left: 15px; }
.sssnext:after  { content: '\e907'; right: 15px; }

.sssprev:hover:before,
.sssnext:hover:after { opacity: 0.8; }

/* extra space below testimonials slider (homepage only) */
.aj-home .endorsements .slider {
  margin-bottom: 35px;
}
/* --- END Homepage endorsements/testimonials slider section --- */


/* ====================================================
5. PAGE SPECIFIC SECTIONS
==================================================== */

/* ----------------------------------------------
Project Inner Pages – Base Styles (All Sizes)
-----------------------------------------------*/
.project-nav {
  position: relative;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1.4rem;
}

.project-nav .proj-prev,
.project-nav .proj-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 40px;
  min-height: 40px;
}

.project-nav .proj-prev {
  left: 0;
}

.project-nav .proj-next {
  right: 0;
}

.project-nav h1 {
  margin: 0;
  text-align: center;
  line-height: 1.2;
  font-size: clamp(3.5rem, 3.8vw, 4.2rem);
}

.project-nav p {
  margin: 0;
  text-align: center;
}

/* FLUID TYPOGRAPHY – replaces all manual font-size overrides */
.project-nav p {
  font-size: clamp(2.2rem, 4.0vw + 1.5rem, 3.2rem);
  font-weight: 300;
  color: #58d1af;
  white-space: nowrap;
  padding-top: 0;
}

.project-nav a {
  color: #bbb;
  text-decoration: none;
  padding: 0.3rem;
  transition: color 0.25s ease;
}

.project-nav a:hover {
  color: #58d1af;
}

/* SVG sizing baseline */
.project-nav .nav-arrow {
  width: 44px;
  height: 44px;
  display: block;
}

/* ---------------------------------------
PROJECT FIGURE + CAPTION (STATIC)
--------------------------------------- */

.project-figure {
  margin: 0 0 35px 0;
}

@media screen and (max-width: 650px) {

  /* SM */
  .project-figure {
    margin-bottom: 40px;
  }
}

.project-caption {
  margin-top: 10px;
}

.project-caption h3 {
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  color: #777;
  margin: 0;
  font-size: 1.8rem;
  /* desktop */
  line-height: 1.3;
  text-align: left;
}

@media (max-width: 750px) {

  /* SM */
  .project-caption h3 {
    font-size: 1.8rem;
    /* mobile */
  }

  .project-caption {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
  }
}

/* END PROJECT NAV – PROJECT CAPTIONS - INNER PAGES */

/* ---------------------------------------
New About Page baseline settings
--------------------------------------- */

.about-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.blurb-tight h1 {
  margin-bottom: 0;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text p {
  margin-bottom: 1.2em;
  font-size: 1.8rem;
  line-height: 2.0;
}

.about-pic {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.7rem;
}

.about-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------
ABOUT – SERVICES GRID (Skeleton-free)
--------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.5rem 2rem;
  max-width: 90%;
  margin: 0 auto;
}

.service-item {
  text-align: center;
}

.service-item img {
  width: 180px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.service-item span {
  display: block;
  font-size: 1.8rem;
  line-height: 2.2rem;
}

/* ---------------------------------------
ABOUT – SHOP LINKS
--------------------------------------- */

.about-shop {
  margin-top: 50px;
}

.about-shop-block {
  margin-top: 30px;
}

.about-shop.blurb-tight h1 {
  margin-bottom: 0;
}

.about-shop-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 25px;
  color: #58D1AF;
}

.about-shop-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-shop img {
  max-height: 42px;
  width: auto;
  opacity: 1;
  transition: filter 0.12s linear;
}

/* Aqua hover */
.about-shop a:hover img {
  filter: brightness(0) 
  saturate(100%) 
  invert(64%) 
  sepia(18%) 
  saturate(1134%) 
  hue-rotate(116deg) 
  brightness(96%) 
  contrast(92%);
}

/* Centre Amazon logo */
.about-shop .about-shop-block:last-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------------------------------------
ABOUT – SHOP LOGO SIZING
--------------------------------------- */

/* Base */
.about-shop .shop-link img {
  display: block;
  height: 55px;
  width: auto;
}

/* Redbubble */
.about-shop-row a:nth-child(1) img {
  height: 42px;
}

/* TeePublic */
.about-shop-row a:nth-child(2) img {
  height: 36px;
}

/* Amazon */
.about-shop .about-shop-block:last-of-type img {
  height: 46px;
}

@media (max-width: 600px) { /* XS */
  .about-shop-row {
    flex-direction: column;
    gap: 60px;
  }
}

/* END - ABOUT PAGE */


/* ===================================================
6. HOMEPAGE Mobile + INNER Sections (+ ≤750px)
=================================================== */

@media (max-width: 750px) { /* SM */
  .mobile-only {
    display: block;
    padding: 0
  } 

  .m-figure,
  .m-grid,
  .m-item {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important
  }

  .m-item img {
    width: 80% !important;
    max-width: 500px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 60px auto !important;
  }

  .m-fullpic {
    margin: 0 0 80px 0 !important;
    padding: 0 !important
  }

  .m-fullpic img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    border-radius: 0
  }

  .m-roundalls {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px
  }

  .m-roundalls .roundall {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #58d1af;
    color: #fff;
    font-family: Karla, sans-serif;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none
  }

  /* Controls space above heading/content on project inner pages on mobile */
  .row.content {
    min-height: 0 !important;
    height: auto !important;
    padding: 20px 0 0 0 !important;
    margin: 0 !important
  }

  .m-footer {
    background: #58d1af;
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 25px 0;
    margin: 80px 0 0 0;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box
  }

  .m-footer a {
    color: #fff;
    text-decoration: none
  }

  #main-content {
    margin-left: 0 !important;
    margin-right: 0 !important
  }

  .m-social {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top: 40px;
    margin-bottom: 60px
  }

  .m-social .icon-link {
    color: #58d1af;
    text-decoration: none
  }

  .m-social i {
    font-size: 36px;
    line-height: 1
  }

  .m-social .icon-instagram {
    font-size: 32px;
    top: -4px
  }

  .m-social .icon-email {
    font-size: 28px
  }

  .m-social .icon-linkedin {
    font-size: 32px;
    position: relative;
    top: -4px
  }

  .m-social .icon-link:focus,
  .m-social .icon-link:hover {
    color: #3c4a50
  }

  .sssnext,
  .sssprev {
    top: 130px
  }

/* === Homepage endorsements section (base layout) === */
.endorsements {
  clear: both;           /* keep below any floated or grid items */
  width: 100%;
  display: block;
  margin: 0 auto 50px;
  text-align: center;
  box-sizing: border-box;
}

/* About Page on small screens */
  .about-flex {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text {
    text-align: center;
    width: 90%;
  }

    .services-grid {
    grid-template-columns: 1fr;   /* 1 across */
    gap: 4.0rem 2.5rem;
  }

  .service-item img {
    width: 160px;
  }
}

/* ====== END MOBILE ≤750px ====== */

/* ABOUT + CONTACT — MOBILE ROW PADDING FIX */
@media screen and (max-width: 900px) { /* EDGE */
  .about .row.content,
  .contact .row.content {
    padding-top: 0 !important;
  }
}

/* Mobile tweaks ENDORSEMENTS */
@media screen and (max-width: 750px) { /* SM */
  .endorsements {
    margin-top: 70px;
    margin-bottom: 30px;
  }
}

/* ==========================================================
7. IMAGE SYSTEMS homepage - banners (landscape), squares
========================================================== */

.aj-banner-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;  /* or your preferred banner ratio */
  overflow: hidden;
  cursor: pointer;
  background: #000;
  margin: 0;
}

/* Image fill and smooth fade */
.aj-square-img img,
.aj-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

/* Dark tint overlay */
.aj-square-img::before,
.aj-banner-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Centered description text */
.aj-square-img .desc,
.aj-banner-img .desc {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(2.3rem, 2.8vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0;
  text-align: center;
  width: 80%;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
  z-index: 2;
}

/* Sliding white bar caption */
.aj-square-img .bar,
.aj-banner-img .bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: -1px;
  background: #fff;
  color: #3c4a50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 1em;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.4, 1);
  z-index: 3;
}

.aj-square-img h2,
.aj-banner-img h2 {
  font-size: clamp(1.8rem, 2.3vw, 1.8rem);
  margin: 0;
  font-weight: 400;
}

.aj-square-img .bar .icon-links,
.aj-banner-img .bar .icon-links {
  margin: 0;
  line-height: 1;
}

.aj-square-img .bar .icon-links .icon,
.aj-banner-img .bar .icon-links .icon {
  font-size: clamp(2rem, 2.2vw, 1.8rem);
  color: #3c4a50;
  transition: color 0.3s ease;
}

/* Hover effects */
.aj-square-img:hover img,
.aj-banner-img:hover img {
  opacity: 0.6;
}

.aj-square-img:hover::before,
.aj-banner-img:hover::before {
  opacity: 1;
}

.aj-square-img:hover .desc,
.aj-banner-img:hover .desc {
  opacity: 1;
}

.aj-square-img:hover .bar,
.aj-banner-img:hover .bar {
  transform: translateY(1px);
}

/* -------------------------------------------------
Banner (Landscape) Images (Production)
------------------------------------------------- */

.banner-section {
  width: 100%;
  margin: 0 auto 4rem; 
  padding: 0;
  display: block;
}

/* Override for banners only */
.aj-banner-img {
  aspect-ratio: 16 / 9;
}

/* Let new banners escape #main-content width cap */
#main-content .banner-section {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
}

/* Full-bleed only below 900 px */
@media (max-width: 899px) { /* MD */
  #main-content .banner-section {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
  }
}

@media (min-width: 900px) { /* EDGE */
  #main-content .banner-section {
    position: static;
    width: 100%;
    margin: 0 auto 4rem;
    max-width: 1700px;
    padding-bottom: 0;
  }
}

/* Responsive aspect ratio for banners */
@media (max-width: 745px) { /* SM */
  .aj-banner-img {
    aspect-ratio: auto; /* remove fixed landscape ratio on mobile */
  }

  .aj-banner-img img {
    width: 100%;
    height: auto;
    object-fit: contain; /* show full portrait image */
  }
}

/* ====== END Squares + Banner Landscape Images (Production) ====== */


/* ==============================================================
8. Homepage — structural layout & component responsive rules
============================================================== */

/* Hide roundalls on desktop */
@media (min-width: 749px) { /* SM */ 
  .mobile-only,
  .m-roundalls,
  .m-social {
    display: none !important;
  }
}

/* --- 1) Container: flex for clean centering of orphan row --- */
.aj-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto 3rem;
  width: 100%;
  box-sizing: border-box;
}

/* === 2) Each anchor tile (includes iPad orientation fix) === */
.aj-examples > a {
  display: flex;
  justify-content: center;
  align-items: stretch; 
  flex: 1 1 calc((100% - 2 * 2rem) / 3); /* 3 across, flexible */
  text-decoration: none;
  box-sizing: border-box;
}

/* Tablet: 2 across */
@media (min-width: 601px) and (max-width: 1024px) { /* SM–MD */
  .aj-examples > a {
    flex: 1 1 calc((100% - 2rem) / 2); /* two across */
  }

  /* Center the single bottom square */
  .aj-examples > a:last-child:nth-child(odd) {
    flex: 0 1 calc((100% - 2rem) / 2);
    max-width: calc((100% - 2rem) / 2);
    justify-self: center;
  }
}

/* Mobile: single column */
@media (max-width: 600px) { /* XS */
  .aj-examples > a {
    flex: 1 1 100%;
  }

  /* Testimonial slider – mobile portrait spacing only */
  blockquote.ssslide {
    padding-left: 2.8rem;
    padding-right: 2.8rem;
  }

  .slider {
    padding-left: 2.8rem;
    padding-right: 2.8rem;
  }
}

/* === 3) Square wrapper === */
.aj-square-img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  isolation: isolate;
  contain: layout;
  transform: translateZ(0); /* WebKit iPad rotation crop fix */
  cursor: pointer;
  margin: 0;
}

/* Fallback for older browsers that ignore aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .aj-square-img::before {
    content: "";
    display: block;
    padding-top: 100%;
  }
}

/* === 4) Image fills the square completely === */
.aj-square-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  backface-visibility: hidden;
}

/* iPad aspect-ratio correction */
@supports (aspect-ratio: 1 / 1) {
  .aj-square-img {
    aspect-ratio: 1 / 1;
    height: auto;
    contain: strict;
    transform: translateZ(0); /* forces repaint after rotation */
    will-change: contents;
  }
}

@media screen and (max-width: 600px) and (orientation: portrait) { /* XS */
  .aj-examples {
    justify-content: center;
    gap: 5rem;
  }

  .aj-examples > a {
    flex: 0 0 85%;
    max-width: 85%;
  }
}

/* ====================================================
9. Parallax scroll effects homepage only
==================================================== */

/* Banner version */
.aj-banner-img.parallax {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease-out,
    transform 1.4s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Square version */
.aj-square-img.parallax {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 1.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.parallax.in-view {
  opacity: 1;
  transform: translateY(0);
}

.roundall {
  transform: scale(0.95);
  opacity: 0.9;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.roundall.in-view {
  transform: scale(1);
  opacity: 1;
}

.parallax {
  overflow: hidden;   /* contain any pseudo-element like the triangle */
}

/* === Touch-only floating caption box === */
@media (hover: none) and (pointer: coarse) {
  .parallax {
    position: relative;
  }

  .float-caption {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #fff;
    color: #3c4a50;
    font-family: "Karla", sans-serif;
    font-weight: 400;
    font-size: 1.7rem;
    padding: 6px 14px;
    border-radius: 40px;
    opacity: 0;
    transform: translateX(60px);
    transition:
      opacity 0.8s ease-out,
      transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
    transition-delay: 1.0s;
  }

  .parallax.in-view .float-caption {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hide on desktop and hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  .float-caption { display: none; }
}

@keyframes gelatine {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(1.1, 0.9); }
  50% { transform: scale(0.9, 1.1); }
  75% { transform: scale(1.05, 0.95); }
}

/* ====================================================
End Global Baseline (non menu)
==================================================== */

   
/* =================================================
10. Menu & navigation system
==================================================== */

/* --- Menu — core structure (all breakpoints) --- */
.aj-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100%;
    background: #fff;
    transform: none;
    transition: transform .35s ease;
    z-index: 3000;
    border-right: 1px solid #eee;
}

.aj-menu.open {
    transform: translateX(0)
}

.aj-menu .aj-logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: #58d1af;
    padding: 1.5rem
}

.aj-menu-list {
    list-style: none
}

.aj-menu-list li {
    border-bottom: none
}

.aj-menu-list a {
    display: block;
    color: #435869;
    text-decoration: none;
    transition: background .25s ease, color .25s ease
}

.aj-menu-list a:hover {
    font-weight: 700;
    background: 0 0;
    color: #435869
}

body.touch-enabled .aj-menu-list a:hover {
    background: 0 0;
    color: inherit;
    font-weight: 400
}

.aj-menu-panels {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left .35s ease;
    list-style: none
}

.panel.active {
    left: 0
}

.panel.prev {
    left: -100%
}

.panel li a {
    display: block;
    padding: 0.9rem 2.3rem;
    color: #435869;
    text-decoration: none;
    border-bottom: none
}

.panel li.back a {
    background: 0 0;
    font-weight: 700;
    color: #435869
}

.aj-menu-toggle .icon-back {
    display: none
}

.aj-menu-toggle .icon-hamburger {
    display: inline-block
}


/* EDGE BLOCK 3 — MENU / HEADER / NAV — DO NOT MODIFY BELOW WITHOUT TESTING */

/* ====================================================
11. Mobile header (≤900px)
==================================================== */

@media (max-width: 900px) { /* EDGE */

.aj-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 56px;
    width: 100%;
    background: #fff;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
}

.aj-mobile-header .aj-menu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aj-mobile-header .icon-hamburger {
    font-size: 3.5rem;
}

.aj-mobile-header .icon-back {
    font-size: 2.4rem;
    display: none;
    padding-left: 0.2rem;
}

.aj-mobile-header.show-back .icon-back {
    display: inline-block;
}

.aj-mobile-header.show-back .icon-hamburger {
    display: none;
}

.aj-mobile-header .aj-header-logo img {
  height: 23px;
  width: auto;
  display: block;
  filter: invert(27%) sepia(72%) saturate(352%) hue-rotate(110deg) brightness(89%) contrast(82%);
  margin-bottom: 0.5rem; 
}

.aj-mobile-header .aj-header-logo {
  display: flex;
  align-items: center;
}

.aj-mobile-header .aj-header-icons {
    display: flex;
    gap: 25px;
    padding-right: 20px;
}

.aj-menu {
    display: block; 
    top: 56px;
    height: calc(100% - 56px);

    /* explicit CLOSED state */
    transform: translateX(-100%);
    pointer-events: none;
}

/* This is additional to the working aj-site css */
.aj-menu.open {
    transform: translateX(0);
    pointer-events: auto;
  }

.aj-header-left {
    padding-left: 0.6rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.aj-mobile-header .icon-back,
.aj-mobile-header .icon-hamburger {
    color: #435869;
}

.aj-mobile-header .icon-close:before {
    content: "\e117";
    font-size: 2.5rem;
    color: #435869;
    position: relative;
    top: 3px;
}

.aj-menu-toggle span {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.icon-hamburger {
    position: relative;
    left: -1px;
    top: -3px;
}

.icon-back {
    position: relative;
    left: -1px;
    top: 2px;
}

.aj-mobile-header .aj-menu-toggle {
    width: 40px;
    min-width: 40px;
    text-align: center;
}

.aj-header-icons a {
    color: #41cba4;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Social icons */
  .aj-mobile-header .aj-header-icons {
      gap: 25px;
  }

.aj-header-icons .icon-instagram {
    font-size: 2rem;
    padding-bottom: 0.2rem;
}

.aj-header-icons .icon-linkedin {
    font-size: 1.8rem;
    padding-left: 0.7rem;
    padding-bottom: 0.2rem;
}

.aj-header-icons .icon-email {
    font-size: 1.8rem;
    padding-left: 0.2rem;
    padding-bottom: 0.2rem;
}

.panel.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.aj-menu .desktop-social a {
  color: #58D1AF;
  font-size: 1.9rem;
  margin-top: 0.6rem;
  display: inline-block;
}

.aj-menu .desktop-social .icon-linkedin {
    margin-bottom: 0.8rem;
}

/* Mobile safety fixes */
.aj-desktop-back {
    display: none !important;
}

body {
    padding-top: 56px;
}

/* Subheading: Case Studies */
.panel li.menu-subheading {
    padding: 1.2rem 2.3rem 0.9rem 2.3rem;
    font-size: 2.0rem;
    font-weight: 700;
    color: #34a484;
    letter-spacing: -0.09rem;
    cursor: default;
    padding-left: 3.3rem;
}

.panel {
padding-top: 1.2rem;
}

.panel li a {
    font-size: 2.0rem;
    font-weight: 400;
    padding-left: 3.3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ====================================
END Menu system
==================================== */


/* ====================================================
12. RESPONSIVE ADJUSTMENTS & SAFETY OVERRIDES
NOTE:
- Late-stage responsive tweaks and corrections
- Includes breakpoint-specific layout adjustments
- Includes menu safety overrides that must remain late
- Touches multiple areas (menu, grids, animations, icons)
- DO NOT move earlier without regression testing
==================================================== */

/* Starting position — whole roundall sits LOWER */
.float-typo {
  transform: translateY(20%) scale(0.95);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.7s ease;
  transition-delay: 0.35s;
}

/* When in view — whole roundall moves UP into perfect centre */
.float-typo.in-view {
  transform: translateY(0%) scale(1);
  opacity: 1;
}

/* PROJECT NAV – MOBILE ADJUSTMENTS */
  .project-nav {
    gap: 5.0rem;            /* reduce space around arrows */
    margin-top: 2rem;
    margin-bottom: 0.8rem;
  }

  .project-nav .nav-arrow {
    width: 42px;
    height: 42px;
  }

.row.content.bottom .project-nav,
.row.bottom.content .project-nav {
  gap: 5.0rem !important;   /* forces arrows inward */
  margin-top: 4rem;
  margin-bottom: 6rem;
}

/* Roundall — mobile override (must follow baseline Roundall rules) */
/* Hide Sticky About Me Roundall on tablet/mobile once mobile header appears */
  .roundall-desktop {
    display: none;
  }
  
/* EDGE SAFETY — prevent transient animation during breakpoint switch */
/* MENU — EDGE SAFETY (kept intentionally at end of MD block) */
.aj-menu {
  transition-property: none !important;
}
} 
/* end max-width: 900px */

/* ---------------------------------------
Tablet breakpoints (700–899px)
--------------------------------------- */

@media (min-width: 700px) and (max-width: 899px) { /* MD */
  .aj-mobile-header {
    height: 56px;
  }

  body {
    padding-top: 56px;
  }

.panel {
    padding-top: 3.1rem;
}

/* HAMBURGER */
  .aj-mobile-header .icon-hamburger { 
    font-size: 3.5rem;
    color: #6b6b6b;
  }

/* CLOSE (X) */
  .aj-mobile-header .icon-close:before {
    content: "\e117";
    font-size: 2.5rem;
    color: #435869;
    position: relative;
    top: 4px;
  }

/* BACK ARROW — one rule only */
  .aj-menu-toggle .icon-back {
    font-size: 2.7rem;
    padding-left: 0.3rem;
    margin-left: 2px;
    margin-top: 5px;
  }

  .aj-menu .desktop-social .icon-linkedin {
    margin-bottom: 0.8rem;
}

  .aj-menu .desktop-social a {
      padding-top: 2.0rem;
  }

/* PROJECT NAV – TABLET OVERRIDES */
  .project-nav {
    gap: 8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.4rem;
  }

  .project-nav .nav-arrow {
    width: 44px;       /* between mobile 22 and desktop 44 */
    height: 44px;
  }

.row.content.bottom .project-nav,
.row.bottom.content .project-nav {
  gap: 6rem !important;   /* forces arrows inward */
  margin-top: 4rem;
  margin-bottom: 6rem;
}

  .services-grid {
    grid-template-columns: repeat(2, 1fr);  /* 2 across */
    width: 90%;                             /* not full width */
    gap: 5.0rem 2rem;
  }

  .service-item img {
    width: 160px;
  }
} 
/* end (min-width: 700p)x and (max-width: 899px) */

/* ----------------------------------------------
Landscape-specific tweaks for mobile layout
---------------------------------------------- */

@media screen and (max-width: 900px) and (orientation: landscape) and (hover: none) and (pointer: coarse) { /* EDGE */
/*  scale banners a bit smaller */
.aj-banner-img {
    max-width: 87%;
    margin: 0 auto;
  }

  /* make text slightly larger for readability */
  body {
    font-size: 17px;
  }

  /* Step 1: force a single row of three, equal base width  */
  .aj-examples {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.3rem;
  }

  .aj-examples>a {
    flex: 0 0 clamp(180px, 28vw, 210px);
    display: block;
  }

  /* Step 2: stop the last image from expanding */
  .aj-examples>a:last-child {
    flex: 0 0 200px !important;
    max-width: 200px !important;
    justify-self: auto !important;
    margin: 0 !important;
  }

  /* About Me Page: Services Icon grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 across */
    width: 80%;
    /* not full width */
    gap: 4.5rem 2rem;
  }

  .service-item img {
    width: 150px;
  }
}

/* END - Landscape-specific tweaks for mobile layout */


/* ---------------------------------------
DESKTOP BREAKPOINTS (≥901px)
--------------------------------------- */

@media (min-width: 901px) { /* LG */
  /* Hide mobile header on desktop */
  .aj-mobile-header {
    display: none !important;
}

/* Desktop menu positioning */
.aj-menu {
    display: block !important;
    transform: none !important;    /* explicit OPEN */     /* was translateX(0) */
    transition: none !important;        /* stops tray sliding animation */

    /* your custom desktop alignment */
    top: 70px;
    left: 1.1rem;

    height: 100vh !important;

    /* Don't show white tray */
    background: none !important;
    box-shadow: none !important;
    border-right: none !important;
}

/* Also remove background from sub-elements */
.aj-menu,
.aj-menu-list,
.panel {
    background: none !important;
    box-shadow: none !important;
    border-right: none !important;
}

.panel li a {
  display: inline-block;
  padding-left: 1.6rem;
  padding-top: 0.35rem;
  padding-bottom: 0.80rem;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.09rem;
}

  .panel {
    padding-top: 1.0rem;   /* smaller value = tighter gap */
}

.aj-desktop-back .icon-arrow-left:before {
  font-family: bang-icons !important;
}

.aj-desktop-back-container {
  padding: 0 2.2rem 0 1.6rem;
  list-style: none;
}

.aj-desktop-back {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #435869;
}

.aj-desktop-back .icon-arrow-left {
  font-size: 2.0rem;
  color: #435869;
}

.aj-desktop-back:hover .icon-arrow-left {
  font-weight: 800;
  font-size: 2.2rem;
}

/* Show desktop back arrow only when the projects submenu is active */
.panel[data-panel="projects"].active .aj-desktop-back {
  display: block;
}

.panel li.menu-subheading {
  padding: 0.4rem 1.6rem 0.7rem 1.6rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: #435869;
  cursor: default;
  letter-spacing: -0.09rem;
}

.desktop-social a {
  display: inline-block;      /* required for transform */
  padding: 0.6rem 1.6rem;     /* matches menu item alignment */
  color: #435869;
  font-size: 1.2rem;
  text-decoration: none;
  transform-origin: left center;
  transition: transform 0.05s ease-in-out; 
}

.desktop-social a:hover {
  transform: scale(1.1);
}

/* Add vertical spacing above the FIRST social icon */
.desktop-social .icon-instagram {
  margin-top: 1.5rem; 
  font-size: 1.8rem;
  display: inline-block;  /* required so margin-top actually applies */
}

.desktop-social .icon-linkedin {
  margin-top: 1.2rem; 
  font-size: 1.9rem;
  display: inline-block;  /* required so margin-top actually applies */
}

.desktop-social .icon-email {
  margin-top: 1.7rem; 
  font-size: 1.7rem;
  display: inline-block;  /* required so margin-top actually applies */
}

/* Style shared behavior for the icons */
.desktop-social a {
  display: inline-block;
  padding: 0.4rem 1.6rem;
  font-size: 1.2rem;
  color: #435869;
}

.desktop-social a:hover {
  transform: scale(1.05);
}

body.scrolled .desktop-social a {
  color: #58D1AF;
}

/* Let clicks pass through empty parts of the menu panel on desktop */
.aj-menu-panels {
  pointer-events: none;
}

/* Re-enable pointer events on actual menu items */
.aj-menu-panels .panel li a,
.aj-menu-panels .desktop-social a,
.aj-menu-panels .aj-desktop-back {
  pointer-events: auto;
} 

/* Allow clicks to pass through empty parts of the left column */
.aj-menu {
  pointer-events: none;     /* disable pointer events on the container */
}

/* Re-enable clicking on actual interactive items */
.aj-menu .panel li a,
.aj-menu .desktop-social a,
.aj-menu .aj-desktop-back {
  pointer-events: auto;
}  

/* ===== FORCE LOGO + BADGE INLINE (DESKTOP ONLY) ===== */
.bang-logo {
  display: flex !important;
  align-items: center;
}

.bang-logo .aj-logo-link {
  display: flex !important;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.bang-logo .aj-logo {
  display: block;
  margin: 0;
}

/* -------------------------------------------
AJ Availability Badge — Desktop Only
------------------------------------------- */

.aj-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none; 
}

/* Badge wrapper */
.aj-availability {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
  line-height: 1.4;
  font-size: 1.4rem; 
  color: #435869; 
  white-space: nowrap;
}

/* First line: Availability + dot */
.aj-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

/* Second line */
.aj-hire {
  font-weight: 400;
}

/* Status dot */
.aj-dot {
  width: 9px;
  height: 9px;
  background: #66FF00;
  border-radius: 50%;
  border: 1px solid #fff;
  transform: translateY(1px);
}

body.aj-scroll-started .aj-availability {
  opacity: 0 !important;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* HOMEPAGE INTRO SEQUENCE — hide menu, availability & logo until hero animation completes */
body.home .aj-menu,
body.home .aj-availability,
body.home .bang-logo {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Animate Menu & Avail – HOMEPAGE ONLY */
body.home.hero-ready .aj-menu,
body.home.hero-ready .aj-availability,
body.home.hero-ready .bang-logo {
  opacity: 1;
  transform: translateY(0);
}

/* Hide logo initially – homepage only */
body.home .aj-logo {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Reveal logo with hero – homepage only */
body.home.hero-ready .aj-logo {
  opacity: 1;
  transform: translateY(0);
}

/* Hide availability badge on all NON-home pages */
body:not(.home) .aj-availability {
  display: none;
}

/* Lock social icons to aqua on NON-home pages */
body:not(.home) .desktop-social a {
  color: #58D1AF;
}

/* TOP PROJECT NAV – DESKTOP ONLY */
/* (Targets only the TOP heading section) */

.row.content.top .project-nav {
  gap: 10rem;     /* space between arrows and H1 */
}

.row.content.top .project-nav .nav-arrow {
  width: 48px;
  height: 48px;
}

/* -------------------------------------------
BOTTOM PROJECT NAV – DESKTOP ONLY
------------------------------------------- */

.row.content.bottom .project-nav,
.row.bottom.content .project-nav {
  justify-content: center;
  gap: 8rem;
  margin-top: 8rem;         /* lifted away from content */
  margin-bottom: 7rem;
}

.row.content.bottom .project-nav .nav-arrow {
  width: 48px;
  height: 48px;
  }
}

/* ====================================================
END RESPONSIVE ADJUSTMENTS & SAFETY OVERRIDES
==================================================== */


/* -------------------------------------------
DESKTOP ICONS — ACTIVE
------------------------------------------- */

.aj-mobile-header .icon-close {
    display: none
}

.aj-mobile-header.open .icon-close {
    display: inline-block !important
}

.aj-mobile-header.show-back .icon-close,
.aj-mobile-header.show-back .icon-hamburger {
    display: none !important
}

.aj-mobile-header.show-back .icon-back {
    display: inline-block !important
}

.icon-close {
    font-family: bang-icons !important
}

.icon-close:before {
    content: "\e117" !important;
    color: #686868 !important;
    font-size: 1.6rem
}

.aj-mobile-header.open .icon-hamburger {
    display: none !important
}

/* ==================================================================
13. HERO SYSTEM — layout + responsive rules
Wapper, image strips, typography, scroill arrow (mobile)
NOTE:
- Includes hero layout, image strip animation, headline typography
- Includes ALL hero-related media queries
- Behavioural system (NOT baseline)
================================================================== */

/* -------------------------------------------
HERO WRAPPER
------------------------------------------- */

.hero-static {
  position: relative;
  height: clamp(470px, 50vw, 660px);
  min-height: unset;
  isolation: isolate;
  overflow: visible;
  background: #000;
}

/* Scroll arrow */
.hero-scroll-arrow-below {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);  /* horizontal centering ONLY */
  display: block;
  width: auto;
  text-align: center;
  padding: 0;
  line-height: 1;
  color: #ffffff;
  opacity: 0.9;
  text-decoration: none;
  z-index: 10;
}

.hero-scroll-arrow-below svg {
  display: inline-block;
  width: 88px;
  height: 88px;
  animation: heroArrowPulse 1.2s ease-in-out infinite;
}

@keyframes heroArrowPulse {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(8px); }
  100% { transform: translateY(0); }
}

#intro-blurb {
  scroll-margin-top: 50px;
}

/* -------------------------------------------
HERO STRIP IMAGE STACK
------------------------------------------- */

.hero-strips {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
  overflow: hidden;
}

.hero-strip {
  position: relative;
  overflow: hidden;
  margin-bottom: -0.5px;
}

.hero-strip img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: right center;
  display: block;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #48E1B3;
  z-index: 0;
}

/* Strip reveal */
.hero-strip::before,
.hero-strip img {
  transform: translateY(100%);
  animation: heroStripReveal 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-strip:nth-child(1)::before,
.hero-strip:nth-child(1) img { animation-delay:   0ms; }
.hero-strip:nth-child(2)::before,
.hero-strip:nth-child(2) img { animation-delay: 120ms; }
.hero-strip:nth-child(3)::before,
.hero-strip:nth-child(3) img { animation-delay: 240ms; }
.hero-strip:nth-child(4)::before,
.hero-strip:nth-child(4) img { animation-delay: 360ms; }

@keyframes heroStripReveal {
  from { transform: translateY(100%); }
  to   { transform: translateY(0%); }
}

/* Static corner glow — reduced spread, no animation */
.hero-strips::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 8% 8%,
      rgba(80, 200, 255, 0.55),
      rgba(0, 0, 0, 0) 65%),
    radial-gradient(circle at 18% 16%,
      rgba(140, 255, 220, 0.35),
      rgba(0, 0, 0, 0) 76%);
}

/* -------------------------------------------
HERO HEADLINE TEXT – BASE DESKTOP
------------------------------------------- */

.hero-text {
  position: absolute;
  z-index: 9999;
  left: 47%;
  top: 40%;
  transform: translate(-50%, -36%);
  margin: 0;
  width: fit-content;
  max-width: 100%;

  color: #ffffff;
  font-family: "Elsie Swash Caps", serif;
  font-weight: 900;
  line-height: 0.80;
  font-variant-ligatures: none;
  letter-spacing: -0.5em;
}

/* Single global font scale – NO breakpoint jumps */
.hero-line {
  font-size: clamp(12rem, 14.2vw, 18.8rem);
  white-space: nowrap;
}

/* Lift hero text slightly for ≥601px (desktop + tablet) */
@media (min-width: 601px) { /* SM */
  .hero-text {
    top: 37%;
    transform: translate(-50%, -36%);
  }
}

/* Custom stepped offsets (desktop-style layout) */
.line-1 { margin-left: 10.7vw; }
.line-2 { margin-left: 17.2vw; }
.line-3 { margin-left: 3.3vw;  }
.line-4 { margin-left: 13.5vw; }

.desktop-only { display: inline; }
.mobile-only  { display: none; }

/* Text animation wrappers */
.hero-move {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  will-change: transform, opacity;
}

/* -------------------------------------------
HERO WIDTH-BASED LAYOUT TWEAKS
Breakpoints: ≤600, 601–900, ≥901
------------------------------------------- */

/* ≤600px – phones (landscape + portrait base) */
@media (max-width: 600px) { /* XS */
  .hero-text {
    left: 50%;
    margin: 0;
    width: fit-content;
    max-width: 100%; 
  }

.hero-line {
  white-space: nowrap;
  }
}

/* ≤600px & portrait – mobile hero crop + text tweaks + split word */
@media (max-width: 600px) and (orientation: portrait) { /* XS */
  .hero-static {
    min-height: 87svh;
    max-height: 94svh;
    width: 100vw;
    overflow: hidden;
    padding-top: 64px;
    padding-bottom: 0;
    position: relative;
  }

  .hero-scroll-arrow-below {
    bottom: 0px;
  }

  .hero-line {
    font-size: clamp(10.3rem, 15.5vw, 16.8rem);
  }

  .hero-text {
    top: 38%;
    transform: translate(-50%, -36%);
    line-height: 0.83;
    letter-spacing: -0.4em;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    backface-visibility: hidden;
  }

  .line-1 { margin-left: 4vw;  }
  .line-2 { margin-left: -5vw; }
  .line-3 { margin-left: 16vw; }
  .line-4 { margin-left: 14vw;  }

  .line-3 .mobile-main {
    position: relative;
    top: 7px;
  }

  .line-3 .mobile-fragment {
    display: inline-block;
    position: relative;
    left: -32vw;
  }

  .desktop-only { display: none; }
  .mobile-only  { display: inline; }
}

/* ≤900px & landscape – mobile landscape hero shaping */
@media (max-width: 900px) and (orientation: landscape) { /* EDGE */

  .hero-static { 
    height: clamp(360px, 35vw, 500px);
  } 

  .hero-line { 
    font-size: clamp(10.4rem, 11vw, 12.2rem);
  } 

  .hero-text { 
    line-height: 0.80;
    letter-spacing: -0.2em;
    top: 48%;
    left: 45% !important; 
    transform: translate(-50%, -50%);
  }

  .hero-scroll-arrow-below {
  display: none;
  }
}

/* Desktop override when narrow but tall (must be AFTER the portrait rule) */
@media (max-width: 600px) and (pointer: fine) { /* XS */
  .hero-static {
    height: 580px;
    min-height: 0;
    max-height: none;
  }

  /* Mobile font size reduction */
  .hero-line {
    font-size: clamp(10.9rem, 15.7vw, 12rem);
  }

  .hero-text {
    top: 51%;
    left: 58%; 
    transform: translate(-50%, -50%) scale(1.11);
    transform-origin: center bottom;
  }
  /* Narrow desktop tweak: align 'Design' line with stepped layout */
  .line-4 {
    margin-left: 8vw;
  }
}

/* Hide scroll arrow by default */
.hero-scroll-arrow-below {
  display: none;
}

/* Show ONLY on narrow portrait (mobile + narrow browser) */
@media (max-width: 600px) and (orientation: portrait) { /* XS */
  .hero-scroll-arrow-below {
    display: block;
  }
}

/* iPad / tablet portrait hero text bump */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) { /* MD */
  .hero-line {
    font-size: clamp(13.5rem, 14.5vw, 15.6rem);
  }

.hero-text {
    left: 50%;
  }

  .hero-static {
    height: clamp(400px, 43vh, 560px);
  }
}

/* ====================================================
END HERO SYSTEM
==================================================== */

   