/* LIGHT THEME HOME STYLES */

html {
  scroll-behavior: smooth;
}

.light-body {
  --premium-gold: #d3a72f;
  --premium-gold-light: #f1d47a;
  --premium-gold-dark: #9b7417;
  --premium-ink: #0b121d;
  background: #e7edf5;
  color: #131c28;
  font-family: 'Archivo', sans-serif;
  line-height: 1.6;
}

.home-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(19,28,40,0.05);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  box-shadow: 0 10px 35px rgba(11, 18, 29, 0.04);
}

.home-header::after {
  position: absolute;
  right: 36px;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--premium-gold-light), var(--premium-gold-dark));
  content: "";
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(19,28,40,0.14);
  border-radius: 50%;
  background: #ffffff;
  color: #131c28;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.home-header.nav-open .mobile-menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.home-header.nav-open .mobile-menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #2a3644;
}

.nav-links span,
.nav-links a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.nav-links span:hover,
.nav-links a:hover {
  opacity: 0.7;
}

.mobile-nav-link {
  display: none;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #131c28;
}

.logo::after {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--premium-gold);
  box-shadow: 0 0 14px rgba(211, 167, 47, 0.45);
  content: "";
  vertical-align: top;
}

@media (min-width: 769px) and (max-width: 1100px) {
  .home-header {
    padding-inline: 24px;
  }

  .home-header .nav-links {
    gap: 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .home-header .logo {
    font-size: 16px;
    letter-spacing: 0.24em;
  }

  .home-header .header-actions {
    gap: 6px;
  }

  .home-header .btn-contact,
  .home-header .btn-start {
    padding: 10px 15px;
    font-size: 10px;
  }
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-contact {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(19,28,40,0.18);
  background: rgba(255,255,255,0.55);
  color: #131c28;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-start {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: #0d1420;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(241, 212, 122, 0.16);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-start:hover {
  background: var(--premium-gold);
  color: var(--premium-ink);
  transform: translateY(-1px);
}

.home-main {
  padding-top: 84px;
}

.journey-page construction-scene {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.journey-page construction-scene canvas {
  width: 100% !important;
  height: 100% !important;
}

.journey-mobile-progress {
  display: none;
}

/* HERO SECTION */
.hero-light {
  position: relative;
  display: flex;
  min-height: min(810px, calc(100vh - 100px));
  align-items: flex-end;
  max-width: none;
  margin: 0 16px;
  padding: clamp(80px, 11vw, 150px) clamp(28px, 7vw, 100px) clamp(58px, 8vw, 94px);
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  background: var(--premium-ink);
  text-align: left;
  isolation: isolate;
  box-shadow: 0 28px 70px rgba(11, 18, 29, 0.2);
}

.hero-premium-media,
.hero-premium-media::after {
  position: absolute;
  inset: 0;
}

.hero-premium-media {
  z-index: -2;
}

.hero-premium-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.012);
}

.hero-premium-media::after {
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.9) 0%, rgba(7, 12, 20, 0.72) 32%, rgba(7, 12, 20, 0.22) 67%, rgba(7, 12, 20, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 12, 20, 0.7) 0%, rgba(7, 12, 20, 0.02) 60%, rgba(7, 12, 20, 0.22) 100%);
  content: "";
}

.hero-premium::after {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(241, 212, 122, 0.22);
  border-radius: 0 0 24px 24px;
  content: "";
  pointer-events: none;
}

.hero-premium-content {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.hero-light .subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--premium-gold-light);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-light .subtitle span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--premium-gold-dark), var(--premium-gold-light));
}

.hero-title {
  max-width: 760px;
  font-size: clamp(62px, 7.2vw, 108px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: #ffffff;
  margin: 0 0 28px;
  text-wrap: balance;
  text-shadow: 0 5px 35px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 570px;
  margin: 0 0 38px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 16px 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(115deg, var(--premium-gold-dark), var(--premium-gold-light) 52%, #bc8c1d);
  color: var(--premium-ink);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(185, 137, 26, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(185, 137, 26, 0.34);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 30px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(8, 14, 23, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-hero-secondary:hover {
  border-color: var(--premium-gold-light);
  background: rgba(8, 14, 23, 0.52);
}

.hero-premium-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-premium-meta i {
  width: 38px;
  height: 1px;
  background: rgba(241, 212, 122, 0.5);
}

/* SERVICES */
.services-light {
  padding: 80px 20px;
  background: #fff;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 40px rgba(19,28,40,0.02);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #131c28;
}

.section-title::after {
  display: block;
  width: 42px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--premium-gold-dark), var(--premium-gold-light));
  content: "";
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  position: relative;
  background: #f8fafc;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(19,28,40,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 32px;
  left: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--premium-gold), transparent);
  content: "";
  opacity: 0.55;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(19,28,40,0.06);
  background: #fff;
}

.service-card .icon {
  font-size: 14px;
  font-weight: 700;
  color: var(--premium-gold-dark);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #131c28;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 15px;
  color: #5b6a7c;
}

/* PROJECTS (Minimal) */
.projects-minimal {
  padding: 100px 20px;
  /* using body background #e7edf5 automatically since it's transparent */
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card-minimal {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  transition: opacity 0.3s;
}

.project-card-minimal:hover {
  opacity: 0.9;
}

.project-image-minimal {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #000;
}

.project-image-minimal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info-minimal {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(19,28,40,0.1);
}

.project-info-minimal h3 {
  font-size: 18px;
  font-weight: 700;
  color: #131c28;
  margin: 0;
}

.project-info-minimal span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #5b6a7c;
}

/* FOOTER */
.light-footer {
  background: #0d1420;
  color: #fff;
  padding: 80px 20px 40px;
  border-top: 2px solid var(--premium-gold-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #8b9bb4;
  font-size: 14px;
}

.footer-contact {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: #aab6c6;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #dfb15b;
  outline-offset: 4px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  color: #5b6a7c;
  font-size: 13px;
}

@media (max-width: 768px) {
  html,
  body.journey-page {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
  body.journey-page {
    background: #e7edf5;
  }
  .journey-page .journey-scene,
  .journey-page construction-scene {
    width: 100vw !important;
    height: 100svh !important;
    height: 100dvh !important;
    min-height: 0;
    contain: strict;
    touch-action: pan-y;
  }
  .journey-page .journey-scroll-spacer {
    height: 340svh !important;
  }
  .home-header {
    box-sizing: border-box;
    min-height: 68px;
    padding: 12px 16px;
  }
  .home-header .logo {
    position: static;
    transform: none;
    font-size: 16px;
    letter-spacing: 0.24em;
    white-space: nowrap;
  }
  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }
  .home-header .header-actions {
    display: none;
  }
  .home-header .nav-links {
    position: fixed;
    top: 82px;
    left: 14px;
    right: 14px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(19,28,40,0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(19,28,40,0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .home-header.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .home-header .nav-links a {
    display: block;
    padding: 15px 14px;
    border-bottom: 1px solid rgba(19,28,40,0.07);
  }
  .home-header .nav-links .mobile-nav-link {
    display: block;
  }
  .home-header .nav-links a:last-child {
    border-bottom: 0;
  }
  .home-header::after {
    right: 18px;
    width: 46px;
  }
  .home-main {
    padding-top: 72px;
  }
  .hero-light {
    min-height: calc(100svh - 84px);
    margin: 0 8px;
    padding: 90px 24px 46px;
    border-radius: 0 0 26px 26px;
  }
  .hero-premium::after {
    inset: 10px;
    border-radius: 0 0 18px 18px;
  }
  .hero-premium-media img {
    object-position: 57% center;
  }
  .hero-premium-media::after {
    background:
      linear-gradient(0deg, rgba(7, 12, 20, 0.92) 0%, rgba(7, 12, 20, 0.52) 56%, rgba(7, 12, 20, 0.28) 100%),
      linear-gradient(90deg, rgba(7, 12, 20, 0.45), rgba(7, 12, 20, 0.08));
  }
  .hero-light .subtitle {
    gap: 10px;
    margin-bottom: 18px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .hero-light .subtitle span {
    width: 28px;
  }
  .hero-title {
    max-width: 520px;
    margin-bottom: 20px;
    font-size: clamp(48px, 14vw, 68px);
    line-height: 0.96;
  }
  .hero-desc {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.6;
  }
  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-buttons .btn-primary,
  .btn-hero-secondary {
    justify-content: center;
    padding: 14px 22px;
    text-align: center;
  }
  .hero-premium-meta {
    margin-top: 28px;
  }
  .projects-list {
    grid-template-columns: 1fr;
  }

  .journey-page .journey-intro {
    inset: 68px 0 0 !important;
    box-sizing: border-box;
    min-height: 0;
    padding: 20px 22px 8vh !important;
  }
  .journey-page .home-header {
    background: rgba(255,255,255,0.94);
    border-bottom-color: rgba(19,28,40,0.04);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .journey-page .journey-intro-content {
    width: 100%;
    max-width: 360px;
  }
  .journey-page .journey-kicker {
    margin-bottom: 16px !important;
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
  }
  .journey-page .journey-title {
    font-size: clamp(42px, 13vw, 52px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.025em !important;
  }
  .journey-page .journey-description {
    width: calc(100vw - 48px);
    max-width: 320px !important;
    margin-top: 20px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  .journey-page .journey-scroll-hint {
    margin-top: 26px !important;
  }
  .journey-page .journey-hud {
    left: 14px !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
    width: calc(100vw - 28px) !important;
    max-width: none !important;
    padding: 13px 14px 14px;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 20px;
    background: rgba(247,250,253,0.96);
    box-shadow: 0 14px 36px rgba(19,28,40,0.14);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .journey-page .journey-hud.is-intro {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }
  .journey-page .journey-hud.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .journey-page .journey-mobile-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
  }
  .journey-page .journey-mobile-track {
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(19,28,40,0.12);
  }
  .journey-page .journey-mobile-progress-label {
    flex: 0 0 auto;
    color: #657180;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  .journey-page .journey-step-list {
    position: relative;
    min-height: 66px;
  }
  .journey-page .journey-step {
    position: absolute;
    inset: 0;
    display: flex !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out, visibility 0s linear 0.16s !important;
  }
  .journey-page .journey-step.is-past,
  .journey-page .journey-step.is-upcoming {
    visibility: hidden;
    opacity: 0 !important;
    pointer-events: none;
  }
  .journey-page .journey-step.is-past {
    transform: translateY(-9px) !important;
  }
  .journey-page .journey-step.is-upcoming {
    transform: translateY(9px) !important;
  }
  .journey-page .journey-step.is-active {
    visibility: visible;
    gap: 11px !important;
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }
  .journey-page .journey-step.is-active > div:first-child {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }
  .journey-page .journey-step.is-active > div:last-child > div:first-child {
    padding-top: 3px !important;
    font-size: clamp(17px, 4.8vw, 20px) !important;
    line-height: 1.12 !important;
  }
  .journey-page .journey-step.is-active > div:last-child > div:last-child {
    max-width: none !important;
    max-height: 64px !important;
    margin-top: 8px !important;
    padding-left: 10px !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
  }
  .journey-page .journey-rail {
    display: none !important;
  }
  .journey-page #final-overlay {
    box-sizing: border-box;
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(82px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  }
  .journey-page #final-overlay img {
    width: min(88vw, 430px) !important;
    max-height: 38vh !important;
    margin-bottom: 28px !important;
  }
  .journey-page #final-overlay .btn-enter {
    box-sizing: border-box;
    width: min(100%, 310px);
    padding: 15px 22px !important;
    text-align: center;
  }
}

@media (max-width: 768px) and (max-height: 720px) {
  .journey-page .journey-intro {
    padding: 12px 20px 4vh !important;
  }
  .journey-page .journey-title {
    font-size: 38px !important;
  }
  .journey-page .journey-description {
    margin-top: 14px !important;
    font-size: 14px !important;
  }
  .journey-page .journey-scroll-hint {
    margin-top: 14px !important;
  }
  .journey-page .journey-hud {
    padding: 10px 12px 11px;
  }
  .journey-page .journey-step.is-active > div:last-child > div:last-child {
    max-height: 40px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .journey-page .journey-intro {
    inset: 0 !important;
    padding: 64px 26vw 12px 24px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .journey-page .journey-intro-content {
    max-width: 300px;
  }
  .journey-page .journey-title {
    font-size: 36px !important;
  }
  .journey-page .journey-description {
    width: auto;
    margin-left: 0 !important;
  }
  .journey-page .journey-scroll-hint {
    display: none !important;
  }
  .journey-page .journey-hud {
    left: auto !important;
    right: 12px;
    bottom: 12px !important;
    width: min(44vw, 330px) !important;
  }
  .journey-page .journey-step-list {
    min-height: 36px;
  }
  .journey-page .journey-step.is-active > div:last-child > div:last-child {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
