/* ExeterSolutions — Harbor palette */
:root {
  --ink: #0F2340;
  --ink-deep: #0A1A31;
  --blue: #2457C5;
  --amber: #E8A33D;
  --mist: #F2F6FB;
  --slate: #3E4F68;
  --line: #DCE4EF;
  --white: #FFFFFF;
  --on-ink: #C9D5E8;
  --on-ink-soft: #B9C7DD;
  --radius: 8px;
  --radius-lg: 12px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-inline: var(--gutter); }

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

/* Type */
.display { font-family: var(--display); font-stretch: 112%; font-weight: 780; letter-spacing: -0.025em; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-stretch: 112%; font-weight: 780; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-stretch: 108%; font-weight: 750; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--slate); max-width: 34em; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 16px; }
.section-intro { color: var(--slate); max-width: 38em; margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 6px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #F0B45A; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--blue); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--mist); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 750; font-size: 21px; font-stretch: 110%; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.site-nav .btn { padding: 10px 18px; min-height: 44px; font-size: 15px; }
.site-nav .btn-dark, .site-nav .btn-dark:hover { color: var(--white); }
.site-nav .btn[aria-current="page"] { box-shadow: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 12px 24px rgba(15, 35, 64, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* Sections */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-tight-top { padding-top: 0; }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink .muted, .bg-ink .section-intro, .bg-ink .lead { color: var(--on-ink); }
.bg-amber { background: var(--amber); }

/* Hero */
.hero { background: var(--mist); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-aside { flex: 1 1 480px; min-width: 0; }

.page-hero { background: var(--mist); padding-block: clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 18px; max-width: 18em; }

/* Module tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.tile { border-radius: var(--radius); padding: 14px 12px 12px; transition: transform .15s; text-decoration: none; }
.tile:hover { transform: translateY(-2px); }
.tile b { display: block; font-family: var(--display); font-weight: 750; font-size: 20px; font-stretch: 90%; line-height: 1.2; hyphens: manual; }
.tile span { display: block; font-size: 12px; margin-top: 2px; }
.tile-sap-f { background: var(--ink); color: var(--white); }
.tile-sap-f span { color: var(--on-ink-soft); }
.tile-sap-t { background: var(--blue); color: var(--white); }
.tile-sap-t span { color: #DCE6FA; }
.tile-ora-f { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); padding: 12.5px 10.5px 10.5px; }
.tile-ora-f span { color: var(--slate); }
.tile-ora-t { background: var(--amber); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; color: var(--slate); padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* Work status grid */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); margin-top: 40px; }
.status-grid > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.status-grid h3 { margin-bottom: 8px; font-size: 22px; }
.status-grid p { color: var(--slate); font-size: 16px; }

/* Panels */
.panels { display: flex; flex-wrap: wrap; gap: 20px; }
.panel { flex: 1 1 420px; min-width: 0; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 34px; }
.panel .btn { align-self: flex-start; margin-top: 8px; }
.panel-ink { background: var(--ink); color: var(--white); }
.panel-ink p { color: var(--on-ink); }
.panel-ink ul { color: #E3EAF5; }
.panel-mist { background: var(--mist); }
.panel-mist p { color: var(--slate); }
.panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mini-grid div { background: var(--white); border-radius: var(--radius); padding: 14px; }
.mini-grid strong { display: block; }
.mini-grid span { font-size: 14px; color: var(--slate); }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 44px; font-stretch: 70%; color: var(--blue); line-height: 1; }
.steps p { color: var(--slate); font-size: 16px; }
.bg-ink .step-num { color: var(--amber); }
.bg-ink .steps p { color: var(--on-ink); }

/* Split statement */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > :first-child { flex: 1 1 520px; min-width: 0; }
.split > :last-child { flex: 1 1 360px; min-width: 0; }
.statement { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-stretch: 112%; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.quote { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.5; }
.quote figcaption { font-size: 14px; color: var(--slate); }
.logos { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.logo-slot { border: 1px dashed #9AABC4; color: var(--slate); border-radius: 6px; padding: 10px 18px; font-size: 14px; }

/* CTA band */
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: clamp(48px, 6vw, 80px); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 16em; font-stretch: 110%; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--on-ink-soft); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 48px; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand, .footer-brand .brand:hover { color: var(--white); }
.footer-brand p { max-width: 24em; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols strong { color: var(--white); font-weight: 600; }
.footer-cols a { color: var(--on-ink-soft); }
.footer-cols a:hover { color: var(--white); }
.footer-base { border-top: 1px solid #1F3354; padding-block: 20px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* Jobs */
.search-bar { margin-top: 28px; background: var(--white); border-radius: var(--radius-lg); padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  border: 1.5px solid #C3CFDF; border-radius: var(--radius); padding: 11px 14px;
  min-height: 48px; background: var(--white); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(36, 87, 197, .2); }
.search-bar .btn { align-self: end; }

.jobs-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; }
.filters fieldset { border: 0; margin: 0; padding: 0; }
.filters legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer;
}
.chip:hover { background: var(--mist); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.clear-btn { font: inherit; font-size: 14px; background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 8px 0; align-self: flex-start; min-height: 44px; }
.results { flex: 999 1 560px; min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.job { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.job[hidden] { display: none; }
.job-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.job h3 { font-size: 20px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.tag-sap { background: #DCE6FA; color: var(--ink); }
.tag-oracle { background: #FBE6C4; color: var(--ink); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--slate); }
.job-auth { font-size: 14px; color: var(--blue); font-weight: 600; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.job-actions .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.empty { border: 1px dashed #9AABC4; border-radius: var(--radius-lg); padding: 24px; color: var(--slate); }
.note { font-size: 13px; color: var(--slate); margin-top: 16px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 18px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--slate); }

/* Employers */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.model { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--mist); }
.model h3 { font-size: 24px; }
.model p { color: var(--slate); font-size: 16px; }
.model .when { font-size: 14px; color: var(--ink); font-weight: 600; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.model-ink { background: var(--ink); color: var(--white); }
.model-ink p { color: var(--on-ink); }
.model-ink .when { color: var(--white); border-color: #2A3F63; }

.submittal { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 0 var(--line); }
.submittal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.submittal dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; }
.submittal dt { font-size: 13px; color: var(--slate); }
.submittal dd { margin: 2px 0 0; font-weight: 600; }
.submittal ul { margin: 0; padding-left: 20px; color: var(--slate); font-size: 16px; display: flex; flex-direction: column; gap: 4px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 20px; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: #1D6B3F; }
.form-status.err { color: #A3261B; }

/* About */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.photo { aspect-ratio: 4 / 5; background: var(--mist); border: 1px dashed #9AABC4; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--slate); font-size: 14px; }
.person strong { font-size: 18px; display: block; }
.person span { font-size: 15px; color: var(--slate); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: 40px; border-top: 2px solid var(--amber); }
.principles > div { padding: 24px 28px 0 0; }
.principles h3 { margin-bottom: 8px; }
.principles p { color: var(--on-ink); font-size: 16px; }

/* Contact */
.contact-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-main { flex: 999 1 560px; min-width: 0; }
.contact-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 600; font-size: 16px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.info-card { background: var(--mist); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.info-card strong { font-family: var(--display); font-size: 19px; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-12 { margin-bottom: 12px; }
