
/* =========================================
   LAMBITECH PROJECTS PAGE
   ========================================= */

:root {
  --lt-black: #050505;
  --lt-white: #f5f5f5;
  --lt-cyan: #00d9ff;
  --lt-lime: #9bff35;
  --lt-muted: #b9bec4;
  --nav-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  background: var(--lt-black);
  color: var(--lt-white);
  font-family: "Inter", "Montserrat", Arial, sans-serif;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

/* Navigation */

.projects-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  min-height: var(--nav-height);
  padding: 0 clamp(22px, 4.2vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  font-family: "Montserrat", sans-serif;
}

.brand {
  display: flex;
  align-items: center;
  width: 82px;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 82px;
  height: 68px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
}

.nav-links a {
  position: relative;
  padding: 9px 0;
  color: #f0f0f0;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  transition: color 0.25s ease;
}

.nav-links a {
  position: relative;
  padding: 9px 0;
  color: #f0f0f0;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--lt-cyan);
}

.nav-links a.active {
  color: var(--lt-cyan);
}

.nav-links a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--lt-cyan);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.55);
  content: "";
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* Full-screen project panels */

.projects-page {
  width: 100%;
}
.project-panel {
  margin-bottom: 35px;
}
.project-panel:last-child {
  margin-bottom: 0;
}
.project-panel {
  border: none;
}

.project-panel {
  --poster-image: none;

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;

  overflow: hidden;
  padding: clamp(48px, 8vw, 110px) 8%;
  scroll-margin-top: var(--nav-height);
  background: #080808;
}

.poster-background,
.panel-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.poster-background {
  background-image: var(--poster-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: scale(1.015);
  transition: transform 1.2s ease;
}

.project-panel:hover .poster-background {
  transform: scale(1.035);
}

.heroko-panel {
  --poster-image: url("assets/heroko-poster.jpg");
}

.grow-panel {
  --poster-image: url("assets/grow-my-food-poster.jpg");
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

/*
  The shade is strongest behind the coded introduction.
  The poster remains visible across the rest of the section.
*/

.panel-shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.87) 0%,
      rgba(0, 0, 0, 0.66) 30%,
      rgba(0, 0, 0, 0.18) 59%,
      rgba(0, 0, 0, 0.02) 100%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.28),
      transparent 28%,
      transparent 78%,
      rgba(0, 0, 0, 0.12)
    );
}

/* Animated text */

.project-intro {
  width: min(510px, 48%);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.project-intro.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-number,
.intro-label {
  display: block;
  color: #777D84;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.8;
}

.intro-label {
  margin: 27px 0 12px;
  color: var(--lt-lime);
  letter-spacing: 0.12em;
}

.reveal-text {
  max-width: 500px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 61px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.reveal-text span {
  display: block;
  color: var(--lt-cyan);
}

.grow-panel .reveal-text span {
  color: var(--lt-lime);
}

.intro-description {
  max-width: 410px;
  margin: 23px 0 25px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.85;
}

/* YouTube button */

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 4px;
  background: rgba(5, 5, 5, 0.74);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-cta:hover {
  transform: translateY(-3px);
  border-color: var(--lt-cyan);
  background: rgba(0, 217, 255, 0.12);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.15);
}

.grow-panel .project-cta:hover {
  border-color: var(--lt-lime);
  box-shadow: 0 0 24px rgba(155, 255, 53, 0.13);
}

.youtube-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #ff3333;
}

.youtube-icon svg {
  width: 23px;
  height: 23px;
}

.cta-arrow {
  margin-left: 6px;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.project-cta:hover .cta-arrow {
  transform: translate(2px, -2px);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--lt-cyan);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.8);
  animation: status-pulse 2s infinite;
}

.growing-dot {
  background: var(--lt-lime);
  box-shadow: 0 0 12px rgba(155, 255, 53, 0.8);
}

/*
  Optional invisible hotspots.
  Adjust their coordinates to match the YouTube buttons
  already drawn into your poster files.
*/

.poster-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  left: 8%;
  top: 66%;
  width: 180px;
  height: 48px;
  border-radius: 5px;
  outline-offset: 4px;
}

.grow-hotspot {
  top: 66%;
}

.poster-hotspot:focus-visible {
  outline: 2px solid var(--lt-cyan);
}

/* Scroll cue */

.scroll-cue {
  position: absolute;
  z-index: 4;
  right: 6%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  letter-spacing: 0.13em;
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--lt-cyan);
}

.scroll-arrow {
  font-size: 21px;
  animation: arrow-bob 1.6s ease-in-out infinite;
}

/* Video modal */

.video-dialog {
  width: min(900px, 92vw);
  max-width: none;
  padding: 46px 0 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #080808;
  color: white;
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.video-close {
  position: absolute;
  top: 4px;
  right: 0;
  width: 44px;
  height: 38px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */

.projects-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 6%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.footer-brand span {
  color: var(--lt-cyan);
}

.projects-footer p,
.projects-footer > a:last-child {
  color: var(--lt-muted);
  font-size: 11px;
}

.projects-footer > a:last-child:hover {
  color: var(--lt-cyan);
}

/* Animations */

@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes arrow-bob {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* Tablet */

@media (max-width: 900px) {
  :root {
    --nav-height: 88px;
  }

  .projects-nav {
    height: var(--nav-height);
    min-height: var(--nav-height);
    padding-inline: clamp(22px, 4.2vw, 5%);
  }

  .brand {
    width: 82px;
  }

  .brand img {
    width: 82px;
    height: 68px;
  }

  .nav-links {
    gap: clamp(16px, 2.4vw, 22px);
  }

  .nav-links a {
    font-size: 10px;
  }

  .project-panel {
    padding-inline: 6%;
  }

  .project-intro {
    width: min(430px, 53%);
  }

  .panel-shade {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.88),
        rgba(0, 0, 0, 0.58) 48%,
        rgba(0, 0, 0, 0.1) 100%
      );
  }

  .poster-hotspot {
    left: 6%;
  }
}

/* Mobile */

@media (max-width: 640px) {
  :root {
    --nav-height: 76px;
  }

  .projects-nav {
    height: var(--nav-height);
    min-height: var(--nav-height);
    padding-inline: 22px;
  }

  .brand {
    width: 70px;
  }

  .brand img {
    width: 70px;
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    transition: transform 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid transparent;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;
  }

  .mobile-nav.is-open {
    max-height: 350px;
    padding-block: 10px 18px;
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .mobile-nav a {
    padding: 14px 0;
    color: #e2e2e2;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .project-panel {
    min-height: max(690px, calc(100svh - var(--nav-height)));
    align-items: flex-end;
    padding: 45px 24px 100px;
  }

  /*
    Keep the complete poster visible where possible.
    Change to cover if you prefer edge-to-edge cropping.
  */

  .poster-background {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

  .panel-shade {
    background:
      linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.88) 34%,
        rgba(0, 0, 0, 0.35) 73%,
        rgba(0, 0, 0, 0.14) 100%
      );
  }

  .project-intro {
    width: 100%;
    max-width: 460px;
  }

  .project-number {
    font-size: 9px;
  }

  .intro-label {
    margin-top: 18px;
    font-size: 9px;
  }

  .reveal-text {
    max-width: 420px;
    font-size: clamp(35px, 9vw, 48px);
  }

  .intro-description {
    max-width: 390px;
    margin-block: 17px 20px;
    font-size: 13px;
    line-height: 1.7;
  }

  .project-cta {
    min-height: 46px;
    font-size: 9px;
  }

  .project-status {
    margin-top: 18px;
    font-size: 8px;
  }

  .poster-hotspot {
    display: none;
  }

  .scroll-cue {
    right: 24px;
    bottom: 22px;
    font-size: 8px;
  }

  .projects-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 25px 24px;
  }

  .projects-footer p {
    margin: 0;
  }
}

/* Projects navigation: Get Updates call to action */

.projects-nav .nav-links .nav-updates {
  padding: 9px 15px;
  border: 1px solid var(--lt-cyan);
  border-radius: 3px;
  color: var(--lt-cyan);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.projects-nav .nav-links .nav-updates:hover {
  background: var(--lt-cyan);
  color: var(--lt-black);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.16);
}

.projects-nav .nav-links .nav-updates::after {
  display: none;
}

.projects-nav .mobile-nav a:last-child {
  color: var(--lt-cyan);
}


/* =========================================
   PARTNERSHIP & UPDATES DIALOGS
   ========================================= */

.project-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: min(88vh, 850px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--lt-white);
  background:
    radial-gradient(ellipse at top right, rgba(0, 217, 255, 0.08), transparent 45%),
    #0b0c0e;
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.65);
}

.project-dialog[open] {
  animation: project-dialog-enter 0.25s ease-out;
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(9px);
}

.dialog-content {
  padding: clamp(26px, 5vw, 42px);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  display: grid;
  width: 38px;
  height: 38px;
  margin: 10px 10px -48px 0;
  place-items: center;
  color: #c5c8cc;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--lt-cyan);
  border-color: var(--lt-cyan);
  background: rgba(0, 217, 255, 0.08);
}

.dialog-eyebrow {
  margin: 0 0 14px;
  color: var(--lt-cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.7;
}

.dialog-content h2 {
  margin: 0;
  padding-right: 10px;
  font-size: clamp(29px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.dialog-content h2 span {
  color: var(--lt-cyan);
}

.dialog-description {
  margin: 16px 0 26px;
  color: var(--lt-muted);
  font-size: 13px;
  line-height: 1.8;
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.project-form > label:not(.consent-option) {
  margin-top: 9px;
  color: #e7e9ec;
  font-size: 11px;
  font-weight: 700;
}

.optional-label {
  color: #8c9299;
  font-size: 10px;
  font-weight: 400;
}

.project-form input[type="text"],
.project-form input[type="email"],
.project-form select,
.project-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: var(--lt-white);
  background: #060708;
  border: 1px solid #34383d;
  border-radius: 5px;
  outline: none;
  font: inherit;
  font-size: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-form input::placeholder,
.project-form textarea::placeholder {
  color: #727981;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  border-color: var(--lt-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.09);
}

.project-form textarea {
  resize: vertical;
  min-height: 88px;
}

.project-form select {
  color-scheme: dark;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  margin: 14px 0 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.choice-group legend {
  padding: 0 7px;
  color: #f1f2f4;
  font-size: 11px;
  font-weight: 700;
}

.field-hint {
  margin: -5px 0 3px;
  color: #9299a1;
  font-size: 10px;
  line-height: 1.6;
}

.choice-option,
.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c9cdd2;
  font-size: 11px;
  line-height: 1.65;
  cursor: pointer;
}

.choice-option input,
.consent-option input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 2px 0 0;
  accent-color: var(--lt-cyan);
  cursor: pointer;
}

.consent-option {
  margin: 14px 0 5px;
}

.dialog-submit {
  display: flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 17px;
  color: #031014;
  background: var(--lt-cyan);
  border: 1px solid var(--lt-cyan);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dialog-submit span {
  font-size: 17px;
}

.dialog-submit:hover {
  transform: translateY(-2px);
  background: #65eaff;
  box-shadow: 0 8px 28px rgba(0, 217, 255, 0.15);
}

.dialog-submit:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.form-status {
  margin: 4px 0 0;
  color: var(--lt-lime);
  font-size: 11px;
  line-height: 1.7;
}

.form-status:empty {
  display: none;
}

.privacy-note {
  margin: 8px 0 0;
  color: #858c94;
  font-size: 10px;
  line-height: 1.7;
}

@keyframes project-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .project-dialog {
    width: calc(100% - 22px);
    max-height: 90vh;
    border-radius: 9px;
  }

  .dialog-content {
    padding: 28px 21px;
  }

  .dialog-content h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .dialog-description {
    font-size: 12px;
  }

  .choice-group {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-dialog[open] {
    animation: none;
  }
}



/* Respect reduced-motion preferences */

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

  .project-intro {
    opacity: 1;
    transform: none;
  }
}
