/* =========================================================================
   grunt.be — the root site (index, mentions-legales, 404)
   Hand-written CSS, no build step. Square corners everywhere.

   The type treatment is deliberately the same system Stray and LOUD use —
   Anton skewed -10deg for display, Archivo for body, the same yellow /
   magenta / cyan on near-black — so the three properties read as one house.
   Fonts are OUR OWN copies under fonts/, not references into stray/assets/,
   so this page cannot break when that directory is reorganised.

   CSP NOTE: the root pages are served with style-src 'self' and
   script-src 'none' (netlify.toml). No inline styles, no JavaScript. Any
   behaviour that would need a script has to be expressible in CSS or not
   exist — which is why the nav has no hamburger and simply drops its two
   text links on narrow screens.
   ========================================================================= */

/* ----------------------------- Fonts (self-hosted) ----------------------- */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* --------------------------------- Tokens -------------------------------- */
:root {
  --ink:      #07060C;
  --ink-2:    #0A0A0C;
  --text:     #FFFFFF;
  --muted:    rgba(255,255,255,0.62);
  --faint:    rgba(255,255,255,0.28);
  --hair:     rgba(255,255,255,0.12);
  --yellow:   #FFC400;
  --magenta:  #E9008F;
  --cyan:     #00C2FF;

  --ease: cubic-bezier(.16,.9,.24,1);
  --sh-cyan:    8px 0 0 rgba(0,194,255,0.5);
  --sh-magenta: 8px 0 0 rgba(233,0,143,0.6);

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

/* --------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;              /* the skew must never scroll the page */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink);
  font-family: "Anton"; text-transform: uppercase;
  letter-spacing: .12em; padding: 12px 18px; transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------- Utilities ------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.c-yellow  { color: var(--yellow); }
.c-cyan    { color: var(--cyan); }
.sh-cyan    { text-shadow: var(--sh-cyan); }
.sh-magenta { text-shadow: var(--sh-magenta); }

/* Display word: Anton, uppercase, skewed, tight leading. Sheared from the
   left-bottom corner so a multi-line block staircases instead of sitting
   flush — the same mechanic Stray's .privacy-title uses. */
.dw {
  display: block;
  font-family: "Anton"; font-weight: 400;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: 0.005em;
  transform: skewX(-10deg);
  transform-origin: left bottom;
}

.eyebrow {
  font-family: "Anton"; text-transform: uppercase;
  font-size: clamp(13px, 1.3vw, 16px); letter-spacing: 0.28em; line-height: 1;
}
.eyebrow-cyan { color: var(--cyan); }

/* --------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: 14px 26px;
  font-family: "Anton"; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: clamp(16px, 1.6vw, 19px);
  transform: skewX(-10deg);
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn > * { transform: skewX(10deg); }   /* un-skew the label */
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: 15px; }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd23f; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--text); }
.btn:hover { transform: skewX(-10deg) translateY(-2px); }

/* ================================ HEADER ================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,6,12,0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand-word {
  display: inline-block;
  font-family: "Anton"; text-transform: uppercase;
  font-size: 26px; letter-spacing: 0.04em;
  transform: skewX(-10deg);
  color: var(--text);
  text-shadow: 5px 0 0 rgba(233,0,143,0.55);
}
.primary-nav ul { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.primary-nav a {
  font-family: "Archivo"; font-weight: 600; font-size: 15px;
  color: var(--muted); transition: color .15s var(--ease);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav .btn { color: var(--ink); }
.primary-nav .btn:hover { color: var(--ink); }

/* ================================= HERO ================================== */
.hero { padding-block: clamp(56px, 9vw, 116px) clamp(40px, 6vw, 76px); }
.hero-title {
  margin-top: 18px;
  font-size: clamp(60px, 13.5vw, 168px);
  font-weight: 400;
}
.hero-title .dw-2 { margin-left: clamp(10px, 2.4vw, 40px); }
.hero-title .dw-3 { margin-left: clamp(20px, 4.8vw, 80px); }

.hero-body {
  margin-top: clamp(26px, 3.4vw, 40px);
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(26px, 3vw, 38px);
}

/* ============================= SECTION SHELL ============================= */
.work, .apps, .contact { padding-block: clamp(48px, 7vw, 96px); }
.work { border-top: 1px solid var(--hair); }
.apps { background: var(--ink-2); border-block: 1px solid var(--hair); }

.sect-title {
  margin-top: 16px;
  font-size: clamp(40px, 7.6vw, 92px);
  font-weight: 400;
}
.sect-title .dw + .dw { margin-left: clamp(10px, 2.2vw, 34px); }

.sect-lead {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 58ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
}

/* ------------------------- What we do — spec table ----------------------- */
/* 2px hairline rows, the same device Stray's "The Deal" table uses. */
.spec-table { margin-top: clamp(30px, 4vw, 46px); }
.spec-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 8px 28px;
  padding-block: 18px;
  border-top: 2px solid var(--hair);
}
.spec-row:last-child { border-bottom: 2px solid var(--hair); }
.spec-row dt {
  flex: 0 0 auto; min-width: 190px;
  font-family: "Anton"; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 15px;
  color: var(--cyan);
}
.spec-row dd {
  flex: 1 1 320px;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
}

/* --------------------------------- Apps ---------------------------------- */
.app-cards {
  display: grid; gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: clamp(30px, 4vw, 46px);
}
.app-card {
  display: flex; flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--hair);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.app-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
/* The art is "the app's screen", and it has to read as one. Both cards used to
   get nothing but a border-bottom, and Stray's artwork painted its own
   background in --ink — the same colour as the card — so the zone had no edge
   at all. A reader could not tell where the app began and the copy ended,
   which is exactly the note that came back about Loud. Now: one screen tone
   for both (--ink-2, a step off the card), and a hairline ring, the same
   device /stray/ already uses on its phone mocks. .app-art-stray and
   .app-art-loud stay as per-app hooks; neither needs a rule today, and that is
   the point — the two must not drift apart again. */
.app-art {
  display: block; position: relative;
  background: var(--ink-2);
  border-bottom: 1px solid var(--hair);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09);
}
.app-art svg { width: 100%; height: auto; display: block; }

.app-body {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 32px);
}
.app-name {
  display: block;
  font-family: "Anton"; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1;
  transform: skewX(-10deg); transform-origin: left bottom;
  text-shadow: 6px 0 0 rgba(0,194,255,0.45);
}
.app-tag {
  display: block;
  font-family: "Archivo"; font-weight: 800;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--yellow);
}
.app-note { display: block; color: var(--muted); font-size: 16px; }
.app-go {
  display: block; margin-top: 6px;
  font-family: "Anton"; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 16px; color: var(--text);
}
.app-card:hover .app-go { color: var(--yellow); }

/* -------------------------------- Contact -------------------------------- */
.contact-title { margin-top: 0; }

/* ================================= FOOTER ================================ */
.site-footer { border-top: 1px solid var(--hair); padding-block: 34px 46px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px 26px;
}
.footer-brand {
  font-family: "Anton"; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 14px;
  /* --muted, not --faint: 28% white is ~2.4:1 on this ground and this line
     is the company name and seat, which is information, not decoration. */
  color: var(--muted);
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--yellow); }

/* ======================= LEGAL / 404 (shared shell) ====================== */
/* mentions-legales.html and 404.html use this file too. The legal text is
   untouched French; only its presentation moved into the house system. */
.legal-page { padding-block: clamp(48px, 7vw, 90px) clamp(40px, 6vw, 70px); }
.legal-page h1 {
  font-family: "Anton"; font-weight: 400; text-transform: uppercase;
  font-size: clamp(42px, 8vw, 92px); line-height: 0.85;
  padding-top: 0.12em;      /* the É in LÉGALES rides above the cap height */
  transform: skewX(-10deg); transform-origin: left bottom;
  text-shadow: var(--sh-magenta);
}
.legal { margin-top: clamp(30px, 4vw, 48px); max-width: 70ch; }
.legal h2 {
  font-family: "Anton"; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 17px;
  color: var(--cyan);
  margin-top: 2.4em; margin-bottom: 0.5em;
  padding-top: 1.1em; border-top: 2px solid var(--hair);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a, .back a, .nf-body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover, .back a:hover, .nf-body a:hover { color: var(--text); }
.back { margin-top: 3em; font-family: "Archivo"; font-weight: 600; }

.nf { padding-block: clamp(70px, 12vw, 150px) clamp(50px, 8vw, 100px); }
.nf-title {
  font-family: "Anton"; font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 14vw, 150px); line-height: 0.82;
  transform: skewX(-10deg); transform-origin: left bottom;
  text-shadow: var(--sh-cyan);
}
.nf-body { margin-top: clamp(24px, 3vw, 34px); font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }

/* ================================ MOTION ================================= */
/* Staggered entrance, the design system's signature. Gated: with reduced
   motion the page is simply already in place. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .dw, .hero-body, .hero-actions {
    animation: rise .7s var(--ease) both;
  }
  .hero-title .dw-1 { animation-delay: .04s; }
  .hero-title .dw-2 { animation-delay: .12s; }
  .hero-title .dw-3 { animation-delay: .20s; }
  .hero-body       { animation-delay: .30s; }
  .hero-actions    { animation-delay: .38s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* The display words carry their own skew, so their keyframes must restate it
   or the animation flattens them for its duration. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .dw { animation-name: rise-skew; }
}
@keyframes rise-skew {
  from { opacity: 0; transform: skewX(-10deg) translateY(14px); }
  to   { opacity: 1; transform: skewX(-10deg) translateY(0); }
}

/* ============================== NARROW SCREENS =========================== */
/* No JavaScript is available here (script-src 'none'), so there is no
   hamburger to open. The two text links drop and the button stays — the page
   is short and its sections are reachable by scrolling. */
@media (max-width: 640px) {
  .primary-nav li:not(:last-child) { display: none; }
  .spec-row dt { min-width: 100%; }
  .hero-title .dw-2, .hero-title .dw-3 { margin-left: 0; }
  .sect-title .dw + .dw { margin-left: 0; }
}
