:root {
  --ink: #090b19;
  --muted: #6e7488;
  --paper: #f3f6fc;
  --bg: #ffffff;
  --line: #e6ebf4;
  --stripe: #f3f6fc;
  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 75px;
}

html[data-theme="dark"] {
  --ink: #f4f6fb;
  --muted: #a7adbd;
  --paper: #12141c;
  --bg: #090b19;
  --line: #232736;
  --stripe: #12141c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus { transform: none; }

.pinstripes {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  padding: 0 5vw;
}

.pinstripes span {
  width: 1px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  background: transparent;
}

.header-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 8px 0 18px;
  background: var(--bg);
  border: 1px solid var(--stripe);
}

.wordmark {
  display: flex;
  align-items: center;
}

.wordmark img {
  display: block;
  height: 36px;
  width: auto;
}

html[data-theme="dark"] .wordmark img { filter: invert(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.nav-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.theme-toggle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0 10px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  position: relative;
  width: 18px;
  height: 12px;
}

.hamburger span,
.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.hamburger::before,
.hamburger::after { content: ""; }
.hamburger::before { top: 0; }
.hamburger span { top: 5px; }
.hamburger::after { top: 10px; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 5px;
  transform: rotate(-45deg);
}

sl-drawer:not(:defined) { display: none; }
.nav-drawer { --size: 100%; }

.nav-drawer::part(base) {
  z-index: 50;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
}

.nav-drawer::part(panel) {
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  border: 0;
  box-shadow: none;
}

.nav-drawer::part(body) { padding: 12px 8vw 48px; }

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-nav a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(9, 11, 25, 0.15), rgba(9, 11, 25, 0.45)),
    url("/studio.png") center / cover no-repeat;
  padding: 140px 5vw 180px;
}

.hero-copy { width: min(1400px, 100%); margin: 0 auto; }

.home-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.pill.ghost {
  border-color: var(--line);
  color: var(--ink);
  margin-top: 0;
}

.featured {
  position: relative;
  z-index: 2;
  margin: -90px 5vw 0;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1.1fr 0.9fr;
  min-height: 280px;
}

.featured-flag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: grid;
  place-items: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--stripe);
}

.featured-copy {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured h2,
.section-title,
.quote h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.featured h2 { font-size: clamp(32px, 4vw, 48px); }

.featured-visual {
  display: grid;
  place-items: center;
  background: var(--stripe);
  padding: 24px;
}

.featured-visual img {
  width: min(180px, 70%);
  height: auto;
  border-radius: 24px;
}

.clients {
  margin-top: 28px;
  padding: 48px 5vw 12px;
  background: var(--stripe);
}

.clients-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 28px;
  width: min(1400px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.clients-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.client-row {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  padding-bottom: 36px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 55%, var(--muted));
}

.client-row a:hover { color: var(--ink); }

.product-slider {
  padding: 28px 0 72px;
  background: var(--stripe);
}

.hero-carousel { width: 100%; }

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.hero-track::-webkit-scrollbar { display: none; }

.hero-track.is-dragging,
.hero-track.is-jumping,
.hero-track.is-settling {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.hero-track.is-dragging { cursor: grabbing; user-select: none; }

@media (hover: none) and (pointer: coarse) {
  .hero-track { touch-action: pan-y; }
  .hero-track.is-dragging,
  .hero-track.is-settling { touch-action: none; }
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-inner {
  width: min(1400px, calc(100% - 10vw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.lede, .section-copy {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

.section-copy { margin-top: 12px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.slide-visual {
  margin: 0;
}

.slide-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.hero-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  background: var(--bg);
  color: var(--ink);
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 22px;
}

.hero-dots { display: flex; gap: 8px; align-items: center; }

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 25%, transparent);
  padding: 0;
}

.hero-dot.is-active {
  width: 22px;
  background: var(--ink);
}

.band {
  padding: 110px 5vw;
}

.band-head {
  width: min(1400px, 100%);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
}

.section-title {
  font-size: clamp(48px, 6vw, 76px);
}

.services {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.services article {
  padding: 36px 28px 42px;
  border-right: 1px solid var(--line);
}

.services article:last-child { border-right: 0; }

.services h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.services p { margin: 0 0 24px; color: var(--muted); }

.quote {
  padding: 80px 5vw 100px;
  background: var(--ink);
  color: #fff;
}

.quote-inner { width: min(1100px, 100%); margin: 0 auto; }

.quote h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
}

.quote p { margin: 22px 0 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }

.projects {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--stripe);
  border-radius: 4px;
}

.notes {
  width: min(1400px, 100%);
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.notes article {
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.notes h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.notes p { margin: 0; color: var(--muted); }

.project h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.project span { color: var(--muted); font-size: 14px; }

.contact-panel {
  width: min(900px, 100%);
}

.contact-panel p {
  color: var(--muted);
  font-size: 18px;
}

.contact-panel a { text-decoration: underline; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 5vw 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 860px) {
  .pinstripes { display: none; }
  .featured,
  .band-head,
  .services,
  .projects,
  .notes,
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .featured-flag { writing-mode: horizontal-tb; transform: none; padding: 12px; }
  .featured-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .services article { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-hero { min-height: 86vh; padding-bottom: 120px; }
  .home-hero h1 { font-size: 52px; }
}
