:root {
  --charcoal: #242b31;
  --red: #b20f24;
  --red-bright: #c71931;
  --mist: #f2f3f4;
  --line: #d8dde0;
  --white: #fff;
  --font: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--white); font-family: var(--font); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 48px)); margin: auto; }
.skip-link { position: absolute; left: 16px; top: -50px; z-index: 5; padding: 10px 15px; background: var(--red); color: #fff; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid #f3c0c6; outline-offset: 4px; }
.site-header { position: absolute; z-index: 3; inset: 0 0 auto; color: #fff; border-bottom: 1px solid rgba(255,255,255,.24); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 195px; height: auto; filter: brightness(0) invert(1); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta):hover { color: #f7a9b2; }
.nav-cta { padding: 9px 16px; border: 1px solid rgba(255,255,255,.7); }
.menu-toggle { display: none; padding: 9px 12px; background: none; border: 1px solid rgba(255,255,255,.7); color: #fff; }
.hero { min-height: 720px; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url('assets/hero-ilvessecurity-desktop.webp') center/cover no-repeat; }
.hero-shade { background: linear-gradient(90deg, rgba(22,29,33,.72), rgba(22,29,33,.42) 38%, rgba(22,29,33,.12) 75%), linear-gradient(0deg, rgba(22,29,33,.32), transparent 50%); }
.hero-content { position: relative; flex: 0 0 1160px; width: 1160px; max-width: 1160px; margin-left: max(24px, calc((100% - 1160px) / 2)); margin-right: 24px; padding: 150px 0 95px; }
.eyebrow { margin: 0 0 20px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { color: #f3c0c6; }
.hero h1, .section h2 { margin: 0; letter-spacing: -.055em; line-height: .98; font-size: clamp(50px, 7vw, 92px); }
h1 span, h2 em { font-style: normal; color: var(--red); }
.hero h1 span { color: #fff; }
.hero-lead { max-width: 490px; margin: 30px 0 32px; color: #e1e5e6; font-size: clamp(18px, 2vw, 24px); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 18px; font-size: 14px; font-weight: 800; text-decoration: none; }
.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-bright); }
.button-dark { margin-top: 22px; background: var(--charcoal); color: #fff; }
.hero-stamp { position: absolute; right: max(24px, calc((100% - 1160px) / 2)); bottom: 58px; display: flex; gap: 10px; align-items: center; color: #d9dfe0; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.hero-stamp span:first-child { color: #fff; font-weight: 800; }
.section { padding: 112px 0; }
.services { background: var(--mist); }
.section-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 55px; align-items: end; margin-bottom: 54px; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -32px; }
.section-intro h2 { font-size: clamp(42px, 5vw, 68px); }
.section-intro > p:last-child { max-width: 390px; color: #5b666c; font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { min-height: 360px; padding: 30px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.service-card-dark { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.service-card-red { background: var(--red); color: #fff; border-color: var(--red); }
.card-number { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.service-card-dark .card-number { color: #f3c0c6; }
.service-card-red .card-number { color: #fff; }
.service-card h3 { margin: 54px 0 14px; font-size: 27px; line-height: 1.05; }
.service-card p { margin: 0; color: #647077; }
.service-card .service-card-subtitle { margin: -6px 0 14px; font-size: 12px; line-height: 1.35; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.service-card-dark p, .service-card-red p { color: #e7eaeb; }
.service-card-dark .service-card-subtitle, .service-card-red .service-card-subtitle { color: #f3c0c6; }
.service-card a { margin-top: auto; color: var(--red); font-weight: 800; text-decoration: none; }
.service-card-dark a, .service-card-red a { color: #fff; }
.statement { background: #fff; }
.statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.statement h2, .contact h2 { font-size: clamp(42px, 5vw, 72px); }
.statement-copy { max-width: 500px; color: #536066; font-size: 21px; }
.statement-copy p { margin: 0 0 24px; }
.landscape-break { height: 380px; position: relative; background: url('assets/hero-ilvessecurity-desktop.webp') center 62%/cover no-repeat; }
.landscape-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,43,49,.85), transparent 70%); }
.landscape-caption { position: absolute; z-index: 1; left: max(24px, calc((100% - 1160px) / 2)); bottom: 54px; color: #fff; font-size: 24px; line-height: 1.15; }
.landscape-caption p { margin: 0; }
.landscape-caption strong { color: #f1a2ac; }
.caption-line { display: block; width: 48px; height: 4px; margin-bottom: 20px; background: var(--red); }
.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.contact h2 { margin-bottom: 28px; }
.contact-grid > div:first-child > p:last-child { max-width: 530px; color: #59656b; font-size: 18px; }
.contact-panel { padding: 24px 28px; background: #fff; border-top: 5px solid var(--red); box-shadow: 0 12px 35px rgba(36,43,49,.08); }
.contact-person { display: block; text-align: center; }
.contact-grid > *, .contact-person > div { min-width: 0; }
.contact-portrait { display: block; width: 132px; height: 166px; margin: 0 auto 18px; object-fit: contain; object-position: center bottom; }
.panel-label { margin: 0 0 20px; color: #69747a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.contact-person > div { text-align: center; }
.contact-name { margin: 0 0 8px; color: var(--charcoal); font-size: clamp(20px, 3vw, 24px); font-weight: 800; white-space: nowrap; }
.contact-link { display: block; margin: 0 0 11px; color: var(--charcoal); font-size: clamp(14px, 2.2vw, 20px); font-weight: 700; text-decoration: none; white-space: nowrap; }
.contact-link:hover { color: var(--red); }
.contact-placeholder { margin: 0; color: #59656b; font-size: 18px; }
.site-footer { padding: 30px 0; background: var(--charcoal); color: #c5cccf; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner img { width: 170px; filter: brightness(0) invert(1); }
.footer-inner p { margin: 0; font-size: 12px; }
.service-source-note { margin: 28px 0 0; font-size: 13px; opacity: .78; }
.service-source-note a { color: inherit; text-underline-offset: 3px; }
section[id], .service-detail[id] { scroll-margin-top: 24px; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1208px) and (min-width: 761px) {
  .hero-content { flex-basis: calc(100% - 48px); width: calc(100% - 48px); max-width: none; margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 560px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 165px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 18px; background: var(--charcoal); border: 1px solid rgba(255,255,255,.22); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: 680px; }
  .hero-media { background-image: url('assets/hero-ilvessecurity-mobile.webp'); background-position: 50% 58%; }
  .hero-content { flex: 0 1 auto; width: calc(100% - 32px); max-width: 560px; margin-left: 16px; margin-right: 16px; padding: 128px 0 90px; }
  .hero-stamp { display: none; }
  .section { padding: 76px 0; }
  .section-intro, .statement-grid, .contact-grid { display: block; }
  .section-intro .eyebrow { margin-bottom: 20px; }
  .section-intro > p:last-child { margin-top: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 275px; }
  .statement-copy { margin-top: 30px; font-size: 19px; }
  .landscape-break { height: 300px; }
  .landscape-caption { left: 16px; bottom: 30px; font-size: 20px; }
  .contact-panel { margin-top: 40px; }
  .footer-inner { display: block; }
  .footer-inner p { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Service details stay in the main stylesheet so the first render needs one CSS request. */
.hero-media { background-image: url('assets/hero-ilvessecurity-desktop.webp'); }
.landscape-break { background-image: url('assets/hero-ilvessecurity-desktop.webp') !important; background-position: center 62%; }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-card { min-height: 360px; }
.service-note { margin: 24px 0 0; color: #657078; font-size: 14px; max-width: 800px; }
.service-details { display: grid; gap: 16px; margin-top: 44px; }
.service-detail { display: grid; grid-template-columns: minmax(220px, .72fr) 1.28fr; gap: 48px; padding: 34px 38px; background: #fff; border: 1px solid var(--line); }
.service-detail-dark { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.service-detail-red { background: var(--red); color: #fff; border-color: var(--red); }
.detail-kicker { display: block; margin-bottom: 20px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.detail-subtitle { display: block; margin: -10px 0 20px; font-size: 13px; font-weight: 700; color: #647077; }
.service-detail-dark .detail-kicker { color: #f3c0c6; }
.service-detail-red .detail-kicker { color: #fff; }
.service-detail-dark .detail-subtitle, .service-detail-red .detail-subtitle { color: #e7eaeb; }
.service-detail h3 { margin: 0; max-width: 390px; font-size: clamp(27px, 3vw, 40px); line-height: 1.04; letter-spacing: -.035em; }
.service-detail-body { max-width: 620px; color: #59656b; font-size: 17px; }
.service-detail-dark .service-detail-body, .service-detail-red .service-detail-body { color: #e7eaeb; }
.service-detail-body p { margin: 0 0 16px; }
.service-detail-context { padding-left: 16px; border-left: 3px solid var(--red); font-size: 15px; }
.service-detail-dark .service-detail-context, .service-detail-red .service-detail-context { border-color: #f3c0c6; }
.service-detail-body a { display: inline-flex; gap: 12px; margin-top: 8px; color: var(--red); font-weight: 800; text-decoration: none; }
.service-detail-dark .service-detail-body a, .service-detail-red .service-detail-body a { color: #fff; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-detail { display: block; padding: 28px 24px; }
  .service-detail-heading { margin-bottom: 24px; }
  .service-detail-body { font-size: 16px; }
  .hero-media { background-image: url('assets/hero-ilvessecurity-mobile.webp'); }
}
