:root {
  --ink: #141414;
  --muted: #757575;
  --line: #e7e5e0;
  --bg: #faf9f7;
  --max: 72rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: inherit; }

/* Header */
header.site {
  padding: 1.25rem 0;
}

header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  margin: 0 0 4px;
}

.hero img,
.hero video {
  width: 100%;
  height: min(72vh, 40rem);
  object-fit: cover;
  display: block;
  background: #101418;
}

.hero video.hero-landscape { display: none; }

@media (min-width: 768px) {
  .hero video.hero-portrait { display: none; }
  .hero video.hero-landscape { display: block; }
}

.hero-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.5rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}

.hero-text .wrap { padding: 0; max-width: var(--max); margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* Sections */
section { padding: 4.5rem 0 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Work grid */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 2.5rem 1.5rem;
}

.project-tile iframe,
.tile-media {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.project-tile iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.tile-media img,
.tile-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  background: #111;
}

.tile-media:hover img,
.tile-media:hover video { transform: scale(1.04); }

.tile-caption {
  display: block;
  text-decoration: none;
  margin-top: 0.7rem;
}

.tile-caption h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.tile-caption p {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.tile-caption:hover h3 { text-decoration: underline; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 2.25rem 3rem;
}

.service h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.service p { margin: 0 0 0.4rem; }

.tags {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Why */
.why-lede {
  max-width: 58ch;
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.75rem 2.5rem;
}

.why-grid h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.why-grid p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Difference */
.difference {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.difference .big {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.25;
  margin: 1rem 0;
}

.difference p { color: var(--muted); }
.difference p.closer { color: var(--ink); font-weight: 600; }

/* Contact */
form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
  max-width: 30rem;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

input, textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

input:focus, textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  justify-self: start;
}

button:hover { opacity: 0.85; }
button:disabled { opacity: 0.5; cursor: default; }

/* Honeypot field — visually removed, still in the form for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}

/* Footer */
footer.site {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Project detail pages */
.project-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.reel-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  justify-items: center;
}

.reel-grid .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 24rem !important;
}

.project-page iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 6px;
  background: #111;
}

.project-hero,
.project-page video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  background: #111;
}

.project-page video.portrait {
  aspect-ratio: 9 / 16;
  max-width: 24rem;
  margin: 0 auto;
}

.project-page h3 { margin: 2rem 0 0.25rem; }
.project-page ul { padding-left: 1.2rem; margin: 0.5rem 0 1rem; }
.project-page li { margin: 0.2rem 0; }

.narrow { max-width: 46rem; }

.back {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}

.back:hover { color: var(--ink); }
