/* ============================================================
   YAIZA BOLEA — site styles
   Colours, fonts and spacing all live in this top block.
   Change a value here and it updates everywhere on the site.
   ============================================================ */

:root {
  /* --- BRAND COLOURS --- */
  --cream:        #f4efe6;   /* main background */
  --cream-deep:   #ece5d9;   /* slightly darker cream, for alternate sections */
  --burgundy:     #7a002b;   /* primary brand colour */
  --sand:         #e2d9c8;   /* lines, rules, small details */
  --ink:          #3b3330;   /* body text (warm dark, softer than black) */
  --ink-soft:     #6d635d;   /* captions, secondary text */

  /* --- SPACING --- */
  --rail:         46px;      /* width of the vertical name strip on the left */
  --gutter:       clamp(24px, 5vw, 90px);
  --section:      clamp(52px, 6vw, 96px);
  --maxw:         1320px;

}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  padding-left: var(--rail);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ============================================================
   THE VERTICAL NAME STRIP (fixed to the left edge)
   ============================================================ */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  background: var(--sand);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
  opacity: .85;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 20px 0;
  background: rgba(244,239,230,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: 0.52em; text-transform: uppercase;
  color: var(--burgundy); text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 38px); align-items: center; }
.nav-links a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--burgundy); border-color: var(--burgundy); }
.nav-links a.is-cta { color: var(--burgundy); border-color: var(--sand); }

/* ============================================================
   SHARED LAYOUT PIECES
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

/* small uppercase label above a heading */
.eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 16px;
}
.eyebrow.on-dark { color: var(--sand); }

/* small solid tag, used for the extra service label */
.eyebrow.badge {
  display: inline-block;
  background: var(--sand);
  color: var(--burgundy);
  padding: 7px 13px 6px;
  letter-spacing: 0.2em;
  font-size: 10px;
  text-indent: 0;
}

/* label and heading sharing one line */
.head-inline {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 10px clamp(16px, 2vw, 30px);
}
.head-inline .eyebrow { margin: 0; flex: 0 0 auto; }
.head-inline h2.display { margin: 0; max-width: none; flex: 1 1 auto; }

/* big serif headings */
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; margin: 0; }

/* the serif capitals carry a little left side bearing, so pull them back
   a fraction to sit flush with the sans labels above them */
h1, h2.display, .pagehead h1, .hero-split h1 { text-indent: -0.035em; }
h2.display {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 36ch;
}
h3.sub {
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.15; letter-spacing: -0.04em;
}
/* uppercase serif heading — stands in for Circe Contrast */
.caps {
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-indent: -0.035em;
}

.lede { font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.62; max-width: 60ch; color: var(--ink); }
.muted { color: var(--ink-soft); }

/* the dotted rule used throughout the portfolio */
.dotrule { border: 0; border-top: 2px dotted var(--sand); margin: 0; }

/* buttons */
.btn {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none;
  padding: 17px 34px;
  background: var(--burgundy); color: var(--cream);
  border: 1px solid var(--burgundy);
  transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--burgundy); }
.btn.ghost { background: transparent; color: var(--burgundy); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--burgundy); color: var(--cream); }
.btn.on-dark { background: var(--cream); color: var(--burgundy); border-color: var(--cream); }
.btn.on-dark:hover, .btn.on-dark:focus-visible { background: transparent; color: var(--cream); }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

/* ============================================================
   HERO  (type only, no photograph)
   ============================================================ */
.hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); min-height: min(88vh, 820px); }

/* the plain typographic hero used on the homepage */
.hero-plain {
  padding: clamp(64px, 11vw, 150px) 0 clamp(52px, 8vw, 110px);
  border-bottom: 2px dotted var(--sand);
}
.hero-plain h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.055em;
  margin: 0 0 30px;
  max-width: 17ch;
}
.hero-plain h1 em { font-style: italic; color: var(--burgundy); }
.hero-plain .hero-lede { max-width: 54ch; margin: 0 0 40px; }
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vw, 110px) clamp(28px, 5vw, 96px);
}
.hero-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 clamp(28px, 5vw, 54px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: .98;
  letter-spacing: -0.055em;
  margin: 0 0 30px;
}
.hero h1 em { font-style: italic; color: var(--burgundy); }
.hero-lede { max-width: 44ch; margin: 0 0 40px; font-size: clamp(1rem, 1.3vw, 1.16rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-img { position: relative; background: var(--sand); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

/* thin burgundy band of credentials */
.credbar { background: var(--burgundy); color: var(--cream); }
.credbar ul {
  list-style: none; margin: 0 auto; padding: 24px var(--gutter);
  max-width: var(--maxw);
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px clamp(18px, 2.2vw, 40px);
  align-items: flex-start;
}
.credbar li:first-child { flex: 0 1 auto; }
.credbar li:nth-child(2) { flex: 1 1 auto; max-width: 46ch; }
.credbar li:nth-child(3) { flex: 0 1 auto; }
.credbar li:last-child { flex: 0 0 auto; text-align: right; }
.cred-note { display: block; opacity: .72; letter-spacing: 0.12em; }
.credbar li {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px;
  line-height: 1.4;
}
.credbar b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px; font-weight: 500; letter-spacing: -0.02em;
  text-transform: none; line-height: 1;
}

/* ============================================================
   POSITIONING BLOCK
   ============================================================ */
.stance { background: var(--cream-deep); }
.stance .inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
  grid-template-rows: auto auto;
  column-gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.stance .s-label { grid-column: 1; grid-row: 1; margin-bottom: 16px; }
.stance .s-head  { grid-column: 1; grid-row: 2; }
.stance .s-body  { grid-column: 2; grid-row: 2; margin-top: -2px; }
.stance p + p { margin-top: 1.1em; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc {
  padding: clamp(22px, 2.4vw, 34px) clamp(18px, 2.2vw, 32px);
  border-top: 2px dotted var(--sand);
  border-right: 2px dotted var(--sand);
}
.svc:nth-child(3n) { border-right: 0; }
.svc:nth-child(-n+3) { border-top: 0; }
.svc h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  letter-spacing: -0.04em;
  color: var(--burgundy);
  margin: 0 0 10px;
}
.svc p { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--ink-soft); }

/* ============================================================
   CASE STUDIES  (the burgundy "shoulder" block from the deck)
   ============================================================ */
.case { position: relative; margin-bottom: clamp(44px, 5vw, 76px); }
.case-top { display: block; }
.case-media {
  display: grid; grid-template-columns: minmax(0,.62fr) minmax(0,1fr);
  gap: clamp(24px, 3.4vw, 56px);
  padding: clamp(26px, 3.4vw, 46px) clamp(26px, 4vw, 62px) 0;
  align-items: start;
}
.case-media img { width: 100%; max-width: 330px; aspect-ratio: 3/4; object-fit: cover; }
.case-disciplines { display: flex; flex-direction: column; gap: 12px; padding-top: 2px; }
.case-disciplines span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy);
  padding-bottom: 10px; border-bottom: 2px dotted var(--sand);
}
.case-disciplines span:last-child { border-bottom: 0; }
.case-head {
  background: var(--burgundy); color: var(--cream);
  padding: clamp(28px, 3.6vw, 48px) clamp(26px, 4vw, 62px);
}
.case-num {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sand);
}
.case-num .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1.04; letter-spacing: -0.05em; text-transform: none;
  color: var(--cream);
}
.case-head h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1.04; letter-spacing: -0.05em; margin: 0;
}
.case-head .kicker { margin: 14px 0 0; font-size: .92rem; color: var(--sand); letter-spacing: -0.01em; }
.case-hero { background: var(--sand); }
.case-hero img { width: 100%; height: 100%; min-height: 200px; max-height: 420px; object-fit: cover; }

.case-body.single { grid-template-columns: minmax(0,1fr); }
.case-body.single p { max-width: 68ch; }
.case-body {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(26px, 5vw, 76px);
  padding: clamp(34px, 4.4vw, 60px) clamp(26px, 4vw, 62px);
  border-bottom: 2px dotted var(--sand);
}
.case-body h4 {
  margin: 0 0 18px; font-family: "DM Sans", sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--burgundy);
}
.case-body p { margin: 0 0 1em; font-size: .97rem; }
.case-body p:last-child { margin-bottom: 0; }

.results { display: grid; gap: 26px; }
.result b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 400; line-height: 1; letter-spacing: -0.045em;
  color: var(--burgundy);
}
.result span { display: block; font-size: .92rem; color: var(--ink-soft); margin-top: 5px; }

.tags {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 22px clamp(26px, 4vw, 62px) 0;
}
.tags span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--burgundy);
}

/* small paired images under a case study */
.case-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.case-strip img { width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: center 28%; }

/* a single wide image beneath a case study */
.case-wide { margin: 26px 0 0; }
.case-wide img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: center 40%; }

/* ============================================================
   PHOTOGRAPHY GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.gallery-four img { aspect-ratio: 3/4; }
.gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: opacity .3s; }
.gallery a:hover img, .gallery a:focus-visible img { opacity: .82; }
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: 1/2; }

/* ============================================================
   EVENTS
   ============================================================ */
.events { background: var(--burgundy); color: var(--cream); }
.events .inner {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.events-labels { grid-column: 1; grid-row: 1; margin-bottom: 20px; }
.events-copy   { grid-column: 1; grid-row: 2; }
.events .events-grid { grid-column: 2; grid-row: 2; padding-top: clamp(8px, 1vw, 15px); }
.events h2 { color: var(--cream); }
.events .lede { color: var(--sand); }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.events-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.quote {
  position: relative;
  padding: clamp(30px, 3.4vw, 46px) clamp(22px, 2.6vw, 40px) clamp(26px, 3vw, 40px);
  border-top: 2px dotted rgba(122,0,43,.22);
  border-right: 2px dotted rgba(122,0,43,.22);
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote:nth-child(2n) { border-right: 0; }
.quote:nth-child(-n+2) { border-top: 0; }
/* large open quote mark sitting behind the text */
.quote::before {
  content: "\201C";
  position: absolute;
  top: clamp(6px, 1vw, 14px); left: clamp(10px, 1.4vw, 20px);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(72px, 7vw, 116px);
  line-height: 1;
  color: rgba(122,0,43,.16);
  pointer-events: none;
}
.quote p {
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.38rem);
  line-height: 1.42; letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.quote cite {
  font-style: normal; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--burgundy);
  display: flex; align-items: center; gap: 12px;
}
.quote cite::before {
  content: ""; width: 22px; height: 1px; background: var(--burgundy); flex: 0 0 22px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact .inner { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(34px, 6vw, 90px); align-items: start; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--burgundy);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; letter-spacing: -0.02em;
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--sand);
  padding: 11px 2px;
  border-radius: 0;
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--burgundy);
}
.field textarea { resize: none; min-height: 150px; }
.field select { appearance: none; cursor: pointer; }
.field .hint { font-size: .82rem; color: var(--ink-soft); letter-spacing: -0.01em; }
.form-actions { grid-column: 1 / -1; margin-top: 10px; }
.contact-aside p { margin: 0 0 1em; }
.contact-simple .lede { max-width: 54ch; }
.contact-simple a.email, .contact-aside a.email {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  letter-spacing: -0.03em; color: var(--burgundy);
  text-decoration: none; border-bottom: 1px solid var(--sand);
}
.contact-simple a.email:hover, .contact-aside a.email:hover { border-color: var(--burgundy); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--burgundy); color: var(--cream); padding: clamp(30px, 3.4vw, 46px) 0 24px; }
.foot .inner { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: 0.42em; text-transform: uppercase; margin: 0 0 8px;
}
.foot a { color: var(--sand); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover, .foot a:focus-visible { border-color: var(--sand); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.foot-base {
  margin-top: clamp(20px, 2.2vw, 30px); padding-top: 18px;
  border-top: 1px solid rgba(226,217,200,.28);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: stretch; }
.about-hero { gap: clamp(30px, 4vw, 64px); align-items: center; }
.about-hero img {
  width: 100%; max-width: 300px;
  aspect-ratio: 1/1; object-fit: cover;
  border-radius: 50%;
  justify-self: center;
}
/* words picked out in the brand colour within body copy */
.hl { color: var(--burgundy); }

/* the career timeline */
.journey { display: grid; gap: 0; }
.leg {
  display: grid; grid-template-columns: 250px minmax(0,1fr);
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 2px dotted var(--sand);
}
.leg:last-child { border-bottom: 2px dotted var(--sand); }
.leg .place {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  letter-spacing: -0.04em; color: var(--burgundy); margin: 0;
}
.leg p { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.leg .place + p { margin-top: 11px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .case-media { grid-template-columns: minmax(0,1fr); }
  .hero, .stance .inner, .events .inner, .contact .inner, .about-hero {
    grid-template-columns: minmax(0,1fr);
  }
  .stance .s-label, .stance .s-head, .stance .s-body { grid-column: 1; grid-row: auto; }
  .stance .s-body { margin-top: 18px; }
  .hero-img { min-height: 60vh; order: -1; }
  .hero-img img { object-position: center 18%; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc:nth-child(3n) { border-right: 2px dotted var(--sand); }
  .svc:nth-child(2n) { border-right: 0; }
  .svc:nth-child(-n+3) { border-top: 2px dotted var(--sand); }
  .svc:nth-child(-n+2) { border-top: 0; }
  .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gallery .tall { grid-row: auto; }
  .gallery .tall img { aspect-ratio: 1/1; }
  .about-hero img { max-height: 60vh; }
}

@media (max-width: 700px) {
  :root { --rail: 34px; }
  body { font-size: 16px; }
  .nav { padding: 15px 0; }
  .nav-mark { font-size: 13px; letter-spacing: 0.34em; }
  /* nav stacks onto two rows so nothing runs off the edge */
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links { gap: 16px; flex-wrap: wrap; width: 100%; }
  .nav-links a { font-size: 10px; letter-spacing: 0.12em; }
  .nav-links a.hide-sm { display: inline; }
  .hero-name { letter-spacing: 0.38em; }
  .svc-grid { grid-template-columns: minmax(0,1fr); }
  .svc { border-right: 0 !important; border-top: 2px dotted var(--sand) !important; }
  .svc:first-child { border-top: 0 !important; }
  .case-body, .quotes, .form-grid, .events-grid { grid-template-columns: minmax(0,1fr); }
  .quote { border-right: 0 !important; }
  .quote:nth-child(-n+2) { border-top: 2px dotted rgba(122,0,43,.22); }
  .quote:first-child { border-top: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .case-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .case-wide img { aspect-ratio: 3/2; }
  .leg { grid-template-columns: minmax(0,1fr); gap: 6px; }
  /* two by two on phones, filling down each column:
     CNN / 90% on the left, 10 years / EN ES on the right */
  .credbar ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 22px 20px;
    align-items: start;
  }
  .credbar li, .credbar li:first-child, .credbar li:nth-child(2),
  .credbar li:nth-child(3), .credbar li:last-child {
    flex: none; max-width: none; text-align: left;
  }
}

/* ============================================================
   ADDITIONS FOR THE MULTI PAGE SITE
   ============================================================ */

/* small page header used on inner pages */
.pagehead { padding: clamp(44px, 5vw, 76px) 0 clamp(24px, 3vw, 40px); }
.pagehead h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.04; letter-spacing: -0.05em; margin: 0 0 18px;
}

/* the four ways to work together */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way {
  padding: clamp(22px, 2.4vw, 34px) clamp(18px, 2.2vw, 34px);
  border-top: 2px dotted var(--sand);
  border-right: 2px dotted var(--sand);
}
.way:nth-child(2n) { border-right: 0; }
.way:nth-child(-n+2) { border-top: 0; }
.way h3 {
  font-size: clamp(1.24rem, 1.7vw, 1.55rem);
  letter-spacing: -0.04em; color: var(--burgundy); margin: 0 0 10px;
}
.way p { margin: 0 0 10px; font-size: .95rem; line-height: 1.55; }
.way .when { margin: 0; font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* note under a grid */
.gridnote {
  margin: clamp(34px, 4vw, 56px) 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.62;
  color: var(--ink); max-width: none;
}
.disciplines {
  margin: 14px 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.62;
  color: var(--ink); max-width: none;
}

/* project preview cards for the homepage */
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.preview { display: block; text-decoration: none; color: inherit; background: var(--cream-deep); }
.preview img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity .3s; }
.preview:hover img, .preview:focus-visible img { opacity: .85; }
.preview .txt { padding: 26px clamp(18px, 2vw, 30px) 32px; }
.preview h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  letter-spacing: -0.04em; color: var(--burgundy); margin: 0 0 10px;
}
.preview p { margin: 0 0 16px; font-size: .93rem; color: var(--ink-soft); }
.preview .more {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--burgundy);
  border-bottom: 1px solid var(--sand); padding-bottom: 3px;
}

/* the closing contact band that ends every page */
.cta-band { background: var(--burgundy); color: var(--cream); padding-bottom: clamp(40px, 4.5vw, 66px); }
.cta-band .inner {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
/* the heading sits on a taller line box, so drop the copy to match its first line */
.cta-band .inner > div { padding-top: clamp(0px, calc(2.19vw - 10.5px), 21px); }

/* light version of the closing band, same tone as the clinics section */
.cta-band.light { background: var(--cream-deep); color: var(--ink); }
.cta-band.light h2 { color: var(--ink); }
.cta-band.light p { color: var(--ink); }
.cta-band.light .btn {
  background: var(--burgundy); color: var(--cream); border-color: var(--burgundy);
}
.cta-band.light .btn:hover, .cta-band.light .btn:focus-visible {
  background: transparent; color: var(--burgundy);
}
.cta-band.light + .foot { border-top: 0; }
.cta-band + .foot { border-top: 1px solid rgba(226,217,200,.3); padding-top: clamp(26px, 3vw, 40px); }
.cta-band h2 { color: var(--cream); margin: 0; max-width: 24ch; }
.cta-band p { color: var(--sand); max-width: 46ch; margin: 0 0 24px; }

/* compliance block */
.compliance { background: var(--cream-deep); padding-top: clamp(40px, 4.6vw, 68px); padding-bottom: clamp(40px, 4.6vw, 68px); }
.compliance h2.display { max-width: 18ch; }
.compliance .inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  grid-template-rows: auto auto;
  column-gap: clamp(26px, 3.6vw, 60px);
  align-items: start;
}
.compliance .c-label { grid-column: 1; grid-row: 1; margin-bottom: 16px; }
.compliance .c-head  { grid-column: 1; grid-row: 2; }
.compliance .c-body  { grid-column: 2; grid-row: 2; margin-top: -2px; }

@media (max-width: 1000px) {
  .events .inner { grid-template-columns: minmax(0,1fr); }
  .events-labels, .events-copy, .events .events-grid { grid-column: 1; grid-row: auto; }
  .events .events-grid { margin-top: 24px; }
  .cta-band .inner { grid-template-columns: minmax(0,1fr); }
  .previews { grid-template-columns: minmax(0,1fr); }
  .compliance .inner { grid-template-columns: minmax(0,1fr); }
  .compliance .c-label, .compliance .c-head, .compliance .c-body { grid-column: 1; grid-row: auto; }
  .compliance .c-body { padding-top: 18px; }
}
@media (max-width: 700px) {
  .ways { grid-template-columns: minmax(0,1fr); }
  .way { border-right: 0 !important; border-top: 2px dotted var(--sand) !important; }
  .way:first-child { border-top: 0 !important; }
}


/* ============================================================
   HOMEPAGE HERO: text left, grid of images right
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 3.4vw, 52px);
  align-items: center;
  padding-top: clamp(44px, 6vw, 86px);
  padding-bottom: clamp(44px, 6vw, 86px);
  border-bottom: 2px dotted var(--sand);
}
.hero-split .hero-lede { max-width: 40ch; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  justify-self: end;
  max-width: 100%;
}
.hero-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* keep the text and the grid side by side on all but the narrowest phones */
@media (max-width: 900px) {
  .hero-split { gap: 24px; padding-top: 40px; padding-bottom: 36px; }
  .hero-grid { gap: 3px; max-width: 100%; }
  .hero-split .hero-name { font-size: 1rem; letter-spacing: .3em; margin-bottom: 16px; }
  .hero-split h1 { font-size: clamp(1.55rem, 4.6vw, 2.4rem) !important; margin-bottom: 16px !important; }
  .hero-split .hero-lede { font-size: .93rem; margin-bottom: 22px; }
  .hero-split .btn { padding: 13px 20px; font-size: 10px; letter-spacing: .16em; }
  .hero-split .hero-cta { gap: 9px; }
}
@media (max-width: 480px) {
  .hero-split { grid-template-columns: minmax(0,1fr); }
  .hero-grid { justify-self: start; max-width: 420px; }
}
