/* Service pages share the approved portfolio's palette, typography and rhythm.
   The original copy, heading hierarchy, images and metadata remain untouched. */
:root {
  --bg: #f5f2ec;
  --ink: #1d1e1a;
  --muted: #6b6b62;
  --rule: #d6d3ca;
  --accent: #ce4b2e;
  --max: 1680px;
  --pad: clamp(1.25rem, 3.5vw, 4rem);
}
html { scroll-padding-top: 110px; }
.nav {
  top: 12px;
  width: calc(100% - var(--pad) * 2);
  max-width: calc(var(--max) - var(--pad) * 2);
  margin: 12px auto 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 5px;
  box-shadow: 0 2px 14px rgba(29, 30, 26, .045);
}
.nav-inner { padding: .9rem 1.25rem; }
.brand { font-size: clamp(1.35rem, 1.65vw, 1.7rem); }
.nav a { text-shadow: none; }
.nav-links a:nth-child(3) { display: block; }

/* Static service-language links also expose both versions without JavaScript. */
.service-language { display: flex; gap: 3px; flex: 0 0 auto; padding: 4px; background: #eeebe4; border: 1px solid rgba(29,30,26,.06); border-radius: 999px; }
.service-language a { display: grid; place-items: center; min-width: 36px; min-height: 30px; padding: 2px 8px; border-radius: 999px; font-size: .65rem; font-weight: 600; line-height: 1; color: var(--muted); }
.service-language a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(29,30,26,.1); }
.service-language a:hover { color: var(--ink); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-top: 2rem; font-size: .7rem; color: var(--muted); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.work-item figcaption { padding: 1rem; font-size: .78rem; line-height: 1.65; color: var(--muted); background: var(--bg); }
.work-item figcaption a, .content-copy p a, .text-card p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.seo-expansion .text-grid { margin-top: 2rem; }
.seo-expansion .series-head > .content-copy { align-self: start; }
@media (max-width: 699px) {
  .nav-inner:has(.service-language) { grid-template-columns: minmax(0,1fr) auto; }
  .nav-inner:has(.service-language) .nav-links { grid-column: 1 / -1; grid-row: 2; }
  .service-language { grid-column: 2; grid-row: 1; }
  .service-language a { min-width: 32px; min-height: 30px; }
  .breadcrumbs { padding-top: 1.25rem; font-size: .67rem; }
}

/* Title and introduction lead into a generous photographic spread. */
.page-hero { padding-block: clamp(3rem, 5vw, 5.5rem) 4.5rem; }
.page-hero .hero-frame {
  height: auto;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: "copy copy" "main detail";
  gap: 2.5rem clamp(1.25rem, 2.5vw, 2.75rem);
  align-items: end;
}
.page-hero .hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0 clamp(3rem, 8vw, 9rem);
  align-self: start;
  padding: 0;
  background: transparent;
}
.hero-copy > div:not(.hero-actions) { display: contents; }
.eyebrow {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 550;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
h1 {
  grid-column: 1;
  grid-row: 2 / 4;
  font-family: var(--font);
  font-style: normal;
  font-weight: 550;
  font-size: clamp(2.8rem, 4.8vw, 5.6rem);
  letter-spacing: -.06em;
  line-height: .99;
  max-width: 19ch;
}
.hero-copy p {
  grid-column: 2;
  grid-row: auto;
  align-self: end;
  font-size: clamp(.95rem, 1.2vw, 1.13rem);
  line-height: 1.65;
  max-width: 46ch;
  margin-top: 0;
}
.hero-copy p + p { margin-top: 1rem; }
.hero-actions { grid-column: 2; grid-row: auto; align-self: start; margin-top: 1.4rem; gap: .75rem; }
.hero-main, .hero-side > figure { background: #e9e5dd; }
.page-hero .hero-main { aspect-ratio: auto; }
.page-hero .hero-main img,
.page-hero .hero-main video,
.page-hero .hero-side > figure img,
.page-hero .hero-side > figure video {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.page-hero .hero-side > figure { align-self: end; height: auto; }
.hero-main video, .hero-side > figure video { aspect-ratio: auto 3 / 2; }
.page-hero .hero-frame:has(> .hero-copy) { grid-template-areas: "copy copy" "main main"; }
.page-hero .hero-frame:has(> .hero-copy) .hero-main { max-width: 900px; width: 100%; }

.button {
  min-height: 46px;
  padding: .85rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: .7rem;
  font-weight: 550;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
}
.button.primary { color: var(--bg); background: var(--ink); }
.button:hover { color: var(--bg); background: var(--ink); }
.button.primary:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.section { padding-block: clamp(2.75rem, 5vw, 5rem); }
.series-head {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(3rem, 8vw, 9rem);
  margin-bottom: 2.5rem;
}
.series-top {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  color: var(--accent);
  font-size: .62rem;
  font-weight: 550;
  line-height: 1.6;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
h2 {
  font-family: var(--font);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2rem, 3.1vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.05em;
  max-width: 23ch;
}
.content-copy,
.content-copy p,
.content-copy li,
.content-copy h3,
.faq-copy,
.seo-note { font-size: .98rem; line-height: 1.75; }
.content-copy h2 { font-size: clamp(1.8rem, 2.7vw, 2.8rem); margin-bottom: 1.5rem; }
.content-copy h3, .faq-copy h3 { font-size: .94rem; font-weight: 550; margin-top: 2rem; }
.content-copy .media-wide,
.content-copy .media { gap: .8rem; margin-block: 2rem; align-items: start; }
.content-copy .media-wide img,
.content-copy .media img,
.content-copy .media-wide video,
.content-copy .media video { height: auto; aspect-ratio: auto; object-fit: contain; }
.related { gap: .5rem; }
.related a { padding: .6rem .8rem; font-size: .78rem; border-color: var(--rule); }
.related a:hover { border-color: var(--ink); color: var(--ink); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.5rem);
  column-count: auto;
  align-items: start;
}
.work-grid .work-item { margin: 0; min-width: 0; background: #e9e5dd; }
.work-grid .work-item:first-child { grid-column: 1 / -1; }
.work-grid .work-item:last-child:nth-child(even) { grid-column: 1 / -1; }
.work-item img, .work-item video { width: 100%; height: auto; object-fit: contain; }
body:has(.hero-frame > .hero-copy) .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body:has(.hero-frame > .hero-copy) .work-grid .work-item { grid-column: auto; }

.text-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; }
.text-grid:not(:has(> :nth-child(2))) { grid-template-columns: 1fr; }
.text-grid:not(:has(> *)) { display: none; }
.text-card, .service-card, .faq-item { padding-top: 1.5rem; }
.text-card h2, .text-card h3, .service-card h3, .faq-item h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -.025em;
  margin-bottom: .8rem;
}
.text-card p, .text-card li, .service-card p, .faq-item p { font-size: .94rem; line-height: 1.7; }
.faq-copy { max-width: 1050px; margin-inline: auto; }
.faq-copy h2 { margin-bottom: 2.5rem; }
.faq-item + .faq-item { margin-top: 1.75rem; }
.faq-item h3 { margin-top: 0; }
.seo-note { font-size: .85rem; max-width: 85ch; }

.cta { background: var(--ink); padding-block: clamp(3.5rem, 7vw, 7rem); border: 0; }
.cta-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; }
.cta-copy h2, .cta-title {
  font-family: var(--font);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.1vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  color: var(--bg);
  max-width: 18ch;
}
.cta-copy p { font-size: .94rem; line-height: 1.65; color: #c7c8be; margin-top: 1.5rem; }
.cta-copy .button { border-color: var(--bg); color: var(--bg); margin-top: 2rem; }
.cta-copy .button:hover { background: var(--bg); color: var(--ink); }
.cta-grid > .button.primary { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.cta-grid > .button.primary:hover { background: #e17b5b; border-color: #e17b5b; color: var(--ink); }
.cta:not(:has(.cta-copy > *)) { padding-block: 3rem; }
.cta:not(:has(.cta-copy > *)) .cta-grid { grid-template-columns: 1fr; }
.cta-copy:not(:has(> *)) { display: none; }
.cta:not(:has(.cta-copy > *)) .cta-grid > .button { justify-self: start; }
.footer { padding-block: 2rem; font-size: .7rem; }

@media (max-width: 899px) {
  .page-hero { padding-block: 3rem; }
  .page-hero .hero-copy { grid-template-columns: 1fr; gap: 0; }
  .hero-copy h1 { grid-column: 1; grid-row: 2; font-size: clamp(2.6rem, 6.5vw, 4.5rem); max-width: 24ch; }
  .hero-copy p { grid-column: 1; grid-row: auto; margin-top: 1.5rem; max-width: 60ch; }
  .hero-actions { grid-column: 1; grid-row: auto; }
  .page-hero .hero-frame { gap: 2rem 1rem; }
  .series-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .content-copy { max-width: none; }
  .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-grid > .button { justify-self: start; }
}

@media (max-width: 699px) {
  html { scroll-padding-top: 95px; }
  .nav { top: 8px; margin-top: 8px; width: calc(100% - 1.5rem); max-width: none; }
  .nav-inner { display: grid; grid-template-columns: 1fr; gap: .35rem; padding: .75rem .85rem; }
  .brand { font-size: 1.3rem; }
  .nav-links { gap: 1.75rem; }
  .nav-links a { font-size: .78rem; padding-block: .35rem; }
  .page-hero { padding-block: 2.5rem 3rem; }
  .page-hero .hero-frame { grid-template-columns: 1fr; grid-template-areas: "copy" "main" "detail"; gap: 1.5rem; }
  .page-hero .hero-frame:has(> .hero-copy) { grid-template-areas: "copy" "main"; }
  .hero-copy h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); line-height: 1.03; max-width: 20ch; }
  .eyebrow { margin-bottom: 1.25rem; font-size: .6rem; }
  .hero-copy p { font-size: .92rem; margin-top: 1.25rem; }
  .hero-actions { margin-top: 1.25rem; gap: .5rem; }
  .button { font-size: .64rem; padding: .8rem 1rem; }
  .page-hero .hero-side > figure { max-width: 80%; justify-self: end; }
  .series-head { margin-bottom: 1.75rem; }
  h2 { font-size: 2rem; }
  .content-copy h2 { font-size: 1.8rem; }
  .content-copy, .content-copy p, .content-copy li { font-size: .91rem; }
  .content-copy .media-wide, .content-copy .media { grid-template-columns: 1fr; gap: .75rem; }
  .work-grid, body:has(.hero-frame > .hero-copy) .work-grid { grid-template-columns: 1fr; gap: .75rem; }
  .work-grid .work-item { grid-column: auto; }
  .text-grid, .service-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .faq-copy { margin-inline: 0; }
  .cta-copy h2, .cta-title { font-size: 2.6rem; }
  .cta-copy p { font-size: .91rem; }
  .footer .shell { flex-direction: column; gap: .6rem; }
}
