@font-face { font-family: "Cinzel"; src: url("/assets/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/spectral-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Palette taken from Brian's artwork: the logo's #141414 ground, bone lettering, weathered stone greys, white flame. */
:root {
  --bg: #141414;
  --surface: #1c1b19;
  --stone: #2a2825;
  --text: #ece6da;
  --muted: #bdb5a7;
  --line: #807a6f;
  --rule: #3b3833;
  --flame: #fff6e4;
  --focus: #ffd98a;
  --error: #ffb4a8;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Spectral", Georgia, "Times New Roman", serif;
  --measure: 36rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 0.2em; }
a:hover { color: var(--flame); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: var(--text); color: var(--bg); z-index: 10; }
.skip:focus { top: 1rem; }

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; line-height: 1.2; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }

/* Hero: the logo on its own ground, then the tagline set like the INDUSTRIES line under the wordmark. */
.hero { padding: clamp(2rem, 4vw, 3rem) 1rem clamp(2rem, 5vw, 3.5rem); text-align: center; }
.hero__logo { margin: 0 auto; max-width: 300px; width: 64vw; }
.tagline span { display: inline-block; white-space: nowrap; }
.tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 0.9rem + 1.4vw, 1.75rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: clamp(1rem, 2vw, 1.5rem) auto 0;
  padding-top: 1.1rem;
  max-width: 40rem;
  border-top: 2px solid var(--rule);
  color: var(--flame);
}

main { display: block; }

.mission {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
  border-top: 1px solid var(--rule);
}
.mission__art { margin: 0; justify-self: center; max-width: 440px; width: 100%; }
.mission__art img {
  /* The torch art sits on a blacker ground than the page; feather its edges into the page. */
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 48%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 62% at 50% 48%, #000 40%, transparent 100%);
}
.mission__text { max-width: var(--measure); }
.mission__text p { margin: 0 0 1.1em; }
.mission__text p:last-child { margin-bottom: 0; }
@media (min-width: 56rem) {
  .mission { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.work {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
  border-top: 1px solid var(--rule);
}
.work__intro { margin: 0 0 1.75rem; max-width: var(--measure); }
.work__list { list-style: none; margin: 0; padding: 0; column-gap: 3rem; }
.work__list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.9rem; break-inside: avoid; }
.work__list li::before {
  /* A small ember for each line. */
  content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--focus); box-shadow: 0 0 0.45rem 0.1rem rgba(255, 190, 90, 0.55);
}
.work__more { margin: 1.75rem 0 0; font-family: var(--display); letter-spacing: 0.08em; color: var(--flame); }
@media (min-width: 48rem) {
  .work__list { columns: 2; }
}

.contact {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}
.contact__intro { margin: 0 0 2rem; max-width: var(--measure); }

.form { background: var(--surface); border: 1px solid var(--rule); padding: clamp(1.25rem, 4vw, 2.25rem); }
.form__note { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.95em; }
.form__grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 0.4rem; font-weight: 500; }
.req { color: var(--focus); }
.opt { color: var(--muted); font-size: 0.9em; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  min-height: 2.9rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; margin: 1.25rem 0 0.75rem; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--flame); }
.button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  border: 0;
  border-radius: 2px;
  padding: 0.95rem 1.75rem;
  min-height: 3rem;
  cursor: pointer;
}
.button:hover { background: var(--flame); }
.button[disabled] { opacity: 0.7; cursor: progress; }

.footer { text-align: center; padding: 2.5rem 1rem 3rem; border-top: 1px solid var(--rule); }
.footer__soon { margin: 0 0 0.5rem; font-family: var(--display); letter-spacing: 0.08em; }
.footer__legal { margin: 0; color: var(--muted); font-size: 0.9em; }
.affiliates { margin: 2rem auto 2.25rem; }
.affiliates__title { margin: 0 0 0.75rem; font-family: var(--display); font-size: 0.85rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.affiliates__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2rem; align-items: center; }
.affiliates__list li, .affiliates__list a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__credit { margin: 1.25rem 0 0; font-size: 0.8em; }
.footer__credit a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); }
.footer__credit a:hover { color: var(--flame); }

.simple { max-width: 34rem; margin: 0 auto; padding: 4rem 1rem; text-align: center; }
.simple img { margin: 0 auto 2rem; }

/* The logo catches the light: dim at first, patches from each match, then the torch lights it
   from below. kindle.js writes the mask and brightness each frame; without JS the logo is plain. */
.logo-stack { position: relative; display: block; }
.logo-lit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.js-kindle .logo-base { opacity: 0.05; }
.js-kindle .logo-lit {
  opacity: 1;
  filter: brightness(1.12) contrast(1.03);
  -webkit-mask-image: var(--logo-mask, linear-gradient(transparent, transparent));
          mask-image: var(--logo-mask, linear-gradient(transparent, transparent));
}

/* The kindling: matches light, lean in, light the torch; the tagline arrives with the flame. */
.kindle {
  /* Shrinks on short screens so the tagline reveal stays in the first view. */
  max-width: clamp(340px, (100vh - 500px) * 2.2, 700px);
  max-width: clamp(340px, (100svh - 500px) * 2.2, 700px);
  /* Tucked up under the logo: the flame tip sits 14.9% of the canvas width below its top edge,
     so this puts the tip 40px under the logo at any size. The canvas is transparent. */
  margin: 0 auto;
  margin-top: calc(40px - 0.149 * min(100%, clamp(340px, (100vh - 500px) * 2.2, 700px)));
  margin-top: calc(40px - 0.149 * min(100%, clamp(340px, (100svh - 500px) * 2.2, 700px)));
}
.kindle canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 900 / 410;
  /* Feather every edge into the page so no light ever ends on a hard line. */
  -webkit-mask-image: radial-gradient(ellipse 56% 58% at 50% 50%, #000 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 56% 58% at 50% 50%, #000 66%, transparent 100%);
}
.kindle { position: relative; }
.kindle__toggle {
  display: block; margin: -0.5rem auto 0; position: relative;
  font: inherit; font-size: 0.85rem; color: var(--muted);
  background: transparent; border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.35rem 0.8rem; min-height: 2rem; cursor: pointer;
}
.kindle__toggle:hover { color: var(--text); border-color: var(--line); }
.js-kindle .tagline { opacity: 0; transform: translateY(0.5rem); animation: none; }
.js-kindle.is-lit .tagline { opacity: 1; transform: none; transition: opacity 1s ease-out, transform 1s ease-out; }

/* Some motion: the torch comes up out of the dark once. */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo, .tagline { animation: rise 1.1s ease-out both; }
  .tagline { animation-delay: 0.35s; }
  .mission__art img { animation: kindle 2.4s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }
@keyframes kindle { from { opacity: 0.15; filter: brightness(0.5); } to { opacity: 1; filter: none; } }
