/* ============================================================
   Shrieve Industries — cultural heritage imaging
   Museum-gallery aesthetic: warm near-black, parchment, gold,
   spectral-band motif. Fraunces (display) + Inter (body).
   ============================================================ */

:root {
  --ink: #14110e;          /* warm near-black */
  --ink-2: #191510;        /* raised surface */
  --ink-3: #1f1a14;
  --parchment: #efe7d8;    /* primary text */
  --parchment-dim: #cfc5b2;
  --muted: #9a9080;
  --line: rgba(239, 231, 216, 0.12);
  --line-strong: rgba(239, 231, 216, 0.22);
  --gold: #c9a24b;
  --gold-bright: #d9b45c;
  --gold-ink: #17130c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(201, 162, 75, 0.35); }

a { color: inherit; }

/* ---------- film grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 116px 0; position: relative; }
.section-alt {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--parchment);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-head { margin-bottom: 58px; max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 560px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--parchment);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20, 17, 14, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--parchment);
  white-space: nowrap;
}
.brand-mark { width: 27px; height: 27px; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--parchment-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--parchment); }
.nav-links a.btn { color: var(--gold-ink); font-weight: 600; }
.nav-links a.btn:hover { color: var(--gold-ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 150px;
  padding-bottom: 44px;
  background:
    radial-gradient(58% 42% at 50% -6%, rgba(201, 162, 75, 0.13), transparent 70%),
    radial-gradient(40% 30% at 82% 22%, rgba(91, 111, 224, 0.06), transparent 70%),
    var(--ink);
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.lede {
  margin-top: 30px;
  max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--parchment-dim);
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* spectral band divider */
.spectral {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}
.spectral-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding: 0 2px;
  margin-bottom: 8px;
}
.spectral-bar {
  position: relative;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(90deg,
    #3a1e6e 0%,
    #5b3fb8 11%,
    #3d5fd8 24%,
    #2e8fe0 37%,
    #2fa86a 50%,
    #8fbf3f 58%,
    #d8b23a 67%,
    #d87b2e 77%,
    #c43a2e 87%,
    #7e2420 94%,
    #2a1214 100%);
  box-shadow: 0 0 22px rgba(201, 162, 75, 0.18);
}
.spectral-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 220, 0.5), transparent);
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(560%); }
  100% { transform: translateX(560%); }
}
.spectral-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* ---------- kairo ---------- */
.kairo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 84px;
}
.kairo-copy p { color: var(--parchment-dim); margin-bottom: 22px; }
.kairo-copy a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(217, 180, 92, 0.4); }
.kairo-copy a:hover { border-bottom-color: var(--gold-bright); }

.checklist {
  list-style: none;
  margin: 26px 0 34px;
  display: grid;
  gap: 13px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--parchment-dim);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 162, 75, 0.55);
}

.kairo-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.kairo-note {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* spectral cube visual */
.cube {
  position: relative;
  height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.band {
  position: absolute;
  top: 24px;
  width: 232px;
  height: 296px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(239, 231, 216, 0.028) 0 1px, transparent 1px 5px),
    linear-gradient(160deg,
      color-mix(in srgb, var(--c) 30%, transparent) 0%,
      color-mix(in srgb, var(--c) 7%, transparent) 68%,
      transparent 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(-7deg);
  transform-origin: bottom left;
  transition: transform 0.4s ease;
}
.band span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--parchment);
  background: rgba(20, 17, 14, 0.72);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.band.b1 { --c: #4c6fe0; left: 0; }
.band.b2 { --c: #2e9be0; left: 34px; top: 38px; }
.band.b3 { --c: #37a25a; left: 68px; top: 52px; }
.band.b4 { --c: #d8b23a; left: 102px; top: 66px; }
.band.b5 { --c: #d87b2e; left: 136px; top: 80px; }
.band.b6 { --c: #b33a2e; left: 170px; top: 94px; }
.band.b7 { --c: #6e2b33; left: 204px; top: 108px; opacity: 0.85; }
.cube:hover .band { transform: rotate(-7deg) translateX(0); }
.cube-caption {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  font-family: var(--serif);
  color: var(--muted);
}

/* ---------- feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: rgba(239, 231, 216, 0.022);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 26px 24px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.card:hover {
  border-color: rgba(201, 162, 75, 0.5);
  background: rgba(201, 162, 75, 0.045);
  transform: translateY(-3px);
}
.card-idx {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- approach ---------- */
.approach { display: grid; gap: 0; border-top: 1px solid var(--line); }
.approach-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.approach-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: left;
}
.approach-row p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 780px;
  margin-top: 8px;
}

/* ---------- what's next ---------- */
.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.next-grid h2 { max-width: 420px; }
.next-grid p {
  color: var(--parchment-dim);
  margin-bottom: 18px;
}
.next-grid strong { color: var(--parchment); font-weight: 600; }
.next-tag {
  font-size: 0.78rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-bottom: 0 !important;
}

/* ---------- contact ---------- */
.contact .section-head { margin-bottom: 40px; }
.contact-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 44px;
}
.contact .section-head.center { margin-bottom: 0; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  background: var(--ink);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--parchment-dim);
}
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-links {
  display: flex;
  gap: 26px;
}
.footer-links a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-fine {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .kairo-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cube { max-width: 480px; margin: 0 auto; width: 100%; }
  .next-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .hero { padding-top: 128px; }
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; }
  .approach-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 30px 0;
  }
  .cube { height: 360px; }
  .band { width: 168px; height: 228px; }
  .band.b2 { left: 26px; top: 34px; }
  .band.b3 { left: 52px; top: 44px; }
  .band.b4 { left: 78px; top: 54px; }
  .band.b5 { left: 104px; top: 64px; }
  .band.b6 { left: 130px; top: 74px; }
  .band.b7 { left: 156px; top: 84px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spectral-sheen { animation: none; display: none; }
  * { animation-duration: 0.001s !important; }
}
