:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --panel: #ffffff;
  --rule: rgba(59,61,66,.12);
  --rule-2: rgba(59,61,66,.24);
  --fg: #3b3d42;
  --heading: #1d273b;
  --muted: #a1a2a4;
  --accent: #1fde82;
  --accent-hover: #45ffa8;
  --wa: #25D366;
  --wa-ink: #0c1406;
  --font: "Roboto", system-ui, sans-serif;
  --radius: 4px;
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
main, footer { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--heading); }

/* navigation — clean white sticky */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--rule); box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; }
.logo img { width: 36px; height: 36px; flex: none; border-radius: 8px; }
.logo-word { font-weight: 400; font-size: .92rem; letter-spacing: .01em; line-height: 1; }
.logo-word em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 400; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } .nav-links { gap: .8rem; } }

/* side section index */
.side-index {
  position: fixed; left: 1.5rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.1rem; z-index: 60;
}
.side-index a { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--rule-2); background: transparent; transition: all .3s; }
.side-index a span { position: absolute; left: 20px; top: -4px; white-space: nowrap; font-size: .68rem; letter-spacing: .18em; color: transparent; transition: color .3s; }
.side-index a:hover span { color: var(--muted); }
.side-index a.active { background: var(--accent); border-color: var(--accent); }
.side-index a.active span { color: var(--accent); }
@media (max-width: 1200px) { .side-index { display: none; } }

/* buttons — clean, minimal, Nektop-style */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 12px 28px; border-radius: var(--radius);
  font-family: var(--font); font-size: 11px; font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { background: #3ede79; color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.btn.ghost:hover { background: var(--fg); color: #fff; }

/* type */
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.35; color: var(--heading); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin: .4rem 0 1.2rem; }
h3 { font-size: 1.25rem; font-weight: 500; }
.accent { color: var(--accent); }
.subtitle-classic { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: .5rem; }
.text-center { text-align: center; }

/* sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.2rem, 4vw, 3rem);
  max-width: var(--max); margin: 0 auto;
}
.section.alt { max-width: none; background: var(--bg-2); }
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 820px) { .row-split { grid-template-columns: 1fr; } }
.story h2 { max-width: 18ch; }
.col > p { color: var(--muted); margin-bottom: 1.3rem; }
.section-head { max-width: 520px; margin: 0 auto 3rem; }

/* video section */
.video-section { text-align: center; }
.video-wrap { max-width: 860px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.1); border: 1px solid var(--rule); }
.intro-video { display: block; width: 100%; height: auto; background: #000; }

/* hero — Nektop-style 2-column split */
.hero {
  padding-top: calc(60px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--bg);
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}
.hero-left { max-width: 520px; }
.hero-eyebrow {
  font-weight: 500; font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--muted); margin-bottom: .8rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.315; letter-spacing: 0;
  margin: 0 0 1.2rem; color: var(--heading);
}
.hero-sub {
  color: var(--muted); font-size: 14px; line-height: 1.7;
  margin-bottom: 2rem; max-width: 440px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-right { display: flex; justify-content: center; }
.hero-illustration { width: 100%; max-width: 480px; height: auto; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left { max-width: 100%; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-right { order: -1; }
  .hero-illustration { max-width: 360px; }
}

/* project cards */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }
.project { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
.project:nth-child(1), .project:nth-child(3) { transform: translateY(14px); }
.project img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.05); }
.project-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .95rem 1.15rem; }
.project-title { font-size: 1.06rem; font-weight: 500; }
.project-tag { font-size: .64rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); white-space: nowrap; }

/* process */
.process { max-width: 720px; margin: 2rem auto 0; text-align: left; }
.step { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.5rem; padding: 1.7rem 0; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-idx { font-weight: 300; font-size: 1.5rem; color: var(--accent); }
.step-body h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.step-body p { color: var(--muted); }
@media (max-width: 560px) { .step { grid-template-columns: 2.4rem 1fr; gap: 1rem; } }

/* news cards */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 860px; margin: 0 auto; }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.post-date { font-size: .66rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.post-card h3 { margin: .6rem 0 .5rem; }
.post-card h3 a { color: var(--fg); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-author { margin-top: 1.1rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* contacts */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy > p:not(.subtitle-classic):not(.email-line) { color: var(--muted); margin-bottom: 1.4rem; }
form { display: grid; gap: .8rem; margin-top: 1.4rem; }
input, textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--fg); font: inherit; padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,222,130,.12); }
textarea { min-height: 110px; resize: vertical; }
form button.btn { justify-content: center; }

.qr-card {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px); padding: 2rem; text-align: center;
  position: sticky; top: 100px;
}
.qr-img { border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem; width: min(260px, 100%); margin: 0 auto; }
.qr-img img { width: 100%; height: auto; border-radius: 2px; }
.qr-title { margin: 1.3rem 0; }
.qr-title strong { font-weight: 500; font-size: 1.15rem; }
.qr-card .meta { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* footer — dark */
.footer { background: #243238; color: #fff; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 2.6rem clamp(1.2rem, 4vw, 3rem);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer .logo { color: #fff; }
.footer .logo-word em { color: var(--accent); }
.footer .meta { color: #a1a2a4; font-size: .78rem; letter-spacing: .04em; }
.footer .email-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.footer .email-link:hover { text-decoration: underline; }

/* email line */
.email-line { color: var(--muted); }
.email-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.email-link:hover { text-decoration: underline; }

/* motion — calm directional reveals */
.reveal { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; transition-delay: var(--d, 0s); }
.reveal.fade-up { transform: translateY(18px); }
.reveal.fade-left { transform: translateX(-22px); }
.reveal.fade-right { transform: translateX(22px); }
.reveal.blur-in { filter: blur(9px); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.fade-up, .reveal.fade-left, .reveal.fade-right, .reveal.blur-in { transition: none; opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
  .project:hover img { transform: none; }
}