/* rytz.co — rebuilt from the 2025 Framer site, measured section by section.
   Framer breakpoints: desktop ≥1200px, tablet 960–1199px, phone <960px.
   Type steps down again below 1365px, as it did on Framer. */

/* Brand fonts, taken from the Framer site. Each file is a single weight.
   Argent is declared at 400 only, so <strong> gets the browser's synthetic
   bold — the heavy hero the Framer site had. Integral's weight range stops
   that from happening to the display type. */
@font-face {
  font-family: "Argent CF";
  src: url("/fonts/Argent-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Integral CF";
  src: url("/fonts/Integral-Regular.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0f0f0f;
  --card: #171717;
  --button: #1f1f1f;
  --button-hover: #2e2e2e;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --dim: rgba(255, 255, 255, 0.5);
  --accent: #ff6a00;
  --ok: #41b78e;

  --display: "Integral CF", "Arial Black", sans-serif;
  --serif: "Argent CF", Georgia, serif;
  --mono: "Courier Prime", "Courier New", monospace;

  --pad: max(48px, calc((100% - 1268px) / 2));
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; font-weight: 400; }
.accent { color: var(--accent); }
.wrap { padding-inline: var(--pad); }

/* Type presets */
h2, h3, h4, .brand, .roll, figcaption, .connect, .buttons a, .copyright {
  font-family: var(--display);
}
h2 { font-size: 48px; line-height: 1.3; }
h3 { font-size: 32px; line-height: 1.4; letter-spacing: 0.01em; }
h4, figcaption { font-size: 24px; line-height: 1.4; letter-spacing: 0.02em; }

/* Lines next to section titles */
.title-row { display: flex; align-items: center; gap: 48px; }
.title-row .rule { flex: 1; height: 1px; background: var(--line); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--header);
  mix-blend-mode: exclusion;
}
/* Progressive blur under the header: eight bands, each twice as blurry as
   the one below it */
.header-blur { position: fixed; inset: 0 0 auto 0; height: var(--header); z-index: 9; pointer-events: none; }
.header-blur i { position: absolute; inset: 0; }
.header-blur i:nth-child(1) { backdrop-filter: blur(0.078px); mask-image: linear-gradient(to top, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); }
.header-blur i:nth-child(2) { backdrop-filter: blur(0.156px); mask-image: linear-gradient(to top, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); }
.header-blur i:nth-child(3) { backdrop-filter: blur(0.3125px); mask-image: linear-gradient(to top, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); }
.header-blur i:nth-child(4) { backdrop-filter: blur(0.625px); mask-image: linear-gradient(to top, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); }
.header-blur i:nth-child(5) { backdrop-filter: blur(1.25px); mask-image: linear-gradient(to top, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); }
.header-blur i:nth-child(6) { backdrop-filter: blur(2.5px); mask-image: linear-gradient(to top, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%); }
.header-blur i:nth-child(7) { backdrop-filter: blur(5px); mask-image: linear-gradient(to top, transparent 75%, #000 87.5%, #000 100%); }
.header-blur i:nth-child(8) { backdrop-filter: blur(10px); mask-image: linear-gradient(to top, transparent 87.5%, #000 100%); }

/* "View Project →" pill that follows the mouse over work cards */
.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 13; pointer-events: none;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; color: #0f0f0f;
  font-family: var(--serif); font-size: 14px; line-height: 1.5; white-space: nowrap;
  opacity: 0; transition: opacity .2s;
}
.view-cursor.on { opacity: 1; }
.header-row { display: flex; align-items: center; gap: 60px; padding-top: 24px; }
.brand, .roll { font-size: 16px; line-height: 1.7; letter-spacing: -0.01em; white-space: nowrap; }
.progress { position: relative; flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.progress-fill {
  position: absolute; inset: 0; background: var(--dim);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.site-header nav { display: flex; gap: 60px; }
.roll { display: block; height: 1.7em; overflow: hidden; }
.roll span { display: block; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.roll span::after { content: attr(data-text); display: block; }
.roll:hover span { transform: translateY(-50%); }

/* Hero */
.hero {
  min-height: 85vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: 80px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 104px; line-height: 1.05;
  max-width: 75%;
  margin-bottom: 70px;
  text-wrap: balance;
}
.hero h1 strong { font-weight: 700; }
.hero-meta {
  display: flex; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--dim);
}
.meta-line { flex: 1; height: 1px; background: var(--line); }
.meta-status { display: flex; align-items: center; gap: 5px; color: var(--ok); }
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid #41ba90;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(.45, 1); } }

/* Intro */
.intro { display: flex; align-items: flex-start; gap: 23px; }
.intro img { width: 50%; height: auto; aspect-ratio: 635 / 773; object-fit: cover; }
.intro p { max-width: 468px; margin-top: 5px; font-size: 24px; line-height: 1.4; }
.intro .w { opacity: var(--o, 1); }

/* About */
.manifesto { margin-top: 180px; max-width: 75%; color: var(--dim); }
.facts-row { position: relative; margin-top: 59px; display: flex; justify-content: flex-end; }
.cv {
  position: absolute; left: 0; bottom: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 16px; line-height: 1.7; letter-spacing: -0.01em;
}
.facts { flex: none; width: 803px; display: flex; flex-direction: column; gap: 10px; }
.fact {
  display: grid; grid-template-columns: minmax(0, 1fr) 390px; column-gap: 77px;
  padding-block: 36px; border-bottom: 1px solid var(--line);
}
.fact:first-child { border-top: 1px solid var(--line); }
.fact h4 { color: var(--accent); }
.fact li {
  position: relative;
  font-size: 24px; line-height: 1.4; letter-spacing: -0.04em;
}
.fact li::before { content: "•"; position: absolute; left: -25px; }
.p-only { display: none; }

/* Festivals, awards, talks & coverage */
.recognition { margin-top: 180px; height: 300vh; }
.recognition-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.recognition .title-row { padding-top: 124px; }
.recognition h2 { max-width: 700px; color: var(--dim); }
.dots {
  position: absolute; left: 50%; top: 239px; width: 50%; height: 661px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23363636'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.panels {
  position: absolute; top: 297px; left: 0;
  display: flex; gap: 10px;
  padding-inline: var(--pad);
  will-change: transform;
}
.panel {
  flex: none; height: 603px; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--card);
}
.logos { display: grid; grid-auto-rows: 120px; align-items: center; }
.logos img { width: 120px; height: 120px; object-fit: contain; }
.panel-festivals { width: 1584px; }
.panel-festivals .logos { grid-template-columns: repeat(10, 120px); column-gap: 32px; row-gap: 47.5px; }
.panel-talks { width: 709px; }
.panel-talks .logos { grid-template-columns: repeat(4, 120px); column-gap: 43px; row-gap: 30px; }
.panel-coverage { width: 855px; }
.panel-coverage .logos { grid-template-columns: repeat(4, 120px); column-gap: 80px; row-gap: 30px; }

/* Capabilities */
.capabilities { padding-top: 124px; padding-bottom: 50px; }

/* Work: cards stack as they reach the header */
.card {
  position: sticky; top: var(--header);
  display: block; height: 387px; padding-top: 80px;
  background: var(--card);
}
.card-row { display: flex; align-items: flex-start; gap: 59px; }
.card-title { flex: 1; display: flex; justify-content: space-between; gap: 24px; }
.card .year { color: var(--dim); white-space: nowrap; }
.card img {
  flex: none; width: 302px; height: 227px; object-fit: cover;
  filter: grayscale(1); opacity: .5;
  transition: filter .4s ease, opacity .4s ease;
}
.card:hover img { filter: grayscale(0); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .card { cursor: none; } }

/* Behind the scene */
.bts { padding-top: 124px; padding-bottom: 48px; }
.ticker {
  margin: 48px 48px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
}
.ticker-track { display: flex; gap: 20px; width: max-content; animation: ticker var(--ticker-time, 42s) linear infinite; }
.ticker-track li { flex: none; width: 400px; height: 400px; }
.ticker-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ticker { to { transform: translateX(var(--ticker-shift, -50%)); } }

/* Contact */
.site-footer { background: var(--bg); }
.footer-inner {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 122px; padding-bottom: 36px;
}
.connect { font-size: 88px; line-height: 1.15; }
.aside { font-size: 32px; line-height: 1.4; letter-spacing: -0.04em; color: var(--dim); }
.buttons { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); }
.buttons a {
  height: 108px; display: flex; align-items: center; justify-content: center;
  background: var(--button); transition: background-color .2s;
  font-size: 24px; line-height: 1.4; letter-spacing: 0.02em; text-align: center;
}
.buttons a:nth-child(2), .buttons a:hover { background: var(--button-hover); }
.copyright { margin-top: 36px; font-size: 14px; line-height: 1.5; }
.rights { font-size: 14px; line-height: 1.5; color: var(--dim); }

/* Entrance effects (main.js adds .in) */
.js .appear { opacity: 0; transform: translateY(150px); }
.js .appear-on-view { opacity: 0; }
.js .appear, .js .appear-on-view { transition: opacity 1s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.js .in { opacity: 1; transform: none; }

/* ---------- Smaller type: below 1365px ---------- */
@media (max-width: 1364px) {
  .hero h1 { font-size: 80px; }
  h2 { font-size: 40px; }
  h3 { font-size: 28px; }
  h4, figcaption { font-size: 20px; letter-spacing: 0.04em; }
}

/* ---------- Tablet: 960–1199px ---------- */
@media (max-width: 1199px) {
  :root { --pad: 80px; }
  .hero { min-height: 88.5vh; padding-bottom: 64px; }
  .intro { gap: 24px; }
  /* Framer switched this paragraph to Inter below desktop */
  .intro p {
    margin-top: 2px;
    font-family: "Inter", sans-serif; font-weight: 600;
    font-size: 20px; letter-spacing: -0.04em;
  }
  .connect { font-size: 70px; }
  .aside { font-size: 26px; }
  .manifesto { margin-top: 80px; }
  .facts-row { margin-top: 32px; }
  .facts { width: 600px; }
  .fact { column-gap: 76px; }

  .recognition { margin-top: 160px; height: auto; }
  .recognition-pin { position: static; height: auto; overflow: visible; }
  .recognition .title-row { padding-top: 0; }
  .dots { display: none; }
  .panels { position: static; flex-direction: column; margin-top: 48px; padding-inline: 48px; transform: none !important; }
  .panel { width: auto; height: auto; justify-content: flex-start; }
  .panel .logos { grid-template-columns: repeat(5, 100px); column-gap: 74.5px; row-gap: 30px; grid-auto-rows: 100px; }
  .logos img { width: 100px; height: 100px; }
  figcaption { margin-top: 40px; }

  .capabilities { padding-top: 100px; }
  .card { height: 279px; padding-top: 64px; }
  .card-row { gap: 60px; }
  .card img { width: 201px; height: 151px; }
  .bts { padding-top: 80px; }
  .ticker { margin-inline: 0; }
  .footer-inner { padding-top: 80px; }
  .buttons { margin-top: 28px; }
  .buttons a { font-size: 16px; line-height: 1.7; letter-spacing: -0.01em; }
  .copyright { margin-top: 28px; }
}

/* ---------- Phone: below 960px ---------- */
@media (max-width: 959px) {
  :root { --pad: 24px; }
  .header-row { justify-content: space-between; }
  .progress, .nav-hide { display: none; }

  .hero { min-height: 65vh; padding-top: 120px; padding-bottom: 40px; }
  .hero h1 { font-size: 44px; max-width: none; margin-bottom: 36px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 33px; }
  .meta-line { display: none; }
  .meta-status { order: -1; }

  .intro { flex-direction: column; gap: 24px; }
  .intro img { width: 100%; aspect-ratio: 342 / 417; }
  .intro p { max-width: none; margin-top: 0; font-size: 18px; }

  h2 { font-size: 28px; }
  h3, h4, figcaption { font-size: 18px; letter-spacing: 0.02em; }
  .manifesto { margin-top: 95px; max-width: none; }
  .facts-row { margin-top: 60px; flex-direction: column; align-items: stretch; gap: 65px; }
  .cv { position: static; }
  .facts { width: auto; }
  .fact { grid-template-columns: 1fr; row-gap: 8px; padding-block: 24px; }
  .fact ul { padding-left: 28px; }
  .p-only { display: inline; }

  .recognition { margin-top: 97px; }
  .recognition .title-row { padding-top: 0; }
  .recognition h2 { max-width: none; }
  .title-row .rule { display: none; }
  .panels { margin-top: 35px; padding-inline: 24px; gap: 11px; }
  .panel { padding: 36px 24px; }
  .panel .logos { grid-template-columns: repeat(3, 60px); column-gap: 41.5px; row-gap: 10px; grid-auto-rows: 60px; }
  .logos img { width: 60px; height: 60px; }
  figcaption { margin-top: 50px; }

  .capabilities { padding-top: 96px; padding-bottom: 48px; }
  .card { height: auto; padding-block: 48px; }
  .card-row { flex-direction: column; gap: 16px; }
  .card img { order: -1; width: 100%; height: auto; aspect-ratio: 342 / 257; }
  .card-title { width: 100%; }
  .bts { padding-top: 48px; padding-bottom: 50px; }
  .ticker { margin-top: 38px; }
  .ticker-track { gap: 10px; }
  .ticker-track li { width: 200px; height: 200px; }

  .footer-inner { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
  .connect { font-size: 28px; }
  .footer-bottom { margin-top: 36px; }
  .aside { font-size: 20px; }
  .buttons { margin-top: 68px; grid-template-columns: 1fr; }
  .buttons a { font-size: 18px; line-height: 1.4; letter-spacing: 0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .dot { animation: none; }
  .js .appear, .js .appear-on-view { opacity: 1; transform: none; transition: none; }
}
