/* Intel Sift — site shell (brand-aligned) */

:root {
  --void: #07090A;
  --bg2: #0c0f10;
  --bg3: #111618;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #eae0d5;
  --muted: rgba(234, 224, 213, 0.5);
  --dim: rgba(234, 224, 213, 0.22);
  --gold: #e1b944;
  --teal: #0b6e6e;
  --dusk: #2e4057;
  --flame: #ba4a00;
  --stone: #5d6d7e;
  --sand: #f2e8da;
  --font-display: "Cinzel", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5.75rem;
  --nav-link: rgba(234, 224, 213, 0.72);
  --nav-link-hover: rgba(234, 224, 213, 0.92);
  --wrap: min(1120px, calc(100% - 2.5rem));
  /* Readable body copy (~19–20px at default root) */
  --text-body: clamp(1.1rem, 1.15vw + 0.85rem, 1.25rem);
  --text-body-tight: clamp(1.05rem, 1vw + 0.8rem, 1.15rem);
  --text-label: clamp(0.7rem, 0.65vw + 0.55rem, 0.82rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--void);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(46, 64, 87, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 42% 38% at 0% 100%, rgba(11, 110, 110, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 32% 30% at 50% 55%, rgba(125, 60, 152, 0.05) 0%, transparent 60%);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 200;
  padding: 0.55rem 1.1rem;
  background: var(--gold);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid var(--border);
  background: rgba(7, 9, 10, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  flex-shrink: 0;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.05;
}

.brand__name span {
  color: var(--gold);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.75vw, 0.68rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4fb8b8;
  text-shadow: 0 0 24px rgba(11, 110, 110, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.85vw, 0.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nav-link);
  padding: 0.65rem 1rem;
  border-radius: 6px;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--nav-link-hover);
}

.nav__links a[aria-current="page"] {
  color: var(--gold);
}

.nav__cta {
  margin-left: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 0.5px solid var(--border2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.btn--primary {
  background: linear-gradient(165deg, rgba(11, 110, 110, 0.35) 0%, rgba(7, 9, 10, 0.9) 100%);
  border-color: rgba(225, 185, 68, 0.35);
  color: var(--text);
}

.btn--primary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  border-color: var(--stone);
  color: var(--text);
}

.nav__toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
}

.nav__toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* —— Main layout —— */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding-top: 2rem;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.1rem;
  opacity: 0.9;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.45rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.65rem, 2.85vw, 2.25rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.12rem, 1.4vw + 0.5rem, 1.28rem);
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.22rem, 1.5vw + 0.6rem, 1.4rem);
  color: rgba(234, 224, 213, 0.58);
  font-style: italic;
  max-width: 34em;
  margin-top: 1.1rem;
  line-height: 1.65;
}

.lead--spaced {
  margin-bottom: 2.25rem;
}

/* —— Hero —— */
.hero {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(130%, 640px);
  height: min(130%, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(225, 185, 68, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Hero motion (Animated Mark–style hex field) —— */
.hero-motion {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 0 1rem;
  animation: heroIn 1s var(--ease-out) both;
}

.hero-motion__rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(122%, 620px);
  height: min(122%, 620px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.hero-motion__grid {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.hero-motion__grid--static {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.hero-motion__static {
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.5));
}

.hero-motion__cell {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2px;
  cursor: pointer;
  transition: background 0.4s ease, filter 0.35s ease, transform 0.35s ease, color 0.2s ease;
  font-family: var(--font-mono);
  font-size: 0.42rem;
  letter-spacing: 0.04em;
  color: transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-motion__cell:hover {
  filter: brightness(1.15);
}

.hero-motion__cell--signal {
  animation: heroSignalPulse 2.8s ease-in-out infinite;
}

@keyframes heroSignalPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
}

.hero-motion__cell--flash {
  filter: brightness(1.42) saturate(1.15);
  transform: scale(1.07);
  z-index: 2;
  color: #0a0c0e;
  font-size: clamp(0.48rem, 1.5vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 235, 160, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion__cell--signal {
    animation: none;
  }
}

html.motion-reduced .hero-motion__rings {
  opacity: 0.4;
}

.hero__content {
  animation: heroIn 1s 0.12s var(--ease-out) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero__note {
  margin-top: 1.65rem;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.75vw + 0.5rem, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 224, 213, 0.45);
  line-height: 1.5;
  max-width: 36em;
}

/* —— Service —— */
.service-card {
  border-radius: 16px;
  border: 0.5px solid var(--border);
  background: linear-gradient(160deg, rgba(15, 19, 21, 0.95) 0%, rgba(7, 9, 10, 0.98) 100%);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}

.service-card__accent {
  background: linear-gradient(145deg, rgba(11, 110, 110, 0.12) 0%, rgba(46, 64, 87, 0.08) 100%);
  border-right: 0.5px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5ec4c4;
}

.service-card__body {
  padding: 2.5rem 2.25rem;
}

.service-card__lead {
  font-size: clamp(1.18rem, 1.35vw + 0.5rem, 1.32rem);
  color: rgba(234, 224, 213, 0.92);
  line-height: 1.55;
  font-style: normal;
}

.service-card__body p + p {
  margin-top: 1.1rem;
}

.service-card__body p {
  font-size: var(--text-body-tight);
  line-height: 1.75;
  color: rgba(234, 224, 213, 0.82);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 0.5px solid var(--border);
}

.stat {
  flex: 1;
  min-width: 120px;
}

.stat__val {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.7vw + 0.5rem, 0.76rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 224, 213, 0.48);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* —— Steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}

.step {
  background: var(--bg2);
  padding: 2rem 1.5rem 2.25rem;
  position: relative;
}

.step__num {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.75vw + 0.5rem, 0.8rem);
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.95rem;
  line-height: 1.35;
}

.step p {
  font-size: var(--text-body-tight);
  line-height: 1.7;
  color: rgba(234, 224, 213, 0.78);
  margin-top: 0.65rem;
}

.step::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  right: 0;
  width: 0.5px;
  height: calc(100% - 3rem);
  background: var(--border);
}

.step:last-child::after {
  display: none;
}

/* —— Pillars —— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  border-radius: 12px;
  border: 0.5px solid var(--border);
  padding: 1.75rem 1.5rem;
  background: rgba(12, 15, 16, 0.6);
  transition: border-color 0.25s, background 0.25s;
}

.pillar:hover {
  border-color: rgba(225, 185, 68, 0.2);
  background: rgba(15, 19, 21, 0.85);
}

.pillar__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(11, 110, 110, 0.12);
  border: 0.5px solid rgba(11, 110, 110, 0.25);
  color: var(--teal);
}

.pillar p {
  font-size: var(--text-body-tight);
  line-height: 1.68;
  color: rgba(234, 224, 213, 0.76);
  margin-top: 0.55rem;
}

/* —— CTA band —— */
.cta-band {
  border-radius: 16px;
  border: 0.5px solid var(--border);
  background: linear-gradient(135deg, rgba(46, 64, 87, 0.15) 0%, rgba(7, 9, 10, 0.9) 55%, rgba(11, 110, 110, 0.08) 100%);
  padding: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band__text h2 {
  margin-bottom: 0.5rem;
}

.cta-band__text p {
  font-size: clamp(1.12rem, 1.25vw + 0.65rem, 1.28rem);
  line-height: 1.65;
  color: rgba(234, 224, 213, 0.58);
  font-style: italic;
  max-width: 28em;
}

.cta-band .btn {
  overflow-wrap: anywhere;
  text-align: center;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 0.5px solid var(--border);
  padding: 2.5rem 0 2.75rem;
  margin-top: 2rem;
}

.site-footer__inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-footer__wordmark span {
  color: var(--gold);
}

.site-footer__meta {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.7vw + 0.5rem, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 224, 213, 0.42);
}

/* —— Mobile —— */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual {
    order: -1;
    min-height: 0;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__note {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card__accent {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step::after {
    display: none;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__panel {
    position: fixed;
    z-index: 99;
    inset: var(--header-h) 0 0 0;
    background: rgba(7, 9, 10, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s;
  }

  .nav__panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__links a {
    padding: 1rem;
    border: 0.5px solid var(--border);
    border-radius: 8px;
  }

  .nav__cta {
    margin-left: 0;
  }

  .nav__cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --wrap: calc(100% - 1.5rem);
  }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn {
    width: 100%;
  }
}
