/* ============================================
   Treeline Flooring — Cinematic Edition
   bridge.surf-grade scroll experience
============================================ */

:root {
  --bg: #FAFAF6;
  --bg-soft: #F2F0E8;
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #2A2A28;
  --muted: #7A7A74;
  --line: rgba(10, 10, 10, 0.10);
  --line-soft: rgba(10, 10, 10, 0.06);
  --green: #1F4A2F;
  --green-deep: #122E1C;
  --green-light: #6B9B7A;
  --green-pale: #DCE4D6;
  --red-error: #B33A3A;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
body.loading { overflow: hidden; }
body.no-scroll { overflow: hidden; }

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

/* Show native cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.8s var(--ease-in-out);
}
.loader.done {
  transform: translateY(-100%);
  pointer-events: none;
}
.loader-inner {
  position: relative;
  width: min(80vw, 900px);
  color: var(--bg);
}
.loader-text {
  font-family: var(--display);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}
.loader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: loaderLetter 0.7s var(--ease-out) forwards;
}
.loader-text span:nth-child(1) { animation-delay: 0.05s; }
.loader-text span:nth-child(2) { animation-delay: 0.1s; }
.loader-text span:nth-child(3) { animation-delay: 0.15s; }
.loader-text span:nth-child(4) { animation-delay: 0.2s; }
.loader-text span:nth-child(5) { animation-delay: 0.25s; }
.loader-text span:nth-child(6) { animation-delay: 0.3s; }
.loader-text span:nth-child(7) { animation-delay: 0.35s; }
.loader-text span:nth-child(8) { animation-delay: 0.4s; }

@keyframes loaderLetter {
  to { opacity: 1; transform: translateY(0); }
}

.loader-progress {
  width: 100%;
  height: 1px;
  background: rgba(250, 250, 246, 0.15);
  position: relative;
  margin-bottom: 14px;
}
.loader-progress-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--green-light);
}
.loader-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(250, 250, 246, 0.5);
}

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(31, 74, 47, 0.4);
  border-radius: 50%;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor.lg { width: 14px; height: 14px; background: var(--green); }
.cursor-ring.lg { width: 64px; height: 64px; border-color: var(--green); }
.cursor.zoom { width: 0; height: 0; }
.cursor-ring.zoom {
  width: 88px; height: 88px;
  border-color: var(--green);
  background: rgba(31, 74, 47, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cursor-ring.zoom::after {
  content: 'VIEW';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--green);
  font-weight: 600;
}
.cursor.dark { background: var(--green-light); }
.cursor-ring.dark { border-color: rgba(107, 155, 122, 0.5); }

/* ============ Scroll Progress ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--green);
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* ============ Navigation ============ */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 246, 0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: padding 0.3s var(--ease-out), background 0.4s var(--ease-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.top.scrolled {
  padding: 12px 48px;
  background: rgba(250, 250, 246, 0.85);
  border-bottom-color: var(--line-soft);
}
nav.top.dark-section {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: rgba(255,255,255,0.1);
}
nav.top.dark-section .brand-name,
nav.top.dark-section .nav-links a { color: var(--bg); }
nav.top.dark-section .brand-mark { color: var(--green-light); }
nav.top.dark-section .nav-cta { background: var(--green-light); color: var(--ink); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 28px; height: 28px; color: var(--green); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a.active { color: var(--green); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 20px;
  background: var(--green);
  color: var(--bg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--ink); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
  z-index: 110;
  position: relative;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-in-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: grid; gap: 24px; text-align: center; }
.mobile-link {
  font-family: var(--display);
  font-size: 44px;
  color: var(--bg);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-link:hover, .mobile-link.cta { color: var(--green-light); }
.mobile-link.cta { font-style: italic; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-eyebrow span {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
}
body.loaded .hero-eyebrow span {
  animation: heroEyebrowIn 0.7s var(--ease-out) forwards;
}
body.loaded .hero-eyebrow span:nth-child(1) { animation-delay: 0.2s; }
body.loaded .hero-eyebrow span:nth-child(2) { animation-delay: 0.25s; }
body.loaded .hero-eyebrow span:nth-child(3) { animation-delay: 0.3s; }
body.loaded .hero-eyebrow span:nth-child(4) { animation-delay: 0.35s; }
body.loaded .hero-eyebrow span:nth-child(5) { animation-delay: 0.4s; }
body.loaded .hero-eyebrow span:nth-child(6) { animation-delay: 0.45s; }
body.loaded .hero-eyebrow span:nth-child(7) { animation-delay: 0.5s; }
@keyframes heroEyebrowIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(80px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--ink);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}
.hero-line { display: block; }
.hero-h1 em { font-style: italic; color: var(--green); }

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(8deg);
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
  transform-origin: 0 100%;
}
body.loaded .char.in {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero-meta {
  display: flex;
  gap: 40px;
}
.hero-meta-item {
  display: grid;
  gap: 4px;
}
.hero-meta-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero-meta-val {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
}
.scroll-indicator {
  display: inline-block;
  animation: scrollPulse 1.8s ease-in-out infinite;
  color: var(--green);
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.8s;
}
body.loaded .reveal-fade { opacity: 1; }

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
  width: max-content;
}
.m-item {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.m-dot {
  color: var(--green-light);
  font-size: 18px;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ PINNED MORPHING TEXT ============ */
.pin-section { position: relative; }
.pin-morph {
  height: 500vh; /* 5 viewport heights of scroll for the pin */
  background: var(--bg);
}
.pin-morph .pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 48px;
}
.pin-counter {
  position: absolute;
  top: 120px;
  right: 48px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.pin-counter-current { color: var(--green); transition: opacity 0.4s; }
.pin-counter-sep { margin: 0 4px; opacity: 0.5; }

.morph-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92) translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  text-align: center;
  padding: 0 48px;
}
.morph-stage.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.morph-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 40px;
}
.morph-text {
  font-family: var(--display);
  font-size: clamp(80px, 16vw, 260px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 32px;
}
.morph-text em {
  font-style: italic;
  color: var(--green);
}
.morph-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.4;
}

/* ============ PHILOSOPHY (with parallax) ============ */
.philosophy {
  padding: 200px 48px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.philosophy-bg {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 30%, rgba(31, 74, 47, 0.05), transparent 50%);
  pointer-events: none;
  will-change: transform;
}
.container {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--green);
}

.philosophy-content h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.philosophy-content h2 em {
  font-style: italic;
  color: var(--green);
}
.philosophy-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 480px;
}
.philosophy-signature {
  margin-top: 40px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--green);
  line-height: 1.4;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 280px;
}

.philosophy-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}
.philosophy-visual-inner {
  position: absolute;
  inset: -10%;
  background-image: url("https://mingzun-tech.com/wp-content/uploads/2024/12/38-1024x915.png");
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.philosophy-tag {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--bg);
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  z-index: 2;
}

/* ============ BIG SCALING TYPE ============ */
.big-type {
  height: 300vh;
  background: var(--ink);
  color: var(--bg);
  position: relative;
}
.big-type-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 48px;
}
.big-type-tag {
  position: absolute;
  top: 80px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  text-align: center;
}
.big-type-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 14vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-align: center;
  will-change: transform;
}
.bt-line {
  display: block;
  opacity: 0.2;
  transition: opacity 0.5s ease, color 0.5s ease;
}
.bt-line.lit {
  opacity: 1;
}
.bt-line em {
  font-style: italic;
  color: var(--green-light);
}

/* ============ HORIZONTAL SCROLL ============ */
.h-scroll-section {
  height: 450vh; /* Laminate scroll: 6 cards */
  background: var(--bg);
  position: relative;
}
.h-scroll-section.h-scroll-spc {
  height: 320vh; /* SPC scroll: 4 cards, shorter */
  background: var(--bg-soft); /* Slightly different bg to differentiate */
}
.h-scroll-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.h-scroll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 110px 48px 32px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-scroll-tag {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}
.h-scroll-vol {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--green);
  text-transform: none;
  letter-spacing: 0;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.h-scroll-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.h-scroll-progress-bar {
  width: 120px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.h-scroll-progress-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.15s ease-out;
}
.h-scroll-track {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 48px;
  flex: 1;
  height: 100%;
  will-change: transform;
}

.h-card {
  flex-shrink: 0;
  width: 480px;
  background: var(--paper);
  border-radius: 4px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 600px;
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.h-card:hover {
  transform: translateY(-12px);
  border-color: var(--green);
}
.h-card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--display);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  z-index: 2;
}
.h-card-img {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.h-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.h-card:hover .h-card-img img {
  transform: scale(1.06);
}
.h-card-swatch {
  position: absolute;
  inset: 0;
}
.h-card-body {
  padding: 32px;
  border-top: 1px solid var(--line-soft);
}
.h-card-code {
  font-family: var(--display);
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  font-style: italic;
}
.h-card-body h3 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1;
}
.h-card-body p {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.h-card-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* CTA card in horizontal scroll */
.h-card-cta {
  background: var(--green);
  border-color: var(--green);
}
.h-card-cta-link {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px;
  text-decoration: none;
  color: var(--bg);
}
.h-card-cta-text {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.h-card-cta-text em {
  font-style: italic;
  color: var(--green-light);
}
.h-card-cta-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

/* Dark variant CTA (used in SPC scroll) */
.h-card-cta-dark {
  background: var(--ink);
  border-color: var(--ink);
}
.h-card-cta-dark .h-card-cta-text em {
  color: var(--green-light);
}

/* SPC intro card (first card in SPC scroll) */
.h-card-intro {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  width: 520px;
  display: flex;
  flex-direction: column;
}
.h-card-intro-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.h-card-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.h-card-intro:hover .h-card-intro-img img { transform: scale(1.05); }
.h-card-intro-inner {
  flex: 1;
  width: 100%;
  padding: 40px 50px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.h-card-intro-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
}
.h-card-intro-title {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 28px 0;
}
.h-card-intro-title em {
  font-style: italic;
  color: var(--green-light);
}
.h-card-intro-meta {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.h-card-intro-meta > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  font-size: 13px;
  align-items: baseline;
}
.h-card-intro-meta span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
}

/* ============ TRANSITION SECTION ============ */
.transition-section {
  height: 180vh;
  background: var(--ink);
  color: var(--bg);
  position: relative;
}
.transition-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  text-align: center;
  overflow: hidden;
}
.transition-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(107, 155, 122, 0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(31, 74, 47, 0.15), transparent 50%);
  pointer-events: none;
}
.transition-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--green-light));
  margin-bottom: 40px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out);
}
.transition-inner.lit .transition-line {
  opacity: 1;
  transform: scaleY(1);
}
.transition-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.1s, transform 0.8s var(--ease-out) 0.1s;
}
.transition-inner.lit .transition-tag {
  opacity: 1;
  transform: translateY(0);
}
.transition-text {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.88;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.t-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}
.t-line:nth-child(1) { transition-delay: 0.15s; }
.t-line:nth-child(2) { transition-delay: 0.3s; }
.transition-inner.lit .t-line {
  opacity: 1;
  transform: translateY(0);
}
.t-line em {
  font-style: italic;
  color: var(--green-light);
}
.transition-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  color: rgba(250, 250, 246, 0.7);
  line-height: 1.5;
  max-width: 620px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out) 0.5s, transform 0.9s var(--ease-out) 0.5s;
  position: relative;
  z-index: 1;
}
.transition-inner.lit .transition-sub {
  opacity: 1;
  transform: translateY(0);
}

/* Wood swatches */
.wood-greyoak {
  background: linear-gradient(110deg, #8E8B86 0%, #9E9B96 25%, #82807C 50%, #A6A39E 75%, #8E8B86 100%);
}
.wood-walnut {
  background: linear-gradient(110deg, #B07B3F 0%, #C08A4B 25%, #A06D33 50%, #C99352 75%, #B07B3F 100%);
}
.wood-greyoak::before, .wood-walnut::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(95deg, transparent, transparent 8px, rgba(0,0,0,0.04) 8px, rgba(0,0,0,0.04) 9px),
    repeating-linear-gradient(92deg, transparent, transparent 22px, rgba(0,0,0,0.06) 22px, rgba(0,0,0,0.06) 23px);
}

/* ============ SCATTER GALLERY ============ */
.gallery {
  padding: 180px 48px 220px;
  background: var(--bg-soft);
  position: relative;
}
.gallery-head {
  max-width: 1320px;
  margin: 0 auto 120px;
}
.gallery-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 24px;
  max-width: 800px;
}
.gallery-title em { font-style: italic; color: var(--green); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  opacity: 0;
  transform: translateY(60px) rotate(0deg) scale(0.95);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
  will-change: transform;
}
.gallery-item.in {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}
.gallery-item[data-gallery-item="0"] { grid-column: 1 / span 4; transition-delay: 0s; }
.gallery-item[data-gallery-item="1"] { grid-column: 5 / span 4; grid-row: 1; margin-top: 60px; transition-delay: 0.1s; }
.gallery-item[data-gallery-item="2"] { grid-column: 9 / span 4; transition-delay: 0.2s; }
.gallery-item[data-gallery-item="3"] { grid-column: 2 / span 4; transition-delay: 0.3s; }
.gallery-item.gallery-item-wide { grid-column: 6 / span 7; aspect-ratio: 16/10; transition-delay: 0.4s; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(250, 250, 246, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

/* ============ FEATURES ============ */
.features {
  background: var(--ink);
  color: var(--bg);
  padding: 180px 48px;
  overflow: hidden;
}
.features-head {
  text-align: center;
  margin-bottom: 100px;
}
.features-head .eyebrow {
  color: var(--green-light);
  justify-content: center;
}
.features-head .eyebrow::before { background: var(--green-light); }
.features-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-top: 24px;
}
.features-title em {
  font-style: italic;
  color: var(--green-light);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 1320px;
  margin: 0 auto;
}
.feature-item {
  background: var(--ink);
  padding: 56px 36px;
  transition: background 0.5s, transform 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-item:hover {
  background: rgba(31, 74, 47, 0.4);
}
.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(107, 155, 122, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s;
}
.feature-item:hover::before { opacity: 1; }
.feature-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--green-light);
  font-style: italic;
  margin-bottom: 60px;
  letter-spacing: 0.04em;
}
.feature-item h4 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--bg);
  line-height: 1.05;
}
.feature-item p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(250, 250, 246, 0.55);
  margin-bottom: 36px;
}
.feature-arrow {
  font-size: 24px;
  color: var(--green-light);
  transition: transform 0.4s var(--ease-out);
  display: inline-block;
}
.feature-item:hover .feature-arrow {
  transform: translate(6px, -6px);
}

/* ============ SPECS ============ */
.specs-section {
  padding: 180px 48px;
  background: var(--bg);
}
.specs-head-wrap { margin-bottom: 80px; }
.specs-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 24px;
}
.specs-title em { font-style: italic; color: var(--green); }
.specs-wrap {
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  max-width: 1320px;
  margin: 0 auto;
}
.specs-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  background: var(--green);
  color: var(--bg);
}
.specs-head > div {
  padding: 40px 36px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.specs-head > div:last-child { border-right: none; }
.specs-head .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 246, 0.6);
  margin-bottom: 14px;
  font-weight: 600;
}
.specs-head h4 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
}
.specs-head h4 em { font-style: italic; }

.specs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.specs-row.in { opacity: 1; transform: translateY(0); }
.specs-row:nth-child(2).in { transition-delay: 0s; }
.specs-row:nth-child(3).in { transition-delay: 0.05s; }
.specs-row:nth-child(4).in { transition-delay: 0.1s; }
.specs-row:nth-child(5).in { transition-delay: 0.15s; }
.specs-row:nth-child(6).in { transition-delay: 0.2s; }
.specs-row:nth-child(7).in { transition-delay: 0.25s; }
.specs-row:nth-child(8).in { transition-delay: 0.3s; }

.specs-row:hover { background: var(--bg-soft); }
.specs-row > div {
  padding: 28px 36px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  display: flex;
  align-items: center;
}
.specs-row > div:last-child { border-right: none; }
.specs-row .row-label {
  font-weight: 600;
  color: var(--ink);
}
.specs-row .row-value { color: var(--ink-soft); }

/* ============ APPLICATIONS ============ */
.applications {
  background: var(--bg-soft);
  padding: 180px 48px;
}
.applications-head { text-align: center; margin-bottom: 100px; }
.applications-head .eyebrow { justify-content: center; }
.applications-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 24px;
}
.applications-head h2 em { font-style: italic; color: var(--green); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.app-card {
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: none;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
}
.app-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out);
}
.app-card:hover .app-card-img { transform: scale(1.05); }
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.85));
  z-index: 1;
}
.app-card-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 2;
  color: var(--bg);
}
.app-card-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--green-light);
  font-style: italic;
  margin-bottom: 12px;
}
.app-card-tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.app-card-content h3 {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 16px;
}
.app-card-content h3 em { font-style: italic; }
.app-card-content p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 320px;
}

/* ============ FACTORY / MANUFACTURING ============ */
.factory {
  padding: 180px 48px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.factory-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}
.factory-head .eyebrow { justify-content: center; }
.factory-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-top: 24px;
  margin-bottom: 36px;
}
.factory-title em { font-style: italic; color: var(--green); }
.factory-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
}

/* Hero workshop photo */
.factory-hero {
  position: relative;
  max-width: 1320px;
  margin: 0 auto 80px;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--bg-soft);
}
.factory-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease-out);
}
.factory-hero:hover img { transform: scale(1.03); }
.factory-hero-label {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 26px;
  border-radius: 4px;
  color: var(--bg);
  display: grid;
  gap: 6px;
}
.factory-hero-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
}
.factory-hero-loc {
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  line-height: 1;
}

/* Stats */
.factory-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1320px;
  margin: 0 auto 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.factory-stat {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.factory-stat:last-child { border-right: none; }
.factory-stat:hover { background: var(--bg-soft); }
.factory-stat-num {
  font-family: var(--display);
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.factory-stat-num em {
  font-style: italic;
  color: var(--green);
}
.factory-stat-num sup {
  font-size: 0.55em;
  font-style: italic;
  vertical-align: top;
  color: var(--green-light);
  font-family: var(--display);
}
.factory-stat-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Gallery grid */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto 100px;
}
.factory-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
  cursor: none;
  transition: transform 0.5s var(--ease-out);
}
.factory-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.factory-gallery-item:nth-child(2) { grid-column: span 2; }
.factory-gallery-item:nth-child(3) { grid-column: span 2; }
.factory-gallery-item:nth-child(4) { grid-column: span 3; }
.factory-gallery-item:nth-child(5) { grid-column: span 1; }
.factory-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.factory-gallery-item:hover {
  transform: translateY(-4px);
}
.factory-gallery-item:hover img {
  transform: scale(1.06);
}
.factory-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.5));
  pointer-events: none;
}
.factory-gallery-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(250, 250, 246, 0.95);
  backdrop-filter: blur(10px);
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  z-index: 1;
}

/* Markets line */
.factory-markets {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.factory-markets-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
}
.factory-markets-list {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 38px);
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  line-height: 1.4;
}
.factory-markets-list span {
  font-style: italic;
}
.factory-markets-sep {
  color: var(--green);
  font-size: 0.7em;
  font-style: normal !important;
}

/* ============ CONTACT ============ */
.contact-section {
  padding: 180px 48px;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}
.contact-h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-top: 24px;
  margin-bottom: 28px;
}
.contact-h2 em { font-style: italic; color: var(--green); }
.contact-info > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 48px;
  max-width: 480px;
}
.contact-channels { display: grid; gap: 0; }
.contact-channel {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
}
.contact-channel:last-child { border-bottom: 1px solid var(--line); }
.contact-channel-num {
  font-family: var(--display);
  font-size: 28px;
  color: var(--green);
  font-style: italic;
  line-height: 1;
}
.contact-channel-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-channel-value {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}

.contact-form {
  background: var(--paper);
  padding: 56px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 80px -30px rgba(10, 10, 10, 0.12);
}
.form-row { margin-bottom: 22px; }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: block; position: relative; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 10px;
}
.form-label em { color: var(--green); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.25s;
  resize: none;
  cursor: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(31, 74, 47, 0.1);
}
.form-field.error input,
.form-field.error select { border-color: var(--red-error); }
.form-error {
  display: none;
  font-size: 12px;
  color: var(--red-error);
  margin-top: 6px;
}
.form-field.error .form-error { display: block; }

.form-submit {
  width: 100%;
  padding: 18px 30px;
  background: var(--green);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  transition: all 0.3s;
}
.form-submit:hover { background: var(--ink); transform: translateY(-2px); }
.form-submit svg { transition: transform 0.3s; }
.form-submit:hover svg { transform: translateX(4px); }
.form-success {
  display: none;
  margin-top: 22px;
  padding: 22px;
  background: var(--green-pale);
  border-radius: 4px;
  color: var(--green-deep);
  font-size: 14px;
  border: 1px solid var(--green-light);
}
.form-success.show { display: block; }

/* ============ FINALE ============ */
.finale {
  background: var(--ink);
  color: var(--bg);
  padding: 200px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(107, 155, 122, 0.1), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(31, 74, 47, 0.2), transparent 50%);
  pointer-events: none;
}
.finale-inner { position: relative; z-index: 1; }
.finale-eyebrow {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 60px;
}
.finale-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin-bottom: 80px;
}
.finale-line { display: block; }
.finale-line em { font-style: italic; color: var(--green-light); }

.finale-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 40px;
  background: var(--green-light);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: all 0.3s;
}
.finale-cta:hover {
  background: var(--bg);
  transform: translateY(-3px);
}
.finale-cta svg { transition: transform 0.3s; }
.finale-cta:hover svg { transform: translateX(4px); }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: rgba(250, 250, 246, 0.7);
  padding: 100px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-top-left { display: flex; flex-direction: column; }
.footer-brand-name { color: var(--bg); }
.footer-tagline {
  margin-top: 24px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: rgba(250, 250, 246, 0.55);
}
.footer-credit {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(250, 250, 246, 0.5);
  line-height: 1.7;
}
.footer-credit strong {
  color: var(--bg);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.footer-since {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  background: rgba(107, 155, 122, 0.12);
  border: 1px solid rgba(107, 155, 122, 0.3);
  color: var(--green-light);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  font-weight: 600;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-col h6 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 24px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 14px;
}
.footer-col a {
  color: rgba(250, 250, 246, 0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-light); }

.footer-contact-list {
  display: grid;
  gap: 18px;
}
.footer-contact-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250, 250, 246, 0.7);
}
.footer-contact-icon {
  display: grid;
  place-items: center;
  color: var(--green-light);
  margin-top: 3px;
}
.footer-contact-row a {
  color: rgba(250, 250, 246, 0.7);
  font-size: 13px;
}
.footer-contact-row a:hover { color: var(--green-light); }
.footer-contact-emails .footer-emails-extra {
  font-size: 12px;
  color: rgba(250, 250, 246, 0.5);
  line-height: 1.7;
}
.footer-contact-emails a { color: rgba(250, 250, 246, 0.5); font-size: 12px; }

.footer-socials {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: rgba(250, 250, 246, 0.7);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s;
}
.footer-socials a:hover {
  background: var(--green-light);
  color: var(--ink);
  border-color: var(--green-light);
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(250, 250, 246, 0.4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-links a {
  color: rgba(250, 250, 246, 0.4);
  text-decoration: none;
  margin-left: 24px;
}
.footer-bottom-links a:hover { color: var(--bg); }

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease;
}
.modal-panel {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  max-width: 1100px;
  width: 100%;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  z-index: 1;
  animation: modalIn 0.5s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(250, 250, 246, 0.95);
  border: 1px solid var(--line);
  cursor: none;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 540px;
}
.modal-image {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.modal-body {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-pale);
  color: var(--green-deep);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}
.modal-title {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.modal-code {
  font-family: var(--display);
  font-size: 18px;
  color: var(--green);
  font-style: italic;
  margin-bottom: 24px;
}
.modal-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.modal-specs { margin-bottom: 36px; }
.modal-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.modal-spec-row:last-child { border-bottom: 1px solid var(--line-soft); }
.modal-spec-row .label {
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 12px;
}
.modal-spec-row .val { color: var(--ink); font-weight: 600; }
.modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--green);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-radius: 100px;
  transition: all 0.3s;
  width: fit-content;
}
.modal-cta:hover { background: var(--ink); transform: translateY(-2px); }

/* ============ REVEAL HELPERS ============ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax helper */
.parallax { will-change: transform; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  
  nav.top { padding: 18px 32px; }
  nav.top.scrolled { padding: 12px 32px; }
  
  .hero { padding: 130px 32px 60px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  
  .pin-morph { height: 400vh; }
  
  .philosophy { padding: 120px 32px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 60px; }
  
  .big-type { height: 220vh; }
  
  .h-scroll-section { height: 380vh; }
  .h-scroll-section.h-scroll-spc { height: 280vh; }
  .h-scroll-header { padding: 100px 32px 24px; }
  .h-scroll-track { padding: 0 32px; gap: 24px; }
  .h-card { width: 380px; height: 540px; }
  .h-card-intro { width: 420px; }
  .h-card-intro-inner { padding: 40px; }
  .h-card-intro-title { font-size: 52px; margin: 32px 0; }
  
  .transition-section { height: 160vh; }
  
  .gallery { padding: 120px 32px 160px; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .gallery-item[data-gallery-item="0"] { grid-column: 1 / span 3; }
  .gallery-item[data-gallery-item="1"] { grid-column: 4 / span 3; margin-top: 40px; }
  .gallery-item[data-gallery-item="2"] { grid-column: 1 / span 3; }
  .gallery-item[data-gallery-item="3"] { grid-column: 4 / span 3; }
  .gallery-item.gallery-item-wide { grid-column: 1 / span 6; }
  
  .features { padding: 120px 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-section { padding: 120px 32px; }
  .applications { padding: 120px 32px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .app-grid .app-card:last-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
  
  .factory { padding: 120px 32px; }
  .factory-stats { grid-template-columns: repeat(2, 1fr); }
  .factory-stat:nth-child(2) { border-right: none; }
  .factory-stat:nth-child(1), .factory-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .factory-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .factory-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .factory-gallery-item:nth-child(2) { grid-column: span 2; }
  .factory-gallery-item:nth-child(3) { grid-column: span 2; }
  .factory-gallery-item:nth-child(4) { grid-column: span 2; }
  .factory-gallery-item:nth-child(5) { grid-column: span 2; }
  
  .contact-section { padding: 120px 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .finale { padding: 140px 32px; }
  
  .modal-grid { grid-template-columns: 1fr; }
  .modal-image { min-height: 320px; }
  .modal-body { padding: 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 60px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col-contact { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  nav.top { padding: 14px 20px; }
  nav.top.scrolled { padding: 10px 20px; }
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .brand-name { font-size: 20px; }
  
  .hero { padding: 110px 20px 50px; }
  .hero-h1 { padding: 40px 0; }
  
  .pin-morph { height: 350vh; }
  .pin-counter { top: 100px; right: 20px; font-size: 14px; }
  .morph-stage { padding: 0 20px; }
  .morph-tag { margin-bottom: 24px; }
  
  .philosophy { padding: 80px 20px; }
  .big-type { height: 200vh; }
  .big-type-inner { padding: 0 20px; }
  
  .h-scroll-section { height: 320vh; }
  .h-scroll-section.h-scroll-spc { height: 240vh; }
  .h-scroll-header { padding: 90px 20px 20px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .h-scroll-tag { font-size: 11px; }
  .h-scroll-track { padding: 0 20px; gap: 20px; }
  .h-card { width: 300px; height: 480px; }
  .h-card-body { padding: 24px; }
  .h-card-body h3 { font-size: 28px; }
  .h-card-cta-link { padding: 32px; }
  .h-card-cta-text { font-size: 38px; }
  .h-card-intro { width: 320px; }
  .h-card-intro-inner { padding: 32px; }
  .h-card-intro-title { font-size: 42px; margin: 24px 0; }
  .h-card-intro-meta > div { grid-template-columns: 100px 1fr; }
  
  .transition-section { height: 140vh; }
  .transition-inner { padding: 0 20px; }
  .transition-text { margin-bottom: 28px; }
  .transition-sub { font-size: 18px; }
  
  .gallery { padding: 80px 20px 100px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.gallery-item-wide {
    grid-column: 1; margin-top: 0;
  }
  
  .features { padding: 80px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { padding: 40px 28px; }
  
  .specs-section { padding: 80px 20px; }
  .specs-head, .specs-row { grid-template-columns: 1fr; }
  .specs-head > div, .specs-row > div { border-right: none; }
  .specs-head > div { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .specs-row > div { border-bottom: 1px solid var(--line); padding: 16px 22px; }
  
  .applications { padding: 80px 20px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .app-card:last-child { aspect-ratio: 3/4; }
  .app-card-content { left: 28px; right: 28px; bottom: 28px; }
  .app-card-content h3 { font-size: 34px; }
  
  .factory { padding: 80px 20px; }
  .factory-head { margin-bottom: 50px; }
  .factory-intro { font-size: 16px; }
  .factory-hero { aspect-ratio: 4/5; margin-bottom: 50px; }
  .factory-hero-label { bottom: 20px; left: 20px; padding: 16px 20px; }
  .factory-hero-loc { font-size: 18px; }
  .factory-stats { grid-template-columns: 1fr; margin-bottom: 60px; }
  .factory-stat { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--line); }
  .factory-stat:last-child { border-bottom: none; }
  .factory-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; margin-bottom: 60px; }
  .factory-gallery-item, 
  .factory-gallery-item:nth-child(1), 
  .factory-gallery-item:nth-child(2), 
  .factory-gallery-item:nth-child(3), 
  .factory-gallery-item:nth-child(4), 
  .factory-gallery-item:nth-child(5) {
    grid-column: span 1; grid-row: span 1;
  }
  .factory-markets-list { font-size: 18px; gap: 10px; }
  
  .contact-section { padding: 80px 20px; }
  .contact-form { padding: 32px 24px; }
  .form-row-two { grid-template-columns: 1fr; }
  
  .finale { padding: 100px 20px; }
  
  .modal { padding: 20px; }
  .modal-body { padding: 32px 24px; }
  .modal-title { font-size: 38px; }
  
  footer { padding: 60px 20px 30px; }
  .footer-top { gap: 40px; padding-bottom: 40px; margin-bottom: 40px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-col-contact { grid-column: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links a { margin-left: 0; margin-right: 18px; }
  .footer-socials { flex-wrap: wrap; }
}
