@font-face {
  font-family: "ATC Arquette";
  src: url("ATC%20Arquette/WOFF2/ATCArquette-Regular.woff2") format("woff2"),
       url("ATC%20Arquette/WOFF/ATCArquette-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ATC Arquette";
  src: url("ATC%20Arquette/WOFF2/ATCArquette-Medium.woff2") format("woff2"),
       url("ATC%20Arquette/WOFF/ATCArquette-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --muted: #75757a;
  --placeholder: #d9d9d9;
  --bg: #fff;
  --link-hover: #FF2D55;
  --gutter: 40px;     /* outer page margin */
  --col-gap: 40px;    /* space between the intro column and the work */
  --work-gap: 20px;   /* space between the two work columns */
  --header-h: 103px;  /* top of content, from Figma */
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "ATC Arquette", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px var(--gutter) 0;
  height: var(--header-h);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Layout: intro/sticker column + two work columns ---------- */
.layout {
  display: grid;
  /* 334 : 1066 at the 1512px Figma width */
  grid-template-columns: minmax(0, 334fr) minmax(0, 1066fr);
  column-gap: var(--col-gap);
  padding: 0 var(--gutter) 96px;
  align-items: start;
}

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--work-gap);
  align-items: start;
}

.intro {
  margin: 0;
  /* Leaves the stickers starting where they do in Figma. */
  min-height: 174px;
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.work-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- Project cards ---------- */
.project { display: block; margin: 0; }

.thumb {
  display: block;
  width: 100%;
  height: auto;
  background: var(--placeholder);
}

.caption {
  margin: 16px 0 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.caption span { display: block; }
.caption .meta { color: var(--muted); }

/* ---------- Info (anchor target at the bottom of the page) ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.info {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--work-gap);
  margin-top: 120px;
  scroll-margin-top: 18px;
  /* Tall enough that the anchor can scroll the section to the top. */
  min-height: calc(100vh - 18px - 96px);
}

.info-bio {
  grid-column: 1;
  width: 100%;
  max-width: 456px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.2px;
}
.info-bio p { margin: 0 0 16px; }
.info-bio p:last-child { margin-bottom: 0; }

.info-title {
  margin: 0 0 19px;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.credits-title {
  margin: 16px 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.credits-team { display: block; font-weight: 500; }
.credits-group a {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}
.credits-group a:hover { color: var(--link-hover); }

.info-contact { grid-column: 2; padding-top: 30px; max-width: 334px; }
.info-contact .caption a { display: block; }
.info-contact .caption a:hover { color: var(--link-hover); }
.info-contact .caption a[target="_blank"] {
  justify-self: start;
  width: fit-content;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}
.info-contact .spacer { display: block; height: 1.3em; }

.site-nav:hover, .site-title:hover { color: var(--link-hover); }

/* ---------- Stickers ---------- */
.sticker-column {
  grid-row: 1 / span 2; /* runs alongside both the work and the info section */
  align-self: stretch;  /* gives the sticky stage room to travel */
  /* Stickers sit above the work grid so they can be dragged over it. */
  position: relative;
  z-index: 10;
}

.sticker-stage { position: sticky; top: 0; }

.sticker-board {
  position: relative;
  /* Desktop board is 334 x 700, compact board 480 x 400; JS sets the size
     and scales it to the column width. */
  width: 334px;
  height: 700px;
  transform-origin: 0 0;
}

.sticker {
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  will-change: transform;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
  transition: filter .18s ease;
}
.sticker:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
.sticker.is-hover { filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.sticker.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.22));
}
/* While a sticker hovers over its neighbours, only stickers take pointer
   events in their opaque areas (handled in JS). */
.sticker-board.is-busy { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .sticker { transition: none; }
}

/* ---------- Tablet: intro + sticker collage on top, two work columns below ---------- */
@media (max-width: 1099px) {
  :root { --gutter: 24px; --header-h: auto; }
  .site-header { font-size: 30px; padding: 20px var(--gutter) 8px; }
  .layout { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .sticker-column { grid-row: auto; align-self: start; }
  .sticker-stage { position: relative; }
  .intro { min-height: 0; max-width: 560px; padding-bottom: 8px; }
  .work-column { gap: 28px; }
  .caption { margin-top: 12px; font-size: 16px; }
  .info { grid-column: 1; grid-row: auto; margin-top: 88px; min-height: 0; }
  .info-title { font-size: 30px; }
}

/* ---------- Phone: single column ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-header { font-size: 24px; padding: 14px var(--gutter) 4px; }
  .layout { row-gap: 28px; padding-bottom: 64px; }
  .work { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .caption { font-size: 15px; }
  .info { grid-template-columns: minmax(0, 1fr); margin-top: 64px; row-gap: 40px; }
  .info-bio, .info-contact { grid-column: 1; }
  .info-title { font-size: 26px; margin-bottom: 12px; }
  .info-contact { padding-top: 0; }
}
