@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f3f1eb;
  --ink: #202522;
  --muted: #515650;
  --accent: #d94b32;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); }
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  padding: clamp(28px, 5vh, 72px) clamp(28px, 6vw, 112px);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('assets/paper.svg') repeat;
  opacity: .16;
}
/* Both halves share a real grid, so artwork cannot crowd or overlap text. */
.composition {
  width: min(100%, 1480px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}
.identity {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: clamp(14px, 1.6vw, 28px);
  row-gap: 14px;
}
.mark { width: clamp(50px, 4.8vw, 82px); height: auto; }
.wordmark { font-family: 'Space Grotesk', sans-serif; }
h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.contact {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font: 400 clamp(13px, 1.2vw, 18px)/1.6 'IBM Plex Mono', monospace;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .3em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.contact:hover { color: var(--accent); text-decoration-color: currentColor; }
.contact:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
.loop-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 100px);
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 800px) {
  .hero {
    padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .composition {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(24px, 5svh, 48px);
  }
  .identity {
    justify-content: center;
    column-gap: 14px;
    row-gap: 12px;
  }
  .mark { width: clamp(44px, 12vw, 58px); }
  h1 { font-size: clamp(25px, 6.3vw, 38px); }
  .contact {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    font-size: clamp(13px, 3.4vw, 16px);
  }
  .loop-art {
    width: min(100%, 51svh, 460px);
    max-height: none;
  }
}
/* Short landscape screens retain a compact, balanced horizontal composition. */
@media (max-width: 800px) and (max-height: 500px) and (min-width: 600px) {
  .hero { padding: 24px; }
  .composition { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
  h1 { font-size: 26px; }
  .mark { width: 42px; }
  .loop-art { width: 100%; max-height: calc(100svh - 48px); }
}
@media (prefers-reduced-motion: reduce) {
  .contact { transition: none; }
}
