/*
Theme Name: PRISM Risk
Theme URI: https://prismrisk.uk
Author: PRISM Risk Limited
Description: A bespoke, lightweight WordPress theme for PRISM Risk Limited.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: prism-risk
*/

:root {
  --navy: #05182f;
  --navy-deep: #020d1a;
  --ink: #091d36;
  --blue: #176fea;
  --blue-bright: #36a2ff;
  --ice: #eaf3ff;
  --soft: #f3f6fa;
  --line: #d9e2ed;
  --muted: #5f6d7d;
  --white: #fff;
  --max: 1240px;
  --shadow: 0 28px 80px rgba(2, 13, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 16px; background: #fff; color: var(--navy); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(9,29,54,.1);
  backdrop-filter: blur(18px);
}
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { width: 270px; height: 62px; display: flex; align-items: center; overflow: hidden; }
.brand img { width: 270px; transform: scale(2.35); transform-origin: center; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav .menu-items { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { padding: 12px 20px; border-radius: 4px; color: #fff; background: var(--navy); }
.site-nav .menu-items > li:last-child > a { display: inline-block; padding: 12px 20px; border-radius: 4px; color: #fff; background: var(--navy); }
.nav-cta:hover { background: var(--blue); }
.site-nav .menu-items > li:last-child > a:hover { color: #fff; background: var(--blue); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--navy); }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 38%, rgba(46,130,255,.24), transparent 34%), linear-gradient(115deg, transparent 55%, rgba(255,255,255,.035) 55%); }
.hero-lines { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000); }
.hero-grid { position: relative; min-height: 690px; padding-block: 104px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 20px; color: #9ac8ff; font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 30px; height: 2px; margin: 0 12px 3px 0; background: var(--blue-bright); }
.eyebrow.dark { color: var(--blue); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.25rem, 6.5vw, 6.3rem); font-weight: 720; letter-spacing: -.065em; line-height: .98; }
.hero h1 span { color: #8bc3ff; }
.hero-intro { max-width: 700px; margin: 30px 0 0; color: #cbd6e4; font-size: 1.17rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 54px; padding: 13px 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button-primary { border-color: var(--blue); background: var(--blue); }
.button-primary:hover { transform: translateY(-2px); background: #2e82ff; }
.button-quiet:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; color: #a9b9cc; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.trust-row span + span::before { content: "◆"; margin-right: 24px; color: var(--blue-bright); font-size: .6rem; }

.hero-panel { position: relative; min-height: 470px; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); box-shadow: var(--shadow); }
.prism-graphic { position: absolute; top: 42px; right: 38px; width: 270px; height: 240px; object-fit: contain; filter: drop-shadow(0 25px 40px rgba(10,86,218,.3)); }
.panel-copy { position: relative; max-width: 420px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); }
.panel-copy p { margin: 0 0 8px; color: #9fb2c8; font-size: .88rem; }
.panel-copy strong { display: block; font-size: 1.42rem; line-height: 1.35; }

.intro-band { padding: 74px 0; background: var(--blue); color: #fff; }
.intro-grid { display: grid; grid-template-columns: .34fr 1.66fr; gap: 60px; }
.section-label { margin: 8px 0 0; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.intro-grid h2 { max-width: 880px; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.04em; line-height: 1.08; }
.intro-grid div p { max-width: 820px; margin: 24px 0 0; color: #ddecff; font-size: 1.12rem; }

.visual-story { padding: 26px 0 94px; background: var(--blue); }
.visual-story-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.visual-story figure { position: relative; overflow: hidden; margin: 0; background: var(--navy); }
.visual-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.visual-story figure:hover img { transform: scale(1.025); }
.visual-main { min-height: 520px; }
.visual-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.visual-stack figure { min-height: 251px; }
.visual-story figcaption { position: absolute; inset: auto 0 0; padding: 48px 26px 22px; color: #fff; background: linear-gradient(transparent, rgba(2,13,26,.88)); }
.visual-story figcaption span, .image-band-caption span { display: block; margin-bottom: 3px; color: #9ac8ff; font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.visual-story figcaption strong { font-size: 1.13rem; }

.section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; margin-bottom: 48px; }
.section h2, .contact h2 { margin: 0; font-size: clamp(2.2rem, 4.7vw, 4.3rem); letter-spacing: -.055em; line-height: 1.03; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 1.04rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; display: flex; min-height: 390px; overflow: hidden; padding: 28px 28px 26px; flex-direction: column; border: 1px solid var(--line); color: var(--ink); background: linear-gradient(145deg,#fff 55%,#f1f6fd); text-decoration: none; transition: transform .22s, border-color .22s, box-shadow .22s; }
.service-card::after, .info-card::after { content: ""; position: absolute; right: -52px; bottom: -65px; width: 180px; height: 180px; border: 1px solid rgba(23,111,234,.12); transform: rotate(45deg); pointer-events: none; }
.service-card:hover, .service-card:focus-visible { z-index: 2; transform: translateY(-7px); border-color: rgba(23,111,234,.45); box-shadow: 0 24px 60px rgba(5,24,47,.14); outline: none; }
.service-card.featured { color: #fff; background: radial-gradient(circle at 88% 12%,rgba(54,162,255,.32),transparent 34%),var(--navy); }
.card-number { position: absolute; top: 26px; right: 26px; color: #8c99a7; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.service-art { position: relative; width: 82px; height: 82px; display: grid; place-items: center; margin-bottom: 42px; border-radius: 20px 20px 20px 5px; color: var(--blue); background: linear-gradient(145deg,#eaf3ff,#dcecff); box-shadow: inset 0 0 0 1px rgba(23,111,234,.08); }
.service-art svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.service-art--fire { color: #e44c2a; background: linear-gradient(145deg,#fff1ec,#ffe2d8); }
.service-art--strategy { color: #176fea; background: linear-gradient(145deg,#edf5ff,#dbeaff); }
.service-art--dsear { color: #b87900; background: linear-gradient(145deg,#fff7df,#ffe8a8); }
.service-art--water { color: #0878aa; background: linear-gradient(145deg,#e7f9ff,#cdecf8); }
.service-art--energy { color: #177e57; background: linear-gradient(145deg,#e9faef,#d2f0dd); }
.service-art--compliance { color: #5b4bb7; background: linear-gradient(145deg,#f1efff,#ded9ff); }
.featured .service-art { color: #fff; background: rgba(23,111,234,.88); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.service-card h3 { margin: 0 0 14px; font-size: 1.25rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.featured p { color: #bbc9d9; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 28px; color: var(--blue); font-size: .8rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.card-link i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ice); font-size: 1rem; font-style: normal; transition: transform .2s, background .2s; }
.service-card:hover .card-link i, .info-card:hover .card-link i { transform: translateX(4px); background: #dbeaff; }
.featured .card-link { color: #fff; }
.featured .card-link i { background: rgba(255,255,255,.13); }

.sectors { color: #fff; background: var(--navy); }
.sectors-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: center; }
.sectors-copy p:not(.eyebrow) { max-width: 520px; color: #b8c6d7; font-size: 1.06rem; }
.text-link { display: inline-flex; gap: 16px; margin-top: 20px; font-weight: 800; text-decoration: none; }
.text-link.light { color: #98c8ff; }
.sector-list { border-top: 1px solid rgba(255,255,255,.18); }
.sector-list div { display: grid; grid-template-columns: 70px 1fr; align-items: center; min-height: 82px; border-bottom: 1px solid rgba(255,255,255,.18); }
.sector-list span { color: #6eaef7; font-size: .74rem; font-weight: 800; }
.sector-list strong { font-size: 1.15rem; }

.about { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: .55fr 1.15fr .8fr; gap: 64px; align-items: start; }
.about-mark { aspect-ratio: 1; display: grid; place-items: center; align-content: center; color: #fff; background: linear-gradient(145deg, var(--blue-bright), #0c3d8c); box-shadow: var(--shadow); }
.about-mark span { font-size: 6rem; font-weight: 800; line-height: 1; }
.about-mark small { margin-top: 8px; font-weight: 800; letter-spacing: .25em; }
.about-copy .lead { margin-top: 28px; color: var(--ink); font-size: 1.18rem; font-weight: 700; }
.about-copy p:not(.lead):not(.eyebrow) { color: var(--muted); }
.credentials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.credentials span { padding: 6px 10px; border: 1px solid #cbd5e1; color: #3f5064; font-size: .74rem; font-weight: 800; }
.principles { padding: 30px; background: #fff; box-shadow: 0 14px 44px rgba(5,24,47,.07); }
.principles h3 { margin: 0 0 16px; font-size: 1.3rem; }
.principles > div { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.principles strong { color: var(--blue); font-size: .7rem; }
.principles p { margin: 0; color: var(--muted); font-size: .9rem; }
.principles b { color: var(--ink); }

.contact { padding: 100px 0; color: #fff; background: var(--blue); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.contact-grid > div:first-child > p:not(.eyebrow) { max-width: 590px; color: #e0edff; font-size: 1.05rem; }
.contact .eyebrow { color: #d6e8ff; }
.contact .eyebrow::before { background: #fff; }
.contact-actions { border-top: 1px solid rgba(255,255,255,.38); }
.contact-actions a { position: relative; display: flex; flex-direction: column; padding: 25px 54px 25px 0; border-bottom: 1px solid rgba(255,255,255,.38); text-decoration: none; }
.contact-actions span { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-actions strong { margin-top: 3px; font-size: 1.35rem; }
.contact-actions i { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-style: normal; transition: transform .2s; }
.contact-actions a:hover i { transform: translate(7px,-50%); }

.site-footer { padding: 74px 0 24px; color: #aebbc9; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 80px; padding-bottom: 58px; }
.footer-logo { width: 290px; height: 86px; display: flex; align-items: center; overflow: hidden; padding: 8px 14px; border-radius: 3px; background: #fff; }
.footer-logo img { width: 260px; transform: scale(2.2); transform-origin: center; }
.footer-brand p { max-width: 430px; margin: 22px 0 0; }
.site-footer h3 { margin: 0 0 18px; color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a, .site-footer div > span { display: block; margin: 9px 0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 86px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 18px 24px 28px; border-bottom: 1px solid var(--line); background: #fff; }
  .site-nav.open { display: flex; }
  .site-nav .menu-items { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .menu-items li { display: block; }
  .site-nav a { padding: 13px 0; }
  .site-nav .nav-cta { margin-top: 10px; padding: 13px 18px; text-align: center; }
  .site-nav .menu-items > li:last-child > a { display: block; margin-top: 10px; padding: 13px 18px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 82px; }
  .hero-panel { min-height: 390px; }
  .prism-graphic { width: 230px; height: 205px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: .6fr 1.4fr; }
  .principles { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr .7fr .9fr; gap: 40px; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { height: 74px; }
  .brand { width: 225px; height: 56px; }
  .brand img { width: 225px; }
  .site-nav { top: 74px; }
  .hero-grid { min-height: 0; padding-block: 68px; gap: 52px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-intro { font-size: 1.02rem; }
  .hero-panel { min-height: 330px; padding: 26px; }
  .prism-graphic { top: 26px; right: 20px; width: 190px; height: 170px; }
  .panel-copy strong { font-size: 1.17rem; }
  .trust-row { gap: 12px; }
  .trust-row span + span::before { margin-right: 12px; }
  .intro-band { padding: 58px 0; }
  .intro-grid, .section-heading, .sectors-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; }
  .sectors-grid { gap: 55px; }
  .about-mark { width: min(72vw, 300px); }
  .contact { padding: 76px 0; }
  .contact-grid { gap: 44px; }
  .footer-grid { gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Inner pages and WordPress content */
.page-hero { position: relative; overflow: hidden; padding: 105px 0 95px; color: #fff; background: var(--navy-deep); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 30%, rgba(54,162,255,.22), transparent 34%); pointer-events: none; }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -.06em; line-height: 1; }
.page-hero p:last-child { max-width: 720px; margin: 24px 0 0; color: #c5d4e5; font-size: 1.12rem; }
.image-band { position: relative; height: min(42vw, 540px); min-height: 330px; overflow: hidden; background: var(--navy); }
.image-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,13,26,.72), transparent 58%); }
.image-band > img { width: 100%; height: 100%; object-fit: cover; }
.image-band-caption { position: absolute; z-index: 2; left: 50%; bottom: 42px; transform: translateX(-50%); color: #fff; }
.image-band-caption strong { display: block; max-width: 620px; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.14; }
.content-section { padding: 90px 0 110px; }
.content-narrow { max-width: 820px; }
.prose { color: #3e5064; font-size: 1.06rem; }
.prose h2, .prose h3 { color: var(--ink); letter-spacing: -.035em; line-height: 1.12; }
.prose h2 { margin: 2.2em 0 .55em; font-size: clamp(2rem, 4vw, 3.1rem); }
.prose h3 { margin: 1.9em 0 .45em; font-size: 1.55rem; }
.prose a { color: var(--blue); font-weight: 700; }
.prose .wp-block-button__link { display: inline-flex; padding: 13px 22px; border-radius: 4px; color: #fff; background: var(--blue); text-decoration: none; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .5em 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.section-heading.compact { margin-bottom: 38px; }
.section-heading.compact h2 { font-size: clamp(2.2rem,4vw,3.7rem); }
.service-overview { background: #f7f9fc; }
.info-card { position: relative; display: flex; min-height: 360px; overflow: hidden; padding: 28px; flex-direction: column; border: 1px solid var(--line); color: var(--ink); background: #fff; text-decoration: none; transition: transform .22s, border-color .22s, box-shadow .22s; }
.info-card:hover, .info-card:focus-visible { transform: translateY(-6px); border-color: rgba(23,111,234,.45); box-shadow: 0 22px 55px rgba(5,24,47,.12); outline: none; }
.info-card .card-number { position: absolute; display: block; margin: 0; color: var(--blue); }
.info-card .service-art { margin: 18px 0 34px; }
.info-card h2, .info-card h3 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.info-card p { margin: 0; color: var(--muted); }
.info-card a { display: inline-flex; margin-top: 20px; color: var(--blue); font-weight: 800; text-decoration: none; }
.service-details { padding: 0 0 110px; scroll-margin-top: 90px; }
.service-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; padding: 82px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 104px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail:nth-child(even) .service-detail-heading { order: 2; }
.service-detail-heading .service-art { margin-bottom: 28px; }
.service-detail-heading h2 { margin: 0 0 18px; font-size: clamp(2.15rem,4vw,3.65rem); letter-spacing: -.05em; line-height: 1.04; }
.service-detail-heading > p:last-child { max-width: 610px; margin: 0; color: var(--muted); font-size: 1.06rem; }
.service-scope { padding: 38px 40px; align-self: end; border-top: 4px solid var(--blue); background: var(--soft); }
.service-scope h3 { margin: 0 0 20px; font-size: 1.15rem; }
.service-scope ul { margin: 0; padding: 0; list-style: none; }
.service-scope li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); color: #3e5064; }
.service-scope li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.service-scope .text-link { color: var(--blue); }
.tools-intro { padding: 76px 0 36px; background: var(--soft); }
.status-pill { display: inline-block; margin-bottom: 32px; padding: 5px 10px; color: #1c5b9f; background: var(--ice); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.post-card-copy { padding: 28px; }
.post-card time { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-card h2 { margin: 11px 0 12px; font-size: 1.35rem; line-height: 1.22; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); }
.post-card .text-link { color: var(--blue); }
.pagination { margin-top: 48px; }
.contact-page-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.about-photo { min-height: 430px; margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.contact-details { padding: 34px; color: #fff; background: var(--navy); }
.contact-details h2 { margin-top: 0; }
.contact-details a { display: block; margin: 18px 0; color: #fff; font-weight: 800; text-decoration: none; }
.contact-form-card { min-height: 420px; padding: 36px; border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(5,24,47,.08); }
.empty-state { padding: 38px; border: 1px solid var(--line); background: var(--soft); }
.wp-block-image img, .attachment-post-thumbnail { height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 980px) {
  .card-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { gap: 46px; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 44px; }
  .visual-main { min-height: 430px; }
}
@media (max-width: 720px) {
  .page-hero { padding: 72px 0 66px; }
  .content-section { padding: 66px 0 78px; }
  .card-grid, .post-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 34px; padding: 62px 0; }
  .service-detail:nth-child(even) .service-detail-heading { order: initial; }
  .service-scope { padding: 30px 26px; }
  .contact-form-card { padding: 24px; }
  .visual-story { padding-bottom: 64px; }
  .visual-story-grid { grid-template-columns: 1fr; }
  .visual-main { min-height: 330px; }
  .visual-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .visual-stack figure { min-height: 210px; }
  .image-band { height: 390px; }
  .image-band-caption { bottom: 26px; }
  .about-photo, .about-photo img { min-height: 320px; }
}
