/* These two faces belong only to the original SVG lettering, not page typography. */
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f2f2ef;
  --muted: #aaa;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.shell { width: min(100%, 1800px); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 50; top: 1rem; left: 1rem; padding: .9rem 1.2rem; background: var(--ink); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 30; top: 0; height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gutter); background: var(--bg); }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; justify-self: start; min-height: 44px; font-size: .8rem; font-weight: 500; }
.wordmark__mark { width: 31px; height: auto; flex: 0 0 auto; }
.desktop-nav { display: flex; gap: 2.5rem; }
.desktop-nav a, .header-contact { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; }
.desktop-nav a { color: var(--muted); transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current="location"] { color: var(--ink); }
.header-contact { justify-self: end; gap: 1.5rem; }
.header-contact span { font-size: 1.1rem; }
.menu-toggle { display: none; align-items: center; gap: .8rem; min-height: 44px; padding: .5rem; border: 0; background: none; font-size: .75rem; cursor: pointer; }
.menu-toggle i, .menu-toggle i::after { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .25s; }
.menu-toggle i::after { content: ""; transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { transform: rotate(-90deg); }
.mobile-menu { visibility: hidden; position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; padding: 120px var(--gutter) 2rem; background: var(--bg); opacity: 0; transition: opacity .25s, visibility .25s; }
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu nav { display: grid; gap: .6rem; }
.mobile-menu nav a { width: fit-content; font-size: clamp(2.5rem, 12vw, 5rem); line-height: 1.2; letter-spacing: -.05em; }
.mobile-menu__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .8rem; }
.mobile-menu__foot a { padding-block: 1rem; }

/* The original word sphere sits above the full company name. */
.hero { min-height: clamp(680px, calc(100svh - 80px), 1100px); display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 1rem; padding-block: 1rem 3rem; }
.hero__identity { text-align: center; }
.hero h1 { font-size: clamp(4rem, 8.5vw, 8rem); line-height: 1.04; letter-spacing: -.055em; }
.hero h1 span { display: block; }
.word-globe { position: relative; align-self: center; width: min(100%, 480px, 54svh); aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; background: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; visibility: hidden; }
.word-globe.is-ready { visibility: visible; }
.word-globe:active { cursor: grabbing; }
.word-globe.is-pointer-interaction:focus { outline: none; }
.word-globe span { position: absolute; left: 50%; top: 50%; color: var(--ink); font: 400 clamp(.6rem, .8vw, .8rem) var(--sans); white-space: nowrap; pointer-events: none; will-change: transform, opacity; }
.word-globe span:nth-child(5n + 1) { font-size: clamp(.72rem, 1vw, 1rem); font-weight: 600; }

.work { padding-top: clamp(2rem, 4vw, 4rem); padding-bottom: 1rem; }
.work > h2 { font-size: 1.15rem; margin-bottom: 2rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.project { min-width: 0; border-radius: 4px; overflow: hidden; transition: background .35s; }
.project--pixel { background: #111; }
.project--thleng { background: #1b1b1b; }
.project--saints { background: #262626; }
.project--sketch { background: #303030; }
.project--pixel:hover { background: #181818; }
.project--thleng:hover { background: #222; }
.project--saints:hover { background: #2d2d2d; }
.project--sketch:hover { background: #373737; }
.project__link { display: flex; flex-direction: column; min-height: clamp(430px, 40vw, 590px); height: 100%; padding: clamp(1.4rem, 2.3vw, 2.75rem); }
.project__link:focus-visible { outline-offset: -6px; }
.project__art { display: grid; place-items: center; flex: 1; min-height: 270px; padding-block: 2rem 3rem; }
.project__art > * { width: min(88%, 260px); transition: transform .6s var(--ease); }
.project.is-active-mobile .project__art > * { transform: scale(1.045) rotate(-2deg); }
/* End the outgoing colour immediately so two marks never glow together. */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
  .project:not(.is-active-mobile) .project__art * { transition-duration: 0s; }
}
.project--saints .saints-mark { width: min(96%, 280px); }
.project__copy { padding-top: 2rem; }
.project__copy h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: clamp(1.6rem, 2.1vw, 2.4rem); line-height: 1.2; letter-spacing: -.045em; }
.project__copy h3 span { font-size: .65em; transition: transform .3s; }
.project__link:hover h3 span { transform: translate(2px,-2px); }
.project__copy p { max-width: 280px; min-height: 3.2em; margin-top: .8rem; color: #bbb; font-size: .85rem; line-height: 1.6; }

.about { padding-block: clamp(7rem, 13vw, 13rem); text-align: center; }
.about h2 { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.055em; line-height: 1.1; }
.about > p { max-width: 640px; margin: 2rem auto 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.75; }
.contact { text-align: center; padding-block: clamp(5rem, 8vw, 9rem); background: #101010; width: 100%; max-width: none; }
.contact h2 { font-size: clamp(3.5rem, 7vw, 7rem); line-height: 1.1; letter-spacing: -.045em; }
.contact__email { display: inline-flex; align-items: center; gap: 2rem; min-height: 48px; margin-top: 1.5rem; color: #bcbcbc; font-size: .85rem; transition: color .2s; }
.contact__email:hover { color: #fff; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; color: var(--muted); font-size: .7rem; }
.footer a { display: flex; align-items: center; min-height: 44px; }

.reveal { transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: no-preference) {
  .hero__identity { animation: arrive 1s var(--ease) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1023px) {
  .project__link { padding: 1.4rem; min-height: 430px; }
  .project__art { min-height: 240px; }
  .project__copy h3 { font-size: 1.55rem; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 88px; }
  .site-header { height: 72px; grid-template-columns: 1fr auto; }
  .wordmark { font-size: .75rem; gap: .65rem; }
  .wordmark__mark { width: 27px; }
  .desktop-nav, .header-contact { display: none; }
  .menu-toggle { display: flex; }
  .hero { min-height: clamp(540px, calc(100svh - 72px), 950px); padding-block: 1rem 2.5rem; }
  .word-globe { width: min(100%, 370px); }
  .hero h1 { font-size: clamp(2.75rem, 11.3vw, 5.4rem); letter-spacing: -.05em; }
  .work { padding-top: 2rem; }
  .work > h2 { margin-bottom: 1.5rem; }
  .work-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project__link { min-height: 500px; padding: 1.75rem; }
  .project__art { min-height: 320px; padding-block: 2rem; }
  .project__art > * { width: min(80%, 270px); }
  .project--saints .saints-mark { width: min(90%, 300px); }
  .project__copy { padding-top: 1.5rem; }
  .project__copy h3 { font-size: 2rem; }
  .project__copy p { min-height: 0; font-size: .9rem; max-width: none; }
  .contact__email { gap: 1.5rem; }
  .footer { font-size: .65rem; gap: 1rem; padding-block: 1.5rem; }
}
@media (max-width: 359px) {
  .wordmark { font-size: .68rem; }
  .project__link { min-height: 450px; padding: 1.35rem; }
  .project__art { min-height: 280px; }
  .footer { flex-direction: column; gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
