/* ============================================================
   Kaizen Digital — dark agency portfolio
   ============================================================ */
:root {
  --bg: #0A0A0B;
  --bg2: #0F0F11;
  --surface: #161618;
  --surface2: #1C1C1F;
  --line: rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --text: #F4F3EF;
  --muted: #8B8B86;
  --muted2: #6A6A66;
  --accent: #C8F65A;
  --accent-deep: #B4E840;

  --display: 'Inter Tight', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(46% 36% at 86% 3%, rgba(200,246,90,0.07), transparent 60%),
    radial-gradient(40% 34% at 3% 66%, rgba(70,110,200,0.07), transparent 62%),
    radial-gradient(50% 40% at 50% 100%, rgba(200,246,90,0.045), transparent 60%),
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 76px 76px, 76px 76px;
  background-attachment: fixed;
  font-family: var(--body); font-size: 1.02rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.0; letter-spacing: -0.025em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.mono { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); margin-bottom: 1.6rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.section-title { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); max-width: 20ch; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9em 1.6em; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--sm { padding: 0.6em 1.15em; font-size: 0.86rem; }
.btn--block { width: 100%; }
.btn--accent {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #21211f, #141416);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn--accent::after {
  content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.24), transparent);
  transform: skewX(-18deg); transition: left 0.65s var(--ease);
}
.btn--accent:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 36px -10px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-2px);
}
.btn--accent:hover::after { left: 145%; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); transform: translateY(-2px); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.loader__mark { font-family: var(--display); font-weight: 700; font-size: 3rem; color: var(--accent); animation: pulse 1.1s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 0.35; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1); } }
.loader.is-done { opacity: 0; visibility: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: block; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.header__status { color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav > a:not(.btn) { font-size: 0.92rem; color: var(--muted); transition: color 0.25s var(--ease); }
.nav > a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 9rem clamp(2.5rem, 7vh, 5rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 75% 8%, rgba(200,246,90,0.12), transparent 46%),
    radial-gradient(110% 80% at 12% 95%, rgba(70,110,200,0.12), transparent 52%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.08) translateY(-1.5%); } }
.hero__grain { position: absolute; inset: 0; z-index: 1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__3d { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero__inner { position: relative; z-index: 3; }
.hero__title { font-size: clamp(3rem, 1rem + 9.5vw, 9rem); font-weight: 600; max-width: 14ch; letter-spacing: -0.035em; }
.hero__lead { margin-top: 1.8rem; max-width: 62ch; font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero__proof { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 7vh, 5rem); z-index: 3; }
.proofcard { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.2rem; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(8px); }
.proofcard__label { color: var(--muted2); }
.proofcard__title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.proofcard__meta { font-size: 0.82rem; color: var(--accent); }
.hero__scroll { position: absolute; left: var(--gutter); bottom: clamp(2.5rem, 7vh, 5rem); z-index: 3; color: var(--muted2); writing-mode: vertical-rl; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line-soft); overflow: hidden; padding-block: 1.4rem; background: var(--bg2); }
.marquee__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); color: var(--muted); }
.marquee__track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--line-soft); padding-top: clamp(2.5rem, 5vw, 4rem); }
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat__num { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { color: var(--muted); font-size: 0.9rem; max-width: 18ch; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc { padding: 1.8rem 1.6rem 2rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease); }
.svc:hover { border-color: var(--line); transform: translateY(-4px); background: var(--surface2); }
.svc__no { color: var(--accent); }
.svc h3 { font-size: 1.5rem; margin: 1.6rem 0 0.7rem; }
.svc p { color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.step { padding: 1.8rem 1.6rem 2.2rem; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--bg2); transition: transform 0.3s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step__no { color: var(--muted2); }
.step h3 { font-size: 1.45rem; margin: 1.4rem 0 0.7rem; }
.step p { color: var(--muted); }
.step--proof { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.step--proof .step__no { color: rgba(10,10,11,0.55); }
.step--proof p { color: rgba(10,10,11,0.82); }

/* ---------- Deliverables ---------- */
.deliver__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.deliver__list { list-style: none; margin: 0; padding: 0; }
.deliver__list li { display: flex; align-items: baseline; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--line-soft); font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); letter-spacing: -0.02em; }
.deliver__list li:last-child { border-bottom: 1px solid var(--line-soft); }
.deliver__list .mono { color: var(--accent); font-size: 0.8rem; }

/* ---------- Work ---------- */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.workcard { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.8rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; min-height: 260px; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease); }
.workcard:hover { border-color: var(--accent); transform: translateY(-5px); background: var(--surface2); }
.workcard__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.workcard__arrow { font-size: 1.3rem; color: var(--muted); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.workcard:hover .workcard__arrow { color: var(--accent); transform: translate(3px,-3px); }
.workcard h3 { font-size: 1.7rem; margin: 1.6rem 0 0.6rem; }
.workcard p { color: var(--muted); flex: 1; }
.workcard__url { color: var(--muted2); margin-top: 1.2rem; }

/* ---------- Quote ---------- */
.quote__inner { max-width: 46ch; }
.quote__text { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.9rem); letter-spacing: -0.025em; line-height: 1.16; max-width: 34ch; }
.quote__by { margin-top: 1.8rem; color: var(--muted); }
.quote__by a { color: var(--accent); }

/* ---------- Offer ---------- */
.offer__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.2rem; align-items: stretch; }
.offer__need { padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--line-soft); border-radius: 20px; background: var(--bg2); }
.need__list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.need__list li { display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line-soft); font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); }
.need__list .mono { color: var(--accent); font-size: 0.78rem; }
.offer__note { margin-top: 1.4rem; color: var(--muted); }
.offer__hook { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.18; letter-spacing: -0.02em; margin-top: 1.6rem; color: var(--text); }
.offer__price { display: flex; flex-direction: column; gap: 0.4rem; padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid var(--accent); border-radius: 20px; background: radial-gradient(120% 100% at 80% 0%, rgba(200,246,90,0.10), transparent 60%), var(--surface); }
.price__label { color: var(--muted); }
.price__amount { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.price__term { color: var(--muted); margin-bottom: 1.8rem; }
.offer__cta-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); line-height: 1.05; letter-spacing: -0.02em; }
.offer__cta-text { color: var(--muted); margin: 0.9rem 0 1.8rem; }
.offer__price .btn { margin-top: auto; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); max-width: 20ch; margin: 0.5rem auto 0; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2.4rem; }
.contact__sign { margin-top: 2.4rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 2.4rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__inner .mono { color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .work__grid { grid-template-columns: 1fr; }
  .deliver__inner, .offer__grid { grid-template-columns: 1fr; }
  .header__status { display: none; }
}
@media (max-width: 680px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem; padding: 2rem var(--gutter); background: var(--surface); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 75; }
  .site-header.is-menu-open .nav { transform: translateX(0); }
  .nav > a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 80; }
  .site-header.is-menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .site-header.is-menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .hero__proof { display: none; }
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.001ms !important; }
}
