/* SP&P Group Inc. — sppgroupinc.com
   No build step. No third-party requests. Fonts are self-hosted (SIL OFL). */

@font-face {
  font-family: "Averia Libre";
  src: url("/assets/fonts/averia-libre-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/assets/fonts/fragment-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0d10;
  --paper: #ffffff;
  --sky: #93b5dd;        /* the working blue: panels and bands */
  --sky-deep: #1f4a7a;   /* hero wash, links on white */
  --navy: #102a43;       /* SP&P brand navy: footer */
  --mist: #e9e8ed;       /* quiet alternate ground */
  --gold: #d2a75b;       /* SP&P brand gold: focus ring and one rule only */
  --rule: rgba(11, 13, 16, 0.16);

  --display: "Averia Libre", "Trebuchet MS", Georgia, serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 2vw, 34px);
  --section: clamp(64px, 9vw, 150px);
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.95rem + 0.42vw, 1.375rem);
  line-height: 1.32;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 0.12em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 96px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
  border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.062em;
  line-height: 0.9;
  text-wrap: balance;
}
.display--xl { font-size: clamp(3.1rem, 9.4vw, 10.5rem); }
.display--lg { font-size: clamp(2.6rem, 7vw, 7.75rem); line-height: 0.97; }
.display--md { font-size: clamp(2.1rem, 4.6vw, 4.75rem); line-height: 0.95; letter-spacing: -0.055em; }

.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.dot {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.dot::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
}

.measure { max-width: 34em; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  gap: clamp(14px, 2vw, 34px);
}
.site-nav a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 2px;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.button:hover { background: var(--paper); color: var(--ink); }
.button:active { transform: scale(0.97); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}

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

/* ---------- hero ---------- */

.hero {
  padding: clamp(10px, 1.1vw, 20px);
}
.hero__frame {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: min(86svh, 980px);
  padding: clamp(22px, 2.6vw, 44px);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--paper);
  background: var(--sky-deep);
}
.hero__frame picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
/* Blue wash so the white headline holds 4.5:1 over any part of the photo */
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 42, 67, 0.50) 0%, rgba(31, 74, 122, 0.46) 45%, rgba(16, 42, 67, 0.74) 100%);
}
/* The inset hairline the frame is named for */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: clamp(8px, 0.8vw, 14px);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.3rem);
  line-height: 1.15;
}
.hero__top p:first-child { max-width: 11.5em; }
.hero__bottom {
  display: grid;
  gap: clamp(22px, 2.4vw, 40px);
}
.hero__lede { max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.hero .button:hover { background: transparent; color: var(--paper); }
.hero .button--ghost { background: transparent; color: var(--paper); }
.hero .button--ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- sections ---------- */

.section {
  padding: var(--section) var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.section__head {
  display: grid;
  gap: clamp(18px, 2vw, 30px);
  margin-bottom: clamp(36px, 5vw, 84px);
}

/* previews */
.previews__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 34px);
}
.preview video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: var(--radius);
}
.preview figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
  border-top: 0;
}
.preview__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.previews__note {
  margin-top: clamp(28px, 3vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  max-width: 44em;
}
@media (max-width: 760px) {
  .previews__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* how it works: blue panel + photo */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.split__panel {
  background: var(--sky);
  padding: var(--section) var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  display: grid;
  align-content: start;
  gap: clamp(28px, 3.4vw, 56px);
}
.split__photo {
  position: relative;
  min-height: 60vw;
}
.split__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps { counter-reset: step; display: grid; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 6px 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(11, 13, 16, 0.3);
}
.steps li:last-child { border-bottom: 1px solid rgba(11, 13, 16, 0.3); }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 1.9em;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.steps h3 {
  font-family: var(--body);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
}
.steps p { grid-column: 2; max-width: 30em; }
@media (min-width: 861px) {
  .split__photo { min-height: 0; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* what you get */
.spec {
  border-top: 1px solid var(--ink);
}
.spec > div {
  display: grid;
  grid-template-columns: minmax(8em, 1fr) minmax(0, 3fr);
  gap: 8px 24px;
  padding: clamp(16px, 1.7vw, 26px) 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.35em;
}
.spec dd { max-width: 34em; }
@media (max-width: 620px) {
  .spec > div { grid-template-columns: 1fr; }
}

/* questions */
.questions { background: var(--mist); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 1.9vw, 28px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
  transform-origin: center;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.faq p { max-width: 36em; padding: 0 0 clamp(20px, 2vw, 30px); }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* contact */
.contact { background: var(--sky); }
.contact__lede { margin-top: clamp(22px, 2.4vw, 40px); }
.contact__mail {
  display: inline-block;
  margin-top: clamp(26px, 3vw, 48px);
  font-family: var(--display);
  font-size: clamp(1.55rem, 4.4vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}
.contact__mail:hover { text-decoration-thickness: 0.1em; }

/* footer */
.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(40px, 5vw, 80px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  font-size: 1rem;
  line-height: 1.4;
}
.site-footer h2 {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.site-footer address { font-style: normal; }
.site-footer li + li { margin-top: 6px; }
.site-footer__mark {
  margin-top: clamp(36px, 6vw, 100px);
  font-family: var(--display);
  font-size: clamp(2.9rem, 13.2vw, 15.5rem);
  letter-spacing: -0.07em;
  line-height: 0.86;
  white-space: nowrap;
}
.site-footer__legal {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 760px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* plain pages (privacy, terms, 404) */
.page {
  padding: clamp(48px, 7vw, 120px) var(--gutter) var(--section);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.page__body { max-width: 40em; margin-top: clamp(28px, 4vw, 64px); }
.page__body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 1.7em 0 0.45em;
}
.page__body p + p { margin-top: 0.9em; }
.page__body a { color: var(--sky-deep); }
