/* Fommo web: true black, the flame red as the loud accent, oversized
   uppercase Inter, monospace labels, dithered artwork (drawn in site.js).
   Fonts are self-hosted: the site makes no third-party requests. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --surface-1: #121212;
  --surface-2: #1c1c1c;
  --line: #262626;
  --ink: #f7f7f7;
  --ink-2: #b4b4b4;
  --ink-3: #7a7a7a;
  --flame: #fa233b;
  --flame-2: #fb5c74;
  --flame-ink: #ff4458; /* flame text on black: a touch brighter for legibility */
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --sans: 'Inter Variable', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* site.js runs its own eased scroll; native smooth would fight it */
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection {
  background: var(--flame);
  color: #fff;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 16px;
  transition: background-color 300ms var(--ease-out);
}
.nav.is-solid {
  background: rgb(0 0 0 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.wordmark {
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) {
  .nav-links a:hover {
    color: var(--ink);
  }
}
.nav .btn {
  margin-left: auto;
}
.nav-links + .btn {
  margin-left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-lg {
  height: 48px;
  padding-inline: 24px;
  font-size: 12px;
}
.btn-flame {
  background: var(--flame);
  color: #fff;
}
.btn-line {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
  color: var(--ink);
}
.btn-ink {
  background: #000;
  color: #fff;
}
@media (hover: hover) {
  .btn-flame:hover {
    background: #ff3a50;
  }
  .btn-line:hover {
    background: var(--ink);
    color: #000;
  }
  .btn-ink:hover {
    background: #1a1a1a;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero-art canvas,
.foot-art canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero .wrap {
  position: relative;
  max-width: none;
  padding-bottom: clamp(28px, 5vh, 56px);
  padding-top: 120px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(64px, 13.4vw, 220px);
  line-height: 0.84;
  font-weight: 850;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(24px, 4vh, 40px);
}
.hero-copy {
  max-width: 420px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.hero-copy strong {
  color: var(--ink);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-meta {
  display: flex;
  gap: 18px;
  color: var(--ink-3);
}
.hero-meta b {
  color: var(--flame-ink);
  font-weight: 600;
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  background: var(--flame);
  color: #fff;
  padding-block: 10px;
}
.ticker-track {
  display: flex;
  width: max-content;
  /* each half holds the list three times, so it always outruns the viewport */
  animation: ticker 150s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(80px, 12vw, 160px) 0;
}
.section:last-of-type {
  padding-bottom: clamp(80px, 12vw, 160px);
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.sec-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.sec-head span:first-child::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--flame);
}

.title {
  margin: 0;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-wrap: balance;
}
.title em {
  font-style: normal;
  color: var(--flame-ink);
}

.title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: end;
  gap: 32px;
  margin-top: clamp(40px, 6vw, 72px);
}
.title-row p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Steps: a ruled list, like a tour-date table */
.steps {
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.steps .no {
  color: var(--flame-ink);
}
.steps h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.steps .tag {
  justify-self: end;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--flame);
  color: #fff;
}

/* The ticket */
.ticket-sec {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  margin-top: clamp(40px, 6vw, 72px);
}
.ticket-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--surface-1);
  overflow: hidden;
}
.ticket-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ticket {
  --notch: 13px;
  --stub: 118px;
  position: relative;
  width: min(74%, 330px);
  background: var(--flame);
  color: #000;
  border-radius: 18px;
  transform: rotate(-6deg);
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket-main {
  padding: 22px 22px 20px;
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-top svg {
  width: 26px;
  height: 26px;
}
.ticket-name {
  margin: 30px 0 0;
  font-size: 32px;
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.ticket dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
  margin: 22px 0 0;
}
.ticket dt {
  opacity: 0.6;
}
.ticket dd {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}
.ticket-stub {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--stub);
  margin-inline: 16px;
  padding: 0 6px;
  border-top: 2px dashed rgb(0 0 0 / 0.45);
}
.ticket-stub svg {
  width: 74px;
  height: 74px;
  flex: none;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}
.ticket-stub p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}
.ticket-stub strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ticket-copy > p {
  margin: 24px 0 0;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stats dt {
  order: 2;
  margin-top: 6px;
  color: var(--ink-3);
}
.stats div {
  display: flex;
  flex-direction: column;
}
.stats dd {
  order: 1;
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.05em;
}

/* Statements: big uppercase lines, alternating sides */
.statements {
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(48px, 7vw, 96px);
}
.statements h3 {
  max-width: 11ch;
}
.statements li:nth-child(2) h3 {
  margin-left: auto;
}
.statements li:nth-child(2) {
  justify-self: end;
  text-align: right;
}
.statements h3 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.statements p {
  margin: 16px 0 0;
  color: var(--ink-3);
}
.statements p b {
  color: var(--flame-ink);
  font-weight: 600;
}

/* Features: plain grid, text only, ruled */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.features li {
  padding: 22px 22px 28px 0;
}
.features li + li {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.features .mono {
  color: var(--flame-ink);
}
.features h3 {
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.features p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

/* Software + consulting: two ruled columns */
.offer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 6vw, 64px);
}
.offer > div {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface-1);
}
.offer > div:last-child {
  background: var(--flame);
  color: #000;
}
.offer .mono {
  color: var(--flame-ink);
}
.offer > div:last-child .mono {
  color: #000;
}
.offer h3 {
  margin: 40px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.offer ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.offer li {
  padding-block: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.offer > div:last-child li {
  border-color: rgb(0 0 0 / 0.22);
}

/* ---------- Flame CTA band ---------- */

.cta {
  margin-top: clamp(80px, 12vw, 160px);
  background: var(--flame);
  color: #000;
  padding-block: clamp(64px, 9vw, 120px);
}
.cta .sec-head {
  border-color: rgb(0 0 0 / 0.25);
  color: rgb(0 0 0 / 0.6);
}
.cta .sec-head span:first-child {
  color: #000;
}
.cta .sec-head span:first-child::before {
  background: #000;
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: end;
  gap: 40px;
  margin-top: clamp(40px, 6vw, 64px);
}
.cta .title {
  max-width: 13ch;
}
.cta-side p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}
.cta-side dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 24px 0;
}
.cta-side dt {
  opacity: 0.6;
}
.cta-side dd {
  margin: 0;
  font-weight: 600;
}
.cta-side dd a {
  text-decoration: none;
}

/* ---------- Footer ---------- */

.foot {
  position: relative;
  padding-top: clamp(64px, 8vw, 96px);
  overflow: hidden;
}
.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot-cols p {
  margin: 0;
  max-width: 30ch;
  color: var(--ink-2);
  font-size: 14px;
}
.foot-cols h4 {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-weight: 500;
}
.foot-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot-cols a {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) {
  .foot-cols a:hover,
  .foot-bar a:hover {
    color: var(--ink);
  }
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang a {
  appearance: none;
  border: 0;
  background: none;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}
.lang [aria-current='true'] {
  background: var(--ink);
  color: #000;
}

.foot-art {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  height: clamp(200px, 26vw, 380px);
}
.foot-art canvas {
  position: absolute;
  inset: 0;
}
.foot-word {
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(110px, 24vw, 400px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.065em;
  white-space: nowrap;
  pointer-events: none;
}
.foot-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
  color: var(--ink-3);
  background: #000;
}
.foot-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.foot-bar a {
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: 140px clamp(64px, 9vw, 112px);
}
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(32px, 5vw, 56px);
}
.legal h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 104px);
  margin-bottom: 36px;
  line-height: 0.86;
  font-weight: 850;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.legal aside {
  position: sticky;
  top: 96px;
  align-self: start;
  color: var(--ink-3);
}
.legal aside p {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.7;
}
.legal aside b {
  color: var(--ink);
  font-weight: 500;
}
.legal .body {
  max-width: 68ch;
}
.legal .scope {
  margin: 0 0 8px;
  padding: 20px 22px;
  border-left: 3px solid var(--flame);
  background: var(--surface-1);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.legal .scope strong {
  color: var(--ink);
}
.legal section {
  padding-top: 36px;
}
.legal h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.legal p,
.legal ul,
.legal address {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.legal address {
  font-style: normal;
  color: var(--ink);
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-top: 6px;
}
.legal li::marker {
  color: var(--flame);
}
.legal strong {
  color: var(--ink);
  font-weight: 600;
}
.legal .body a {
  color: var(--ink);
  text-decoration-color: var(--flame);
  text-underline-offset: 3px;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
      opacity 900ms var(--ease-out),
      transform 1100ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  .js .hero h1 span {
    transform: translateY(105%);
    animation: line-up 1100ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 150ms);
  }
  .js .hero h1 span:nth-child(2) {
    --i: 1;
  }
  .js .hero h1 {
    overflow: hidden;
    padding-bottom: 0.04em;
  }
}
@keyframes line-up {
  to {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .steps li {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .steps p {
    grid-column: 2 / -1;
  }
  .steps .tag {
    grid-row: 1;
    grid-column: 3;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .features li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-cols > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .title-row,
  .ticket-sec,
  .cta-grid,
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal aside {
    position: static;
    order: 2;
  }
  .offer {
    grid-template-columns: minmax(0, 1fr);
  }
  .statements li:nth-child(2) {
    justify-self: start;
    text-align: left;
  }
  .hero-meta {
    display: none;
  }
}

@media (max-width: 520px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .features li,
  .features li + li {
    padding-left: 0;
    border-left: 0;
  }
  .features li + li {
    border-top: 1px solid var(--line);
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
