/* ==========================================================================
   IRS Group stylesheet
   Design system: industrial / editorial, light and airy. Figtree for
   display type (smooth, open grotesk in sentence case), IBM Plex Sans for
   body/UI.
   ========================================================================== */

@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/Figtree-Variable.woff2') format('woff2-variations'),
       url('../assets/fonts/Figtree-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/IBMPlexSans-Variable.woff2') format('woff2-variations'),
       url('../assets/fonts/IBMPlexSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root{
  /* ---- palette: bold industrial. the logo's three blues, true black, white ---- */
  --ink: #0d1117;
  --brand: #0085c5;        /* logo blue (from IRS Logo MASTER.ai) */
  --brand-btn: #0077b3;    /* logo blue, darkened so white text clears WCAG AA (4.9:1) */
  --brand-deep: #163a56;   /* near-navy, logo blue darkened */
  --brand-light: #54c3f1;  /* logo light blue */
  --brand-pale: #e8f5fc;
  --brand-pale-line: #cbe7f6;
  --accent: #54c3f1;       /* highlight accent */
  --accent-deep: #1d4f7d;  /* accent for text on light backgrounds */
  --black: #05070a;
  --charcoal: #0f151c;     /* card/panel fill on black sections */
  --charcoal-2: #161e27;
  --charcoal-line: rgba(255,255,255,.1);
  --paper: #f6f8fa;
  --paper-2: #eef2f5;
  --white: #ffffff;
  --line: rgba(13,17,23,.12);
  --muted: #5b6672;
  --muted-soft: #7c8794;
  --muted-on-dark: #9fb0c2;

  --font-display: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1200px;
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- reset ---- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea{ font-family: inherit; font-size: 1rem; }
section{ scroll-margin-top: 88px; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px){
  .container{ padding: 0 40px; }
}

.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: var(--ink); padding: 12px 20px; font-weight: 600;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* ---- eyebrow / numbering / section headers ---- */
.eyebrow{
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow .num{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
}
.eyebrow .stripe{
  /* mini IRS mark: the logo's three overlapping circles */
  width: 34px; height: 14px; flex: none;
  background:
    radial-gradient(circle at 7px 7px, var(--brand) 6.5px, transparent 7px),
    radial-gradient(circle at 17px 7px, var(--brand-light) 6.5px, transparent 7px),
    radial-gradient(circle at 27px 7px, #dbf0fa 5.2px, #545454 5.4px 6.6px, transparent 7px);
}
.section.on-dark .eyebrow{ color: var(--brand-light); }
.section.on-dark .eyebrow .num{ color: var(--accent); }
.section.on-dark .eyebrow .stripe{
  background:
    radial-gradient(circle at 7px 7px, var(--brand) 6.5px, transparent 7px),
    radial-gradient(circle at 17px 7px, var(--brand-light) 6.5px, transparent 7px),
    radial-gradient(circle at 27px 7px, #dbf0fa 6.5px, transparent 7px);
}

.section-head{ max-width: 720px; margin-bottom: 48px; }
.section-head h2{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  text-wrap: balance;
}
.section-head p{
  margin-top: 16px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--brand-btn); color: var(--white); }
.btn-primary:hover{ filter: brightness(1.12); transform: translateY(-2px); }
.btn-outline{ background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover{ border-color: var(--brand); background: var(--brand-pale); transform: translateY(-2px); }
.btn-block{ width: 100%; }
.btn svg{ width: 16px; height: 16px; flex: none; }
/* WhatsApp's own dark green: the bright #25D366 fails contrast with white text */
.btn-whatsapp{ background: #008069; color: #fff; }
.btn-whatsapp:hover{ background: #00a884; transform: translateY(-2px); }
.btn-whatsapp svg{ width: 20px; height: 20px; }
.office-card .btn-whatsapp{ align-self: flex-start; margin-top: 22px; }

/* outline/primary variants for use on dark backgrounds */
.on-dark .btn-outline, .btn-outline.on-dark{
  border-color: rgba(255,255,255,.32); color: var(--white); background: rgba(255,255,255,.04);
}
.on-dark .btn-outline:hover, .btn-outline.on-dark:hover{
  border-color: var(--brand-light); background: rgba(84,195,241,.14);
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar{
  background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand-btn) 100%);
  color: var(--white);
  font-size: .82rem;
}
.topbar .container{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 42px;
}
.topbar-left{ display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a{ color: var(--white); transition: color .15s; }
.topbar-left a:hover{ color: var(--brand-pale); text-decoration: underline; text-underline-offset: 3px; }
.topbar-phones{ display: flex; gap: 18px; }
.topbar-phones a{ font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.topbar-phones a span{ font-weight: 400; color: var(--white); opacity: .85; }
.topbar-email{ color: var(--white); font-weight: 500; }
.topbar-email:hover{ color: var(--brand-pale); }
.topbar-social{ display: flex; gap: 14px; }
.topbar-social a{ display: flex; color: var(--white); }
.topbar-social svg{ width: 15px; height: 15px; }
.topbar-social a:hover{ color: var(--brand-pale); }
@media (max-width: 720px){
  .topbar .topbar-email{ display: none; }
}
@media (max-width: 560px){
  .topbar .container{
    height: auto; flex-direction: column; align-items: center;
    gap: 8px; padding-top: 10px; padding-bottom: 10px;
  }
  .topbar-left{ justify-content: center; }
  .topbar-phones{ gap: 12px; flex-wrap: wrap; justify-content: center; }
  .topbar-social{ padding-top: 6px; border-top: 1px solid var(--brand-pale-line); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled{ box-shadow: 0 8px 24px rgba(22,35,46,.06); }
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; gap: 16px;
}
.brand{ display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.brand img{ height: 40px; width: auto; flex: none; }
.brand-word{ line-height: 1; min-width: 0; overflow: hidden; }
.brand-word .g{
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; letter-spacing: .01em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-word .s{
  display: block; font-size: .62rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 420px){
  .brand-word .s{ display: none; }
  .brand img{ height: 32px; }
  .brand-word .g{ font-size: 1.1rem; }
}
@media (min-width: 640px){
  .brand img{ height: 60px; }
  .brand-word .g{ font-size: 1.5rem; }
}

.main-nav{ display: none; flex: none; }
.main-nav ul{ display: flex; align-items: center; gap: 22px; }
.main-nav li{ flex: none; }
.main-nav a{
  display: inline-block; white-space: nowrap;
  font-size: .95rem; font-weight: 600; letter-spacing: 0;
  color: var(--ink); position: relative; padding: 6px 0;
}
.main-nav a::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.main-nav a.is-active{ color: var(--brand-deep); }
.main-nav a.is-active::after{ transform: scaleX(1); background: var(--brand); }
.mobile-nav a.is-active{ color: var(--brand-deep); }
.main-nav a:hover::after{ transform: scaleX(1); }

.header-cta{ display: none; align-items: center; gap: 14px; flex: none; }
.header-phone{ display: flex; flex-direction: column; line-height: 1.2; text-align: right; white-space: nowrap; }
.header-phone .label{ font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.header-phone .num{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; color: var(--ink); }
.header-phone .num:hover{ color: var(--brand); }

.nav-toggle{
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); background: none; border-radius: var(--radius);
  flex: none; color: var(--ink);
}
.nav-toggle svg{ width: 20px; height: 20px; }
.nav-toggle .icon-close{ display: none; }
.nav-toggle.is-open .icon-open{ display: none; }
.nav-toggle.is-open .icon-close{ display: block; }

.mobile-nav{
  max-height: 0; overflow: hidden; background: var(--white); border-bottom: 1px solid transparent;
  transition: max-height .3s var(--ease), border-color .3s;
}
.mobile-nav.is-open{ max-height: 480px; border-color: var(--line); }
.mobile-nav ul{ padding: 8px 24px 20px; display: flex; flex-direction: column; }
.mobile-nav ul a{
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 1rem;
}
.mobile-nav .mobile-cta{ padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 1200px){
  .brand img{ height: 56px; }
  .main-nav{ display: block; }
  .header-cta{ display: flex; }
  .nav-toggle{ display: none; }
}

/* ==========================================================================
   Hero, light and airy
   ========================================================================== */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--black) 0%, var(--brand-deep) 78%, var(--brand) 130%);
  color: var(--white);
  overflow: hidden;
  padding: 88px 0 0;
}
.hero-mark{
  position: absolute; z-index: 1; pointer-events: none;
  aspect-ratio: 312 / 124; width: min(960px, 68vw);
  right: max(24px, calc((100% - var(--container)) / 2 + 24px)); top: 52%; transform: translateY(-50%);
  opacity: .24;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero-mark img{ position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* ring sits on the S circle (its own 124x124 box at the right of the 312x124 mark) and turns slowly, like the logo's arrows */
.hero-mark .hero-mark-ring{
  inset: auto; left: 60.256%; top: 0; width: 39.744%; height: 100%;
  animation: irs-ring-turn 80s linear infinite;
}
@keyframes irs-ring-turn{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero-mark .hero-mark-ring{ animation: none; } }
@media (max-width: 959px){
  /* whole mark, never cropped: fits the content column and sits in the open space above the eyebrow */
  .hero-mark{
    width: min(calc(100% - 48px), 340px); left: 24px; right: auto; top: 14px; transform: none;
    opacity: .3; -webkit-mask-image: none; mask-image: none;
  }
  .hero-photo ~ .hero-mark{ opacity: .34; }
  .hero-content{ padding-top: 96px; }
}
@media (min-width: 600px) and (max-width: 959px){
  .hero-mark{ width: 400px; left: auto; right: 32px; top: 40px; }
  .hero-content{ padding-top: 56px; }
}
.hero-glow{
  position: absolute; top: 8%; left: 82%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(84,195,241,.35), transparent 68%);
  filter: blur(10px);
  transform: translate(-50%, -50%);
  transition: left .7s cubic-bezier(.22,.61,.36,1), top .7s cubic-bezier(.22,.61,.36,1);
  will-change: left, top;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce){
  .hero-glow{ transition: none; }
}
.hero .container{ position: relative; z-index: 2; }
.hero-content{ max-width: 780px; padding: 56px 0 64px; }
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: rgba(255,255,255,.06); border: 1px solid var(--charcoal-line); padding: 8px 16px; border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  color: var(--white);
  text-wrap: balance;
}
.hero h1 em{
  font-style: normal; color: var(--brand-light);
}
.hero-sub{
  margin-top: 26px;
  font-size: 1.2rem; line-height: 1.6; color: var(--muted-on-dark); max-width: 56ch;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-find-work{
  margin-top: 18px; font-size: .92rem; color: var(--muted-on-dark);
}
.hero-find-work a{ color: var(--white); font-weight: 600; border-bottom: 1px solid var(--accent); }

.hero-stats{
  position: relative; z-index: 2;
  background: var(--black);
  border-top: 1px solid var(--charcoal-line);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.hero-stats .stat{
  padding: 26px 24px; border-right: 1px solid var(--charcoal-line); border-bottom: 1px solid var(--charcoal-line);
}
.hero-stats .stat:nth-child(2n){ border-right: none; }
.hero-stats .stat b{
  display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--white);
}
.hero-stats .stat span{ font-size: .82rem; color: var(--muted-on-dark); }
@media (min-width: 720px){
  .hero-stats{ grid-template-columns: repeat(4, 1fr); }
  .hero-stats .stat{ border-bottom: none; }
  .hero-stats .stat:nth-child(2n){ border-right: 1px solid var(--charcoal-line); }
  .hero-stats .stat:last-child{ border-right: none; }
}

/* ==========================================================================
   Marquee ticker
   ========================================================================== */
.marquee{
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--charcoal-line);
  border-bottom: 1px solid var(--charcoal-line);
}
.marquee-track{
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -.005em; font-size: 1.05rem;
  padding: 14px 0;
  white-space: nowrap;
}
.marquee-track span::after{
  content: '\2726'; display: inline-block; margin: 0 26px; color: var(--brand-light); font-size: .8rem;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   Generic section spacing
   ========================================================================== */
.section{ padding: 100px 0; }
.section.on-tint{ background: var(--brand-pale); }
.section.on-paper{ background: var(--paper); }
.section.on-dark{ background: var(--black); color: var(--white); }
.section.on-dark .section-head p{ color: var(--muted-on-dark); }
@media (max-width: 720px){ .section{ padding: 72px 0; } }

/* ---- CTA band: bold, dark, used to bridge between pages ---- */
.cta-band{
  background: linear-gradient(120deg, var(--black) 0%, var(--brand-deep) 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2{
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.1; font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  text-wrap: balance;
}
.cta-band p{ margin-top: 14px; color: var(--muted-on-dark); font-size: 1.05rem; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row{ display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* ---- Who we are ---- */
.who-grid{
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
.who-copy p{ font-size: 1.08rem; line-height: 1.75; color: var(--muted); }
.who-copy p + p{ margin-top: 18px; }
.pillars{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 36px;
}
.pillar{ background: var(--white); padding: 26px 22px; }
.pillar .idx{ font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent-deep); }
.pillar h3{
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  margin-top: 6px; letter-spacing: -.01em;
}
.pillar p{ margin-top: 8px; font-size: .92rem; line-height: 1.55; color: var(--muted); }

.testimonial{
  margin-top: 56px;
  background: var(--brand-pale); color: var(--ink);
  padding: 44px 36px;
  position: relative;
  border-left: 6px solid var(--brand);
}
.testimonial .mark{
  font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--brand-light);
}
.testimonial blockquote{
  font-size: 1.25rem; line-height: 1.55; font-weight: 500; margin: 6px 0 20px; max-width: 60ch;
}
.testimonial cite{
  font-style: normal; display: block;
  font-size: .88rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.testimonial cite b{ color: var(--brand-deep); }

@media (min-width: 920px){
  .who-grid{ grid-template-columns: 1.1fr .9fr; align-items: stretch; }
  /* pillars run the full height of the copy column as four stacked rows: number left, text right */
  .pillars{ margin-top: 0; grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); }
  .pillar{
    display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-content: center;
    padding: 28px 32px; border-left: 4px solid transparent; transition: border-color .2s ease, background-color .2s ease;
  }
  .pillar:hover{ border-left-color: var(--brand); background: var(--brand-pale); }
  .pillar .idx{ grid-row: span 2; font-size: 2.6rem; line-height: 1; color: var(--brand); }
  .pillar h3{ margin-top: 0; font-size: 1.3rem; }
  .pillar p{ font-size: 1rem; line-height: 1.6; }
}

/* ---- Sectors / what we do ---- */
.sector-grid{ display: grid; gap: 24px; grid-template-columns: 1fr; }
/* four sectors: 2x2 on tablets and small laptops, one row of four from 1200px */
@media (min-width: 780px){ .sector-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px){ .sector-grid{ grid-template-columns: repeat(4, 1fr); } }

.sector-card{
  background: var(--white); color: var(--ink);
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  transition: transform .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column; height: 100%;
}
.sector-card:hover{ transform: translateY(-6px); border-top-color: var(--brand); }
.sector-card .icon{
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-pale); border-radius: var(--radius); margin-bottom: 22px; flex: none;
}
.sector-card .icon svg{ width: 26px; height: 26px; stroke: var(--brand); }
.sector-card h3{
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em;
}
.sector-card .tagline{ margin-top: 8px; font-size: .9rem; color: var(--brand-deep); font-weight: 600; }
.sector-card ul{ margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.sector-card li{
  font-size: .78rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
}

/* ---- capability checklist ---- */
.capabilities-grid{
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--brand-pale-line); border: 1px solid var(--brand-pale-line); margin-top: 8px;
}
@media (min-width: 640px){ .capabilities-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .capabilities-grid{ grid-template-columns: repeat(3, 1fr); } }
/* two-item grids (e.g. the Locations email directory) stay at two columns so no empty cell shows */
@media (min-width: 1000px){ .capabilities-grid.cols-2{ grid-template-columns: repeat(2, 1fr); } }
.cap-item{
  background: var(--white); padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start;
  min-height: 96px;
}
.cap-item svg{ width: 20px; height: 20px; flex: none; margin-top: 2px; stroke: var(--brand); }
.cap-item span{ font-size: .96rem; line-height: 1.45; color: var(--ink); }

/* ---- Locations / contact ---- */
.contact-grid{ display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 48px; }
@media (min-width: 860px){ .contact-grid{ grid-template-columns: repeat(2, 1fr); } }

.office-card{
  border: 1px solid var(--line); padding: 30px 28px; background: var(--white);
  position: relative;
}
.office-card .tag{
  display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: .78rem; letter-spacing: .1em; color: var(--white); background: var(--brand-btn);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.office-card h3{ font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.office-card .row{
  display: flex; gap: 12px; margin-top: 16px; align-items: flex-start; font-size: .95rem; color: var(--muted);
}
.office-card .row svg{ width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--brand); }
.office-card .row a{ color: var(--ink); font-weight: 600; }
.office-card .row a:hover{ color: var(--brand); }

.contact-lower{ display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px){ .contact-lower{ grid-template-columns: 1.05fr .95fr; } }

.form-card{ background: var(--brand-pale); color: var(--ink); padding: 40px 32px; border: 1px solid var(--brand-pale-line); }
.form-card h3{ font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.form-card > p{ margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 46ch; }
.form-row{ display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 560px){ .form-row.two{ grid-template-columns: 1fr 1fr; } }
.field label{
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.field input, .field textarea{
  width: 100%; background: var(--white); border: 1px solid var(--brand-pale-line); color: var(--ink);
  padding: 13px 14px; border-radius: var(--radius); transition: border-color .18s;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--muted-soft); }
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--brand); }
.field textarea{ resize: vertical; min-height: 120px; }
.form-foot{ margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg{ font-size: .85rem; font-weight: 600; color: var(--brand-deep); display: none; }
.form-msg.is-visible{ display: block; }

.side-note{
  border: 1px solid var(--line); padding: 30px 28px; background: var(--white);
  display: flex; flex-direction: column; gap: 22px;
}
.side-note h4{ font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.side-note p{ font-size: .92rem; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.hours-list{ display: grid; gap: 8px; font-size: .9rem; }
.hours-list div{ display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.hours-list b{ font-weight: 600; }
.candidate-cta{
  border-top: 3px solid var(--brand); padding-top: 18px;
}

/* ==========================================================================
   Footer, light
   ========================================================================== */
.site-footer{ background: var(--black); color: var(--muted-on-dark); border-top: 1px solid var(--charcoal-line); position: relative; overflow: hidden; }
.site-footer::before{
  content: ''; position: absolute; pointer-events: none;
  width: min(900px, calc(100% - 48px)); aspect-ratio: 312 / 124; left: 50%; top: 50%;
  /* whole mark, centred in the footer. -49.06% not -50%: the artwork sits slightly left of centre in its viewBox */
  transform: translate(-49.06%, -50%);
  background: url('../assets/irs-mark-bg.svg') no-repeat center / contain; opacity: .07;
}
.site-footer > .container{ position: relative; }
.footer-top{ padding-top: 72px; padding-bottom: 48px; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px){
  .footer-top{ grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 32px; }
}
@media (min-width: 860px){
  .footer-top{ gap: 40px; }
}
.footer-brand .brand{ margin-bottom: 16px; overflow: visible; }
.footer-brand .brand-word{ overflow: visible; }
.footer-brand .brand-word .g{ color: var(--white); white-space: normal; overflow: visible; text-overflow: clip; }
.footer-brand .brand-word .s{ color: var(--muted-on-dark); white-space: normal; overflow: visible; text-overflow: clip; }
.footer-brand p{ font-size: .92rem; line-height: 1.6; max-width: 32ch; }
.footer-badge{
  display: inline-block; margin-top: 16px; font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-light);
  border: 1px solid var(--charcoal-line); padding: 6px 12px; border-radius: 999px;
}
.footer-social{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.footer-social a{
  width: 38px; height: 38px; border: 1px solid var(--charcoal-line); border-radius: var(--radius); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: border-color .15s, color .15s;
}
.footer-social a:hover{ border-color: var(--brand-light); color: var(--brand-light); }
.footer-social svg{ width: 16px; height: 16px; }

.footer-col h5{
  font-family: var(--font-display); text-transform: uppercase; font-size: .95rem; letter-spacing: .06em;
  color: var(--white); font-weight: 700; margin-bottom: 18px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.footer-col a:hover{ color: var(--brand-light); }

.footer-bottom{
  border-top: 1px solid var(--charcoal-line); padding-top: 22px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.footer-bottom ul{ display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-bottom a:hover{ color: var(--brand-light); }

/* ==========================================================================
   Dark-section overrides (so existing components can sit on .on-dark)
   ========================================================================== */
.section.on-dark .who-copy p{ color: var(--muted-on-dark); }
.section.on-dark .testimonial{ background: var(--charcoal); color: var(--white); border-left-color: var(--brand-light); }
.section.on-dark .testimonial cite{ color: var(--muted-on-dark); }
.section.on-dark .testimonial cite b{ color: var(--brand-light); }

.section.on-dark .pillars{ background: var(--charcoal-line); border-color: var(--charcoal-line); }
.section.on-dark .pillar{ background: var(--charcoal); color: var(--white); }
.section.on-dark .pillar p{ color: var(--muted-on-dark); }

.section.on-dark .sector-card{ background: var(--charcoal); border-color: var(--charcoal-line); color: var(--white); }
.section.on-dark .sector-card .icon{ background: rgba(84,195,241,.12); }
.section.on-dark .sector-card .icon svg{ stroke: var(--brand-light); }
.section.on-dark .sector-card .tagline{ color: var(--brand-light); }
.section.on-dark .sector-card li{ color: var(--muted-on-dark); border-color: var(--charcoal-line); }
.section.on-dark .sector-card:hover{ border-top-color: var(--brand-light); }

.section.on-dark .capabilities-grid{ background: var(--charcoal-line); border-color: var(--charcoal-line); }
.section.on-dark .cap-item{ background: var(--charcoal); color: var(--white); }
.section.on-dark .cap-item svg{ stroke: var(--brand-light); }
.section.on-dark .cap-item span{ color: var(--white); }

.section.on-dark .office-card{ background: var(--charcoal); border-color: var(--charcoal-line); color: var(--white); }
.section.on-dark .office-card .row{ color: var(--muted-on-dark); }
.section.on-dark .office-card .row a{ color: var(--white); }
.section.on-dark .office-card .row svg{ stroke: var(--brand-light); }

.section.on-dark .form-card{ background: var(--charcoal); border-color: var(--charcoal-line); color: var(--white); }
.section.on-dark .form-card > p{ color: var(--muted-on-dark); }
.section.on-dark .field label{ color: var(--muted-on-dark); }
.section.on-dark .field input, .section.on-dark .field textarea{ background: var(--black); border-color: var(--charcoal-line); color: var(--white); }
.section.on-dark .field input::placeholder, .section.on-dark .field textarea::placeholder{ color: var(--muted-on-dark); }
.section.on-dark .side-note{ background: var(--charcoal); border-color: var(--charcoal-line); color: var(--white); }
.section.on-dark .side-note p{ color: var(--muted-on-dark); }
.section.on-dark .hours-list div{ border-color: var(--charcoal-line); }
.section.on-dark .form-msg{ color: var(--brand-light); }

/* ==========================================================================
   Link cards (sector registration / job board links)
   ========================================================================== */
.link-cards{ display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px){ .link-cards{ grid-template-columns: repeat(2, 1fr); } }
.link-card{
  display: flex; flex-direction: column; gap: 14px;
  background: var(--charcoal); border: 1px solid var(--charcoal-line); color: var(--white);
  padding: 30px 28px; transition: transform .2s var(--ease), border-color .2s;
}
.link-card:hover{ transform: translateY(-4px); border-color: var(--brand-light); }
.link-card .tag{
  display: inline-flex; align-self: flex-start; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: .72rem; letter-spacing: .1em; color: var(--black); background: var(--brand-light);
  padding: 5px 12px; border-radius: 999px;
}
.link-card h3{ font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.link-card p{ font-size: .92rem; line-height: 1.55; color: var(--muted-on-dark); }
.link-card .btn{ align-self: flex-start; margin-top: auto; }
.link-card.is-pending{ opacity: .82; }
.link-card .pending-note{ font-size: .76rem; color: var(--brand-light); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* job board / review CTA strip */
.cta-strip{
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--charcoal); border: 1px solid var(--charcoal-line); padding: 26px 28px; margin-top: 20px;
}
.cta-strip p{ color: var(--white); font-size: 1rem; font-weight: 600; max-width: 46ch; }
.cta-strip span{ display: block; margin-top: 4px; font-size: .85rem; font-weight: 400; color: var(--muted-on-dark); }
.cta-strip .btn-row{ display: flex; flex-wrap: wrap; gap: 12px; }

/* client testimonials (employers page) */
.client-quotes{ display: grid; gap: 20px; }
@media (min-width: 820px){ .client-quotes{ grid-template-columns: repeat(2, 1fr); } }
.client-quote{
  margin: 0; background: var(--brand-pale); border-left: 6px solid var(--brand);
  padding: 32px 30px; display: flex; flex-direction: column; gap: 22px;
}
.client-quote blockquote{ margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--ink); flex: 1 1 auto; }
.client-quote figcaption{ display: flex; flex-direction: column; gap: 2px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.client-quote figcaption b{ color: var(--brand-deep); }
.client-quote figcaption span{ color: var(--muted); }

/* ==========================================================================
   Reviews (Google)
   ========================================================================== */
.review-summary{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; background: var(--brand-pale); border: 1px solid var(--brand-pale-line);
  padding: 24px 28px; margin-bottom: 28px;
}
.review-summary-rating{ display: flex; align-items: center; gap: 16px; }
.review-summary-rating > b{ font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--ink); }
.review-summary-meta{ display: flex; flex-direction: column; gap: 6px; }
.review-summary-meta > span:last-child{ font-size: .9rem; color: var(--muted); font-weight: 500; }
.review-summary-meta b{ color: var(--ink); font-weight: 600; white-space: nowrap; }
.review-summary-meta .google-g{ width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin: 0 4px 0 3px; }
.review-stars{ color: #f0b43c; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.review-summary-actions{ display: flex; flex-wrap: wrap; gap: 12px; }

.review-carousel{ position: relative; }
.review-track{
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px; scroll-behavior: smooth; scrollbar-width: none;
  /* soft fade on the trailing edge hints there's more to scroll */
  -webkit-mask-image: linear-gradient(to right, #000 93%, transparent);
          mask-image: linear-gradient(to right, #000 93%, transparent);
}
.review-track::-webkit-scrollbar{ display: none; }

.review-card{
  scroll-snap-align: start; flex: 0 0 340px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid transparent;
  padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.review-card:hover{ border-top-color: var(--brand); transform: translateY(-3px); }
.review-card-head{ display: flex; align-items: center; gap: 12px; }
.review-avatar{
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.review-avatar.a1{ background: var(--brand); }
.review-avatar.a2{ background: var(--brand-deep); }
.review-avatar.a3{ background: var(--accent-deep); }
.review-avatar.a4{ background: #2c6f9e; }
.review-who{ display: flex; flex-direction: column; line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.review-who b{ font-size: .95rem; color: var(--ink); }
.review-who span{ font-size: .78rem; color: var(--muted); }
.review-card .google-g{ width: 20px; height: 20px; flex: none; align-self: flex-start; }
.review-quote{ font-size: .95rem; line-height: 1.65; color: var(--ink); }

.review-nav{
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: border-color .2s, background .2s;
}
.review-nav.prev{ left: -22px; }
.review-nav.next{ right: -22px; }
.review-nav:hover{ border-color: var(--brand); }
.review-nav svg{ width: 18px; height: 18px; }

/* on black sections the whole block goes charcoal, like every other card on the site */
.section.on-dark .review-summary{ background: var(--charcoal); border-color: var(--charcoal-line); }
.section.on-dark .review-summary-rating > b{ color: var(--white); }
.section.on-dark .review-summary-meta > span:last-child{ color: var(--muted-on-dark); }
.section.on-dark .review-summary-meta b{ color: var(--white); }
.section.on-dark .review-card{ background: var(--charcoal); border-color: var(--charcoal-line); border-top-color: transparent; }
.section.on-dark .review-card:hover{ border-top-color: var(--brand-light); }
.section.on-dark .review-who b, .section.on-dark .review-quote{ color: var(--white); }
.section.on-dark .review-quote{ color: #d5dde6; }
.section.on-dark .review-who span{ color: var(--muted-on-dark); }
.section.on-dark .review-avatar.a2{ background: #24557f; }
.section.on-dark .review-nav{ background: var(--charcoal-2); border-color: rgba(255,255,255,.18); color: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.section.on-dark .review-nav:hover{ border-color: var(--brand-light); }

@media (max-width: 1280px){
  .review-nav.prev{ left: 6px; }
  .review-nav.next{ right: 6px; }
}
@media (max-width: 640px){
  .review-nav{ display: none; }
  .review-card{ flex-basis: 85%; }
  .review-summary-rating > b{ font-size: 2.4rem; }
  .review-summary-actions{ width: 100%; }
  .review-summary-actions .btn{ flex: 1 1 100%; justify-content: center; }
}

/* consent checkbox */
.field-check{ display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; }
.field-check input{ margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.field-check label{ font-size: .85rem; line-height: 1.55; color: var(--muted-on-dark); }
.field-check a{ color: var(--brand-light); font-weight: 600; }
.section:not(.on-dark) .field-check label{ color: var(--muted); }
.section:not(.on-dark) .field-check a{ color: var(--brand-deep); }

/* file field */
.field-file input[type="file"]{
  width: 100%; background: var(--black); border: 1px dashed var(--charcoal-line); color: var(--white);
  padding: 13px 14px; border-radius: var(--radius); font-size: .88rem;
}
.section:not(.on-dark) .field-file input[type="file"]{ background: var(--white); border-color: var(--brand-pale-line); color: var(--ink); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .marquee-track{ animation: none; }
  html{ scroll-behavior: auto; }
}

/* back to top */
.to-top{
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  border: none;
  box-shadow: 0 8px 20px rgba(5,7,10,.35);
}
.to-top.is-visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg{ width: 18px; height: 18px; }

/* ==========================================================================
   Policies (hub + individual policy pages)
   ========================================================================== */
.hero.hero-compact .hero-content{ padding: 40px 0 56px; }
.hero.hero-compact .hero-mark{ width: min(720px, 52vw); }
@media (max-width: 959px){ .hero.hero-compact .hero-mark{ width: min(calc(100% - 48px), 300px); } }
.hero.hero-compact h1{ font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
.hero.hero-compact .hero-sub{ font-size: 1.08rem; margin-top: 20px; }

.policy-layout{ display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px){
  .policy-layout{ grid-template-columns: 250px minmax(0, 1fr); gap: 72px; }
  .policy-nav{ order: -1; }
}

.policy-nav{ align-self: start; }
@media (min-width: 960px){ .policy-nav{ position: sticky; top: 112px; } }
.policy-nav h2{
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: .95rem; letter-spacing: .06em; margin-bottom: 14px;
}
.policy-nav ul{ border-left: 2px solid var(--line); }
.policy-nav a{
  display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: .92rem; color: var(--muted); transition: color .15s, border-color .15s;
}
.policy-nav a:hover{ color: var(--ink); border-left-color: var(--brand-light); }
.policy-nav a[aria-current="page"]{ color: var(--brand-deep); font-weight: 600; border-left-color: var(--brand); }

.legal{ max-width: 760px; }
.legal .updated{ font-size: .85rem; color: var(--muted-soft); margin-bottom: 32px; }
.legal .updated + p{ font-size: 1.08rem; color: var(--ink); }
.legal h2{
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; margin-top: 48px; margin-bottom: 14px; letter-spacing: -.02em; line-height: 1.25;
  scroll-margin-top: 110px;
}
.legal h3{ font-size: 1.02rem; font-weight: 700; margin-top: 26px; margin-bottom: 4px; }
.legal p{ font-size: 1rem; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.legal ul, .legal ol{ margin-top: 12px; padding-left: 20px; list-style: disc; }
.legal ol{ list-style: decimal; }
.legal li{ font-size: 1rem; line-height: 1.7; color: var(--muted); margin-top: 6px; }
.legal li strong, .legal p strong{ color: var(--ink); }
.legal a{ color: var(--brand-deep); font-weight: 600; border-bottom: 1px solid var(--brand-pale-line); }
.legal a:hover{ border-bottom-color: var(--brand); }

.legal-table-wrap{ overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table{ width: 100%; border-collapse: collapse; font-size: .94rem; }
.legal th, .legal td{ text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.legal th{ background: var(--paper); font-weight: 700; color: var(--ink); }
.legal td{ color: var(--muted); }
.legal tr:last-child td{ border-bottom: 0; }

.legal-callout{
  margin-top: 28px; padding: 22px 24px; background: var(--brand-pale);
  border: 1px solid var(--brand-pale-line); border-radius: 8px;
}
.legal-callout h3{ margin-top: 0; color: var(--brand-deep); }
.legal-callout p:first-of-type{ margin-top: 6px; }

.company-facts{
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.company-facts div{ background: var(--white); padding: 18px 20px; }
.company-facts dt{ font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-soft); }
.company-facts dd{ margin: 6px 0 0; font-size: .96rem; line-height: 1.5; color: var(--ink); }

.policy-group + .policy-group{ margin-top: 56px; }
.policy-group > h2{
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 20px;
}
.policy-cards{ display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.policy-card{
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .15s, transform .15s var(--ease);
}
.policy-card:hover{ border-color: var(--brand); transform: translateY(-2px); }
.policy-card h3{ font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; }
.policy-card p{ font-size: .94rem; line-height: 1.6; color: var(--muted); flex: 1; }
.policy-card .more{ font-size: .88rem; font-weight: 700; color: var(--brand-deep); }
.hero-eyebrow a:hover{ color: var(--brand-light); }
.policy-nav h2 a:hover{ color: var(--brand-deep); }

/* ==========================================================================
   Photography: hero underlays, dark-section underlays, sector card photos.
   Photos are toned into the brand blues so stock shots read as one set.
   ========================================================================== */
.hero-photo, .section-photo{ position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-photo img, .section-photo img{
  width: 100%; height: 100%; max-width: none; object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
/* brand-blue tone over the greyscale photo, then darken toward the copy side */
.hero-photo::before, .section-photo::before{
  content: ''; position: absolute; inset: 0; background: var(--brand); mix-blend-mode: color; opacity: .75;
}
.hero-photo::after{
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(5,7,10,.94) 0%, rgba(5,7,10,.82) 38%, rgba(10,32,50,.55) 72%, rgba(22,58,86,.45) 100%),
    linear-gradient(0deg, rgba(5,7,10,.55) 0%, transparent 30%);
}
.hero-photo img{ opacity: .55; }
.hero-photo ~ .hero-mark{ opacity: .3; }
@media (max-width: 959px){
  .hero-photo::after{ background: linear-gradient(180deg, rgba(5,7,10,.78) 0%, rgba(5,7,10,.9) 55%, rgba(5,7,10,.95) 100%); }
}

.section.has-photo{ position: relative; isolation: isolate; overflow: hidden; }
.section.has-photo > .container{ position: relative; z-index: 1; }
.section-photo img{ opacity: .22; }
.section-photo::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--black) 0%, rgba(5,7,10,.4) 30%, rgba(5,7,10,.4) 70%, var(--black) 100%);
}

.sector-card.has-photo{ padding-top: 0; overflow: hidden; }
.sector-photo{
  margin: 0 -28px 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-deep);
}
.sector-photo img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.sector-card.has-photo:hover .sector-photo img{ transform: scale(1.04); }
.sector-card.has-photo .icon{
  position: relative; margin-top: -26px; margin-bottom: 18px;
  background: var(--brand-btn); box-shadow: 0 6px 16px rgba(5,7,10,.35);
}
.sector-card.has-photo .icon svg{ stroke: var(--white); }
.section.on-dark .sector-card.has-photo .icon{ background: var(--brand-btn); }
.section.on-dark .sector-card.has-photo .icon svg{ stroke: var(--white); }
@media (prefers-reduced-motion: reduce){ .sector-photo img{ transition: none; } }

/* between 1200 and 1280 the desktop nav leaves no room for the tagline: drop it rather than truncate it */
@media (min-width: 1200px) and (max-width: 1279px){
  .site-header .brand-word .s{ display: none; }
}

/* IRS mark as a faint watermark behind light sections, alternating sides down the page.
   Uses the light-background variant (the master's pale S circle vanishes on white, leaving "IR"),
   and always sits whole inside the section: anchored to the content edge, never bled off the page. */
.section.has-mark{ position: relative; isolation: isolate; overflow: hidden; }
.section.has-mark::before{
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, calc(100% - 48px)); aspect-ratio: 312 / 124;
  right: max(24px, calc((100% - var(--container)) / 2 + 24px)); top: 50%; transform: translateY(-50%);
  background: url('../assets/irs-mark-bg-light.svg') no-repeat center / contain;
  opacity: .08;
}
.section.has-mark.mark-left::before{ right: auto; left: max(24px, calc((100% - var(--container)) / 2 + 24px)); }
/* single-column layouts leave no open space beside the content, so the mark moves to the foot of the section */
@media (max-width: 959px){
  .section.has-mark::before,
  .section.has-mark.mark-left::before{
    width: min(calc(100% - 48px), 460px); left: 50%; right: auto; top: auto; bottom: 36px;
    transform: translateX(-50%); opacity: .1;
  }
  /* reserve room at the foot of the section so the mark never sits behind content */
  .section.has-mark{ padding-bottom: calc(min(100vw - 48px, 460px) * 124 / 312 + 76px); }
}

/* legally required company details (Companies Act): name, number, place of registration, registered office */
.footer-legal{ display: flex; flex-direction: column; gap: 6px; max-width: 78ch; }
.footer-legal span + span{ font-size: .74rem; line-height: 1.55; opacity: .8; }


/* five nav items need the room: both office numbers are in the top bar directly above */
.header-cta .header-phone{ display: none; }

/* 404 */
.notfound-links{ display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 8px; }

/* ==========================================================================
   Small-screen refinements
   ========================================================================== */
/* footer mark: whole mark on phones instead of a cropped corner */
@media (max-width: 779px){
  .site-footer::before{ width: min(calc(100% - 48px), 420px); right: auto; left: 50%; top: auto; bottom: 24px; transform: translateX(-49.06%); opacity: .08; }
}
/* hero eyebrow pill stays on one line on small phones */
@media (max-width: 479px){
  .hero-eyebrow{ font-size: .68rem; letter-spacing: .08em; padding: 7px 12px; gap: 8px; }
}
/* top bar: just the two office numbers on phones (socials live in the footer) */
@media (max-width: 560px){
  .topbar-social{ display: none; }
  .topbar .container{ padding-top: 9px; padding-bottom: 9px; }
  .topbar-phones{ gap: 16px; flex-wrap: nowrap; }
}
@media (max-width: 359px){
  .topbar{ font-size: .74rem; }
  .topbar-phones{ gap: 10px; }
}
@media (max-width: 359px){
  .hero-eyebrow{ font-size: .62rem; letter-spacing: .05em; }
}

/* pillars: one column on phones so each point reads comfortably */
@media (max-width: 479px){
  .pillars{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Office maps (Locations). Self-hosted OpenStreetMap images, not an embed:
   no third-party requests or cookies, so the Cookie Policy stays true.
   The image is centred on the office, so the pin sits dead centre at any crop.
   ========================================================================== */
.office-card{ display: flex; flex-direction: column; }
.office-card .tag{ align-self: flex-start; }
/* office photo: full-bleed across the top of the card, same crop on both so the cards line up */
.office-photo{ margin: -30px -28px 26px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.office-photo img{ width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* portrait shot of the Coventry door: frame the IRS logo and "2nd floor offices" lettering */
.office-photo-coventry img{ object-position: 50% 52%; }
.office-map{ position: relative; margin: 28px -28px -30px; margin-top: auto; padding-top: 28px; }
.office-map > a{
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--paper-2); border-top: 1px solid var(--line);
}
.office-map img{
  width: 100%; height: 100%; max-width: none; object-fit: cover;
  transition: transform .6s var(--ease);
}
.office-map > a:hover img{ transform: scale(1.03); }
.office-map > a:focus-visible{ outline: 3px solid var(--brand); outline-offset: -3px; }
/* teardrop pin: its point is the exact centre of the map */
.office-map-pin{
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  background: var(--brand-btn); border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) translateY(-6px) rotate(-45deg);
  transform-origin: center; box-shadow: 0 6px 14px rgba(5,7,10,.35);
}
.office-map-pin::after{
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); transform: translate(-50%, -50%);
}
/* soft pulse on the ground point */
.office-map > a::after{
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(0,119,179,.35); transform: translate(-50%, -50%);
  animation: office-pin-pulse 2.4s var(--ease) infinite;
}
@keyframes office-pin-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(0,119,179,.45); }
  100%{ box-shadow: 0 0 0 22px rgba(0,119,179,0); }
}
.office-map-cta{
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  color: var(--white); background: var(--black); padding: 8px 12px; border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(5,7,10,.25); transition: background .2s;
}
.office-map-cta svg{ width: 14px; height: 14px; stroke: currentColor; }
.office-map > a:hover .office-map-cta{ background: var(--brand-btn); }
.office-map figcaption{
  position: absolute; right: 0; bottom: 0; font-size: .66rem; line-height: 1; color: var(--ink);
  background: rgba(255,255,255,.85); padding: 4px 6px;
}
.office-map figcaption a{ color: inherit; text-decoration: underline; }
@media (prefers-reduced-motion: reduce){
  .office-map img{ transition: none; }
  .office-map > a::after{ animation: none; }
}
