/* fs-oliverboyle — shared styles (tokens, fonts, nav, footer, text styles, lines, cards) */
@import url("./assets/fonts/fonts.css");

:root {
  --aspekta: "Aspekta Variable Variable", sans-serif;
  --news: "Newsreader Variable", serif;
  --black: var(--c2);
  --white: var(--c1);
  --line: var(--c3);
  --pad: 24px;             /* section side padding */
  --feat: "blwf", "cv03", "cv04", "cv09", "cv11", "ss02";
  --vh: 100vh;
}
@media (max-width: 809.98px) { :root { --pad: 8px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--aspekta);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; }
button { font: inherit; }

/* ---------- text styles (Framer presets) ---------- */
.t-link {           /* 16px link style */
  font-family: var(--aspekta); font-size: 16px; font-weight: 1000; line-height: 19.2px; letter-spacing: -0.24px;
  font-variation-settings: "wght" 400; font-feature-settings: var(--feat);
}
.t-label {          /* 13px label style */
  font-family: var(--aspekta); font-size: 13px; font-weight: 1000; line-height: 17.55px; letter-spacing: 0.065px;
  font-variation-settings: "wght" 400; font-feature-settings: var(--feat);
}
.t-h {              /* big display heading */
  font-family: var(--aspekta); font-size: 95px; font-weight: 1000; line-height: 85.5px; letter-spacing: -3.8px;
  font-variation-settings: "wght" 600; font-feature-settings: normal; text-transform: uppercase;
}
.t-card {           /* card title */
  font-family: var(--aspekta); font-size: 25px; font-weight: 1000; line-height: 30px; letter-spacing: -1px;
  font-variation-settings: "opsz" 36, "wght" 400; font-feature-settings: "ss02";
}
.t-body {           /* Newsreader large body */
  font-family: var(--news); font-size: 39px; font-weight: 400; line-height: 46.8px; letter-spacing: -1.17px;
  font-variation-settings: "opsz" 36, "wght" 350; font-feature-settings: normal;
}
.t-body-s {         /* Newsreader small body */
  font-family: var(--news); font-size: 25px; font-weight: 400; line-height: 30px; letter-spacing: -0.75px;
  font-variation-settings: "opsz" 36, "wght" 350; font-feature-settings: normal;
}
@media (min-width: 810px) and (max-width: 1199.98px) {
  .t-h { font-size: 76px; line-height: 68.4px; letter-spacing: -3.04px; }
  .t-body { font-size: 31px; line-height: 37.2px; letter-spacing: -0.93px; }
  .t-body-s { font-size: 20px; line-height: 24px; letter-spacing: -0.6px; }
}
@media (max-width: 809.98px) {
  .t-link { font-size: 14px; line-height: 16.8px; letter-spacing: -0.21px; }
  .t-label { font-size: 11px; line-height: 14.85px; letter-spacing: 0.055px; }
  .t-h { font-size: 49px; line-height: 44.1px; letter-spacing: -1.96px; }
  .t-card { font-size: 20px; line-height: 24px; letter-spacing: -0.5px; }
  .t-body { font-size: 25px; line-height: 30px; letter-spacing: -0.75px; }
  .t-body-s { font-size: 20px; line-height: 24px; letter-spacing: -0.6px; }
}
.u { text-transform: uppercase; }

/* ---------- 4-column background lines ---------- */
.lines { position: absolute; inset: 0; padding: 0 var(--pad); pointer-events: none; z-index: 0; }
.lines > div { position: relative; width: 100%; height: 100%; }
.lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.lines i:nth-child(1) { left: 0; }
.lines i:nth-child(2) { left: 25%; }
.lines i:nth-child(3) { left: 50%; }
.lines i:nth-child(4) { left: 75%; }
.lines i:nth-child(5) { left: calc(100% - 1px); }

/* ---------- text roll (two stacked copies, hover moves them up one line) ---------- */
.roll { display: block; overflow: hidden; position: relative; height: 1lh; }
.roll-in { display: flex; flex-direction: column; will-change: transform; }
.roll-in > * { white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 16px var(--pad) 0;
  color: var(--white);
  max-width: 1600px; margin: 0 auto;
}
.nav.dark { color: var(--black); }
.nav > div { padding-left: 8px; display: flex; align-items: center; }
.nav a { display: block; width: max-content; }
@media (max-width: 809.98px) {
  .nav { padding: 8px var(--pad) 0; }
  .nav .t-link { font-size: 11px; line-height: 14.85px; letter-spacing: 0.055px; }
}

/* ---------- footer ---------- */
.footer { position: relative; overflow: clip; padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; }
.footer-bg { position: absolute; inset: 0; background: linear-gradient(to top, var(--c4) 0%, var(--c1) 100%); }
.footer-content { position: relative; z-index: 1; width: 100%; padding: 65px 0 12px; display: flex; flex-direction: column; align-items: center; }
.footer-grid { width: 100%; max-width: 1552px; padding: 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 16px; row-gap: 60px; }
.f-touch { grid-column: span 4; display: flex; flex-direction: column; gap: 8px; padding: 0 24px 60px 0; overflow: clip; }
.f-touch .t-body-s { max-width: 500px; }
.f-email { padding-top: 12px; }
.f-email a { display: block; width: max-content; }
.f-nav { grid-column: 1 / 2; display: flex; flex-direction: column; gap: 16px; overflow: clip; }
.f-nav .links { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.f-social { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 8px; overflow: clip; }
.f-social .links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.f-copy { grid-column: 4 / 5; display: flex; flex-direction: column; gap: 2px; }
.f-name { grid-column: span 4; display: flex; align-items: center; gap: 40px; }
.f-name svg { width: 100%; height: auto; overflow: visible; }
.f-name h1 {
  font-family: var(--aspekta); font-size: 149px; font-weight: 1000; line-height: 0.9em; letter-spacing: -0.065em;
  font-variation-settings: "wght" 600; text-transform: uppercase; white-space: nowrap; color: var(--black);
}
@media (max-width: 809.98px) {
  .f-nav, .f-social, .f-copy { grid-column: span 4; }
}

/* ---------- work cards (home + work listing) ---------- */
.wcard-w { grid-column: span 2; padding: 0 8px; display: flex; flex-direction: column; justify-content: center; will-change: transform; }
.wcard { display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; overflow: clip; }
.wimg { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: clip; }
.wimg figure { position: absolute; inset: 0; will-change: transform; }
.wimg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.winfo { width: 100%; display: flex; align-items: center; gap: 24px; padding: 0 12px; overflow: clip; }
.winfo .wtitle { flex: 1 1 0; min-width: 0; }
.winfo .wtitle h2 { overflow: hidden; text-overflow: clip; }
.winfo .wcat { white-space: nowrap; }
@media (max-width: 809.98px) {
  .wcard-w { grid-column: span 4; }
}

/* ---------- motion helpers ---------- */
.split .w { white-space: nowrap; }
.split .c { display: inline-block; will-change: transform; }
.split[data-reveal] .c { opacity: 0.001; }
.ani-done .c { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .split[data-reveal] .c { opacity: 1; transform: none; }
  .wcard-w { transform: none !important; }
}
