:root {
  --ink: #102B2D;
  --paper: #F4F5EF;
  --teal: #0F766E;
  --lime: #D8F36A;
  --deep: #183739;
  --sub-l: #45635F;
  --sub-d: #9FB9B5;
  --line-l: #CAD8D0;
  --line-d: rgba(184, 206, 202, 0.16);
  --selected: #E9F2D3;
  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.lime { color: var(--lime); }
.teal { color: var(--teal); }
.teal-b { color: var(--teal); font-weight: 600; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 40px;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(16, 43, 45, 0.94); backdrop-filter: blur(12px); border-bottom-color: var(--line-d); }
.nav-brand img { display: block; }
.nav-links { display: flex; gap: 38px; }
.nav-links a { color: var(--sub-d); text-decoration: none; font-size: 13.5px; letter-spacing: 0.08em; transition: color .2s; }
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  color: var(--ink); background: var(--lime); text-decoration: none;
  font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 2px;
}

/* HERO */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; display: grid; place-items: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em; color: var(--sub-d); margin: 0 0 28px; }
.hero-title {
  margin: 0; font-size: clamp(88px, 15vw, 210px); font-weight: 600; line-height: 1;
  letter-spacing: 0.04em; color: var(--paper);
}
.hero-line { margin: 34px 0 0; font-size: clamp(18px, 2vw, 24px); font-weight: 300; letter-spacing: 0.16em; color: var(--paper); }
.hero-content .reveal:nth-child(2) { transition-delay: .15s; }
.hero-content .reveal:nth-child(3) { transition-delay: .35s; }
.hero-foot {
  position: absolute; left: 40px; right: 40px; bottom: 34px; z-index: 2;
  display: flex; justify-content: center; gap: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--sub-d);
}
.hero-arrow { color: rgba(216, 243, 106, 0.6); }
.scroll-cue {
  position: absolute; right: 40px; bottom: 28px; z-index: 2;
  color: var(--sub-d); text-decoration: none; font-size: 18px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* SECTIONS */
.paper { background: var(--paper); color: var(--ink); padding: 140px 0; }
.dark { background: var(--ink); color: var(--paper); padding: 140px 0; border-top: 1px solid var(--line-d); }
.index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--teal); margin: 0 0 44px; }
.index-dark { color: var(--lime); }
.h2 { margin: 0 0 24px; font-size: clamp(34px, 4.2vw, 54px); font-weight: 500; line-height: 1.24; letter-spacing: -0.01em; }
.h2-dark { color: var(--paper); margin-bottom: 64px; }
.lead { margin: 0 0 56px; font-size: 19px; color: var(--sub-l); line-height: 1.75; max-width: 720px; }

/* SHIFT BAR (LIGHT) */
.shift { display: flex; flex-direction: column; gap: 14px; margin-bottom: 84px; }
.shift-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 20px; }
.shift-label { font-size: 13px; letter-spacing: 0.12em; color: var(--sub-l); }
.bar-light { display: flex; height: 50px; border: 1px solid var(--line-l); background: #fff; }
.seg {
  font-style: normal; display: flex; align-items: center; padding: 0 18px;
  font-size: 13px; white-space: nowrap; overflow: hidden;
  width: 0; transition: width 1.5s cubic-bezier(.2,.7,.2,1);
}
.shift.in .seg { width: var(--w); }
.seg-l-exec { background: #E6ECE6; color: var(--sub-l); }
.seg-l-exec.dim { background: #EEF2EC; }
.seg-l-create { background: rgba(15, 118, 110, 0.14); color: var(--teal); }
.seg-l-create.on { background: var(--ink); color: var(--lime); font-weight: 600; }

/* PRINCIPLES (4-COL SWISS) */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.principle { padding: 36px 28px 10px 0; border-right: 1px solid var(--line-l); margin-right: 28px; }
.principle:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.p-n { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 0.1em; }
.principle h3 { margin: 16px 0 12px; font-size: 24px; font-weight: 600; color: var(--ink); }
.principle p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--sub-l); }

/* SERVICES (DARK) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.srv { padding: 48px 36px 44px 0; border-right: 1px solid var(--line-d); margin-right: 36px; display: flex; flex-direction: column; }
.srv:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.srv-n { font-family: var(--mono); font-size: 12.5px; color: var(--lime); letter-spacing: 0.12em; }
.srv h3 { margin: 20px 0 14px; font-size: 26px; font-weight: 500; color: var(--paper); }
.srv p { margin: 0 0 28px; font-size: 15px; line-height: 1.8; color: var(--sub-d); flex: 1; }
.srv-tags { font-family: var(--mono); font-size: 12px; color: var(--lime); opacity: 0.9; letter-spacing: 0.04em; }

/* PRODUCTS STRIP */
.products { margin-top: 72px; }
.prod-head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--sub-d); margin-bottom: 24px; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-d); }
.prod { padding: 26px 24px; border-right: 1px solid var(--line-d); background: rgba(24, 55, 57, 0.35); }
.prod:last-child { border-right: none; }
.prod b { display: block; font-size: 17px; font-weight: 600; color: var(--paper); margin-bottom: 10px; }
.prod span { font-size: 13.5px; color: var(--sub-d); line-height: 1.7; display: block; }

/* PROOF STRIP & BRAND WALL */
.proof-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-l);
  margin: 0 0 64px;
}
.proof-cell {
  padding: 36px 32px 36px 0; border-right: 1px solid var(--line-l); margin-right: 32px;
  display: flex; flex-direction: column;
}
.proof-cell:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.proof-num {
  font-family: var(--mono); font-size: clamp(42px, 5vw, 62px); font-weight: 600;
  line-height: 1; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 14px;
}
.proof-num i { font-style: normal; }
.proof-cell b { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.proof-cell span:last-child { font-size: 14px; color: var(--sub-l); line-height: 1.65; }

.brand-wall-wrap { margin-bottom: 72px; }
.bw-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0.08em;
}
.bw-sub { font-weight: 400; color: var(--sub-l); letter-spacing: 0.02em; }

.brand-wall {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l);
  background: #fff;
}
.bw-cell {
  height: 84px;
  padding: 16px 20px;
  border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l);
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  transition: background 0.2s ease;
}
.bw-cell img {
  max-width: 148px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.22s ease;
}
.bw-cell:hover { background: #FAFCF7; }
.bw-cell:hover img {
  transform: scale(1.04);
}

.bw-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; font-size: 12.5px; color: var(--sub-l);
}
.bw-cta {
  border: none; background: none; padding: 0;
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--teal);
  cursor: pointer; border-bottom: 1px solid var(--teal); padding-bottom: 2px;
  transition: opacity 0.15s ease;
}
.bw-cta:hover { opacity: 0.75; }

/* CASES (PAPER) */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-l); margin-top: 48px; }
.case { padding: 44px 36px 40px 0; border-right: 1px solid var(--line-l); margin-right: 36px; display: flex; flex-direction: column; }
.case:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.case-cat { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 0.12em; }
.case h3 { margin: 16px 0 14px; font-size: 26px; font-weight: 600; color: var(--ink); }
.case p { margin: 0 0 24px; font-size: 15px; line-height: 1.8; color: var(--sub-l); flex: 1; }
.case-outcome { font-size: 13.5px; font-weight: 600; color: var(--ink); padding-top: 16px; border-top: 1px solid var(--line-l); }

/* LIGHT EQUATION */
.equation-light {
  margin-top: 72px; display: flex; align-items: stretch; flex-wrap: wrap;
  border: 1px solid var(--ink); background: #fff;
}
.eq-l-res {
  background: var(--ink); color: var(--lime); font-size: 22px; font-weight: 600;
  padding: 26px 28px; display: flex; align-items: center; letter-spacing: 0.04em;
}
.eq-l-op { display: flex; align-items: center; padding: 0 12px; font-size: 22px; color: var(--teal); font-weight: 300; }
.eq-l-term {
  flex: 1; min-width: 130px; padding: 24px 18px; border-left: 1px solid var(--line-l);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0.25; transition: opacity 0.6s ease;
}
.eq-l-term.lit { opacity: 1; }
.eq-l-term b { font-size: 19px; font-weight: 600; color: var(--ink); }
.eq-l-term span { font-size: 12.5px; color: var(--sub-l); margin-top: 4px; }
.eq-l-hi { background: var(--selected); }
.case-note { margin: 18px 0 0; font-size: 12.5px; color: var(--sub-l); }

/* DRIVE 5-STEP */
.drive-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-d); }
.d-step { padding: 36px 22px 0 0; position: relative; display: flex; flex-direction: column; }
.d-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--lime); transition: width 0.9s ease; }
.drive-grid.in .d-step::before { width: 100%; }
.drive-grid.in .d-step:nth-child(2)::before { transition-delay: .2s; }
.drive-grid.in .d-step:nth-child(3)::before { transition-delay: .4s; }
.drive-grid.in .d-step:nth-child(4)::before { transition-delay: .6s; }
.drive-grid.in .d-step:nth-child(5)::before { transition-delay: .8s; }
.d-letter { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--lime); line-height: 1; margin-bottom: 14px; }
.d-step b { font-size: 21px; font-weight: 600; color: var(--paper); }
.d-step i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--sub-d); margin: 4px 0 14px; letter-spacing: 0.04em; }
.d-step p { margin: 0; font-size: 13.5px; color: var(--sub-d); line-height: 1.7; }

/* CLOSING */
.closing { position: relative; height: 88vh; min-height: 580px; display: grid; place-items: center; overflow: hidden; border-top: 1px solid var(--line-d); }
.closing-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-inner { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.closing-title { margin: 0 0 20px; font-size: clamp(38px, 5.5vw, 76px); font-weight: 500; line-height: 1.22; }
.closing-sub { margin: 0 0 44px; font-size: 15px; letter-spacing: 0.12em; color: var(--sub-d); }
.closing-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lime, .btn-line, .btn-ink {
  font-family: var(--font); font-size: 15px; font-weight: 600; padding: 14px 28px;
  border-radius: 2px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-lime { background: var(--lime); color: var(--ink); border: 1px solid var(--lime); }
.btn-line { background: transparent; color: var(--paper); border: 1px solid rgba(244,245,239,.35); font-family: var(--mono); font-size: 13.5px; }
.btn-line:hover { border-color: var(--lime); color: var(--lime); }
.btn-ink { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); justify-content: center; }

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px 40px 38px; border-top: 1px solid var(--line-d);
  font-size: 13px; color: var(--sub-d); letter-spacing: 0.06em;
}

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(16,43,45,.82); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 460px; background: var(--paper); color: var(--ink); padding: 40px; }
.modal-box .index { margin-bottom: 14px; }
.modal-box h3 { margin: 0 0 26px; font-size: 26px; font-weight: 600; }
.modal-x { position: absolute; top: 14px; right: 18px; border: none; background: none; font-size: 26px; color: var(--sub-l); cursor: pointer; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form input { padding: 13px 14px; border: 1px solid var(--line-l); background: #fff; font-family: var(--font); font-size: 14.5px; color: var(--ink); border-radius: 2px; }
.ok { margin: 6px 0 0; font-size: 14px; color: var(--teal); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .wrap { padding: 0 24px; }
  .principles, .services-grid, .prod-grid, .cases-grid, .drive-grid, .proof-strip { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .principle, .srv, .prod, .case, .proof-cell { border-right: none; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line-l); padding-bottom: 28px; }
  .srv, .prod { border-bottom-color: var(--line-d); }
  .equation-light { flex-direction: column; }
  .eq-l-term { border-left: none; border-top: 1px solid var(--line-l); }
}
