/* Firstlight Labs — firstlight.ltd
   Editorial serif display (Newsreader), Geist for text, Geist Mono for labels.
   Paper and ink bands joined by dithered pixel horizons (site.js). Hairline frame and grid. */

:root {
  --paper: #EFEFED;
  --white: #FFFFFF;
  --ink: #0B0F14;
  --ink-2: #11161D;
  --ink-3: #181E26;
  --text: #111418;
  --text-2: #4B5159;
  --text-3: #767C84;
  --on-ink: #F2F3F5;
  --on-ink-2: rgba(242, 243, 245, 0.66);
  --on-ink-3: rgba(242, 243, 245, 0.44);
  --line: rgba(17, 20, 24, 0.11);
  --line-strong: rgba(17, 20, 24, 0.24);
  --line-ink: rgba(255, 255, 255, 0.09);
  --line-ink-strong: rgba(255, 255, 255, 0.22);
  --lit: #F5873B;
  --ok: #5DC28E;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --frame: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.6 var(--sans); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, dt, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }                 /* keep photos at their own proportions */
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; }

/* ---------- frame: the hairline column every section sits in ---------- */
.frame {
  position: relative; width: min(100% - 48px, var(--frame)); margin-inline: auto;
  padding-inline: var(--pad); border-inline: 1px solid var(--line);
}
.ink .frame { border-color: var(--line-ink); }
.bleed { margin-inline: calc(-1 * var(--pad)); }

/* ---------- type ---------- */
.display, .h2, .h3, .stat dd {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; text-wrap: balance;
}
.display { font-size: clamp(3rem, 1.5rem + 5.6vw, 6.9rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 380; }
.h2 { font-size: clamp(2.25rem, 1.35rem + 2.9vw, 4.1rem); line-height: 1.02; letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.5rem, 1.25rem + 0.6vw, 1.85rem); line-height: 1.12; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); text-wrap: pretty; }
.ink .muted, .ink .lead { color: var(--on-ink-2); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 12.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--text-3);
}
.ink .label { color: var(--on-ink-3); }
.px { width: 7px; height: 7px; flex: none; background: var(--lit); }
.px--off { background: currentColor; opacity: 0.5; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 3px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #262C34; }
.btn--line { border-color: var(--line-strong); color: var(--text); }
.btn--line:hover { border-color: var(--text); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #E4E6E9; }
.btn--line-ink { border-color: var(--line-ink-strong); color: var(--on-ink); }
.btn--line-ink:hover { border-color: var(--on-ink); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.link svg { width: 13px; height: 13px; transition: transform .15s ease; }
.link:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .frame { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav__brand { justify-self: start; color: var(--text); }
.nav__brand svg { height: 25px; width: auto; }
.nav__links { display: flex; gap: 30px; font-size: 14.5px; color: var(--text-2); }
.nav__links a:hover { color: var(--text); }
.nav__cta { justify-self: end; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero .frame {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(64px, 9vw, 132px); padding-bottom: clamp(250px, 25vw, 360px);
}
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 3px; background: rgba(255, 255, 255, 0.55);
  font: 400 12.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--text-2);
  transition: border-color .15s ease;
}
.announce:hover { border-color: var(--line-strong); color: var(--text); }
.announce svg { width: 12px; height: 12px; }
.hero h1 { margin-top: 30px; max-width: 16ch; }
.hero .lead { margin-top: 28px; max-width: 37rem; }
.hero .actions { margin-top: 40px; justify-content: center; }
.horizon { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(220px, 23vw, 330px); }
.horizon--up { position: relative; height: clamp(200px, 20vw, 300px); }
.no-js .horizon { background: linear-gradient(to bottom, transparent 40%, var(--ink)); }
.no-js .horizon--up { background: linear-gradient(to top, transparent 40%, var(--ink)); }

/* ---------- bands ---------- */
.ink { background: var(--ink); color: var(--on-ink); }
.white { background: var(--white); }
.paper { background: var(--paper); }
.section { padding-block: clamp(80px, 9vw, 136px); }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.split .muted { max-width: 30rem; justify-self: end; }
.section-label { margin-bottom: 28px; }

/* ---------- practices (ink) ---------- */
#practices .section { padding-bottom: 0; }
#apps .section { padding-bottom: 0; }
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line-ink); }
.practice { display: flex; flex-direction: column; padding: 44px var(--pad) 0; border-right: 1px solid var(--line-ink); }
.practice:last-child { border-right: 0; }
.practice .h3 { margin-top: 22px; }
.practice p:not(.label) { margin-top: 14px; color: var(--on-ink-2); max-width: 30rem; }
.practice .link { margin-top: 22px; color: var(--on-ink); }
.practice__visual { position: relative; height: clamp(320px, 31vw, 430px); margin-top: 44px; overflow: hidden; }
.practice__visual img { position: absolute; left: 50%; top: 0; width: min(390px, 84%); transform: translateX(-50%); }

/* pipeline run: an illustration of the kind of system we build */
.run {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(470px, 92%);
  background: var(--ink-2); border: 1px solid var(--line-ink-strong); border-radius: 6px;
  font: 400 12.5px/1 var(--mono); color: var(--on-ink-2);
}
.run__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-ink); }
.run__title { color: var(--on-ink); font-weight: 500; display: inline-flex; gap: 10px; align-items: center; }
.run__status { display: inline-flex; gap: 8px; align-items: center; color: var(--ok); }
.run__status i { width: 7px; height: 7px; background: var(--ok); display: inline-block; }
.run__steps li { display: grid; grid-template-columns: 76px 1fr auto 16px; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line-ink); }
.run__steps .k { color: var(--on-ink-3); }
.run__steps .v { color: var(--on-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run__steps .ok { width: 7px; height: 7px; background: var(--ok); justify-self: end; }
.run__steps .live { width: 7px; height: 7px; background: var(--lit); justify-self: end; animation: blink 1.6s steps(2, jump-none) infinite; }
.run__foot { display: flex; gap: 3px; padding: 16px 18px 22px; }
.run__foot i { flex: 1; height: 18px; background: rgba(255, 255, 255, 0.08); }
.run__foot i.on { background: rgba(255, 255, 255, 0.34); }
.run__foot i.lit { background: var(--lit); }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- 2Shoot (white) ---------- */
.app-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.app-title { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.app-title img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
/* the product name speaks 2Shoot's own voice: the App Store cards' SF Pro Display, weight 800, tight */
.app-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", system-ui, sans-serif;
  font-weight: 800; font-size: clamp(2.25rem, 1.45rem + 2.5vw, 3.75rem); line-height: 1; letter-spacing: -0.03em;
}
.app-kind { margin-top: 10px; }
.app-head .lead { max-width: 34rem; }
.app-head .actions { margin-top: 28px; }
.note { font-size: 14px; color: var(--text-3); }
.showcase { position: relative; height: clamp(380px, 44vw, 600px); margin-top: 64px; background: var(--ink); overflow: hidden; }
.showcase img { position: absolute; width: 30%; }
.showcase img:nth-child(1) { left: 3%; top: 15%; }
.showcase img:nth-child(2) { left: 35%; top: 7%; }
.showcase img:nth-child(3) { right: 3%; top: 15%; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts div { padding: 30px var(--pad) 34px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { margin-bottom: 16px; }
.facts dd strong { display: block; font: 400 1.3rem/1.2 var(--serif); letter-spacing: -0.01em; color: var(--text); }
.facts dd span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

/* ---------- services (white) ---------- */
#services .section { padding-top: clamp(72px, 8vw, 120px); }
.center-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.center-head .h2 { margin-top: 26px; max-width: 16ch; }
.center-head .muted { margin-top: 22px; max-width: 34rem; font-size: 17px; }
.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--line); }
.cell { padding: 36px var(--pad) 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 268px; display: flex; flex-direction: column; }
.cell:nth-child(3n) { border-right: 0; }
.cell .h3 { margin-top: auto; padding-top: 48px; }
.cell p:not(.label) { margin-top: 12px; color: var(--text-2); font-size: 15.5px; }

/* ---------- experience (ink) ---------- */
#experience .section { padding-bottom: clamp(72px, 8vw, 112px); }
.statement { max-width: 19ch; font-size: clamp(2.5rem, 1.3rem + 3.7vw, 4.9rem); line-height: 1; letter-spacing: -0.03em; font-weight: 380; }
.exp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; margin-top: clamp(64px, 7vw, 104px); align-items: end; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-ink); }
.stat { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line-ink); }
.stat:nth-child(odd) { border-right: 1px solid var(--line-ink); }
.stat:nth-child(even) { padding-left: 28px; }
.stat dt { margin-bottom: 14px; }
.stat dd { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--on-ink); }
.exp__note { padding-left: 28px; border-left: 1px solid var(--line-ink-strong); }
.exp__note p:not(.label) { margin-top: 18px; color: var(--on-ink-2); font-size: 16.5px; }

/* ---------- contact (paper) ---------- */
.contact { text-align: center; padding-block: clamp(40px, 5vw, 72px) clamp(96px, 10vw, 150px); }
.contact .center-head .h2 { max-width: 14ch; }
.contact .actions { justify-content: center; margin-top: 36px; }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer .frame { padding-block: 56px 40px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand svg { height: 25px; width: auto; color: var(--text); }
.footer__brand p { margin-top: 18px; max-width: 18rem; font-size: 14.5px; color: var(--text-2); }
.footer__col .label { margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-size: 14.5px; line-height: 1.5; padding: 4px 0; color: var(--text-2); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .cell:nth-child(2n) { border-right: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .exp { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .nav .frame { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .split, .app-head { grid-template-columns: 1fr; gap: 24px; }
  .split .muted { justify-self: start; }
  .practices { grid-template-columns: 1fr; }
  .practice { border-right: 0; border-bottom: 1px solid var(--line-ink); }
  .practice:last-child { border-bottom: 0; }
  .showcase img { width: 46%; }
  .showcase img:nth-child(1) { left: -4%; }
  .showcase img:nth-child(2) { left: 27%; z-index: 1; }
  .showcase img:nth-child(3) { right: -4%; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .frame { width: 100%; border-inline: 0; }
  .grid6 { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; min-height: 0; }
  .cell .h3 { padding-top: 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(odd) { border-right: 0; }
  .stat:nth-child(even) { padding-left: 0; }
  .showcase img { width: 66%; }
  .showcase img:nth-child(1), .showcase img:nth-child(2) { display: none; }
  .showcase img:nth-child(3) { right: auto; left: 17%; top: 9%; }
  .hero .actions .btn, .contact .actions .btn { width: 100%; }
  .run__steps li { grid-template-columns: 64px 1fr 16px; }
  .run__steps .t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .run__steps .live { animation: none; }
  .btn, .announce, .link svg { transition: none; }
}
