:root {
  color-scheme: dark;
  --ink: #0b0b0b;
  --ink-soft: #171717;
  --paper: #f3efe3;
  --paper-dim: #d9d4c8;
  --orange: #ff5826;
  --lime: #d0f53a;
  --pink: #ff3d7f;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-pixel: "VT323", ui-monospace, monospace;
  --edge: clamp(20px, 4vw, 58px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(243, 239, 227, 0.55) 0.75px, transparent 0.95px);
  background-size: 22px 22px;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 70px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 var(--edge);
  border-bottom: 2px solid var(--lime);
  background: rgba(11, 11, 11, 0.94);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(1.4rem, 2.3vw, 1.85rem);
}

.topbar-cta,
.footerbar {
  font-family: var(--font-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(18px, 3vw, 42px);
}

.nav-link {
  position: relative;
  padding: 0.45rem 0;
  color: var(--paper-dim);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0.1rem;
  left: 0;
  height: 2px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--paper);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.topbar-cta {
  justify-self: end;
  padding: 0.5rem 0.9rem 0.35rem;
  border: 2px solid var(--orange);
  color: var(--paper);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.topbar-cta:hover {
  transform: translateY(-2px);
  background: var(--orange);
  color: var(--ink);
}

main {
  display: flex;
  flex: 1;
}

.home-main {
  flex-direction: column;
}

.hero {
  display: flex;
  width: 100%;
  min-height: clamp(34rem, calc(100svh - 142px), 55rem);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: min(calc(100% - var(--edge) - var(--edge)), 1320px);
  margin: auto;
  padding: clamp(3rem, 6vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
}

.hero-star {
  position: absolute;
  top: clamp(2.7rem, 7vw, 6rem);
  right: clamp(1rem, 8vw, 7rem);
  width: clamp(3.5rem, 8vw, 7.5rem);
  height: auto;
  color: var(--orange);
  fill: currentColor;
  transform: rotate(10deg);
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.15rem, 10.5vw, 8.75rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--lime);
}

.hero-copy {
  max-width: 54ch;
  margin: clamp(1.6rem, 3vh, 2.2rem) 0 1.6rem;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem 0.7rem;
  border: 2px solid var(--lime);
  background: var(--lime);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.hero-cta:hover {
  transform: translateY(-3px);
  background: transparent;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.32);
  color: var(--lime);
}

.marquee {
  width: 100%;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  padding-inline: var(--edge);
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 0.48rem 0;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.1em;
  padding-right: 1.1em;
}

.marquee-track b {
  color: var(--orange);
  font-family: var(--font-pixel);
  font-size: 1.5em;
  font-weight: 400;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.project-teaser {
  width: 100%;
  padding-block: clamp(46px, 7vw, 88px);
  border-top: 2px solid var(--ink);
  border-bottom: 3px solid var(--orange);
  background: var(--paper);
  color: var(--ink);
}

.project-teaser-inner {
  display: grid;
  width: min(calc(100% - var(--edge) - var(--edge)), 1320px);
  min-height: 334px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  margin-inline: auto;
}

.project-teaser-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.3vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.project-teaser-copy h2 span {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

.project-teaser-copy p {
  max-width: 46ch;
  margin: 1.2rem 0 1.55rem;
  color: #37352f;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.65;
}

.project-teaser-cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.8rem 1.2rem 0.7rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 8px 16px rgba(11, 11, 11, 0.2);
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.project-teaser-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms var(--ease-out);
}

.project-teaser-cta:hover {
  transform: translateY(-3px);
  background: var(--orange);
  box-shadow: 0 12px 18px rgba(11, 11, 11, 0.24);
  color: var(--ink);
}

.project-teaser-cta:hover svg {
  transform: translateX(3px);
}

.project-teaser-art {
  position: relative;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(11, 11, 11, 0.35);
  background-color: var(--lime);
  background-image: radial-gradient(rgba(11, 11, 11, 0.36) 0.75px, transparent 0.95px);
  background-size: 18px 18px;
}

.teaser-shot {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(11, 11, 11, 0.5);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(11, 11, 11, 0.24);
}

.teaser-shot figcaption {
  padding: 1px 3px 5px;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.teaser-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.teaser-shot--rear {
  top: 8%;
  right: 4%;
  width: 74%;
  transform: rotate(3deg);
}

.teaser-shot--front {
  bottom: 7%;
  left: 4%;
  width: 71%;
  transform: rotate(-4deg);
}

.teaser-stamp {
  position: absolute;
  z-index: 2;
  top: 45%;
  right: 2%;
  padding: 0.5rem 0.7rem 0.35rem;
  border: 2px solid var(--ink);
  background: var(--orange);
  box-shadow: 0 6px 14px rgba(11, 11, 11, 0.22);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-align: center;
  transform: rotate(5deg);
}


.footerbar {
  display: grid;
  min-height: 62px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 var(--edge);
  border-top: 3px solid var(--orange);
  background: var(--ink);
  color: var(--paper-dim);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.footerbar span:last-child,
.footerbar a {
  justify-self: end;
}

.footerbar a {
  color: var(--lime);
  text-decoration: none;
}

.footerbar a:hover {
  color: var(--orange);
}

@media (max-width: 700px) {
  .topbar {
    min-height: 62px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .primary-nav {
    gap: clamp(10px, 3vw, 20px);
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .topbar-cta {
    padding-inline: 0.65rem;
    font-size: 1.05rem;
  }

  .hero {
    min-height: clamp(34rem, calc(100svh - 124px), 48rem);
  }

  .hero-inner {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .hero-star {
    top: 1.8rem;
    right: 0.25rem;
    width: 3.8rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.15rem, 11vw, 5.1rem);
    line-height: 0.96;
  }

  .hero-copy {
    max-width: 44ch;
    margin-top: 1.5rem;
    font-size: 1rem;
  }

  .footerbar {
    min-height: 58px;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding-block: 0.4rem;
    font-size: 0.98rem;
  }

  .footer-label {
    display: none;
  }

  .project-teaser-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 0;
  }

  .project-teaser {
    padding-block: 46px;
  }

  .project-teaser-copy h2 {
    font-size: clamp(2.85rem, 9vw, 4.25rem);
  }

  .project-teaser-art {
    min-height: clamp(280px, 76vw, 380px);
  }

}

@media (max-width: 380px) {
  .topbar {
    gap: 8px;
  }

  .brand-logo {
    height: 1.25rem;
  }

  .primary-nav {
    gap: 8px;
  }

  .nav-link {
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.15rem);
  }

  .topbar-cta {
    padding-inline: 0.45rem;
    font-size: 0.92rem;
  }

  .footerbar {
    font-size: 0.86rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
    transform: none;
  }
}
