:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #63625d;
  --paper: #fff8ed;
  --paper-deep: #f7ead9;
  --white: #ffffff;
  --line: #151515;
  --soft-line: #eadccb;
  --coral: #ff7058;
  --sun: #ffd15c;
  --teal: #1fa59a;
  --lilac: #bfa3ff;
  --shadow: 7px 7px 0 var(--ink);
  --soft-shadow: 0 24px 70px rgba(21, 21, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 21, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 42px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 248, 237, 0.92);
  box-shadow: 0 8px 0 rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.brand-copy {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 13px;
  line-height: 1;
}

.brand-copy {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nav-links {
  gap: 10px;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--white);
  font-size: 14px;
  font-weight: 850;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav-links a:hover {
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.hero-work {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 46px;
  align-items: center;
  min-height: 100vh;
  padding: 112px 42px 50px;
  background:
    linear-gradient(135deg, rgba(255, 112, 88, 0.17), transparent 32%),
    linear-gradient(315deg, rgba(31, 165, 154, 0.18), transparent 34%);
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: 210px 190px;
  gap: 16px;
  align-self: stretch;
  min-height: 490px;
  padding-top: 28px;
}

.mosaic-tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.mosaic-tile:hover,
.mosaic-tile:focus-visible {
  box-shadow: 10px 10px 0 var(--ink);
  outline: none;
  transform: translate(-2px, -2px) rotate(0deg);
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 209, 92, 0.28), rgba(31, 165, 154, 0.16)),
    var(--white);
}

.mosaic-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--sun);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.mosaic-tile-large {
  grid-row: span 2;
  transform: rotate(-1.2deg);
}

.mosaic-tile-tall {
  transform: rotate(1.4deg);
}

.hero-copy {
  position: relative;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.resume-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

.hero-copy h1 {
  font-size: 92px;
  font-weight: 950;
}

.hero-lede {
  max-width: 540px;
  margin: 18px 0 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.45;
}

.capability-tags,
.hero-actions,
.resume-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capability-tags {
  margin-top: 26px;
}

.capability-tags span,
.work-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.capability-tags span:nth-child(2),
.work-tags span:nth-child(2n) {
  background: var(--sun);
}

.capability-tags span:nth-child(3),
.work-tags span:nth-child(3n) {
  background: #dff8f4;
}

.hero-actions,
.resume-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 4px 4px 0 var(--ink);
  outline: none;
  transform: translate(-1px, -1px);
}

.button.primary {
  background: var(--coral);
}

.button.secondary {
  background: var(--sun);
}

.button.text-link {
  background: var(--white);
}

.studio-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--ink);
}

.studio-strip div {
  min-height: 112px;
  padding: 22px 24px;
  border-right: 2px solid var(--line);
  background: var(--white);
}

.studio-strip div:nth-child(2) {
  background: var(--sun);
}

.studio-strip div:nth-child(3) {
  background: #dff8f4;
}

.studio-strip div:nth-child(4) {
  border-right: 0;
  background: #ffe0d7;
}

.studio-strip strong,
.studio-strip span {
  display: block;
}

.studio-strip strong {
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.studio-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.section {
  padding: 86px 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2,
.resume-copy h2 {
  font-size: 64px;
  font-weight: 950;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.featured-work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.featured-card,
.work-card {
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.featured-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.featured-card:nth-child(2) {
  background: #dff8f4;
}

.featured-card:nth-child(3) {
  background: #ffe0d7;
}

.featured-card:hover,
.featured-card:focus-visible {
  outline: none;
  transform: translate(-1px, -1px);
}

.featured-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.featured-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.featured-copy strong,
.featured-copy small {
  display: block;
}

.featured-copy strong {
  font-size: 18px;
  line-height: 1.18;
}

.featured-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.work-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--sun);
  font-size: 12px;
  font-weight: 950;
}

.filter-bar {
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  background: var(--ink);
  color: var(--white);
  outline: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.work-card:nth-child(3n + 2) {
  box-shadow: 7px 7px 0 var(--teal);
}

.work-card:nth-child(3n + 3) {
  box-shadow: 7px 7px 0 var(--coral);
}

.work-card:hover,
.work-card:focus-visible {
  box-shadow: 10px 10px 0 var(--ink);
  outline: none;
  transform: translate(-2px, -2px);
}

.work-card-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: var(--paper-deep);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.work-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-tags span {
  min-height: 24px;
  border-width: 1.5px;
  padding: 3px 8px;
  font-size: 11px;
}

.work-card-title {
  display: block;
  min-width: 0;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.work-card-description {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.work-card-foot {
  display: block;
  border-top: 2px solid var(--soft-line);
  padding-top: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.resume-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 46px;
  align-items: center;
  border-top: 2px solid var(--line);
  background: var(--sun);
}

.resume-copy > p {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 750;
}

.resume-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.resume-list div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.resume-list dt {
  font-weight: 950;
}

.resume-list dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.resume-preview {
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.resume-preview img {
  width: 100%;
  height: auto;
}

.viewer[hidden] {
  display: none;
}

.viewer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.76);
  backdrop-filter: blur(10px);
}

.viewer-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  width: min(1180px, 100%);
  height: min(780px, 92vh);
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.34);
}

.viewer-main {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  border-right: 2px solid var(--line);
  background: var(--white);
}

.viewer-main img {
  width: min(100%, 820px);
  max-height: 100%;
  object-fit: contain;
  padding: 20px;
}

.viewer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--sun);
}

.viewer-kicker,
.viewer-pages {
  margin: 0;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.viewer-kicker {
  color: var(--teal);
}

.viewer-info h2 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#viewer-description {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.viewer-pages {
  margin-top: 18px;
  color: var(--ink);
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--coral);
  box-shadow: 4px 4px 0 var(--ink);
  outline: none;
}

body.viewer-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .hero-work {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
  }

  .hero-copy {
    order: -1;
  }

  .hero-mosaic {
    min-height: 420px;
    padding-top: 0;
  }

  .featured-work,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-links {
    gap: 7px;
  }

  .nav-links a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero-work,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-work {
    padding-top: 92px;
  }

  .hero-copy h1,
  .section-heading h2,
  .resume-copy h2 {
    font-size: 44px;
  }

  .hero-lede,
  .resume-copy > p {
    font-size: 18px;
  }

  .studio-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-strip div:nth-child(2) {
    border-right: 0;
  }

  .studio-strip div:nth-child(3) {
    border-top: 2px solid var(--line);
  }

  .studio-strip div:nth-child(4) {
    border-top: 2px solid var(--line);
  }

  .section-heading,
  .resume-section,
  .viewer-panel {
    grid-template-columns: 1fr;
  }

  .viewer-panel {
    height: 100%;
  }

  .viewer-main {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .viewer-info {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px 150px;
    gap: 12px;
    min-height: auto;
  }

  .mosaic-tile {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .mosaic-tile span {
    font-size: 10px;
  }

  .featured-work,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .resume-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .viewer {
    padding: 0;
  }

  .viewer-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 44px;
    height: 34px;
    font-size: 12px;
  }

  .brand-copy span {
    font-size: 14px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .hero-copy h1,
  .section-heading h2,
  .resume-copy h2 {
    font-size: 38px;
  }

  .hero-mosaic {
    grid-template-rows: 148px 134px;
  }

  .studio-strip {
    grid-template-columns: 1fr;
  }

  .studio-strip div,
  .studio-strip div:nth-child(2) {
    border-right: 0;
  }

  .studio-strip div + div {
    border-top: 2px solid var(--line);
  }

  .featured-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .button {
    width: 100%;
  }

  .viewer-actions .button {
    width: calc(100% - 56px);
  }
}
