:root {
  --bg: #0b0d10;
  --ink: #e8eaed;
  --ink-soft: rgba(232, 234, 237, 0.68);
  --muted: rgba(232, 234, 237, 0.45);
  --line: rgba(255, 255, 255, 0.1);
  --teal: #1aa6a0;
  --cyan: #3ec7c2;
  --navy: #7eb0d6;
  --orange: #e8792f;
  --yellow: #e8b84a;
  --green: #3ecf8e;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* Unique page background — not per section */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #0b0d10;
}

.page-glow {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 40% at 20% 18%, rgba(26, 166, 160, 0.26), transparent 55%),
    radial-gradient(ellipse 45% 35% at 78% 22%, rgba(232, 121, 47, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 55% 70%, rgba(22, 58, 95, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 30% at 30% 90%, rgba(62, 199, 194, 0.1), transparent 50%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

.page-mosaic {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(62, 199, 194, 0.35) 48%, rgba(62, 199, 194, 0.35) 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(232, 184, 74, 0.25) 48%, rgba(232, 184, 74, 0.25) 52%, transparent 52%),
    linear-gradient(135deg, transparent 48%, rgba(232, 121, 47, 0.2) 48%, rgba(232, 121, 47, 0.2) 52%, transparent 52%);
  background-size: 48px 48px, 64px 64px, 36px 36px;
  background-position: 0 0, 12px 18px, 24px 8px;
  animation: mosaic-shift 28s linear infinite;
}

.tech-field {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.tech-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tech-circuit .trace {
  stroke: rgba(62, 199, 194, 0.35);
  stroke-width: 1.25;
  stroke-dasharray: 8 10;
  animation: trace-flow 18s linear infinite;
}

.tech-circuit .trace-b {
  stroke: rgba(232, 184, 74, 0.28);
  animation-duration: 22s;
  animation-direction: reverse;
}

.tech-circuit .trace-c {
  stroke: rgba(232, 121, 47, 0.28);
  animation-duration: 26s;
}

.tech-circuit .trace-d {
  stroke: rgba(62, 199, 194, 0.22);
  animation-duration: 20s;
  animation-direction: reverse;
}

.tech-circuit .trace-e {
  stroke: rgba(255, 255, 255, 0.16);
  animation-duration: 16s;
}

.tech-circuit .node {
  fill: rgba(62, 199, 194, 0.55);
  stroke: none;
}

.tech-circuit .node.pulse {
  fill: rgba(232, 121, 47, 0.7);
  animation: node-pulse 3.2s ease-in-out infinite;
}

.tech-circuit .chip {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(232, 234, 237, 0.22);
  stroke-width: 1;
}

.tech-glyphs {
  position: absolute;
  inset: 0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(232, 234, 237, 0.28);
}

.tech-glyphs span {
  position: absolute;
  animation: glyph-drift 12s ease-in-out infinite;
}

.tech-glyphs span:nth-child(1) { top: 12%; left: 7%; color: rgba(62, 199, 194, 0.35); }
.tech-glyphs span:nth-child(2) { top: 28%; right: 10%; animation-delay: -2s; }
.tech-glyphs span:nth-child(3) { top: 52%; left: 14%; color: rgba(232, 184, 74, 0.32); animation-delay: -4s; }
.tech-glyphs span:nth-child(4) { top: 68%; right: 16%; color: rgba(232, 121, 47, 0.3); animation-delay: -6s; }
.tech-glyphs span:nth-child(5) { top: 40%; left: 44%; animation-delay: -3s; }
.tech-glyphs span:nth-child(6) { top: 78%; right: 30%; color: rgba(62, 199, 194, 0.28); animation-delay: -5s; }

.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");
}

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

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

.icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.brand-mark img {
  width: 118px;
  height: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.site-header.is-scrolled .brand-mark img {
  opacity: 1;
  transform: translateY(0);
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: rgba(232, 234, 237, 0.72);
}

.nav a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Hero — transparent over page bg */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
  background: transparent;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  text-align: center;
}

.hero-logo {
  width: min(480px, 88vw);
  margin: 0 auto 1.5rem;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: rise 0.9s var(--ease) 0.15s forwards;
  filter:
    drop-shadow(0 0 28px rgba(62, 199, 194, 0.22))
    drop-shadow(0 10px 32px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  margin: 0 0 1.75rem;
  font-weight: 800;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-transform: lowercase;
  color: #f4f6f8;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.85s var(--ease) 0.35s forwards;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: rgba(232, 234, 237, 0.62);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.85s var(--ease) 0.55s forwards;
  transition: color 0.25s var(--ease);
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
  color: var(--cyan);
}

.scroll-hint-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.scroll-hint-arrows {
  display: grid;
  justify-items: center;
  width: 1.6rem;
  height: 2rem;
  overflow: hidden;
}

.scroll-hint-arrows svg {
  width: 1.35rem;
  height: 1.35rem;
  grid-area: 1 / 1;
  animation: scroll-bounce 1.6s var(--ease) infinite;
}

.scroll-hint-arrows svg:last-child {
  animation-delay: 0.28s;
  opacity: 0.45;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #148f8a 55%, #163a5f);
  color: #fff;
  box-shadow: 0 10px 28px rgba(26, 166, 160, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--cyan), var(--teal) 50%, #1a4a75);
}

button.btn {
  cursor: pointer;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(62, 199, 194, 0.55);
  background: rgba(62, 199, 194, 0.08);
}

.contact .btn-primary {
  box-shadow: 0 10px 28px rgba(26, 166, 160, 0.2);
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  background: transparent;
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: rgba(232, 234, 237, 0.55);
}

.mark-type {
  display: inline;
  background: linear-gradient(
    125deg,
    #3ec7c2 0%,
    #07ab7d 16%,
    #3963ad 34%,
    #e8b84a 52%,
    #e8792f 70%,
    #119aaa 86%,
    #3ec7c2 100%
  );
  background-size: 140% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.eyebrow .mark-type {
  display: inline-block;
  margin-right: 0.28em;
  font-size: 1.15em;
  letter-spacing: -0.08em;
  background-size: 180% 180%;
  background-position: 10% 40%;
}

.title-accent {
  color: var(--cyan);
}

.section h2 {
  margin: 0 0 2.25rem;
  max-width: 18ch;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-transform: lowercase;
  color: #f4f6f8;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

/* Approach */
.approach {
  padding: 0;
}

.manifesto {
  position: relative;
  background: transparent;
  padding: clamp(3.75rem, 8vw, 5.75rem) clamp(1.25rem, 4vw, 3rem);
}

.manifesto-inner {
  position: relative;
}

.manifesto .manifesto-title {
  margin: 0 0 2.5rem;
  max-width: 22ch;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-transform: lowercase;
  color: #f4f6f8;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.pillars li,
.service-grid li {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.pillars li.is-in,
.service-grid li.is-in {
  opacity: 1;
  transform: translateY(0);
}

.pillars .icon {
  margin-bottom: 0.25rem;
}

.pillars strong,
.service-grid strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: #f4f6f8;
}

.pillars span:last-child,
.service-grid span:last-child {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  max-width: 18ch;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.service-grid .icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.35rem;
  color: var(--cyan);
}

.service-grid strong {
  font-size: 1.35rem;
}

/* Contact */
.contact-channels {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.channel {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.channel:hover,
.channel:focus-visible {
  transform: translateY(-2px);
}

.channel:hover strong,
.channel:focus-visible strong {
  color: var(--cyan);
}

.channel .icon {
  margin-bottom: 0.2rem;
}

.channel strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: #f4f6f8;
}

.channel span:last-child {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
}

.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  margin-top: 0.35rem;
}

.btn-ghost-dark:hover,
.btn-ghost-dark:focus-visible {
  border-color: rgba(62, 199, 194, 0.55);
  background: rgba(62, 199, 194, 0.1);
  color: #fff;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem 1.1rem;
  max-width: none;
}

.contact-panel.is-sent .contact-form {
  display: none !important;
}

.contact-receipt {
  display: none;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  max-width: 48rem;
}

.contact-panel.is-sent .contact-receipt {
  display: grid;
}

.receipt-status {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.receipt-status.is-ok {
  color: var(--green);
}

.receipt-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.receipt-data {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.receipt-data > div {
  display: grid;
  gap: 0.25rem;
}

.receipt-data dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: rgba(232, 234, 237, 0.5);
}

.receipt-data dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #f4f6f8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.receipt-message dd {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.5;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: rgba(232, 234, 237, 0.78);
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #f4f6f8;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
  min-height: 2.9rem;
}

.field textarea {
  min-height: 8rem;
  line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(62, 199, 194, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(26, 166, 160, 0.12);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 0.35rem;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-note.is-ok {
  color: var(--green);
}

.form-note.is-error {
  color: #ff8f82;
}

.contact-form .btn {
  min-width: 8.5rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 2.75rem;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.75rem;
}

.footer-inner img {
  width: 110px;
  height: auto;
}

.footer-meta {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-inner a {
  color: rgba(232, 234, 237, 0.88);
  letter-spacing: -0.02em;
  text-transform: none;
  transition: color 0.25s var(--ease);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--cyan);
}

.sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

/* Reveal */
.section .eyebrow,
.section h2,
.section .section-lead {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.section.is-in .eyebrow,
.section.is-in h2,
.section.is-in .section-lead {
  opacity: 1;
  transform: translateY(0);
}

.section.is-in h2 {
  transition-delay: 0.08s;
}

.section.is-in .section-lead {
  transition-delay: 0.14s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(2%, 3%) scale(1.05); }
}

@keyframes mosaic-shift {
  from { background-position: 0 0, 12px 18px, 24px 8px; }
  to { background-position: 48px 48px, 76px 82px, 60px 44px; }
}

@keyframes trace-flow {
  to { stroke-dashoffset: -180; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

@keyframes glyph-drift {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(-4px); opacity: 0.25; }
  40% { transform: translateY(6px); opacity: 1; }
  70% { transform: translateY(2px); opacity: 0.55; }
}

@media (max-width: 900px) {
  .pillars,
  .service-grid,
  .contact-channels {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 0.9rem;
    font-size: 0.8rem;
  }

  .pillars,
  .service-grid,
  .contact-channels {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    padding-bottom: 3.5rem;
  }

  .hero-inner {
    text-align: left;
  }

  .hero-logo {
    margin-left: 0;
  }

  .scroll-hint {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-logo,
  .hero h1,
  .scroll-hint,
  .section .eyebrow,
  .section h2,
  .section .section-lead,
  .pillars li,
  .service-grid li {
    opacity: 1;
    transform: none;
  }

  .tech-circuit .trace,
  .tech-circuit .node.pulse,
  .tech-glyphs span,
  .page-glow,
  .page-mosaic,
  .scroll-hint-arrows svg {
    animation: none !important;
  }
}
