/* ArcIntel Lite - single-page site. No framework, no build step. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-raise: #0c0c0c;
  --line: #1c1c1c;
  --line-strong: #2c2c2c;
  --text: #f5f5f4;
  --body: #b4b4b4;
  --muted: #8f8f8f;
  --green: #2a921f;
  --green-ink: #46b83a;
  --green-wash: rgb(42 146 31 / 0.08);
  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.65 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Fine film grain over the whole page, for depth without imagery. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
blockquote,
address {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ Type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--green);
}

.display {
  color: var(--text);
  font-size: clamp(2.75rem, 7.4vw, 6.75rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.display--md {
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  line-height: 1.02;
}

.accent {
  color: var(--green);
}

.lede {
  max-width: 34ch;
  color: var(--text);
  opacity: 0.86;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.lede--body {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--body);
  opacity: 1;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}

.statement {
  max-width: 24ch;
  color: var(--text);
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.statement .muted {
  color: var(--muted);
}

#approach .statement {
  max-width: 30ch;
}

.label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.label span {
  color: var(--green-ink);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.sub {
  margin-top: 80px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.fine {
  max-width: 60ch;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------- Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #050505;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--green-ink);
  border-color: var(--green-ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--green);
  background: var(--green-wash);
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(2px);
}

/* ---------------------------------------------------------------- Header */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgb(5 5 5 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  line-height: 1;
}

/* Official logo (white "ArcIntel" + green "!", transparent background). */
.brand__logo {
  display: block;
  width: auto;
  height: 24px;
}

.brand__logo--footer {
  height: 28px;
}

.brand__sub {
  margin-top: 6px;
  padding-left: 2px;
  color: var(--body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  padding: 8px 14px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current='true'] {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a[aria-current='true']::after {
  transform: scaleX(1);
}

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 140px 0 72px;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(48rem 36rem at 78% 42%, rgb(42 146 31 / 0.16), transparent 70%),
    radial-gradient(30rem 22rem at 10% 100%, rgb(42 146 31 / 0.06), transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 72% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 72% 45%, #000, transparent 75%);
}

.hero__art {
  position: absolute;
  top: 50%;
  right: max(-14rem, -18vw);
  z-index: -1;
  width: min(54rem, 110vw);
  transform: translateY(-50%);
  opacity: 0.9;
}

.hero__art svg {
  display: block;
  width: 100%;
  height: auto;
}

.rings circle {
  stroke: var(--green);
  stroke-opacity: 0.16;
}

.rings .dashed {
  stroke-dasharray: 2 10;
  stroke-opacity: 0.22;
}

.rings .dotted {
  stroke-dasharray: 1 7;
  stroke-opacity: 0.28;
}

.shield {
  stroke: var(--green);
  stroke-opacity: 0.55;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.4s 0.3s var(--ease) forwards;
}

.nodes circle {
  fill: var(--green-ink);
  opacity: 0.8;
}

.spin {
  transform-origin: 300px 300px;
  animation: spin 140s linear infinite;
}

.spin-rev {
  transform-origin: 300px 300px;
  animation: spin 180s linear infinite reverse;
}

.hero__inner {
  position: relative;
}

.hero .display {
  margin-top: 28px;
}

.hero .lede {
  margin-top: 28px;
}

.caps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 88px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text);
  opacity: 0.85;
  font-size: 14px;
  font-weight: 500;
}

.caps li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.caps li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

/* Hero entrance (CSS only, so the headline paints immediately). */
.rise {
  animation: rise 0.9s var(--ease) both;
}

.rise:nth-child(2) {
  animation-delay: 0.06s;
}

.rise:nth-child(3) {
  animation-delay: 0.14s;
}

.rise:nth-child(4) {
  animation-delay: 0.22s;
}

.rise:nth-child(5) {
  animation-delay: 0.32s;
}

/* -------------------------------------------------------------- Sections */

.section {
  padding-block: clamp(96px, 12vw, 168px);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
  }

  .split > .label {
    position: sticky;
    top: 120px;
    align-self: start;
    padding-top: 14px;
  }
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 920px;
  margin-top: 48px;
  font-size: 17px;
}

@media (min-width: 760px) {
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
}

/* ---------------------------------------------------------- Service list */

.svc {
  margin-top: 64px;
  border-bottom: 1px solid var(--line);
  counter-reset: svc;
}

.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}

@media (min-width: 760px) {
  .svc__row {
    grid-template-columns: 64px minmax(0, 1fr) 200px;
    align-items: baseline;
    padding: 30px 8px;
  }
}

.svc__row::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.svc__row:hover {
  background: linear-gradient(90deg, var(--green-wash), transparent 70%);
}

.svc__row:hover::before {
  transform: scaleX(1);
}

.svc__no {
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.svc__row h3 {
  color: var(--text);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: transform 0.35s var(--ease);
}

.svc__row:hover h3 {
  transform: translateX(4px);
}

.svc__row p {
  max-width: 58ch;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
}

.svc__area {
  grid-column: 2;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

@media (min-width: 760px) {
  .svc__area {
    grid-column: auto;
    margin-top: 0;
    text-align: right;
  }
}

/* -------------------------------------------------------------- Principle */

.principle {
  padding-block: clamp(96px, 12vw, 168px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgb(42 146 31 / 0.08), transparent 70%),
    var(--bg);
}

.principle figure {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.principle blockquote p {
  color: var(--text);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.principle blockquote p::before {
  content: '\201C';
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.6em;
  line-height: 0.6;
}

.principle figcaption {
  margin-top: 32px;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- Steps */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 0;
  }

  .steps li {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 28px 16px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-strong);
  }

  .steps li::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--green);
    transition:
      background-color 0.3s var(--ease),
      transform 0.3s var(--ease);
  }

  .steps li:hover::before {
    background: var(--green);
    transform: scale(1.4);
  }

  .steps strong {
    margin-top: 4px;
  }
}

/* ---------------------------------------------------------------- Models */

.models {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  overflow: clip;
}

@media (min-width: 640px) {
  .models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .models {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.models li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--bg);
  transition: background-color 0.3s var(--ease);
}

.models li:hover {
  background: var(--bg-raise);
}

.models strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.models p {
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
}

.models em {
  margin-top: 8px;
  color: var(--green-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- Contact */

.contact {
  background:
    radial-gradient(50rem 30rem at 85% 100%, rgb(42 146 31 / 0.1), transparent 70%),
    var(--bg);
}

.contact__list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.contact__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'label action'
    'value value';
  align-items: center;
  gap: 8px 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .contact__list li {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    grid-template-areas: 'label value action';
    padding: 30px 8px;
  }
}

.contact__label {
  grid-area: label;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact__value {
  grid-area: value;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--green), var(--green)) 0 100% / 0 1px no-repeat;
  transition:
    background-size 0.4s var(--ease),
    color 0.2s var(--ease);
}

a.contact__value:hover {
  background-size: 100% 1px;
}

.contact__value--address {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  line-height: 1.45;
  background: none;
}

.copy {
  grid-area: action;
  justify-self: end;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--body);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.copy:hover {
  border-color: var(--green);
  background: var(--green-wash);
  color: var(--text);
}

.copy.is-done {
  border-color: var(--green);
  color: var(--green-ink);
}

.contact__arrow {
  grid-area: action;
  justify-self: end;
  color: var(--green-ink);
}

.contact .actions {
  margin-top: 48px;
}

.toast {
  min-height: 1.5em;
  margin-top: 16px;
  color: var(--green-ink);
  font-size: 14px;
}

/* ---------------------------------------------------------------- Footer */

.footer {
  padding-block: 56px 48px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }
}

.footer__tag {
  color: var(--body);
  font-size: 14px;
}

.footer__meta {
  color: var(--muted);
  font-size: 13px;
}

.footer__meta a {
  color: var(--body);
  transition: color 0.2s var(--ease);
}

.footer__meta a:hover {
  color: var(--green-ink);
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 719px) {
  .nav__links {
    display: none;
  }

  .nav__inner {
    justify-content: space-between;
    height: 68px;
  }

  .brand__logo {
    height: 21px;
  }

  .brand__logo--footer {
    height: 24px;
  }

  .hero {
    padding-top: 120px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .caps {
    margin-top: 64px;
    gap: 10px 18px;
  }

  .caps li {
    gap: 18px;
  }
}

/* ------------------------------------------------- Scroll reveal (main.js) */

.reveal {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(18px);
}

/* ------------------------------------------------------------ Keyframes */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shield {
    stroke-dashoffset: 0;
  }
}
