/* levizimmerman.com — editorial contact-sheet: full-bleed photography, generous margins,
   a 12-column grid at 1280px, asymmetric featured tiles, camera-style captions. */
:root {
  --paper: #F8F6F1;
  --paper-2: #EFEBE2;
  --ink: #221C17;
  --ink-2: #5E554C;
  --line: #DED8CC;
  --spruce: #2F6B5D;
  --spruce-ink: #1F4A41;
  --wheat: #D4A63F;
  --dark: #171311;
  --dark-2: #231D19;
  --dark-fg: #F2ECE2;
  --dark-fg-2: #B4A89A;
  --on-accent: #FFFFFF;
  --shadow: 0 18px 50px -24px rgba(34, 28, 23, .45);
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171311; --paper-2: #211C18; --ink: #F2ECE2; --ink-2: #ABA196; --line: #342C26;
    --spruce: #7FC3AE; --spruce-ink: #A6DCCB; --wheat: #E2B860; --dark: #0F0D0B; --dark-2: #1A1512;
    --dark-fg: #F2ECE2; --dark-fg-2: #B4A89A; --on-accent: #171311; --shadow: 0 18px 50px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171311; --paper-2: #211C18; --ink: #F2ECE2; --ink-2: #ABA196; --line: #342C26;
  --spruce: #7FC3AE; --spruce-ink: #A6DCCB; --wheat: #E2B860; --dark: #0F0D0B; --dark-2: #1A1512;
  --dark-fg: #F2ECE2; --dark-fg-2: #B4A89A; --on-accent: #171311; --shadow: 0 18px 50px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--spruce); outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
p { margin: 0; }
p + p { margin-top: 1em; }
.measure { max-width: 62ch; }
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--spruce); }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .01em; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(36px, 6vw, 72px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn--primary { background: var(--spruce); color: var(--on-accent); }
.btn--primary:hover { background: var(--spruce-ink); }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--dark-fg); color: var(--dark); }
.btn--light:hover { background: #fff; }
.link { font-weight: 600; color: var(--spruce); border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.arrow::after { content: "\2192"; margin-left: .35em; transition: transform .2s ease; display: inline-block; }
.arrow:hover::after { transform: translateX(4px); }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 10px; }
.brand small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: center; }
.nav a { font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--wheat); }
.nav .btn { padding: 10px 18px; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--dark-fg); background: var(--dark); min-height: clamp(520px, 78vh, 820px); display: grid; align-items: end; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: -1; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero__slides img.is-active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,19,17,.18) 0%, rgba(23,19,17,0) 35%, rgba(23,19,17,.82) 100%); }
.hero__content { padding-block: clamp(40px, 6vw, 80px); display: grid; gap: 22px; max-width: 880px; }
.hero__content .eyebrow { color: var(--wheat); }
.hero h1 { color: #fff; }
.hero p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero__actions .btn--ghost:hover { background: #fff; color: var(--dark); }
.hero__meta { position: absolute; right: var(--gutter); bottom: 22px; color: rgba(255,255,255,.65); display: none; }
@media (min-width: 900px) { .hero__meta { display: block; } }

/* Intro */
.intro { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .intro { grid-template-columns: 7fr 5fr; } }
.intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.intro .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; }
.facts span { color: var(--ink-2); font-size: .95rem; }

/* Services */
.services { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { display: grid; gap: 16px; align-content: start; min-width: 0; }
.service .ph { border-radius: var(--radius); overflow: hidden; }
.service h3 { font-size: 1.75rem; }
.service p { color: var(--ink-2); font-size: 1rem; }

/* Photo box: fixed aspect ratio, no layout shift */
.ph { position: relative; background: var(--paper-2); overflow: hidden; max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
a.ph:hover img, .tile:hover .ph img { transform: scale(1.03); }
/* Muted loop layered over a still (see photo() in build.js) */
.ph--video img { position: relative; z-index: 1; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.ph-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; background: var(--paper-2); }
.ph--playing img { opacity: 0; }

/* Featured tiles */
.tiles { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tile--lg { grid-column: span 4; } .tile--sm { grid-column: span 2; } .tile--md { grid-column: span 3; } .tile--xl { grid-column: span 6; } }
.tile { display: grid; gap: 12px; min-width: 0; }
.tile .ph { border-radius: var(--radius); }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile__meta h3 { font-size: 1.5rem; }

/* Clients */
.clients { background: var(--paper-2); }
.client-wall { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 3vw, 40px); border-top: 1px solid var(--line); padding-top: 8px; }
.client-wall div { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.15; padding: 14px 0; position: relative; }
.client-wall div::after { content: "\00B7"; color: var(--wheat); margin-left: clamp(18px, 3vw, 40px); }
.client-wall div:last-child::after { content: none; }
.client-wall small { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-left: 8px; vertical-align: 0.35em; }
/* Optional logos: uniform height, monochrome ink, full color on hover */
.client-wall .has-logo { display: inline-flex; align-items: center; }
.client-wall img { height: 1.6em; width: auto; max-width: 11em; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: 0.78; transition: filter .25s ease, opacity .25s ease; }
.client-wall div:hover img { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .client-wall img { filter: grayscale(1) invert(1) contrast(1.05); }
  :root:not([data-theme="light"]) .client-wall div:hover img { filter: none; }
}
:root[data-theme="dark"] .client-wall img { filter: grayscale(1) invert(1) contrast(1.05); }
:root[data-theme="dark"] .client-wall div:hover img { filter: none; }

/* About teaser / about page */
.about-grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; } }
.about-grid .ph { border-radius: var(--radius); aspect-ratio: 4 / 5; }
.about-copy { display: grid; gap: 18px; }
.how { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how div { display: grid; gap: 10px; border-top: 2px solid var(--wheat); padding-top: 16px; }
.how h3 { font-size: 1.5rem; }
.how p { color: var(--ink-2); font-size: 1rem; }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline > div { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .timeline > div { grid-template-columns: 170px 1fr; } }
.timeline .mono { padding-top: 5px; }
.timeline b { font-weight: 600; }
.timeline span { color: var(--ink-2); display: block; font-size: .95rem; }
.gear { display: flex; flex-wrap: wrap; gap: 10px; }
.gear li { list-style: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .9rem; }
.gear { padding: 0; margin: 0; }

/* Gallery (work category pages) */
.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 48px); display: grid; gap: 16px; }
.page-head p.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 62ch; }
.group { padding-block: clamp(24px, 4vw, 48px); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.group__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.masonry { columns: 1; column-gap: 14px; }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; column-gap: 18px; } }
.masonry .ph { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); cursor: zoom-in; display: block; }
@media (min-width: 1000px) { .masonry .ph { margin-bottom: 18px; } }
.masonry.is-js { columns: auto; display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.masonry.is-js[data-cols="2"] { --cols: 2; }
.masonry.is-js[data-cols="3"] { --cols: 3; gap: 18px; }
.masonry__col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.masonry.is-js[data-cols="3"] .masonry__col { gap: 18px; }
.masonry.is-js .ph { margin-bottom: 0; }
.category-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.category-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .92rem; font-weight: 500; }
.category-nav a:hover { border-color: var(--ink); }
.category-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.next { border-top: 1px solid var(--line); }
.next a { display: grid; gap: 8px; }
.next .eyebrow { color: var(--ink-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,13,11,.94); display: none; align-items: center; justify-content: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; font-family: var(--font-body); transition: background .2s ease; }
.lightbox__btn:hover { background: rgba(255,255,255,.18); }
.lightbox__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; left: 20px; top: calc(28px + env(safe-area-inset-top, 0px)); color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: .78rem; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; } }

/* Video */
.dark { background: var(--dark); color: var(--dark-fg); }
.dark .eyebrow { color: var(--wheat); }
.dark .muted, .dark .mono { color: var(--dark-fg-2); }
.dark .ph { background: var(--dark-2); }
.videos { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .videos { grid-template-columns: repeat(2, 1fr); } }
.video { display: grid; gap: 12px; min-width: 0; }
.video .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play span { width: 64px; height: 64px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--dark); display: grid; place-items: center; font-size: 1.1rem; padding-left: 4px; transition: transform .2s ease; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.video:hover .play span { transform: scale(1.06); }
.video h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }
.live { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .live { grid-template-columns: 6fr 6fr; } }
.live .strip { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.live .strip .ph { border-radius: var(--radius); }
.live .strip .ph:first-child { grid-row: span 2; height: 100%; }
.live .strip .ph:not(:first-child) { aspect-ratio: 4 / 5; }

/* Contact */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-list { display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 4px; }
.contact-list a, .contact-list b { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 400; }
.copy-btn { font: inherit; font-size: .8rem; font-weight: 600; color: var(--spruce); background: none; border: 0; padding: 0; cursor: pointer; justify-self: start; }
.form { display: grid; gap: 16px; }
.form .two { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: .88rem; color: var(--ink-2); }
.form__ok { display: none; padding: 16px; border: 1px solid var(--spruce); border-radius: var(--radius); }
.form__ok.is-visible { display: block; }

/* CTA band */
.cta { background: var(--paper-2); }
.cta .wrap { display: grid; gap: 20px; justify-items: start; }
.cta h2 { max-width: 20ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 36px 48px; }
.footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.footer .brand { font-size: 1.3rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.footer .mono { display: block; margin-top: 8px; }

/* Reveal on scroll (visible by default; only animates when JS and motion are allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Websites: project cards with browser / phone frames */
.project { padding: clamp(28px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; }
.project__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(16px, 2.5vw, 28px); }
.project__head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 4px; }
.project__head .mono { color: var(--ink-2); display: block; }
.project__text { max-width: 62ch; color: var(--ink-2); margin-top: clamp(16px, 2.5vw, 24px); }
.shot { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.shot .ph { border-radius: 0; }
.shot__bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.shot__bar .mono { margin-left: 8px; font-size: 0.7rem; color: var(--ink-2); }
.shot--hero { box-shadow: 0 24px 60px -30px rgba(23, 19, 17, .35); }
.shot:hover img { transform: scale(1.015); }
