/* Pete Owen Design — styles */

:root {
  --paper: #eeebe1;
  --ink: #141413;
  --muted: #6d695f;
  --line: rgba(20, 20, 19, 0.14);
  --night: #1b1b19;
  --radius: 10px;
  --pad: clamp(16px, 2.2vw, 32px);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* Leave room for the sticky header when a link jumps to a section (About, Contact…). */
[id] { scroll-margin-top: 90px; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 6px; }
.pill {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.pill:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--pad);
  padding: clamp(40px, 6vw, 96px) var(--pad) clamp(40px, 5vw, 80px);
  align-items: start;
}
.hero-intro {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
}
.hero-intro a { display: inline-block; margin-top: 22px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero-side { font-size: 13px; line-height: 1.45; }
.hero-side p { margin: 0 0 18px; }
.hero-side .label { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- section label ---------- */
.section-label {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  padding: 0 var(--pad);
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-weight: 400;
}

/* ---------- project rows ---------- */
.work { padding: 0 var(--pad); }
.project {
  display: block;
  padding-bottom: clamp(56px, 7vw, 110px);
}
.project-meta {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--pad);
  align-items: end;
  margin-bottom: 14px;
}
.project-name { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.project-name span { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.project-summary {
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.2;
  max-width: 34em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}

.strip {
  display: grid;
  gap: 10px;
  height: clamp(240px, 33vw, 560px);
}
.strip[data-count="1"] { grid-template-columns: 1fr 2fr 1fr; column-gap: var(--pad); }
.strip[data-count="1"] figure { grid-column: 2 / 4; }
.strip[data-count="2"] { grid-template-columns: 1.7fr 1fr; }
.strip[data-count="3"] { grid-template-columns: 1fr 2.1fr 1.25fr; }
.strip figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: #dcd8cc; }
.strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.project:hover .strip img { transform: scale(1.035); }
.project:hover .project-name { text-decoration: underline; text-underline-offset: 3px; }

.play {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px 0 12px;
  background: var(--paper); color: var(--ink);
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.play::before { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- grid of work (list page) ---------- */
.work-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); margin: 0 0 clamp(20px, 3vw, 40px);
}
.work-head .section-label { padding: 0; margin: 0; }
.view-switch { display: flex; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.view-switch > * { padding: 6px 12px; border-radius: 999px; border: 1.5px solid transparent; }
.view-switch a { color: var(--muted); }
.view-switch a:hover { color: var(--ink); border-color: var(--line); }
.view-switch [aria-current] { border-color: var(--ink); }

.work.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 14px; row-gap: clamp(28px, 3.2vw, 48px);
  padding: 0 var(--pad) clamp(60px, 8vw, 120px);
}
.card { display: block; }
.card figure {
  margin: 0; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius); background: #dcd8cc;
}
.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .5s;
}
.card:hover img { transform: scale(1.04); }
.card .play { left: 12px; bottom: 12px; height: 28px; padding: 0 11px 0 10px; font-size: 10px; }
.card .play::before { border-left-width: 7px; border-top-width: 5px; border-bottom-width: 5px; }
.card-meta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline;
  padding-top: 11px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.card-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-name { font-weight: 700; }
.card-client { color: var(--muted); font-weight: 500; text-align: right; }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- clients marquee ---------- */
.clients {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0; margin: 0 0 clamp(60px, 8vw, 120px);
}
.clients-label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; margin-bottom: 14px; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-weight: 700; font-size: clamp(28px, 4vw, 60px); letter-spacing: -0.03em;
  padding: 0 .55em; white-space: nowrap;
}
.marquee span:nth-child(even) { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: 1fr 3fr; gap: var(--pad);
  padding: 0 var(--pad) clamp(70px, 10vw, 150px);
}
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); margin: 0; }
.about p {
  margin: 0 0 .6em;
  font-size: clamp(24px, 2.7vw, 44px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500;
  max-width: 22em;
}

/* ---------- footer / contact ---------- */
.contact {
  background: var(--night); color: var(--paper);
  padding: clamp(50px, 8vw, 120px) var(--pad) 28px;
  border-radius: 18px 18px 0 0;
}
.contact .eyebrow { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 28px); margin: 0 0 10px; opacity: .8; }
.contact .big {
  display: inline-block;
  font-weight: 700; font-size: clamp(40px, 8.5vw, 150px); line-height: .95; letter-spacing: -0.045em;
  border-bottom: 3px solid transparent; transition: border-color .25s;
}
.contact .big:hover { border-color: var(--paper); }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad);
  margin-top: clamp(50px, 7vw, 110px); padding-top: 22px;
  border-top: 1px solid rgba(238,235,225,.18);
  font-size: 13px;
}
.contact-grid .label { opacity: .5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.contact-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- project page ---------- */
.p-hero { padding: clamp(40px, 6vw, 90px) var(--pad) clamp(30px, 4vw, 56px); }
.p-back { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.p-back:hover { color: var(--ink); }
.p-title {
  margin: 22px 0 0;
  font-weight: 700; font-size: clamp(44px, 8vw, 130px); line-height: .93; letter-spacing: -0.045em;
}
.p-meta {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--pad);
  padding: 0 var(--pad) clamp(30px, 4vw, 60px); align-items: start;
}
.p-meta .label { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.p-meta .client { font-size: 13px; font-weight: 600; }
.p-summary { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 30px); line-height: 1.15; margin: 0; }
.p-credits { font-size: 13px; color: var(--muted); margin-top: 14px; }

.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 var(--pad);
}
.gallery > * { margin: 0; border-radius: var(--radius); overflow: hidden; background: #dcd8cc; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .solo { width: calc(50% - 5px); justify-self: center; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.film { position: relative; aspect-ratio: 16 / 9; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.next {
  display: block; padding: clamp(70px, 10vw, 150px) var(--pad);
}
.next .label { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 28px); }
.next .name {
  display: block; font-weight: 700; font-size: clamp(40px, 7vw, 120px); line-height: .95; letter-spacing: -0.045em;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.next:hover .name { transform: translateX(12px); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 1100px) {
  .work.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .work.grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { order: -1; }
  .project-meta { grid-template-columns: 1fr; gap: 8px; }
  .tags { justify-content: flex-start; }
  .strip {
    display: flex; height: 62vw; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip figure { flex: 0 0 84%; scroll-snap-align: center; }
  .strip[data-count="1"] figure { flex-basis: 100%; }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .p-meta { grid-template-columns: 1fr; gap: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .solo { width: 100%; }
}

@media (max-width: 440px) {
  .nav { gap: 4px; }
  .pill { height: 28px; padding: 0 10px; font-size: 10.5px; letter-spacing: .04em; }
  .logo img, .ov-header .logo img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip img, .next .name { transition: none; }
}
