/* Andrea Zehnder — portfolio
   Serif: FF Meta Serif (Adobe Fonts). Until the Adobe embed code is added,
   Source Serif 4 stands in. Sans: Work Sans (Google Fonts). */

:root {
  --ink: #141414;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --paper: #ffffff;
  --paper-2: #f4f3f1;
  --rule: #e3e1dd;
  --serif: "ff-meta-serif-web-pro", "Source Serif 4", Georgia, serif;
  --meta: "ff-meta-serif-web-pro", "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { 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-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand { font-family: var(--sans); font-weight: 500; font-size: 16px; letter-spacing: .01em; text-decoration: none; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 400; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* Type */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8.2vw, 124px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0;
}
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.5vw, 96px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 20px; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; margin: 0; }
.lede { font-weight: 400; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.5; color: var(--ink-soft); }
.eyebrow { font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.caption { font-size: 14px; color: var(--ink-faint); margin-top: 12px; }

/* Home hero */
.hero { padding: clamp(72px, 12vw, 168px) 0 clamp(56px, 8vw, 112px); }
.hero .sub { margin-top: 32px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }

/* Work list */
.work { padding-bottom: 40px; }
.project { display: block; text-decoration: none; padding: 56px 0; border-top: 1px solid var(--rule); }
.project-media { background: var(--paper-2); overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.project:hover .project-media img { transform: scale(1.02); }
.project-media.phones { gap: 3%; padding: 5% 8% 0; align-items: flex-end; }
.project-media.phones img { width: 26%; height: auto; object-fit: contain; border-radius: 18px 18px 0 0; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.project-meta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 28px; }
.project-title { font-family: var(--serif); font-size: clamp(34px, 4vw, 60px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.project-line { margin: 10px 0 0; color: var(--ink-soft); font-size: 19px; }
.arrow { font-size: 15px; font-weight: 400; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.lock { font-size: 13px; color: var(--ink-faint); margin-left: 10px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 14px; font-weight: 400; background: var(--paper-2); border-radius: 999px; padding: 6px 14px; }

/* About */
.about { background: var(--paper-2); padding: clamp(72px, 10vw, 140px) 0; margin-top: 40px; }
.about-grid { display: grid; grid-template-columns: minmax(220px, 4fr) 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(100%); }
.about p { margin: 0 0 20px; color: var(--ink-soft); }
.about p:first-of-type { font-size: clamp(20px, 1.7vw, 24px); color: var(--ink); }

/* Contact / footer */
.contact { padding: clamp(80px, 11vw, 160px) 0; }
.contact .h1 a { text-decoration: none; border-bottom: 2px solid var(--ink); }
.contact-links { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; font-size: 17px; font-weight: 400; }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; font-size: 14px; color: var(--ink-faint); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Case study */
.cs-head { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.cs-head .sub { margin-top: 24px; max-width: 900px; }
.cs-hero { background: var(--paper-2); }
.cs-hero img { width: 100%; }
.cs-hero.phones { display: flex; justify-content: center; gap: 4%; padding: clamp(40px, 6vw, 96px) 8%; }
.cs-hero.phones img { width: 26%; border-radius: 22px; box-shadow: 0 14px 50px rgba(0,0,0,.14); }

.cs-intro { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); padding: clamp(56px, 8vw, 112px) 0 0; }
.cs-intro .lede { margin: 0; color: var(--ink); }
.cs-intro .role { margin-top: 28px; font-size: 15px; color: var(--ink-faint); }
.cs-intro .role strong { font-weight: 500; color: var(--ink-soft); }

.ps { display: grid; grid-template-columns: 4fr 4fr 4fr; gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 6vw, 88px) 0; }
.ps .spacer { }
.ps .label { font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.ps .statement { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(40px, 5vw, 72px) 0; }
.stat-num { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 80px); line-height: 1; letter-spacing: -.02em; }
.stat-txt { margin-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 300px; }

.chapter { padding: clamp(64px, 9vw, 128px) 0 0; }
.chapter-text { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); margin-bottom: clamp(32px, 4vw, 56px); }
.chapter-text p { margin: 0 0 16px; color: var(--ink-soft); max-width: 760px; }
.figure { background: var(--paper-2); margin: 0 0 24px; }
.figure img { width: 100%; }
.figure.pad { padding: clamp(24px, 4vw, 64px); }
.figure.pad img { box-shadow: 0 6px 30px rgba(0,0,0,.08); }
.figure.phone { display: flex; justify-content: center; padding: clamp(40px, 6vw, 88px) 0; }
.figure.phone img { width: min(380px, 70%); border-radius: 26px; box-shadow: 0 14px 50px rgba(0,0,0,.14); }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.note { margin-top: clamp(48px, 6vw, 80px); padding: 24px 28px; background: var(--paper-2); font-size: 15px; color: var(--ink-soft); }

.next { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--rule); padding: 56px 0 80px; }
.next a { text-decoration: none; }
.next .h1 { margin-top: 8px; }

/* Password gate */
.gate { min-height: 70vh; display: flex; align-items: center; }
.gate form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.gate input { font: inherit; font-size: 18px; padding: 14px 16px; border: 1px solid var(--ink); background: #fff; min-width: 260px; }
.gate button { font: inherit; font-size: 16px; font-weight: 500; padding: 14px 26px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.gate .err { color: #b3261e; font-size: 15px; margin-top: 12px; min-height: 1.5em; }
[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 860px) {
  .nav { gap: 18px; }
  .about-grid, .cs-intro, .chapter-text, .ps { grid-template-columns: 1fr; }
  .ps .spacer { display: none; }
  .stats { grid-template-columns: 1fr; }
  .figure-pair { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr; }
  .about img { max-width: 320px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav a.hide-sm { display: none; }
  .project-media.phones img, .cs-hero.phones img { border-radius: 12px; }
}

/* Fix: tag pills should not stretch inside grids */
.tags { align-self: start; align-content: flex-start; align-items: flex-start; }
.arrow { justify-self: start; }

/* Dark theme (add class="dark" to <body>) */
body.dark { --ink:#f2f0ec; --ink-soft:#b9b6b0; --ink-faint:#85827c; --paper:#111111; --paper-2:#1c1c1c; --rule:#2c2c2c; background:var(--paper); color:var(--ink); }
body.dark .site-header { background: rgba(17,17,17,.92); }
body.dark .contact .h1 a { border-color: var(--ink); }
body.dark .arrow { border-color: var(--ink); }
body.dark .about img { filter: grayscale(100%) brightness(.95); }
body.dark .project-media.phones img { box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* Thumbnail grid: all work */
.grid-head { display:flex; justify-content:space-between; align-items:end; gap:24px; padding-top:56px; border-top:1px solid var(--rule); margin-bottom:32px; }
.thumbs { display:grid; grid-template-columns:repeat(4, 1fr); gap:28px 24px; }
.thumb { text-decoration:none; display:block; }
.thumb-img { aspect-ratio:4/3; background:var(--paper-2); overflow:hidden; }
.thumb-img img { width:100%; height:100%; object-fit:cover; object-position:top center; transition:transform .5s ease; }
.thumb:hover .thumb-img img { transform:scale(1.04); }
.thumb-title { margin:12px 0 2px; font-size:16px; font-weight:500; }
.thumb-sub { margin:0; font-size:14px; color:var(--ink-faint); }
@media (max-width:1000px){ .thumbs{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:700px){ .thumbs{ grid-template-columns:repeat(2,1fr); gap:22px 14px;} }

/* Homepage: dark top band (header + hero), white below */
.site-header.on-dark { background: #111111; backdrop-filter: none; }
.site-header.on-dark .brand { color: #f2f0ec; }
.site-header.on-dark .nav a { color: #b9b6b0; }
.site-header.on-dark .nav a:hover { color: #fff; }
.hero.band { background: #111111; color: #f2f0ec; margin-bottom: 0; }
.hero.band .sub { color: #b9b6b0; }
.hero.band + .work .project:first-child { border-top: 0; }
#oeuvre { scroll-margin-top: 90px; }
@media (max-width: 520px) { .nav { gap: 12px; font-size: 14px; } }

/* Name and nav in FF Meta Serif, upper and lowercase */
.brand { font-family: var(--meta); font-weight: 700; font-size: 24px; letter-spacing: 0; line-height: 1; }
.nav { font-family: var(--meta); font-weight: 400; font-size: 18px; }
.site-header .wrap { height: 84px; }
@media (max-width: 760px) {
  .brand { font-size: 22px; }
  .nav { font-size: 16px; gap: 14px; }
}
@media (max-width: 480px) {
  .site-header .wrap { height: auto; padding-top: 14px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand { font-size: 22px; }
  .nav { font-size: 15px; gap: 16px; }
}

/* Accent: hot pink for hover and "on" states */
:root { --pop: #ff2e93; }
::selection { background: var(--pop); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; }
.nav a { position: relative; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--pop); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover, .site-header.on-dark .nav a:hover { color: var(--pop); }
.nav a.is-on, .site-header.on-dark .nav a.is-on { color: var(--pop); }
.nav a.is-on::after, .nav a:hover::after { transform: scaleX(1); }
.brand { transition: color .2s ease; }
.brand:hover { color: var(--pop) !important; }
.arrow { transition: color .2s ease, border-color .2s ease; }
.project:hover .arrow { color: var(--pop); border-color: var(--pop); }
.project:hover .project-title, .thumb:hover .thumb-title { color: var(--pop); }
.project-title, .thumb-title { transition: color .2s ease; }
.contact-links a, .contact .h1 a, .next a .h1 { transition: color .2s ease, border-color .2s ease; }
.contact-links a:hover, .contact .h1 a:hover, .next a:hover .h1 { color: var(--pop); border-color: var(--pop); }
.gate button:hover { background: var(--pop); border-color: var(--pop); }
.stat-txt, .project-line { font-weight: 400; }

/* ---------- Site-wide password gate ---------- */
html.az-locked, html.az-locked body { overflow: hidden; }
html.az-locked body > *:not(#az-gate) { visibility: hidden; }
#az-gate { position: fixed; inset: 0; z-index: 1000; background: #111; color: #f2f0ec; display: flex; align-items: center; overflow: hidden; transition: opacity .45s ease; }
#az-gate.az-leaving { opacity: 0; }
.az-gate-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.az-gate-name { font-family: var(--meta); font-weight: 700; font-size: 24px; margin: 0 0 28px; }
.az-gate-title { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 10vw, 150px); line-height: .95; letter-spacing: -.02em; margin: 0; }
.az-gate-lede { margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 22px); color: #b9b6b0; max-width: 560px; }
#az-gate-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
#az-gate-form input { font: inherit; font-size: 18px; padding: 14px 16px; border: 1px solid #f2f0ec; background: transparent; color: #f2f0ec; min-width: 260px; }
#az-gate-form input::placeholder { color: #85827c; }
#az-gate-form button { font: inherit; font-size: 17px; font-weight: 600; padding: 14px 28px; border: 1px solid #f2f0ec; background: #f2f0ec; color: #111; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
#az-gate-form button:hover { background: var(--pop); border-color: var(--pop); color: #fff; }
.az-gate-err { color: var(--pop); min-height: 1.5em; margin: 14px 0 0; font-size: 16px; }
.az-gate-help { margin: 8px 0 0; font-size: 15px; color: #85827c; }
.az-gate-help a { color: #b9b6b0; }
.az-gate-help a:hover { color: var(--pop); }
.az-sr { position: absolute; left: -9999px; }

/* Bunny on a balloon drifts across the sky */
.az-sky { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.az-rabbit { position: absolute; top: 8%; left: 0; width: clamp(90px, 10vw, 140px); animation: az-drift 26s linear infinite; animation-delay: -9s; }
.az-rabbit .az-balloon, .az-rabbit { transform-origin: 50% 0; }
.az-bunny { animation: az-dangle 3.2s ease-in-out infinite; transform-origin: 60px 128px; }
@keyframes az-drift {
  0%   { transform: translate(-15vw, 10vh) rotate(-3deg); }
  25%  { transform: translate(22vw, 0vh)  rotate(3deg); }
  50%  { transform: translate(55vw, 8vh)  rotate(-3deg); }
  75%  { transform: translate(85vw, -2vh) rotate(3deg); }
  100% { transform: translate(115vw, 6vh) rotate(-3deg); }
}
@keyframes az-dangle { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* Frankie watches from the corner: tail swish, slow blink */
.az-frankie { position: absolute; right: clamp(12px, 5vw, 80px); bottom: -6px; width: clamp(130px, 15vw, 220px); z-index: 1; }
.az-tail { transform-origin: 150px 160px; animation: az-swish 2.6s ease-in-out infinite; }
.az-eyes { transform-origin: 110px 84px; animation: az-blink 5s infinite; }
.az-pupil { animation: az-look 26s ease-in-out infinite; }
@keyframes az-swish { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@keyframes az-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes az-look { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

@media (max-width: 600px) {
  .az-frankie { width: 120px; right: 8px; }
  .az-gate-inner { padding-bottom: 120px; }
  #az-gate-form input { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .az-rabbit, .az-bunny, .az-tail, .az-eyes, .az-pupil { animation: none; }
  .az-rabbit { transform: translate(60vw, 4vh); }
}

/* ---------- Round: Nov 10 ---------- */
/* Hero: tighter, headline centered in the black band, 90px max, no widows */
.hero.band { padding: clamp(56px, 7vw, 96px) 0; min-height: min(62vh, 640px); display: flex; align-items: center; }
.hero.band .wrap { width: 100%; }
.hero .display { font-size: clamp(42px, 6.6vw, 90px); text-wrap: pretty; }
.hero .sub { margin-top: 24px; }

/* Project cards: show the whole image, no cropping */
.project-media { aspect-ratio: auto; display: block; background: none; }
.project-media img { width: 100%; height: auto; object-fit: initial; }
.project:hover .project-media img { transform: none; }
.project-media.phones { display: flex; justify-content: center; align-items: center; gap: 4%; padding: clamp(32px, 5vw, 64px) 8%; background: #faf9f7; }
.project-media.phones img { width: 24%; border-radius: 18px; }

/* Caption is now the title */
.project-line { font-family: var(--sans); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: var(--ink); margin: 0; max-width: 820px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color .2s ease; }
.project:hover .project-line { text-decoration-color: var(--pop); }

/* View case study: semibold, underline on the words only */
.arrow { border: 0; padding: 0; font-weight: 600; font-size: 16px; }
.arrow .u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.project:hover .arrow { color: var(--pop); }

/* Contact links: pink, semibold, no underline */
.contact-links a { color: var(--pop); font-weight: 600; text-decoration: none; }
.contact-links a:hover { color: var(--ink); }

/* About text column */
.about-grid > div { max-width: 575px; }

/* Case study titles: a phrase, not the product name */
.cs-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.01em; margin: 0; max-width: 980px; text-wrap: pretty; }
.cs-hero.phones { background: #faf9f7; align-items: center; }
.next-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin: 0; max-width: 900px; transition: color .2s ease; }
.next a:hover .next-title { color: var(--pop); }

/* ---------- Case study refinements ---------- */
.cs-head { text-align: center; }
.cs-head .cs-title { margin-left: auto; margin-right: auto; }
/* Below the full-width hero, content sits in the right three-quarters */
.cs-body { margin-left: 25%; }
.cs-body .cs-intro { grid-template-columns: 3fr 9fr; }
.cs-body .chapter-text { grid-template-columns: 1fr; gap: 16px; }
.cs-body .ps { grid-template-columns: 1fr 1fr; }
.cs-intro .role { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.55; }
.cs-intro .role strong { font-weight: 700; color: var(--ink); }
.ps .label { font-size: 16px; font-weight: 600; }
.ps .statement { text-wrap: pretty; }
.stat-num { font-weight: 700; }
.stat-txt { font-size: 18px; }
.cs-body .figure.pad { padding: clamp(16px, 2.5vw, 40px); }
@media (max-width: 860px) {
  .cs-body { margin-left: 0; }
  .cs-body .cs-intro, .cs-body .ps { grid-template-columns: 1fr; }
}

/* Intro block back to full width; Challenge/Solution labels pink; stronger stats */
.cs-body .cs-intro { margin-left: -33.3333%; grid-template-columns: 4fr 8fr; }
.ps .label { color: var(--pop); }
.stat-num { font-size: clamp(64px, 8vw, 120px); line-height: .95; }
.stat-txt { font-size: 20px; font-weight: 600; color: var(--ink); max-width: 320px; }
@media (max-width: 860px) { .cs-body .cs-intro { margin-left: 0; grid-template-columns: 1fr; } }

/* Client name above the case study title */
.cs-client { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--pop); margin: 0 0 18px; }
/* Chapters: heading left, text right, inside the three-quarter column */
.cs-body .chapter-text { grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .cs-body .chapter-text { grid-template-columns: 1fr; } }
/* No outlines or borders on images */
.cs-hero, .cs-hero img, .figure, .figure img, .project-media, .project-media img { border: 0; outline: 0; }
/* Name in header: 22px, one weight lighter */
.brand { font-size: 22px; font-weight: 600; }
.az-gate-name { font-size: 22px; font-weight: 600; }

/* ---------- Nov 10 evening round ---------- */
/* 1. Contact section on pink */
.contact { background: var(--pop); color: #141414; }
.contact .h1 a { border-color: #141414; }
.contact .h1 a:hover { color: #fff; border-color: #fff; }
.contact-links a { color: #fff; }
.contact-links a:hover { color: #141414; }
.site-footer { border-top: 0; }

/* 2. Homepage card titles at 26px */
.project-line { font-size: 26px; }
@media (max-width: 600px) { .project-line { font-size: 22px; } }

/* 3. Client name: same size as the title, 2px rule the width of the name, 30px above and below */
.cs-client { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; color: var(--pop); margin: 0 auto; display: table; }
.cs-client::after { content: ""; display: block; height: 2px; background: currentColor; margin: 30px 0; }

/* 4. Hide a 1px edge line baked into screenshots */
.cs-hero, .project-media { overflow: hidden; }
.cs-hero img, .project-media > img:only-child { margin-top: -1px; }

/* 5. Next case study: client name, no pink, underline on hover */
.next-client { font-family: var(--sans); font-weight: 600; font-size: 18px; margin: 0 0 12px; }
.next a:hover .next-title { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cs-client sup { font-size: .4em; vertical-align: top; position: relative; top: .35em; margin-left: .05em; }
/* Composite images shown whole, centered, no background */
.figure.fit { background: none; display: flex; justify-content: center; }
.figure.fit img { width: auto; max-width: 100%; max-height: 1000px; height: auto; }
/* Split chapter: heading + text left, image right */
.chapter-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.chapter-split .h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; margin: 0 0 28px; }
.chapter-split .split-text p { color: var(--ink-soft); font-size: 20px; line-height: 1.6; margin: 0; }
.chapter-split .split-media { margin: 0; }
.chapter-split .split-media img { max-height: 760px; }
@media (max-width: 860px) { .chapter-split { grid-template-columns: 1fr; } }

/* ================= Nov 10 late round ================= */
:root { --pop: #d90957; --cta: #c31552; }

/* 11. Black hero fills the first screen, with a scroll cue */
.hero.band { position: relative; min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: #b9b6b0; text-decoration: none; font-size: 28px; line-height: 1; animation: az-cue 2.2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--pop); }
@keyframes az-cue { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* 4. Client names above captions on the homepage */
.project-client { font-family: var(--sans); font-weight: 400; font-size: 26px; line-height: 1.3; color: var(--ink-soft); margin: 0 0 4px; }
@media (max-width: 600px) { .project-client { font-size: 22px; } }

/* 5. View case study +2px */
.arrow { font-size: 18px; }

/* 6. Pull quote under the portrait */
.about-side img { width: 100%; }
.pull-quote { margin: 36px 0 0; padding: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.35; color: var(--pop); }

/* 8 + 17. Let's talk on the CTA pink, white text */
.contact { background: var(--cta); color: #fff; }
.contact .h1 a { color: #fff; border-color: #fff; }
.contact .h1 a:hover { color: #141414; border-color: #141414; }

/* 17. Dark footer, blue-gray text, 16px */
.site-footer { background: #141414; color: #8fa0b3; border-top: 0; font-size: 16px; padding: 32px 0; }
.site-footer a { color: #8fa0b3; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }

/* 1. Case study intro aligns to the three-quarter line */
.cs-body .cs-intro { margin-left: 0; grid-template-columns: 1fr; gap: 24px; }

/* 2. Challenge / Solution labels +2px */
.ps .label { font-size: 18px; }

/* 3. Stat numbers in Source Sans so they sit on the baseline */
.stat-num { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; }

/* ---------- Password page: light paper, pen-and-ink drawings ---------- */
#az-gate { background: #faf9f6; color: #141414; }
.az-gate-title { color: #141414; }
.az-gate-lede { color: #4a4a4a; }
.az-pw-wrap { position: relative; display: flex; }
#az-gate-form input { border: 1px solid #141414; color: #141414; background: #fff; padding: 12px 48px 12px 16px; min-width: 300px; }
#az-gate-form input::placeholder { color: #8a8a8a; }
.az-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; color: #4a4a4a; cursor: pointer; display: flex; }
.az-eye:hover { color: var(--pop); }
#az-gate-form .az-enter { padding: 10px 56px; font-size: 16px; background: #141414; color: #fff; border: 1px solid #141414; }
#az-gate-form .az-enter:hover { background: var(--pop); border-color: var(--pop); }
.az-gate-help { color: #8a8a8a; }
.az-gate-help a { color: #141414; font-weight: 600; }
.az-gate-name { position: absolute; left: var(--gutter); bottom: 24px; margin: 0; z-index: 2; font-family: var(--meta); font-weight: 600; font-size: 22px; color: #141414; }
@media (max-width: 600px) { #az-gate-form input { min-width: 0; width: 100%; } .az-pw-wrap { flex: 1 1 100%; } }
#az-gate-form .az-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; min-width: 0; color: #4a4a4a; display: flex; }
#az-gate-form .az-eye:hover { background: none; color: var(--pop); }
.az-gate-name { left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.project-media > img { max-height: 900px; width: auto; max-width: 100%; margin-left: auto; margin-right: auto; }

/* ================= Nov 11 morning round ================= */
:root { --pop: #ed1365; }
/* Pink divider lines at 80% */
.stats { border-top-color: rgba(237, 19, 101, .8); border-bottom-color: rgba(237, 19, 101, .8); }
.next { border-top-color: rgba(237, 19, 101, .8); }
.grid-head { border-top-color: rgba(237, 19, 101, .8); }
.project { border-top-color: rgba(237, 19, 101, .8); }
.project:first-child { border-top: 0; }
/* About: quote a point smaller with breathing room; pink opening line */
.pull-quote { font-size: clamp(21px, 1.9vw, 27px); padding-right: 28px; }
.about p.bio-lede { color: var(--pop); font-weight: 500; }
/* Oeuvre: three across */
.thumbs { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.thumb-img { aspect-ratio: 8 / 5; }
.thumb-title { font-size: 18px; font-weight: 600; margin-top: 14px; }
.thumb-sub { font-size: 15px; }
div.thumb:hover .thumb-img img { transform: none; }
div.thumb:hover .thumb-title { color: inherit; }
@media (max-width: 860px) { .thumbs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .thumbs { grid-template-columns: 1fr; } }

/* ===== Oeuvre detail pages ===== */
.oe { padding: 48px 0 96px; }
.oe-banner { margin: 0 0 56px; }
.oe-banner img { display: block; width: 100%; height: auto; }
.oe-intro { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; margin-bottom: 64px; }
.oe-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; margin: 0 0 28px; }
.oe-title span { color: var(--ink-soft, #555); }
.oe-intro p { font-size: 19px; line-height: 1.6; margin: 0 0 18px; max-width: 46em; }
.oe-details { border-top: 2px solid rgba(237,19,101,.8); padding-top: 18px; align-self: start; }
.oe-details h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.oe-details ul { list-style: none; margin: 0; padding: 0; }
.oe-details li { font-size: 17px; padding: 6px 0; border-bottom: 1px solid #e6e4df; }
.oe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.oe-grid figure { margin: 0; }
.oe-grid img { display: block; width: 100%; height: auto; }
.oe-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; padding-top: 24px; border-top: 2px solid rgba(237,19,101,.8); }
.oe-nav a { font-family: var(--sans); font-weight: 600; font-size: 18px; color: inherit; text-decoration: none; }
.oe-nav a:hover { color: var(--pop); text-decoration: underline; }
a.thumb { display: block; color: inherit; text-decoration: none; }
a.thumb:hover .thumb-img img { opacity: .88; }
@media (max-width: 860px) {
  .oe-intro { grid-template-columns: 1fr; gap: 32px; }
  .oe-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .oe-nav { flex-direction: column; }
}
@media (max-width: 520px) { .oe-grid { grid-template-columns: 1fr; } }
.oe-live { font-family: var(--sans); font-weight: 600; color: inherit; text-decoration: none; border-bottom: 2px solid var(--pop); }
.oe-live:hover { color: var(--pop); }
/* FHG: homepage sections read as one continuous page */
.oe-stack { display: grid; gap: 40px; }
.oe-stack figure { margin: 0; }
.oe-stack img { display: block; width: 100%; height: auto; }
.oe-page { box-shadow: 0 2px 24px rgba(0,0,0,.12); }
.oe-page figure + figure { margin-top: 0; }
.oe-two { grid-template-columns: 1fr 1fr; margin-top: 40px; }
@media (max-width: 520px) { .oe-two { grid-template-columns: 1fr; } }
/* Contact links */
.contact-links { margin: 28px 0 0; display: flex; gap: 16px; flex-wrap: wrap; }
.contact-links a { font-family: var(--sans); font-weight: 600; font-size: 18px; color: #fff; text-decoration: none; border: 2px solid #fff; padding: 12px 28px; }
.contact-links a:hover { background: #fff; color: var(--cta); }
.site-footer a + a { margin-left: 24px; }
/* Round: Nov 11 late morning */
.contact-links { margin-top: 72px; }                         /* 1 */
html { scroll-padding-top: 140px; }                          /* 2: anchors land with space above */
.arrow { font-size: 20px; }                                  /* 3 */
.about p.bio-lede { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.35; }  /* 5: intro outranks quote */
.pull-quote { font-size: clamp(19px, 1.6vw, 23px); }
.oe-page { box-shadow: 0 4px 28px rgba(0,0,0,.18); line-height: 0; } /* 10 */
.oe-page figure { margin: 0 !important; }
.oe-page img { display: block; width: 100%; }
.shot img { box-shadow: 0 4px 28px rgba(0,0,0,.18); }       /* 11-12 */
/* FHG second page, Cousins single column, carrot */
.oe-stack-2 { margin-top: 56px; }
.oe-one { grid-template-columns: 1fr; gap: 56px; }
.carrot { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -0.3em; margin-left: 2px; }
