@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/dm-mono.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --red: #de143c;
  --black: #000;
  --white: #fff;
  --pad: clamp(18px, 2.2vw, 36px);
  --line: 1px solid var(--black);
  --ease: cubic-bezier(.76, 0, .24, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

::selection { color: var(--white); background: var(--red); }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--black);
  transform: translate(-50%, -150%);
  transition: transform .2s;
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 22px var(--pad);
  mix-blend-mode: normal;
}

.wordmark {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  width: max-content;
  font-size: 17px;
  line-height: 1.06;
  letter-spacing: .04em;
}

.desktop-nav {
  display: flex;
  gap: clamp(22px, 3vw, 54px);
  padding-top: 2px;
  font-size: 11px;
  text-transform: uppercase;
}

.desktop-nav a, .work-links a, footer a { position: relative; }
.desktop-nav a::after, .work-links a::after, footer a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}

.desktop-nav a:hover::after, .work-links a:hover::after, footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .2s;
}

.menu-toggle i { position: relative; }
.menu-toggle i::before, .menu-toggle i::after { position: absolute; left: 0; content: ""; }
.menu-toggle i::before { top: -7px; }
.menu-toggle i::after { top: 7px; }
.menu-toggle[aria-expanded="true"] i { background: transparent; }
.menu-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 110px var(--pad) var(--pad);
  color: var(--white);
  background: var(--red);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path .65s var(--ease);
}

.menu-panel.is-open { clip-path: inset(0); pointer-events: auto; }
.menu-panel nav { display: grid; align-self: center; }
.menu-panel nav a {
  display: grid;
  grid-template-columns: 60px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.55);
  font-size: clamp(30px, 5.5vw, 88px);
  line-height: 1;
  text-transform: uppercase;
}
.menu-panel nav a span { padding-top: .65em; font-size: 11px; }
.menu-panel > p { justify-self: end; font-size: clamp(14px, 2vw, 26px); }

.section-rule { border-bottom: var(--line); }

.hero {
  padding: clamp(130px, 15vh, 190px) var(--pad) 70px;
}

.hero-brand {
  display: grid;
  align-content: center;
  min-height: calc(100svh - 220px);
  padding-bottom: clamp(70px, 10vh, 130px);
}

.hero-brand h1 {
  position: relative;
  z-index: 2;
  display: grid;
  font-size: clamp(96px, 16.5vw, 252px);
  font-weight: 400;
  line-height: .7;
  letter-spacing: -.105em;
}

.hero-brand h1 span:last-child { justify-self: end; padding-right: .06em; }
.hero-brand > p {
  justify-self: end;
  margin-top: 42px;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-feature {
  position: relative;
  padding-top: clamp(70px, 11vh, 130px);
  border-top: var(--line);
}

.book-eyebrow {
  position: absolute;
  top: 18px;
  left: 0;
  font-size: 9px;
  letter-spacing: .08em;
}

.book-feature h2 {
  position: relative;
  z-index: 2;
  display: grid;
  justify-content: center;
  font-size: clamp(58px, 8.1vw, 126px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.08em;
  text-align: center;
}

.book-feature h2 span:first-child { transform: translateX(-8%); }
.book-feature h2 span:last-child { transform: translateX(3%); }

.hero-media {
  position: relative;
  width: min(76vw, 1120px);
  height: clamp(340px, 48vh, 580px);
  margin: 30px auto 0;
  overflow: hidden;
  background: #eee;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  transform: scale(1.02);
}

.hero-media figcaption {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 3px 6px;
  color: var(--white);
  background: var(--black);
  font-size: 9px;
}

.hard-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: max-content;
  min-height: 46px;
  margin: 28px auto 0;
  padding: 10px 18px;
  color: var(--red);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: .16em;
  transition: color .25s, background .25s, border-color .25s;
}

.hard-button:hover { color: var(--black); border-color: var(--red); background: var(--red); }
.hard-button span { font-size: 24px; letter-spacing: 0; }

.red-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--black);
  background: var(--red);
  border: 1px solid var(--red);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.red-button:visited { color: var(--black); }
.red-button:hover { color: var(--black); box-shadow: 5px 5px 0 var(--white); transform: translate(-2px, -2px); }

.profile { padding: 68px var(--pad) 90px; }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  padding-bottom: 44px;
}
.section-heading > p { font-size: 16px; }
.section-heading h2 {
  font-size: clamp(72px, 12vw, 188px);
  font-weight: 400;
  line-height: .74;
  letter-spacing: -.08em;
}

.profile-statements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--line);
}

.statement { min-width: 0; padding: 22px 24px 0 0; }
.statement + .statement { padding-left: 24px; border-left: var(--line); }
.statement > div { display: flex; justify-content: space-between; color: var(--red); }
.statement > div span { font-size: 24px; }
.statement h3 { margin: 52px 0 26px; font-size: clamp(34px, 4vw, 66px); font-weight: 400; letter-spacing: -.07em; }
.statement p { max-width: 48ch; margin-top: 14px; font-size: 12px; }
.store-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 68px;
  padding: 18px 22px;
  color: var(--black);
  background: var(--red);
  font-size: clamp(24px, 4vw, 64px);
  letter-spacing: -.05em;
}
.store-link span { transition: transform .35s var(--ease); }
.store-link:hover span { transform: translate(6px, -6px); }

.projects { padding: 50px var(--pad) 74px; }
.projects-head, .work-head, .archive-head, .apps-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
}
.projects-head h2, .work-head h2, .archive-head h2, .apps-heading h2, .contact h2 {
  font-size: clamp(22px, 2.3vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.05em;
}
.projects-head > p, .work-head > p, .archive-head > p { font-size: 9px; letter-spacing: .08em; }
.projects-head > p span { margin-left: 20px; font-size: 17px; }

.edit-table {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.65fr) minmax(280px, .9fr);
  gap: 26px;
  align-items: stretch;
  min-height: 590px;
}

.project-index { display: grid; align-content: center; gap: 36px; margin: 0; padding: 0; list-style: none; }
.project-trigger { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.project-trigger span { font-size: 18px; }
.project-trigger i { width: 28px; height: 1px; background: currentColor; transition: width .3s; }
.project-trigger.is-active { color: var(--red); }
.project-trigger.is-active i { width: 42px; }

.project-stage {
  --cut: 52%;
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #111;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.stage-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-image { opacity: 1; transition: opacity .32s var(--ease), transform .7s var(--ease); }
.stage-image.is-switching { opacity: .12; transform: scale(1.025); }
.stage-metadata {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: var(--cut);
  padding: 48px 26px;
  overflow: hidden;
  color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.93);
  transition: width .12s linear;
}
.stage-kicker { width: 220px; font-size: 15px; }
.stage-metadata dl { display: grid; gap: 28px; width: 220px; margin-top: 76px; }
.stage-metadata dl div { display: grid; gap: 2px; }
.stage-metadata dt { color: rgba(255,255,255,.35); font-size: 9px; }
.stage-metadata dd { font-size: 11px; }
.cut-line {
  position: absolute;
  inset: 0 auto 0 var(--cut);
  z-index: 4;
  width: 2px;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
  transform: translateX(-1px);
  transition: left .12s linear;
}
.cut-line > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--black);
  background: var(--red);
  border: 1px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 9px;
  letter-spacing: .06em;
  transform: translate(-50%, -50%);
}
.stage-instruction {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 5;
  padding: 5px 7px;
  color: var(--black);
  background: var(--red);
  font-size: 8px;
}

.project-copy { display: flex; min-width: 0; flex-direction: column; padding: 22px 0; }
.project-name { min-height: 1.7em; font-size: clamp(38px, 4.2vw, 66px); line-height: .85; letter-spacing: -.08em; }
.project-year { min-height: 28px; margin: 18px 0; font-size: 20px; }
.project-visit { align-self: flex-start; margin-bottom: 24px; }
.project-list { display: grid; margin-top: auto; border-top: 1px solid #bbb; }
.project-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 8px 0;
  width: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bbb;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color .25s, background .25s, padding .25s;
}
.project-link img { width: 72px; height: 56px; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.project-link > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-link small { color: var(--red); font-size: 8px; white-space: nowrap; }
.project-link:hover, .project-link:focus-visible, .project-link.is-active { padding-right: 8px; color: var(--black); background: #f0f0f0; }
.project-link:hover img, .project-link:focus-visible img, .project-link.is-active img { filter: none; }
.project-name-trigger { min-height: 58px; padding: 10px 0; border: 0; border-top: 1px solid #bbb; background: none; cursor: pointer; text-align: left; transition: padding-left .3s, color .3s; }
.project-name-trigger:hover, .project-name-trigger.is-active { padding-left: 12px; color: var(--red); }

.professional { padding: 52px var(--pad) 64px; color: var(--white); background: var(--black); }
.work-row {
  display: grid;
  grid-template-columns: 55px 1fr 1fr auto;
  align-items: baseline;
  min-height: 52px;
  padding: 14px 0;
  border-bottom: 1px solid #555;
}
.work-row span, .work-row p, .work-row time { font-size: 11px; }
.work-row h3 { font-size: 15px; font-weight: 400; }
.work-descriptions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
}
.work-descriptions p { padding: 20px; border-right: 1px solid #555; border-bottom: 1px solid #555; color: #aaa; font-size: 10px; }
.work-descriptions strong { color: var(--white); font-weight: 400; }
.work-links { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 40px; font-size: 10px; }
.work-links .cv-link { color: var(--red); }

.collaborator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #555;
  border-left: 1px solid #555;
}

.collaborator-card { min-width: 0; border-right: 1px solid #555; border-bottom: 1px solid #555; }
.collaborator-media { display: block; min-width: 0; overflow: hidden; }
.collaborator-card figure { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #171717; }
.collaborator-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.collaborator-card figure.brand-logo { display: grid; place-items: center; background: var(--white); }
.collaborator-card figure.brand-logo img { width: 84%; height: 72%; object-fit: contain; }
.collaborator-card figure.webedia-logo img { width: 76%; height: 64%; }
.collaborator-card figure.sensacine-logo { background: #f9cc1f; }
.collaborator-card figure.sensacine-logo img { width: 88%; height: 72%; }
.collaborator-card figure.toni-guy-logo { background: var(--black); }
.collaborator-card figure.toni-guy-logo img { width: 42%; height: 62%; }
.collaborator-card figure.studio-reina-logo { background: #560019; }
.collaborator-card figure.studio-reina-logo img { width: 78%; height: 58%; }
.collaborator-card figure figcaption { position: absolute; right: 0; bottom: 0; padding: 5px 7px; color: var(--black); background: var(--red); font-size: 8px; }
.collaborator-card > div { display: flex; min-height: 220px; flex-direction: column; padding: 20px; }
.collaborator-card > div > p:first-child { color: var(--red); font-size: 9px; }
.collaborator-card h3 { margin: 28px 0 14px; font-size: clamp(26px, 3vw, 48px); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.collaborator-card > div > p:nth-of-type(2) { max-width: 45ch; color: #aaa; font-size: 10px; }
.collaborator-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 20px; }
.collaborator-actions a { color: var(--red); font-size: 8px; letter-spacing: .04em; }
.collaborator-actions a:hover { color: var(--white); }
.collaborator-card:hover figure img { transform: scale(1.035); }

.cv-showcase {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) 1.4fr;
  min-height: 520px;
  margin-top: 56px;
  border: 1px solid #555;
}
.cv-showcase figure { overflow: hidden; }
.cv-showcase figure img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 48%; transition: transform .7s var(--ease); }
.cv-showcase:hover figure img { transform: scale(1.025); }
.cv-showcase > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: clamp(26px, 4vw, 64px); }
.cv-showcase > div > p:first-child { color: var(--red); font-size: 10px; }
.cv-showcase h3 { font-size: clamp(54px, 8vw, 120px); font-weight: 400; line-height: .82; letter-spacing: -.08em; }
.cv-showcase > div > p:nth-of-type(2) { max-width: 46ch; color: #aaa; font-size: 11px; }
.cv-showcase .red-button:hover { box-shadow: 5px 5px 0 var(--white); }

.archive { padding: 52px var(--pad) 70px; }
.contact-sheet { display: grid; grid-template-columns: repeat(5, 1fr); border-top: var(--line); border-left: var(--line); }
.contact-sheet figure { position: relative; aspect-ratio: 1; overflow: hidden; border-right: var(--line); border-bottom: var(--line); background: #eee; }
.contact-sheet img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .45s, transform .7s var(--ease); }
.contact-sheet figcaption { position: absolute; right: 0; bottom: 0; padding: 4px 6px; color: var(--white); background: var(--black); font-size: 8px; transform: translateY(100%); transition: transform .3s var(--ease); }
.contact-sheet figure:hover img { filter: grayscale(0); transform: scale(1.035); }
.contact-sheet figure:hover figcaption { transform: none; }

.apps { display: block; padding: 52px var(--pad) 70px; }
.apps-heading { display: flex; padding-right: 0; }
.apps-heading p { max-width: 38ch; margin-top: 18px; font-size: 10px; }
.apps-showcase { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--line); border-left: var(--line); }
.app-card { display: grid; grid-template-rows: minmax(300px, 1.25fr) auto; min-width: 0; border-right: var(--line); border-bottom: var(--line); }
.app-visual { position: relative; min-height: 340px; overflow: hidden; background: #eee; }
.app-visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.app-card:hover .app-visual > img { transform: scale(1.035); }
.app-icon { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 110px; height: 110px; color: var(--white); background: var(--black); border: 1px solid var(--white); font-size: 70px; line-height: 1; }
.task-icon svg { width: 72px; }
.cloud-icon { color: var(--white); }
.cloud-icon svg { width: 76px; }
.app-content { display: grid; grid-template-columns: 1fr auto; gap: 16px 30px; align-items: start; padding: 24px; }
.app-content > p:first-child { grid-column: 1 / -1; color: var(--red); font-size: 9px; }
.app-content h3 { font-size: clamp(38px, 5vw, 74px); font-weight: 400; letter-spacing: -.07em; line-height: .9; }
.app-content > p:nth-of-type(2) { max-width: 42ch; color: #555; font-size: 10px; }
.app-content .red-button { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
.app-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.app-actions .red-button { margin-top: 0; }
.app-card-sky .app-content { order: 2; }
.app-card-light { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); grid-template-rows: minmax(390px, auto); }
.app-card-light .app-visual { min-height: 390px; border-right: var(--line); background: #ffe2c9; }
.app-card-light .app-visual > img { object-fit: contain; }
.app-card-light .app-content { align-content: center; }
.lightning-icon svg { width: 68px; }
.app-card-bubbles { grid-column: 1 / -1; grid-template-columns: minmax(300px, .65fr) minmax(0, 1.55fr); grid-template-rows: minmax(390px, auto); }
.app-card-bubbles .app-content { grid-template-columns: 1fr; align-content: center; }
.app-card-bubbles .app-content > p:first-child,
.app-card-bubbles .app-content .red-button { grid-column: 1; }
.app-card-bubbles .app-content > p:nth-of-type(2) { max-width: 34ch; }
.app-card-bubbles .app-visual { min-height: 390px; border-left: var(--line); background: #e8e8e8; }
.app-card-bubbles .app-visual > img { object-fit: cover; }
.bubbles-icon svg { width: 68px; }
.app-card-filmspine { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); grid-template-rows: minmax(460px, auto); }
.app-card-filmspine .app-content { grid-template-columns: 1fr; align-content: center; }
.app-card-filmspine .app-content > p:first-child,
.app-card-filmspine .app-content .red-button { grid-column: 1; }
.app-card-filmspine .app-content > p:nth-of-type(2) { max-width: 36ch; }
.filmspine-banner { min-height: 460px; border-right: var(--line); background: linear-gradient(135deg, #f5b34b 0%, #b9600c 48%, #2a120a 100%); isolation: isolate; }
.filmspine-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 68px, rgba(0, 0, 0, .16) 69px 70px); mix-blend-mode: multiply; }
.filmspine-emblem { position: absolute; top: 44%; right: 6%; width: clamp(170px, 28vw, 330px); aspect-ratio: 1; overflow: hidden; border: 2px solid var(--black); box-shadow: 16px 16px 0 rgba(0, 0, 0, .28); transform: translateY(-50%) rotate(5deg); opacity: .78; }
.filmspine-emblem img { width: 100%; height: 100%; object-fit: cover; }
.filmspine-banner-type { display: none; }
.filmspine-phone { position: absolute; top: 50%; left: 14%; width: clamp(170px, 18vw, 200px); aspect-ratio: 720 / 1558; z-index: 3; overflow: hidden; padding: 7px; border: 3px solid #343434; border-radius: 38px; background: #050505; box-shadow: 18px 18px 0 rgba(0, 0, 0, .34); transform: translateY(-50%) rotate(-4deg); transition: transform .7s var(--ease); }
.app-card-filmspine:hover .filmspine-phone { transform: translateY(-50%) rotate(0deg) scale(1.025); }
.filmspine-phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }
.filmspine-island { position: absolute; top: 14px; left: 50%; z-index: 2; width: 34%; height: 18px; border-radius: 999px; background: #000; transform: translateX(-50%); }
.filmspine-icon { color: var(--white); }
.filmspine-icon svg { width: 68px; }

.contact { display: grid; grid-template-columns: .9fr 1.6fr; gap: 40px; padding: 56px var(--pad); border-bottom: var(--line); }
.contact-intro p { max-width: 28ch; margin-top: 24px; color: #666; font-size: 10px; text-transform: uppercase; }
.contact-links { display: grid; align-content: center; }
.contact-links > a { width: max-content; max-width: 100%; font-size: clamp(28px, 4.5vw, 72px); line-height: 1.08; letter-spacing: -.07em; }
.contact-links > p { display: flex; gap: 22px; margin-top: 10px; font-size: clamp(30px, 4vw, 60px); }
.contact-links > p span { color: var(--red); }

footer { display: flex; justify-content: space-between; gap: 18px; padding: 16px var(--pad); font-size: 8px; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .menu-toggle { grid-column: 2; }
  .hero { padding-top: 150px; }
  .hero-brand { min-height: 620px; }
  .hero-brand h1 { font-size: clamp(96px, 17vw, 170px); }
  .book-feature h2 { font-size: clamp(50px, 10.5vw, 90px); }
  .hero-media { width: 86vw; height: 48vw; }
  .section-heading { grid-template-columns: .6fr 1.4fr; }
  .edit-table { grid-template-columns: 52px minmax(0, 1.5fr) minmax(220px, .8fr); gap: 16px; min-height: 500px; }
  .project-stage { min-height: 500px; }
  .stage-metadata { padding: 34px 20px; }
  .work-descriptions { grid-template-columns: repeat(2, 1fr); }
  .collaborator-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-sheet { grid-template-columns: repeat(4, 1fr); }
  .apps-heading { padding-bottom: 30px; }
  .app-visual { min-height: 280px; }
}

@media (max-width: 720px) {
  :root { --pad: 16px; }
  body { font-size: 12px; }
  .site-header { position: absolute; padding-top: 18px; }
  .wordmark { gap: 16px; font-size: 14px; }
  .wordmark span:first-child { display: none; }
  .wordmark::before { content: "RAFA"; }
  .menu-toggle { min-width: 44px; min-height: 44px; padding: 0 0 0 8px; font-size: 12px; }
  .menu-panel { grid-template-columns: 1fr; padding-top: 90px; }
  .menu-panel nav a { grid-template-columns: 36px 1fr; font-size: 34px; }
  .menu-panel > p { justify-self: start; margin-top: 30px; }
  .hero { padding-top: 110px; padding-bottom: 38px; }
  .hero-brand { min-height: calc(100svh - 110px); padding-bottom: 70px; }
  .hero-brand h1 { font-size: 22.5vw; line-height: .73; }
  .hero-brand > p { justify-self: start; margin-top: 34px; }
  .book-feature { padding-top: 58px; }
  .book-feature h2 { justify-content: start; font-size: clamp(43px, 13vw, 68px); line-height: .86; text-align: left; }
  .book-feature h2 span:first-child, .book-feature h2 span:last-child { transform: none; }
  .hero-media { width: 100%; height: 71vw; margin-top: 20px; }
  .hero-media img { object-position: 48% 48%; }
  .book-link { margin-top: 18px; font-size: 11px; }
  .profile { padding-top: 42px; padding-bottom: 52px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 42px; font-size: 24vw; }
  .profile-statements { grid-template-columns: 1fr; }
  .statement { padding: 20px 0 36px; }
  .statement + .statement { padding-left: 0; border-top: var(--line); border-left: 0; }
  .statement h3 { margin: 36px 0 18px; font-size: 48px; }
  .statement p { font-size: 11px; }
  .store-link { margin-top: 18px; padding: 14px; font-size: 24px; }
  .projects { padding-top: 36px; padding-bottom: 44px; }
  .projects-head { align-items: start; }
  .projects-head > p { max-width: 110px; text-align: right; }
  .edit-table { display: grid; grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .project-index { display: none; }
  .project-stage {
    display: block;
    grid-row: 1;
    width: 100%;
    height: clamp(280px, 80vw, 360px);
    min-height: 280px;
    aspect-ratio: auto;
    isolation: isolate;
  }
  .stage-metadata { padding: 28px 18px; }
  .stage-metadata dl { margin-top: 46px; }
  .cut-line > span { width: 42px; height: 42px; box-shadow: 4px 4px 0 var(--black); font-size: 8px; }
  .project-copy { padding: 4px 0 0; }
  .project-name { min-height: 1.7em; font-size: 34px; }
  .project-year { min-height: 20px; margin: 8px 0 10px; font-size: 16px; }
  .project-visit { min-height: 42px; margin-bottom: 8px; padding: 10px 14px; }
  .project-list {
    display: flex;
    width: calc(100% + 16px);
    margin-right: -16px;
    overflow-x: auto;
    border-top: var(--line);
    scrollbar-width: none;
  }
  .project-list::-webkit-scrollbar { display: none; }
  .project-link { flex: 0 0 220px; grid-template-columns: 54px 1fr; min-height: 60px; padding: 6px 10px 6px 0; border-right: var(--line); border-bottom: 0; }
  .project-link img { width: 54px; height: 48px; filter: none; }
  .project-link:hover, .project-link:focus-visible, .project-link.is-active { padding-right: 12px; }
  .professional { padding-top: 38px; }
  .work-row { grid-template-columns: 32px 1.2fr .85fr; }
  .work-row time { grid-column: 2; margin-top: 5px; color: #888; }
  .work-row h3 { font-size: 13px; }
  .work-row p { text-align: right; }
  .work-descriptions { grid-template-columns: 1fr; margin-top: 36px; }
  .collaborator-grid { grid-template-columns: 1fr; }
  .collaborator-card { display: grid; grid-template-columns: 43% 1fr; }
  .collaborator-card figure { min-height: 218px; aspect-ratio: auto; }
  .collaborator-card figure img { filter: none; }
  .collaborator-card > div { min-height: 260px; padding: 16px; }
  .collaborator-card h3 { margin: 24px 0 12px; font-size: 28px; }
  .cv-showcase { grid-template-columns: 1fr; min-height: 0; margin-top: 36px; }
  .cv-showcase figure { aspect-ratio: 4 / 3; }
  .cv-showcase figure img { filter: none; }
  .cv-showcase > div { min-height: 430px; padding: 24px 18px; }
  .cv-showcase h3 { font-size: 58px; }
  .work-links { display: grid; grid-template-columns: 1fr 1fr; }
  .archive { padding-top: 38px; }
  .archive-head { align-items: start; }
  .archive-head p { width: 100px; text-align: right; }
  .contact-sheet { grid-template-columns: repeat(2, 1fr); }
  .contact-sheet img { filter: none; }
  .contact-sheet figcaption { transform: none; }
  .apps { display: block; padding-top: 38px; }
  .apps-heading { display: block; padding-right: 0; }
  .apps-showcase { grid-template-columns: 1fr; }
  .app-card-light { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .app-card-light .app-visual { min-height: 214px; border-right: 0; border-bottom: var(--line); }
  .app-card-bubbles { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .app-card-bubbles .app-content { order: 2; }
  .app-card-bubbles .app-visual { order: 1; min-height: 214px; border-left: 0; border-bottom: var(--line); }
  .app-card-filmspine { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .app-card-filmspine .app-content { order: 2; }
  .app-card-filmspine .filmspine-banner { order: 1; min-height: 430px; border-right: 0; border-bottom: var(--line); }
  .filmspine-emblem { top: 38%; right: -4%; width: 205px; }
  .filmspine-banner-type { display: none; }
  .filmspine-phone { right: auto; left: 9%; width: 175px; border-radius: 31px; }
  .filmspine-phone > img { border-radius: 23px; }
  .filmspine-island { top: 12px; height: 15px; }
  .app-card-filmspine .app-icon { right: 12px; left: auto; }
  .app-visual { min-height: 300px; }
  .app-icon { right: 12px; bottom: 12px; width: 86px; height: 86px; font-size: 54px; }
  .task-icon svg { width: 60px; }
  .cloud-icon svg { width: 60px; }
  .lightning-icon svg { width: 56px; }
  .bubbles-icon svg { width: 56px; }
  .filmspine-icon svg { width: 56px; }
  .app-content { grid-template-columns: 1fr; padding: 18px; }
  .app-content > p:first-child, .app-content .red-button { grid-column: 1; }
  .app-actions { grid-column: 1; align-items: stretch; }
  .app-actions .red-button { width: 100%; }
  .app-content h3 { font-size: 50px; }
  .contact { grid-template-columns: 1fr; gap: 42px; padding-top: 42px; }
  .contact-links > a { width: auto; font-size: clamp(25px, 8.4vw, 48px); overflow-wrap: anywhere; }
  .contact-links > p { font-size: 36px; }
  footer { flex-wrap: wrap; }
  footer p:nth-child(2) { order: 3; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
