:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --text: #222222;
  --heading: #000000;
  --muted: #6b6b6b;
  --border: #e6e6e3;
  --max-width: 1120px;
  --content-width: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--heading);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Header / nav */
.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 5%;
  background: var(--bg);
  flex-wrap: wrap;
}
.site-logo {
  display: inline-flex;
  line-height: 0;
}
.site-logo img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.site-nav a {
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--heading);
  border-bottom-color: var(--heading);
}

main { flex: 1; }

/* Hero (home page) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  background-size: cover;
  background-position: 0% 0%;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--border) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  width: 220px;
  height: 220px;
  left: 5%;
  top: 20%;
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 640px;
}
.hero h1 {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0;
}

/* Page header (interior pages) */
.page-header {
  padding: 64px 5% 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-header h1 {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 0 0 16px;
}
.page-header .lede {
  max-width: var(--content-width);
  color: var(--muted);
  font-size: 18px;
}

/* Generic content container */
.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 5% 80px;
}
.content h2 {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--heading);
  margin: 48px 0 16px;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--heading);
  margin: 32px 0 12px;
}
.content p { margin: 0 0 20px; }
.content a { text-decoration: underline; text-underline-offset: 2px; }
.content a:hover { color: var(--muted); }

/* Tables (credits) */
.table-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5% 40px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Measurements list */
.measurements {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  padding: 0 5%;
}
.measurements dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin: 0;
}
.measurements dt { color: var(--muted); font-family: "Outfit", sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.measurements dd { margin: 0 0 8px; font-weight: 600; }

/* Gallery (showreel) */
.gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5% 80px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gallery-item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 5%;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 36px;
  padding: 8px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  padding: 12px 16px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--border);
}

/* Press */
.press-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.press-layout-image {
  height: 100%;
}
.press-layout-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.press-quote {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  padding: 0 5%;
}
.press-quote h2 {
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 20px 0;
}
.press-quote blockquote {
  margin: 0 0 8px;
  padding: 0;
  border-left: none;
  font-style: italic;
  font-size: 16px;
}
.press-quote p { margin: 0; }

/* Alignment fix: neutralize the shared .page-header/.press-quote
   max-width + auto-margin centering when nested in the press two-column
   layout, so both line up flush with the column edge at all widths. */
.press-layout-text .page-header,
.press-layout-text .press-quote {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.press-layout-text .lede {
  font-size: 16px;
  color: var(--text);
}

/* Tighter vertical rhythm for the press text column */
.press-layout-text .page-header {
  padding-top: 40px;
  padding-bottom: 16px;
}
.press-layout-text .press-quote {
  margin-bottom: 20px;
}
.press-layout-text .press-quote h2 {
  margin: 12px 0 8px;
}
.press-layout-text .press-quote blockquote,
.press-layout-text .press-quote p {
  line-height: 1.4;
}

/* Contact */
.contact-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-details h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 16px;
}
.contact-details p {
  font-size: 20px;
  margin: 0 0 12px;
}
.contact-wrap img {
  border-radius: 4px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 5%;
  text-align: center;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.social-links a { text-decoration: none; }
.social-links a:hover { color: var(--muted); }
.site-footer .copyright {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .press-layout { grid-template-columns: 1fr; }
  .press-layout-image { height: auto; }
  .press-layout-image img { height: auto; object-fit: initial; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery-item img { height: 100px; }
  .site-nav { gap: 16px; }
  .measurements dl { grid-template-columns: 1fr; }
}
