/* =========================================================
   Rift Media - Free Shoots
   Aesthetic: "Cinematic Operator" (matches riftmedia.cc)
   Type: Cabinet Grotesk (display) + Switzer (body)
   Spacing: 8-point grid. Type scale: modular 1.250.
   ========================================================= */

:root {
  /* Color */
  --ink:          #0A0A0A;
  --ink-2:        #111111;
  --ink-3:        #161616;
  --line:         #1F1F1F;
  --line-strong:  #2E2E2E;
  --paper:        #F5F1EA;
  --paper-dim:    #BDB6AB;
  --paper-mute:   #8A857D;
  --signal:       #00E5FF;
  --signal-2:     #5BF1FF;
  --danger:       #FF6B6B;

  /* Spacing - 8pt grid */
  --s-2xs: 4px;
  --s-xs:  8px;
  --s-sm:  12px;
  --s-md:  16px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 96px;

  /* Type scale (1.250) */
  --t-display-xl: 72px;
  --t-display-md: 44px;
  --t-h4:         24px;
  --t-h5:         20px;
  --t-body-lg:    18px;
  --t-body:       16px;
  --t-body-sm:    14px;

  /* Motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Cabinet Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-sans:    "Switzer", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 229, 255, 0.28); color: var(--paper); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: var(--s-md);
  top: -100px;
  z-index: 999;
  background: var(--signal);
  color: var(--ink);
  padding: var(--s-sm) var(--s-md);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: top 200ms var(--e-out);
}
.skip:focus { top: var(--s-md); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--s-lg);
}

section { padding-block: var(--s-4xl); }
@media (max-width: 767px) { section { padding-block: var(--s-3xl); } }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 0; }

h1.display { font-size: clamp(38px, 8vw, var(--t-display-xl)); }
h2.display { font-size: clamp(29px, 5.4vw, var(--t-display-md)); line-height: 1.1; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h4); letter-spacing: -0.015em; line-height: 1.25; margin: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 var(--s-lg);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  flex-wrap: wrap;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.lead { font-size: var(--t-body-lg); line-height: 1.6; color: var(--paper-dim); }
.fine { font-size: var(--t-body-sm); color: var(--paper-mute); line-height: 1.55; }
.section-intro { margin-top: var(--s-md); max-width: 60ch; }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-md);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-body-lg);
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
}
.wordmark span { color: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-xs);
  min-height: 48px;
  padding: var(--s-sm) var(--s-lg);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 200ms var(--e-out), color 200ms var(--e-out),
              border-color 200ms var(--e-out), transform 100ms var(--e-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-2); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--paper-dim); background: var(--ink-2); }
.btn-sm { min-height: 40px; padding: var(--s-xs) var(--s-md); font-size: var(--t-body-sm); }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-xl); }
@media (max-width: 520px) {
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}

/* ---------- Hero ---------- */
:root { --strip-h: 280px; }
@media (min-width: 640px)  { :root { --strip-h: 360px; } }
@media (min-width: 1024px) { :root { --strip-h: 440px; } }

.hero { padding-block: 0 var(--s-3xl); position: relative; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 12% 100%, rgba(0, 229, 255, 0.06), transparent 70%);
  pointer-events: none;
}
/* pulled up so the copy sits over the bottom of the frames */
.hero-copy { position: relative; z-index: 2; margin-top: -48px; }
@media (min-width: 768px) { .hero-copy { margin-top: -72px; } }

.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: var(--s-lg); max-width: 58ch; }

.trust-line {
  margin-top: var(--s-lg);
  display: flex; flex-wrap: wrap; gap: var(--s-xs) var(--s-md);
  font-size: var(--t-body-sm);
  color: var(--paper-dim);
  list-style: none; padding: 0;
}
.trust-line li { display: flex; align-items: center; gap: var(--s-xs); }
.trust-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); flex: none; }

/* ---------- Photo strip ----------
   Fixed height, natural widths. The mixed ratios (3:2, 4:5, 1:1) become the
   rhythm of the strip instead of a cropping problem.

   Driven by transform, not scrollLeft. Every browser rounds scrollLeft to whole
   pixels (setting 10.5 reads back 11, and += 0.35 never moves at all), so a
   scroll-driven drift can only ever step a pixel at a time. Transform is
   subpixel and composited, so it glides. Dragging is handled in JS for the
   same reason. */
.strip-wrap { position: relative; }

.strip {
  overflow: hidden;
  /* browser keeps vertical panning, we take horizontal */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.strip.dragging { cursor: grabbing; }
.strip:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }

.track {
  display: flex;
  gap: var(--s-xs);
  width: max-content;
  padding-inline: var(--s-xs);
  /* JS drives this every frame. Subpixel and composited, so it glides. */
  transform: translate3d(0, 0, 0);
}

.slide {
  flex: none;
  margin: 0;
  height: var(--strip-h);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-3);
}
.slide img {
  height: 100%;
  width: auto;
  display: block;
  /* the strip handles the gesture, so the image must not start a native drag */
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Height is fixed and the ratio is declared, so each frame's width is known
   before its image arrives. Without these the strip reflows as photos load. */
.s-wide   { aspect-ratio: 3 / 2; }
.s-tall   { aspect-ratio: 4 / 5; }
.s-square { aspect-ratio: 1 / 1; }

/* The gradient sits outside the scroller so it stays put while frames pass under it. */
.strip-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.28) 38%,
    rgba(10, 10, 10, 0.82) 72%,
    rgba(10, 10, 10, 0.98) 92%,
    var(--ink) 100%
  );
}

/* ---------- The deal (compact row) ---------- */
.deal-grid { display: grid; gap: var(--s-lg); margin-top: var(--s-2xl); }
@media (min-width: 768px) { .deal-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); } }
.deal { border-top: 2px solid var(--line-strong); padding-top: var(--s-md); }
.deal:first-child { border-top-color: var(--signal); }
.deal .num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-mute); display: block; margin-bottom: var(--s-xs);
}
.deal:first-child .num { color: var(--signal); }
.deal p { margin: 0; font-size: var(--t-body); color: var(--paper-dim); line-height: 1.55; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s-lg); margin-top: var(--s-2xl); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-md); } }
.step { border-top: 2px solid var(--line-strong); padding-top: var(--s-md); }
.step:first-child { border-top-color: var(--signal); }
.step .num { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--paper-mute); display: block; margin-bottom: var(--s-xs); }
.step h3 { font-size: var(--t-h5); margin-bottom: var(--s-2xs); }
.step p { margin: 0; font-size: var(--t-body-sm); color: var(--paper-dim); }

/* ---------- Form ---------- */
.form-section { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-shell { max-width: 640px; }
form { margin-top: var(--s-xl); }

.field { margin-bottom: var(--s-lg); }
.field label { display: block; font-size: var(--t-body-sm); font-weight: 600; color: var(--paper); margin-bottom: var(--s-xs); }
.field .opt { color: var(--paper-mute); font-weight: 400; }
.field .hint { display: block; font-size: 13px; color: var(--paper-mute); margin-top: var(--s-2xs); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 48px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  padding: var(--s-sm) var(--s-md);
  transition: border-color 200ms var(--e-out), background 200ms var(--e-out);
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--paper-mute); }
input:focus, select:focus, textarea:focus { border-color: var(--signal); background: var(--ink-3); }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238A857D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-md) center;
  padding-right: var(--s-2xl);
}

.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); }
.err { display: none; font-size: 13px; color: var(--danger); margin-top: var(--s-2xs); }
.field.error .err { display: block; }

.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Footer ---------- */
footer { padding-block: var(--s-3xl) var(--s-4xl); }
.foot-grid { display: grid; gap: var(--s-xl); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid h4 { font-family: var(--font-display); font-size: var(--t-body); font-weight: 700; margin: 0 0 var(--s-sm); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-xs); }
.foot-links a { color: var(--paper-dim); text-decoration: none; font-size: var(--t-body-sm); display: inline-block; min-height: 32px; line-height: 32px; }
.foot-links a:hover { color: var(--signal); }
.colophon { margin-top: var(--s-2xl); padding-top: var(--s-lg); border-top: 1px solid var(--line); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: var(--s-sm) var(--s-md) calc(var(--s-sm) + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 300ms var(--e-out);
}
.sticky-cta.show { transform: translateY(0); }
@media (min-width: 768px) { .sticky-cta { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 767px) { body.has-sticky { padding-bottom: 80px; } }

/* ---------- Reveal on scroll ----------
   Scoped to .js so that with JavaScript disabled nothing is ever hidden.
   The .js class is set by an inline script in <head>. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--e-out), transform 600ms var(--e-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Centered utility pages (thanks / 404) ---------- */
.center-page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--s-xl) var(--s-lg);
}
.center-page .inner { max-width: 52ch; }
.center-page h1.display { max-width: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .sticky-cta { transition: none; }
}
