/* Graydiant website. Measurements follow Mockup #4 (1440px desktop); smaller layouts are ours.
   Colours are tokens: Graydiant Green #80A088 is a fill only (2.9:1 on white), so green text
   uses the darker button green #4F7058. */

@font-face { font-family: Lato; src: url("fonts/lato-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Lato; src: url("fonts/lato-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Lato; src: url("fonts/lato-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Lato; src: url("fonts/lato-bolditalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --grey: #5c5c5c;          /* Graydiant Grey: header */
  --grey-dark: #474747;     /* footer */
  --green: #80a088;         /* Graydiant Green: rules, borders, fills */
  --green-dark: #4f7058;    /* buttons and green text (5.6:1 on white) */
  --green-darker: #3b5643;  /* hover */
  --green-wash: #e3eae4;
  --canvas: #f4f5f3;
  --card-tint: #f1f3f1;
  --paper: #ffffff;
  --ink: #2f2f2f;
  --text: #3f3f3f;
  --body: #444444;
  --muted: #555555;
  --border: #e1e4e1;
  --control: #8a948c;       /* form control outlines, 3:1 on white */
  --error: #a33a3a;
  --font: Lato, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5.6vw, 80px);
  --max: 1280px;
  --header-h: 96px;
  --radius: 6px;
  --shadow: 0 14px 36px rgba(47, 47, 47, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main:focus { outline: none; }
main > section:last-child { flex-grow: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green-darker); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Browsers that support it avoid leaving one or two words alone on a paragraph's last line. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.accent { color: var(--green-dark); }
em.accent { font-style: italic; }
.eyebrow { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.band { padding: 96px 0; }
.band-tint { background: var(--canvas); }

/* Header ----------------------------------------------------------------------------------- */
.masthead { background: var(--grey); color: #fff; position: relative; z-index: 20; }
.masthead-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand img { height: 52px; width: auto; }
.tagline { font-size: 15.5px; letter-spacing: 0.02em; white-space: nowrap; }
.site-menu { display: flex; align-items: center; gap: 28px; }
.primary-nav > ul { display: flex; align-items: center; gap: 30px; }
.primary-nav > ul > li > a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; padding: 10px 0; white-space: nowrap; display: inline-block; }
.primary-nav > ul > li > a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.primary-nav > ul > li > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 10px; }
/* Talent Portal: the underline sits under the label only, not the caret. */
.primary-nav > ul > li > a.portal-link, .primary-nav > ul > li > a.portal-link:hover, .primary-nav > ul > li > a.portal-link[aria-current] { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.portal-label { text-decoration: underline; text-decoration-color: #fff; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.portal-toggle { display: none; }
.portal-link:hover .portal-label, .portal-link[aria-current] .portal-label { text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.nav-menu { position: relative; }
.contact-toggle { font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: var(--green-dark); border: 1px solid var(--green); border-radius: 4px; min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.contact-toggle:hover { background: var(--green-darker); }
.caret { transition: transform 0.15s ease; }
.nav-options { display: none; position: absolute; right: 0; top: 100%; padding-top: 10px; z-index: 30; }
.nav-options::before { content: ""; position: absolute; inset: 10px 0 0; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--green-dark); border-radius: var(--radius); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16); }
.nav-options li { position: relative; }
.nav-options li:first-child { padding-top: 8px; }
.nav-options li:last-child { padding-bottom: 8px; }
.nav-options a { display: block; margin: 0 8px; padding: 12px 18px; min-width: 234px; color: var(--ink); font-size: 16px; font-weight: 700; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.nav-options a:hover, .nav-options a:focus-visible, .nav-options a[aria-current="page"] { background: var(--card-tint); color: var(--ink); text-decoration: none; }
.nav-menu:hover .nav-options, .nav-menu:focus-within .nav-options, .nav-menu.open .nav-options { display: block; }
.nav-menu.closed .nav-options { display: none; }
.portal-options { right: auto; left: -8px; }
.nav-menu.open .caret { transform: rotate(180deg); }
.social { display: flex; align-items: center; gap: 10px; }
.social a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.menu-toggle { display: none; }
.contact-heading { display: none; }

/* Footer ----------------------------------------------------------------------------------- */
.site-footer { background: var(--grey-dark); color: #e6e6e6; }
.footer-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--header-h); display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.footer-tagline { font-size: 30px; letter-spacing: 0.01em; color: #fff; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: #fff; text-decoration-thickness: 2px; }
.copyright { border-left: 1px solid #777; padding-left: 28px; color: #d6d6d6; }

/* Buttons and cards ------------------------------------------------------------------------ */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; background: var(--green-dark); color: #fff; border: 2px solid var(--green-dark); border-radius: 4px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-darker); border-color: var(--green-darker); color: #fff; }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button-block { width: 100%; }
.text-button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--green-dark); text-decoration: underline; cursor: pointer; }
.card { background: var(--paper); border: 1px solid var(--border); border-top: 5px solid var(--green-dark); border-radius: var(--radius); padding: 40px; box-shadow: 0 10px 30px rgba(40, 40, 40, 0.08); }
.card-title { font-size: 30px; font-weight: 700; line-height: 1.2; }
.card-subtitle { font-size: 16px; color: var(--muted); margin-top: 6px; }
.card-text, .card-text p { font-size: 18px; line-height: 1.6; color: var(--body); }
.centered .wrap { display: flex; justify-content: center; align-items: center; min-height: 100%; }
.centered { display: flex; align-items: center; padding: 72px 0; }
.message-card { max-width: 620px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.message-card .button { margin-top: 8px; }

/* Home: hero ------------------------------------------------------------------------------- */
.hero { padding: 88px 0 80px; }
.hero-title { font-size: clamp(34px, 4.2vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.hero-subtitle { margin-top: 20px; font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; line-height: 1.35; color: var(--text); }
.rule { width: 64px; height: 3px; background: var(--green); margin-top: 32px; }
.hero-body { display: flex; gap: 72px; align-items: center; margin-top: 32px; }
.hero-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy p { font-size: 20px; line-height: 1.65; color: #4a4a4a; }
.hero-copy .hero-closing { margin-top: 4px; font-size: 21px; line-height: 1.6; color: var(--green-dark); }
.hero-photo { margin: 0; width: 460px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--green-dark); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 434 / 380; object-fit: cover; object-position: 100% 50%; border-radius: 3px; }
.credentials { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 32px; margin-top: 56px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.founders { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.avatars { display: flex; flex-shrink: 0; }
.avatars img { width: 56px; height: 56px; max-width: none; border-radius: 50%; object-fit: cover; border: 3px solid #fff; position: relative; }
.avatars img + img { margin-left: -14px; }
.avatars img:nth-child(1) { z-index: 3; }
.avatars img:nth-child(2) { z-index: 2; }
.avatars img:nth-child(3) { z-index: 1; }
.founders-text { display: flex; flex-direction: column; gap: 2px; }
/* "Founded by" and the figures share one style, and so do the text lines under them. */
.founders-text .eyebrow, .stat-value { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); }
.founders-label, .stat-label { font-size: 16px; font-weight: 700; color: var(--ink); }
.founders-label { white-space: nowrap; }
.stat-label { text-wrap: balance; }
.founders:hover .founders-label { text-decoration: underline; }
.stat { display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--green); padding-left: 18px; }
.stat-lines { gap: 0; }
.stat-line { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Home: three forces ----------------------------------------------------------------------- */
.section-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.12; }
.forces .wrap { display: flex; flex-direction: column; gap: 44px; }
.force-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.force { background: var(--card-tint); border-radius: var(--radius); border-top: 4px solid var(--green); padding: 36px 28px; display: flex; flex-direction: column; gap: 18px; }
.force-number { width: 60px; height: 60px; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.force-title { font-size: clamp(22px, 2vw, 26px); font-weight: 700; }
.force-body p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--text); }
.callout { border: 3px solid var(--green); border-radius: var(--radius); padding: 30px 40px; text-align: center; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--text); }

/* Home: humans in the loop ----------------------------------------------------------------- */
.loop { padding: 72px 0 96px; }
.loop .wrap { display: flex; flex-direction: column; gap: 44px; }
.banner { text-align: center; font-size: clamp(18px, 2vw, 28px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-dark); font-weight: 700; margin-bottom: 52px; }
.banner u { text-underline-offset: 5px; text-decoration-thickness: 2px; }
.split { display: flex; gap: 56px; align-items: flex-start; }
.split-center { align-items: center; gap: 64px; }
.split-title { flex: 0 0 auto; width: min(680px, 48%); font-size: clamp(28px, 2.9vw, 40px); line-height: 1.2; }
.split-title.small { width: min(560px, 42%); font-size: clamp(26px, 2.5vw, 36px); }
/* On wide screens the heading column takes the width of its longest line, so short headings stay on
   one line; a longer one still wraps once it reaches 58% of the row. */
@media (min-width: 1201px) {
  .split-title, .split-title.small { width: max-content; max-width: 58%; }
}
.split-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 18px; }
.split-copy p { font-size: 20px; line-height: 1.65; color: var(--body); }
.split-copy.ruled { border-left: 3px solid var(--green); padding-left: 36px; }
.list-title { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); font-weight: 700; margin-bottom: -22px; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 3px solid var(--green); }
.pillar-title { font-size: 21px; font-weight: 700; }
.pillar-body p { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Home: contact boxes ---------------------------------------------------------------------- */
.change .wrap { display: flex; flex-direction: column; gap: 48px; }
.cards-title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; margin: 8px 0 -16px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-cards li { display: flex; }
.contact-card { flex: 1; background: var(--canvas); border-radius: var(--radius); border-top: 4px solid var(--green); padding: 30px 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
/* Sized so each box's line fits on two lines on a standard desktop (1440px and wider). */
.contact-card-text { font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.contact-card-button { margin-top: auto; align-self: flex-start; border: 2px solid var(--green-dark); color: var(--green-dark); background: #fff; border-radius: 4px; padding: 0 22px; min-height: 50px; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
/* The first box is highlighted until another one is hovered or focused, as in the mockup. */
.contact-card:hover, .contact-card:focus-visible,
.contact-cards:not(:hover):not(:focus-within) li:first-child .contact-card { border-top-color: var(--green-dark); color: var(--ink); }
.contact-card:hover, .contact-card:focus-visible { box-shadow: var(--shadow); }
.contact-card:hover .contact-card-button, .contact-card:focus-visible .contact-card-button,
.contact-cards:not(:hover):not(:focus-within) li:first-child .contact-card-button { background: var(--green-dark); color: #fff; }

/* Solutions and other centred pages -------------------------------------------------------- */
.holding { display: flex; align-items: center; min-height: 600px; padding: 80px 0; }
.holding-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; max-width: calc(860px + 2 * var(--gutter)); }
.holding-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-wash); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.holding .eyebrow { font-size: 16px; letter-spacing: 0.18em; }
.holding-title { font-size: clamp(30px, 3.3vw, 44px); font-weight: 700; line-height: 1.2; }

/* Team ------------------------------------------------------------------------------------- */
.team { padding: 88px 0 96px; }
.team .wrap { display: flex; flex-direction: column; gap: 32px; }
.team-intro p { font-size: 20px; line-height: 1.6; color: var(--body); max-width: 1180px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: var(--radius); overflow: hidden; }
.person-head { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.person-main { flex: 1; display: flex; gap: 18px; padding: 18px 20px 20px; }
.person-photo { width: 130px; height: 160px; object-fit: cover; object-position: 50% 20%; flex-shrink: 0; border-radius: 4px; filter: grayscale(1); }
.person-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person-name { font-size: 28px; font-weight: 700; }
.person-role { font-size: 18px; color: var(--green-dark); font-weight: 700; }
.person-bio { display: flex; flex-direction: column; gap: 10px; }
.person-bio p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.person-link { margin-top: auto; padding-top: 6px; min-height: 32px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; text-decoration: none; }
.person-link:hover { text-decoration: underline; }
.person-link svg { flex-shrink: 0; }
/* Cards in a row share their header height, so the photos line up when one name or title wraps. */
@supports (grid-template-rows: subgrid) {
  .person { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
/* Three cards side by side below 1400px leave the bio too narrow beside the photo, so the photo
   runs across the card above the bio, as on phones. */
@media (min-width: 1025px) and (max-width: 1399px) {
  .person-main { flex-direction: column; }
  .person-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 15%; }
}

/* Insights --------------------------------------------------------------------------------- */
.insights .wrap { display: flex; flex-direction: column; gap: 40px; }
.article-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.article-card { border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.article-card .eyebrow { font-size: 13px; letter-spacing: 0.16em; }
.article-card-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.article-card-title a { color: var(--ink); text-decoration: none; }
.article-card-title a:hover { text-decoration: underline; }
.article-card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.read-more { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; }
.lead-text { font-size: 20px; color: var(--body); }

/* Forms ------------------------------------------------------------------------------------ */
.contact { padding: 80px 0 96px; }
.contact .wrap { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.contact-header { text-align: center; display: flex; flex-direction: column; gap: 16px; }
.contact-header .section-title { font-size: clamp(34px, 3.6vw, 50px); }
.contact-subtitle { font-size: 21px; line-height: 1.55; color: var(--body); }
.form-card { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 4px 18px rgba(40, 40, 40, 0.06); }
.form-card .eyebrow { letter-spacing: 0.08em; }
.form-heading { font-size: 22px; line-height: 1.35; font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--text); }
.optional { font-weight: 400; color: #6b6b6b; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--control); border-radius: 4px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.field textarea { min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field select { cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: #767676; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 1px; border-color: var(--green-dark); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); border-width: 2px; }
.field-error { font-size: 14px; color: var(--error); font-weight: 700; }
.error-summary { border: 2px solid var(--error); border-radius: 4px; padding: 14px 18px; color: var(--ink); background: #fbf3f3; }
.error-summary ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.error-summary a { color: var(--error); font-weight: 700; }
.consent { font-size: 14px; line-height: 1.5; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--body); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green-dark); flex-shrink: 0; }
/* A checkbox inside the form grid: undo the text-box sizing above. */
.field .check { flex-direction: row; font-weight: 400; color: var(--body); }
.field .check input { width: 18px; min-height: 0; height: 18px; padding: 0; }
.consent-check { font-size: 15px; }
.forms-closed { font-size: 18px; line-height: 1.6; color: var(--body); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Talent Portal placeholder ---------------------------------------------------------------- */
.login-card { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 18px; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.portal-notice { font-size: 15px; line-height: 1.5; background: var(--green-wash); border-left: 4px solid var(--green-dark); padding: 12px 14px; border-radius: 4px; color: var(--ink); }

/* Talent Portal choice page ---------------------------------------------------------------- */
.portal-choice .wrap { display: flex; flex-direction: column; gap: 40px; }
.portal-choice-header { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.portal-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.portal-option { display: flex; flex-direction: column; gap: 14px; height: 100%; color: inherit; text-decoration: none; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.portal-option:hover { color: inherit; box-shadow: 0 16px 36px rgba(40, 40, 40, 0.14); transform: translateY(-2px); }
.portal-option:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.portal-option .card-text { flex: 1; }
.portal-option .button { align-self: flex-start; }
.portal-option:hover .button { background: var(--green-darker); border-color: var(--green-darker); }
/* Login pages, after Karen's dev pack v3: a picture of the portal in a rounded window, the login
   box over it starting just below the portal's menu bar. */
.portal-stage { position: relative; overflow: hidden; background: var(--canvas); min-height: 768px; padding: 112px 0 64px; }
.portal-backdrop { position: absolute; top: 30px; left: 40px; right: 40px; height: 678px; max-width: 1360px; margin: 0 auto; border: 1px solid #c9cfca; border-radius: 12px; overflow: hidden; background: var(--canvas); box-shadow: 0 8px 30px rgba(40, 40, 40, 0.14); pointer-events: none; user-select: none; }
.portal-backdrop img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: left top; }
.portal-front { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.portal-callout { max-width: 100%; color: #946000; }
.portal-callout p { margin: 0; padding: 12px 24px; border: 2px solid #b87900; border-radius: 12px; background: var(--paper); box-shadow: 0 6px 20px rgba(40, 40, 40, 0.12); font-size: 19px; font-weight: 700; line-height: 1.35; text-align: center; }
.portal-front .login-card { max-width: 440px; padding: 36px 38px; gap: 16px; box-shadow: 0 18px 48px rgba(20, 20, 20, 0.28); }
.portal-front .field input { min-height: 48px; }
.login-heading { display: flex; flex-direction: column; gap: 6px; }
.login-heading .card-subtitle { margin-top: 0; font-size: 15.5px; line-height: 1.5; }
.portal-new { font-size: 14px; color: var(--muted); text-align: center; }
.portal-new a { color: var(--green-dark); font-weight: 700; }
.portal-note { display: flex; gap: 10px; align-items: flex-start; background: #eef3ef; border-left: 4px solid var(--green-dark); border-radius: 4px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: #3f4a42; }
.portal-note svg { flex-shrink: 0; margin-top: 1px; color: var(--green-dark); }

/* Documents -------------------------------------------------------------------------------- */
.document { padding: 80px 0 96px; }
.prose { margin-top: 32px; font-size: 18px; line-height: 1.7; color: var(--body); }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 26px; color: var(--ink); margin-top: 40px; }
.prose h3 { font-size: 21px; color: var(--ink); margin-top: 28px; }
.document-date { margin-top: 12px; font-size: 15px; color: var(--muted); }
.prose ul { list-style: disc; padding-left: 24px; }
.prose ol { list-style: decimal; padding-left: 28px; }
.prose li + li { margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose .wide table { font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--card-tint); color: var(--ink); font-weight: 700; }

/* Responsive ------------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --header-h: 80px; }
  .brand img { height: 44px; }
  .tagline { font-size: 13.5px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 4px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; position: relative; transition: transform 0.15s ease; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--grey); border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2); }
  .masthead.menu-open .site-menu { display: flex; }
  .no-js .site-menu { display: flex; position: static; box-shadow: none; flex-basis: 100%; padding: 8px 0 24px; }
  .no-js .menu-toggle { display: none; }
  .no-js .masthead-inner { flex-wrap: wrap; padding-top: 12px; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .primary-nav > ul > li > a { display: block; padding: 14px 0; }
  /* Talent Portal and Contact Us open in place when tapped (site.js) and start open on one of
     their own pages. Without JavaScript both stay open and the toggles are hidden. */
  .primary-nav > ul > li > a.portal-link, .primary-nav > ul > li > a.portal-link:hover, .primary-nav > ul > li > a.portal-link[aria-current] { display: none; }
  .portal-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 0; background: none; border: 0; color: #fff; font: inherit; font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; }
  .portal-toggle .portal-label { text-decoration: none; }
  .portal-toggle[data-current] .portal-label { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 10px; }
  .contact-menu { padding: 16px 0 4px; border-bottom: 0 !important; }
  .contact-heading { display: none; }
  .contact-toggle { display: flex; width: 100%; justify-content: space-between; }
  .nav-options, .nav-menu:hover .nav-options, .nav-menu:focus-within .nav-options, .nav-menu.closed .nav-options { display: none; position: static; padding: 0; }
  .nav-menu.open .nav-options, .no-js .nav-menu .nav-options { display: flex; flex-direction: column; }
  .nav-options::before { display: none; }
  .nav-options li:first-child, .nav-options li:last-child { padding: 0; }
  .nav-options a { margin: 0; min-width: 0; padding: 10px 0 10px 18px; color: #fff; font-weight: 400; background: none; border-radius: 0; white-space: normal; }
  .nav-options a:hover, .nav-options a:focus-visible, .nav-options a[aria-current="page"] { background: none; color: #fff; text-decoration: underline; }
  .portal-options { padding-bottom: 8px; }
  .contact-options { padding-top: 8px; }
  .no-js .primary-nav > ul > li > a.portal-link, .no-js .primary-nav > ul > li > a.portal-link:hover, .no-js .primary-nav > ul > li > a.portal-link[aria-current] { display: flex; }
  .no-js .portal-toggle, .no-js .contact-toggle { display: none; }
  .portal-link .caret { display: none; }
  .no-js .contact-heading { display: block; color: #fff; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
  .social { padding-top: 4px; }
  .hero-body { gap: 48px; }
  .hero-photo { width: 380px; }
  .credentials { flex-wrap: wrap; justify-content: flex-start; gap: 20px 36px; }
  .founders { flex-basis: 100%; }
  .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .band { padding: 72px 0; }
  .hero { padding: 64px 0; }
  .hero-body { flex-direction: column; align-items: stretch; }
  .hero-photo { width: 100%; max-width: 560px; }
  .split, .split-center { flex-direction: column; gap: 24px; align-items: stretch; }
  .split-title, .split-title.small { width: auto; }
  .banner { margin-bottom: 8px; }
  .force-list, .contact-cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: 1fr; max-width: 640px; }
  .footer-tagline { font-size: 26px; }
  .footer-inner { padding-top: 24px; padding-bottom: 24px; }
}

@media (max-width: 768px) {
  .band { padding: 56px 0; }
  .hero-copy p, .split-copy p, .team-intro p { font-size: 18px; }
  .credentials { padding: 22px; }
  .stat { flex-basis: 100%; }
  .split-copy.ruled { padding-left: 20px; }
  .callout { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .portal-options-grid { grid-template-columns: minmax(0, 1fr); }
  /* Phones: the top of the portal shows as a band, and the login box overlaps its lower edge. */
  .portal-stage { min-height: 0; padding: 200px 0 40px; }
  .portal-backdrop { top: 16px; left: var(--gutter); right: var(--gutter); height: 260px; }
  .portal-front .login-card { padding: 28px 22px; }
  /* Let "Financial Services Insiders" wrap rather than spill out of the box. */
  .founders-text { min-width: 0; }
  .founders-label, .stat-line { white-space: normal; }
  .card { padding: 28px 22px; }
  .contact-subtitle { font-size: 18px; }
  .article-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .copyright { border-left: 0; padding-left: 0; flex-basis: 100%; }
  .holding { min-height: 420px; }
  /* Wide tables scroll sideways rather than squeezing each column to a word or two. */
  .prose .wide table { min-width: 640px; }
}

@media (max-width: 480px) {
  .tagline { font-size: 12px; }
  .menu-label { display: none; }
  .pillars { grid-template-columns: 1fr; }
  /* On phones too. */
  .person-main { flex-direction: column; }
  .person-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 15%; }
  .avatars img { width: 48px; height: 48px; }
  /* Beside the photos, "Founded by" at full size would break after "Founded". */
  .founders { flex-direction: column; align-items: flex-start; gap: 10px; }
  .login-row { flex-wrap: wrap; }
}

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