/* ── Design tokens ──────────────────────────────────────────────────────
   Defaults here are overridden at runtime by js/site.js from
   SITE_CONFIG.theme in js/data.js — that's the one place to change colors.
   The look is white + black with one pop of coral: a big serif headline,
   small uppercase labels, flat cards and lots of white space. Coral is used for the small moments (dot, highlighted word, active
   filter underline, link underlines, the Email button).
   Fonts are set here AND in index.html's Google Fonts <link> together —
   see the /site-design skill or GETTING_STARTED.md if changing fonts. */
:root {
  --color-primary: #000000;
  --color-accent: #ff5c39;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-muted: #5f5f5f;
  --color-line: #e7e7e7;
  /* darker take on the accent, for small text so the coral stays readable */
  --color-accent-text: color-mix(in srgb, var(--color-accent) 62%, black);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 4px;
  --max-width: 960px;        /* hero text */
  --max-width-wide: 1280px;  /* filters + project grid */
  --topbar-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* ── Top bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.topbar a {
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.topbar a:hover { color: var(--color-accent); }
.topbar .topbar-name { font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.16em; display: inline-flex; align-items: center; gap: 0.7rem; }
.topbar .topbar-name::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--color-accent); flex: none; }
.topbar { gap: 1.25rem; }
.topbar a { white-space: nowrap; }
.topbar .topbar-name { flex: none; }
/* Five links can run out of room on tablets too: scroll sideways rather than wrap. */
.topbar-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar-links::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .topbar a { letter-spacing: 0.1em; }
  .topbar-links { gap: 0.85rem; }
}
/* Between tablet and phone widths, shrink the menu text so all five links fit. */
@media (max-width: 760px) {
  .topbar .topbar-name { font-size: 0.78rem; letter-spacing: 0.1em; gap: 0.5rem; }
  .topbar a { font-size: 0.68rem; }
}
@media (max-width: 520px) {
  .topbar { gap: 0.75rem; } /* keeps the name clear of the links even when the row below scrolls */
  .topbar .topbar-name { font-size: 0.72rem; letter-spacing: 0.1em; gap: 0.5rem; white-space: nowrap; flex: none; }
  .topbar a { letter-spacing: 0.1em; font-size: 0.68rem; white-space: nowrap; }
  /* More links than fit at phone width (e.g. with Testimonials added):
     let the row scroll sideways instead of overflowing the page. */
  .topbar-links {
    gap: 0.9rem;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar-links::-webkit-scrollbar { display: none; }
}

/* ── Hero: text on the left, a photo on the right (like the About page) ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  text-align: left;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 3vw, 2rem) clamp(3.5rem, 7vw, 6rem);
  max-width: 1240px;
  margin: 0 auto;
}
/* Soft words fading in and out behind the hero (renderHeroWords in site.js) */
.hero { position: relative; }
.hero > .hero-copy, .hero > .hero-photo { position: relative; z-index: 1; }
.hero-words { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-word {
  position: absolute; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; color: #f7b9a6;
  opacity: 0; animation: hero-word 6.5s ease-in-out forwards;
}
.hero-word.is-still { animation: none; opacity: 0.6; }
@keyframes hero-word {
  0% { opacity: 0; transform: translateY(6px); }
  25%, 70% { opacity: 0.75; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f3f3f3;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}
.hero-kicker::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-accent); }
/* The tagline stays on one line: its size follows the text column's width
   (cqi), capped so it never gets oversized on wide screens. */
.hero-copy { container-type: inline-size; }
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: min(5.5rem, 11.2cqi);
  white-space: nowrap;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
  color: var(--color-primary);
}
.hero-tagline .accent { color: var(--color-accent); font-style: italic; }
.hero-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1.75rem;
}
.hero-name::before { content: ""; width: 2.75rem; height: 2px; background: var(--color-accent); flex: none; }
.hero-about { max-width: 540px; margin: 0 0 2.25rem; color: var(--color-text-muted); font-size: 1.125rem; line-height: 1.6; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; }
  .hero-name { letter-spacing: 0.16em; font-size: 0.8rem; }
}
.hero-links { display: flex; gap: 0.75rem; justify-content: flex-start; flex-wrap: wrap; }
.hero-links a {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1rem 1.9rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero-links a:hover { background: var(--color-primary); color: #fff; }
.hero-links a.is-primary { background: var(--color-accent); border-color: var(--color-accent); color: #000; }
.hero-links a.is-primary:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ── Filters: a Client row and a Category row ── */
.filters {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto 3.25rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--color-line);
}
.filter-group { display: flex; gap: 0.25rem 1.6rem; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.filter-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  min-width: 4.5rem;
  text-align: right;
}
.filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  padding: 0.45rem 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { color: var(--color-primary); }
.filter-btn.active { color: var(--color-primary); border-bottom-color: var(--color-accent); }
@media (max-width: 720px) {
  .filter-group { gap: 0 1.1rem; }
  .filter-label { flex-basis: 100%; text-align: center; min-width: 0; margin-top: 0.5rem; }
}

/* ── Projects grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 3rem 1.75rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.gallery > .projects-grid:last-child { padding-bottom: 6.5rem; }
/* Each row of 4 projects is its own grid (see site.js), so the row-gap above only
   spaces columns within a row — this adds the missing space between one row and
   the next when no slogan band falls between them. */
.projects-grid + .projects-grid { margin-top: 3rem; }

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.project.is-visible { opacity: 1; transform: translateY(0); }

.project-cover {
  position: relative;
  display: block;
  width: 100%;
  background: #f3f3f3;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s ease; }
.project:hover .project-cover img, .project:focus-within .project-cover img { transform: scale(1.04); }
.project-cover--text { background: #fbf3f0; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.project-excerpt {
  margin: 0; font-family: var(--font-display); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.45; color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.project-more {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: var(--color-accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.project:hover .project-more, .project:focus-within .project-more { opacity: 1; transform: none; }
.project-more { z-index: 2; }
/* Project photos show in black and white (mouse/trackpad screens only), then
   come back to full color on hover. Phones always show full color. */
@media (hover: hover) {
  .project-cover:not(.project-cover--text) img { filter: grayscale(1) contrast(1.05); transition: transform 0.5s ease, filter 0.4s ease; }
  .project:hover .project-cover img, .project:focus-within .project-cover img { filter: none; }
  /* Text-only cards (writing samples) start gray too, and warm up to blush on hover. */
  .project-cover--text { background: #f1f1f1; transition: background 0.4s ease; }
  .project:hover .project-cover--text, .project:focus-within .project-cover--text { background: #fbf3f0; }
}

/* Category covers (project.art): a coral tile with a little picture of the
   work itself (a phone, a logo, an article...), drawn in js/site.js. */
.project-cover--art {
  background: var(--color-accent); border-radius: 14px; overflow: hidden;
  transition: background 0.35s ease;
}
.art-scene { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5%; box-sizing: border-box; transition: transform 0.4s ease; }
.project-cover--art .project-more { background: #fff; color: var(--color-accent); }
.project:hover .project-cover--art, .project:focus-within .project-cover--art { background: #f04e2c; }
.project:hover .art-scene, .project:focus-within .art-scene { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .project-cover--art, .art-scene { transition: none; } }

.project-body { padding: 1.25rem 0 0; display: flex; flex-direction: column; flex: 1; }
.project-year {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 0.45rem;
}
.project-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--color-primary);
}
.project-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.project-title a::after { content: ""; position: absolute; inset: 0; }
.project-title a:focus-visible { outline: none; }
.project-title a:focus-visible::after { outline: 3px solid var(--color-accent); outline-offset: 6px; border-radius: var(--radius); }
.project:hover .project-title a { color: var(--color-accent); }
.project-role { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 0.9rem; }
/* Every summary takes exactly two lines, so all the cards line up. */
.project-summary {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
  min-height: calc(2 * 1.55em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-tags { display: flex; gap: 0.3rem 1rem; flex-wrap: wrap; margin-top: auto; margin-bottom: 0.25rem; }
.project-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.project-tag::before { content: "/ "; color: var(--color-accent); }
.project-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: auto; }
.project-link {
  display: inline-block;
  align-self: flex-start;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--color-accent);
  transition: color 0.2s ease;
}
.project-link:hover { color: var(--color-accent-text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project { transition: none; opacity: 1; transform: none; }
  .project-cover img, .project-more, .hero-links a { transition: none; }
}

.empty-state { grid-column: 1 / -1; text-align: center; color: var(--color-text-muted); padding: 3rem 1.5rem; }

/* ── Slogan bands between the rows of projects ── */
.callout {
  text-align: center;
  margin: clamp(4rem, 8vw, 6.5rem) auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  max-width: var(--max-width-wide);
  border-block: 1px solid var(--color-line);
}
.callout-mark { width: 30px; height: 30px; margin: 0 auto 1.75rem; }
.callout-mark circle { fill: var(--color-primary); }
.callout-mark circle:nth-child(2) { fill: var(--color-accent); }
.callout h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14em;
  margin: 0 auto 1.4rem;
}
.callout h2 .accent { color: var(--color-accent); font-style: italic; }
.callout p { max-width: 520px; margin: 0 auto; color: var(--color-text-muted); font-size: 1.1rem; line-height: 1.6; }

/* ── About page ── */
/* The About header stays centered (the home-page intro uses a two-column layout). */
.hero.about-hero {
  display: block;
  text-align: center;
  max-width: var(--max-width);
  padding: clamp(4rem, 9vw, 7.5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
}
.about-hero .hero-tagline { font-size: clamp(2.75rem, 8vw, 5.75rem); }
.about-hero .hero-about { max-width: 600px; margin: 0 auto; font-size: 1.15rem; color: var(--color-text-muted); }
.topbar a[aria-current="page"] { color: var(--color-accent); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);   /* story on the left, photo on the right */
  gap: clamp(2.5rem, 6vw, 5.5rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6.5rem);
  align-items: start;
}
.about-side { position: static; order: 2; }
.about-grid:has(.about-head) { padding-top: clamp(3rem, 6vw, 4.5rem); }
.about-head { margin: 0 0 clamp(1.75rem, 3vw, 2.25rem); padding-bottom: clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--color-line); }
.about-head .hero-kicker { justify-content: flex-start; margin: 0 0 0.9rem; }
.about-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--color-text); }
.about-role { margin: 0.5rem 0 0; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--color-text-muted); }
@media (min-width: 801px) and (min-height: 960px) {
  .about-side { position: sticky; top: calc(var(--topbar-h) + 2rem); }
}
.about-photo-frame { max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 5; }
.about-photo { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.about-facts { margin: 1.75rem 0 0; }
.about-facts div { padding: 0.85rem 0; border-top: 1px solid var(--color-line); }
.about-facts div:last-child { border-bottom: 1px solid var(--color-line); }
.about-facts dt { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.about-facts dd { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--color-text); }
.about-resume-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 1.05rem 2.1rem;
  background: #fff;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease;
}
.about-resume-link:hover { background: var(--color-primary); color: #fff; }
.about-resume-link[hidden] { display: none; }
.about-section { padding: 0 0 clamp(1.5rem, 3vw, 2.25rem); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--color-line); }
.about-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.about-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.about-label::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-accent); }
/* Same style as the service names in the home page's "What I do" list. */
.about-section h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.about-section p:not(.about-label) { font-size: 1.05rem; line-height: 1.65; color: #2b2b2b; margin: 0 0 1rem; max-width: 40em; }
.about-section p.about-lead { font-family: var(--font-display); font-style: normal; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--color-text); margin: 0 0 1.25rem; max-width: 24em; }
.about-section p.about-lead + p { font-size: 1rem; line-height: 1.8; }
.about-figure { margin: 2rem 0 0; max-width: 400px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: #f3f3f3; }
.about-figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-side { order: 0; }   /* phones: photo first */
  .about-side { position: static; max-width: 340px; margin: 0 auto; }
}
/* Desktop: the photo floats to the right so the story wraps around it,
   instead of sitting in its own column with empty space underneath. */
@media (min-width: 801px) {
  .about-grid { display: flow-root; max-width: 980px; }
  .about-side { float: right; position: static; width: clamp(220px, 32%, 320px); margin: 0 0 1.5rem clamp(1.75rem, 4vw, 3rem); }
  .about-head { display: flow-root; }   /* sits beside the photo and stops short of it */
  .about-section p:not(.about-label) { max-width: none; }
  .about-section p.about-lead { max-width: 24em; }
}

/* ── Testimonials page ── */
.testimonials-wrap { max-width: var(--max-width-wide); margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6.5rem); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem);
}
.testimonial-card {
  margin: 0;
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.testimonial-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}
.testimonial-quote { margin: 0 0 1.5rem; flex: 1; }
.testimonial-quote p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.6; color: var(--color-text); }
.testimonial-quote p:last-child { margin-bottom: 0; }
.testimonial-cap { display: flex; align-items: center; gap: 0.9rem; }
.testimonial-photo { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; background: #f3f3f3; }
.testimonial-who { min-width: 0; }
.testimonial-name { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 0.95rem; color: var(--color-primary); }
.testimonial-role { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--color-text-muted); }
.testimonial-letter-link {
  align-self: flex-start;
  margin-top: 1.25rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  cursor: pointer;
  transition: color 0.2s ease;
}
.testimonial-letter-link:hover { color: var(--color-accent-text); }
.testimonials-empty { text-align: center; color: var(--color-text-muted); padding: 3rem 1.5rem; font-size: 1.05rem; }

/* ── Contact ── */
#contact { scroll-margin-top: var(--topbar-h); }
.contact {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  border-top: 1px solid var(--color-line);
}
.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}
.contact-kicker::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-accent); }
.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
}
.contact-title .accent { color: var(--color-accent); font-style: italic; }
.contact-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.contact-email-btn, .contact-linkedin {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 1.05rem 2.1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-email-btn { background: var(--color-accent); border: 1px solid var(--color-accent); color: #000; }
.contact-email-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.contact-linkedin { background: #fff; border: 1px solid var(--color-primary); color: var(--color-primary); }
.contact-linkedin:hover { background: var(--color-primary); color: #fff; }
.contact-linkedin[hidden] { display: none; }

/* Contact form */
.contact-form { max-width: 640px; margin: 0 auto 1.5rem; text-align: left; display: grid; gap: 1.1rem; }
.contact-form[hidden] { display: none; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cf-field { display: grid; gap: 0.4rem; }
.cf-field span { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.cf-field input, .cf-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.cf-field textarea { resize: vertical; min-height: 8rem; }
.cf-field input:focus, .cf-field textarea:focus { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.cf-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-form .contact-email-btn { justify-self: start; cursor: pointer; }
.contact-form .contact-email-btn:disabled { opacity: 0.6; cursor: default; }
.cf-status { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: var(--color-text-muted); }
.cf-status.is-error { color: #b3261e; }
.cf-thanks { max-width: 640px; margin: 0 auto 1.5rem; padding: 2rem 1rem; text-align: center; outline: none; }
.cf-thanks[hidden] { display: none; }
.cf-thanks .cf-thanks-title { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1; margin: 0 0 0.6rem; color: var(--color-text); }
.cf-thanks p { margin: 0; color: var(--color-text-muted); font-size: 1.1rem; }
.contact-link { color: var(--color-text); font-size: 0.85rem; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.contact-link:hover { color: var(--color-accent-text); }
.contact-actions { align-items: center; gap: 0.75rem 1.75rem; }
.thanks-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.thanks-note { color: var(--color-text-muted); font-size: 1.1rem; margin: 0 0 1.75rem; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

/* ── Project page ── */
.pd { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem); }
.pd-back {
  display: inline-block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.pd-back:hover { color: var(--color-accent-text); }
.pd-head { margin: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.75rem); }
.pd-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.pd-kicker::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-accent); }
.pd-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 14em;
}
.pd-intro {
  max-width: 34em;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.pd-intro p { margin: 0 0 0.9em; }
.pd-intro p:last-child { margin-bottom: 0; }
.pd-info {
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--color-line);
}
.pd-part + .pd-part { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--color-line); }
.pd-title .accent { color: var(--color-accent); font-style: italic; }
/* Section headings inside a category: the all-caps style of the "What I do"
   list, clearly smaller than the serif category title above them. */
.pd-part-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
/* samples.html: a section heading that groups several pieces of work. */
.pd-section { margin-top: clamp(4.5rem, 9vw, 7.5rem); padding-top: clamp(1.25rem, 2.5vw, 1.75rem); border-top: 2px solid var(--color-primary); }
#pd-parts > .pd-section:first-child { margin-top: 0; }
.pd-section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  display: flex; align-items: center; gap: 0.85rem;
}
.pd-section-title::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-accent); flex: none; }
.pd-section-note { margin: 0.75rem 0 0; max-width: 40em; color: var(--color-text-muted); font-size: 1rem; line-height: 1.55; }
.pd-section + .pd-part { margin-top: clamp(2rem, 4vw, 3rem); }
/* samples.html: a slightly smaller page title than the project pages. */
.samples-page .pd-title { font-size: clamp(2.25rem, 5.2vw, 3.9rem); }
/* samples.html: each section's samples as a row of cards (like the home page
   grid); a card opens that sample on its own page. */
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
@media (max-width: 900px) { .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sample-grid { grid-template-columns: 1fr; } }
.sample-card { position: relative; display: block; color: inherit; text-decoration: none; }
.sample-card-cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #f3f3f3; }
.sample-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s ease; }
.sample-card:hover .sample-card-cover img, .sample-card:focus-visible .sample-card-cover img { transform: scale(1.04); }
.sample-card:hover .project-more, .sample-card:focus-visible .project-more { opacity: 1; transform: none; }
.sample-card-cover--text { background: #fbf3f0; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.sample-card-excerpt {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 11; -webkit-box-orient: vertical; overflow: hidden;
}
.sample-card-title { font-family: var(--font-title); font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; margin: 1rem 0 0.3rem; transition: color 0.2s ease; }
.sample-card:hover .sample-card-title { color: var(--color-accent-text); }
.sample-card:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 6px; border-radius: var(--radius); }
.sample-card-client { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.sample-card--wide { grid-column: span 2; }
.sample-card--wide .sample-card-cover { aspect-ratio: 16 / 9; border: 1px solid var(--color-line); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.sample-card--wide .sample-card-cover img { object-position: center; }
@media (max-width: 600px) { .sample-card--wide { grid-column: auto; } }
/* A horizontal strip of facts above the photos, rather than a tall stacked
   list, so it reads at a glance before the gallery. */
.pd-meta { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2rem, 5vw, 3.5rem); margin: 0; }
.pd-meta dt { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.pd-meta dd { margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--color-text); }
/* The write-up of the whole group — below the photos, not a caption under
   each one. */
.pd-text { padding-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.pd-text p { font-size: 1.1rem; line-height: 1.7; color: #2b2b2b; margin: 0 0 1rem; max-width: 40em; }
.pd-text .project-links { margin-top: 1.5rem; }
.pd-gallery { padding-top: clamp(2rem, 4vw, 3rem); }
/* Each labeled group ("After" / "Before") gets clear space above it, so
   they never read as one mixed set. */
.pd-photo-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pd-gallery > .pd-photo-group:first-child { margin-top: 0; }
.pd-group-label {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
/* A plain, even masonry: three columns, each photo at its own size. */
.pd-masonry { display: flex; gap: clamp(1rem, 2.2vw, 1.75rem); align-items: flex-start; }
.pd-masonry + .pd-masonry { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.pd-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(1rem, 2.2vw, 1.75rem); }
.pd-figure { margin: 0; order: var(--i, 0); }
.pd-figure--small { max-width: 380px; margin: 0 auto; }
.pd-figure-btn { display: block; width: 100%; padding: 0; border: none; background: #f3f3f3; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.pd-figure-btn img { width: 100%; height: auto; transition: transform 0.4s ease; }
.pd-figure-btn:hover img { transform: scale(1.02); }
/* A small "Before"/"After" label under a lone comparison pair, shown side
   by side rather than in two separate labeled groups. */
.pd-pair-label {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}
.pd-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}
.pd-nav-link { display: grid; gap: 0.35rem; text-decoration: none; color: var(--color-text); }
.pd-nav-link.is-next { text-align: right; }
.pd-nav-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.pd-nav-title { font-family: var(--font-title); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.2s ease; }
.pd-nav-link:hover .pd-nav-title { color: var(--color-accent-text); }
.pd-missing { text-align: center; padding: clamp(4rem, 10vw, 7rem) 1rem; }
.pd-missing .pd-title { margin: 0 auto 1rem; }
.pd-missing p { color: var(--color-text-muted); margin: 0 0 1.5rem; }
@media (max-width: 800px) {
  .pd-masonry { flex-direction: column; align-items: stretch; gap: clamp(1.25rem, 3vw, 2rem); }
  .pd-col { display: contents; }
}
/* A short sequence that stays side by side at every width (tap to enlarge). */
.pd-masonry--keep-row { max-width: 900px; margin-inline: auto; }
@media (max-width: 800px) {
  .pd-masonry.pd-masonry--keep-row { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
  .pd-masonry--keep-row .pd-col { display: flex; }
}
/* samples.html: smaller thumbnails (click any one to see it full size), so a
   single piece doesn't fill the whole page width. */
.samples-page .pd-col { flex: 0 1 300px; }
@media (max-width: 800px) {
  .samples-page .pd-figure { width: 100%; max-width: 340px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .pd-figure-btn img { transition: none; } }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); }
.lightbox-caption { color: #fff; margin-top: 1rem; text-align: center; max-width: 640px; font-size: 0.9rem; line-height: 1.5; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: var(--color-accent); color: #000; }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-count { color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; letter-spacing: 0.12em; margin-top: 0.5rem; }

/* ── samples.html: USC theme (cardinal and gold), this page only ── */
.samples-page {
  --usc-cardinal: #990000;
  --usc-gold: #ffcc00;
  --color-accent: var(--usc-cardinal);
  --color-accent-text: var(--usc-cardinal);
}
.samples-page .topbar { background: var(--usc-cardinal); box-shadow: inset 0 -4px 0 var(--usc-gold); }
.samples-page .topbar a:hover { color: var(--usc-gold); }
.samples-page .topbar .topbar-name::before { background: var(--usc-gold); }
.samples-page .pd-head { position: relative; padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.samples-page .pd-head::after { content: ""; display: block; width: 5rem; height: 5px; background: var(--usc-gold); margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.samples-page .pd-title { color: var(--usc-cardinal); }
.samples-page .pd-section { border-top: 3px solid var(--usc-cardinal); }
.samples-page .pd-section-title { color: var(--usc-cardinal); }
.samples-page .pd-section-title::before { background: var(--usc-gold); width: 0.75rem; height: 0.75rem; }
.samples-page .sample-card-cover--text { background: #fff8db; border-top: 4px solid var(--usc-gold); }
.samples-page .project-more { background: var(--usc-gold); color: #000; }
.samples-page .project-link { border-color: var(--usc-gold); }
.samples-page:not(.is-sample) .pd-intro { font-family: var(--font-heading); font-weight: 500; font-size: clamp(0.95rem, 1.6vw, 1.15rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text); margin-top: clamp(0.9rem, 2vw, 1.25rem); }

/* ── Book a consultation ── */
.book-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.about-hero.book-hero .hero-tagline { font-size: clamp(2.5rem, 7vw, 5.5rem); white-space: normal; line-height: 1.05; }
.book-hero .hero-about { margin-bottom: 2rem; }
.book-facts { list-style: none; display: flex; justify-content: center; gap: clamp(2rem, 6vw, 4rem); margin: 0; padding: 0; }
.book-facts li { font-size: 1.05rem; color: var(--color-text); }
.book-facts span { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 0.25rem; }
.book-main { max-width: 1040px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem); }
.book-frame { border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.book-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.book-frame-empty { padding: 4rem 1.5rem; text-align: center; color: var(--color-text-muted); font-size: 1.1rem; }
.book-frame-empty p { margin: 0; }
.book-alt { text-align: center; color: var(--color-text-muted); font-size: 0.95rem; margin: 1.5rem 0 0; }
@media (max-width: 520px) {
  .book-frame iframe { height: 820px; }
}
.contact-book { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin: 0 auto 2rem; }
.contact-book .contact-email-btn { text-decoration: none; }
.contact-or { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 640px; margin: 0; color: var(--color-text-muted); font-size: 0.85rem; }
.contact-or::before, .contact-or::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }

/* ── Services ("How I can help"), between the home intro and the work ── */
.services {
  max-width: var(--max-width-wide);
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--color-line);
}
.services-head { text-align: center; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.services-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 1.25rem;
}
.services-kicker::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-accent); }
.services-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
}
.services-title .accent { color: var(--color-accent); font-style: italic; }
.services-intro { max-width: 560px; margin: 0 auto; color: var(--color-text-muted); font-size: 1.1rem; line-height: 1.6; }
/* The services read as a list; each row opens on hover (mouse), or on
   tap / Enter (phones, keyboards) to show its description and links. */
.services-grid { max-width: 860px; margin: 0 auto; border-bottom: 1px solid var(--color-line); }
.service { border-top: 1px solid var(--color-line); }
.service-head {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 1rem; align-items: center; gap: 0.9rem;
  padding: 0.9rem 0;
}
.service-head:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.service-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--color-accent-text); }
.service-title {
  font-family: var(--font-title); font-weight: 600; font-size: clamp(0.92rem, 1.6vw, 1.05rem); line-height: 1.25;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0; color: var(--color-primary);
  transition: color 0.2s ease;
}
.service-icon { position: relative; width: 0.8rem; height: 0.8rem; justify-self: end; }
.service-icon::before, .service-icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px;
  background: var(--color-primary); transition: transform 0.25s ease;
}
.service-icon::after { transform: rotate(90deg); }
.service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.service-body-inner { overflow: hidden; min-height: 0; padding-left: 4rem; visibility: hidden; transition: visibility 0s 0.3s; }
.service-text { color: var(--color-text-muted); font-size: 1rem; line-height: 1.6; margin: 0 0 0.6rem; max-width: 40em; }
.service-examples { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 1.5rem; line-height: 1.7; }
.service-examples a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }
.service-examples a:hover { color: var(--color-accent-text); }
.service.is-open .service-body { grid-template-rows: 1fr; }
.service.is-open .service-body-inner { visibility: visible; transition-delay: 0s; }
.service.is-open .service-title { color: var(--color-accent-text); }
.service.is-open .service-icon::after { transform: rotate(0deg); }
@media (hover: hover) {
  .service:hover .service-body { grid-template-rows: 1fr; }
  .service:hover .service-body-inner { visibility: visible; transition-delay: 0s; }
  .service:hover .service-title { color: var(--color-accent-text); }
  .service:hover .service-icon::after { transform: rotate(0deg); }
}
@media (max-width: 560px) {
  .service-head { grid-template-columns: 2.25rem minmax(0, 1fr) 1rem; gap: 0.75rem; }
  .service-body-inner { padding-left: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service-body, .service-body-inner, .service-icon::before, .service-icon::after { transition: none; }
}
.services-cta { text-align: center; color: var(--color-text-muted); font-size: 1rem; margin: 2rem 0 0; }
.services-cta .contact-link { font-size: inherit; }

/* "Work" in the menu lands on the brand books */
.work-anchor { scroll-margin-top: 60px; }

/* ── How it works (PROCESS in data.js): each step beside a mock picture ── */
.process-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5.5rem); }
.process-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.process-step:nth-child(even) .process-copy { order: 2; }
.process-num { display: block; margin-bottom: 0.6rem; font-family: var(--font-display); font-style: italic; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; color: var(--color-accent); }
.process-title { margin: 0 0 0.75rem; font-family: var(--font-title); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: 0.04em; text-transform: uppercase; }
.process-text { margin: 0; max-width: 30em; color: var(--color-text-muted); font-size: 1.1rem; line-height: 1.65; }
.process-mock {
  position: relative; aspect-ratio: 4 / 3; container-type: inline-size; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f4f2ef; border-radius: 18px;
}
@media (max-width: 760px) {
  .process-step { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-step:nth-child(even) .process-copy { order: 0; }
}

/* The mock pictures: drawn in HTML, sized in cqi (a percent of the panel) */
.process-mock i { display: block; font-style: normal; }
.mk-card { background: #fff; border-radius: 2.4cqi; box-shadow: 0 2cqi 6cqi rgba(0, 0, 0, 0.08); padding: 4cqi 5cqi; }
.mk-card-title { margin: 0 0 2.6cqi; font: 600 2.8cqi/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #111; }
/* 1 · audit */
.mk-audit { width: 60cqi; }
.mk-row { display: flex; justify-content: space-between; align-items: center; padding: 2.1cqi 0; border-top: 1px solid #eee; font: 500 3.3cqi/1 var(--font-body); color: #111; }
.process-mock .mk-pill { display: inline-block; font-size: 2.5cqi; padding: 1cqi 2.4cqi; border-radius: 99px; background: #eee; color: #888; }
.process-mock .mk-pill.is-on { background: #ffe1d8; color: #c4401f; }
.mk-lens { position: absolute; right: 11cqi; bottom: 9cqi; width: 14cqi; height: 14cqi; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; box-shadow: 0 2cqi 5cqi rgba(0, 0, 0, 0.2); }
.mk-lens svg { width: 7cqi; height: 7cqi; }
/* 2 · channels */
.mk-tiles { display: grid; grid-template-columns: repeat(3, 21cqi); gap: 3cqi; }
.mk-tile { position: relative; aspect-ratio: 1; background: #fff; border-radius: 2.4cqi; display: flex; align-items: flex-end; padding: 2.6cqi; box-shadow: 0 1.4cqi 4cqi rgba(0, 0, 0, 0.06); font: 500 3cqi/1 var(--font-body); color: #999; }
.mk-tile.is-on { background: #111; color: #fff; }
.mk-tick { position: absolute; top: 2.2cqi; right: 2.2cqi; width: 5.6cqi; height: 5.6cqi; border-radius: 50%; background: var(--color-accent); color: #fff; display: grid; place-items: center; }
.mk-tick svg { width: 3.4cqi; height: 3.4cqi; }
/* 3 · brand */
.mk--brand { flex-direction: column; gap: 4cqi; }
.mk-logos { display: flex; gap: 3.5cqi; }
.mk-logo { width: 19cqi; height: 19cqi; border-radius: 2.4cqi; background: #fff; display: grid; place-items: center; box-shadow: 0 1.4cqi 4cqi rgba(0, 0, 0, 0.08); }
.mk-logo.is-dark { background: #111; }
.mk-logo.is-coral { background: var(--color-accent); }
.mk-mark { width: 11cqi; height: 11cqi; border-radius: 50%; border: 0.8cqi solid #111; display: grid; place-items: center; font: italic 400 6cqi/1 var(--font-display); color: #111; }
.mk-logo.is-dark .mk-mark, .mk-logo.is-coral .mk-mark { border-color: #fff; color: #fff; }
.mk-palette { display: flex; align-items: center; gap: 5cqi; padding: 3.4cqi 4.4cqi; }
.mk-swatches { display: flex; gap: 1.8cqi; }
.process-mock .mk-swatches i { width: 7cqi; height: 7cqi; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.08); }
.mk-type { display: flex; align-items: center; gap: 2.4cqi; }
.mk-type b { font: 400 9cqi/1 var(--font-display); color: #111; }
.mk-type span { font: 600 3cqi/1.3 var(--font-body); color: #111; }
.mk-type small { font-weight: 400; font-size: inherit; color: #999; }
/* 4 · templates */
.mk-tpl { position: absolute; background: #fff; border-radius: 1.8cqi; box-shadow: 0 2cqi 6cqi rgba(0, 0, 0, 0.12); padding: 2.4cqi; display: flex; flex-direction: column; gap: 1.6cqi; }
.mk-tpl--post { width: 28cqi; aspect-ratio: 1; left: 8cqi; top: 16cqi; transform: rotate(-5deg); }
.mk-tpl--email { width: 36cqi; left: 32cqi; top: 10cqi; z-index: 2; }
.mk-tpl--flyer { width: 24cqi; aspect-ratio: 3 / 4; right: 6cqi; top: 24cqi; transform: rotate(5deg); }
.process-mock .mk-block { flex: 1; background: #111; border-radius: 1cqi; }
.process-mock .mk-photo { height: 14cqi; background: linear-gradient(135deg, #dcd8d3, #b9b3ac); border-radius: 1cqi; }
.process-mock .mk-line { height: 1.4cqi; background: #e4e4e4; border-radius: 99px; }
.process-mock .mk-line.is-short { width: 60%; }
.process-mock .mk-line.is-coral { width: 45%; background: var(--color-accent); }
.process-mock .mk-band { display: flex; flex-direction: column; justify-content: center; gap: 1.2cqi; height: 10cqi; padding: 0 3cqi; background: #111; border-radius: 1cqi; }
.mk-band b { display: block; width: 70%; height: 1.6cqi; background: #fff; border-radius: 99px; }
.mk-band b.is-short { width: 40%; background: var(--color-accent); }
.process-mock .mk-btn { width: 14cqi; height: 4cqi; margin-top: 0.6cqi; background: var(--color-accent); border-radius: 99px; }
/* 5 · timeline */
.mk-timeline { width: 80cqi; }
.mk-weeks { display: grid; grid-template-columns: 17cqi repeat(6, 1fr); margin-bottom: 1.6cqi; font: 500 2.2cqi/1 var(--font-body); color: #aaa; }
.mk-gantt { display: grid; grid-template-columns: 17cqi 1fr; align-items: center; padding: 1.7cqi 0; border-top: 1px solid #f0f0f0; font: 500 2.8cqi/1 var(--font-body); color: #111; }
.mk-track { position: relative; height: 3.4cqi; }
.process-mock .mk-track i { position: absolute; top: 0; bottom: 0; background: #111; border-radius: 99px; }
.process-mock .mk-track i.is-coral { background: var(--color-accent); }

/* ── About: recommendation quote under "View my resume" ── */
.about-quote { margin: 2.25rem 0 0; padding: 1.5rem 0 0; border-top: 2px solid var(--color-primary); }
.about-quote[hidden] { display: none; }
.about-quote blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--color-text); }
.about-quote figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.about-quote-name { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text); }
.about-quote-role { font-size: 0.85rem; color: var(--color-text-muted); }
.about-quote-more { margin: 1rem 0 0; font-size: 0.85rem; color: var(--color-text-muted); }
.about-quote-more .contact-link { font-size: inherit; }

/* ── Ticker: a slim news-style crawl under the home intro ── */
.ticker {
  background: var(--color-primary); color: #fff;
  overflow: hidden; margin: 0 0 clamp(3rem, 6vw, 4.5rem);
}
.ticker-track { display: flex; width: max-content; animation: ticker-crawl 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.ticker-item {
  display: inline-flex; align-items: baseline; gap: 0.6rem; white-space: nowrap;
  padding: 0.85rem 0;
}
/* a small coral dot between items */
.ticker-item::after {
  content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--color-accent);
  align-self: center; margin: 0 1.75rem;
}
.ticker-value {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1;
  font-variant-numeric: lining-nums; color: #fff;
}
.ticker-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }
.ticker-phrase {
  font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 1.05rem; line-height: 1;
  color: #fff;
}
@keyframes ticker-crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* People who turn off motion get a still band they can swipe through instead. */
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-group[aria-hidden="true"] { display: none; }
}

/* Project pages: a project grouped inside a bigger card shows its pieces
   under smaller headings, and any part can open with a short intro. */
.pd-part-intro { max-width: 40em; margin: -0.75rem 0 1.5rem; font-size: 1.05rem; line-height: 1.6; color: var(--color-text-muted); }
/* A piece inside a section (e.g. one flyer under Digital Flyers): smaller still. */
.pd-part-title--sub { font-size: clamp(0.95rem, 1.6vw, 1.1rem); letter-spacing: 0.08em; color: var(--color-text-muted); }
.pd-subparts .pd-subpart + .pd-subpart { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--color-line); }
.pd-part { scroll-margin-top: calc(var(--topbar-h) + 1.5rem); }

/* A short coral line before each section heading, like the one beside
   "By Berkley Warlick" on the home page. Pieces inside a section don't get one. */
.pd-part-title { display: flex; align-items: center; gap: 0.9rem; }
.pd-part-title::before { content: ""; flex: none; width: 2.75rem; height: 2px; background: var(--color-accent); }
.pd-part-title--sub { display: block; }
.pd-part-title--sub::before { content: none; }

/* ── Pricing page (pricing.html, js/pricing.js, PRICING_PAGE in data.js) ── */
.pricing-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.about-hero.pricing-hero .hero-tagline { font-size: clamp(2.5rem, 7vw, 5.25rem); white-space: normal; line-height: 1.05; }
.pricing-main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem); }
.pricing-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
/* More than three tiers: three across, then the rest centered underneath */
.pricing-tiers:has(> :nth-child(4)) { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 2.5rem; }
.pricing-tiers:has(> :nth-child(4)) > .pricing-card { grid-column: span 2; }
.pricing-tiers > .pricing-card:nth-child(4):last-child { grid-column: 3 / span 2; }
.pricing-tiers > .pricing-card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.pricing-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem; border: 1px solid var(--color-line); border-radius: 16px; background: #fff;
}
.pricing-card.is-featured { background: #111; color: #fff; border-color: #111; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18); }
.pricing-badge {
  position: absolute; top: -0.8rem; left: 1.75rem; padding: 0.4rem 0.8rem; border-radius: 99px;
  background: var(--color-accent); color: #111; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.pricing-name { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pricing-tagline { margin: 0.5rem 0 1.4rem; color: var(--color-text-muted); font-size: 0.98rem; line-height: 1.5; }
.is-featured .pricing-tagline, .is-featured .pricing-note, .is-featured .pricing-time { color: rgba(255, 255, 255, 0.7); }
.pricing-price { display: flex; flex-direction: column; gap: 0.2rem; }
.pricing-note { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.pricing-amount { font-family: var(--font-display); font-size: clamp(2.6rem, 4.4vw, 3.4rem); line-height: 1; font-variant-numeric: lining-nums; }
.pricing-time { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--color-text-muted); }
.pricing-includes { list-style: none; margin: 1.5rem 0 1.75rem; padding: 1.25rem 0 0; border-top: 1px solid var(--color-line); display: grid; gap: 0.7rem; }
.is-featured .pricing-includes { border-top-color: rgba(255, 255, 255, 0.16); }
.pricing-includes li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; font-size: 0.95rem; line-height: 1.45; }
.pricing-footnote { margin: -0.75rem 0 1.5rem; font-size: 0.8rem; font-style: normal; color: var(--color-text-muted); }
.pricing-includes svg { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--color-accent); }
.pricing-btn {
  margin-top: auto; display: block; text-align: center; padding: 0.95rem 1.2rem; border-radius: 99px;
  background: #111; color: #fff; text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.pricing-btn:hover { background: var(--color-accent); color: #111; }
.pricing-btn.is-coral { background: var(--color-accent); color: #111; }
.pricing-btn.is-coral:hover { background: #fff; }
/* "What you get with every logo": the full suite, so the value is clear */
.pricing-suite { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.pricing-suite-intro { max-width: 560px; margin: 0 auto 2rem; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.6; }
.pricing-suite-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; text-align: left; }
.pricing-suite-group { padding: 1.4rem 1.25rem; border-radius: 14px; background: #111; color: #fff; }
.pricing-suite-head { margin: 0 0 0.9rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--color-accent);
  font-family: var(--font-title); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.pricing-suite-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.pricing-suite-group li { font-size: 0.9rem; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 1000px) { .pricing-suite-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pricing-suite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pricing-addon-detail { display: block; margin-top: 0.2rem; font-size: 0.82rem; color: var(--color-text-muted); }
.pricing-addon-list li { align-items: baseline; }
/* the monthly option: a wide blush band */
.pricing-monthly {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 16px; background: #fbf3f0;
}
.pricing-kicker { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-text); }
.pricing-monthly .pricing-btn { display: inline-block; margin-top: 1.5rem; }
.pricing-monthly .pricing-includes { margin: 0; padding: 0; border: 0; }
/* single pieces + notes */
.pricing-extras { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pricing-subhead { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; }
.pricing-addon-list, .pricing-note-list { list-style: none; margin: 0; padding: 0; }
.pricing-addon-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--color-line); font-size: 0.98rem; }
.pricing-addon-list li:last-child { border-bottom: 1px solid var(--color-line); }
.pricing-addon-price { flex: none; color: var(--color-text-muted); }
.pricing-note-list li { position: relative; padding: 0 0 0.9rem 1.2rem; color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.55; }
.pricing-note-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--color-accent); }
.pricing-cta { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; text-align: center; color: var(--color-text-muted); font-size: 1.05rem; }
.pricing-cta .contact-link { font-size: inherit; }
@media (max-width: 900px) {
  .pricing-tiers, .pricing-tiers:has(> :nth-child(4)) { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 2rem; }
  .pricing-tiers > .pricing-card, .pricing-tiers > .pricing-card:nth-child(4):last-child, .pricing-tiers > .pricing-card:nth-child(4):nth-last-child(2) { grid-column: auto; }
  .pricing-monthly, .pricing-extras { grid-template-columns: 1fr; }
}

/* ── Work page (work.html): the card grid on its own page ── */
.work-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.about-hero.work-hero .hero-tagline { font-size: clamp(2.75rem, 8vw, 5.5rem); white-space: normal; line-height: 1.05; }
.work-cta { text-align: center; color: var(--color-text-muted); font-size: 1.05rem; margin: 0 auto; padding: 0 1rem clamp(4rem, 8vw, 6rem); }
.work-cta .contact-link { font-size: inherit; }
.brand-books-more { margin-top: clamp(2rem, 4vw, 2.75rem); }
.brand-books-more .contact-link { font-size: 1rem; }

/* ── Portfolio page (portfolio.html, js/portfolio.js): unlisted, for people hiring her ── */
.pf-hero {
  max-width: var(--max-width-wide); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.pf-name { font-size: clamp(3rem, 8vw, 6rem); white-space: normal; line-height: 1; margin: 0; }
.pf-role { margin: 1rem 0 1.25rem; font-family: var(--font-title); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.pf-hero .hero-about { margin: 0 0 2rem; max-width: 560px; }
.pf-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 16px; display: block; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pf-actions--center { justify-content: center; margin-top: 1.75rem; }
.pf-btn {
  display: inline-block; padding: 0.95rem 1.6rem; border-radius: 99px; border: 1px solid #111; color: #111; background: #fff;
  text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pf-btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #111; }
.pf-btn.is-dark { background: #111; color: #fff; }
.pf-btn.is-dark:hover { background: var(--color-accent); border-color: var(--color-accent); color: #111; }
@media (max-width: 760px) {
  .pf-hero { grid-template-columns: 1fr; }
  .pf-photo { max-width: 320px; order: -1; }
}

.pf-section, .pf-results { max-width: 1040px; margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem) 0; }
.pf-subhead { margin: 0 0 1.5rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }
.pf-experience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pf-job { padding: 1.6rem 1.6rem 1.5rem; border: 1px solid var(--color-line); border-radius: 16px; border-left: 4px solid var(--color-accent); }
.pf-job-org { margin: 0 0 0.6rem; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.pf-job-what { margin: 0 0 0.9rem; color: var(--color-text-muted); line-height: 1.6; }
.pf-job .contact-link { font-size: 0.85rem; }
@media (max-width: 700px) { .pf-experience { grid-template-columns: 1fr; } }

.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pf-stat { background: #111; color: #fff; border-radius: 16px; padding: 1.6rem 1.4rem; border-left: 4px solid var(--color-accent); }
.pf-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; font-variant-numeric: lining-nums; }
.pf-stat span { display: block; margin-top: 0.7rem; font-size: 0.92rem; line-height: 1.45; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 860px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pf-section + .brand-books { margin-top: clamp(3rem, 6vw, 4.5rem); }

.pf-work { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--color-line); }
.pf-work-link {
  display: grid; grid-template-columns: 3rem minmax(0, 14rem) minmax(0, 1fr) 1.5rem; gap: 1rem; align-items: baseline;
  padding: 1.15rem 0; border-top: 1px solid var(--color-line); color: inherit; text-decoration: none;
}
.pf-work-num { font-family: var(--font-display); font-style: italic; color: var(--color-accent); font-size: 1.15rem; }
.pf-work-title { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.pf-work-sum { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.5; }
.pf-work-arrow { color: var(--color-accent); transition: transform 0.2s ease; }
.pf-work-link:hover .pf-work-title { color: var(--color-accent); }
.pf-work-link:hover .pf-work-arrow { transform: translateX(4px); }
@media (max-width: 700px) {
  .pf-work-link { grid-template-columns: 2.5rem minmax(0, 1fr) 1.25rem; }
  .pf-work-sum { grid-column: 2 / 3; }
}

.pf-quote { max-width: 760px; margin: 0 auto; padding: clamp(3.5rem, 7vw, 5rem) 1.5rem 0; text-align: center; }
.pf-quote blockquote { margin: 0; }
.pf-quote blockquote p { margin: 0; font-family: var(--font-display); font-style: normal; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.45; }
.pf-quote-cite { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--color-text-muted); }
.pf-quote-cite b { display: block; color: var(--color-text); font-weight: 600; }

.pf-contact { text-align: center; padding: clamp(4rem, 8vw, 6rem) 1.5rem clamp(4rem, 8vw, 6rem); }
.pf-contact .services-title { margin: 0; }
.pf-contact .services-title .accent { color: var(--color-accent); font-style: italic; }
.pf-full { margin: 2rem 0 0; color: var(--color-text-muted); }
.pf-full .contact-link { font-size: 0.95rem; }
.pf-job-quote { margin: 0; padding: 0.2rem 0 0 1rem; border-left: 2px solid var(--color-line); }
.pf-job-quote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--color-text); }
.pf-job-quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.82rem; color: var(--color-text-muted); }

/* Portfolio work samples: page stacks that fan out like a card deck on hover */
.pf-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.pf-deck { display: block; color: inherit; text-decoration: none; }
.pf-deck-stage { position: relative; aspect-ratio: 4 / 3; container-type: inline-size; background: #f4f2ef; border-radius: 18px; overflow: hidden; transition: background 0.4s ease; }
.pf-deck:hover .pf-deck-stage, .pf-deck:focus-visible .pf-deck-stage { background: var(--color-accent); }
.pf-deck-page {
  position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: var(--ar); object-fit: cover;
  border-radius: 4px; background: #fff; box-shadow: 0 1.2cqi 3.5cqi rgba(0, 0, 0, 0.18); z-index: var(--z); object-position: top center;
  transform: translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(var(--sr));
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1);
}
.pf-deck:hover .pf-deck-page, .pf-deck:focus-visible .pf-deck-page {
  transform: translate(-50%, -50%) translate(var(--fx), var(--fy)) rotate(var(--fr));
}
@media (hover: none) {
  .pf-deck-page { transform: translate(-50%, -50%) translate(var(--fx), var(--fy)) rotate(var(--fr)); }
}
.pf-deck:focus-visible { outline: none; }
.pf-deck:focus-visible .pf-deck-stage { outline: 3px solid #111; outline-offset: 4px; }
.pf-deck-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 1rem 0.25rem 0; }
.pf-deck-caption b { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.pf-deck-client { color: var(--color-text-muted); font-size: 0.9rem; }
.pf-deck-more { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--color-accent); }
.pf-deck:hover .pf-deck-caption b { color: var(--color-accent); }
@media (max-width: 700px) { .pf-samples { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pf-deck-page { transition: none; } }

/* More work: a clean, minimal list (number, title, arrow), two columns on wide screens */
.pf-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; border-bottom: 0; }
.pf-work li { border-bottom: 1px solid var(--color-line); }
.pf-work-link { grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem; padding: 1.1rem 0; border-top: 0; align-items: center; }
.pf-work-num { font-size: 1rem; }
.pf-work-title { font-weight: 500; font-size: 1rem; }
@media (max-width: 700px) {
  .pf-work { grid-template-columns: 1fr; }
  .pf-work-link { grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem; }
}

/* Portfolio: About me, the closing section */
.pf-about { padding-bottom: clamp(4rem, 8vw, 6rem); }
.pf-about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pf-about-copy p { margin: 0 0 1.1rem; font-size: 1.08rem; line-height: 1.7; color: var(--color-text-muted); }
.pf-about-facts { margin: 0; }
.pf-about-facts div { padding: 0.85rem 0; border-top: 1px solid var(--color-line); }
.pf-about-facts div:last-child { border-bottom: 1px solid var(--color-line); }
.pf-about-facts dt { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.pf-about-facts dd { margin: 0.3rem 0 0; font-size: 0.98rem; line-height: 1.5; }
.pf-about .pf-full { margin-top: 2.5rem; text-align: center; }
@media (max-width: 760px) { .pf-about-grid { grid-template-columns: 1fr; } }
.pricing-addons-note { margin: -0.4rem 0 1.1rem; color: var(--color-text-muted); font-size: 0.98rem; line-height: 1.55; }

/* Home page: the portfolio's work-sample decks under the brand books */
.home-samples { max-width: 1040px; margin: clamp(3.5rem, 7vw, 5rem) auto 0; }
.home-samples-title { margin: 0 0 1.5rem; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }

/* "What we do" written out as a short piece instead of a list */
.services-prose { max-width: 720px; margin: 0 auto; }
.services-prose p { margin: 0 0 1.2rem; font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.85; color: #2b2b2b; }
.services .services-intro + .services-prose, .services-head + .services-prose { margin-top: 0; }

/* Company wordmark in the top bar (Warlick & Co), serif capitals like the logo */
.topbar .topbar-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; }
#hero .hero-tagline { font-size: min(7.5rem, 14.5cqi); }
/* Home hero with no photo: one column */
.hero.hero--no-photo { grid-template-columns: minmax(0, 1fr); max-width: 1240px; }
.hero.hero--no-photo .hero-copy { max-width: 760px; }
@media (max-width: 760px) { .topbar .topbar-name { font-size: 0.92rem; letter-spacing: 0.08em; } }
@media (max-width: 520px) { .topbar .topbar-name { font-size: 0.8rem; letter-spacing: 0.06em; } }
