/* The Lion App Studio. One world: warm umber dark, tawny mane tones, a company seal. */
@font-face { font-family: "Sentient"; src: url("/assets/fonts/sentient-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("/assets/fonts/sentient-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("/assets/fonts/sentient-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #1b120a;
  --surface: #251910;
  --surface-edge: #33231a;
  --ink: #efe0c6;
  --ink-2: #cdb89a;
  --muted: #a38c71;
  --tone: #d6aa72;
  --deep: #6e4724;
  --display: "Sentient", "Iowan Old Style", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --data: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .94 0 0 0 0 .86 0 0 0 0 .74 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* grain lives on the substrate, under every piece of content */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: .07;
  pointer-events: none;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(214, 170, 114, .45); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .2s ease, text-decoration-color .2s ease; }
a:hover { color: var(--tone); text-decoration-color: var(--tone); }
:focus-visible { outline: 2px solid var(--tone); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav: a contained pill that drops in ---------- */
.nav-wrap { position: absolute; top: 18px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; padding: 0 16px; }
.nav {
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(37, 25, 16, .86);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 rgba(239, 224, 198, .06);
  animation: nav-in .8s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes nav-in { from { transform: translateY(-14px); } to { transform: none; } }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.nav a:hover { background: var(--surface-edge); color: var(--ink); }
.nav .brand { display: flex; align-items: center; gap: 9px; padding: 6px 16px 6px 10px; color: var(--ink); font: 500 17px/1 var(--display); }
.nav .brand .mark { width: 26px; height: 26px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.nav .brand:hover .mark { transform: rotate(30deg); }
.nav .nav-lang { font-family: var(--display); font-style: italic; color: var(--tone); }

/* ---------- hero: the seal owns the first screen ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(20px, 4vh, 40px);
  padding: 104px 24px 56px;
  text-align: center;
  isolation: isolate;
}
/* one raking light from the top left, fully faded before the section ends */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(198, 134, 64, .2) 0%, rgba(198, 134, 64, .08) 26%, rgba(198, 134, 64, 0) 50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0,0,0,.6) 70%, rgba(0,0,0,.2) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0,0,0,.6) 70%, rgba(0,0,0,.2) 88%, transparent 100%);
}
.seal { width: min(68vmin, 560px); height: auto; overflow: visible; }
.seal text { font-family: var(--display); }
.seal-word { font-size: 84px; font-style: italic; fill: var(--ink); }
.seal-since { font-size: 14px; letter-spacing: 4px; fill: var(--muted); font-weight: 500; }
.seal-ring { transform-origin: 0 0; animation: spin 160s linear infinite; }
.seal-mane { transform-origin: 0 0; animation: spin 420s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 {
  margin: 0;
  max-width: 22ch;
  font: 400 clamp(30px, 4.4vw, 56px)/1.12 var(--display);
  letter-spacing: -.005em;
  text-wrap: balance;
}

/* ---------- shared section rhythm ---------- */
main > section:not(.hero) { width: min(1080px, 100% - 48px); margin: 0 auto; }
.lede {
  margin: 0 0 56px;
  max-width: 30ch;
  font: 400 clamp(26px, 3vw, 38px)/1.25 var(--display);
  text-wrap: pretty;
}

/* studio: three principles as a typographic index */
.studio { padding: 120px 0 96px; }
.rows { margin: 0; display: grid; gap: 36px; }
.rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: baseline; }
.rows dt { font: 500 24px/1.3 var(--display); color: var(--tone); }
.rows dd { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* billing: a ledger with one chamfered corner */
.ledger {
  position: relative;
  padding: clamp(40px, 6vw, 72px);
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(239, 224, 198, .05);
}
.ledger h2 { margin: 0 0 40px; padding-right: 72px; font: 400 clamp(28px, 3vw, 40px)/1.15 var(--display); }
.ledger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.ledger h3 { margin: 0 0 8px; font: 500 20px/1.3 var(--display); color: var(--tone); }
.ledger p { margin: 0; color: var(--ink-2); }

/* imprint: the real company data */
.imprint { padding: 120px 0 104px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; }
.facts dt { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 18px; line-height: 1.5; }
.num { font-family: var(--data); font-variant-numeric: tabular-nums; font-size: .92em; letter-spacing: .02em; }

/* ---------- legal documents ---------- */
.doc { width: min(780px, 100% - 48px); margin: 0 auto; padding: 136px 0 96px; }
.doc h1 { margin: 0 0 6px; font: 400 clamp(36px, 5vw, 54px)/1.1 var(--display); }
.doc .meta { color: var(--muted); margin-bottom: 40px; }
.doc h2 { margin: 52px 0 12px; font: 500 24px/1.3 var(--display); color: var(--tone); scroll-margin-top: 96px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--muted); }
.doc .box {
  padding: 22px 26px;
  background: var(--surface);
  color: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.table-scroll { overflow-x: auto; margin: 12px 0; }
.doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; color: var(--ink-2); }
.doc th { font: 500 16px/1.3 var(--display); color: var(--ink); background: var(--surface); }
.doc tr:nth-child(odd) td { background: rgba(37, 25, 16, .45); }

/* ---------- footer: links, colophon, the name set huge and anchored ---------- */
.foot { position: relative; overflow: hidden; padding: 64px 24px 0; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--tone); }
.foot-copy { margin: 18px 0 40px; color: var(--muted); font-size: 14px; }
.foot-mark {
  font: 500 clamp(56px, 15vw, 236px)/.78 var(--display);
  letter-spacing: .06em;
  text-indent: .06em;
  white-space: nowrap;
  color: #2c1d10;
  padding-top: .1em;
  margin-bottom: -.08em;
  user-select: none;
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .nav .nav-sec { display: none; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .ledger { clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); }
  .ledger h2 { padding-right: 36px; }
  .ledger-grid { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .studio, .imprint { padding: 88px 0 72px; }
}
@media (max-width: 460px) {
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- refinements ---------- */
.nav .nav-lang { font-family: var(--body); font-style: normal; color: var(--tone); }
.num { font-weight: 400; color: var(--ink-2); }
/* the mane, cropped and nearly tonal, carries the seal down the page */
.studio { position: relative; isolation: isolate; width: auto !important; overflow-x: clip; }
.studio > .inner { width: min(1080px, 100% - 48px); margin: 0 auto; }
.ghost {
  position: absolute;
  z-index: -1;
  top: -40px;
  right: calc(-1 * clamp(120px, 14vw, 260px));
  width: clamp(420px, 52vw, 760px);
  height: auto;
  pointer-events: none;
}
@media (max-width: 760px) {
  .ghost { top: 0; right: -55vw; width: 110vw; }
  .hero { gap: 28px; padding-top: 96px; }
  .seal { width: 88vw; }
  .hero h1 { font-size: 32px; }
  .doc table { min-width: 0; }
  .doc thead, .doc tr:first-child:has(th) { display: none; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr { padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
  .doc tr:nth-child(odd) td { background: none; }
  .doc td { padding: 4px 0; }
  .doc td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 13px; }
}
