/* ============ ITS Kizaru — company site (portfolio design family) ============ */

:root {
  color-scheme: light dark;
  --bg: #f3f6f3;
  --surface: #ffffff;
  --surface-2: #e8eee9;
  --ink: #121817;
  --muted: #52615d;
  --line: rgba(18, 24, 23, .15);
  --accent: #006f5f;
  --accent-2: #005bc4;
  --signal: #d7ff3f;
  --soft: #dcece7;
  --grid: rgba(6, 79, 68, .08);
  --shadow: 0 24px 70px rgba(30, 54, 47, .14);
  --radius: 26px;
  --ease: cubic-bezier(.2,.75,.2,1);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07100f;
  --surface: #0c1715;
  --surface-2: #111f1d;
  --ink: #ecfff9;
  --muted: #9db4ad;
  --line: rgba(206, 255, 241, .14);
  --accent: #36e0b7;
  --accent-2: #57a7ff;
  --signal: #dfff4f;
  --soft: #102924;
  --grid: rgba(72, 241, 198, .075);
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #07100f;
    --surface: #0c1715;
    --surface-2: #111f1d;
    --ink: #ecfff9;
    --muted: #9db4ad;
    --line: rgba(206, 255, 241, .14);
    --accent: #36e0b7;
    --accent-2: #57a7ff;
    --signal: #dfff4f;
    --soft: #102924;
    --grid: rgba(72, 241, 198, .075);
    --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color .45s ease, color .45s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--signal); color: #0b1815; }
.mono { font-family: "IBM Plex Mono", monospace; }
.accent { color: var(--accent); }
.shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

/* ============ Scroll progress ============ */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 45;
  width: 100%; height: 3px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--signal); pointer-events: none;
}

/* ============ Topbar (floating pill) ============ */
.topbar {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 8px 36px rgba(0,0,0,.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.identity { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.identity-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 18%, transparent);
}
.identity strong { font-size: 13px; letter-spacing: -.01em; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 7px; }
.topnav a {
  text-decoration: none; color: var(--muted);
  font-size: 12px; font-weight: 600;
  padding: 9px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.topnav a:hover, .topnav a:focus-visible, .topnav a.active { color: var(--ink); background: var(--surface-2); outline: none; }
.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 27px 27px;
  align-items: center;
  width: 58px; height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  left: 3px; top: 3px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform .35s var(--ease);
}
html[data-theme="dark"] .theme-toggle::before { transform: translateX(24px); }
.theme-toggle svg { position: relative; z-index: 1; width: 14px; height: 14px; justify-self: center; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 150px 0 90px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: translate;
}
.orb-a {
  width: 520px; height: 520px;
  left: 8%; top: 6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.orb-b {
  width: 420px; height: 420px;
  right: 4%; bottom: 8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--signal) 38%, transparent), transparent 65%);
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 55%, color-mix(in srgb, var(--bg) 30%, transparent) 100%);
}
.hero-inner { position: relative; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--ink);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 55% { box-shadow: 0 0 0 8px transparent; } }
.hero-title {
  margin: 0; max-width: 900px;
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: .94; letter-spacing: -.07em; font-weight: 700;
}
.hero-title .word { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2.5deg); animation: word-in .7s var(--ease) forwards; }
.hero-title .word.hl { color: var(--accent); }
@keyframes word-in { to { opacity: 1; transform: translateY(0) rotate(0); } }
.hero-copy { max-width: 620px; margin: 30px 0 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border-radius: 14px; border: 1px solid var(--line);
  text-decoration: none; font-size: 14px; font-weight: 700;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--accent); border-color: var(--accent); color: #041511; transform: translateY(-3px); outline: none; }
.btn.secondary { background: color-mix(in srgb, var(--surface) 78%, transparent); }
.btn.secondary:hover, .btn.secondary:focus-visible { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); outline: none; }
.arrow { width: 18px; height: 18px; }
.cred-strip { margin: 44px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.cred-strip i { font-style: normal; color: var(--accent); margin: 0 6px; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--muted); border-radius: 999px;
  opacity: .7;
}
.scroll-hint span {
  display: block; width: 4px; height: 8px; margin: 8px auto 0;
  border-radius: 4px; background: var(--accent);
  animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ Sections ============ */
section { position: relative; padding: 120px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; margin-bottom: 64px; }
.section-index { color: var(--accent); font: 600 12px/1.4 "IBM Plex Mono", monospace; }
.section-head h2 { margin: 0; max-width: 880px; font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: -.055em; }
.section-head p { grid-column: 2; max-width: 680px; margin: -24px 0 0; color: var(--muted); font-size: 17px; }

/* ============ Service cards ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 50%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 66%);
  transition: opacity .35s; pointer-events: none;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 64px; }
.card-index { font: 600 12px/1 "IBM Plex Mono", monospace; color: var(--accent); letter-spacing: .08em; }
.card-tag { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; letter-spacing: .06em; }
.card h3 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.08; letter-spacing: -.04em; }
.card > p { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.deliverables { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.deliverables li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--muted); }
.deliverables li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============ Process steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  padding: 34px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.step-no { font: 600 clamp(40px, 4.5vw, 58px)/1 "IBM Plex Mono", monospace; letter-spacing: -.06em; color: color-mix(in srgb, var(--ink) 9%, transparent); }
.step h3 { margin: 26px 0 0; font-size: 21px; letter-spacing: -.03em; }
.step h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 12px; border-radius: 2px; background: var(--accent); }
.step p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* ============ Stack ============ */
.stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.stack-group { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stack-group h3 { margin: 0 0 18px; color: var(--accent); font-size: 11px; letter-spacing: .1em; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags span {
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: color .2s, border-color .2s, transform .25s var(--ease);
}
.tags span:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px) rotate(-1deg); }
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); contain: paint; }
.ticker-track { display: flex; width: max-content; will-change: transform; animation: ticker-scroll 30s linear infinite; }
.ticker-group { display: flex; flex: 0 0 auto; min-width: max-content; }
.ticker span { display: flex; align-items: center; gap: 18px; padding: 17px 28px; font: 600 12px/1 "IBM Plex Mono", monospace; color: var(--muted); white-space: nowrap; }
.ticker span::after { content: "◆"; color: var(--accent); font-size: 8px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ============ Why us ============ */
.why-list { border-top: 1px solid var(--line); }
.why-item {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: baseline;
  padding: 38px 8px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .35s var(--ease);
}
.why-item:hover { background: var(--surface-2); padding-left: 20px; padding-right: 20px; }
.why-item::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--accent);
  transition: transform .45s var(--ease);
}
.why-item:hover::after { transform: scaleX(1); }
.why-item h3 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.035em; }
.why-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============ Kinetic band ============ */
.kinetic-band {
  position: relative; overflow: hidden;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink); color: var(--bg);
  isolation: isolate;
}
.kinetic-band::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: repeating-linear-gradient(90deg, transparent 0 79px, currentColor 80px 81px);
  pointer-events: none;
}
.kinetic-row { display: flex; width: max-content; white-space: nowrap; will-change: transform; animation: kinetic-slide 36s linear infinite; }
.kinetic-row.outline { animation-direction: reverse; animation-duration: 44s; margin-top: 10px; }
.kinetic-row span { display: block; padding-right: .25em; font-size: clamp(54px, 9vw, 130px); font-weight: 800; line-height: .9; letter-spacing: -.07em; }
.kinetic-row.outline span { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--bg) 45%, transparent); }
@keyframes kinetic-slide { to { transform: translateX(-50%); } }

/* ============ FAQ ============ */
.faq-layout { max-width: 900px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px;
  background: none; border: none; cursor: pointer;
  color: var(--ink); text-align: left;
  font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -.02em;
  transition: color .2s, padding .3s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--accent); font: 400 20px/1 "IBM Plex Mono", monospace;
  transition: transform .35s var(--ease), background .25s, color .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #041511; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { margin: 0; padding: 0 4px 28px; max-width: 640px; color: var(--muted); font-size: 15.5px; }

/* ============ Contact ============ */
.contact { min-height: 72vh; display: grid; align-items: center; text-align: center; }
.contact-inner { max-width: 980px; margin: 0 auto; }
.contact .mono { color: var(--accent); font-size: 12px; letter-spacing: .14em; }
.contact h2 { margin: 22px 0 24px; font-size: clamp(48px, 8vw, 104px); line-height: .92; letter-spacing: -.07em; }
.contact p { max-width: 600px; margin: 0 auto 34px; color: var(--muted); font-size: 17px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.location { margin-top: 34px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }

/* ============ Footer ============ */
footer { padding: 56px 0 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand p { margin: 16px 0 0; max-width: 300px; color: var(--muted); font-size: 13.5px; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { display: grid; gap: 10px; font-size: 11px; color: var(--muted); justify-items: end; text-align: right; }
.footer-meta a { text-decoration: none; color: var(--ink); font-weight: 600; }
.footer-meta a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font: 500 10px/1.5 "IBM Plex Mono", monospace; color: var(--muted); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].in { transition-delay: .12s; }
.reveal[data-delay="2"].in { transition-delay: .24s; }
.reveal[data-delay="3"].in { transition-delay: .36s; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; max-width: 640px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stack-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { justify-items: start; text-align: left; }
}
@media (max-width: 900px) {
  .shell { width: min(100% - 32px, 700px); }
  .topnav a { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }
  .section-head p { grid-column: auto; margin: 0; }
  .why-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 24px); }
  .topbar { top: 10px; width: calc(100% - 20px); }
  .hero { padding: 130px 0 70px; min-height: auto; }
  .hero-title { font-size: clamp(46px, 15vw, 72px); }
  .hero-actions .btn { flex: 1 1 150px; }
  .scroll-hint { display: none; }
  section { padding: 84px 0; }
  .steps { grid-template-columns: 1fr; }
  .stack-groups { grid-template-columns: 1fr; }
  .contact h2 { font-size: clamp(48px, 16vw, 76px); }
  .contact-links .btn { flex: 1 1 100%; word-break: break-all; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .orb-a { width: 340px; height: 340px; }
  .orb-b { width: 280px; height: 280px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-title .word { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .faq-a { max-height: none; }
}
