/* Rebel Foundry homepage and 404 — "The mark, unfolded". Every colour and angle is sampled from the badge.
   Design record: explorations/2026-10-23-origin/DESIGN.md. The /1ax6 page keeps styles.css. */
@font-face {
  font-family: Archivo;
  src: url("assets/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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;
}
/* 1ax6's own type, for its plate (as on /1ax6; see styles.css). */
@font-face {
  font-family: "Noto Serif Display";
  src: url("assets/noto-serif-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("assets/noto-serif-display-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}
@font-face {
  font-family: Inter;
  src: url("assets/inter-variable-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: Manrope; /* only for the shared signup dialog, which keeps its own type */
  src: url("assets/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --plate: #0a0a0a;
  --arm-upper: #3a3a3a;
  --arm-lower: #1e1e1e;
  /* At hero scale the arms step back halfway to the plate, so the point and the line lead. */
  --hero-arm-upper: #2a2a2a;
  --hero-arm-lower: #181818;
  --chrome: #eaeae5;
  --point: #bad1c5;
  --ash: #8e928f;
  --mist: #c9ccc9;

  --axis-paper: #f5f4f0; --axis-ink: #0a0a0a; --axis-red: #e1261c;
  --wiwo-paper: #edf1f2; --wiwo-ink: #344758; --wiwo-teal: #20a6a3; --wiwo-soft: #52616e;

  --gutter: clamp(20px, 5.6vw, 96px);
  /* One badge pixel at hero scale. The symbol is 194 × 250 badge pixels. */
  --mark-h: min(66svh, 44vw);
  --u: calc(var(--mark-h) / 250);
  --ease: cubic-bezier(.2, .75, .1, 1);

  color-scheme: dark;
  background: var(--plate);
  color: var(--chrome);
  font-family: Archivo, "Helvetica Neue", sans-serif;
  font-stretch: 100%;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--point); color: var(--plate); }
:focus-visible { outline: 2px solid var(--point); outline-offset: 5px; }
.skip-link { position: absolute; z-index: 50; top: 16px; left: 16px; padding: 12px 18px; background: var(--point); color: var(--plate); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Masthead: the badge at its own small size, the venture names opposite. */
.masthead { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 30px var(--gutter); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
/* The supplied PNG, shown through a window that hides its empty canvas. Always on its own plate colour. */
.badge { position: relative; display: block; overflow: hidden; width: 172px; aspect-ratio: 1008 / 252; }
.badge img { position: absolute; max-width: none; width: 126.984127%; height: auto; left: -13.095238%; top: -93.253968%; }
.masthead-nav { display: flex; gap: 34px; }
/* Padding widens each name to a full tap target; the equal negative margin keeps the words where they stand. */
.masthead-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; margin-inline: -8px; font-size: 14px; font-weight: 500; color: var(--ash); transition: color 200ms ease-out; }
.masthead-nav a:hover { color: var(--chrome); }

/* Hero: chevron, point, then the line where the wordmark would stand. */
.hero { display: flex; align-items: center; min-height: 100svh; padding: 110px var(--gutter) 72px; }
.lockup { display: flex; align-items: center; gap: calc(36 * var(--u)); }
.symbol { display: block; flex: none; height: var(--mark-h); width: calc(194 * var(--u)); overflow: visible; }
.arm--upper { fill: var(--arm-upper); }
.arm--lower { fill: var(--arm-lower); }
.hero .arm--upper { fill: var(--hero-arm-upper); }
.hero .arm--lower { fill: var(--hero-arm-lower); }
.point { fill: var(--point); }
.hero h1 { font-size: clamp(38px, 5vw, 84px); font-stretch: 125%; font-weight: 200; line-height: 1.06; letter-spacing: -.025em; }
.hero h1 span { display: block; white-space: nowrap; }
/* The plain sentence under the line: what the attitude is for. */
.proposition { max-width: 34ch; margin-top: 30px; font-size: clamp(17px, 1.35vw, 21px); font-weight: 400; line-height: 1.5; color: var(--mist); text-wrap: balance; }
.lockup-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--ash); text-underline-offset: 6px; transition: text-decoration-color 200ms ease-out; }
.lockup-link:hover { text-decoration-color: var(--point); }

/* Ventures: each venture opens from the house's point. Static by default: the heading, then each venture's world
   at full screen. home.js adds .is-live (unless reduced motion is requested): the jade point stays where the hero
   left it, grows into a world, is carried in as that world's status dot, folds back, then opens the next. Both worlds
   share one frame on the hero's columns (mark under the hero mark, copy on the hero's text axis); identity lives in
   each world's paper, ink, accent and statement type. Design record: explorations/2026-10-23-ventures-point. */
.pt { --axis-x: calc(var(--gutter) + 230 * var(--u)); position: relative; } /* gutter + symbol (194u) + lockup gap (36u) */
.pt-disc, .pt-dot { display: none; }
.pt-intro { display: grid; grid-template-columns: calc(var(--axis-x) - var(--gutter)) minmax(0, 1fr); align-items: center; padding: clamp(96px, 14vh, 160px) var(--gutter); }
.pt-title { grid-column: 2; font-size: clamp(30px, 3.4vw, 56px); font-stretch: 112%; font-weight: 250; line-height: 1.16; letter-spacing: -.02em; }
.pt-title span { display: block; }
.pt-world { --paper: var(--axis-paper); --ink: var(--axis-ink); --soft: var(--axis-ink); --accent: var(--axis-red); display: grid; grid-template-columns: calc(var(--axis-x) - var(--gutter)) minmax(0, 1fr); align-items: center; min-height: 100svh; padding: clamp(64px, 10vh, 120px) var(--gutter); background: var(--paper); color: var(--ink); }
.pt-world--axis { font-family: Inter, Arial, sans-serif; }
.pt-world--wiwo { --paper: var(--wiwo-paper); --ink: var(--wiwo-ink); --soft: var(--wiwo-soft); --accent: var(--wiwo-teal); }
.pt-world ::selection { background: var(--accent); color: #fff; }
.pt-world :focus-visible { outline-color: var(--ink); }
.pt-mark img { max-width: 100%; height: auto; }
.pt-world--axis .pt-mark img { width: clamp(220px, 24vw, 380px); }
.pt-world--wiwo .pt-mark img { width: clamp(96px, 9.5vw, 150px); }
.pt-status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; font-size: 15px; font-weight: 500; }
.pt-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pt-promise { max-width: 13em; font-size: clamp(40px, 4.5vw, 72px); font-stretch: 112%; font-weight: 300; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
/* 1ax6 speaks in its own type, as /1ax6 does: Noto Serif Display for the statement, Inter for the rest. */
.pt-world--axis .pt-promise { font-family: "Noto Serif Display", Georgia, serif; font-stretch: normal; font-weight: 400; line-height: 1.06; letter-spacing: -.02em; }
.pt-note { max-width: 36ch; margin-top: 24px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--soft); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.4; transition: background-color 200ms ease-out, color 200ms ease-out; }
.pt-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.pt-btn--solid { background: var(--ink); color: var(--paper); }
.pt-btn--solid:hover:not(:disabled) { background: transparent; color: var(--ink); }
.pt-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Live: one pinned stage over a 243svh scroll range (home.js maps #axis and #wiwo to each venture's hold). The stage uses
   the dynamic viewport so mobile browser bars never expose a strip of plate under a world. */
.pt.is-live { height: 343svh; }
.is-live .pt-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
/* A vector mask, so the edge stays crisp at any size. */
.is-live .pt-disc { position: absolute; inset: 0; display: block; background: var(--disc, var(--point)); clip-path: circle(var(--r, 0px) at var(--cx) var(--cy)); }
.is-live .pt-intro { position: absolute; inset: 0; padding-block: 0; opacity: var(--intro, 1); }
.is-live .pt-world { position: absolute; inset: 0; min-height: 0; background: transparent; opacity: 0; }
/* The house's point is carried into each world as its status dot, so the drawn dot steps aside. */
.is-live .pt-dot { position: absolute; top: 0; left: 0; display: block; border-radius: 50%; pointer-events: none; }
.is-live .pt-status::before { visibility: hidden; }

/* Close: the symbol returns at signature size. */
.close { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(96px, 16vh, 180px) var(--gutter) 40px; }
.close-sign { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 15px; font-weight: 500; }
.symbol--small { height: 34px; width: calc(34px * 194 / 250); }
.close-top { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ash); transition: color 200ms ease-out; }
.close-top:hover { color: var(--chrome); }
.no-script-note { padding: 24px var(--gutter); font-size: 14px; color: var(--ash); }

/* The one motion: the mark assembles — upper arm, lower arm, the point, then the line. */
@media (prefers-reduced-motion: no-preference) {
  .hero .arm, .hero .point { transform-box: fill-box; }
  .hero .arm--upper { animation: arm-in 1100ms var(--ease) 120ms both; }
  .hero .arm--lower { animation: arm-in 1100ms var(--ease) 240ms both; }
  .hero .point { transform-origin: center; animation: point-in 900ms var(--ease) 720ms both; }
  .hero .lockup-words { animation: words-in 1000ms var(--ease) 980ms both; }
  @keyframes arm-in { from { opacity: 0; transform: translateX(-14%); } to { opacity: 1; transform: none; } }
  @keyframes point-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
  @keyframes words-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
}

/* Narrow screens: the symbol above, the words below; each world stacks its mark above its copy. */
@media (max-width: 820px) {
  :root { --mark-h: min(36svh, 64vw); }
  .masthead { padding-block: 22px; }
  .badge { width: 148px; }
  .masthead-nav { gap: 24px; }
  .hero { align-items: flex-end; padding: 96px var(--gutter) 56px; }
  .lockup { flex-direction: column; align-items: flex-start; gap: 36px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 54px); }
  .pt { --axis-x: var(--gutter); }
  .pt-intro, .pt-world { grid-template-columns: minmax(0, 1fr); }
  .pt-title { grid-column: 1; }
  .pt-world { align-content: center; gap: 40px; }
  /* The statement stands centred under the house's point, which stays where the hero's point stood: the point leads,
     the statement follows, and the point then opens into 1ax6's world. */
  .is-live .pt-intro { align-content: start; justify-items: center; padding: calc(var(--cy) + 3 * var(--r0)) var(--gutter) 0; text-align: center; }
  .is-live .pt-title { translate: var(--shift) 0; }
  .pt-world--axis .pt-mark img { width: 200px; }
  .pt-world--wiwo .pt-mark img { width: 92px; }
  .pt-actions .pt-btn { flex: 1 1 auto; }
  .close { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Short screens: the worlds tighten so the pinned stage never clips them. If a world still does not fit, home.js keeps the
   static layout. */
@media (max-height: 720px) {
  .pt-world { padding-block: clamp(24px, 6vh, 64px); }
  .pt-world--axis .pt-mark img { width: clamp(140px, 18vw, 300px); }
  .pt-world--wiwo .pt-mark img { width: clamp(64px, 7vw, 120px); }
  .pt-status { margin-bottom: 20px; }
  .pt-promise { font-size: min(clamp(32px, 4.5vw, 72px), 9.5vh); }
  .pt-note { margin-top: 16px; }
  .pt-actions { margin-top: 24px; }
}

/* Phones turned sideways (568px wide and up): the mark sits beside the copy, as on desktop. */
@media (min-width: 560px) and (max-width: 820px) and (max-height: 500px) and (orientation: landscape) {
  .pt-world { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 24px; padding: 20px var(--gutter); }
  .pt-world--axis .pt-mark img { width: 100%; max-width: 180px; }
  .pt-world--wiwo .pt-mark img { width: 64px; }
  .pt-promise { font-size: 30px; }
  .pt-note { font-size: 15px; line-height: 1.45; }
  .pt-actions { margin-top: 20px; }
  .pt-btn { min-height: 44px; padding: 10px 18px; }
  /* Here there is room beside the point, so the statement stands beside it, centred on it, as on desktop. */
  .is-live .pt-intro { align-content: start; justify-items: start; padding: 0 var(--gutter) 0 calc(var(--cx) + 3 * var(--r0)); text-align: left; }
  .is-live .pt-title { translate: 0 calc(var(--cy) - 50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
