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

:root {
  --bg:        #272822;
  --bg-2:      #1e1f1b;
  --bg-3:      #2f3029;
  --text:      #c1c1aa;
  --text-dim:  #6e6e60;
  --text-bright: #e8e8d8;
  --pink:      #ff326b;
  --blue:      #72d8ef;
  --green:     #a9e23d;
  --orange:    #fd961f;
  --purple:    #a15cb9;
  --teal:      #1cbd9e;

  --font-sans: 'Nunito', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --max-w: 1200px;
  --section-pad: clamp(80px, 12vw, 140px);
}

html { scroll-behavior: smooth; }

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

::selection { background: var(--pink); color: #fff; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-left: 2px solid var(--pink);
  padding-left: 10px;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 200;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 48px;
}

.section-title em {
  font-style: italic;
  color: var(--pink);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255,50,107,0);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,50,107,0.35);
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(39,40,34,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(193,193,170,0.06);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo span { color: var(--pink); }

.nav__links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text-bright); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 102;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-bright);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity 0.25s ease,
              background 0.25s ease;
  transform-origin: center;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
}

@media (max-width: 480px) {
  .hero {
    padding-top: 70px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particleCanvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 200;
  line-height: 1.05;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
}

.word { display: inline-block; }
.word--ghost { opacity: 0.35; }

.hero__sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 42px;
  line-height: 1.8;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ============================================================
   FACTORY CONVEYOR — hero background animation
============================================================ */
.factory {
  width: 100%;
  margin: 32px 0 8px;
  pointer-events: none;
  opacity: 0.7;
}

.factory__svg {
  width: 100%;
  height: auto;
  max-height: 260px;
  display: block;
}

/* ============================================================
   FACTORY MOBILE — U-shape SVG
============================================================ */
.factory-mobile {
  display: none;
  width: 100%;
  margin: 28px 0 28px;
  padding: 0 40px;
  box-sizing: border-box;
}

.factory-mobile svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* mask the items so they appear/disappear cleanly at edges */
.factory__svg {
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(193,193,170,0.06);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__right p {
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--text);
}

.about__right p strong { color: var(--text-bright); font-weight: 400; }

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(193,193,170,0.08);
}

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
}

.stat__label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================================
   CRAFT
============================================================ */
.craft {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
  border-top: 1px solid rgba(193,193,170,0.04);
}

.craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.craft__card {
  padding: 40px 32px;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.craft__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-accent, #ff326b);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.craft__card:hover::before { opacity: 0.04; }

.craft__card:hover .craft__card-line {
  width: 100%;
}

.craft__card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.craft__card h3 {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 14px;
}

.craft__card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

.craft__card-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--card-accent, #ff326b);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.craft__card[data-color="#ff326b"] { --card-accent: #ff326b; }
.craft__card[data-color="#72d8ef"] { --card-accent: #72d8ef; }
.craft__card[data-color="#a9e23d"] { --card-accent: #a9e23d; }
.craft__card[data-color="#fd961f"] { --card-accent: #fd961f; }
.craft__card[data-color="#a15cb9"] { --card-accent: #a15cb9; }
.craft__card[data-color="#1cbd9e"] { --card-accent: #1cbd9e; }

/* ============================================================
   WORK / PHILOSOPHY
============================================================ */
.work {
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(193,193,170,0.06);
}

.marquee-wrap {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid rgba(193,193,170,0.06);
  border-bottom: 1px solid rgba(193,193,170,0.06);
  margin: 40px 0 60px;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 18s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.marquee span { flex-shrink: 0; padding: 0 8px; }
.marquee span:nth-child(odd)  { color: var(--pink); }
.marquee span:nth-child(even) { color: var(--text-dim); }

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

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
}

.principle { padding: 32px 0; }

.principle__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}

.principle h4 {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.principle p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-2);
  border-top: 1px solid rgba(193,193,170,0.06);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--text-bright);
  display: block;
  margin-bottom: 14px;
}

.footer__logo em {
  font-style: italic;
  color: var(--pink);
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-dim);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(193,193,170,0.05);
  border: 1px solid rgba(193,193,170,0.1);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(28,189,158,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(28,189,158,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(28,189,158,0); }
  100% { box-shadow: 0 0 0 0 rgba(28,189,158,0); }
}

.footer__note {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(193,193,170,0.06);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.footer__made { color: var(--pink); }

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

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

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .craft__grid  { grid-template-columns: repeat(2, 1fr); }
  .about__grid  { grid-template-columns: 1fr; }
  .principles   { grid-template-columns: 1fr; }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .craft__grid     { grid-template-columns: 1fr; }
  .about__stats    { flex-wrap: wrap; gap: 24px; }
  .footer__inner   { flex-direction: column; }
  .footer__bottom  { flex-direction: column; gap: 8px; }

  .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100dvh;
    background: var(--bg-2);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 101;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
  }

  .nav__toggle { display: flex; }

  .nav__links.open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .nav__links li {
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
  }

  .nav__links.open li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.18s; }
  .nav__links.open li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.26s; }
  .nav__links.open li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.34s; }

  .nav__links a { font-size: 22px; letter-spacing: 0.15em; }

  /* swap factories */
  .factory        { display: none; }
  .factory-mobile { display: block; }
}
