:root {
  --bg: #e8eef2;
  --bg-elevated: #f4f7f9;
  --ink: #061018;
  --ink-soft: #3a4a56;
  --muted: #6b7c88;
  --line: rgba(6, 16, 24, 0.1);
  --accent: #00c2a8;
  --accent-deep: #008f7c;
  --accent-glow: rgba(0, 194, 168, 0.35);
  --navy: #0a1c28;
  --navy-2: #122836;
  --warn: #e8a54b;
  --radius: 14px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 60px rgba(6, 16, 24, 0.12);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 194, 168, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(18, 80, 110, 0.12), transparent 50%),
    linear-gradient(180deg, #dfe8ee 0%, var(--bg) 35%, #edf2f5 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(232, 238, 242, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 247, 249, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(6, 16, 24, 0.06);
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent) 0%, #0a8f9e 55%, var(--navy) 100%);
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 20px var(--accent-glow);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px 7px 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: skewX(-18deg);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--accent-deep);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0aa89a 100%);
  color: #042018;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(6, 16, 24, 0.15);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 16, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 16, 24, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: orb-float 10s ease-in-out infinite;
}

.hero-orb-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  right: -8%;
  top: 12%;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.45), transparent 65%);
}

.hero-orb-b {
  width: min(40vw, 380px);
  height: min(40vw, 380px);
  left: -5%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(18, 90, 120, 0.35), transparent 65%);
  animation-delay: -4s;
}

.hero-flow {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.hero-flow svg {
  width: 100%;
  height: 100%;
}

.flow-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 8 14;
  opacity: 0.55;
  animation: dash-move 18s linear infinite;
}

.flow-line-2 {
  stroke: #1a6b7a;
  opacity: 0.35;
  animation-duration: 24s;
  animation-direction: reverse;
}

.flow-node {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  animation: node-pulse 3.2s ease-in-out infinite;
}

.flow-node:nth-child(4) { animation-delay: 0.4s; }
.flow-node:nth-child(5) { animation-delay: 0.8s; }
.flow-node:nth-child(6) { animation-delay: 1.2s; }

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  max-width: 720px;
  animation: hero-rise 1s var(--ease) both;
}

.brand-signal {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--ink) 20%, var(--accent-deep) 70%, #0a6d7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(244, 247, 249, 0.8));
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-desc {
  margin: 0;
  color: var(--ink-soft);
}

/* Services */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.3s var(--ease);
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.4);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.service-index {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.35rem;
}

.service-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.service-body p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

.service-tags {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.service-tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.project.is-visible {
  opacity: 1;
  transform: none;
}

.project:nth-child(even) {
  direction: rtl;
}

.project:nth-child(even) > * {
  direction: ltr;
}

.project-visual {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}

.project-visual .pv-layer {
  position: absolute;
  inset: 0;
}

.project-visual-1 .pv-layer {
  background:
    linear-gradient(145deg, rgba(6, 16, 24, 0.55), transparent 50%),
    linear-gradient(25deg, #0b3a42, #00c2a8 55%, #dfeef2);
}

.project-visual-2 .pv-layer {
  background:
    linear-gradient(160deg, rgba(6, 16, 24, 0.5), transparent 45%),
    repeating-linear-gradient(-18deg, #123040 0 12px, #1a4a58 12px 24px),
    linear-gradient(90deg, #0a8f9e, #061018);
}

.project-visual-3 .pv-layer {
  background:
    radial-gradient(circle at 70% 30%, rgba(0, 194, 168, 0.55), transparent 40%),
    linear-gradient(180deg, #122836, #061018);
}

.project-visual-4 .pv-layer {
  background:
    linear-gradient(120deg, transparent 40%, rgba(0, 194, 168, 0.25)),
    conic-gradient(from 210deg at 50% 50%, #0a1c28, #0a8f9e, #e8eef2, #0a1c28);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: soft-light;
}

.pv-code {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(6, 16, 24, 0.45);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.project-info .project-meta {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.project-info h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.project-info p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.project-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-info li {
  font-weight: 600;
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
}

.project-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.project-actions {
  margin-top: 1.25rem;
}

.project-link {
  display: inline-flex;
}

.project-link-missing {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.projects-empty {
  color: var(--ink-soft);
  padding: 1rem 0;
}

.projects-empty code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Method */
.method {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.method li {
  counter-increment: step;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.method li.is-visible {
  opacity: 1;
  transform: none;
}

.method li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.method strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.method span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Tech */
.section-tech {
  padding-bottom: 5rem;
}

.tech-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-top: 0.5rem;
}

.tech-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.tech-track span {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-soft);
}

/* CTA / Contact */
.section-cta {
  padding-top: 3rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: stretch;
  padding: 2.5rem;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
    linear-gradient(160deg, #0a1c28 0%, #123040 45%, #0a6d5c 140%);
  color: #eef5f7;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.cta-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.35), transparent 65%);
  pointer-events: none;
}

.cta-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.cta-copy .eyebrow {
  color: var(--accent);
}

.cta-copy h2 {
  color: #fff;
}

.cta-copy > p {
  color: rgba(238, 245, 247, 0.78);
  max-width: 36ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.contact-links a {
  color: var(--accent);
  font-weight: 600;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-links a:hover {
  border-bottom-color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(238, 245, 247, 0.75);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 16, 24, 0.35);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(238, 245, 247, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.2);
}

.form-note {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  display: block;
}

.footer-brand p,
.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Chatbot */
.chatbot {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chatbot-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #042018;
  background: linear-gradient(135deg, var(--accent), #0aa89a);
  box-shadow: 0 12px 32px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.chatbot-toggle:hover {
  transform: scale(1.05);
}

.chatbot-toggle svg {
  width: 26px;
  height: 26px;
}

.chatbot-toggle .icon-close {
  display: none;
}

.chatbot.is-open .chatbot-toggle .icon-chat {
  display: none;
}

.chatbot.is-open .chatbot-toggle .icon-close {
  display: block;
}

.chatbot-panel {
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 8rem));
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
}

.chatbot-panel[hidden],
.chatbot[data-open="false"] .chatbot-panel {
  display: none !important;
}

.chatbot.is-open .chatbot-panel,
.chatbot[data-open="true"] .chatbot-panel {
  display: flex !important;
  animation: chat-in 0.35s var(--ease);
}

.chatbot-header {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, var(--navy), #123040);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.chatbot-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.chatbot-close:hover {
  color: #fff;
}

.chatbot-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.chatbot-header span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(0, 194, 168, 0.08), transparent),
    #f7fafb;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #0aa89a);
  color: #042018;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.chat-suggestions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chat-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(0, 194, 168, 0.08);
}

.chatbot-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chatbot-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  outline: none;
  background: #f4f7f9;
}

.chatbot-input input:focus {
  border-color: var(--accent);
}

.chatbot-input button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.chatbot-input button:hover {
  background: var(--accent-deep);
  transform: scale(1.04);
}

.chatbot-input button svg {
  width: 18px;
  height: 18px;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.9rem 1rem;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1s infinite ease-in-out;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* Animations */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.05); }
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

@keyframes dash-move {
  to { stroke-dashoffset: -400; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.55; r: 6; }
  50% { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes chat-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .project,
  .method li {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 48px 1fr;
  }

  .service-tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .method {
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
}

@media (max-width: 760px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    background: rgba(244, 247, 249, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }

  .nav a {
    font-size: 1.35rem;
    font-family: var(--font-display);
    font-weight: 700;
  }

  .hero {
    align-items: center;
    padding-bottom: 3rem;
  }

  .method {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 0;
  }
}
