:root {
  --black: #050505;
  --ink: #0b0b0b;
  --steel: #171819;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f4f1;
  --muted: rgba(245, 244, 241, 0.68);
  --quiet: rgba(245, 244, 241, 0.46);
  --accent: #b8a58e;
  --accent-bright: #e0d4c3;
  --header-height: 76px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(184, 165, 142, 0.12), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(135deg, #050505 0%, #101111 44%, #050505 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.26;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  left: 18px;
  top: 0;
  z-index: 40;
  transform: translateY(calc(-100% - 8px));
  padding: 10px 14px;
  background: var(--text);
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.9);
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.header-action,
.primary-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  justify-self: start;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  position: relative;
  top: 1px;
  padding-left: 14px;
  border-left: 1px solid var(--accent);
  color: rgba(245, 244, 241, 0.94);
  font-size: 15px;
}

.primary-nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  justify-self: center;
  font-size: 13px;
  color: var(--muted);
}

.primary-nav a {
  transition: color 180ms ease;
}

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

.header-action {
  justify-self: end;
  justify-content: center;
  min-width: 88px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease;
}

.header-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.44);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 0.76fr);
  align-items: center;
  gap: clamp(28px, 5vw, 90px);
  padding: calc(var(--header-height) + 34px) clamp(18px, 6vw, 92px) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.54) 52%, rgba(5, 5, 5, 0.86)),
    url("assets/atlas-foundry-logo-920.jpg") center right 8% / min(58vw, 780px) no-repeat;
  opacity: 0.22;
  filter: saturate(0.65);
}

.hero-content {
  max-width: 720px;
  animation: heroIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(4.35rem, 10.8vw, 10.9rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(245, 244, 241, 0.78);
  font-size: clamp(1.12rem, 2vw, 1.48rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  font-weight: 800;
  font-size: 13px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--text);
  color: var(--black);
  border-color: var(--text);
}

.button.primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-logo {
  margin: 0;
  justify-self: end;
  width: min(41vw, 520px);
  min-width: 320px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #060606;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.58);
  animation: logoIn 1100ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-logo picture {
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.node,
.trace {
  position: absolute;
  display: block;
}

.node {
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 34px rgba(184, 165, 142, 0.6);
  animation: pulse 2600ms ease-in-out infinite;
}

.node-a {
  top: 23%;
  left: 8%;
}

.node-b {
  top: 66%;
  left: 54%;
  animation-delay: 500ms;
}

.node-c {
  top: 18%;
  right: 18%;
  animation-delay: 1000ms;
}

.node-d {
  bottom: 16%;
  right: 9%;
  animation-delay: 1500ms;
}

.trace {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 165, 142, 0.62), transparent);
  transform-origin: left center;
  opacity: 0.7;
  animation: traceMove 4200ms linear infinite;
}

.trace-a {
  top: 24%;
  left: 8%;
  width: 42vw;
  transform: rotate(13deg);
}

.trace-b {
  top: 68%;
  left: 34%;
  width: 34vw;
  transform: rotate(-18deg);
  animation-delay: 800ms;
}

.trace-c {
  top: 32%;
  right: 9%;
  width: 25vw;
  transform: rotate(84deg);
  animation-delay: 1400ms;
}

.statement {
  padding: clamp(76px, 12vw, 150px) clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.statement-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: end;
}

.statement p {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(2.05rem, 5vw, 5.25rem);
  font-weight: 800;
  line-height: 1.03;
}

.statement span {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(82px, 12vw, 156px) clamp(18px, 4vw, 34px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(38px, 6vw, 74px);
}

.section-heading h2,
.system-copy h2,
.philosophy-panel h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 6vw, 5.7rem);
  font-weight: 800;
}

.discipline-list {
  border-top: 1px solid var(--line);
}

.discipline {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 56px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.discipline-index {
  color: var(--accent);
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
}

.discipline h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
}

.discipline p {
  margin-bottom: 0;
  color: var(--muted);
}

.discipline ul {
  margin: 0;
  padding: 0;
  columns: 2;
  list-style: none;
  color: rgba(245, 244, 241, 0.72);
  font-size: 14px;
}

.discipline li {
  break-inside: avoid;
  padding: 0 0 10px 18px;
  position: relative;
}

.discipline li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.operating-system {
  max-width: none;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(360px, 1fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: center;
  padding: clamp(78px, 10vw, 130px) clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 42%),
    #090909;
}

.system-copy {
  max-width: 620px;
}

.system-copy p:not(.eyebrow),
.philosophy-panel p,
.contact p {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.system-map {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  overflow: hidden;
}

.system-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(184, 165, 142, 0.12) 48%, transparent 70%);
  transform: translateX(-100%);
  animation: scanner 5200ms ease-in-out infinite;
}

.map-line {
  position: absolute;
  background: rgba(184, 165, 142, 0.28);
}

.map-line.horizontal {
  left: 10%;
  right: 10%;
  height: 1px;
}

.map-line.vertical {
  top: 12%;
  bottom: 12%;
  width: 1px;
}

.map-line.top {
  top: 24%;
}

.map-line.middle {
  top: 50%;
}

.map-line.bottom {
  top: 76%;
}

.map-line.left {
  left: 22%;
}

.map-line.center {
  left: 52%;
}

.map-line.right {
  left: 78%;
}

.map-node {
  position: absolute;
  min-width: 118px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.86);
  color: rgba(245, 244, 241, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.node-architecture {
  left: 36%;
  top: 42%;
}

.node-workflows {
  left: 10%;
  top: 18%;
}

.node-data {
  right: 12%;
  top: 18%;
}

.node-systems {
  left: 13%;
  bottom: 16%;
}

.node-ai {
  right: 16%;
  bottom: 17%;
}

.node-execution {
  left: 39%;
  bottom: 7%;
}

.primary-node {
  min-width: 156px;
  color: var(--black);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.process {
  padding-bottom: clamp(76px, 10vw, 130px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-step {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: background 220ms ease, transform 220ms ease;
}

.process-step:hover {
  background: rgba(184, 165, 142, 0.08);
  transform: translateY(-4px);
}

.process-step span {
  margin-bottom: 16px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 800;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.6fr);
  gap: clamp(28px, 5vw, 70px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 34px) clamp(84px, 12vw, 160px);
}

.philosophy-panel {
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.mission-vision {
  display: grid;
  align-content: start;
  gap: 28px;
}

.mission-vision div {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mission-vision span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.mission-vision p {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.12;
}

.contact {
  min-height: 68svh;
  display: grid;
  place-items: center;
  padding: clamp(80px, 12vw, 150px) clamp(18px, 6vw, 92px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.96)),
    url("assets/atlas-foundry-logo-920.jpg") center / min(78vw, 940px) no-repeat;
}

.contact-inner {
  width: min(900px, 100%);
  text-align: center;
}

.contact h2 {
  color: var(--text);
  margin-bottom: 34px;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.86);
}

.contact .button.primary {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.js .contact .reveal,
.contact .reveal {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 1;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal {
  opacity: 0.18;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.7);
    opacity: 1;
  }
}

@keyframes traceMove {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  45% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes scanner {
  0%,
  18% {
    transform: translateX(-100%);
  }
  70%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 34px;
  }

  .hero-logo {
    justify-self: start;
    width: min(78vw, 420px);
    min-width: 0;
  }

  .statement-inner,
  .operating-system,
  .philosophy {
    grid-template-columns: 1fr;
  }

  .discipline {
    grid-template-columns: 52px 1fr;
  }

  .discipline ul {
    grid-column: 2;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .header-action {
    min-width: 78px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 6.7rem);
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .hero-logo {
    width: 100%;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.97), rgba(5, 5, 5, 0.72)),
      url("assets/atlas-foundry-logo-540.jpg") center bottom 10% / 90vw no-repeat;
  }

  .statement p {
    font-size: clamp(2rem, 10vw, 3.3rem);
  }

  .discipline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .discipline p,
  .discipline ul,
  .system-copy p:not(.eyebrow),
  .philosophy-panel p {
    color: rgba(245, 244, 241, 0.78);
  }

  .discipline ul {
    grid-column: auto;
    columns: 1;
  }

  .operating-system {
    min-height: auto;
  }

  .system-map {
    min-height: 360px;
  }

  .map-node {
    min-width: 96px;
    min-height: 36px;
    font-size: 11px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
