/* Prairie Fire LLC — site styles (Brand Kit v2, dark only) */

:root {
  --charcoal:      #2D3336;
  --charcoal-deep: #262B2E;
  --hairline:      #3E464A;
  --field-line:    #6B7378;
  --placeholder:   #353C40;
  --sand:          #B8AFA4;
  --bone:          #ECE7E0;
  --paper:         #F6F3EE;
  --ember:         #E87D35;
  --hint:          #8A847C;

  --sans: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --pad-x:     clamp(20px, 5vw, 64px);
  --section-y: clamp(48px, 7vw, 96px);
  --col-gap:   clamp(32px, 6vw, 96px);
}

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

html {
  background: var(--charcoal);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

::selection { background: var(--ember); color: var(--charcoal); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ember);
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ember { color: var(--ember); }

/* ── Lockup: color mark + live-text wordmark ─────────────────── */

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.lockup-mark { height: 50px; width: auto; flex: none; }
.wordmark {
  font: 600 28px/1 var(--sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--bone);
}
.wordmark .fire { color: var(--ember); }
/* 0.14em of the wordmark, expressed in the smaller llc size (0.14 / 0.44) */
.wordmark .llc  { color: var(--sand); font-size: 0.44em; margin-left: 0.32em; letter-spacing: 0.02em; }

/* ── Header ──────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 16px var(--pad-x);
  background: rgba(45, 51, 54, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.page-home .site-header .lockup { display: none; }
.page-home .site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a,
.mono-link {
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.mono-link:hover { color: var(--ember); }

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--hairline);
  font: 400 12px/1.5 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--bone); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--ember); }

/* ── Shared type and components ──────────────────────────────── */

.section { padding: var(--section-y) var(--pad-x); }
.section--deep { background: var(--charcoal-deep); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ember);
  flex: none;
}

.h1 {
  font: 600 clamp(40px, 5.4vw, 80px)/1.02 var(--sans);
  letter-spacing: -0.03em;
  color: var(--paper);
  text-wrap: balance;
}
.h2 {
  font: 600 clamp(28px, 3.4vw, 44px)/1.1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
.h2--xl {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--sand);
  text-wrap: pretty;
}
.body { font-size: 17px; line-height: 1.65; color: var(--sand); text-wrap: pretty; }

.text-link {
  color: var(--ember);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.text-link:hover { color: var(--paper); }
/* A small brand mark ahead of a linked name (min 24px tall per the Pronghorn kit) */
.inline-mark { white-space: nowrap; }
.inline-mark img {
  display: inline-block;
  height: 24px;
  width: auto;
  margin-right: 0.3em;
  vertical-align: -0.4em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border: 0;
  border-radius: 2px;
  background: var(--ember);
  color: var(--charcoal);
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--paper); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--submit { padding: 16px 30px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--col-gap);
}

.caption {
  margin-top: 10px;
  font: 400 12px/1.5 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--placeholder);
}
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

/* ── Forms ───────────────────────────────────────────────────── */

.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field label,
.form-label {
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1.5px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: 400 18px/1.5 var(--sans);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--ember); }
.field ::placeholder { color: var(--hint); opacity: 1; }

.form-foot { display: grid; gap: 14px; justify-items: start; }
.form-error { font-size: 15px; color: var(--ember); }
.form-error:empty { display: none; }

.segmented {
  display: inline-flex;
  margin: 12px 0 0;
  padding: 0;
  border: 1.5px solid var(--field-line);
}
.segmented label {
  position: relative;
  padding: 10px 26px;
  font: 600 16px/1.2 var(--sans);
  color: var(--bone);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--ember); color: var(--charcoal); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--ember); outline-offset: 2px; }

.sent {
  padding: 36px;
  border: 1.5px solid var(--hairline);
}
.sent p { font-size: 20px; line-height: 1.5; color: var(--paper); }
.sent .body { font-size: 17px; color: var(--sand); }
.sent-bloom { height: 72px; width: auto; margin-bottom: 20px; }
.sent .text-link { display: inline-block; margin-top: 16px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }

[hidden] { display: none !important; }

/* ── Home hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(88vh, 880px);
  min-height: min(88svh, 880px);  /* visible viewport on mobile, not the toolbar-hidden one */
  padding: 0 var(--pad-x);
}
.hero-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(28px) saturate(1.1);
  transform: scale(1.08);
  transition: opacity 1.8s ease, filter 0.9s ease, transform 0.9s ease;
}
.hero-bg.is-active { opacity: 0.75; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45,51,54,.92) 0%, rgba(45,51,54,.72) 55%, rgba(45,51,54,.45) 100%);
  transition: opacity 0.7s ease;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  max-width: 880px;
  padding: clamp(56px, 10vw, 140px) 0 clamp(72px, 9vw, 128px);
  transition: opacity 0.7s ease;
}
.hero .lockup { gap: clamp(12px, 1.6vw, 22px); }
.hero .lockup-mark { height: clamp(74px, 8.8vw, 124px); }
.hero .wordmark { font-size: clamp(48px, 7vw, 96px); }
.hero-intro {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--bone);
  text-wrap: pretty;
}
.hero-aside { font-size: 17px; color: var(--sand); }

.hero-caption {
  position: absolute;
  right: var(--pad-x);
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.hero-caption::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--ember);
  flex: none;
}
.hero-caption a { font-size: 12px; }

.hero.is-revealed .hero-content,
.hero.is-revealed .hero-scrim { opacity: 0; }
.hero.is-revealed .hero-bg.is-active { opacity: 1; filter: none; transform: scale(1); }

/* On phones the content is short for the box, so sit it near the top instead of centering */
@media (max-width: 640px) {
  .hero { align-items: flex-start; }
  .hero-content { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-scrim, .hero-content { transition: none; }
}

/* ── Portfolio ───────────────────────────────────────────────── */

.page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px var(--col-gap);
  padding: clamp(48px, 8vw, 112px) var(--pad-x) clamp(32px, 4vw, 56px);
}
.page-intro-text { max-width: 640px; }
.page-intro .lead { margin-top: 20px; }

/* Contact sheet: frames keep their own shape and fill loose, uneven rows */
.sheet {
  --row-h: clamp(120px, 17vw, 230px);
  padding: 0 var(--pad-x) var(--section-y);
}
.sheet-edge {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  margin-bottom: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}
.sheet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.4vw, 36px) clamp(10px, 1.2vw, 18px);
}
/* Keeps the last row at natural size instead of stretching it */
.sheet-grid::after { content: ""; flex: 999 1 0; }

.frame {
  flex: var(--r) 1 calc(var(--r) * var(--row-h));
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}
.frame img {
  width: 100%;
  aspect-ratio: var(--r);
  object-fit: cover;
  background: var(--placeholder);
  outline: 1.5px solid transparent;
  outline-offset: 5px;
  transition: opacity 0.35s ease, outline-color 0.2s ease;
}
.frame-label {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  transition: color 0.2s ease;
}
.frame-no { color: var(--ember); margin-right: 6px; }

/* Picking a frame: the others dim, the chosen one gets a grease-pencil mark */
@media (hover: hover) {
  .sheet-grid:has(.frame:hover) .frame:not(:hover) img { opacity: 0.45; }
}
.frame:hover img,
.frame:focus-visible img { outline-color: var(--ember); }
.frame:hover .frame-label,
.frame:focus-visible .frame-label { color: var(--bone); }
.frame:focus-visible { outline: none; }

@media (max-width: 520px) {
  .sheet { --row-h: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .frame img { transition: none; }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(38, 43, 46, 0.98);
  color: var(--bone);
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgba(38, 43, 46, 0.98); }
.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(16px, 4vw, 48px);
}
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Fixed layout: the title truncates to one line and the controls never move */
.lb-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px var(--pad-x) 24px;
  border-top: 1px solid var(--hairline);
}
.lb-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 400 13px/1.5 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lb-meta { display: flex; gap: 20px; margin-top: 4px; font: 400 12px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); }
.lb-meta span { min-width: 7ch; font-variant-numeric: tabular-nums; }
.lb-meta a { color: var(--ember); text-decoration: none; }
.lb-meta a:hover { color: var(--paper); }
.lb-controls { display: flex; gap: 6px; }
.lb-controls .icon-btn { width: 32px; height: 32px; border-width: 1px; }
.lb-controls .icon { width: 15px; height: 15px; stroke-width: 1.5; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--field-line);
  border-radius: 2px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { border-color: var(--ember); color: var(--ember); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ── Visual Language ─────────────────────────────────────────── */

.vl-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  align-items: end;
  gap: 24px clamp(32px, 5vw, 72px);
  padding: clamp(48px, 8vw, 112px) var(--pad-x) clamp(32px, 4vw, 56px);
}

/* Services carousel: a small, quick ticker of one service at a time */
.carousel {
  max-width: 420px;
  margin: 0 auto var(--section-y);
  padding: 0 var(--pad-x);
}
.carousel-track {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}
.carousel-emoji { font-size: 28px; line-height: 1; }
.carousel-slide h2 {
  font: 600 22px/1.2 var(--sans);
  letter-spacing: -0.01em;
  color: var(--paper);
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-dot::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--field-line);
  transition: background-color 0.2s ease;
}
.carousel-dot:hover::before { background: var(--bone); }
.carousel-dot[aria-current="true"]::before { background: var(--ember); }

@media (prefers-reduced-motion: reduce) {
  .carousel-slide, .carousel-slide.is-active { transition: none; }
}

.work-copy .h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.work-copy .body,
.contact-copy .body { margin-top: 24px; max-width: 520px; }

#work, #contact { scroll-margin-top: 90px; }

/* ── About ───────────────────────────────────────────────────── */

.about-intro { max-width: calc(1040px + 2 * var(--pad-x)); padding-top: clamp(48px, 8vw, 112px); }
.about-intro .lead { margin-top: 28px; max-width: 760px; }

.name-text { align-self: center; }
.name-mark { height: 84px; width: auto; margin-bottom: 28px; }
.name-text .body,
.team-copy .body { margin-top: 20px; }

.team-copy { align-self: center; }
.team-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 16px; color: var(--sand); }

.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.sent:focus { outline: none; }

/* ── Photo protection: no drag, select or long-press save ────── */
img,
.hero-bg {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
/* A clear layer over framed photos so right-click lands on it, not the image */
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
}
.photo-frame { position: relative; display: block; }
