/* ==========================================================================
   TASK ASSIST // GLOBAL OFFSHORE OPERATIONS
   Modern Monochrome Design System (Zero Color Hues, Refined Depth & Surfaces)
   Palette: #FFFFFF | #FAFAFA | #F4F4F5 | #E4E4E7 | #71717A | #52525B | #18181B | #09090B
   ========================================================================== */

:root {
  --bg-white: #ffffff;
  --bg-subtle: #fafafa;
  --bg-grey: #f4f4f5;
  --bg-black: #09090b;
  --bg-black-elevated: #18181b;

  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #a1a1aa;

  --border-dark: #18181b;
  --border-light: #e4e4e7;
  --border-medium: #d4d4d8;
  --border-on-dark: #27272a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-md: 0 4px 16px rgba(9, 9, 11, 0.05), 0 1px 3px rgba(9, 9, 11, 0.03);
  --shadow-lg: 0 16px 40px rgba(9, 9, 11, 0.08), 0 4px 12px rgba(9, 9, 11, 0.04);

  --container-max: 1280px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-white);
  color: var(--text-primary);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================================================
   Utility & Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(4rem, 6.5vw, 6rem);
  padding-bottom: clamp(4rem, 6.5vw, 6rem);
  border-bottom: 1px solid var(--border-light);
}

.section--grey {
  background-color: var(--bg-subtle);
}

.section--dark {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
}

.section--tight {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-grey);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.section--dark .eyebrow {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-on-dark);
  color: var(--text-on-dark-muted);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.h1,
h1 {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.35rem 0;
  color: var(--text-primary);
}

.h2,
h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem 0;
}

.h3,
h3 {
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem 0;
}

.lead {
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 64ch;
  margin: 0 0 2rem 0;
}

.section--dark .lead {
  color: var(--text-on-dark-muted);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-header__copy {
  max-width: 700px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--bg-black-elevated);
  background-color: var(--bg-black-elevated);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: #27272a;
  border-color: #27272a;
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.btn--secondary {
  background-color: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--bg-grey);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.section--dark .btn {
  background-color: var(--bg-white);
  color: var(--text-primary);
  border-color: var(--bg-white);
}

.section--dark .btn:hover,
.section--dark .btn:focus-visible {
  background-color: var(--bg-grey);
  border-color: var(--bg-grey);
  color: var(--text-primary);
}

.section--dark .btn--secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  border-color: var(--border-on-dark);
}

.section--dark .btn--secondary:hover,
.section--dark .btn--secondary:focus-visible {
  background-color: var(--bg-white);
  color: var(--text-primary);
  border-color: var(--bg-white);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.84rem;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #27272a 0%, #09090b 100%);
  color: var(--text-on-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.country-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.country-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.78rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.country-nav__link:hover {
  background-color: var(--bg-grey);
  color: var(--text-primary);
}

.country-nav__link--active {
  background-color: var(--bg-grey);
  color: var(--text-primary);
  font-weight: 600;
}

.country-nav__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-white);
  line-height: 1.1;
}

.menu-toggle {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero__grid {
  display: block;
  max-width: 880px;
}

/* ==========================================================================
   Metrics Strip (Modern Monochrome Card Strip)
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.metric-cell {
  padding: 2.25rem var(--gutter);
  border-right: 1px solid var(--border-light);
  background-color: var(--bg-white);
}

.metric-cell:last-child {
  border-right: none;
}

.metric-cell__value {
  font-family: var(--font-mono);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.metric-cell__label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.hairline-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hairline-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hairline-card {
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hairline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card--grey {
  background-color: var(--bg-subtle);
}

.card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.card__body p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-primary);
}

.card__meta {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background-color: var(--bg-grey);
  color: var(--text-secondary);
}

.badge--solid {
  background-color: var(--bg-black-elevated);
  border-color: var(--bg-black-elevated);
  color: var(--text-on-dark);
}

/* ==========================================================================
   Anchor Sub-Navigation (Australia Page Pillars)
   ========================================================================== */

.subnav-strip {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.subnav-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.subnav-strip__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.subnav-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subnav-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  color: var(--text-primary);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.subnav-pill:hover {
  border-color: var(--bg-black-elevated);
  background-color: var(--bg-black-elevated);
  color: var(--text-on-dark);
}

/* ==========================================================================
   Interactive Role Explorer (Filter Tabs + Role Matrix)
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  background-color: var(--bg-grey);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background-color: var(--bg-black-elevated);
  border-color: var(--bg-black-elevated);
  color: var(--text-on-dark);
}

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

.role-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.role-card.is-hidden {
  display: none;
}

.role-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.role-card__rate {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-grey);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Cost & Savings Calculator (Australia Subpage)
   ========================================================================== */

.calc-shell {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.calc-inputs {
  padding: 2.25rem;
  border-right: 1px solid var(--border-light);
}

.calc-output {
  padding: 2.25rem;
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border-light);
}

.calc-row:last-of-type {
  border-bottom: none;
}

.calc-row__info strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.calc-row__info span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stepper__btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.stepper__btn:hover {
  background-color: var(--bg-black-elevated);
  color: var(--text-on-dark);
}

.stepper__val {
  width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  line-height: 36px;
}

.calc-big-figure {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.4rem 0;
}

.calc-breakdown {
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
  padding: 1rem 0;
  display: grid;
  gap: 0.75rem;
}

.calc-breakdown__line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}

.calc-breakdown__line strong {
  color: var(--text-on-dark);
}

.calc-footnote {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Tables (Security, Country Benchmarks)
   ========================================================================== */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  font-size: 0.92rem;
}

thead th {
  background-color: var(--bg-grey);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-medium);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   4-Step Operating Model Timeline
   ========================================================================== */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step-card {
  padding: 1.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-grey);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card__time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

/* ==========================================================================
   Modal ("Build Your Offshore Team")
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-head {
  padding: 1.25rem 1.75rem;
  background-color: var(--bg-black-elevated);
  color: var(--text-on-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-white);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.75rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--bg-black);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

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

.check-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.check-option:hover {
  background-color: var(--bg-subtle);
}

.check-option input {
  accent-color: var(--bg-black-elevated);
}

.proposal-summary {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  padding: 1.5rem;
  display: none;
}

.proposal-summary.is-visible {
  display: block;
}

.proposal-summary__pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  line-height: 1.6;
  margin: 1rem 0;
  padding: 1rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
  color: var(--text-on-dark);
  padding-top: 3.75rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-on-dark);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  margin: 0 0 1rem 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-on-dark);
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   We Proudly Work With (Client Logo Showcase)
   ========================================================================== */

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.client-logo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.client-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.client-logo-mark {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-grey);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  color: var(--text-primary);
}

.client-logo-info {
  min-width: 0;
}

.client-logo-info h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem 0;
  line-height: 1.3;
}

.client-logo-info span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 1.25rem var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .country-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .country-nav__link {
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-light);
  }

  .calc-shell {
    grid-template-columns: 1fr;
  }

  .calc-inputs {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .metrics-grid,
  .step-grid,
  .step-grid--5,
  .hairline-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cell {
    border-bottom: 1px solid var(--border-light);
  }

  .metric-cell:nth-child(2n) {
    border-right: none;
  }

  .grid-4,
  .grid-3,
  .hairline-grid--3,
  .client-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .grid-2,
  .role-grid,
  .hairline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .metrics-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .role-grid,
  .hairline-grid,
  .hairline-grid--3,
  .hairline-grid--4,
  .step-grid,
  .step-grid--5,
  .client-logo-grid,
  .form-grid,
  .checkbox-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .hero {
    padding-top: 2.85rem;
    padding-bottom: 2.85rem;
  }

  .h1,
  h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .h2,
  h2 {
    font-size: clamp(1.42rem, 5.2vw, 1.75rem);
    line-height: 1.2;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .eyebrow {
    white-space: normal;
    line-height: 1.4;
    max-width: 100%;
  }

  .card,
  .hairline-card,
  .role-card,
  .step-card {
    padding: 1.4rem;
  }

  .client-logo-card {
    padding: 1.15rem 1.25rem;
  }

  .metric-cell {
    padding: 1.4rem var(--gutter);
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .metric-cell:last-child {
    border-bottom: none;
  }

  .card__meta,
  .role-card__head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero .btn-group .btn,
  .section--dark .btn-group .btn {
    width: 100%;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 560px;
  }

  .modal-head,
  .modal-body {
    padding: 1.25rem;
  }
}
