/*
 * Portal content layout
 * The navigation is fixed by the theme; the images and copy below come from
 * CMS blocks so editors can replace them without rebuilding the layout.
 */
:root {
  --portal-red: #b51d29;
  --portal-red-deep: #83101a;
  --portal-ink: #1e2227;
  --portal-muted: #6f777f;
  --portal-line: #e5e7e9;
  --portal-surface: #f7f8f8;
  --portal-max: 1320px;
}

body { background: #fff; }
.brand-shell,.nav-shell { width: min(calc(100% - 64px),var(--portal-max)); }
.site-header { background:#fff; }
.brand-bar { background:#fff; }
.brand-copy strong { color:var(--portal-ink); }
.header-service strong { color:var(--portal-red); }
.nav-bar { background:linear-gradient(100deg,var(--portal-red-deep),var(--portal-red) 54%,#cf3440); }
.site-nav a,.site-nav a[data-page-link] { letter-spacing:.08em; }
.site-nav a.is-active,.site-nav a[data-page-link].is-active { background:rgba(0,0,0,.1); }

/* Independently editable hero for every non-home page. */
.page-banner {
  position:relative;
  min-height:430px;
  display:grid;
  place-items:center;
  overflow:hidden;
  isolation:isolate;
  color:#fff;
  background:#32070c;
}
.page-banner::before {
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  background:linear-gradient(90deg,rgba(61,8,15,.85) 0%,rgba(125,15,27,.7) 48%,rgba(18,20,24,.55) 100%);
}
.page-banner::after {
  content:"";
  position:absolute;
  z-index:2;
  right:max(5.5vw,48px);
  bottom:51px;
  width:82px;
  height:3px;
  background:#fff;
  box-shadow:-106px 0 0 rgba(255,255,255,.56),-212px 0 0 rgba(255,255,255,.23);
}
.page-banner-media { position:absolute; z-index:0; inset:0; }
.page-banner-media::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(181,29,41,.13),transparent 58%); }
.page-banner-media img { width:100%; height:100%; object-fit:cover; object-position:center 54%; filter:saturate(.78) contrast(1.05) brightness(.7); }
.page-banner-copy { position:relative; z-index:3; width:min(calc(100% - 48px),900px); margin-top:10px; text-align:center; }
.page-banner-eyebrow { margin:0 0 16px; color:rgba(255,255,255,.8); font:700 .75rem/1.2 Arial,sans-serif; letter-spacing:.27em; }
.page-banner h1 { margin:0; color:#fff; font-size:clamp(2.6rem,4.6vw,4.65rem); line-height:1.12; font-weight:800; letter-spacing:.07em; white-space:normal; text-shadow:0 5px 28px rgba(0,0,0,.18); }
.page-banner-lead { max-width:670px; margin:21px auto 0; color:rgba(255,255,255,.87); font-size:1rem; line-height:1.92; }

/* Shared editorial rhythm. */
.about-section,.strength-section,.team-profile-section,.qualification-section,.culture-section,.testing-section,.review-detail-section,.services-section,.contact-section,.guide-section,.cases-section,.news-section,.recruitment-section {
  padding-right:max(32px,calc((100% - var(--portal-max))/2));
  padding-left:max(32px,calc((100% - var(--portal-max))/2));
}
.page-heading { max-width:760px; margin-right:auto; margin-left:auto; text-align:center; }
.page-heading h2 { color:var(--portal-ink); font-weight:800; letter-spacing:.04em; }
.page-heading h2::after { margin-right:auto; margin-left:auto; background:var(--portal-red); }
.page-heading > p:last-child { color:var(--portal-muted); }

/* About page: an editorial image-and-copy module, not a free-positioned canvas. */
.about-section {
  min-height:0;
  padding-top:94px;
  padding-bottom:90px;
  grid-template-columns:minmax(0,1fr) minmax(380px,.92fr);
  gap:clamp(42px,7vw,118px);
  background:#fff;
}
.about-main { max-width:650px; }
.about-main .section-index b,.about-main .section-index span { color:#adb4bb; }
.about-main h2 { color:var(--portal-ink); }
.about-main h2::after { content:""; display:block; width:42px; height:3px; margin-top:22px; background:var(--portal-red); }
.about-main p { color:var(--portal-muted); }
.about-facts { border-color:var(--portal-line); }
.about-facts span { border-color:var(--portal-line); }
.about-facts b { color:var(--portal-red); }
.outline-link { color:var(--portal-red); border-color:var(--portal-red); }
.outline-link:hover { color:#fff; background:var(--portal-red); }
.about-visual { min-height:390px; padding:0; overflow:hidden; background:#f2f2f2; box-shadow:0 19px 48px rgba(31,34,37,.12); }
.about-visual::before,.about-visual::after { display:none; }
.about-visual img { width:100%; height:100%; min-height:390px; object-fit:cover; }
.side-motto { grid-column:1 / -1; margin:0; padding:28px 0 0; display:flex; align-items:flex-end; justify-content:space-between; gap:28px; color:var(--portal-ink); border-top:1px solid var(--portal-line); }
.side-motto strong { font-size:clamp(1.45rem,2.25vw,2.1rem); line-height:1.32; }
.side-motto small { color:#8a9198; font:.68rem/1.7 Arial,sans-serif; letter-spacing:.11em; text-align:right; }
.side-motto i { width:44px; height:3px; margin:0; flex:0 0 44px; background:var(--portal-red); }

/* Project cases: every card has a CMS replaceable cover, copy and optional link. */
.cases-section { padding-top:100px; padding-bottom:108px; background:var(--portal-surface); }
.cases-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.case-card {
  min-height:0;
  padding:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  color:var(--portal-ink);
  border:1px solid var(--portal-line);
  border-top:0;
  background:#fff;
  box-shadow:0 12px 28px rgba(30,34,38,.055);
  transition:transform .25s ease,box-shadow .25s ease;
}
.case-card:hover { transform:translateY(-7px); box-shadow:0 21px 42px rgba(30,34,38,.12); }
.case-media { position:relative; display:block; aspect-ratio:16 / 10; overflow:hidden; background:#e8eaec; }
.case-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 52%,rgba(19,22,27,.34)); pointer-events:none; }
.case-media img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.case-card:hover .case-media img { transform:scale(1.045); }
.case-index { position:absolute; z-index:1; right:18px; bottom:15px; color:rgba(255,255,255,.92); font:800 .82rem/1 Arial,sans-serif; letter-spacing:.12em; }
.case-copy { min-height:236px; padding:26px 27px 23px; display:flex; flex-direction:column; align-items:flex-start; }
.case-category,.case-meta,.case-action { display:block; font:800 .68rem/1.45 Arial,sans-serif; letter-spacing:.12em; }
.case-category { color:var(--portal-red); }
.case-copy h3 { margin:12px 0 12px; color:var(--portal-ink); font-size:1.24rem; line-height:1.45; }
.case-summary { display:block; color:var(--portal-muted); font-size:.88rem; line-height:1.86; }
.case-meta { margin-top:auto; padding-top:17px; color:#8c949b; }
.case-action { margin-top:12px; color:var(--portal-red); }

/* News: image-led editorial rows, with each datum managed through the list editor. */
.news-section { padding-top:100px; padding-bottom:108px; background:#fff; }
.news-list { display:grid; gap:15px; border-top:0; }
.news-item {
  min-height:164px;
  padding:12px 24px 12px 12px;
  display:grid;
  grid-template-columns:230px minmax(0,1fr) 34px;
  align-items:center;
  column-gap:27px;
  color:var(--portal-ink);
  border:1px solid var(--portal-line);
  background:#fff;
  transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.news-item::before { display:none; }
.news-item:hover { padding-left:12px; background:#fff; border-color:#dfadb2; box-shadow:0 14px 30px rgba(68,25,30,.09); transform:translateY(-2px); }
.news-media { display:block; align-self:stretch; min-height:138px; overflow:hidden; background:#edf0f1; }
.news-media img { width:100%; height:100%; object-fit:cover; transition:transform .38s ease; }
.news-item:hover .news-media img { transform:scale(1.035); }
.news-copy { min-width:0; padding:4px 0; }
.news-date,.news-category,.news-summary { display:block; }
.news-date { margin:0 0 9px; color:var(--portal-red); font:800 .75rem/1.25 Arial,sans-serif; letter-spacing:.08em; }
.news-category { margin-bottom:7px; color:#959ca2; font:700 .65rem/1.25 Arial,sans-serif; letter-spacing:.13em; }
.news-item h3 { margin:0 0 9px; color:var(--portal-ink); font-size:1.16rem; line-height:1.45; }
.news-summary { color:var(--portal-muted); font-size:.87rem; line-height:1.76; }
.news-arrow { position:static; display:grid; place-items:center; color:var(--portal-red); font:300 1.75rem/1 Arial,sans-serif; transform:none; transition:transform .2s ease; }
.news-item:hover .news-arrow { transform:translateX(5px); }

/* Recruitment combines a replaceable feature image/copy row with job cards. */
.recruitment-section { padding-top:100px; padding-bottom:108px; background:var(--portal-surface); }
.recruitment-section::before { display:none; }
.recruitment-layout { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr); min-height:310px; margin-bottom:34px; overflow:hidden; border:1px solid var(--portal-line); background:#fff; box-shadow:0 14px 32px rgba(40,30,32,.07); }
.recruitment-visual { min-height:310px; overflow:hidden; background:#e8eaec; }
.recruitment-visual img { width:100%; height:100%; object-fit:cover; }
.recruitment-intro { padding:clamp(32px,4.2vw,64px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; background:linear-gradient(135deg,#fff,#fff8f8); }
.recruitment-intro p { max-width:360px; margin:0; color:var(--portal-muted); font-size:.96rem; line-height:1.95; }
.recruitment-cta { min-width:166px; margin-top:27px; padding:13px 20px; display:inline-flex; align-items:center; justify-content:space-between; gap:18px; color:#fff; background:var(--portal-red); box-shadow:0 9px 18px rgba(181,29,41,.18); font-size:.88rem; font-weight:700; letter-spacing:.05em; transition:transform .2s ease,background .2s ease; }
.recruitment-cta:hover { color:#fff; background:var(--portal-red-deep); transform:translateY(-2px); }
.jobs-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.job-card { min-height:0; padding:28px 30px 25px; border-left-color:var(--portal-red); }
.job-action { display:inline-flex; margin-top:18px; color:var(--portal-red); font-size:.82rem; font-weight:700; }

/* Use the same restrained, red-accented language for the homepage and about sections. */
.services-section,.testing-section { background:#fff; }
.review-detail-section,.strength-section,.culture-section { background:var(--portal-surface); }

/* Service guide: a replaceable editorial image sits beside a fixed, clear flow.
   Editors only need to replace the image and the four pieces of copy. */
.guide-section { position:relative; padding-top:100px; padding-bottom:108px; overflow:hidden; background:#f7f8f8; }
.guide-section::before { top:-170px; right:-220px; width:560px; height:560px; border-color:rgba(181,29,41,.12); box-shadow:0 0 0 55px rgba(181,29,41,.035),0 0 0 110px rgba(181,29,41,.018); }
.guide-layout { position:relative; z-index:1; display:grid; grid-template-columns:minmax(280px,.77fr) minmax(0,1.23fr); overflow:hidden; border:1px solid var(--portal-line); background:#fff; box-shadow:0 18px 42px rgba(45,31,34,.08); }
.guide-visual { position:relative; min-height:444px; overflow:hidden; background:#25292e; }
.guide-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(48,14,19,.08),rgba(54,11,16,.66)); }
.guide-visual img { width:100%; height:100%; object-fit:cover; filter:saturate(.85) contrast(1.04); }
.guide-visual span { position:absolute; z-index:1; right:28px; bottom:25px; color:#fff; font:800 .68rem/1 Arial,sans-serif; letter-spacing:.22em; }
.guide-steps { position:static; z-index:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:0; background:transparent; box-shadow:none; }
.guide-steps article { min-height:222px; padding:36px 34px 28px; border:0; border-bottom:1px solid var(--portal-line); border-left:1px solid var(--portal-line); }
.guide-steps article:nth-child(3),.guide-steps article:nth-child(4) { border-bottom:0; }
.guide-steps span { margin-bottom:36px; color:var(--portal-red); font-size:1.7rem; }
.guide-steps h3 { color:var(--portal-ink); font-size:1.14rem; }
.guide-steps p { color:var(--portal-muted); }
.guide-cta { position:relative; z-index:1; background:var(--portal-red); }
.guide-cta:hover { background:var(--portal-red-deep); }

/* Contact page: keep contact details compact and legible while making the
   photography independently replaceable in the CMS. */
.contact-section { min-height:0; padding-top:100px; padding-bottom:104px; display:grid; grid-template-columns:minmax(275px,.82fr) minmax(330px,1fr) minmax(190px,.48fr); gap:clamp(30px,4.5vw,76px); align-items:center; border-top:0; background:#fff; }
.contact-visual { position:relative; min-height:350px; overflow:hidden; background:#22272c; box-shadow:0 16px 38px rgba(31,34,37,.12); }
.contact-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(145deg,rgba(113,14,25,.08),rgba(42,8,13,.55)); }
.contact-visual img { width:100%; height:100%; object-fit:cover; filter:saturate(.78) contrast(1.05); }
.contact-visual span { position:absolute; z-index:1; left:25px; bottom:22px; color:#fff; font:800 .65rem/1 Arial,sans-serif; letter-spacing:.19em; }
.contact-title { align-self:center; }
.contact-title .section-index b,.contact-title .section-index span { color:#a5acb3; }
.contact-title h2 { color:var(--portal-ink); font-size:clamp(2.25rem,3.4vw,3.4rem); }
.contact-title h2::after { content:""; display:block; width:42px; height:3px; margin-top:21px; background:var(--portal-red); }
.contact-details { gap:23px; }
.contact-phones { gap:17px; }
.contact-phones a { color:var(--portal-ink); font-size:1.42rem; }
.contact-phones .phone-icon { background:var(--portal-red); }
.contact-address { color:var(--portal-muted); }
.contact-address b { margin-bottom:5px; color:var(--portal-ink); letter-spacing:.08em; }
.qr-block { min-height:180px; padding:0 0 0 27px; display:grid; grid-template-columns:1fr; gap:14px; align-content:center; border-left:1px solid var(--portal-line); }
.qr-block img { width:128px; height:128px; padding:7px; border:1px solid var(--portal-line); background:#fff; }
.qr-block p { color:var(--portal-muted); font-size:.82rem; }

@media (max-width:1120px) {
  .cases-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .about-section { grid-template-columns:minmax(0,1fr) minmax(320px,.78fr); gap:42px; }
  .news-item { grid-template-columns:194px minmax(0,1fr) 28px; column-gap:20px; }
  .guide-layout { grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr); }
  .guide-steps article { padding:31px 27px 24px; }
  .contact-section { grid-template-columns:minmax(245px,.76fr) minmax(300px,1fr); }
  .contact-visual { grid-row:1 / span 2; min-height:338px; }
  .qr-block { grid-column:2; grid-template-columns:auto 1fr; align-items:center; }
}

@media (max-width:860px) {
  .brand-shell,.nav-shell { width:calc(100% - 32px); }
  .page-banner { min-height:330px; }
  .page-banner-copy { width:calc(100% - 40px); margin-top:0; }
  .page-banner h1 { font-size:clamp(2.25rem,9vw,3.35rem); }
  .page-banner-lead { font-size:.9rem; }
  .page-banner::after { right:28px; bottom:28px; transform:scale(.65); transform-origin:right bottom; }
  .about-section,.strength-section,.team-profile-section,.qualification-section,.culture-section,.testing-section,.review-detail-section,.services-section,.contact-section,.guide-section,.cases-section,.news-section,.recruitment-section { padding-right:30px; padding-left:30px; }
  .about-section { grid-template-columns:1fr; padding-top:70px; padding-bottom:68px; }
  .about-visual { grid-row:auto; min-height:300px; }
  .about-visual img { min-height:300px; }
  .side-motto { display:grid; grid-template-columns:1fr auto; }
  .side-motto small { text-align:left; }
  .side-motto i { grid-column:1; }
  .cases-section,.news-section,.recruitment-section { padding-top:72px; padding-bottom:76px; }
  .cases-grid { grid-template-columns:1fr; }
  .case-copy { min-height:0; }
  .news-item { grid-template-columns:180px minmax(0,1fr) 24px; min-height:142px; }
  .news-media { min-height:118px; }
  .recruitment-layout { grid-template-columns:1fr; }
  .recruitment-visual { min-height:260px; }
  .jobs-list { grid-template-columns:1fr; }
  .guide-section { padding-top:72px; padding-bottom:76px; }
  .guide-layout { grid-template-columns:1fr; }
  .guide-visual { min-height:270px; }
  .guide-steps article { min-height:194px; padding:29px 26px 24px; }
  .contact-section { padding-top:72px; padding-bottom:76px; grid-template-columns:1fr 1fr; gap:30px; }
  .contact-visual { grid-column:1 / -1; grid-row:auto; min-height:285px; }
  .contact-title { align-self:end; }
  .qr-block { grid-column:auto; min-height:0; padding-left:23px; }
}

@media (max-width:560px) {
  .page-banner { min-height:280px; }
  .page-banner-eyebrow { margin-bottom:10px; font-size:.62rem; }
  .page-banner h1 { font-size:2.1rem; }
  .page-banner-lead { display:none; }
  .about-section,.strength-section,.team-profile-section,.qualification-section,.culture-section,.testing-section,.review-detail-section,.services-section,.contact-section,.guide-section,.cases-section,.news-section,.recruitment-section { padding-right:20px; padding-left:20px; }
  .about-section { padding-top:56px; padding-bottom:56px; }
  .about-visual,.about-visual img { min-height:240px; }
  .side-motto { grid-template-columns:1fr; gap:14px; }
  .side-motto small { font-size:.62rem; }
  .cases-section,.news-section,.recruitment-section { padding-top:58px; padding-bottom:58px; }
  .case-copy { padding:23px 22px 21px; }
  .news-list { gap:12px; }
  .news-item { padding:0; grid-template-columns:1fr; gap:0; overflow:hidden; }
  .news-item:hover { padding-left:0; }
  .news-media { min-height:188px; }
  .news-copy { padding:20px 20px 16px; }
  .news-arrow { position:absolute; right:18px; bottom:20px; }
  .news-summary { padding-right:28px; }
  .recruitment-visual { min-height:216px; }
  .recruitment-intro { padding:30px 24px; }
  .guide-section { padding-top:58px; padding-bottom:58px; }
  .guide-visual { min-height:225px; }
  .guide-steps { grid-template-columns:1fr; }
  .guide-steps article,.guide-steps article:nth-child(3),.guide-steps article:nth-child(4) { min-height:0; padding:25px 22px; border-bottom:0; border-left:0; border-top:1px solid var(--portal-line); }
  .guide-steps article:first-child { border-top:0; }
  .guide-steps span { margin-bottom:18px; }
  .contact-section { padding-top:58px; padding-bottom:60px; grid-template-columns:1fr; gap:27px; }
  .contact-visual { min-height:232px; }
  .contact-title h2 { font-size:2.25rem; }
  .contact-phones a { font-size:1.3rem; }
  .qr-block { padding:22px 0 0; grid-template-columns:auto 1fr; border-top:1px solid var(--portal-line); border-left:0; }
  .qr-block img { width:108px; height:108px; }
}

/* --------------------------------------------------------------------------
   Reference-aligned seven-page framework

   The reference site uses a calm white masthead, a single strong colour for
   navigation and a full-width visual introduction for every page.  These
   final overrides make that hierarchy consistent while leaving every image
   and piece of copy bound to its existing CMS field.                             */
:root { --portal-header:146px; --portal-max:1360px; }
main { padding-top:var(--portal-header); }
.site-header { height:var(--portal-header); border:0; background:#fff; box-shadow:0 2px 18px rgba(56,26,31,.08); backdrop-filter:none; }
.site-header.is-scrolled { box-shadow:0 7px 26px rgba(56,26,31,.15); }
.brand-bar { height:91px; }
.brand-shell { width:min(calc(100% - 64px),var(--portal-max)); height:100%; display:flex; align-items:center; justify-content:space-between; }
.brand { gap:14px; }
.brand-mark { width:59px; height:62px; flex-basis:59px; }
.brand-copy strong { color:#20242a; font-size:1.17rem; font-weight:800; letter-spacing:.025em; }
.brand-copy small { margin-top:5px; color:#7e858c; font-size:.53rem; letter-spacing:.055em; }
.header-service { min-width:230px; display:flex; flex-direction:row; align-items:center; justify-content:flex-end; gap:10px; color:#777f87; }
.header-service span { padding-right:10px; border-right:1px solid #d8dbdf; font-size:.7rem; letter-spacing:.1em; }
.header-service strong { color:var(--portal-red); font:700 1.18rem/1 Arial,sans-serif; letter-spacing:.04em; }
.nav-bar { height:55px; background:linear-gradient(90deg,#8b111d 0%,#b61c2a 46%,#d1303d 100%); }
.nav-shell { width:min(calc(100% - 64px),var(--portal-max)); height:100%; }
.site-nav { width:100%; height:100%; justify-content:stretch; gap:0; }
.site-nav a,.site-nav a[data-page-link] { min-width:0; flex:1 1 0; justify-content:center; color:rgba(255,255,255,.96); font-size:.88rem; font-weight:700; letter-spacing:.035em; }
.site-nav a::after { right:50%; bottom:0; left:50%; height:3px; background:#fff; }
.site-nav a:hover,.site-nav a[data-page-link]:hover,.site-nav a.is-active,.site-nav a[data-page-link].is-active { color:#fff; background:rgba(255,255,255,.12); }
.site-nav a:hover::after,.site-nav a.is-active::after { right:20%; left:20%; }

/* The homepage shares the reference site's image-led page introduction rather
   than using a separate visual language.  Its title and photo remain ordinary
   CMS fields, so changing either never affects the composition. */
.hero { height:clamp(530px,48vw,660px); min-height:530px; padding:0; display:grid; place-items:center; background:#2b0b10; isolation:isolate; }
.hero-drawing,.hero-slash { display:none; }
.hero-visual { z-index:0; inset:0; clip-path:none; background:#3b0d14; }
.hero-visual::before { display:none; }
.hero-visual::after { inset:0; height:auto; background:linear-gradient(90deg,rgba(50,7,14,.76) 0%,rgba(100,13,25,.58) 47%,rgba(14,17,21,.48) 100%); }
.hero-visual img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 54%; filter:saturate(.82) contrast(1.04) brightness(.75); }
.hero-copy { z-index:3; width:min(calc(100% - 48px),920px); height:auto; padding:54px 20px; align-items:center; justify-content:center; text-align:center; color:#fff; }
.hero-copy .eyebrow { margin:0 0 18px; color:rgba(255,255,255,.8); font-size:.73rem; letter-spacing:.27em; }
.hero-copy .eyebrow span { width:46px; margin:0 auto 14px; background:#fff; }
.hero-brand { margin:0 0 16px; color:#fff; font-size:clamp(1.85rem,3.25vw,2.8rem); letter-spacing:.12em; text-shadow:0 2px 18px rgba(0,0,0,.18); }
.hero h1 { margin:0; color:#fff; font-size:clamp(2.65rem,5vw,4.65rem); line-height:1.16; letter-spacing:.06em; white-space:normal; text-shadow:0 4px 26px rgba(0,0,0,.22); }
.hero-lead { margin:23px 0 0; color:rgba(255,255,255,.88); font-size:.92rem; letter-spacing:.22em; }
.scroll-cue { margin-top:37px; color:rgba(255,255,255,.83); }
.scroll-cue i { border-color:rgba(255,255,255,.7); }
.hero-slogan { top:auto; right:max(42px,calc((100vw - var(--portal-max))/2)); bottom:43px; padding-right:14px; color:rgba(255,255,255,.86); border-right-color:rgba(255,255,255,.7); }
.hero-slogan span,.hero-slogan strong { font-size:.82rem; }

/* Give all detail pages the same photographic masthead and a clear separation
   from their editable content modules. */
.page-banner { min-height:390px; }
.page-banner::before { background:linear-gradient(90deg,rgba(55,8,15,.78) 0%,rgba(119,16,27,.61) 46%,rgba(18,20,24,.48) 100%); }
.page-banner-media img { filter:saturate(.8) contrast(1.04) brightness(.72); }
.page-banner-copy { width:min(calc(100% - 48px),920px); }
.page-banner h1 { font-size:clamp(2.5rem,4.4vw,4.35rem); }
.page-banner-lead { max-width:650px; }

/* A consistent editorial heading supports the simple image-and-copy modules
   used on projects, news, guides and recruitment. */
.page-heading { max-width:780px; margin:0 auto 48px; }
.page-heading h2 { margin-bottom:17px; font-size:clamp(2rem,3.2vw,3.2rem); }
.page-heading h2::after { width:42px; height:3px; margin-top:21px; }
.page-heading > p:last-child { max-width:690px; margin-right:auto; margin-left:auto; font-size:.95rem; line-height:1.9; }
.credential-strip { min-height:122px; border-bottom:1px solid var(--portal-line); box-shadow:0 11px 28px rgba(28,31,36,.06); }
.credential-strip > div { min-height:122px; }
.credential-strip strong { color:var(--portal-ink); font-size:.89rem; }

/* Home content modules retain their own data fields, but now follow the same
   alternating white / pale-gray rhythm as the reference portal. */
.services-section { min-height:330px; height:auto; }
.services-panel { padding-top:45px; padding-bottom:40px; }
.services-visual img { opacity:.48; filter:grayscale(.35) contrast(.88) brightness(1.12); transform:none; }
.services-caption { color:var(--portal-ink); }
.review-detail-section { padding-top:86px; padding-bottom:86px; background:#25282d; }
.strength-section { min-height:360px; background:#fff; }
.team-profile-section { background:var(--portal-surface); }
.qualification-section { min-height:640px; background:#fff; }
.testing-section { min-height:570px; background:#25282d; }
.culture-section { min-height:420px; background:var(--portal-surface); }

/* Standard card/list modules. */
.cases-section,.news-section,.recruitment-section,.guide-section { padding-top:96px; padding-bottom:102px; }
.cases-section { background:#f6f7f8; }
.case-card { border-top:3px solid var(--portal-red); }
.case-media { aspect-ratio:16 / 9; }
.case-copy { min-height:221px; }
.news-section { background:#fff; }
.news-list { max-width:1120px; margin:auto; }
.news-item { min-height:170px; }
.guide-section { background:#f6f7f8; }
.guide-layout { max-width:1120px; margin:auto; }
.recruitment-section { background:#f6f7f8; }
.recruitment-layout,.jobs-list { max-width:1120px; margin-right:auto; margin-left:auto; }
.contact-section { max-width:none; }
.site-footer { background:#1c2024; }

@media (max-width:860px) {
  :root { --portal-header:74px; }
  .site-header { height:var(--portal-header); }
  .brand-bar { height:74px; }
  .brand-shell { width:calc(100% - 32px); }
  .brand-mark { width:48px; height:52px; flex-basis:48px; }
  .brand-copy strong { font-size:.8rem; }
  .brand-copy small,.header-service { display:none; }
  .nav-bar { height:0; background:none; }
  .nav-shell { width:100%; justify-content:flex-end; }
  .menu-toggle { position:absolute; z-index:5; top:16px; right:14px; display:block; color:var(--portal-red); }
  .site-nav { position:absolute; top:74px; right:0; left:0; width:auto; height:auto; padding:12px 18px 18px; display:none; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:var(--portal-red-deep); box-shadow:0 15px 30px rgba(54,11,16,.28); }
  .site-nav.is-open { display:grid; }
  .site-nav a,.site-nav a[data-page-link] { min-height:48px; padding:10px; justify-content:center; font-size:.85rem; background:rgba(255,255,255,.055); }
  .site-nav a::after { display:none; }
  .hero { height:510px; min-height:510px; }
  .hero-copy { width:calc(100% - 34px); padding:38px 12px 46px; }
  .hero h1 { font-size:clamp(2.22rem,8.7vw,3.2rem); }
  .hero-slogan { right:22px; bottom:26px; }
  .page-banner { min-height:320px; }
  .cases-section,.news-section,.recruitment-section,.guide-section { padding-top:70px; padding-bottom:74px; }
}

@media (max-width:560px) {
  .hero { height:470px; min-height:470px; }
  .hero-copy .eyebrow { margin-bottom:13px; font-size:.61rem; }
  .hero-brand { margin-bottom:13px; font-size:1.58rem; }
  .hero h1 { font-size:2.05rem; }
  .hero-lead { margin-top:17px; font-size:.76rem; letter-spacing:.15em; }
  .scroll-cue { margin-top:28px; }
  .hero-slogan { display:none; }
  .page-banner { min-height:270px; }
  .page-heading { margin-bottom:34px; }
  .cases-section,.news-section,.recruitment-section,.guide-section { padding-top:56px; padding-bottom:60px; }
  .credential-strip > div { min-height:88px; }
}

/* Reusable, CMS-bound portal modules.  They intentionally use only the
   image/text/link fields exposed in the editor, so a future update is a
   content replacement rather than a layout rebuild. */
.home-highlights-section,.news-feature-section,.guide-materials-section,.career-lead-section,.contact-map-section { padding-right:max(32px,calc((100% - var(--portal-max))/2)); padding-left:max(32px,calc((100% - var(--portal-max))/2)); }

.home-highlights-section { padding-top:96px; padding-bottom:104px; background:#fff; }
.home-highlights-grid { max-width:var(--portal-max); margin:auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.highlight-card { min-height:0; display:flex; flex-direction:column; overflow:hidden; color:var(--portal-ink); border:1px solid var(--portal-line); background:#fff; box-shadow:0 12px 28px rgba(30,34,38,.055); transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease; }
.highlight-card:hover { color:var(--portal-ink); border-color:#dfb4b8; box-shadow:0 22px 42px rgba(55,22,27,.13); transform:translateY(-6px); }
.highlight-media { position:relative; display:block; aspect-ratio:16 / 9.4; overflow:hidden; background:#e9ecee; }
.highlight-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(26,28,32,.28)); }
.highlight-media img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.highlight-card:hover .highlight-media img { transform:scale(1.045); }
.highlight-copy { min-height:224px; padding:26px 28px 24px; display:flex; flex-direction:column; align-items:flex-start; }
.highlight-eyebrow,.highlight-summary,.highlight-cta { display:block; }
.highlight-eyebrow { color:var(--portal-red); font:800 .66rem/1.45 Arial,sans-serif; letter-spacing:.13em; }
.highlight-copy h3 { margin:11px 0 11px; color:var(--portal-ink); font-size:1.25rem; line-height:1.45; }
.highlight-summary { color:var(--portal-muted); font-size:.88rem; line-height:1.86; }
.highlight-cta { margin-top:auto; padding-top:18px; color:var(--portal-red); font:800 .72rem/1.4 Arial,sans-serif; letter-spacing:.08em; }

.news-feature-section { padding-top:96px; padding-bottom:104px; background:#f6f7f8; }
.news-feature-layout { max-width:1120px; margin:auto; display:grid; grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr); overflow:hidden; border:1px solid var(--portal-line); background:#fff; box-shadow:0 15px 36px rgba(36,30,31,.075); }
.news-feature-media { min-height:360px; overflow:hidden; background:#e9ecee; }
.news-feature-media img { width:100%; height:100%; object-fit:cover; }
.news-feature-copy { padding:clamp(34px,5vw,62px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; background:linear-gradient(135deg,#fff,#fff7f7); }
.news-feature-meta { display:flex; flex-wrap:wrap; gap:11px; align-items:center; }
.news-feature-date { color:var(--portal-red); font:800 .74rem/1.25 Arial,sans-serif; letter-spacing:.07em; }
.news-feature-category { padding-left:11px; color:#8c949b; border-left:1px solid #d8dcdf; font:700 .65rem/1.25 Arial,sans-serif; letter-spacing:.12em; }
.news-feature-copy h3 { max-width:440px; margin:17px 0 14px; color:var(--portal-ink); font-size:clamp(1.5rem,2.25vw,2.2rem); line-height:1.35; }
.news-feature-summary { max-width:420px; margin:0; color:var(--portal-muted); font-size:.93rem; line-height:1.92; }
.news-feature-cta,.career-lead-cta,.contact-map-cta { min-width:164px; margin-top:26px; padding:13px 20px; display:inline-flex; justify-content:space-between; align-items:center; gap:18px; color:#fff; background:var(--portal-red); box-shadow:0 9px 18px rgba(181,29,41,.18); font-size:.82rem; font-weight:800; letter-spacing:.06em; transition:background .2s ease,transform .2s ease; }
.news-feature-cta:hover,.career-lead-cta:hover,.contact-map-cta:hover { color:#fff; background:var(--portal-red-deep); transform:translateY(-2px); }

.guide-materials-section { padding-top:96px; padding-bottom:104px; background:#fff; }
.guide-materials-layout { max-width:1120px; margin:auto; display:grid; grid-template-columns:minmax(280px,.74fr) minmax(0,1.26fr); overflow:hidden; border:1px solid var(--portal-line); background:#fff; box-shadow:0 15px 38px rgba(36,30,31,.07); }
.guide-materials-visual { min-height:430px; overflow:hidden; background:#2b2e33; }
.guide-materials-visual img { width:100%; height:100%; object-fit:cover; filter:saturate(.78) contrast(1.04); }
.guide-materials-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; }
.guide-material-card { min-height:215px; padding:31px 32px 26px; display:flex; flex-direction:column; align-items:flex-start; color:var(--portal-ink); border-bottom:1px solid var(--portal-line); border-left:1px solid var(--portal-line); transition:background .2s ease; }
.guide-material-card:hover { color:var(--portal-ink); background:#fff8f8; }
.guide-material-card:nth-last-child(-n+2) { border-bottom:0; }
.guide-material-category { display:block; color:var(--portal-red); font:800 .65rem/1.4 Arial,sans-serif; letter-spacing:.13em; }
.guide-material-card h3 { margin:12px 0 10px; color:var(--portal-ink); font-size:1.08rem; line-height:1.45; }
.guide-material-summary { margin:0; color:var(--portal-muted); font-size:.85rem; line-height:1.82; }
.guide-material-cta { display:block; margin-top:auto; padding-top:15px; color:var(--portal-red); font:800 .7rem/1.4 Arial,sans-serif; letter-spacing:.06em; }

.career-lead-section { padding-top:96px; padding-bottom:104px; background:#fff; }
.career-lead-layout { max-width:1120px; margin:auto; display:grid; grid-template-columns:minmax(0,.92fr) minmax(330px,1.08fr); overflow:hidden; border:1px solid var(--portal-line); background:#fff; box-shadow:0 14px 34px rgba(33,31,31,.065); }
.career-lead-copy { padding:clamp(36px,5vw,67px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; background:linear-gradient(135deg,#fff,#fff8f8); }
.career-lead-copy h2 { margin:0 0 18px; color:var(--portal-ink); font-size:clamp(2rem,3.05vw,3.05rem); line-height:1.22; }
.career-lead-copy > p:last-of-type { margin:0; color:var(--portal-muted); font-size:.94rem; line-height:1.92; }
.career-lead-media { min-height:420px; overflow:hidden; background:#e8ebed; }
.career-lead-media img { width:100%; height:100%; object-fit:cover; }
.career-lead-points { width:100%; margin-top:26px; display:grid; gap:0; border-top:1px solid var(--portal-line); }
.career-lead-point { padding:13px 0; display:grid; grid-template-columns:100px 1fr; gap:14px; border-bottom:1px solid var(--portal-line); }
.career-lead-point b { color:var(--portal-ink); font-size:.86rem; }
.career-lead-point span { color:var(--portal-muted); font-size:.8rem; line-height:1.65; }

.contact-map-section { padding-top:96px; padding-bottom:104px; background:#f6f7f8; }
.contact-map-layout { max-width:1120px; margin:auto; display:grid; grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr); overflow:hidden; border:1px solid var(--portal-line); background:#fff; box-shadow:0 14px 36px rgba(33,31,31,.07); }
.contact-map-media { min-height:370px; overflow:hidden; background:#e8ebed; }
.contact-map-media img { width:100%; height:100%; object-fit:cover; filter:saturate(.84) contrast(1.03); }
.contact-map-copy { padding:clamp(35px,5vw,62px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.contact-map-copy h2 { margin:0 0 16px; color:var(--portal-ink); font-size:clamp(1.9rem,2.8vw,2.8rem); line-height:1.28; }
.contact-map-copy > p:last-of-type { margin:0; color:var(--portal-muted); font-size:.92rem; line-height:1.9; }
.contact-map-address { width:100%; margin-top:24px; padding:15px 0; color:var(--portal-muted); border-top:1px solid var(--portal-line); border-bottom:1px solid var(--portal-line); font-size:.84rem; line-height:1.75; }
.contact-map-address b { display:block; margin-bottom:3px; color:var(--portal-ink); font-size:.72rem; letter-spacing:.08em; }

@media (max-width:860px) {
  .home-highlights-section,.news-feature-section,.guide-materials-section,.career-lead-section,.contact-map-section { padding-right:30px; padding-left:30px; }
  .home-highlights-section,.news-feature-section,.guide-materials-section,.career-lead-section,.contact-map-section { padding-top:70px; padding-bottom:74px; }
  .home-highlights-grid { grid-template-columns:1fr; max-width:560px; }
  .highlight-copy { min-height:0; }
  .news-feature-layout,.career-lead-layout,.contact-map-layout { grid-template-columns:1fr; }
  .news-feature-media,.career-lead-media,.contact-map-media { min-height:270px; }
  .guide-materials-layout { grid-template-columns:1fr; }
  .guide-materials-visual { min-height:270px; }
}

@media (max-width:560px) {
  .home-highlights-section,.news-feature-section,.guide-materials-section,.career-lead-section,.contact-map-section { padding-right:20px; padding-left:20px; }
  .home-highlights-section,.news-feature-section,.guide-materials-section,.career-lead-section,.contact-map-section { padding-top:56px; padding-bottom:60px; }
  .highlight-copy { padding:23px 22px 21px; }
  .news-feature-media,.career-lead-media,.contact-map-media,.guide-materials-visual { min-height:220px; }
  .news-feature-copy,.career-lead-copy,.contact-map-copy { padding:30px 24px; }
  .guide-materials-list { grid-template-columns:1fr; }
  .guide-material-card,.guide-material-card:nth-last-child(-n+2) { min-height:0; padding:25px 22px; border-bottom:0; border-left:0; border-top:1px solid var(--portal-line); }
  .guide-material-card:first-child { border-top:0; }
  .career-lead-point { grid-template-columns:1fr; gap:5px; }
}
