/* ==========================================================================
   CorsaLogic - corsalogic.com
   Swiss industrial light. Red / black / white. Helvetica Neue.
   Brand: strong, aggressive, clean, confident, modern, spare.
   ========================================================================== */

:root {
  --paper: #FAFAF7;
  --ink: #111111;
  --ink-soft: #4c4c4a;
  --red: #FF0000;
  --hair: rgba(17, 17, 17, 0.14);
  --hair-strong: rgba(17, 17, 17, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Helvetica Neue", "HelveticaNeue", Helvetica, "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

.display {
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

h1.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3.2rem); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  line-height: 1.55;
}

.label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
}

p + p { margin-top: 1em; }

.prose { max-width: 65ch; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--red); }
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
}
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }

.textlink {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.textlink:hover { color: var(--red); border-color: var(--red); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}

.site-header .bar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 26px; width: auto; }
.brand span {
  font-weight: 200;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand b { font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 17px; width: 100%; }
  .site-nav a[aria-current="page"] { border-bottom: none; color: var(--red); }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.rule-top { border-top: 1px solid var(--hair); }

/* ---------- Hero (home) ---------- */

.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Interior page hero */
.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--hair); }
.page-hero h1 { margin-bottom: 20px; }
@media (max-width: 768px) { .page-hero { padding: 56px 0 40px; } }

/* ---------- Statement band ---------- */

.statement { border-top: 2px solid var(--ink); }
.statement p {
  font-weight: 200;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 24em;
}
.statement em {
  font-style: normal;
  color: var(--red);
}

/* ---------- Bento (home services) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.bento > * { background: var(--paper); padding: 40px 36px; }
.cell-wide { grid-column: span 4; }
.cell-narrow { grid-column: span 2; }
.cell-third { grid-column: span 2; }

.bento h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; }
.bento p { color: var(--ink-soft); font-size: 15.5px; }

.cell-photo {
  padding: 0;
  position: relative;
  min-height: 320px;
}
.cell-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell-red { background: var(--red); color: #fff; }
.cell-red h3 { color: #fff; }
.cell-red p { color: rgba(255, 255, 255, 0.85); }
.cell-red .wordmark {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.cell-red .wordmark b { font-weight: 700; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .cell-wide, .cell-narrow, .cell-third { grid-column: span 1; }
  .cell-photo { min-height: 260px; }
}

/* ---------- Film strip (home showcase teaser) ---------- */

.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--hair-strong); }
.strip a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(420px, 78vw);
}
.strip img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.35s var(--ease);
}
.strip a:hover img { opacity: 0.85; }

/* ---------- Split feature (services) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 200; letter-spacing: -0.01em; margin-bottom: 18px; }
.feature ul { list-style: none; margin-top: 24px; }
.feature li {
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.feature li strong { color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 64px; }
}

/* ---------- Report columns (reports page) ---------- */

.report-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-top: 56px;
}
.report-col { background: var(--paper); padding: 48px 44px; }
.report-col .kicker {
  font-weight: 200;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.report-col .when { color: var(--red); font-size: 14px; font-weight: 500; margin-bottom: 28px; }
.report-col dl { margin: 0; }
.report-col dt { font-weight: 500; font-size: 15.5px; padding-top: 18px; }
.report-col dd { color: var(--ink-soft); font-size: 15px; padding: 4px 0 18px; border-bottom: 1px solid var(--hair); }
.report-col dd:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .report-cols { grid-template-columns: 1fr; }
  .report-col { padding: 36px 28px; }
}

/* ---------- Gallery (work page) ---------- */

.gallery {
  columns: 3;
  column-gap: 20px;
  margin-top: 56px;
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 20px;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  transition: opacity 0.35s var(--ease);
}
.gallery figure:hover img { opacity: 0.85; }
.gallery figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 8px;
}

@media (max-width: 1000px) { .gallery { columns: 2; } }
@media (max-width: 620px) { .gallery { columns: 1; } }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1200px, 94vw);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(17, 17, 17, 0.92); }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.8); font-size: 14px; text-align: center; padding-top: 12px; }

/* ---------- CTA band ---------- */

.cta-band { border-top: 2px solid var(--ink); }
.cta-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 14em; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.contact-meta .item { padding: 20px 0; border-top: 1px solid var(--hair); }
.contact-meta .item:first-child { border-top: 0; padding-top: 0; }
.contact-meta .item h3 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 6px; }
.contact-meta .item a { text-decoration: none; font-size: 1.1rem; }
.contact-meta .item a:hover { color: var(--red); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
form label { font-size: 14px; font-weight: 500; }
form input, form textarea {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hair-strong);
  padding: 13px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
form input::placeholder, form textarea::placeholder { color: #767672; }
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.25);
}
form button { border: 0; cursor: pointer; font-family: var(--font); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  form .row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 48px 0 56px;
}
.site-footer .inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer img { height: 88px; }
.site-footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--red); }
.site-footer .fine { font-size: 13px; color: var(--ink-soft); width: 100%; padding-top: 28px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .strip img, .gallery img { transition: none; }
}
