/* ============================================================
   zackotoole.com — static rebuild
   Matched to the live Squarespace site (2026-07):
   Poppins, ink #212431, navy #192734, accent red #e93541.
   ============================================================ */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/poppins-300-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #212431;
  --navy: #192734;
  --red: #e93541;
  --line: #e7e7e7;
  --max-content: 1230px;
  --max-prose: 640px;
  --pad: clamp(20px, 3vw, 57px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 2.3vw, 44px);
  min-height: 75px;
  border-bottom: 1px solid var(--line);
}

.site-header .logo { justify-self: start; }
.site-header .logo img { width: auto; height: 20px; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.portfolio-btn {
  justify-self: end;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  transition: opacity 0.15s ease;
}
.portfolio-btn:hover { opacity: 0.85; }
.portfolio-btn:focus-visible { outline-color: var(--red); }

@media (max-width: 700px) {
  .site-header { grid-template-columns: auto 1fr; gap: 16px; }
  .site-nav { justify-content: flex-end; }
  .portfolio-btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Homepage work grid ---------- */

.work-grid {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 190px) var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.work-tile { position: relative; overflow: hidden; }
.work-tile img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Live site: white wash over tile on hover (title stays hidden) */
.work-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.work-tile:hover::after { opacity: 0.5; }

/* Live site hides tile titles (opacity 0); keep for screen readers */
.work-tile .tile-title {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Project pages ---------- */

.project { padding-bottom: 48px; }

.project figure {
  margin: 0 auto clamp(32px, 6.6vw, 98px);
  max-width: var(--max-content);
  padding: 0 var(--pad);
}

.project .prose {
  max-width: var(--max-content);
  margin: clamp(40px, 6vw, 88px) auto;
  padding: 0 var(--pad);
}

.project .prose > * { max-width: var(--max-prose); }

.project .prose h1,
.project .prose h2 {
  font-size: clamp(26px, 2.2vw, 41px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.project .prose h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.project .prose p {
  font-size: clamp(17px, 1.06vw, 20px);
  margin: 0 0 16px;
}
.project .prose p:last-child { margin-bottom: 0; }
.project .prose strong { font-weight: 600; }

/* Side-by-side rows (live Squarespace fluid-engine layouts) */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  max-width: var(--max-content);
  margin: 0 auto clamp(32px, 6.6vw, 98px);
  padding: 0 var(--pad);
}
.row > figure, .row figure { margin: 0; padding: 0; max-width: none; }
.row .prose { margin: 0; padding: 0; max-width: none; }
.row--text-right .prose { order: 2; }

.stack { display: grid; gap: 12px; }
.grid2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: var(--max-content);
  margin: 0 auto 12px;
  padding: 0 var(--pad);
}
.pair figure, .trio figure { margin: 0; padding: 0; max-width: none; }
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: var(--max-content);
  margin: 0 auto clamp(32px, 6.6vw, 98px);
  padding: 0 var(--pad);
}
.pair + .pair { margin-top: 0; }
.pair:last-of-type, .pair--end { margin-bottom: clamp(32px, 6.6vw, 98px); }

.center-img { max-width: calc(83% ); margin-inline: auto; }

.prose--center { text-align: center; display: grid; justify-items: center; }
.prose--center > * { max-width: 713px; width: 100%; }

@media (max-width: 700px) {
  .row, .pair { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr 1fr; }
  .row--text-right .prose { order: 0; }
}

/* Dense photo galleries */
.gallery {
  max-width: var(--max-content);
  margin: 0 auto clamp(32px, 6.6vw, 98px);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.gallery figure { margin: 0; padding: 0; max-width: none; }
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; }
.gallery.natural img { aspect-ratio: auto; object-fit: initial; }

/* Credits */
.credits {
  max-width: calc(var(--max-prose) + 2 * var(--pad));
  margin: clamp(48px, 7vw, 88px) auto;
  padding: 0 var(--pad);
  text-align: center;
  font-size: 14px;
}
.credits .agency {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.credits h2 {
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.credits .lede { font-weight: 600; font-size: 16px; }
.credits h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 28px 0 8px;
}
.credits p { margin: 0 0 10px; }

.credits--wide { max-width: var(--max-content); }
.credits-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  text-align: center;
}
@media (max-width: 700px) { .credits-cols { grid-template-columns: 1fr; } }

/* Prev / next */
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 32px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-nav .next { margin-left: auto; }
.project-nav a:hover { border-bottom: 1px solid var(--ink); }

/* ---------- About / contact ---------- */

.about { padding-top: clamp(24px, 4vw, 64px); }

.about-intro {
  max-width: var(--max-content);
  margin: 0 auto clamp(56px, 8vw, 120px);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(220px, 280px);
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 800px) {
  .about-intro { grid-template-columns: 1fr; }
}

.about-intro h1 {
  font-size: clamp(15px, 0.9vw, 17px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
  margin: 0 0 24px;
}

.about-intro p { font-size: 14px; margin: 0 0 16px; }

.about-intro .cta {
  display: inline-block;
  margin-top: 24px;
  padding: 15px 34px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.about-intro .cta:hover { opacity: 0.85; }

.about-side img { max-width: 280px; }

.about-side .contact-lines {
  font-size: 14px;
  margin: 24px 0 0;
  color: var(--navy);
}
.about-side .contact-lines a {
  display: block;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-label {
  text-align: center;
  font-size: clamp(18px, 1.22vw, 23px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 40px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 7vw, 140px);
  align-items: center;
  max-width: var(--max-content);
  margin: 0 auto clamp(56px, 8vw, 120px);
  padding: 0 var(--pad);
}
@media (max-width: 700px) { .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Scroll-in reveal (matches live: fade + scale 0.92 → 1, 0.8s ease).
   Hidden state only applies once JS has run, so no-JS still shows everything. */
html.reveal-enabled .logo-grid img {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}
html.reveal-enabled .logo-grid img.in-view {
  opacity: 1;
  transform: none;
}

/* Testimonials — full-bleed navy band, white uppercase quotes.
   Without JS all quotes stack; site.js turns it into a one-at-a-time
   slideshow with side arrows, matching the live Squarespace banner. */
.testimonials-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: clamp(56px, 8vw, 150px) clamp(64px, 8vw, 150px);
}
.testimonials {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.testimonials li { margin-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.testimonials li:last-child { margin-bottom: 0; }
.testimonials blockquote {
  margin: 0 0 20px;
  font-size: clamp(17px, 1.22vw, 23px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
}
.testimonials cite {
  font-style: normal;
  font-size: 14px;
  opacity: 0.75;
}
.testimonials cite strong { display: block; opacity: 1; font-weight: 600; }

.testimonials-band.slider-enabled { display: grid; align-items: center; min-height: 480px; }
.slider-enabled .testimonials li { display: none; margin: 0; }
.slider-enabled .testimonials li.active { display: block; animation: quote-fade 0.5s ease; }
@keyframes quote-fade { from { opacity: 0; } to { opacity: 1; } }

.quote-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #d6d8db;
  color: #43464f;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.quote-arrow:hover { background: #fff; }
.quote-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.quote-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.quote-arrow--prev { left: clamp(12px, 3vw, 56px); }
.quote-arrow--next { right: clamp(12px, 3vw, 56px); }

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

.site-footer { padding: 36px var(--pad); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--navy);
}

.footer-inner .footer-email { justify-self: start; }
.footer-inner .footer-tag { justify-self: end; }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-social { display: flex; gap: 10px; justify-self: center; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--navy);
  border-radius: 50%;
  transition: opacity 0.15s ease;
}
.footer-social a:hover { opacity: 0.8; text-decoration: none; }
.footer-social svg { width: 12px; height: 12px; fill: #fff; }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-inner .footer-email, .footer-inner .footer-tag { justify-self: center; }
}
