:root {
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f0f1f3;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-tint: #f5f6ff;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --teal: #0d9488;
  --violet: #7c3aed;
  --amber: #d97706;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 40px -16px rgba(17, 24, 39, 0.14);
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; }
.nav { display: flex; gap: 30px; font-size: 14px; color: var(--ink-2); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right .25s; }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 0; background: linear-gradient(180deg, #fbfbff 0%, #ffffff 72%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-bg span:nth-child(1) { width: 380px; height: 380px; top: -140px; right: -60px; background: radial-gradient(circle, rgba(79,70,229,.10), transparent 68%); }
.hero-bg span:nth-child(2) { width: 280px; height: 280px; top: 180px; left: -120px; background: radial-gradient(circle, rgba(13,148,136,.08), transparent 68%); }
.hero-bg span:nth-child(3) { width: 210px; height: 210px; bottom: 40px; right: 22%; background: radial-gradient(circle, rgba(124,58,237,.07), transparent 68%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 14px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 100px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.14); }
.hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.16; letter-spacing: -0.035em; font-weight: 700; }
.accent { color: var(--brand); position: relative; white-space: nowrap; }
.accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px; background: rgba(79,70,229,.13); border-radius: 4px; z-index: -1; }
.hero-lead { margin: 24px 0 0; max-width: 520px; font-size: 16.5px; color: var(--ink-2); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -8px rgba(79,70,229,.55); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 28px -8px rgba(79,70,229,.6); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 40px 0 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 11px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; }
.visual-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.visual-primary { width: 100%; max-width: 380px; padding: 24px; transform: rotate(-3deg); }
.visual-card-top { display: flex; gap: 8px; margin-bottom: 26px; }
.visual-chip { padding: 5px 11px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.visual-chip.muted { background: #f3f4f6; color: var(--ink-3); }
.visual-lines { display: grid; gap: 9px; margin-bottom: 22px; }
.visual-lines span { height: 7px; border-radius: 4px; background: var(--line-2); }
.visual-lines span:nth-child(1) { width: 82%; }
.visual-lines span:nth-child(2) { width: 64%; }
.visual-lines span:nth-child(3) { width: 73%; }
.visual-lines span:nth-child(4) { width: 48%; }
.visual-bars { display: flex; align-items: flex-end; gap: 9px; height: 74px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.visual-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #818cf8, #4f46e5); opacity: .85; }
.visual-bars i:nth-child(even) { background: linear-gradient(180deg, #5eead4, #0d9488); opacity: .7; }
.visual-float { display: flex; align-items: center; gap: 12px; padding: 14px 18px; bottom: 6px; right: -6px; transform: rotate(2deg); animation: float 5s ease-in-out infinite; }
.float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #ecfdf5; color: var(--teal); font-weight: 700; }
.visual-float strong { display: block; font-size: 13px; }
.visual-float small { display: block; font-size: 11px; color: var(--ink-4); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 84px; padding: 30px 0; border-top: 1px solid var(--line); }
.stat { text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--ink-3); }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { margin-bottom: 48px; }
.section-index { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.section-index.light { color: rgba(255,255,255,.6); }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.03em; font-weight: 700; }
.section-head p { margin: 12px 0 0; color: var(--ink-3); font-size: 15px; }

.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: start; }
.about-text p { margin: 0 0 20px; font-size: 15.5px; color: var(--ink-2); line-height: 1.9; }
.about-text p:first-child { font-size: 17px; color: var(--ink); }
.about-tags { padding: 28px; background: var(--bg-tint); border: 1px solid #e6e8ff; border-radius: var(--radius); }
.about-tags h3 { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { padding: 7px 12px; background: #fff; border: 1px solid #e0e3f5; border-radius: 8px; font-size: 13px; color: var(--ink-2); }

.card-grid { display: grid; gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; margin-bottom: 20px; }
.card-icon svg { width: 21px; height: 21px; }
.card-icon.blue { background: #eef2ff; color: var(--brand); }
.card-icon.teal { background: #ecfdf5; color: var(--teal); }
.card-icon.violet { background: #f5f3ff; color: var(--violet); }
.card-icon.amber { background: #fffbeb; color: var(--amber); }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.75; }
.card-list { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); }
.card-list li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.card-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.project-tag { padding: 5px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.project-tag.data { background: #eef2ff; color: var(--brand); }
.project-tag.biz { background: #ecfdf5; color: var(--teal); }
.project-tag.mobile { background: #f5f3ff; color: var(--violet); }
.project-tag.web { background: #eff6ff; color: #2563eb; }
.project-tag.tool { background: #fffbeb; color: var(--amber); }
.project-year { font-size: 11.5px; color: var(--ink-4); }
.project h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -0.01em; }
.project p { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); line-height: 1.75; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.project-tech span { padding: 4px 9px; background: var(--bg-soft); border-radius: 5px; font-size: 11px; color: var(--ink-3); }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); }
.project-link svg { width: 15px; height: 15px; transition: transform .2s; }
.project-link:hover svg { transform: translate(2px, -2px); }

.note-list { display: grid; gap: 12px; }
.note { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 22px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.note:hover { border-color: var(--brand); transform: translateX(4px); }
.note-date { font-size: 12px; color: var(--brand); font-weight: 600; }
.note h3 { margin: 0 0 5px; font-size: 15.5px; }
.note p { margin: 0; font-size: 13px; color: var(--ink-3); }
.note-arrow { font-size: 20px; color: var(--ink-4); }

.contact { background: var(--ink); color: #fff; text-align: center; padding: 100px 0; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.03em; }
.contact p { margin: 0; max-width: 520px; color: rgba(255,255,255,.68); font-size: 15px; }
.contact-actions { display: flex; gap: 12px; margin-top: 32px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f3f4f6; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.icon-fill { fill: currentColor; stroke: none; }
.contact-note { margin-top: 24px !important; font-size: 12px !important; color: rgba(255,255,255,.4) !important; }

.site-footer { padding: 26px 0; background: #0b0f19; color: rgba(255,255,255,.5); font-size: 12.5px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a:hover { color: #fff; }
.back-top { position: fixed; right: 24px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 40; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: var(--brand); border-color: var(--brand); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 280px; max-width: 420px; width: 100%; margin: 0 auto; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 36px, 1080px); }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 18px 18px; background: #fff; border-bottom: 1px solid var(--line); transform-origin: top; transform: scaleY(0); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s; }
  .nav.open { transform: scaleY(1); opacity: 1; visibility: visible; }
  .nav a { padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 15px; }
  .hero-meta { gap: 14px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; margin-top: 60px; }
  .stat:nth-child(2) { border-right: 0; }
  .section { padding: 72px 0; }
  .card-grid.four, .project-grid { grid-template-columns: 1fr; }
  .note { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .note-date { grid-column: 1 / -1; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-actions { flex-direction: column; width: 100%; max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
