*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:    #F8F7F4;
  --paper2:   #F0EFE9;
  --ink:      #141414;
  --ink-dim:  #666;
  --dark:     #0F0F0F;
  --dark2:    #161616;
  --dark3:    #202020;
  --white:    #F5F5F0;
  --white-dim: rgba(245,245,240,0.5);
  --rule:     #E0DDD8;
  --rule-dk:  #2A2A2A;
  --green:    #22c55e;
  --font: 'Archivo', sans-serif;
  --max-w: 1240px;
  --px: 64px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(248,247,244,0.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); height: 58px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 15px; width: auto; display: block; filter: brightness(0); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: var(--ink); padding: 9px 22px; border-radius: 2px; text-decoration: none; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.8; }

/* ── BUTTONS ── */
.btn-dark { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: var(--ink); padding: 13px 28px; border-radius: 2px; text-decoration: none; transition: opacity 0.2s; }
.btn-dark:hover { opacity: 0.8; }
.btn-outline { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: transparent; padding: 12px 28px; border-radius: 2px; text-decoration: none; border: 1px solid #C8C5C0; transition: border-color 0.2s, color 0.2s; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--white); padding: 13px 28px; border-radius: 2px; text-decoration: none; transition: opacity 0.2s; }
.btn-light:hover { opacity: 0.88; }

/* ── TICKER ── */
.ticker-wrap { overflow: hidden; background: var(--ink); padding: 10px 0; margin-top: 58px; }
.ticker-track { display: flex; animation: ticker 30s linear infinite; width: max-content; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,240,0.4); white-space: nowrap; padding: 0 50px; }
.ticker-item b { color: var(--white); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── HERO ── */
#hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* LEFT: headline + copy + CTA */
.hero-left {
  padding: 64px var(--px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--rule);
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 32px; }
.hero-badge-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.hero-headline { font-size: clamp(40px, 4.8vw, 72px); font-weight: 900; line-height: 0.93; letter-spacing: -0.04em; color: var(--ink); margin-bottom: 28px; }
.hero-sub { font-size: 15px; line-height: 1.75; color: var(--ink-dim); max-width: 420px; margin-bottom: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--rule); }

/* RIGHT: photo */
.hero-right { overflow: hidden; }
.hero-img-wrap { position: relative; overflow: hidden; height: 100%; min-height: 420px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.45) grayscale(15%); display: block; }
.hero-img-caption { position: absolute; bottom: 20px; left: 24px; right: 24px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,240,0.35); }

/* ── SECTIONS ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

.eyebrow-light { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow-light::before { content: ''; display: block; width: 20px; height: 1px; background: var(--rule-dk); flex-shrink: 0; }
.eyebrow-dark { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow-dark::before { content: ''; display: block; width: 20px; height: 1px; background: var(--rule); flex-shrink: 0; }

.title-light { font-size: clamp(30px, 3.8vw, 52px); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; color: var(--white); }
.title-dark { font-size: clamp(30px, 3.8vw, 52px); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); }
.body-light { font-size: 15px; line-height: 1.75; color: var(--white-dim); max-width: 520px; margin-top: 14px; }
.body-dark { font-size: 15px; line-height: 1.75; color: var(--ink-dim); max-width: 520px; margin-top: 14px; }

/* ── PAIN ── */
#pain { background: var(--dark); padding: 80px 0 0; }
.pain-head { padding-bottom: 56px; }
.pain-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-dk);
}
.pain-card { padding: 40px 32px; border-right: 1px solid var(--rule-dk); transition: background 0.2s; }
.pain-card:last-child { border-right: none; }
.pain-card:hover { background: var(--dark2); }
.pain-icon { width: 28px; height: 28px; margin-bottom: 20px; color: rgba(245,245,240,0.35); }
.pain-title { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 10px; line-height: 1.35; }
.pain-desc { font-size: 13px; line-height: 1.75; color: var(--white-dim); }
.pain-footer { border-top: 1px solid var(--rule-dk); background: var(--dark2); }
.pain-footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 36px var(--px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pain-footer-text { font-size: 14px; font-weight: 600; color: var(--white-dim); }
.pain-footer-text span { color: var(--white); }

/* ── HOW ── */
#how { background: var(--paper); padding: 88px 0; }
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.how-left-sticky { position: sticky; top: 78px; }
.how-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 28px; }
.how-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); display: block; }
.how-quote { padding: 24px 28px; background: var(--ink); margin-top: 40px; }
.how-quote p { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--white); }
.how-quote em { font-style: normal; color: var(--white-dim); font-weight: 400; }
.how-steps { }
.how-step { display: grid; grid-template-columns: 48px 1fr; border-bottom: 1px solid var(--rule); }
.how-step:first-child { border-top: 1px solid var(--rule); }
.how-num { padding: 28px 0; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--rule); }
.how-body { padding: 28px 0 28px 24px; border-left: 1px solid var(--rule); }
.how-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.how-desc { font-size: 13px; line-height: 1.75; color: var(--ink-dim); }

/* ── SOLUTIONS ── */
#solutions { background: #ffffff; padding: 88px 0; }
#solutions .eyebrow-dark { color: #aaa; }
#solutions .eyebrow-dark::before { background: #E0E0E0; }
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #E8E8E8; margin-top: 48px; }
.sol-card { padding: 48px 44px; border-right: 1px solid #E8E8E8; border-bottom: 1px solid #E8E8E8; background: #fff; transition: background 0.2s; }
.sol-card:nth-child(2n) { border-right: none; }
.sol-card:nth-last-child(-n+2) { border-bottom: none; }
.sol-card:hover { background: #FAFAFA; }
.sol-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #aaa; margin-bottom: 16px; display: block; }
.sol-name { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; color: #111; margin-bottom: 12px; }
.sol-desc { font-size: 14px; color: #666; line-height: 1.75; margin-bottom: 24px; }
.sol-rule { width: 100%; height: 1px; background: #E8E8E8; margin-bottom: 20px; }
.sol-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.sol-list li { font-size: 13px; color: #666; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.sol-dot { width: 4px; height: 4px; background: #CCC; border-radius: 50%; flex-shrink: 0; margin-top: 7px; }

/* ── CASE STUDIES ── */
#works { background: var(--dark); padding: 88px 0; }
.works-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.works-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--white-dim); border: 1px solid var(--rule-dk); padding: 8px 14px; border-radius: 2px; white-space: nowrap; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule-dk); }
.case-card { border-right: 1px solid var(--rule-dk); overflow: hidden; }
.case-card:last-child { border-right: none; }
.case-img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.case-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%) brightness(0.65); transition: transform 0.6s ease, filter 0.4s ease; display: block; }
.case-card:hover .case-img { transform: scale(1.04); filter: grayscale(0%) brightness(0.85); }
.case-body { padding: 28px 28px; border-top: 1px solid var(--rule-dk); }
.case-stat { font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--white); margin-bottom: 4px; }
.case-stat-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 16px; }
.case-name { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.case-desc { font-size: 13px; line-height: 1.7; color: var(--white-dim); }

/* ── TESTIMONY ── */
#testimony { background: var(--dark2); padding: 80px 0; border-top: 1px solid var(--rule-dk); }
.testimony-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  max-width: 680px;
}
.testimony-header { margin-bottom: 32px; flex-shrink: 0; }

/* Swiper MUST have overflow:hidden and width constraint */
.testimony-swiper {
  overflow: hidden;
  width: 100%;
  flex: 1;
  min-width: 0;
}
.swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}
.quote-mark { font-size: 64px; font-weight: 900; line-height: 0.7; color: var(--rule-dk); margin-bottom: 16px; font-family: Georgia, serif; flex-shrink: 0; }
.quote-text {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500; line-height: 1.75; letter-spacing: -0.005em;
  color: var(--white);
  margin-bottom: 28px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.quote-rule { width: 28px; height: 1px; background: var(--rule-dk); margin-bottom: 16px; flex-shrink: 0; }
.quote-name { font-size: 13px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.quote-role { font-size: 12px; color: var(--white-dim); line-height: 1.5; }

/* Custom swiper nav */
.t-nav { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule-dk); flex-shrink: 0; }
.t-btn { width: 34px; height: 34px; border: 1px solid var(--rule-dk); border-radius: 2px; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.t-btn:hover { background: var(--dark3); }
.t-btn svg { color: rgba(245,245,240,0.5); }
.t-dots { display: flex; gap: 6px; align-items: center; }
.t-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule-dk); transition: all 0.25s; cursor: pointer; }
.t-dot.active { background: var(--white); width: 14px; border-radius: 2px; }

/* ── CTA ── */
#contact { background: var(--paper); border-top: 1px solid var(--rule); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.cta-left {
  padding: 80px var(--px);
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cta-title { font-size: clamp(32px, 3.8vw, 52px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--white); margin-bottom: 20px; }
.cta-body-dark { font-size: 15px; line-height: 1.8; color: rgba(245,245,240,0.5); max-width: 440px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rule-dk); }
.cta-right {
  padding: 80px var(--px);
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cta-expect { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.cta-expect-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #999; margin-bottom: 20px; }
.cta-expect-list { display: flex; flex-direction: column; gap: 14px; }
.cta-expect-item { display: flex; align-items: flex-start; gap: 12px; }
.cta-expect-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 6px; }
.cta-expect-text { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.cta-meta { display: flex; flex-direction: column; gap: 24px; }
.meta-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #bbb; margin-bottom: 4px; }
.meta-val { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }

/* ── FOOTER ── */
footer { background: var(--paper); border-top: 1px solid var(--rule); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 22px var(--px); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-dim); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --px: 40px; }
}

@media (max-width: 768px) {
  :root { --px: 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 48px 20px; }
  .hero-img-wrap { height: 260px; min-height: auto; }

  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { border-right: none; border-bottom: 1px solid var(--rule-dk); }
  .pain-card:last-child { border-bottom: none; }
  .pain-footer-inner { padding: 24px 20px; flex-direction: column; align-items: flex-start; }

  .how-layout { grid-template-columns: 1fr; gap: 0; }
  .how-left-sticky { position: static; padding-bottom: 48px; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
  #how .how-layout > div:last-child { padding-top: 48px; }

  .sol-grid { grid-template-columns: 1fr; }
  .sol-card { border-right: none !important; }

  .works-header { flex-direction: column; align-items: flex-start; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { border-right: none; border-bottom: 1px solid var(--rule-dk); }
  .case-card:last-child { border-bottom: none; }

  .testimony-content { padding: 40px 20px; }

  .cta-grid { grid-template-columns: 1fr; }
  .cta-left { padding: 60px 20px; }
  .cta-right { padding: 60px 20px; border-left: none; border-top: 1px solid var(--rule); }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
