/* ============================================================
   NOSIGNAL — Design tokens
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --paper: #F6F5F1;
  --ink: #0B0B0C;
  --ink-soft: #55565A;
  --red: #E30613;
  --hair: #E4E3DE;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max: 1240px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

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

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

section { padding: 96px 24px; }

.section-head { max-width: var(--max); margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-lede {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 17px;
}

/* signature signal-bar mark ------------------------------------ */
.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.bars span {
  width: 4px;
  background: var(--red);
  border-radius: 1px;
}
.bars span:nth-child(1) { height: 30%; }
.bars span:nth-child(2) { height: 55%; }
.bars span:nth-child(3) { height: 78%; }
.bars span:nth-child(4) { height: 100%; }
.bars--muted span { background: #C9C8C2; }
.bars--live span { animation: pulse 1.8s ease-in-out infinite; }
.bars--live span:nth-child(1) { animation-delay: 0s; }
.bars--live span:nth-child(2) { animation-delay: 0.15s; }
.bars--live span:nth-child(3) { animation-delay: 0.3s; }
.bars--live span:nth-child(4) { animation-delay: 0.45s; }
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.nav__links a { color: var(--ink-soft); transition: color 0.15s ease; }
.nav__links a:hover { color: var(--red); }

.nav__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__status:hover .nav__status-text { color: var(--red); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  height: 2px;
  background: var(--ink);
  width: 100%;
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 16px 24px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 24px 96px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__headline {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.04;
}
.hero__accent { color: var(--red); }
.hero__sub {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-soft);
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.hero__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(11,11,12,0.55);
  padding: 6px 10px;
  border-radius: 2px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.services__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.service-card {
  background: var(--paper);
  padding: 32px;
}
.service-card--muted { background: #EFEEE9; }
.service-card .bars { margin-bottom: 18px; }
.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ============================================================
   WORK
   ============================================================ */
.work__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}
.work__item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper);
}
.work__item--tall { grid-row: span 2; grid-column: span 2; }
.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work__item:hover img { transform: scale(1.03); }
.work__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(11,11,12,0.75), transparent 70%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.work__cat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.03em;
}
.work__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.7);
}
.work__item--placeholder {
  border: 1px dashed #C9C8C2;
  background: var(--paper);
}
.placeholder-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work__item--placeholder figcaption {
  position: static;
  background: none;
  padding: 12px 16px;
}
.work__item--placeholder .work__cat { color: var(--ink); }
.work__item--placeholder .work__meta { color: var(--ink-soft); }

/* ============================================================
   PROCESS
   ============================================================ */
.process__list {
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.process__list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--hair);
}
.process__list li:last-child { border-bottom: 1px solid var(--hair); }
.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
}
.process__list h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.process__list p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============================================================
   STUDIO
   ============================================================ */
.studio { background: var(--ink); color: #F2F1EC; }
.studio__inner { max-width: 680px; margin: 0 auto; text-align: left; }
.studio h2 { color: #F2F1EC; font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 20px; }
.studio p:not(.eyebrow) { color: rgba(242,241,236,0.78); font-size: 17px; line-height: 1.65; }
.studio .eyebrow { color: var(--red); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 48px;
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--hair);
  padding-top: 40px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--full { grid-column: 1 / -1; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--hair);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  min-height: 44px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact__form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; }
.form-note {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 12px 14px;
  border-radius: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hair); padding: 40px 24px; }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: auto;
}
.footer__top {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.footer__top:hover { color: var(--red); }

/* ============================================================
   FOCUS VISIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .work__item--tall { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; height: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; }
}

/* ============================================================
   RESPONSIVE — PHONE
   ============================================================ */
@media (max-width: 640px) {
  section { padding: 64px 20px; }
  .nav { padding: 0 16px; }
  .nav__status-text { display: none; }
  .hero { padding: 40px 20px 64px; gap: 32px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .services__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .work__item--tall { grid-column: span 1; }
  .process__list li { grid-template-columns: 40px 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .contact__actions .btn { width: 100%; }
  .contact__actions { flex-direction: column; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer__meta { margin-left: 0; width: 100%; text-align: center; order: 3; }
}
