/* ==========================================================================
   Lohabour — index.css
   Homepage-only sections. Assumes base.css is already loaded for
   variables, typography, buttons, reveal system, section primitives,
   tags, header, and footer.
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section--reverse .split {
  direction: rtl;
}

.section--reverse .split>* {
  direction: ltr;
}

.split__media {
  width: 100%;
  overflow: hidden;
}

.split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform 0.8s var(--ease-soft);
}

.split__media:hover img {
  transform: scale(1.02);
}

.split__media:hover img {
  transform: scale(1.03);
}

.media-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 239, 232, 0.45);
}

.media-caption::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

.whatwedo__line {
  margin-top: 20px;
}



/* ---------------- Hero / full-bleed media sections ---------------- */

.hero {
  position: relative;

  min-height: 100vh;
  min-height: 100svh;

  display: flex;
  align-items: flex-end;

  padding-top: 120px;
  padding-bottom: 8vh;

  overflow: hidden;

  background: var(--bg-secondary);
}

.hero__media {
  position: absolute;
  top: -40px;
  right: 0;
  bottom: -40px;
  left: 0;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;

}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  z-index: 0;
  transform: scale(1.08);
  transition: transform 5.5s var(--ease-soft);
}

.hero__media.is-inview img {
  transform: scale(1);
}

.hero__media--parallax img {
  transition-duration: 7.5s;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(90deg,
      rgba(10, 10, 9, 0.78) 0%,
      rgba(10, 10, 9, 0.62) 42%,
      rgba(10, 10, 9, 0.24) 75%,
      rgba(10, 10, 9, 0.20) 100%),
    linear-gradient(180deg,
      rgba(10, 10, 9, 0.28) 0%,
      rgba(10, 10, 9, 0.22) 45%,
      rgba(10, 10, 9, 0.94) 100%);
}

.hero__gradient--strong {
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.55) 0%, rgba(10, 10, 9, 0.85) 100%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.hero__particles canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.75;
}

@media (max-width: 600px) {
  .hero__particles canvas {
    opacity: 0.55;
  }
}

@media (max-width: 380px) {
  .hero__particles canvas {
    opacity: 0.42;
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}


/* ================= HERO ENTRANCE ================= */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero__kicker {
  animation: heroFadeUp 0.9s var(--ease-soft) 0.15s both;
}

.hero__headline {
  animation: heroFadeUp 1s var(--ease-soft) 0.30s both;
}

.hero__sub {
  animation: heroFadeUp 1s var(--ease-soft) 0.45s both;
}

.hero__tags {
  animation: heroFadeUp 1s var(--ease-soft) 0.58s both;
}

.hero__ctas {
  animation: heroFadeUp 1s var(--ease-soft) 0.70s both;
}

.hero__meta {
  animation: heroFadeUp 1s var(--ease-soft) 0.85s both;
}


.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 239, 232, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--accent);
}

.hero__headline {
  max-width: 980px;
  margin: 0;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 300;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__sub {
  max-width: 620px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(241, 239, 232, 0.78);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}


.hero__tags {
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__meta {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  justify-content: flex-start;
}

@media (max-width: 900px) {

  .hero {
    min-height: 100svh;
    padding-bottom: 7vh;
  }

  .hero__inner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .hero__headline {
    max-width: 760px;
    font-size: clamp(48px, 8vw, 72px);
    line-height: 0.98;
  }

  .hero__sub {
    max-width: 560px;
    font-size: 16px;
    line-height: 1.65;
    margin-top: 20px;
  }

  .hero__tags {
    margin-bottom: 26px;
  }

  .hero__ctas {
    gap: 12px;
  }

  .hero__meta {
    margin-top: 30px;
  }
}

/* ================= HERO — MOBILE ================= */

@media (max-width: 740px) {

  .hero {
    min-height: 100svh;
    align-items: center;
    padding: 70px 0 42px;
  }

  .hero__inner {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__kicker {
    margin-bottom: 14px;
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: 0.12em;
  }

  .hero__headline {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 58px);
    line-height: 0.94;
    letter-spacing: -0.045em;
  }

  /* More breathing room after the headline */
  .hero__sub {
    max-width: 100%;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.65;
  }

  /* More separation from paragraph */
  .hero__tags {
    margin-top: 18px;
    margin-bottom: 26px;
    font-size: 9px;
    line-height: 1.6;
  }

  .hero__ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 9px;
  }

  .hero__ctas .btn {
    width: min(100%, 320px);
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  /* Keep hidden on mobile */
  .hero__meta {
    display: none;
  }
}

/* ================= SMALL PHONES ================= */

@media (max-width: 380px) {

  .hero {
    padding-top: 55px;
    padding-bottom: 30px;
  }

  .hero__kicker {
    margin-bottom: 11px;
  }

  .hero__headline {
    font-size: 40px;
    line-height: 0.94;
  }

  .hero__sub {
    margin-top: 19px;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero__tags {
    margin-top: 15px;
    margin-bottom: 21px;
    font-size: 8px;
    line-height: 1.55;
  }

  .hero__ctas {
    gap: 8px;
  }

  .hero__ctas .btn {
    width: min(100%, 290px);
    min-height: 42px;
  }
}

/* ================================================================
   SHORT DESKTOP SCREENS
   Allow the hero to become taller than the viewport.
   Text size stays exactly the same.
================================================================ */

@media (min-width: 741px) and (max-height: 750px) {

  .hero {
    min-height: 750px;
    height: auto;

    padding-top: 100px;
    padding-bottom: 60px;

    overflow: visible;
  }

  .hero__media {
    position: absolute;
    inset: 0;
  }
}


/* ---------------- Manufacturing ---------------- */

.section--manufacturing {
  position: relative;
  overflow: hidden;
  padding: 160px 0;
  color: var(--text);
}

.section--manufacturing .container {
  position: relative;
  z-index: 2;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin: 56px 0 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.stat__value--text {
  font-size: clamp(20px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat__label {
  color: rgba(241, 239, 232, 0.6);
}

.manufacturing__capabilities {
  margin: 0 0 32px;
}

/* ---------------- Solutions — visual cards ---------------- */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.sector-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: block;
  border: 1px solid var(--border);
}

.sector-card__media {
  position: absolute;
  inset: 0;
}

.sector-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition:
    transform 0.9s var(--ease-soft),
    filter 0.9s var(--ease-soft);
  filter: saturate(0.9) brightness(0.85);
}

.sector-card:hover .sector-card__media img {
  transform: scale(1.1);
  filter: saturate(1) brightness(0.7);
}

.sector-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.05) 0%, rgba(10, 10, 9, 0.85) 100%);
  transition: background 0.5s var(--ease);
}

.sector-card:hover .sector-card__overlay {
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.1) 0%, rgba(10, 10, 9, 0.92) 100%);
}

.sector-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  z-index: 2;
}

.sector-card__ref {
  margin-bottom: 10px;
  color: rgba(241, 239, 232, 0.6);
}

.sector-card__body h3 {
  font-size: 21px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.sector-card__items {
  font-size: 13px;
  color: rgba(241, 239, 232, 0.65);
  margin-bottom: 14px;
  max-width: 30ch;
}

.sector-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.sector-card__arrow {
  transition: transform 0.35s var(--ease);
}

.sector-card:hover .sector-card__arrow {
  transform: translateX(5px);
}

/* ---------------- Project showcase ---------------- */

.project-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin: 40px 0 32px;
}

.project-card {
  display: block;
  grid-column: span 2;
  position: relative;
}

.project-card--featured {
  grid-column: span 4;
}

.project-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-soft);
}

.project-card:hover .project-card__media img {
  transform: scale(1.06);
}

.project-card__meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 18px;
}

.project-card__meta h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 3px 0 1px;
  transition: color 0.3s var(--ease);
}

.project-card__location {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.project-card:hover .project-card__meta h3 {
  color: var(--accent);
}

.project-card__location {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ---------------- Timeline / process ---------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  position: relative;
  margin-bottom: 16px;
}

.timeline__step {
  padding: 30px 24px 0 0;
  border-right: 1px solid var(--border);
  transition: transform 0.4s var(--ease);
}

.timeline__step:hover {
  transform: translateY(-4px);
}

.timeline__step:last-child {
  border-right: none;
}

.timeline__num {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.timeline__step h3 {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.timeline__step p {
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
  max-width: 24ch;
}

/* ---------------- Material gallery ---------------- */

.material-gallery {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 12px;
  margin: 32px 0 24px;
}

.material-gallery__item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: auto;
}

.material-gallery__item:first-child {
  grid-row: 1 / 3;
}

.material-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  filter: saturate(0.88);
  transform: scale(1);

  transition:
    transform 0.8s var(--ease-soft),
    filter 0.8s var(--ease);
}

.material-gallery__item:hover img {
  transform: scale(1.045);
  filter: saturate(1);
}

.material-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;

  background:
    linear-gradient(180deg,
      transparent 45%,
      rgba(10, 10, 9, 0.78) 100%);

  pointer-events: none;
}

.material-gallery__label {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;

  margin: 0;

  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.14em;
}

@media (max-width: 900px) {

  .material-gallery {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 260px 260px;
  }

  .material-gallery__item:first-child {
    grid-row: 1 / 3;
  }

}

@media (max-width: 600px) {

  .material-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 180px;
    gap: 8px;
    margin-top: 28px;
  }

  .material-gallery__item:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .material-gallery__label {
    left: 14px;
    bottom: 13px;
    font-size: 10px;
  }

}

/* ---------------- Collection ---------------- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}

.collection-tile {
  display: block;
}

.collection-tile__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 16px;
}

.collection-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-soft);
}

.collection-tile:hover .collection-tile__media img {
  transform: scale(1.05);
}

.collection-tile h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px;
  transition: color 0.3s var(--ease);
}

.collection-tile:hover h3 {
  color: var(--accent);
}

.collection-tile p {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------------- CTA banner ---------------- */

.cta-banner {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner .hero__media img {
  object-position: bottom;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner .display {
  margin: 16px auto 20px;
}

.cta-banner .lede {
  margin: 0 auto 32px;
}

.cta-banner__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cta-banner .mono-label {
  justify-content: center;
}

/* ---------------- Responsive (page-specific) ---------------- */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .section--reverse .split {
    direction: ltr;
  }

  .project-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .project-card,
  .project-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .project-showcase {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--featured {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline__step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    transform: scale(1);
    transition: none;
  }
}