/* ============================================
   THE NOSE PROJECT — style.css
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-elevated: #181818;
  --border: #222222;
  --text-primary: #F0F0F0;
  --text-secondary: #888888;
  --text-muted: #444444;
  --accent-violet: #7C3AED;
  --accent-violet-glow: #A855F7;
  --accent-green: #22C55E;
  --accent-green-dim: #166534;
  --accent-orange: #F97316;
  --accent-orange-dim: #7C2D12;
  --highlight: #FFFFFF;

  --font-display: 'Syne', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --section-py: 120px;
  --content-max: 900px;
  --narrow: 640px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ---------- Fixed background canvas ---------- */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--narrow);
}

/* All sections sit above the canvas */
.section {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 10, 0.75);
}

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

#sense_digitalization,
#problem,
#tech,
#applications,
#team,
#ecosystem,
#waitlist,
#contact {
  background: transparent;
}

/* ---------- Typography ---------- */
.label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.body-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 640px;
}

.section--centered .body-text {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-violet-glow);
  outline-offset: 3px;
}

.btn--ghost {
  border: 1px solid var(--accent-violet);
  background: transparent;
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--accent-violet-glow);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
  color: var(--highlight);
}

.btn--primary {
  background: var(--accent-violet);
  color: var(--highlight);
}

.btn--primary:hover {
  background: var(--accent-violet-glow);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}

/* ============================================
   HERO
   ============================================ */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  padding: 40px 24px;
  background: transparent;
}

.hero__inner {
  text-align: center;
  max-width: 880px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__subline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.section--hero .label {
  margin-bottom: 40px;
}

/* ============================================
   SENSES ROW
   ============================================ */
.senses-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.sense-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 100px;
}

.sense-icon {
  font-size: 2rem;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.7;
}

.sense-item--open .sense-icon {
  filter: none;
  opacity: 1;
}

.sense-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sense-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sense-status--solved {
  color: var(--accent-green-dim);
}

.sense-status--open {
  color: var(--accent-violet-glow);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-violet);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 12px 4px rgba(168, 85, 247, 0.3); }
}

/* ============================================
   TWO-COLUMN (Problem section)
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-art {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 4px;
}

/* ============================================
   TECH PILLS
   ============================================ */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.pill {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  background: rgba(10, 10, 10, 0.6);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.pill:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ============================================
   TEAM
   ============================================ */
.team-intro {
  margin-bottom: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.team-card {
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.team-card:hover {
  border-color: var(--accent-violet);
}

.team-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-elevated);
}


.team-card__info {
  padding: 24px;
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-violet-glow);
  display: block;
  margin-bottom: 10px;
}

.team-card__focus {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Team photo hover swap */
.team-card__photo {
  position: relative;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.team-img--original {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.team-card:hover .team-img--edited {
  opacity: 0;
}

.team-card:hover .team-img--original {
  opacity: 1;
  filter: saturate(1) contrast(1);
}

/* LinkedIn icon */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  vertical-align: middle;
}

.linkedin-link:hover {
  color: var(--accent-violet-glow);
}

.team-card__name {
  display: flex;
  align-items: center;
}

/* What we like */
.what-we-like {
  margin-top: 64px;
  text-align: center;
}

.what-we-like__title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.what-we-like__list {
  list-style: none;
  counter-reset: like-counter;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.what-we-like__list li {
  counter-increment: like-counter;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.what-we-like__list li::before {
  content: counter(like-counter) ".";
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 12px;
}

/* ============================================
   PROTOTYPES
   ============================================ */
.proto-caption {
  margin-bottom: 48px;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.carousel__track {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: block;
  pointer-events: none;
}

.carousel__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.95);
  transition: filter 0.4s ease;
}

.carousel__slide:hover img {
  filter: saturate(1) brightness(1);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}

.carousel__btn:hover {
  background: rgba(10, 10, 10, 0.9);
  border-color: var(--accent-violet);
}

.carousel__btn--prev {
  left: 12px;
}

.carousel__btn--next {
  right: 12px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.carousel__dot--active {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
}

/* ============================================
   ECOSYSTEM / LOGOS
   ============================================ */
#ecosystem {
  padding: 80px 0;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 0.7;
}

.partner-logo--color {
  filter: none;
  height: 74px;
  opacity: 0.5;
}

.partner-logo--color:hover {
  opacity: 0.85;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  margin-top: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-input {
  width: 100%;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-input:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 1px var(--accent-violet);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.contact-form .btn--primary {
  align-self: flex-start;
}

/* ============================================
   WAITLIST
   ============================================ */
.section--waitlist {
  border-bottom: none;
}

.waitlist-form {
  margin-top: 40px;
}

.waitlist-form__row {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-input:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 1px var(--accent-violet);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 10, 0.85);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__left,
.footer__right {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 96px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-py: 72px;
  }

  .hero__headline {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col__visual {
    display: none;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    max-width: 100%;
  }

  .senses-row {
    gap: 32px;
  }

  .waitlist-form__row {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .logo-row {
    gap: 32px;
  }

  .partner-logo {
    height: 28px;
  }

  .partner-logo--color {
    height: 34px;
  }
}
