/* Ryland Super Intelligence. Visual language follows ryland.consulting. */
:root {
  --black: #020200;
  --ink: #f3f6f3;
  --muted: #a9ad9f;
  --muted-strong: #d7dacd;
  --panel: #0d0f0a;
  --line: rgb(166 255 4 / 18%);
  --line-soft: rgb(244 245 238 / 10%);
  --accent: #a6ff04;
  --accent-dim: rgb(166 255 4 / 14%);
  --shadow: 0 28px 90px rgb(0 0 0 / 48%);
  --shell: min(1180px, calc(100% - 32px));
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  color: var(--ink);
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  overflow-x: clip;
  font-optical-sizing: auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle 1.5px at 1px 1px, rgb(166 255 4 / 22%), transparent 100%),
    linear-gradient(rgb(166 255 4 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(166 255 4 / 2.5%) 1px, transparent 1px);
  background-size: 96px 96px;
  content: '';
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 85%);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid rgb(166 255 4 / 80%);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgb(166 255 4 / 30%);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  border-radius: 8px;
  background: var(--accent);
  padding: 10px 14px;
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(243 246 243 / 8%);
  background: rgb(2 2 0 / 74%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--shell);
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: clamp(14px, 2.2vw, 28px);
  color: rgb(169 173 159 / 75%);
  font-size: 0.9rem;
  font-weight: 300;
}

.nav-menu a,
.nav-link,
.button,
.text-link {
  text-decoration: none;
}

.nav-menu a {
  transition: color 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

.nav-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(166 255 4 / 46%);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Layout */
.site-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 172px 0 72px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: clamp(520px, calc(100vh - 300px), 700px);
  padding-bottom: clamp(16px, 3vh, 36px);
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: -172px;
  bottom: -44px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.hero-art svg {
  position: absolute;
  top: 50%;
  right: max(-180px, calc(50vw - 760px));
  width: min(980px, 110vw);
  height: auto;
  transform: translateY(-46%);
  mask-image: linear-gradient(180deg, black 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 72%, transparent 100%);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(2 2 0 / 96%) 0%, rgb(2 2 0 / 86%) 34%, rgb(2 2 0 / 40%) 56%, rgb(2 2 0 / 0%) 74%);
  content: '';
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(2 2 0 / 60%);
  padding: 8px 14px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.eyebrow:hover,
.eyebrow:focus-visible {
  border-color: rgb(166 255 4 / 46%);
  color: var(--ink);
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgb(166 255 4 / 70%);
  content: '';
}

h1 {
  max-width: 820px;
  margin-bottom: 36px;
  color: var(--ink);
  font-size: clamp(3.2rem, 7vw, 4rem);
  font-weight: 300;
  line-height: 0.95;
}

h1 span,
h2 span {
  color: var(--accent);
}

.hero-copy h1,
.hero-copy .hero-statement,
.hero-copy .lede {
  text-shadow:
    0 1px 12px rgb(2 2 0 / 85%),
    0 0 32px rgb(2 2 0 / 70%);
}

.hero-statement {
  max-width: 30ch;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.333rem;
  font-weight: 300;
  line-height: 1.26;
}

.lede {
  max-width: 46ch;
  margin-bottom: 0;
  color: rgb(215 218 205 / 78%);
  font-size: 1rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(44px, 5.5vw, 64px);
}

.button {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgb(166 255 4 / 48%);
  border-radius: 8px;
  padding: 18px 28px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 300;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button.primary {
  min-width: min(100%, 320px);
  box-shadow: inset 0 0 0 1px rgb(166 255 4 / 8%);
}

.button:hover,
.button:focus-visible {
  border-color: var(--accent);
  background: rgb(166 255 4 / 8%);
}

.button.secondary {
  min-height: auto;
  border: 0;
  padding: 0;
  color: rgb(244 245 238 / 62%);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: transparent;
  color: var(--accent);
}

/* Sections */
.section {
  margin-top: 44px;
  border-top: 1px solid var(--line-soft);
  padding-top: 88px;
  scroll-margin-top: 104px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.6vw, 3.111rem);
  font-weight: 300;
  line-height: 1.03;
}

.section-heading p,
.section p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.64;
}

h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.333rem;
  font-weight: 300;
  line-height: 1.15;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%)),
    var(--panel);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow);
}

.pillar-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.3rem;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Approach */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 28px 22px 0 0;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px rgb(166 255 4 / 55%);
  content: '';
}

.steps li::after {
  display: block;
  order: -1;
  margin-bottom: 14px;
  color: rgb(169 173 159 / 60%);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  content: '0' counter(step);
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.steps li {
  display: flex;
  flex-direction: column;
}

/* .si domain panel */
.domain-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgb(166 255 4 / 16%), transparent 46%),
    linear-gradient(160deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%)),
    var(--panel);
  padding: clamp(32px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.domain-panel h2 {
  margin-bottom: 18px;
}

.domain-panel p {
  max-width: 48ch;
}

.domain-search {
  display: grid;
  gap: 18px;
}

.domain-preview {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgb(2 2 0 / 70%);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 300;
}

.domain-preview span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 18px 0 18px 20px;
  color: rgb(243 246 243 / 72%);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-preview strong {
  padding: 18px 20px 18px 0;
  color: var(--accent);
  font-weight: 400;
}

.domain-search .button {
  width: 100%;
  background: var(--accent);
  color: var(--black);
  font-weight: 500;
}

.domain-search .button:hover,
.domain-search .button:focus-visible {
  background: #b8ff3a;
}

.disclosure {
  margin: 0;
  color: rgb(169 173 159 / 60%) !important;
  font-size: 0.74rem !important;
  line-height: 1.5 !important;
}

/* Ryland Consulting band */
.parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.parent-logo {
  display: block;
  width: auto;
  height: 52px;
  margin-bottom: 28px;
}

.parent p {
  max-width: 60ch;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 0;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  color: rgb(169 173 159 / 75%);
  font-size: 0.84rem;
  font-weight: 300;
}

.site-footer-links,
.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.site-footer a {
  text-decoration: none;
  transition: color 160ms ease;
}

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

.site-footer-social .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
  color: var(--ink);
}

.site-footer-social a:hover .icon,
.site-footer-social a:focus-visible .icon {
  color: var(--accent);
}

.site-footer-legal {
  margin-top: 22px;
  color: rgb(169 173 159 / 60%);
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.5;
}

.site-footer-legal p {
  margin: 0 0 4px;
}

/* Hero artwork motion */
.orbit {
  transform-box: view-box;
  transform-origin: 600px 400px;
  animation: orbit 90s linear infinite;
}

.orbit.reverse {
  animation-duration: 140s;
  animation-direction: reverse;
}

.core-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 5s ease-in-out infinite;
}

.signal {
  stroke-dasharray: 6 18;
  animation: flow 3.2s linear infinite;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -96;
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.hero-copy > * {
  animation: hero-fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 120ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 240ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 360ms;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 480ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 1040px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .domain-panel,
  .parent {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-menu {
    display: none;
  }

  .hero-art svg {
    right: -40%;
    width: 150vw;
    opacity: 0.55;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 16px;
  }

  .site-shell {
    padding-top: 132px;
  }

  .hero-art {
    top: -132px;
  }

  .brand-logo {
    height: 32px;
  }

  .nav-link {
    padding: 10px 12px;
  }

  .nav-link span {
    display: none;
  }

  .pillars,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .button.primary {
    width: 100%;
  }

  .section {
    padding-top: 64px;
  }
}
