:root {
  color-scheme: dark;
  --background: #101010;
  --surface: #151515;
  --line: #303030;
  --text: #f5f5f3;
  --muted: #a4a4a4;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid #eee; outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: #111; background: #eee; }
h1, h2, h3, p { margin: 0; }
section[id], .about-contact { scroll-margin-top: 24px; }

.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px; background: #fff; color: #111; }
.eyebrow { font: 500 .8125rem/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; }

.site-header { display: flex; align-items: center; min-height: 81px; border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: .94rem; font-weight: 700; letter-spacing: .015em; white-space: nowrap; }
.brand-mark, .footer-mark { flex: none; background: url("../favicon.svg") center / contain no-repeat; }
.brand-mark { width: 24px; height: 24px; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); font-size: .875rem; color: #bcbcbc; white-space: nowrap; }
.site-header nav a:hover { color: #fff; }
.header-contact { border: 1px solid #434343; border-radius: 5px; padding: 10px 15px; color: var(--text); }
.header-contact:hover { background: #242424; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(530px, 73svh, 730px); background: radial-gradient(ellipse at 72% 45%, #242424, #121212 52%, #101010 78%); }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #101010c9, #10101040 42%, transparent 66%), linear-gradient(0deg, #101010 2%, transparent 22%); }
.hero[data-interactive] { cursor: grab; }
.hero[data-dragging] { cursor: grabbing; }
.hero-content { display: grid; min-height: inherit; grid-template-rows: 1fr auto; padding-block: 28px 21px; }
.hero-copy { position: relative; z-index: 2; align-self: center; justify-self: start; pointer-events: none; padding-block: 22px 40px; }
.hero-copy a, .hero-toolbar button { pointer-events: auto; }
.about-kicker::before { content: ""; width: 21px; height: 1px; background: #a1a1a1; }
.hero h1 { font-size: clamp(4.1rem, 9.2vw, 8.5rem); letter-spacing: -.084em; line-height: .9; font-weight: 650; }
.hero h1 em { font: inherit; color: #b5b5b5; }
.hero-intro { max-width: 35ch; margin-top: 28px; color: #c0c0c0; font-size: clamp(1rem, 1.55vw, 1.225rem); line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-intro { animation: hero-slide-in .65s ease-out backwards; }
  .hero-intro { animation-delay: .12s; }
}

@keyframes hero-slide-in {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.primary-link { display: inline-grid; min-height: 46px; place-items: center; margin-top: 30px; padding: 10px 19px; border-radius: 5px; background: #efefed; color: #111; font-size: .9375rem; font-weight: 650; transition: background .16s, transform .16s; }
.primary-link:hover { background: #ccc; transform: translateY(-2px); }

#sculpture { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; }
#sculpture:focus-visible { outline: none; }
.hero:has(#sculpture:focus-visible) { outline: 2px solid #dedede; outline-offset: -5px; }
.hero-toolbar { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; padding-top: 16px; pointer-events: none; }
.hero-toolbar::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; background: #3b3b3b; transform: translateX(-50%); }
.orbit-help { display: flex; align-items: center; gap: 9px; color: #bcbcbc; font: .75rem/1.4 var(--mono); }
.orbit-indicator { flex: none; width: 7px; height: 7px; border: 1px solid #eaeaea; border-radius: 50%; background: #dedede; box-shadow: 0 0 9px #fff5; }
.hero[data-paused="true"] .orbit-indicator { background: transparent; box-shadow: none; }
.hero-actions { display: flex; justify-self: end; gap: 6px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #414141; border-radius: 5px; background: #181818; }
.icon-button:hover { background: #303030; }
.motion-icon { display: block; width: 9px; height: 11px; border-inline: 2px solid #ddd; }
.hero[data-paused="true"] .motion-icon { width: 0; height: 0; margin-left: 2px; border-width: 6px 0 6px 9px; border-style: solid; border-color: transparent transparent transparent #ddd; }
.reset-icon { font-size: 1.22rem; line-height: 1; }
.shape-controls { display: flex; flex-wrap: wrap; gap: 3px; }
.shape-controls button { min-height: 38px; }
.shape-controls button { border: 1px solid transparent; border-radius: 4px; padding: 8px 12px; background: transparent; color: #b4b4b4; font-size: .875rem; }
.shape-controls button:hover { color: #fff; }
.shape-controls button[aria-pressed="true"] { border-color: #d6d6d6; background: #d6d6d6; color: #111; }

.work, .about, .site-footer { border-top: 1px solid var(--line); }
.work { padding-block: 49px 66px; background-color: #141414; }
.section-kicker { margin-bottom: 12px; color: #b1b1b1; }
.section-heading h2 { font-size: clamp(2.4rem, 5.2vw, 4.55rem); font-weight: 650; line-height: 1; letter-spacing: -.068em; }
.section-heading h2 span, .about h2 span { color: #999; }
.work-intro { margin-top: 14px; color: #aaa; font-size: 1rem; line-height: 1.5; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin-top: 28px; }
.project-card { overflow: hidden; border: 1px solid #333; border-radius: 8px; background: #151515; }
.project-art { position: relative; isolation: isolate; display: grid; justify-items: center; align-items: start; min-height: 215px; height: clamp(215px, 20vw, 290px); overflow: hidden; padding: 26px 22px 0; border-bottom: 1px solid #333; }
.chatslator-art { background-color: #252525; background-image: linear-gradient(#aaa1 1px, transparent 1px), linear-gradient(90deg, #aaa1 1px, transparent 1px); background-size: 20px 20px; background-position: center; }
.subdeck-art { background: repeating-linear-gradient(-45deg, transparent 0 7px, #1111 7px 8px), #bfbfbd; }
.mock-window { width: min(100%, 350px); min-height: 245px; margin: 0; overflow: hidden; border-radius: 9px 9px 0 0; font-size: .875rem; box-shadow: 0 12px 42px #0006; }
.mock-toolbar { display: flex; position: relative; align-items: center; gap: 4px; height: 31px; padding-inline: 10px; }
.mock-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.mock-toolbar span { position: absolute; left: 50%; transform: translateX(-50%); font: .75rem var(--mono); }
.chat-window { border: 1px solid #535353; background: #151515; }
.chat-window .mock-toolbar { border-bottom: 1px solid #3b3b3b; background: #292929; color: #bdbdbd; }
.chat-body { display: grid; gap: 7px; padding: 12px; }
.chat-heading { font-weight: 700; }
.chat-message { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid #3b3b3b; border-radius: 4px; background: #202020; }
.chat-message small { color: #bdbdbd; font-size: .75rem; }
.subdeck-window { color: #1b1b1b; background: #f0f0ed; border: 1px solid #7b7b7b; }
.subdeck-window .mock-toolbar { background: #dededb; border-bottom: 1px solid #c2c2bf; }
.subdeck-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.subdeck-column { display: grid; gap: 8px; padding: 8px; border: 1px solid #c2c2bf; border-radius: 5px; background: #e7e7e4; }
.subdeck-column i { display: grid; min-height: 55px; place-items: center; border-radius: 3px; background: #bfbfbd; }
.subdeck-column i::before { content: ""; border: solid transparent; border-width: 6px 0 6px 10px; border-left-color: #464646; }
.project-body { padding: 21px 23px 23px; }
.project-body h3 { font-size: 1.65rem; letter-spacing: -.043em; }
.project-body p { margin-top: 10px; color: #b3b3b3; line-height: 1.55; }
.text-button { margin-top: 17px; padding: 2px 0; border: 0; border-bottom: 1px solid #777; background: transparent; font-size: .9375rem; font-weight: 600; }
.text-button:hover { border-color: #fff; }

.about { padding-block: clamp(44px, 5.25vw, 74px); }
.about-inner, .site-footer-inner { max-width: 76rem; }
.about-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
.about-kicker { display: flex; align-items: center; gap: 11px; }
.about h2 { font: 400 clamp(3rem, 6vw, 4.625rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.about-copy { max-width: 36rem; color: #bcbcbc; font-size: 1.0625rem; line-height: 1.6; }
.about-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.email { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #777; overflow-wrap: anywhere; }
.email:hover { text-decoration-color: currentColor; }
.copy-email { min-height: 36px; padding: 6px 10px; border: 1px solid #505050; border-radius: 5px; background: transparent; color: var(--text); font-size: .875rem; }
.copy-email:hover { background: #252525; border-color: #777; }
.copy-email-status { color: #bcbcbc; font-size: .875rem; }
.copy-email-status:empty { position: absolute; }
.site-footer { padding-block: 22px 19px; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-wordmark { gap: 9px; }
.footer-mark { width: 31px; height: 31px; }
.back-top { color: #b5b5b5; font-size: .875rem; }
.back-top:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.project-dialog { width: min(100% - 30px, 520px); max-height: calc(100% - 30px); padding: 0; border: 1px solid #505050; border-radius: 9px; background: #191919; color: var(--text); box-shadow: 0 20px 56px #0009; }
.project-dialog::backdrop { background: #000b; }
.dialog-inner { position: relative; padding: clamp(20px, 5vw, 32px); }
.dialog-close { position: absolute; top: 16px; right: 16px; font-size: 1.4rem; }
.dialog-inner h2 { margin: 0 42px 16px 0; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: -.06em; overflow-wrap: anywhere; }
#dialog-details { color: #d2d2d2; line-height: 1.55; }
#dialog-details ul { margin-block: 12px 0; padding-inline-start: 1.25rem; }
.dialog-actions { display: grid; justify-items: start; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #444; }
.dialog-actions:has(a:not([hidden])) + .dialog-note { margin-top: 14px; }
.dialog-actions:not(:has(a:not([hidden]))) { display: none; }
.dialog-text-link { color: #e3e3e3; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: #858585; text-underline-offset: 4px; }
.dialog-text-link:hover { color: #fff; text-decoration-color: currentColor; }
.dialog-stores { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.dialog-policies { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dialog-stores:not(:has(a:not([hidden]))), .dialog-policies:not(:has(a:not([hidden]))) { display: none; }
.dialog-policies a { font-size: .875rem; font-weight: 500; }
.store-link { display: grid; place-items: center; flex: 1 1 10rem; min-height: 44px; padding: 10px 14px; border: 1px solid #555; border-radius: 6px; background: #292929; color: var(--text); font-size: .9375rem; font-weight: 650; text-align: center; }
.store-link:hover { border-color: #aaa; background: #363636; }
.dialog-note { color: #bcbcbc; font-size: .875rem; }
.policy-page, .policy-links { max-width: 66ch; }
.policy-page { padding-block: clamp(36px, 8vw, 80px) 34px; }
.policy-page h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.05; letter-spacing: -.06em; }
.policy-intro { margin-top: 18px; }
.policy-page section { margin-top: 30px; }
.policy-page h2 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.025em; }
.policy-intro, .policy-page section p, .policy-content { color: #d2d2d2; line-height: 1.65; }
.policy-content { margin-top: 18px; }
.policy-content h2 { margin-top: 30px; }
.policy-content > :is(p, ul) + :is(p, ul) { margin-top: 12px; }
.policy-content ul { margin-bottom: 0; padding-inline-start: 1.25rem; }
.policy-content li + li { margin-top: 6px; }
.policy-content .last-updated { color: var(--muted); font-size: .875rem; }
.policy-footer { padding-block: 18px clamp(36px, 8vw, 80px); border-top: 1px solid var(--line); }
.policy-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.policy-content a, .policy-links a { text-decoration: underline; text-decoration-color: #858585; text-underline-offset: 4px; }
.policy-content a:hover, .policy-links a:hover { text-decoration-color: currentColor; }

.policy-picker {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 44%, #262626, #101010 68%);
}

.policy-picker-content { width: min(100%, 42rem); }
.policy-picker-header { margin-bottom: clamp(20px, 4vw, 32px); }
.policy-picker-header h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.06em;
}
.policy-picker-header p { margin-top: 10px; color: #bcbcbc; line-height: 1.5; }

.policy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.policy-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #414141;
  border-radius: 14px;
  background: #181818;
  box-shadow: 0 16px 40px #0005;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.policy-card:hover, .policy-card:focus-visible {
  border-color: #a4a4a4;
  background: #262626;
  box-shadow: 0 16px 44px #0008;
}

.policy-card-art {
  display: grid;
  min-height: clamp(8rem, 27vw, 13rem);
  place-items: center;
  background-color: #242424;
}

.policy-card-art--chat {
  background-image: radial-gradient(ellipse, transparent, #171717b3),
    linear-gradient(#ffffff12 1px, transparent 1px),
    linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-position: center;
  background-size: cover, 21px 21px, 21px 21px;
}

.policy-card-art--deck {
  background-image: radial-gradient(ellipse, transparent, #171717b3),
    repeating-linear-gradient(-45deg, #ffffff12 0 1px, transparent 1px 9px);
}

.policy-card-icon {
  display: grid;
  width: 4.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #646464;
  border-radius: 18px;
  background: linear-gradient(145deg, #3d3d3d, #1c1c1c);
  box-shadow: inset 0 1px #ffffff12, 0 8px 20px #0007;
}

.policy-chat-icon, .policy-deck-icon {
  position: relative;
  width: 2rem;
  height: 1.5rem;
  border: 2px solid currentColor;
}

.policy-chat-icon {
  margin-bottom: 4px;
  border-radius: 6px;
}

.policy-chat-icon::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: #292929;
  transform: rotate(45deg);
}

.policy-chat-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -6px 0, 6px 0;
  transform: translate(-50%, -50%);
}

.policy-deck-icon { border-radius: 4px; }

.policy-deck-icon::before {
  content: "";
  position: absolute;
  inset: 5px 0 0;
  border-top: 2px solid currentColor;
  background: linear-gradient(90deg, transparent calc(100% / 3 - 1px),
    currentColor calc(100% / 3 - 1px) calc(100% / 3 + 1px),
    transparent calc(100% / 3 + 1px) calc(200% / 3 - 1px),
    currentColor calc(200% / 3 - 1px) calc(200% / 3 + 1px),
    transparent calc(200% / 3 + 1px));
}

.policy-card-name {
  display: grid;
  align-items: center;
  min-height: 4.5rem;
  padding: .75rem 1.25rem;
  border-top: 1px solid #414141;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.policy-card:hover .policy-card-name, .policy-card:focus-visible .policy-card-name {
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 560px) {
  .policy-cards { grid-template-columns: 1fr; }
  .policy-card { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .policy-card-art { min-height: 6rem; }
  .policy-card-icon { width: 3.5rem; border-radius: 13px; }
  .policy-card-name { border-top: 0; border-inline-start: 1px solid #414141; }
}

.error-page { padding-block: 15vh; }
.error-page h1 { font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -.07em; }

@media (max-width: 1150px) {
  .wrap { width: calc(100% - 76px); }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 44px); }
  .about-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; background: radial-gradient(ellipse at 50% 68%, #242424, #101010 70%); }
  .hero::after { background: linear-gradient(180deg, #101010b3, #10101030 40%, transparent 57%, #101010 98%); }
  .hero-content { padding-block: 41px 18px; }
  .hero[data-interactive] .hero-content { grid-template-rows: auto minmax(clamp(240px, 48vw, 390px), 1fr) auto; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(3rem, 12.6vw, 6.6rem); }
  .hero-toolbar { display: flex; grid-row: 3; flex-wrap: wrap; gap: 10px; }
  .orbit-help { flex-basis: 100%; }
  .hero-actions { margin-inline-start: auto; }
}

@media (max-width: 560px) {
  .site-header { min-height: 68px; }
  .wordmark { gap: 7px; font-size: .875rem; }
  .brand-mark { width: 18px; height: 18px; }
  .site-header nav { gap: 12px; }
  .header-contact { padding: 7px 8px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 4.65rem); }
  .hero-intro { margin-top: 18px; }
  .primary-link { margin-top: 21px; }
  .shape-controls button { padding-inline: 8px; }
  .work { padding-block: 38px 44px; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 30px); }
  .site-header nav { gap: 8px; font-size: .8125rem; }
  .header-contact { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
