/* ============================================================
   GTH VENTURE SDN BHD — styles.css
   Aesthetic: Bold Authority | Bebas Neue + Plus Jakarta Sans
   Palette: #ED2F2E red · #010101 black · #FFFFFF white
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --red:          #ED2F2E;
  --red-dark:     #c42020;
  --black:        #010101;
  --dark:         #111111;
  --grey:         #454545;
  --grey-mid:     #888888;
  --grey-light:   #f4f4f4;
  --border:       #e0e0e0;
  --white:        #FFFFFF;

  --font-head:    'Bebas Neue', Impact, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --max-w:        1200px;
  --pad:          1.25rem;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

ul[role="list"] { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn--full { width: 100%; justify-content: center; }

.btn:active { transform: scale(0.98); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 0.75rem 0;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--white);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav.scrolled .nav__links a { color: var(--grey); }
.nav__links a:hover { color: var(--red) !important; }

.nav__join {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav__join:hover { background: var(--red-dark) !important; }

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav.scrolled .nav__burger span { background: var(--black); }

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--black);
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 1.25rem;
  z-index: 99;
}

.nav__links.open a { color: var(--white) !important; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* ── NAV RIGHT GROUP ─────────────────────────────────────── */
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;  /* mobile: just lang-switcher + burger */
}

@media (min-width: 768px) {
  .nav__right {
    gap: 0; /* reset — control spacing individually below */
  }

  /* push lang-switcher away from the links with a subtle divider */
  .nav__right .lang-switcher {
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.15);
  }
  .nav.scrolled .nav__right .lang-switcher {
    border-left-color: rgba(0,0,0,0.12);
  }
}

/* ── LANGUAGE SWITCHER ───────────────────────────────────── */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-switcher__btn svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lang-switcher__btn:hover {
  border-color: var(--red);
  background: rgba(237,47,46,0.1);
}
.lang-switcher__btn[aria-expanded="true"] {
  border-color: var(--red);
}
.lang-switcher__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* scrolled state */
.nav.scrolled .lang-switcher__btn {
  border-color: rgba(0,0,0,0.2);
  color: var(--grey);
}
.nav.scrolled .lang-switcher__btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(237,47,46,0.06);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  min-width: 148px;
  padding: 0.35rem 0;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.lang-switcher__menu[hidden] { display: none; }

.lang-switcher__opt {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.lang-switcher__opt:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.lang-switcher__opt--active {
  color: var(--red);
  font-weight: 700;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(5rem, 12vh, 7rem); /* room for badge above safe area */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(1,1,1,0.85) 0%,
    rgba(1,1,1,0.55) 40%,
    rgba(1,1,1,0.30) 75%,
    rgba(1,1,1,0.20) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(1,1,1,0.75) 0%,
      rgba(1,1,1,0.35) 50%,
      rgba(1,1,1,0.15) 100%
    );
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 14vh, 8rem) var(--pad) clamp(1rem, 3vh, 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(0.875rem, 2vw, 1.5rem);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow {
  font-size: clamp(0.7rem, 1.6vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.hero__headline {
  font-family: var(--font-head);
  /* min 2.6rem (42px) — fits "TRANSFORM." inside 375px minus 2× 1.25rem padding */
  font-size: clamp(2.6rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hero__line--in,
.hero__line--in2 { padding-left: 0; }    /* no indent on mobile */
.hero__line--red { color: var(--red); }

.hero__sub {
  color: rgba(255,255,255,0.7);
  font-size: clamp(0.9rem, 1.6vw, 1.0625rem);
  max-width: 44ch;
  line-height: 1.65;
  margin: 0;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  width: 100%;
}

.hero__actions .btn {
  flex: 1 1 auto;
  min-width: 8rem;
  text-align: center;
  justify-content: center;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

@keyframes heroKenBurns {
  from { transform: scale(1);    }
  to   { transform: scale(1.08); }
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: heroKenBurns 6s ease-in-out forwards;
  will-change: opacity, transform;
}

.hero__slide--active {
  opacity: 1;
}

.hero__badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.hero__badge-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero__badge-year {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.05em;
}

/* ≥ 600px: small tablets — buttons stop being full-width */
@media (min-width: 600px) {
  .hero__actions {
    width: auto;
  }
  .hero__actions .btn {
    flex: 0 0 auto;
    min-width: 0;
  }
}

/* ≥ 768px: tablet — re-enable signature indents (fluid, not fixed rem) */
@media (min-width: 768px) {
  .hero__content {
    padding: clamp(6rem, 14vh, 9rem) var(--pad) clamp(3rem, 6vh, 5rem);
  }
  .hero__line--in  { padding-left: clamp(1.5rem, 3vw, 2.5rem); }
  .hero__line--in2 { padding-left: clamp(3rem,   6vw, 5rem);   }

  .hero__badge {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1rem;
  }
}

/* ≥ 1024px: desktop polish */
@media (min-width: 1024px) {
  .hero__content {
    gap: 1.5rem;
  }
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee {
  background: var(--red);
  overflow: hidden;
  padding: 0.85rem 0;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.1em;
  color: var(--white);
}

.marquee__track .dot {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about {
  padding: 5rem 0;
  background: var(--white);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--black);
}

.about__text p {
  color: var(--grey);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 52ch;
}

.about__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0.5rem 0;
}

.about__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about__meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.about__meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}

.about__visual {
  position: relative;
}

/* ── CARD DECK ───────────────────────────────────────────── */
.card-deck {
  position: relative;
  width: 100%;
  height: 400px;
}

.card-deck__card {
  position: absolute;
  width: 84%;
  left: 8%;
  top: 0;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  will-change: transform, opacity;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.14),
    0 1px 4px rgba(0,0,0,0.08);
}

.card-deck__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.card-deck__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.card-deck__card.is-top {
  box-shadow:
    0 12px 40px rgba(0,0,0,0.22),
    0 2px 8px rgba(0,0,0,0.12),
    0 0 0 2px var(--red);
}

@media (min-width: 768px) {
  .card-deck { height: 440px; }
  .card-deck__card { width: 80%; left: 10%; }
}

@media (min-width: 768px) {
  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .about__text { flex: 0 0 50%; }
  .about__visual { flex: 1; }
}

/* ── SERVICES ────────────────────────────────────────────── */
.services {
  background: var(--black);
  padding-bottom: 0;
}

.services__header {
  padding: 4rem 0 2.5rem;
}

.services__heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
}

.services .section-label {
  color: var(--red);
}

/* 2×2 image card grid */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: #1a1a1a;
}

.svc-card {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.svc-card__img {
  position: absolute;
  inset: 0;
}

.svc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.65);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s ease;
}

.svc-card:hover .svc-card__img img {
  transform: scale(1.06);
  filter: brightness(0.4) saturate(0.55);
}

.svc-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.4)  45%,
    transparent      100%
  );
}

.svc-card__num {
  position: absolute;
  top: 1.25rem;
  left: 2rem;
  font-family: var(--font-head);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: color 0.4s;
}

.svc-card:hover .svc-card__num {
  color: rgba(237,47,46,0.25);
}

.svc-card__content { width: 100%; }

.svc-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.svc-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 1rem;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.svc-card:hover .svc-card__desc {
  transform: translateY(0);
  opacity: 1;
}

.svc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s ease 0.06s, opacity 0.4s ease 0.06s;
}

.svc-card:hover .svc-card__tags {
  transform: translateY(0);
  opacity: 1;
}

.svc-card__tags span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(237,47,46,0.6);
  color: var(--red);
  border-radius: 2px;
  background: rgba(237,47,46,0.08);
}

/* always visible on touch devices */
@media (hover: none) {
  .svc-card__desc,
  .svc-card__tags { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card { height: 500px; }
}

@media (min-width: 1024px) {
  .svc-card { height: 540px; }
  .svc-card__overlay { padding: 2.5rem; }
  .svc-card__num { font-size: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card__img img { transition: none; }
  .svc-card__desc, .svc-card__tags { transform: none; opacity: 1; transition: none; }
}

/* ── PROJECTS ────────────────────────────────────────────── */
.projects {
  padding: 5rem 0 0;
  background: var(--white);
}

.proj-hd {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.proj-hd__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.proj-hd__sub {
  font-size: 0.9rem;
  color: var(--grey-mid);
  max-width: 50ch;
}

@media (min-width: 768px) {
  .proj-hd {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .proj-hd__sub { text-align: right; }
}

/* ── PROJECT GRID ─────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

@media (min-width: 768px) {
  .proj-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .proj-card--hero { grid-column: 1 / -1; }
}

/* ── PROJECT CARD ─────────────────────────────────────────── */
.proj-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 360px;
  display: block;
  outline: none;
}

.proj-card--hero { min-height: 520px; }

@media (min-width: 768px) {
  .proj-card        { min-height: 460px; }
  .proj-card--hero  { min-height: 600px; }
}

/* background image */
.proj-card__bg {
  position: absolute;
  inset: 0;
}

.proj-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.proj-card:hover .proj-card__bg img,
.proj-card:focus-visible .proj-card__bg img {
  transform: scale(1.06);
}

/* gradient */
.proj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(1,1,1,0.05) 0%,
    rgba(1,1,1,0.45) 45%,
    rgba(1,1,1,0.88) 100%
  );
  z-index: 1;
  transition: opacity 0.5s;
}

.proj-card:hover::before,
.proj-card:focus-visible::before { opacity: 0.95; }

/* overlay panel */
.proj-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  gap: 1rem;
}

.proj-card--hero .proj-card__overlay {
  padding: 2.5rem 3rem;
}

/* ghost number */
.proj-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-head);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: rgba(255,255,255,0.08);
  letter-spacing: 0.02em;
  user-select: none;
  pointer-events: none;
}

.proj-card__type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.proj-card__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
}

.proj-card--hero .proj-card__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.proj-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.proj-card:hover .proj-card__desc,
.proj-card:focus-visible .proj-card__desc { opacity: 1; transform: translateY(0); }

/* CTA button */
.proj-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), background 0.2s;
}

.proj-card:hover .proj-card__btn,
.proj-card:focus-visible .proj-card__btn { opacity: 1; transform: translateY(0); }

.proj-card__btn:hover { background: var(--red-dark); }

.proj-card__btn i { width: 14px; height: 14px; }

.proj-card__count {
  background: rgba(255,255,255,0.16);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* mobile: always show text + btn */
@media (hover: none) {
  .proj-card__desc { opacity: 1; transform: none; }
  .proj-card__btn  { opacity: 1; transform: none; }
}

/* ── PROJECT MODAL ────────────────────────────────────────── */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #050505;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.proj-modal[hidden] { display: none; }

.proj-modal__header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.proj-modal__type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.proj-modal__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}

.proj-modal__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.proj-modal__count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.proj-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.proj-modal__close:hover { background: rgba(255,255,255,0.16); }
.proj-modal__close i { width: 18px; height: 18px; }

/* masonry image grid */
.proj-modal__body {
  padding: 3px;
  columns: 2;
  column-gap: 3px;
}

.proj-modal__body img {
  width: 100%;
  display: block;
  margin-bottom: 3px;
  break-inside: avoid;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.25s;
  border-radius: 0;
}

.proj-modal__body img:hover {
  opacity: 0.82;
  transform: scale(0.995);
}

@media (min-width: 600px)  { .proj-modal__body { columns: 3; } }
@media (min-width: 1024px) { .proj-modal__body { columns: 4; } }
@media (min-width: 1400px) { .proj-modal__body { columns: 5; } }

/* ── STATS ───────────────────────────────────────────────── */
.stats {
  background: var(--black);
  padding: 4rem 0;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-item__num-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-item__num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
}

.stat-item__suffix {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--red);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

@media (min-width: 768px) {
  .stats__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.contact__heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.contact__sub {
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.contact__detail:hover { color: var(--red); }

.contact__detail i {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
}

.contact__careers {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
}

.contact__careers:hover { color: var(--red); border-color: var(--red); }
.contact__careers i { width: 16px; height: 16px; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 1.5rem;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 0.5rem 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  border-radius: 0;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(0,0,0,0.25); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--red); }

.form-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.4em;
}

.form-note.success { color: #2d7a3a; }
.form-note.error   { color: var(--red); }

@media (min-width: 768px) {
  .contact__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }

  .contact__info { flex: 0 0 40%; }
  .contact__form { flex: 1; }

  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand img {
  margin-bottom: 0.75rem;
  background: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  display: block;
}

.footer__brand p {
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--white); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer__contact a:hover { color: var(--white); }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem var(--pad);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.footer__bar p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer__brand { flex: 0 0 240px; }
}

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(1,1,1,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.18); }

.lightbox__close i,
.lightbox__prev i,
.lightbox__next i { width: 20px; height: 20px; }

/* ── SCROLL ANIMATIONS (GSAP controlled) ─────────────────── */
.gsap-fade {
  opacity: 0;
  transform: translateY(24px);
}

/* ── CAREERS PAGE ────────────────────────────────────────── */
.careers-hero {
  position: relative;
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.careers-hero__bg {
  position: absolute;
  inset: 0;
}

.careers-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55) saturate(0.7);
}

.careers-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1,1,1,0.55) 0%,
    rgba(1,1,1,0.3)  50%,
    rgba(1,1,1,0.65) 100%
  );
}

.careers-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 9rem var(--pad) 5rem;
  max-width: 680px;
}

.careers-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.careers-hero__heading {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 1rem;
}

.careers-hero__sub {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: rgba(255,255,255,0.65);
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.7;
}

.careers-roles {
  padding: 5rem 0;
  background: var(--grey-light);
}

.careers-roles__header {
  margin-bottom: 2.5rem;
}

.careers-roles__heading {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.role-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(237,47,46,0.08);
}

.role-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  width: fit-content;
}

.role-card__badge--full { background: rgba(237,47,46,0.1); color: var(--red); }
.role-card__badge--contract { background: rgba(0,0,0,0.05); color: var(--grey); }

.role-card__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--black);
}

.role-card__dept {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-mid);
  letter-spacing: 0.05em;
}

.role-card__desc {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.7;
}

.role-card__reqs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.25rem;
}

.role-card__reqs li {
  font-size: 0.8rem;
  color: var(--grey);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.role-card__reqs li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
}

.careers-form {
  padding: 5rem 0;
  background: var(--white);
}

.careers-form__heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.careers-form__sub {
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

.careers-form__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 3rem;
}

.careers-form form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-field--file input[type="file"] {
  border: 1.5px dashed var(--border);
  border-bottom: 1.5px dashed var(--border) !important;
  border-radius: 4px;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--grey);
  min-height: 44px;
}

.form-field--file input[type="file"]:focus {
  border-color: var(--red);
  outline: none;
}

.careers-cta {
  background: var(--grey-light);
  padding: 4rem var(--pad);
  text-align: center;
  border-top: 1px solid var(--border);
}

.careers-cta p {
  font-size: 0.9375rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

.careers-cta a { color: var(--red); font-weight: 600; }

@media (min-width: 768px) {
  .careers-form__inner { grid-template-columns: 1fr 1fr; }

  .careers-form form {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  .careers-form form .form-field--full { grid-column: 1 / -1; }
}
