:root {
  --paper: #EDEBE6;
  --ink: #141414;
  --blue: #2B4BFF;
  --display: "Unbounded", Arial, sans-serif;
  --text: "Geist", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }

/* `hidden` must win over any display rule (placeholder slots, held-back tiles). */
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  overflow-x: hidden;
}

/* Title screen */

.title {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
}

.cross {
  position: absolute;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1;
  opacity: 0.4;
}

.hello {
  position: absolute;
  left: var(--gutter);
  top: var(--gutter);
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 22px);
  line-height: 1.25;
  text-transform: uppercase;
}

.logo {
  position: absolute;
  right: var(--gutter);
  top: var(--gutter);
  width: clamp(36px, 3.5vw, 52px);
  height: auto;
}

.bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(64px, 11vw, 180px);
  height: min(72%, 70vw);
  translate: -50% -50%;
  background: var(--blue);
}

.name {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 8.2vw, 140px);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  mix-blend-mode: multiply;
  perspective: 800px;
}

.name .ch {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

.corner {
  position: absolute;
  bottom: var(--gutter);
  margin: 0;
  font-size: clamp(12px, 1vw, 14px);
}

.corner-left { left: var(--gutter); }

.motion-toggle {
  position: absolute;
  left: 50%;
  bottom: calc(var(--gutter) - 8px);
  translate: -50% 0;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.motion-toggle:hover { background: var(--ink); color: var(--paper); }
.motion-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.corner-right { right: var(--gutter); }

/* The footer's location line is too long to share a row with the copyright on small phones, so it stacks above it. */
@media (max-width: 400px) {
  .contact .corner-right { right: auto; left: var(--gutter); bottom: calc(var(--gutter) + 22px); }
}

/* About me: the intro sits in the same text column as Experience below it (after the 7.5rem years column). */

.about {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--ink);
}

.about .section-title { grid-column: 1 / -1; margin-bottom: 0; }

.about-intro { grid-column: 2; max-width: 64ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; }
.about-intro p { margin: 0 0 1.1em; }

/* The three facts sit in the left column, like the years in Experience. */
.about-facts {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
  color: var(--blue);
}

@media (max-width: 720px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-intro { grid-column: 1; }
  .about-facts { grid-column: 1; grid-row: auto; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
}



/* Section bar: sits under the title screen in the flow, then sticks to the top. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.site-nav a { padding: 12px 0; color: var(--ink); font-size: 13px; text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="true"] { text-decoration: underline 2px var(--blue); text-underline-offset: 6px; }
.site-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Jumps land below the bar, not under it. */
main section, .contact { scroll-margin-top: 44px; }

/* Experience */

.experience {
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--ink);
}

.roles { margin: 0; padding: 0; list-style: none; }

.roles li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 6px clamp(20px, 3vw, 48px);
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

.role-years {
  font-size: 13px;
  color: var(--blue);
  padding-top: 4px;
}

.roles h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
  text-transform: uppercase;
}

.role-org {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.75;
}

.role-line {
  margin: 10px 0 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.6;
}

/* Studios and clients: plain text under the roles, no logos. */
.names {
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: clamp(18px, 2.2vw, 28px) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  display: grid;
  gap: 14px;
}
.names div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 6px clamp(20px, 3vw, 48px); }
.names dt { font-size: 13px; color: var(--blue); }
.names dd { margin: 0; max-width: 64ch; font-size: 15px; line-height: 1.6; }

/* Skills and teams: two columns, Skills first when stacked. */
.skills {
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--ink);
}
.skills-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.skills-head {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
  text-transform: uppercase;
}
.skill-groups { margin: 0; }
.skill-groups div { padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.skill-groups dt { font-size: 13px; color: var(--blue); }
.skill-groups dd { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }
.teams p { margin: 0 0 1.1em; max-width: 60ch; font-size: 15px; line-height: 1.6; }
.teams p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .names div, .skills-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Reels */

.reels {
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--ink);
}

.section-title {
  margin: 0 0 clamp(32px, 5vw, 64px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 112px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}


.reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}


.reel h3 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.1;
  text-transform: uppercase;
}

.reel-tags {
  margin: 0 0 16px;
  font-size: 13px;
  opacity: 0.7;
}

.reel-blurb {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
}

/* Thumbnail first; script.js swaps in the player on click so nothing loads from Vimeo/YouTube until asked. */
.player,
.reel iframe,
.case-figure iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
}

.player {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}

.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: scale 0.5s ease;
}

.play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.player:hover img { scale: 1.03; }
.player:hover .play,
.player:focus-visible .play { background: var(--blue); color: var(--paper); }
.player:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.projects { border-top: 0; } /* leads the page while Reels is hidden */

.breakdown-link {
  display: inline-block;
  padding: 8px 0;
  margin-top: 20px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline 2px var(--blue);
  text-underline-offset: 6px;
}

.breakdown-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (max-width: 720px) {
  .reel,
  .roles li { grid-template-columns: minmax(0, 1fr); }
}

/* Contact */

.contact {
  position: relative;
  min-height: 100svh;
  padding: clamp(80px, 14vh, 160px) var(--gutter) 96px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.contact-bar {
  position: absolute;
  right: 12%;
  top: 0;
  width: clamp(64px, 11vw, 180px);
  height: 62%;
  background: var(--blue);
}

/* On phones the text runs full width, so the bar shrinks to a block above the heading instead of crossing it. */
@media (max-width: 720px) {
  .contact-bar { height: clamp(48px, 10vh, 72px); }
}

.contact-title {
  position: relative;
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 112px); /* same scale as section titles, so the name on the title screen stays the largest type */
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.contact-role {
  position: relative;
  max-width: 40ch;
  margin: 0 0 16px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

.contact-email {
  position: relative;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-email:hover,
.contact-email:focus-visible { background: var(--blue); color: var(--paper); }
.contact-email:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.contact-address { position: relative; margin: 14px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.contact-address:empty { margin: 0; }

.contact-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.contact-links a {
  display: inline-block;
  padding: 8px 0; /* taller tap target, same look */
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}

/* Blue text on ink is ~2.8:1, so hover underlines in blue instead of recolouring. */
.contact-links a:hover {
  text-decoration: underline 2px var(--blue);
  text-underline-offset: 6px;
}

.contact a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* Projects grid: one tile per project; a breakdown link only where a page exists. */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.proj-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
}

.proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 0.5s ease; }
.proj-media:hover img { scale: 1.03; }
/* A breakdown tile carries the same pill as a video tile, so each tile shows its one action before the click. */
a.proj-media { position: relative; }
a.proj-media:hover .play,
a.proj-media:focus-visible .play { background: var(--blue); color: var(--paper); }

/* Tile videos play here, large; reels and case pages play in place. */
.lightbox {
  width: min(92vw, 140vh);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(20 20 20 / 0.88); }
.lightbox iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: var(--ink); }
.lightbox-close {
  display: block;
  min-height: 44px;
  margin: 0 0 12px auto;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { background: var(--blue); color: var(--paper); }
.lightbox-close:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
/* More than one video: a row of pills under the player, the one playing filled in. */
.lightbox-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lightbox-list[hidden] { display: none; }
.lightbox-list button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lightbox-list button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.lightbox-list button:hover,
.lightbox-list button:focus-visible { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.lightbox-list button:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.proj-media:focus-visible, .proj h3 a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* No footage yet: the tile's kind of work set large in dark grey, plus a plain note. No Play, no link. */
.proj-media--empty { position: relative; container-type: inline-size; }
.ph-tag {
  position: absolute;
  inset: 14px 16px auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(16px, 6.5cqi, 34px); /* sized by the tile, so long tags never reach the note */
  line-height: 1.05;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 22%, var(--ink));
}
.ph-note { position: absolute; left: 16px; bottom: 14px; font-size: 13px; color: var(--paper); }

.proj h3 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
}

.proj h3 a { display: inline-block; padding: 3px 0; color: var(--ink); text-decoration: underline 2px var(--blue); text-underline-offset: 5px; } /* 24 px target (WCAG 2.5.8) */
.proj .reel-tags { margin: 0; font-size: 13px; }
/* Project filters: one pressed chip at a time; the count under them is announced. */
.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.proj-filters button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.proj-filters button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.proj-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.proj-filters button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
/* See more: the last tile of the first view */
.proj-more-tile { display: flex; }
.proj-more-tile[hidden] { display: none; }
.proj-more-tile button {
  flex: 1; min-height: 160px; padding: 24px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2vw, 26px); text-transform: uppercase; cursor: pointer;
}
.proj-more-tile button:hover { background: var(--ink); color: var(--paper); }
.proj-more-tile button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.proj-count { margin: 0 0 clamp(20px, 3vw, 32px); font-size: 13px; color: color-mix(in srgb, var(--ink) 70%, var(--paper)); }

.proj-more { margin: clamp(32px, 4vw, 48px) 0 0; font-size: 15px; }

.proj-blurb { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }

/* Project breakdown pages */

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gutter);
}

.case-logo { display: block; width: 40px; height: 40px; }

.case-back {
  display: inline-block;
  padding: 4px 0; /* 24 px target (WCAG 2.5.8) */
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.case-back:hover { text-decoration: underline 2px var(--blue); text-underline-offset: 6px; }

.case { padding: 0 var(--gutter) clamp(64px, 9vw, 120px); }

/* The one loud element: the title over a blue bar, echoing the title screen. */
.case-head {
  position: relative;
  padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
}

.case-title-wrap { position: relative; }

/* Bar sits behind the title only; ink text on this blue fails contrast at small sizes. */
.case-bar {
  position: absolute;
  left: clamp(24px, 8vw, 140px);
  top: -24px;
  bottom: -12px;
  width: clamp(48px, 8vw, 130px);
  background: var(--blue);
}

.case-title {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 15vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  mix-blend-mode: multiply;
}

.case-meta {
  position: relative;
  margin: 20px 0 0;
  font-size: 14px;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0;
  margin: 0 0 clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--ink);
}

.case-facts div {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

.case-facts dt {
  font-size: 13px;
  color: var(--blue);
}

.case-facts dd {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.case-body {
  max-width: 66ch;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
}

.case-body h2 {
  margin: clamp(40px, 5vw, 64px) 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  text-transform: uppercase;
}

.case-body p { margin: 0 0 1.1em; }
.case-body ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.case-body li { margin-bottom: 0.5em; }

.case-wide {
  max-width: 1100px;
  margin: clamp(32px, 4vw, 56px) auto;
}

.case-figure img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.case-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
}

.case-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 16px;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 45%, transparent);
  border-radius: 14px;
  font-size: 14px;
  text-align: center;
}

.case-end {
  max-width: 66ch;
  margin: clamp(40px, 5vw, 64px) auto 0;
}
