/* Alliance Engineers PLT — site styles
   Palette "PCB green & gold": laminate / solder-mask green with gold pad accents. */

:root {
  --laminate: #0E2A22;      /* dark surfaces: hero, footer, page headers */
  --laminate-2: #12352B;
  --emerald: #0B5D45;       /* primary brand colour */
  --emerald-dark: #084A37;
  --emerald-soft: #7FB8A2;
  --gold: #C9A24B;          /* accent, used sparingly */
  --gold-light: #DDBD6E;
  --paper: #F3F5F4;         /* page background */
  --white: #FFFFFF;
  --ink: #1B2420;           /* body text */
  --ink-2: #4A5751;         /* secondary text */
  --on-dark: #E6EFEA;
  --on-dark-2: #AFC4BA;
  --line: #D5DDD9;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: var(--emerald-dark); }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-stretch: 115%;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; font-stretch: 108%; letter-spacing: -0.005em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--laminate);
  padding: 0.6rem 1rem; font-weight: 600; border-radius: 3px;
}
.skip-link:focus { top: 1rem; }

.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 40rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 4px;
  font: inherit; font-weight: 600; font-stretch: 105%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button--primary { background: var(--emerald); color: var(--white); }
.button--primary:hover { background: var(--emerald-dark); color: var(--white); }
.button--gold { background: var(--gold); color: var(--laminate); }
.button--gold:hover { background: var(--gold-light); color: var(--laminate); }
.button--outline { border-color: var(--emerald); color: var(--emerald); background: transparent; }
.button--outline:hover { background: var(--emerald); color: var(--white); }
.button--outline-light { border-color: rgba(230, 239, 234, 0.45); color: var(--on-dark); background: transparent; }
.button--outline-light:hover { border-color: var(--gold); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
  position: relative;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { display: block; width: auto; height: 44px; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav__list { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding-block: 0.35rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.site-nav__list a:hover { color: var(--emerald); }
.site-nav__list a[aria-current="page"] { color: var(--emerald); border-bottom-color: var(--gold); }
.site-nav__cta { padding: 0.65rem 1.1rem; font-size: 0.95rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--white { background: var(--white); }
.section--dark { background: var(--laminate); color: var(--on-dark); }
.section--dark .lede { color: var(--on-dark-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head .lede { margin-top: 0.75rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(127, 184, 162, 0.13) 1px, transparent 0) 0 0 / 22px 22px,
    var(--laminate);
  color: var(--on-dark);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 760; font-stretch: 120%;
  line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__intro { font-size: 1.2rem; color: var(--on-dark-2); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
  border-top: 1px solid rgba(175, 196, 186, 0.22);
  padding-block: 2rem 2.75rem;
}
.hero__facts strong { display: block; color: var(--white); font-stretch: 110%; font-weight: 650; margin-bottom: 0.25rem; }
.hero__facts p { margin: 0; color: var(--on-dark-2); font-size: 0.97rem; }

/* Chip floorplan illustration */
.die-figure { margin: 0; justify-self: center; width: 100%; max-width: 470px; }
.die-figure figcaption { margin-top: 0.9rem; text-align: center; font-size: 0.88rem; color: var(--on-dark-2); }
.die__body { fill: var(--laminate-2); stroke: #2B6B57; stroke-width: 1.5; }
.die__cell { fill: rgba(15, 107, 80, 0.3); stroke: #3C8C71; stroke-width: 1; transition: fill 0.2s, stroke 0.2s; }
.die__block text {
  fill: #DDEBE4; font-family: var(--font); font-size: 13px; font-weight: 600; font-stretch: 108%;
  pointer-events: none;
}
.die__block:hover .die__cell, .die__block:focus .die__cell { fill: rgba(201, 162, 75, 0.2); stroke: var(--gold); }
.die__block:focus { outline: none; }
.die__block:focus-visible .die__cell { stroke-width: 2.5; }
.die__rows { fill: url(#die-rows); opacity: 0.55; pointer-events: none; }
.die__trace { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
.die__via { fill: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .die__body, .die__pads { animation: power-on 0.6s ease-out both; }
  .die__block { animation: power-on 0.5s ease-out both; animation-delay: var(--d, 0s); }
  .die__trace { stroke-dasharray: 720; animation: draw-trace 1.4s 1.5s ease-in-out both; }
  .die__via { animation: power-on 0.3s 2.7s ease-out both; }
}
@keyframes power-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw-trace { from { stroke-dashoffset: 720; } to { stroke-dashoffset: 0; } }

/* ---------- Inner page header ---------- */
.page-hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(127, 184, 162, 0.13) 1px, transparent 0) 0 0 / 22px 22px,
    var(--laminate);
  color: var(--on-dark);
  padding-block: clamp(3.25rem, 7vw, 5.25rem);
}
.page-hero h1 { font-stretch: 120%; max-width: 20ch; }
.page-hero .lede { color: var(--on-dark-2); margin-top: 1rem; }

/* ---------- Service list (home) ---------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list a {
  display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr); gap: 0.5rem 2.5rem;
  align-items: baseline;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: background-color 0.15s;
}
.service-list a:hover { background: var(--white); }
.service-list a:hover h3 { color: var(--emerald); }
.service-list h3 { margin: 0; font-size: 1.2rem; transition: color 0.15s; }
.service-list p { margin: 0; color: var(--ink-2); max-width: 40rem; }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.model {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-top: 3px solid var(--emerald);
  padding: 2rem 1.75rem;
}
.model h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.model > p { color: var(--ink-2); }
.model dl { margin: auto 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; }
.model dt { font-size: 0.85rem; font-weight: 600; color: var(--emerald); }
.model dd { margin: 0.1rem 0 0; font-size: 0.97rem; }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; border-top: 1px solid rgba(175, 196, 186, 0.3); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 0.75rem;
  font-size: 2.6rem; font-weight: 700; font-stretch: 125%; line-height: 1;
  color: var(--gold);
}
.steps h3 { color: var(--white); margin-bottom: 0.5rem; }
.steps p { color: var(--on-dark-2); font-size: 0.98rem; }

.steps--light li { border-top-color: var(--line); }
.steps--light li::before { color: var(--emerald); }
.steps--light h3 { color: var(--ink); }
.steps--light p { color: var(--ink-2); }

/* ---------- Points (why us, careers) ---------- */
.points { display: grid; gap: 2rem; }
.point { padding-left: 1.25rem; border-left: 3px solid var(--gold); }
.point h3 { margin-bottom: 0.35rem; }
.point p { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta { background: var(--emerald); color: var(--white); padding-block: clamp(3.25rem, 6vw, 4.5rem); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; }
.cta h2 { margin-bottom: 0.4rem; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta p { color: #CFE5DB; max-width: 36rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- About: title block ---------- */
.titleblock {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 0;
  background: var(--ink); border: 1px solid var(--ink);
}
.titleblock > div { background: var(--white); padding: 0.85rem 1.1rem; }
.titleblock > .titleblock__wide { grid-column: 1 / -1; }
.titleblock > .titleblock__name { background: var(--laminate); }
.titleblock__name dt { color: var(--on-dark-2); }
.titleblock__name dd { color: var(--white); font-size: 1.25rem; font-stretch: 115%; }
.titleblock dt { font-size: 0.8rem; color: var(--ink-2); }
.titleblock dd { margin: 0.15rem 0 0; font-weight: 600; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.two-col h3 { font-size: 1.5rem; color: var(--emerald); }
.two-col p { font-size: 1.1rem; }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }

/* ---------- Services page ---------- */
.services-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.services-nav { position: sticky; top: calc(var(--header-h) + 2rem); }
.services-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.services-nav a {
  display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; font-size: 0.95rem;
}
.services-nav a:hover { color: var(--emerald); border-left-color: var(--gold); }

.service { padding-block: 2.75rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; }
.service__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.service h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.service__intro { color: var(--ink-2); font-size: 1.08rem; }

.pad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pad-list li { position: relative; padding-left: 1.4rem; }
.pad-list li::before {  /* small gold "bond pad" marker */
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--gold); border-radius: 1px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--white); font-size: 0.98rem; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--laminate); color: var(--white); font-stretch: 110%; font-weight: 650; border-bottom: 0; }
.compare tbody th { width: 20%; font-weight: 600; color: var(--emerald); }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Careers ---------- */
.discipline-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.discipline-list li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-stretch: 105%; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact-list__icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; color: var(--emerald);
}
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.88rem; color: var(--ink-2); font-weight: 600; }
.contact-list a { font-weight: 600; }
.contact-list address { font-style: normal; }
.reg-line { color: var(--ink-2); font-size: 0.95rem; }

.enquiry { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--emerald); padding: clamp(1.5rem, 3vw, 2.25rem); }
.enquiry h2 { font-size: 1.6rem; }
.enquiry > p { color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.85rem;
  background: var(--white); border: 1px solid #B5C3BC; border-radius: 3px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--emerald); outline: 2px solid rgba(11, 93, 69, 0.25); outline-offset: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.form-note { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-2); }
.form-status { margin: 1.25rem 0 0; padding: 0.85rem 1rem; border-left: 3px solid var(--emerald); background: #E6F1EC; color: var(--ink); font-weight: 500; }
.form-status[data-kind="error"] { border-left-color: #B42318; background: #FCEBE9; color: #7A1A12; }
.button[disabled] { opacity: 0.65; cursor: progress; }
/* Honeypot field: off-screen for people, still present for spam bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.map { border: 1px solid var(--line); background: var(--white); scroll-margin-top: calc(var(--header-h) + 1rem); }
.map iframe { display: block; width: 100%; height: clamp(320px, 45vw, 440px); border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--laminate); color: var(--on-dark-2); font-size: 0.95rem; }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem;
  padding-block: 4rem 3rem;
}
.site-footer__about { margin-top: 1.1rem; max-width: 22rem; }
.site-footer h2 { font-size: 0.95rem; font-stretch: 108%; color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer__bottom { border-top: 1px solid rgba(175, 196, 186, 0.2); padding-block: 1.4rem; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discipline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.5rem;
    box-shadow: 0 12px 24px rgba(14, 42, 34, 0.08);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--gold); padding-left: 0.75rem; }

  .hero__inner, .split, .contact-grid, .services-layout { grid-template-columns: minmax(0, 1fr); }
  .die-figure { max-width: 420px; }
  .hero__facts, .models { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .services-nav { display: none; }
  .service__grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .service-list a { grid-template-columns: minmax(0, 1fr); }
  .steps, .two-col, .values, .form-row, .discipline-list, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .cta__actions, .hero__actions { width: 100%; }
  .cta__actions .button, .hero__actions .button { flex: 1 1 100%; }
  .brand__logo { height: 38px; }
}

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

/* ==========================================================================
   Three business lines (11 Sep 2026): Services submenu and new page layouts
   ========================================================================== */

/* ---------- Services submenu ---------- */
.has-submenu { position: relative; display: flex; align-items: center; gap: 0.1rem; }
.submenu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; margin-right: -0.4rem;
  background: none; border: 0; border-radius: 3px; cursor: pointer; color: var(--ink-2);
}
.submenu-toggle:hover { color: var(--emerald); }
.submenu-toggle svg { width: 15px; height: 15px; transition: transform 0.15s; }
.has-submenu.is-open .submenu-toggle svg { transform: rotate(180deg); }
.submenu {
  display: none;
  position: absolute; top: calc(100% + 0.6rem); left: -1.1rem; z-index: 60;
  min-width: 15.5rem; margin: 0; padding: 0.4rem 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  box-shadow: 0 14px 28px rgba(14, 42, 34, 0.12);
}
/* Invisible bridge so the pointer can travel from "Services" into the menu without it closing */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.has-submenu.is-open > .submenu { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .has-submenu:hover > .submenu { display: block; }
}
.site-nav__list .submenu a {
  display: block; padding: 0.65rem 1.1rem; border-bottom: 0;
  font-size: 0.95rem; white-space: nowrap;
}
.site-nav__list .submenu a:hover { background: var(--paper); }
.site-nav__list .submenu a[aria-current="page"] { color: var(--emerald); box-shadow: inset 3px 0 0 var(--gold); }
.site-nav__list a.is-section { color: var(--emerald); border-bottom-color: var(--gold); }

/* ---------- Home: service cards and 3-block floorplan ---------- */
.model .pad-list { margin: 0.25rem 0 1.75rem; }
.model__cta { margin-top: auto; align-self: flex-start; }
.die__block .die__title { font-size: 19px; font-weight: 700; font-stretch: 115%; fill: #F1F6F3; }
.die__block .die__sub { font-size: 12.5px; font-weight: 500; fill: var(--on-dark-2); }
.die__pattern { pointer-events: none; opacity: 0.85; }

/* ---------- Services overview rows ---------- */
.line-row {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem 4rem;
  align-items: center;
  padding-block: 3rem; border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.line-row:first-child { padding-top: 0; }
.line-row:last-child { padding-bottom: 0; border-bottom: 0; }
.line-row .lede { margin-bottom: 1.5rem; }

/* ---------- Page header with illustration (IC Design Consulting) ---------- */
.page-hero--split .page-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem 4rem; align-items: center;
}
.page-hero--split .die-figure { max-width: 360px; }

/* ---------- Talent: discipline groups ---------- */
.discipline-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.discipline-groups h3 { font-size: 1.12rem; color: var(--emerald); margin-bottom: 0.9rem; }

.note-line { margin-top: 2rem; color: var(--ink-2); }

@media (max-width: 1024px) {
  .discipline-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .has-submenu { display: block; }
  .submenu-toggle { display: none; }
  .submenu, .has-submenu.is-open > .submenu {
    display: block; position: static; min-width: 0;
    padding: 0 0 0 1rem; border: 0; box-shadow: none;
  }
  .submenu::before { display: none; }
  .site-nav__list .submenu a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .site-nav__list .submenu a[aria-current="page"] { padding-left: 0.75rem; color: var(--emerald); }
  .site-nav__list a.is-section { border-bottom-color: var(--line); }

  .line-row, .page-hero--split .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .page-hero--split .die-figure { max-width: 320px; justify-self: start; }
}

@media (max-width: 680px) {
  .discipline-groups { grid-template-columns: minmax(0, 1fr); }
}
