/* Everline site styles — edit colors in :root */

:root {
  --bg: #0c0b0a;
  --surface: #161412;
  --elevated: #1e1b18;
  --fg: #f2eee8;
  --muted: #9b948a;
  --subtle: #b7b0a6;
  --accent: #e8e2d6;
  --accent-fg: #0c0b0a;
  --border: #2c2823;
  --ring: #cfc6b8;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .wrap { width: min(100% - 4rem, var(--max)); }
}

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  margin: 0.75rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lede {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity .15s, background .15s, border-color .15s;
}
.btn:hover { opacity: 0.92; }
.btn-solid { background: var(--accent); color: var(--accent-fg); }
.btn-ghost { border-color: color-mix(in srgb, var(--fg) 25%, transparent); color: var(--fg); }
.btn-text { height: auto; padding: 0.25rem; color: color-mix(in srgb, var(--fg) 90%, transparent); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 4.25rem;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
}
.brand-mark { width: 0.65rem; height: 0.9rem; }
.brand-word {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color .15s;
}
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop .btn { height: 2.75rem; padding: 0 1.25rem; }
.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--fg);
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 4.25rem 0 0;
  z-index: 49;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  padding: 1.5rem;
}
.nav-mobile.is-open { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a {
  font-size: 1.05rem;
  color: var(--fg);
  padding: 0.5rem 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 45%, color-mix(in srgb, var(--bg) 25%, transparent) 100%);
}
.hero-copy {
  position: relative;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 {
  margin: 1rem 0 0;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 0.95;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.band-flush { border-block: 0; }

/* Preview */
.preview-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .preview-grid { grid-template-columns: 3fr 9fr; }
}
.preview-thumbs {
  display: flex;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .preview-thumbs { flex-direction: column; }
}
.thumb {
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: left;
  color: var(--fg);
  padding: 0;
}
.thumb.is-active { border-color: var(--ring); background: var(--elevated); }
.thumb img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.thumb span { display: block; padding: 0.5rem 0.75rem; font-size: 0.9rem; }

.compare {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg);
  user-select: none;
  touch-action: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-after {
  overflow: hidden;
}
.compare-label {
  position: absolute;
  bottom: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-label.before { left: 0.75rem; }
.compare-label.after { right: 0.75rem; }
.compare-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent);
  z-index: 3;
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
}

/* System cards */
.split-12 {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .split-12 { grid-template-columns: 5fr 7fr; gap: 4rem; }
}
.card-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 1.35rem 1.4rem;
}
.card svg { color: var(--accent); }
.card h3 { margin: 1rem 0 0; font-size: 0.95rem; }
.card p { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.hardware-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hardware-row { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.hardware-row img { aspect-ratio: 3/2; width: 100%; object-fit: cover; border-radius: 10px; }
.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stats dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: 1.5rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.ironpeak-logo {
  height: 3rem;
  width: auto;
  background: var(--fg);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  object-fit: contain;
}
.gallery {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: 2fr 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
}
.gallery figcaption { margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }
.gallery figure:first-child { grid-column: span 1; }
@media (min-width: 640px) {
  .gallery figure:first-child { grid-column: span 2; }
}

/* Scenes */
.scenes-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .scenes-grid { grid-template-columns: 4fr 8fr; }
}
.scene-list { display: flex; flex-direction: column; gap: 0.25rem; }
.scene-btn {
  text-align: left;
  border-radius: 6px;
  padding: 1rem;
  color: var(--muted);
}
.scene-btn.is-active { background: var(--elevated); color: var(--fg); }
.scene-btn strong { display: block; font-size: 0.95rem; font-weight: 600; }
.scene-btn span {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.scene-btn.is-active span { display: block; }
.scene-photo {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.banner {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  display: grid;
  place-items: center;
  text-align: center;
}
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-shade { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.banner .wrap { position: relative; padding: 6rem 0; }
.banner h2 { max-width: 18ch; margin-inline: auto; }
.banner p {
  margin: 1.15rem auto 0;
  max-width: 32rem;
  color: color-mix(in srgb, var(--fg) 80%, transparent);
}

/* Process */
.process-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: 4fr 8fr; }
}
.process-photo {
  margin-top: 2rem;
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
  display: grid;
  gap: 1px;
}
.steps li {
  background: var(--surface);
  padding: 1.7rem 1.5rem;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .steps li { grid-template-columns: 4rem 1fr; gap: 1.5rem; }
}
.steps .n {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--muted);
}
.steps h3 { margin: 0; font-size: 1rem; }
.steps p { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* FAQ */
.faq-wrap { width: min(100% - 2.5rem, 48rem); margin-inline: auto; }
.faq { margin-top: 2.5rem; border-block: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
}
.faq-q svg {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s;
}
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none;
  margin: 0;
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}
.faq-item.is-open .faq-a { display: block; }

/* Quote */
.quote-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .quote-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.quote-photo {
  margin-top: 2rem;
  display: none;
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
@media (min-width: 1024px) { .quote-photo { display: block; } }
.quote-form { display: grid; gap: 1rem; }
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 0.4rem; font-size: 0.9rem; }
label span { font-weight: 500; }
.field {
  height: 2.75rem;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0 0.9rem;
  outline: none;
}
textarea.field { height: auto; min-height: 6rem; padding: 0.65rem 0.9rem; resize: vertical; }
.field:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
}
.hp { display: none !important; }
.form-note { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.form-status {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-status.ok { display: block; background: var(--elevated); border: 1px solid var(--border); }
.form-status.err { display: block; color: #f3c6c0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}
.site-footer .wrap { display: grid; gap: 0.85rem; }
.site-footer p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.site-footer .contact { color: var(--fg); }
.site-footer .contact span { color: var(--subtle); }
.sister {
  margin-top: 1.25rem;
  width: min(100%, 42rem);
  height: auto;
  border-radius: 10px;
}

.optional { font-style: normal; font-weight: 400; color: var(--muted); }
.field.file {
  height: auto;
  padding: 0.55rem 0.7rem;
  color: var(--muted);
}
.field.file::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--elevated);
  color: var(--fg);
  padding: 0.35rem 0.8rem;
  font: inherit;
  cursor: pointer;
}
