@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #181813;
  --muted: #5d5b52;
  --line: #d8d3c7;
  --accent: #f1ff54;
  --rust: #a63824;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; }
img, video { display: block; max-width: 100%; }
.shell { width: min(1320px, 100% - 96px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header { min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand-icon { width: 23px; height: 23px; border: 2px dashed currentColor; position: relative; }
.brand-icon::after { content: ""; position: absolute; width: 9px; height: 9px; right: -2px; bottom: -2px; background: currentColor; }
nav { display: flex; align-items: center; gap: clamp(13px, 3vw, 43px); font-weight: 700; }
nav a, .footer a { text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(30px, 6vw, 96px); padding-block: clamp(44px, 6vw, 84px); }
.label { font: 400 .72rem/1.5 "Space Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--rust); border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
h1 { margin-block: 19px 24px; font-size: clamp(75px, 10vw, 156px); font-weight: 700; line-height: .82; letter-spacing: -.095em; }
h1 em { color: var(--rust); font-style: normal; }
.intro { max-width: 390px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.48; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 10px 17px; border: 1px solid var(--ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.primary { color: var(--accent); background: var(--ink); }
.primary:hover { background: var(--accent); color: var(--ink); }
.secondary:hover { background: white; }
.art { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: 380px; aspect-ratio: 1.06; background: var(--accent); color: var(--ink); }
.art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#2225 1px, transparent 1px); background-size: 19px 19px; }
.selection { position: relative; display: grid; place-items: center; width: 65%; aspect-ratio: 1.3; border: 2px solid transparent; container-type: inline-size; }
.selection i { position: absolute; width: 11px; height: 11px; background: var(--ink); }
.selection i:nth-child(1) { top: -6px; left: -6px; }
.selection i:nth-child(2) { top: -6px; right: -6px; }
.selection i:nth-child(3) { bottom: -6px; left: -6px; }
.selection i:nth-child(4) { bottom: -6px; right: -6px; }
.art-type { font-size: 62cqi; font-weight: 700; line-height: 1; letter-spacing: -.13em; padding-right: .13em; transform: translateY(-4%); }
.selection::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  --horizontal-dashes: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  --vertical-dashes: linear-gradient(var(--ink) 50%, transparent 50%);
  background-image: var(--horizontal-dashes), var(--vertical-dashes), var(--horizontal-dashes), var(--vertical-dashes);
  background-size: 12px 2px, 2px 12px, 12px 2px, 2px 12px;
  background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
  background-position: 0 0, 100% 0, 0 100%, 0 0;
}
@keyframes selection-dashes {
  to { background-position: 12px 0, 100% 12px, -12px 100%, 0 -12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selection::before { animation: selection-dashes .72s steps(12, end) infinite; }
}
.cursor { position: absolute; top: 77%; left: 82%; height: 14%; aspect-ratio: .78; background: var(--ink); clip-path: polygon(0 0, 100% 57%, 61% 62%, 78% 95%, 61% 100%, 44% 68%, 17% 93%); }
.section { padding-block: clamp(48px, 6vw, 84px); }
#work { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 31px; }
.section h2 { font-size: clamp(44px, 6.1vw, 87px); line-height: .98; letter-spacing: -.085em; }
.section h2 span { color: var(--rust); }
.section-heading p, .contact p { max-width: 300px; color: var(--muted); line-height: 1.55; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 17px; }
.project { min-width: 0; border-bottom: 1px solid var(--line); }
.project-link { display: block; text-decoration: none; }
.project-link:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.project-image { position: relative; aspect-ratio: 1100 / 788; background: #fff; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.play { position: absolute; display: grid; place-items: center; inset: 50% auto auto 50%; transform: translate(-50%, -50%); background: var(--accent); color: var(--ink); width: 55px; height: 55px; border-radius: 50%; }
.project-copy { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 14px 0 17px; }
.project-copy .label { color: var(--muted); }
.project-copy h3, .service-grid h3 { font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -.055em; line-height: 1.1; margin-top: 4px; }
.project-copy > span { font-size: 22px; }
.services { background: var(--ink); color: var(--paper); }
.services h2 span { color: var(--accent); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-grid article { border-top: 1px solid #f5f2eb55; padding-top: 13px; }
.service-grid p { max-width: 295px; margin-top: 12px; line-height: 1.6; color: #d4d0c5; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.contact p { margin-top: 14px; max-width: none; }
.footer { min-height: 76px; border-top: 1px solid var(--line); }
dialog { width: min(820px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #141411dd; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 16px; }
.dialog-bar h2 { font-size: 19px; }
.dialog-bar button { border: 0; background: transparent; font-size: 32px; cursor: pointer; min-width: 44px; min-height: 44px; }
dialog video { width: 100%; background: #181813; max-height: 70vh; }
.dialog-actions { padding: 13px 16px; }
.dialog-actions a { display: inline-block; margin-right: 16px; }
.dialog-actions a[hidden] { display: none; }
.video-error { margin-bottom: 8px; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 25px; }
  .art { min-height: 280px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .shell { width: calc(100% - 32px); }
  .header { min-height: 65px; gap: 8px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand-icon { width: 18px; height: 18px; }
  nav { font-size: .83rem; gap: 10px; }
  .nav-contact span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; }
  h1 { font-size: clamp(75px, 16vw, 105px); }
  .art { min-height: 0; aspect-ratio: 1.26; }
  .work-grid, .service-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.case-study { padding-block: 32px clamp(48px, 7vw, 100px); }
.case-back { color: var(--muted); font-weight: 700; text-underline-offset: .2em; }
.case-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(25px, 5vw, 75px); padding-block: 34px 50px; }
.case-hero h1 { font-size: clamp(45px, 7vw, 110px); line-height: .93; overflow-wrap: anywhere; }
.case-hero img { width: 100%; height: auto; border: 1px solid var(--line); }
.case-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 100px); border-top: 1px solid var(--line); padding-top: 36px; }
.case-body h2 { margin-bottom: 16px; font-size: clamp(27px, 3.3vw, 44px); letter-spacing: -.055em; }
.case-story { max-width: 710px; }
.case-story section + section { margin-top: 38px; }
.case-story section > div + div { margin-top: 20px; }
.case-story h3 { margin-bottom: 5px; font-size: 1.15rem; }
.case-story p, .case-stack dd { color: var(--muted); line-height: 1.65; }
.case-stack { align-self: start; border: 1px solid var(--line); padding: 24px; }
.case-stack dl, .case-stack dd { margin: 0; }
.case-stack dl > div { border-top: 1px solid var(--line); padding-block: 12px; }
.case-stack dt { font-weight: 700; }
@media (max-width: 720px) {
  .case-hero, .case-body { grid-template-columns: 1fr; }
  .case-hero { padding-block: 24px 36px; }
}
