/* Pam King Designs — monochrome, after the 2026 deck.
   Layout: wide editorial grid, big type, case colour bands. */
:root {
  --bg: #000000;
  --bg-2: #121212;
  --fg: #f4f4f2;
  --muted: #a3a3a0;
  --line: #2a2a2a;
  --accent: #cfe8dc;
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font: 600 15px var(--display); letter-spacing: .22em; text-decoration: none; text-transform: uppercase; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }

/* type */
.eyebrow { font: 500 12px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 104px); letter-spacing: -.02em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -.01em; }
h3 { font-size: 22px; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #d6d6d3; max-width: 60ch; }
p { max-width: 68ch; }

/* hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: end; padding-top: 72px; }
.hero-text { padding-bottom: 72px; min-width: 0; }
.hero-text .lead { margin-top: 28px; }
.hero-figure { align-self: end; justify-self: end; width: min(420px, 100%); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #d6d6d3; }

/* sections */
section { padding-block: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }

/* featured cases */
.cases { display: grid; gap: 28px; }
.case {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
  border-radius: 20px; overflow: hidden; text-decoration: none;
  background: var(--case-bg, var(--bg-2)); color: var(--case-fg, var(--fg));
  transition: transform .25s ease;
}
.case:hover { transform: translateY(-4px); }
.case-text { padding: 44px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.case-text h3 { font-size: clamp(28px, 3.2vw, 42px); }
.case-text p { margin: 0; opacity: .82; }
.case-meta { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.case-more { margin-top: auto; font: 500 14px var(--display); }
.case-img { min-height: 340px; background-size: cover; background-position: center; }

/* more work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.tile img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tile figcaption { padding: 14px 16px 18px; font-size: 14px; color: var(--muted); }
.tile figcaption b { display: block; color: var(--fg); font: 600 16px var(--display); margin-bottom: 2px; }

/* about */
.about { border-top: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about-col { min-width: 0; }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list span:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.brands { color: var(--muted); font-size: 15px; line-height: 2; }

/* contact */
.contact { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.contact a.big { font: 600 clamp(20px, 3vw, 38px) var(--display); text-decoration: none; border-bottom: 2px solid var(--fg); overflow-wrap: anywhere; }
.contact-links { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font: 500 14px var(--display); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* case study pages */
.cs-hero { background: var(--case-bg); color: var(--case-fg, var(--fg)); padding-block: 88px 0; overflow: hidden; }
.cs-hero h1 { font-size: clamp(48px, 9vw, 120px); text-transform: none; }
.cs-hero .lead { color: inherit; opacity: .85; margin-top: 24px; }
.cs-hero-img img { width: 100%; }
.cs-hero-img { margin-top: 56px; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 -10px 60px rgba(0,0,0,.25); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 48px; border-bottom: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; }
.cs-body { padding-block: 72px; }
.cs-row { display: grid; grid-template-columns: .38fr .62fr; gap: 48px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.cs-row:last-child { border-bottom: 0; }
.cs-row > * { min-width: 0; }
.cs-row h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cs-row p:first-child { margin-top: 0; }
.cs-row ul { padding-left: 1.1em; margin: 0; }
.cs-row li { margin-bottom: 8px; }
.shots { display: grid; gap: 20px; margin-block: 24px 8px; }
.shots.two { grid-template-columns: 1fr 1fr; align-items: start; }
.shots.three { grid-template-columns: repeat(3, 1fr); align-items: start; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.shot figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px 14px; }
.shot.pad { padding: 28px; display: grid; place-items: center; }
.next { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 56px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.next a.title { font: 600 clamp(26px, 4vw, 44px) var(--display); text-decoration: none; }
.quote { font: 500 clamp(20px, 2.2vw, 26px)/1.45 var(--display); max-width: 40ch; margin: 0; }

@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .contact .wrap, .case, .cs-row { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 8px; }
  .hero-figure { justify-self: center; width: min(240px, 70%); }
  .case-img { min-height: 240px; order: -1; }
  .case-text { padding: 28px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .shots.three { grid-template-columns: 1fr 1fr; }
  section { padding-block: 64px; }
  .cs-row { gap: 16px; }
}
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .grid, .shots.two, .shots.three { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case { transition: none; }
  .case:hover { transform: none; }
}
