/* ==========================================================================
   Algadong — algadong.com
   Design tokens → base → layout → components → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-500: #10b981;
  --brand-400: #34d399;
  --brand-600: #059669;
  --brand-700: #047857;

  /* Ink / dark surfaces */
  --ink-900: #060b14;
  --ink-800: #0a0f1a;
  --ink-700: #101827;
  --ink-600: #1b2436;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --surface: #ffffff;
  --line: #e4e9ec;
  --line-strong: #d3dade;

  /* Text */
  --text: #0d1520;
  --text-muted: #56636f;
  --text-invert: #ffffff;
  --text-invert-muted: #9fb0bd;

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);

  /* Space & shape */
  --container: 1180px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(13, 21, 32, .05), 0 1px 3px rgba(13, 21, 32, .06);
  --shadow-md: 0 4px 12px rgba(13, 21, 32, .06), 0 12px 28px rgba(13, 21, 32, .07);
  --shadow-lg: 0 18px 50px rgba(13, 21, 32, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grad {
  background: linear-gradient(100deg, var(--brand-400), #5eead4 55%, var(--brand-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.link {
  color: var(--brand-700);
  font-weight: 500;
  border-bottom: 1px solid rgba(5, 150, 105, .35);
  transition: border-color .2s var(--ease);
}
.link:hover { border-color: var(--brand-600); }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--brand-500);
  color: #04231a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 22px rgba(16, 185, 129, .3);
}
.btn--primary:hover {
  background: var(--brand-400);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 12px 30px rgba(16, 185, 129, .38);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .38);
  transform: translateY(-2px);
}

.btn--sm  { padding: 9px 18px; font-size: 14px; }
.btn--lg  { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(13, 21, 32, .05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
  /* the mark is a glossy sphere — a soft glow keeps it from looking
     pasted on against the dark hero */
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, .35));
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.035em;
  color: #fff;
  transition: color .3s var(--ease);
}
.site-header.is-stuck .logo__text { color: var(--text); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  border-radius: 8px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-400);
}

.site-header.is-stuck .nav__link { color: var(--text-muted); }
.site-header.is-stuck .nav__link:hover { color: var(--text); background: rgba(13, 21, 32, .05); }
.site-header.is-stuck .nav__link.is-active { color: var(--text); }
.site-header.is-stuck .nav__link.is-active::after { background: var(--brand-600); }

.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .28s var(--ease), opacity .18s var(--ease), background-color .3s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-header.is-stuck .burger { background: rgba(13, 21, 32, .05); border-color: var(--line); }
.site-header.is-stuck .burger span { background: var(--text); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink-800);
  padding: 150px 0 88px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 15%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 15%, #000 20%, transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.orb--1 {
  width: 620px; height: 620px;
  top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(16, 185, 129, .55), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.orb--2 {
  width: 540px; height: 540px;
  top: -120px; right: -160px;
  background: radial-gradient(circle, rgba(45, 212, 191, .38), transparent 68%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 60px, 0) scale(1.12); }
}

.hero__inner { position: relative; text-align: center; }
.hero__copy { max-width: 780px; margin-inline: auto; }

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 22px;
}

.hero__sub {
  max-width: 600px;
  margin: 0 auto 38px;
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  line-height: 1.68;
  color: var(--text-invert-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 76px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;         /* also resets the browser's default <dl> margin */
  padding: 28px 20px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; padding-inline: 8px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .1); }
.stat__value {
  display: block;
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
  order: 2;
}
.stat { display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   6. Client logo wall
   --------------------------------------------------------------------------
   The logos are full-colour marks on white, so this section sits on a light
   background and each logo gets its own white tile. On a dark band they read
   as a row of white rectangles.
   -------------------------------------------------------------------------- */
.clients {
  padding: clamp(46px, 5.5vw, 66px) 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.clients__head { max-width: 600px; margin: 0 auto clamp(26px, 3vw, 34px); text-align: center; }

.clients__title {
  font-size: clamp(1.16rem, 2.4vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -.022em;
  margin-bottom: 9px;
}
.clients__sub { font-size: 14.8px; line-height: 1.65; color: var(--text-muted); }

/* Marquee: one row scrolling forever. Two identical sets sit side by side and
   the track slides exactly one set width, so the loop has no visible seam. */
.marquee {
  position: relative;
  overflow: hidden;
  /* fade both ends so logos enter and leave instead of being chopped off */
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 76px);
  padding-right: clamp(44px, 6vw, 76px);   /* must equal the gap for a seamless join */
}

.marquee__set li { display: grid; place-items: center; flex: none; }

.marquee__set img {
  height: 68px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  opacity: .9;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.marquee__set img:hover { opacity: 1; transform: scale(1.06); }

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 118px) 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 680px; margin: 0 auto clamp(44px, 6vw, 64px); text-align: center; }

.section__tag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.section__title {
  font-size: clamp(1.85rem, 4.1vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.section__lead {
  font-size: clamp(1rem, 1.7vw, 1.09rem);
  line-height: 1.7;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Service cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  padding: 32px 28px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--brand-400), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 15px;
  color: var(--brand-700);
  background: linear-gradient(150deg, rgba(52, 211, 153, .2), rgba(16, 185, 129, .07));
  border: 1px solid rgba(16, 185, 129, .2);
  transition: transform .3s var(--ease);
}
.card__icon svg { width: 25px; height: 25px; }
.card:hover .card__icon { transform: scale(1.06) rotate(-3deg); }

.card__title { font-size: 1.19rem; font-weight: 700; margin-bottom: 11px; }
.card__text { font-size: 15.3px; line-height: 1.68; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.about__copy .section__lead { margin-bottom: 18px; }
.about__body { color: var(--text-muted); line-height: 1.75; margin-bottom: 38px; }

.values { display: grid; gap: 24px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--ink-800);
  color: var(--brand-400);
}
.value__icon svg { width: 21px; height: 21px; fill: none; }
.value__title { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.value__text { font-size: 14.8px; line-height: 1.62; color: var(--text-muted); }

/* Tech panel */
.panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-800);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.panel__dots { display: flex; gap: 7px; }
.panel__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.panel__dots i:first-child { background: rgba(255, 121, 111, .6); }
.panel__dots i:nth-child(2) { background: rgba(255, 200, 87, .55); }
.panel__dots i:last-child { background: rgba(52, 211, 153, .6); }
.panel__file {
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: #7a8b9c;
}
.panel__body { padding: 28px 24px; display: grid; gap: 24px; }

.stack__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: 11px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: #d5e0e8;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.chips li:hover {
  background: rgba(52, 211, 153, .13);
  border-color: rgba(52, 211, 153, .35);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   10. Process
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, .4);
  background: #fff;
}
.step__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: rgba(16, 185, 129, .32);
  transition: color .3s var(--ease);
}
.step:hover .step__num { color: var(--brand-500); }
.step__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 14.8px; line-height: 1.65; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   11. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__head { text-align: center; margin-bottom: clamp(36px, 5vw, 52px); }

.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc + .acc { border-top: 1px solid var(--line); }

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 21px 24px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.012em;
  color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.acc__btn:hover { background: var(--bg-alt); color: var(--brand-700); }
.acc__btn[aria-expanded="true"] { color: var(--brand-700); }

.acc__chevron {
  width: 21px; height: 21px;
  flex: none;
  color: var(--text-muted);
  transition: transform .3s var(--ease), color .2s var(--ease);
}
.acc__btn[aria-expanded="true"] .acc__chevron { transform: rotate(180deg); color: var(--brand-600); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}
.acc__panel > p {
  overflow: hidden;
  font-size: 15.4px;
  line-height: 1.72;
  color: var(--text-muted);
  padding-inline: 24px;
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc.is-open .acc__panel > p { padding-bottom: 24px; }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--ink-800); color: #fff; }
.contact .section__title { color: #fff; }
.contact .section__lead { color: var(--text-invert-muted); }
.contact .section__tag { color: var(--brand-400); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact__details { display: grid; gap: 24px; margin-top: 40px; }
.contact__details li { display: flex; gap: 15px; align-items: flex-start; }
.contact__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: var(--brand-400);
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .2);
}
.contact__ico svg { width: 20px; height: 20px; fill: none; }
.contact__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6c7f91;
  margin-bottom: 3px;
}
.contact__value {
  display: inline-block;
  font-size: 15.4px;
  line-height: 1.55;
  color: #dbe4eb;
  transition: color .2s var(--ease);
}
a.contact__value:hover { color: var(--brand-400); }

/* Form */
.contact__formwrap {
  padding: clamp(26px, 3.4vw, 38px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #c2d0da;
}
.field .opt { font-weight: 400; color: #6c7f91; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #64768a; }

.field select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2394a8b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8 10 12.5 14.5 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 18px;
}
.field select option { background: var(--ink-700); color: #fff; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
}
.field.has-error input,
.field.has-error textarea { border-color: #f87171; }

.field__error {
  font-size: 13px;
  color: #fca5a5;
  min-height: 0;
  display: none;
}
.field.has-error .field__error { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  font-size: 14.5px;
  line-height: 1.55;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  display: none;
}
.form__status.is-success {
  display: block;
  color: #a7f3d0;
  background: rgba(16, 185, 129, .13);
  border: 1px solid rgba(52, 211, 153, .3);
}
.form__status.is-error {
  display: block;
  color: #fecaca;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .3);
}

.form__note { font-size: 13.5px; color: #6c7f91; text-align: center; }
.form__note a { color: var(--brand-400); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-900);
  color: var(--text-invert-muted);
  padding-top: 68px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 52px;
}
.logo--footer { margin-bottom: 16px; }
.logo--footer .logo__text { color: #fff; }
.footer__tagline { font-size: 14.6px; line-height: 1.68; max-width: 300px; }

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a {
  font-size: 14.8px;
  color: var(--text-invert-muted);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: var(--brand-400); }
.footer__addr { font-size: 14.3px; line-height: 1.6; max-width: 260px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13.8px;
  color: #5f7183;
}

/* --------------------------------------------------------------------------
   14. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: #04231a;
  background: var(--brand-500);
  box-shadow: 0 8px 24px rgba(16, 185, 129, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s, background-color .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-400); }

/* --------------------------------------------------------------------------
   15. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .about,
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .header__inner { height: 68px; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 24px;
    background: rgba(10, 15, 26, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 12px; font-size: 16px; color: rgba(255, 255, 255, .8); border-radius: 10px; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: rgba(52, 211, 153, .14); color: var(--brand-400); }
  .site-header.is-stuck .nav__link { color: rgba(255, 255, 255, .8); }
  .site-header.is-stuck .nav__link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
  .site-header.is-stuck .nav__link.is-active { color: var(--brand-400); }

  .nav__cta { margin-top: 12px; width: 100%; padding-block: 13px; }

  .logo__mark { width: 36px; height: 36px; }
  .hero { padding: 118px 0 72px; }
  .stats { padding: 22px 12px; border-radius: var(--radius); }
  .stat__label { font-size: 11.5px; letter-spacing: .03em; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }

  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { flex-direction: column; padding: 16px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }

  .hero__actions .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }

  .marquee__set img { height: 54px; max-width: 132px; }
  .marquee__set { gap: 38px; padding-right: 38px; }
  .marquee__track { animation-duration: 34s; }
  .footer__inner { grid-template-columns: 1fr; }
  .acc__btn { padding: 18px 18px; font-size: .98rem; }
  .acc__panel > p { padding-inline: 18px; }
  .acc.is-open .acc__panel > p { padding-bottom: 18px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   17. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }

  /* stop the marquee outright and let it be scrolled by hand instead —
     the blanket rule above would otherwise snap it to its end position */
  .marquee__track { animation: none !important; transform: none !important; }
  .marquee { overflow-x: auto; scrollbar-width: thin; }
}

@media print {
  .site-header, .to-top, .hero__bg, .contact__formwrap { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .contact, .footer, .clients { background: #fff !important; color: #000 !important; }
  .hero__title, .section__title, .contact .section__title, .logo__text { color: #000 !important; }
  a { text-decoration: underline; }
}
