:root {
  --bg: #0c0c0c;
  --fg: #f0f0f0;
  --muted: #999;
  --gap: 2px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--muted); }

.shell {
  display: flex;
  min-height: 100vh;
}

/* --- left nav --- */
.nav {
  width: 240px;
  flex-shrink: 0;
  padding: 32px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #222;
}

.nav-name {
  display: block;
  white-space: nowrap;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 40px;
}

.nav-subtitle {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.nav nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-instagram {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}

.content {
  flex: 1;
  min-width: 0;
}

/* --- dense project grid (homepage / work) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.04);
}

.grid-item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.grid-item:hover .caption {
  opacity: 1;
}

/* --- photo grid (denser, masonry-ish via columns) --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
  cursor: pointer;
}

/* --- project detail page --- */
.project {
  padding: 40px;
  max-width: 900px;
}

.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 24px;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

/* --- services page --- */
.services-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

.services-nav a {
  color: var(--muted);
}

.services-nav a:hover {
  color: var(--fg);
}

.service {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #222;
}

.page.services-page {
  max-width: 1000px;
}

.service:last-child {
  border-bottom: none;
}

.service h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.service ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.service ul li {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
}

.service ul li::before {
  content: "— ";
}

.service-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.service-images {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-images img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 800px) {
  .service-body {
    grid-template-columns: 1fr;
  }
  .service-images {
    flex-direction: row;
  }
  .service-images img {
    width: 50%;
  }
}

/* --- generic page padding (about, equipment, contact, blog) --- */
.page {
  padding: 40px;
  max-width: 720px;
}

.page h1 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.page p { margin-bottom: 16px; }

/* --- clients list --- */
.clients-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
  padding: 0;
}

/* --- client logos --- */
.clients-logos {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 40px;
  align-items: center;
}

.clients-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.clients-logos img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* black logos marked invert: true show in white so they're visible on the dark background */
.clients-logos img.invert {
  filter: invert(1);
}

.clients-logos span {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 800px) {
  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- equipment list --- */
.equipment-list { list-style: none; padding: 0; }
.equipment-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #222;
  font-size: 14px;
}
.equipment-list .qty { color: var(--muted); }

/* --- contact form --- */
form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
input, textarea, select {
  background: #161616;
  border: 1px solid #2a2a2a;
  color: var(--fg);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}
/* dropdown: drop the browser's default look so it matches the other fields */
select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
select:invalid { color: #777; }      /* placeholder option shows dimmed until a choice is made */
select option { color: var(--fg); background: #161616; }

button {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  cursor: pointer;
  width: fit-content;
}

/* --- blog list --- */
.blog-list { list-style: none; padding: 0; }
.blog-list li { padding: 14px 0; border-bottom: 1px solid #222; }
.blog-date { color: var(--muted); font-size: 12px; margin-right: 12px; }

/* --- responsive --- */
@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .nav { width: auto; height: auto; position: relative; border-right: 0; border-bottom: 1px solid #222; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
