/* Skelvorn AI — Visual Identity */
:root {
  --plum: #3A1F2E;
  --copper: #8A5A46;
  --violet: #6C4A63;
  --ivory: #E8DFCF;
  --ivory-dim: rgba(232, 223, 207, 0.72);
  --plum-deep: #2a1520;
  --glass: rgba(58, 31, 46, 0.55);
  --glow-copper: rgba(138, 90, 70, 0.35);
  --glow-violet: rgba(108, 74, 99, 0.4);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--plum);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--copper); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--ivory); }
ul { list-style: none; }

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(165deg, var(--plum-deep) 0%, var(--plum) 40%, #3d2234 100%);
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient__orb--1 {
  width: 55vw;
  height: 55vw;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, var(--glow-copper), transparent 70%);
}

.ambient__orb--2 {
  width: 45vw;
  height: 45vw;
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, var(--glow-violet), transparent 70%);
  animation-delay: -6s;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 223, 207, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 223, 207, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

@keyframes drift {
  to { transform: translate(3%, 4%) scale(1.05); }
}

/* Typography */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper), #6d4538);
  color: var(--ivory);
  box-shadow: 0 4px 24px var(--glow-copper);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-copper);
  color: var(--ivory);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(232, 223, 207, 0.25);
  color: var(--ivory);
}

.btn--ghost:hover {
  border-color: var(--copper);
  color: var(--ivory);
  background: rgba(138, 90, 70, 0.12);
}

.btn--outline {
  background: transparent;
  border-color: var(--copper);
  color: var(--ivory);
}

.btn--outline:hover {
  background: rgba(138, 90, 70, 0.2);
  color: var(--ivory);
}

.btn--full { width: 100%; }
.btn--header { padding: 0.6rem 1.2rem; font-size: 0.8rem; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(58, 31, 46, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 223, 207, 0.06);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ivory);
  flex-shrink: 0;
}

.logo:hover { color: var(--ivory); }

.logo__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__img--sm {
  width: 32px;
  height: 32px;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo__ai {
  font-weight: 500;
  color: var(--copper);
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.875rem;
  color: var(--ivory-dim);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.3s var(--ease);
}

.nav a:hover { color: var(--ivory); }
.nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.3s var(--ease);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--ivory-dim);
  max-width: 36rem;
  margin: 1.25rem auto 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 223, 207, 0.1);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats > div {
  text-align: center;
}

.hero__stats dt {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
}

.hero__stats dd {
  font-size: 0.85rem;
  color: var(--ivory-dim);
  margin-top: 0.2rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shard-ring {
  position: relative;
  width: min(380px, 90%);
  aspect-ratio: 1;
}

.shard-ring__core {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--copper), var(--violet));
  opacity: 0.4;
  filter: blur(20px);
  animation: pulse 4s ease-in-out infinite;
}

.shard-ring__svg {
  width: 100%;
  height: 100%;
  animation: rotate 60s linear infinite;
}

@keyframes pulse {
  50% { opacity: 0.65; transform: scale(1.08); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section__intro { max-width: 42rem; margin-bottom: 3rem; }
.section__intro--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__lead { color: var(--ivory-dim); font-size: 1.05rem; margin-top: 0.75rem; }

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(232, 223, 207, 0.08);
}

.split--reversed .split__panel--text { order: 2; }
.split--reversed .split__panel--visual { order: 1; }

.split__panel {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.split__panel--text {
  background: rgba(42, 21, 32, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split__panel--text p {
  color: var(--ivory-dim);
  margin-bottom: 1rem;
}

.split__panel--visual {
  position: relative;
  min-height: 320px;
  background: linear-gradient(145deg, rgba(108, 74, 99, 0.25), rgba(58, 31, 46, 0.8));
}

.panel-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, var(--glow-copper), transparent 55%);
  pointer-events: none;
}

.panel-mesh {
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 12px,
      rgba(138, 90, 70, 0.06) 12px,
      rgba(138, 90, 70, 0.06) 13px
    ),
    linear-gradient(160deg, var(--violet), var(--plum-deep));
}

.panel-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--ivory-dim);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--copper);
  transform: rotate(45deg);
}

/* Abstract nodes */
.abstract-nodes {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--copper);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--glow-copper);
}

.node--center { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); width: 14px; height: 14px; }
.node--a { top: 22%; left: 35%; animation: float 5s ease-in-out infinite; }
.node--b { top: 30%; right: 28%; animation: float 6s ease-in-out infinite -1s; }
.node--c { bottom: 35%; left: 22%; animation: float 7s ease-in-out infinite -2s; }
.node--d { bottom: 28%; right: 32%; animation: float 5.5s ease-in-out infinite -0.5s; }
.node--e { top: 55%; left: 55%; opacity: 0.6; animation: float 8s ease-in-out infinite -3s; }

@keyframes float {
  50% { transform: rotate(45deg) translateY(-8px); }
}

.pull-quote {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ivory);
  opacity: 0.9;
  border-left: 2px solid var(--copper);
  padding-left: 1.25rem;
}

/* Engine section */
.section--engine {
  position: relative;
}

.section--engine::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(138, 90, 70, 0.2), transparent);
  pointer-events: none;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.cards--2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards--3x3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 223, 207, 0.08);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.card:hover {
  border-color: rgba(138, 90, 70, 0.35);
  transform: translateY(-4px);
}

.card--tilt-left { transform: rotate(-0.6deg); }
.card--tilt-right { transform: rotate(0.6deg); }
.card--tilt-left:hover,
.card--tilt-right:hover { transform: rotate(0) translateY(-4px); }

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--copper);
}

.card__icon svg { width: 100%; height: 100%; }

.card p {
  font-size: 0.9rem;
  color: var(--ivory-dim);
}

.card--minimal {
  background: rgba(42, 21, 32, 0.5);
  border-radius: 4px var(--radius) 4px var(--radius);
}

.card--highlight {
  background: linear-gradient(135deg, rgba(138, 90, 70, 0.2), rgba(108, 74, 99, 0.15));
  border-color: rgba(138, 90, 70, 0.3);
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.engine-banner {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ivory-dim);
  border: 1px dashed rgba(138, 90, 70, 0.35);
  border-radius: var(--radius);
  background: rgba(108, 74, 99, 0.12);
}

/* SOC */
.soc-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  height: 200px;
  padding: 2rem;
}

.soc-visual__bar {
  width: 28px;
  height: var(--h);
  background: linear-gradient(to top, var(--plum-deep), var(--copper));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  animation: barGrow 1.2s var(--ease) backwards;
}

.soc-visual__bar:nth-child(odd) { animation-delay: 0.1s; }
.soc-visual__bar:nth-child(even) { animation-delay: 0.2s; }

@keyframes barGrow {
  from { height: 0; opacity: 0; }
}

.soc-label {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.section--soc .btn { margin-top: 1.5rem; align-self: flex-start; }

/* Capabilities */
.section--capabilities {
  background: linear-gradient(180deg, transparent, rgba(42, 21, 32, 0.5) 30%, transparent);
  border-radius: var(--radius-lg);
  max-width: calc(1280px + 4rem);
}

.capabilities-cta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(138, 90, 70, 0.08);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.capabilities-cta p {
  flex: 1;
  min-width: 240px;
  color: var(--ivory-dim);
  font-size: 1.05rem;
}

/* Scale */
.split--scale {
  border: none;
  gap: 2rem;
  background: transparent;
}

.split--scale .split__panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 223, 207, 0.08);
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.75rem;
}

.industry-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(108, 74, 99, 0.6);
  border-radius: 999px;
  color: var(--ivory-dim);
  background: rgba(108, 74, 99, 0.15);
}

.stack-layer {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 223, 207, 0.1);
  transform: translateX(var(--tx, 0));
}

.stack-layer--1 {
  --tx: 0;
  background: rgba(58, 31, 46, 0.9);
  z-index: 3;
}

.stack-layer--2 {
  --tx: 1.5rem;
  background: rgba(108, 74, 99, 0.35);
  margin-top: -0.5rem;
  z-index: 2;
}

.stack-layer--3 {
  --tx: 3rem;
  background: rgba(138, 90, 70, 0.2);
  margin-top: -0.5rem;
  z-index: 1;
}

/* Contact */
.contact__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.contact__metrics span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(138, 90, 70, 0.4);
  border-radius: 999px;
  color: var(--copper);
  background: rgba(138, 90, 70, 0.1);
}

.section--contact {
  padding-bottom: 5rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(160deg, rgba(108, 74, 99, 0.2), rgba(58, 31, 46, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(138, 90, 70, 0.25);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.contact__info p { color: var(--ivory-dim); margin: 1rem 0 2rem; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 0.25rem;
}

.contact__details a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ivory);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row--full { grid-column: 1 / -1; }

.contact-form label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 223, 207, 0.15);
  background: rgba(42, 21, 32, 0.8);
  color: var(--ivory);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(232, 223, 207, 0.35);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--glow-copper);
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A5A46' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form .btn--full { grid-column: 1 / -1; margin-top: 0.25rem; }

.form-note {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  min-height: 1.25rem;
  color: var(--copper);
}

.form-note.is-success { color: #9ec4a8; }
.form-note.is-error { color: #c49e9e; }

.form-email-hint {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--ivory-dim);
  text-align: center;
  margin-top: -0.25rem;
}

.form-email-hint a { color: var(--copper); font-weight: 500; }

/* Footer */
.footer {
  border-top: 1px solid rgba(232, 223, 207, 0.08);
  background: var(--plum-deep);
  padding: 3rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.footer__top,
.footer__cols,
.footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 223, 207, 0.06);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ivory-dim);
  font-size: 0.9rem;
}

.footer__social:hover { color: var(--ivory); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--ivory-dim);
  display: block;
  padding: 0.3rem 0;
}

.footer__col a:hover { color: var(--ivory); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 223, 207, 0.06);
  font-size: 0.8rem;
  color: var(--ivory-dim);
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(138, 90, 70, 0.8);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { padding-top: 7rem; }
  .split, .split--reversed { grid-template-columns: 1fr; }
  .split--reversed .split__panel--text,
  .split--reversed .split__panel--visual { order: unset; }
  .cards--3x3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .btn--header { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(42, 21, 32, 0.98);
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(232, 223, 207, 0.08);
  }
  .cards--2x2, .cards--3x3 { grid-template-columns: 1fr; }
  .card--tilt-left, .card--tilt-right { transform: none; }
  .contact-form { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .capabilities-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 1.5rem; }
  .footer__cols { grid-template-columns: 1fr; }
}
