/* LAKRAZ — 2026 landing system
 * A deliberately small stylesheet: six pages, one grammar.
 * Edge-anchored micro type, film in the background, nothing else.
 * Replaces the retired design-system.css / components.css / kit-pages.css.
 */

/* ─── Type ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'FG';
  src: url('/fonts/fgatf/FranklinGothicATF-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FG';
  src: url('/fonts/fgatf/FranklinGothicATF-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FG';
  src: url('/fonts/fgatf/FranklinGothicATF-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ─── Tokens ────────────────────────────────────────────────── */
:root {
  --bg: #060606;
  --fg: #ece9e2;
  --dim: rgba(236, 233, 226, 0.52);
  --rule: rgba(236, 233, 226, 0.14);
  --rule-hi: rgba(236, 233, 226, 0.34);

  --edge-x: clamp(18px, 3.2vw, 40px);
  --edge-y: clamp(18px, 3vh, 32px);

  --micro: 10px;
  --track: 0.2em;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'FG', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img, video { display: block; max-width: 100%; }

::selection { background: var(--fg); color: var(--bg); }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── Micro type: every label, link and caption on the site ──── */
.micro {
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  /* trailing letter-spacing would otherwise push these off their alignment */
  margin-right: calc(var(--track) * -1);
}

/* underline that draws in from the left on hover */
.link {
  position: relative;
  display: inline-block;
  transition: color 0.3s var(--ease);
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link:hover::after,
.link:focus-visible::after { transform: scaleX(1); }
.link[aria-current="page"] { color: var(--fg); }
.link[aria-current="page"]::after { transform: scaleX(1); }

/* ─── Edge rails ────────────────────────────────────────────── */
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: var(--edge-y) var(--edge-x);
}

.rail--top { padding-bottom: calc(var(--edge-y) * 0.8); }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s var(--ease);
}
.mark:hover { opacity: 0.6; }
.mark img { height: 20px; width: auto; }

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  align-items: center;
}

/* ─── Landing ───────────────────────────────────────────────── */
.landing {
  /* min-height, not height: on short viewports the footer pushes the page
     into a small scroll rather than clipping */
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.landing .rail { position: relative; z-index: 2; }

/* background film */
.film {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Scrim. The clip carries burned-in lyric type across the middle, so the
   centre gets its own pass on top of the edge gradients — otherwise the
   statement fights the footage. */
.film::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(6, 6, 6, 0.55), rgba(6, 6, 6, 0) 100%),
    linear-gradient(to top, rgba(6, 6, 6, 0.85), rgba(6, 6, 6, 0) 34%),
    linear-gradient(to bottom, rgba(6, 6, 6, 0.6), rgba(6, 6, 6, 0) 26%),
    rgba(6, 6, 6, 0.5);
}

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 18px);
  padding: clamp(30px, 6vh, 70px) var(--edge-x);
}

.statement {
  font-weight: 400;
  /* set in caps, so it sits smaller than the sentence-case size it replaced */
  font-size: clamp(10px, 0.8vw, 11px);
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}

/* two ways in, side by side */
/* Equal-width columns: on a shrink-to-fit grid, 1fr resolves to the widest
   item's max-content, so both buttons take the width of CONTACT US. */
.cta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(10px, 1.2vw, 16px);
  justify-content: center;
}
.cta a {
  text-align: center;
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border: 1px solid var(--rule-hi);
  border-radius: 0;
  /* the extra left padding offsets the trailing letter-space */
  padding: 10px 20px 10px calc(20px + var(--track));
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cta a:hover,
.cta a:focus-visible {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.landing .rail--bottom {
  align-items: flex-end;
  gap: clamp(20px, 6vw, 80px);
}

.avail {
  font-size: var(--micro);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--dim);
  /* one unbroken row — the rail is the only thing on this line, so it can
     run its full width; the small-screen query lets it wrap again */
  max-width: none;
  white-space: nowrap;
}
.avail strong { font-weight: 500; color: var(--fg); }

/* ─── Works ─────────────────────────────────────────────────── */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page main { flex: 1; }

.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
  padding: clamp(20px, 4vh, 48px) var(--edge-x) clamp(60px, 10vh, 120px);
}

.work { display: block; }

.work__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0c0c;
  filter: grayscale(1);
  transition: filter 0.6s var(--ease);
}
.work__media img,
.work__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001); /* avoids a hairline gap while the scale transition runs */
  transition: transform 1s var(--ease);
  pointer-events: none;
}
.work:hover .work__media { filter: grayscale(0); }
.work:hover .work__media img,
.work:hover .work__media video { transform: scale(1.04); }

.work__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}
.work__title { font-size: var(--micro); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; }
.work__meta { font-size: var(--micro); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.work__role {
  font-size: var(--micro);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 4px;
}

/* ─── Contact ───────────────────────────────────────────────── */
.contact {
  padding: clamp(40px, 12vh, 140px) var(--edge-x) clamp(60px, 10vh, 120px);
  display: grid;
  gap: clamp(40px, 8vh, 90px);
}

.contact__lead {
  font-weight: 300;
  font-size: clamp(24px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  max-width: 18ch;
  text-wrap: balance;
}

.contact__mail {
  font-weight: 300;
  font-size: clamp(20px, 3.2vw, 42px);
  letter-spacing: -0.01em;
}

.body {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.62;
  color: var(--dim);
}
.body p + p { padding-top: 16px; }
.body strong { font-weight: 500; color: var(--fg); }

/* ─── Legal ─────────────────────────────────────────────────── */
.legal {
  padding: clamp(40px, 10vh, 110px) var(--edge-x) clamp(60px, 10vh, 120px);
  max-width: 62ch;
}
.legal h1 {
  font-weight: 300;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.legal .meta {
  font-size: var(--micro);
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 12px;
}
.legal h2 {
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding-top: 40px;
  padding-bottom: 10px;
}
.legal p, .legal li { font-size: 14px; line-height: 1.65; color: var(--dim); }
.legal p + p { padding-top: 12px; }
.legal ul { list-style: none; }
.legal li { padding-left: 18px; position: relative; }
.legal li + li { padding-top: 8px; }
.legal li::before { content: "—"; position: absolute; left: 0; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Foot ──────────────────────────────────────────────────── */
.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
}
.foot__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  padding: 16px var(--edge-x);
}
.foot__row + .foot__row { border-top: 1px solid var(--rule); }

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.8vw, 26px);
}
.foot__links a { color: var(--dim); transition: color 0.3s var(--ease); }
.foot__links a:hover,
.foot__links a:focus-visible,
.foot__links a[aria-current="page"] { color: var(--fg); }

.foot__note { color: var(--dim); }

/* the landing keeps its own bottom rail above the footer */
.landing .rail--bottom { position: relative; z-index: 2; }

/* ─── Small screens ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .works { grid-template-columns: 1fr; }

  .landing .rail--bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .avail { max-width: none; white-space: normal; }

  .foot__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot__links { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
