/* Electron Electric — warm paper, deep navy ink, amber call. */
:root {
  --field: #f5eee1;
  --ink: #17222e;
  --call: #b3400f;
  --call-ink: #f5eee1;
  --ghost: #17222e;
  --accent: #b3400f;
  --kicker-light: #f0be8c;
  --surface-dark: #1e3a5f;
  --deep: #17222e;
  --line: #d9cdb8;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo-alt: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.7s;
  --dur-nav: 0.8s;
  --dur-hero: 1.5s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--field);
  padding: 0.5rem 1rem;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9em;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out-circ), color var(--dur-fast) var(--ease-out-circ), transform var(--dur-fast) var(--ease-out-circ);
}
.btn:hover {
  transform: translate3d(0, -2px, 0);
}
.btn-fill {
  background: var(--call);
  color: var(--call-ink);
}
.btn-fill:hover {
  background: #93340c;
}
.btn-ghost {
  border: 1px solid currentColor;
  color: var(--ghost);
}
.call-nowrap {
  white-space: nowrap;
}

.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out-expo-alt);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 4vw;
  background: var(--field);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.site-header nav {
  display: flex;
  gap: 1.4rem;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-header .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
}

/* Sections */
main section {
  padding: 5rem 6vw;
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity var(--dur-hero) var(--ease-out-expo);
}
.hero.is-in .hero-img,
.hero-img.is-in {
  opacity: 1;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 6rem 6vw;
  padding: 2.2rem 2.2rem 2rem;
  background: rgba(23, 34, 46, 0.86);
  color: var(--field);
  border-radius: 6px;
}
.hero-copy .kicker {
  color: var(--kicker-light);
}
.hero-copy h1 {
  color: var(--field);
}
.hero-copy p {
  color: var(--field);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 0;
}
.hero-copy .btn-ghost {
  color: var(--field);
}

/* Services river */
.river {
  display: grid;
  gap: 3.5rem;
  max-width: 72rem;
}
.river-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.river-row.flip img {
  order: 2;
}
.river-row img {
  border-radius: 6px;
  border: 1px solid var(--line);
  width: 100%;
}
.river-row h3 {
  margin-bottom: 0.5em;
}
.river-row p {
  margin: 0;
  max-width: 34ch;
}

/* About */
#about {
  background: var(--field);
  border-top: 1px solid var(--line);
}
#about .section-head p:last-child {
  margin-bottom: 0;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}
.facts li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.facts svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--accent);
}

/* How it works */
#how {
  background: var(--deep);
  color: var(--field);
}
#how .kicker {
  color: var(--kicker-light);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 72rem;
}
.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-no {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--kicker-light);
  color: var(--kicker-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.steps h3 {
  color: var(--field);
  margin-bottom: 0.4em;
}
.steps p {
  margin: 0;
  color: var(--field);
}

.reviews,
.faq {
  padding: 5rem 6vw;
}

.reviews .section-head,
.faq .section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.review-carousel .review-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

.review-slide blockquote {
  margin: 0;
  max-width: 40rem;
}

.review-slide p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.review-slide footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
}

.review-slide cite {
  font-style: normal;
  font-weight: 600;
}

.review-nav {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.review-prev,
.review-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-circ);
}

.review-prev:hover,
.review-next:hover {
  transform: translate3d(0, -2px, 0);
}

.review-dots {
  display: flex;
  gap: 0.45rem;
}

.review-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  cursor: pointer;
}

.review-dots button[aria-current="true"] {
  opacity: 1;
}

.review-carousel.is-carousel .review-viewport {
  overflow: hidden;
}

.review-carousel.is-carousel .review-track {
  display: flex;
  gap: 0;
  transition: transform var(--dur-enter) var(--ease-out-expo);
}

.review-carousel.is-carousel .review-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.review-carousel.is-carousel .review-nav {
  display: flex;
}

.faq-list {
  max-width: 40rem;
}

.faq-list details {
  border-top: 1px solid currentColor;
}

.faq-list details:last-child {
  border-bottom: 1px solid currentColor;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0 0 1.15rem;
  max-width: 42ch;
}

/* Area */
#area {
  border-top: 1px solid var(--line);
}

/* Contact */
#contact {
  background: var(--surface-dark);
  color: var(--field);
}
#contact .kicker {
  color: var(--kicker-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 72rem;
  margin-bottom: 2.5rem;
}
.contact-grid address {
  font-style: normal;
  line-height: 2;
}
.contact-grid address a {
  color: var(--field);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
#contact .btn-ghost {
  color: var(--field);
}
.contact-form {
  display: grid;
  gap: 0.5rem;
}
.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.contact-form button {
  border: 0;
  cursor: pointer;
  justify-self: start;
  margin-top: 0.5rem;
}
.form-note {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0.5rem 0 0;
}
.map-wrap {
  max-width: 72rem;
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border-radius: 6px;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--deep);
  color: var(--field);
  padding: 2.5rem 6vw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--field);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal="cascade"] {
  opacity: 1;
  transform: none;
  transition: none;
}
[data-reveal="cascade"] > * {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal="cascade"].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 390: image occupies the first screen; type overlaps only the bottom third
   so a face in the upper two-thirds stays visible. */
@media (max-width: 640px) {
  .site-header {
    gap: 0.9rem;
    padding: 0.7rem 4vw;
  }
  .brand {
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .site-header nav {
    gap: 0.9rem;
  }
  .site-header nav a {
    font-size: 0.85rem;
  }
  .site-header .btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100dvh;
  }
  .hero-img {
    object-position: 68% 12%;
  }
  .hero-copy {
    width: auto;
    margin: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding: 1.15rem 1.1rem 1.05rem;
  }
  .hero-copy h1 {
    font-size: 1.55rem;
  }
  .river-row,
  .river-row.flip {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .river-row.flip img {
    order: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  main section {
    padding: 3.5rem 5vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="cascade"] > *,
  .hero-img {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  [data-reveal="cascade"] {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .btn:hover,
  .review-prev:hover,
  .review-next:hover {
    transform: none;
  }

  .review-carousel.is-carousel .review-track {
    transition: none;
  }
}
