/* ==========================================================================
   chrisiacono.com — static rebuild of the Squarespace site
   Headings: Jost (stand-in for Futura PT)   Body: Figtree (stand-in for Proxima Nova)
   ========================================================================== */

:root {
  --bg: #fafafa;
  --ink: #2c2a29;        /* headings */
  --text: #999999;       /* body copy */
  --text-dark: #555;
  --brown: #3a322d;      /* header bar + footer */
  --accent: #a8988b;     /* active nav link */
  --line: #d8d8d8;
  --head: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 15px/1.95 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); text-transform: uppercase; margin: 0; letter-spacing: .01em; }
h2 { font-weight: 600; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; margin-bottom: 36px; }
h3 { font-weight: 600; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; margin-bottom: 26px; }
h4 { font-family: var(--body); font-weight: 400; font-size: 19px; letter-spacing: .02em; margin-bottom: 18px; color: var(--ink); }
p { margin: 0 0 1em; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 82px; padding: 0 var(--gutter);
  transition: background .35s, height .35s;
}
.site-header.scrolled { background: rgba(58, 50, 45, .96); height: 72px; }
.logo {
  font: 600 clamp(22px, 2.4vw, 32px)/1 var(--head); letter-spacing: .08em;
  color: #fff; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.site-nav { display: flex; gap: 34px; }
.site-nav a {
  font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; text-decoration: none; transition: color .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.menu-toggle { display: none; }

/* ---------- heroes / banners (parallax) ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; background: #222;
}
.hero-page { min-height: min(560px, 80vh); padding: 120px 20px 60px; }
.hero-full { min-height: 100vh; min-height: 100svh; padding: 120px 20px; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.parallax .hero-bg { inset: -25% 0; }          /* extra room for the parallax drift */
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1, .hero .hero-title {
  color: #fff; font-weight: 700; line-height: 1.08; margin: 0;
  font-size: clamp(42px, 6.2vw, 78px);
}
.hero-full .hero-title { font-size: clamp(40px, 5.4vw, 70px); }
.hero-sub { font: 400 clamp(18px, 1.8vw, 22px)/1.75 var(--body); margin: 34px auto 0; max-width: 780px; }
.hero-sub.small { font-size: 17px; max-width: 640px; }
.hero .btn { margin-top: 36px; }
.scroll-down { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1; color: #fff; width: 34px; }
.scroll-down svg { width: 34px; height: 17px; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 700 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-outline { color: #fff; border: 2px solid #fff; border-radius: 40px; padding: 15px 26px; }
.btn-outline:hover { background: #fff; color: var(--brown); }
.btn-lg { font: 500 24px/1 var(--head); letter-spacing: .1em; padding: 24px 34px; border-radius: 60px; }
.btn-solid { background: #272525; color: #fff; border: 0; padding: 20px 40px; font-size: 15px; }
.btn-solid:hover { background: #000; }

/* ---------- content sections ---------- */
.section { padding: clamp(60px, 9vw, 100px) 20px; }
.section.tight { padding: 56px 20px 40px; }
.container { max-width: 1040px; margin: 0 auto; }
.container.narrow { max-width: 840px; }
.lead { font: 300 20px/2 var(--body); color: #444; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 34px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3.cols { gap: 36px; }
figure { margin: 0; }
figcaption { font-size: 12px; line-height: 1.5; color: #888; margin-top: 16px; font-weight: 400; }
.square img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.text-cols { margin-top: 60px; }
.wide-img { margin-top: 14px; }
.wide-img img, .cols figure img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cols figure { margin-top: 24px; }

/* ---------- about ---------- */
.about hr { border: 0; border-top: 1px solid #c9c9c9; margin: 44px 0 42px; }
.about h2 { margin-bottom: 34px; }
.credits { display: grid; gap: 26px; }
.credit-row { display: grid; grid-template-columns: 43% 26% 1fr; gap: 16px; font-weight: 400; }
.credit-title { font-weight: 600; }

/* ---------- videos ---------- */
.video-card { all: unset; cursor: pointer; display: block; min-width: 0; }
.video-thumb {
  position: relative; display: block; overflow: hidden;
  background: #3d3936 center / cover no-repeat;
}
.video-thumb.wide { aspect-ratio: 4 / 3; }
.video-thumb.tall { aspect-ratio: 2 / 3; }
.video-thumb.video { aspect-ratio: 16 / 9; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 17px 0 17px 30px; border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); transition: transform .2s; }
.video-card:hover .play, .video-card:focus-visible .play { transform: translate(-40%, -50%) scale(1.15); }
.video-card:focus-visible .video-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-title { display: block; text-align: center; font-size: 14px; font-weight: 400; margin-top: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-card.no-id { cursor: default; }
.video-card.no-id .play { opacity: .35; }
.grid.videos { margin-bottom: 40px; }

/* ---------- photos ---------- */
.headshots { gap: 10px; }
.headshots img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.gallery { gap: 20px; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: opacity .2s; }
.gallery a:hover img, .headshots a:hover img { opacity: .85; }
.gallery figcaption { text-align: center; font-size: 13px; margin-top: 12px; min-height: 1.5em; }
.grid.gallery { margin-bottom: 40px; }

/* ---------- modals (lightbox + video) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 13, 12, .92); }
.modal-body { position: relative; z-index: 1; }
.modal-close { position: fixed; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; z-index: 2; }
.video-body { width: min(1100px, 92vw); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-body { display: flex; align-items: center; gap: 10px; }
.lightbox-body img { max-width: 84vw; max-height: 82vh; width: auto; }
.lightbox-body figcaption { color: #ddd; text-align: center; font-size: 14px; }
.lb-nav { background: none; border: 0; color: #fff; font-size: 56px; cursor: pointer; padding: 10px; line-height: 1; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; max-width: 1100px; }
.contact-side h2 { font-size: 34px; margin-bottom: 30px; }
.contact-side h3 { font-size: 21px; letter-spacing: .06em; line-height: 1.4; margin-top: 44px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #272525; color: #fff; transition: background .2s; }
.social a:hover { background: var(--accent); }
.social svg { width: 18px; height: 18px; }
.contact-form { font-weight: 400; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.contact-form legend, .contact-form .big > span { font-size: 15px; color: #999; padding: 0; margin-bottom: 4px; }
.contact-form label { display: block; }
.contact-form label > span { display: block; font-size: 12px; color: #777; margin-bottom: 2px; }
.contact-form .big { margin-bottom: 20px; }
.contact-form em { font-style: normal; font-size: 11px; color: #aaa; margin-left: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  width: 100%; font: 400 15px/1.5 var(--body); color: #333;
  background: #fafafa; border: 1px solid #a9a9a9; border-radius: 0; padding: 10px 12px;
}
.contact-form input { height: 44px; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.contact-form .hp { display: none; }
.form-status { margin-top: 16px; color: #555; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--brown); text-align: center; padding: 80px 20px 36px; margin-top: 40px; }
.to-top {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #999; text-decoration: none; font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
}
.to-top svg { width: 16px; height: 8px; margin-bottom: 4px; }
.copyright { color: rgba(255,255,255,.45); font-size: 12px; margin: 50px 0 0; }

/* ---------- home dot navigation ---------- */
.dot-nav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 18px; mix-blend-mode: difference; }
.dot-nav a { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #fff; display: block; transition: background .2s; }
.dot-nav a.active { background: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .credit-row { grid-template-columns: 1fr 1fr; }
  .credit-row span:last-child { grid-column: 1 / -1; margin-top: -18px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; cursor: pointer; z-index: 60; }
  .menu-toggle span { width: 26px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; background: var(--brown); flex-direction: column;
    align-items: center; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 20px; }
  .grid-2, .grid-3, .row-2 { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .headshots { grid-template-columns: 1fr; }
  .dot-nav { display: none; }
  .credit-row { grid-template-columns: 1fr; gap: 0; }
  .credit-row span:last-child { grid-column: auto; margin-top: 0; }
  .credits { gap: 22px; }
  .btn-lg { font-size: 19px; padding: 20px 28px; }
}
