:root {
  --steel: #4a7fa5;
  --muted-l: #9a9ab5;
}

body[data-page="home"] {
  background: var(--bg);
  color: var(--text);
}

@keyframes btnGlowPulse {
  0%,
  100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes scrollLine {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes heroImageSweep {
  0% {
    opacity: 0;
    transform: translateX(-38%);
  }
  22% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(38%);
  }
}

body[data-page="home"] [data-component="site-header"] {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 0;
}

body[data-page="home"] .site-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

body[data-page="home"] .site-header.scrolled {
  background: rgba(10, 10, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

body[data-page="home"] .brand span {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

body[data-page="home"] .btn {
  gap: 0.4rem;
  padding: 0.875rem 2rem;
  letter-spacing: 0.12em;
  border-radius: 3px;
  transition: all 0.25s ease;
}

body[data-page="home"] .btn-primary {
  background: var(--gold);
  color: #06060e;
  position: relative;
  overflow: hidden;
}

body[data-page="home"] .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 28px 6px rgba(201, 168, 76, 0.45);
  opacity: 0.35;
  animation: btnGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

body[data-page="home"] .btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.3);
}

body[data-page="home"] .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-page="home"] .btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0;
  background:
    linear-gradient(90deg, #11172c 0, #05050a 18%, #05050a 82%, #11172c 100%);
}

.hero::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-carousel,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  position: relative;
  z-index: 0;
  overflow: hidden;
  inset: auto;
  width: min(100%, var(--site-frame));
  aspect-ratio: 1800 / 774;
  height: auto;
  margin: 0 auto;
  background: #05050a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.035), 0 28px 80px rgba(0, 0, 0, 0.45);
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0 33%, rgba(201, 168, 76, 0.18) 45%, rgba(245, 241, 232, 0.48) 50%, rgba(201, 168, 76, 0.2) 55%, transparent 69%),
    linear-gradient(90deg, rgba(232, 201, 110, 0.08), transparent 30%, transparent 70%, rgba(245, 241, 232, 0.1));
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-34%);
}

.hero-carousel.is-transitioning::after {
  animation: heroImageSweep 0.95s cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.055);
  transition: opacity 1.15s ease, transform 7.4s ease;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1) {
  background-image: url("images/hero-images/2.jpg");
}

.hero-slide:nth-child(2) {
  background-image: url("images/hero-images/3.jpg");
}

.hero-slide:nth-child(3) {
  background-image: url("images/hero-images/4.jpg");
}

.hero-slide:nth-child(4) {
  background-image: url("images/hero-images/5.jpg");
}

.hero-slide:nth-child(5) {
  background-image: url("images/hero-images/6.jpg");
}

.hero-slide:nth-child(6) {
  background-image: url("images/hero-images/6-copy.jpg");
}

.hero-slide:nth-child(7) {
  background-image: url("images/hero-images/7.jpg");
}

.hero-slide:nth-child(8) {
  background-image: url("images/hero-images/7-copy.jpg");
}

.hero-slide:nth-child(10) {
  background-image: url("images/hero-images/8-copy.jpg");
}

.hero-slide:nth-child(11) {
  background-image: url("images/hero-images/9.jpg");
}

.hero-slide:nth-child(12) {
  background-image: url("images/hero-images/10.jpg");
}

.hero-slide:nth-child(13) {
  background-image: url("images/hero-images/12.jpg");
}

.hero-slide:nth-child(14) {
  background-image: url("images/hero-images/14.jpg");
}

.hero-slide:nth-child(15) {
  background-image: url("images/hero-images/15a.jpg");
}

.hero-slide:nth-child(16) {
  background-image: url("images/hero-images/17.jpg");
}

.hero-slide:nth-child(17) {
  background-image: url("images/hero-images/julian1.jpg");
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-inner {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 1800 / 774;
  height: auto;
  min-height: 0;
  width: min(100%, var(--site-frame));
  max-width: var(--site-frame);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 0 var(--page-gutter);
  pointer-events: none;
}

.hero-progress {
  position: absolute;
  left: var(--page-gutter);
  right: var(--page-gutter);
  bottom: 1.4rem;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.hero-corner-brand {
  position: absolute;
  top: clamp(1.2rem, 2.2vw, 2.4rem);
  left: clamp(1.2rem, 2.2vw, 2.4rem);
  width: clamp(8rem, 10vw, 12rem);
  opacity: 0.93;
  filter:
    drop-shadow(0 2px 5px rgba(0, 0, 0, 0.58))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.hero-corner-brand img {
  width: 100%;
  height: auto;
}

.hero-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #f5f6fb, rgba(201, 168, 76, 0.9));
  animation: heroProgress 6.5s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(100%, var(--site-frame));
  max-width: var(--site-frame);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  column-gap: clamp(2rem, 6vw, 6.5rem);
  align-items: start;
  padding: clamp(2.2rem, 3.3vw, 3.2rem) clamp(3rem, 5vw, 6.5rem) clamp(3.8rem, 5.6vw, 5.5rem);
  background:
    linear-gradient(118deg, rgba(201, 168, 76, 0.16) 0 1px, transparent 1px 62%),
    radial-gradient(58% 120% at 0% 0%, rgba(34, 46, 89, 0.86), transparent 66%),
    radial-gradient(36% 90% at 100% 100%, rgba(201, 168, 76, 0.13), transparent 72%),
    linear-gradient(180deg, #04050b 0%, #070812 100%);
  text-align: left;
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: clamp(2.4rem, 4vw, 5.6rem);
  right: clamp(2.4rem, 4vw, 5.6rem);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 201, 110, 0.78), transparent);
}

.hero-content::after {
  content: "";
  position: absolute;
  right: clamp(2rem, 5vw, 6rem);
  top: clamp(2.2rem, 4vw, 4rem);
  width: clamp(7rem, 10vw, 13rem);
  height: 2px;
  background: linear-gradient(90deg, rgba(232, 201, 110, 0.9), transparent);
  opacity: 0.9;
}

.hero-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 1.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 201, 110, 0.88);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  grid-column: 1;
  max-width: 760px;
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.2rem, 6.9vw, 8.2rem);
  line-height: 0.84;
  letter-spacing: 0.018em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
  text-shadow:
    0 2px 0 rgba(201, 168, 76, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.62);
}

.hero-title-lockup {
  grid-column: 1;
}

.hero-title-logo {
  display: none;
}

.hero-title .accent {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.72);
  text-decoration-thickness: 0.095em;
  text-underline-offset: 0.07em;
  text-shadow:
    0 2px 0 rgba(201, 168, 76, 0.26),
    0 18px 42px rgba(0, 0, 0, 0.62);
}

.hero-copy {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  max-width: 38rem;
  margin-top: clamp(0.45rem, 1.4vw, 1.1rem);
}

.hero-subtitle {
  margin: 0;
  color: rgba(245, 246, 251, 0.86);
  font-size: clamp(1.08rem, 1.2vw, 1.26rem);
  line-height: 1.72;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.scroll-hint {
  position: absolute;
  z-index: 3;
  top: clamp(430px, 38vw, 703px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.3;
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

.mission {
  padding: 4.5rem var(--page-gutter);
  background: var(--cream);
}

.mission-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.mission-quote {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.mission .section-label-dk,
.mission-quote .accent {
  color: var(--gold-dk);
}

.founders-section {
  padding: 8rem var(--page-gutter);
}

.founders-grid {
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: center;
}

.founder-photo-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.founder-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--gold), transparent 55%, var(--steel) 100%);
  z-index: -1;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  filter: grayscale(20%);
  transform: scale(1);
  transition: transform 0.55s ease, filter 0.35s ease;
}

.founder-photo-wrap:hover .founder-photo {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.founder-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.75rem 1.75rem;
  background: linear-gradient(to top, rgba(10, 10, 18, 0.95) 60%, transparent);
}

.founder-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: var(--text);
  display: block;
}

.founder-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 201, 110, 0.9);
  display: block;
  margin-top: 0.2rem;
}

.founders-text .section-title {
  margin-bottom: 2rem;
}

.founders-body {
  font-size: clamp(1.04rem, 1.1vw, 1.15rem);
  line-height: 1.82;
  color: var(--muted-l);
  margin-bottom: 1.5rem;
}

.founders-body strong {
  color: var(--text);
  font-weight: 600;
}

.careers-section {
  background: linear-gradient(-45deg, #070710, #0d0a1e, #091828, #100d20);
  background-size: 400% 400%;
  padding: 8rem var(--page-gutter);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.careers-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.14) 0%, rgba(74, 127, 165, 0.07) 50%, transparent 70%);
  pointer-events: none;
}

.careers-inner {
  position: relative;
  z-index: 1;
}

.careers-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.careers-title .accent {
  color: inherit;
}

.careers-body {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--muted-l);
  line-height: 1.75;
  font-size: clamp(1.04rem, 1.1vw, 1.15rem);
}

.careers-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section-label-center {
  text-align: center;
}

.btn-mt {
  margin-top: 1rem;
}

@media (min-width: 1900px) {
  .hero-slide {
    background-position: center 42%;
  }

  .hero-inner {
    padding-left: clamp(3rem, 5vw, 6rem);
    padding-right: clamp(3rem, 5vw, 6rem);
  }

  .scroll-hint {
    top: 703px;
  }
}

@media (max-width: 980px) {
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
    text-align: center;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .hero-title-lockup,
  .hero-title,
  .hero-copy {
    grid-column: 1;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    max-width: 720px;
    font-size: clamp(3.8rem, 11vw, 6.3rem);
  }

  .hero-copy {
    grid-row: auto;
    margin-top: 1.35rem;
  }

  .hero-ctas {
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.8rem;
  }

  .hero-carousel,
  .hero-inner {
    height: 560px;
  }

  .hero-corner-brand {
    top: 1.2rem;
    left: clamp(1rem, 3vw, 1.6rem);
    width: clamp(7rem, 24vw, 10rem);
  }

  .scroll-hint {
    top: 482px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] [data-component="site-header"] {
    position: relative;
    inset: auto;
  }

  body[data-page="home"] .site-header {
    background: #05050a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-carousel {
    order: 1;
    width: 100vw;
    max-width: none;
    aspect-ratio: 1800 / 774;
    height: auto;
    min-height: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero-slide {
    background-size: cover;
    background-position: center center;
  }

  .hero-inner {
    display: block;
    top: 0;
    width: 100vw;
    aspect-ratio: 1800 / 774;
    height: auto;
    padding: 0 var(--page-gutter-mobile);
  }

  .hero-corner-brand {
    display: none;
    top: 0.65rem;
    left: 0.75rem;
    width: clamp(3.5rem, 16vw, 4.7rem);
  }

  .hero-content {
    order: 2;
    padding: 1.15rem var(--page-gutter-mobile) 2.05rem;
    text-align: left;
  }

  .hero-content::after {
    content: none;
  }

  .hero-title {
    grid-column: 2;
    max-width: none;
    font-size: clamp(2.1rem, 9.6vw, 2.95rem);
    line-height: 0.9;
  }

  .hero-title-lockup {
    display: grid;
    grid-template-columns: minmax(4.1rem, 0.29fr) minmax(0, 1fr);
    gap: 0.62rem;
    align-items: start;
    width: min(100%, 22rem);
    margin-left: 0;
    margin-right: 0;
  }

  .hero-title-logo {
    display: block;
    width: 100%;
    max-width: 5.2rem;
    opacity: 0.84;
    filter:
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55))
      drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3));
    justify-self: start;
    margin-top: 0.12rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.52rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
  }

  .hero-copy {
    width: min(100%, 21rem);
    margin-top: 1.45rem;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .hero-ctas {
    width: min(100%, 19.5rem);
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="home"] .hero-ctas .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.76rem 0.85rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .hero-progress {
    left: var(--page-gutter-mobile);
    right: var(--page-gutter-mobile);
    bottom: 0.85rem;
    height: 3px;
    background: rgba(255, 255, 255, 0.14);
  }

  .scroll-hint {
    display: none;
  }

  .mission,
  .founders-section,
  .careers-section {
    padding-left: var(--page-gutter-mobile);
    padding-right: var(--page-gutter-mobile);
  }

  .mission {
    padding-top: 2.4rem;
    padding-bottom: 4rem;
  }

  .founders-section,
  .careers-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .founder-photo-wrap,
  .founders-text {
    margin-right: 1.25rem;
    max-width: calc(100% - 1.25rem);
  }

  .careers-inner {
    max-width: 24rem;
  }

  .careers-title,
  .careers-body {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .careers-ctas {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .careers-ctas .btn {
    min-width: 10.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel.is-transitioning::after {
    animation: none;
  }

  .hero-slide {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .hero-slide.is-active {
    transform: none;
  }
}
