/* Highmark Technologies — site styles */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: oklch(0.982 0.004 85); color: oklch(0.19 0.012 260); font-family: "IBM Plex Sans", system-ui, sans-serif; }
* { box-sizing: border-box; }
a { color: oklch(0.32 0.07 258); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: oklch(0.24 0.06 258); }
::selection { background: oklch(0.32 0.07 258); color: #fff; }
:focus-visible { outline: 2px solid oklch(0.32 0.07 258); outline-offset: 3px; }
input, textarea, button { font: inherit; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.32 0.07 258); margin: 0 0 26px; }
.index { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.16em; color: oklch(0.32 0.07 258); margin: 0 0 14px; }
.label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.38 0.012 260); margin: 0 0 8px; }
.section-title { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.01em; margin: 0 0 48px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: oklch(0.982 0.004 85 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid oklch(0.89 0.006 260); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 6px 0; }
.logo-mark { width: 11px; height: 11px; background: oklch(0.32 0.07 258); transform: rotate(45deg); display: block; flex: none; }
.logo-text { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 20px; letter-spacing: 0.16em; color: oklch(0.19 0.012 260); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; color: oklch(0.34 0.012 260); border-bottom: 1px solid transparent; padding: 4px 0; }
.nav a:hover { color: oklch(0.32 0.07 258); }
.nav a[aria-current="page"] { color: oklch(0.32 0.07 258); border-bottom-color: oklch(0.32 0.07 258); }

/* ---------- Buttons & links ---------- */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; background: oklch(0.32 0.07 258); color: #fff; border: none; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; }
.btn-primary:hover { background: oklch(0.25 0.065 258); color: #fff; }
.btn-outline { padding: 13px 26px; background: none; border: 1px solid oklch(0.32 0.07 258); color: oklch(0.32 0.07 258); font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-outline:hover { background: oklch(0.32 0.07 258); color: #fff; }
.link-underline { font-size: 15px; font-weight: 500; color: oklch(0.32 0.07 258); text-decoration: none; border-bottom: 1px solid oklch(0.32 0.07 258); padding-bottom: 4px; background: none; border-top: none; border-left: none; border-right: none; padding-top: 0; padding-left: 0; padding-right: 0; cursor: pointer; }
.link-plain { color: oklch(0.19 0.012 260); text-decoration: none; border-bottom: 1px solid oklch(0.32 0.07 258); padding-bottom: 3px; }
.link-plain:hover { color: oklch(0.32 0.07 258); }

/* ---------- Home: hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 64px); align-items: end; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.hero-copy { flex: 1 1 400px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 30px; }
.hero h1 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(40px, 5.6vw, 74px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.hero-lead { font-size: 18px; line-height: 1.6; color: oklch(0.36 0.012 260); max-width: 60ch; margin: 32px 0 0; }
.hero .btn-primary { margin-top: 40px; }
.hero-art { flex: 1 1 260px; max-width: 420px; position: relative; aspect-ratio: 1 / 1; border: 1px solid oklch(0.88 0.006 260); background: repeating-linear-gradient(90deg, oklch(0.32 0.07 258 / 0.14) 0 1px, transparent 1px 13px); overflow: hidden; }
.hero-art-bars { position: absolute; left: 0; bottom: 0; width: 100%; height: 58%; background: repeating-linear-gradient(90deg, oklch(0.32 0.07 258) 0 1px, transparent 1px 13px); }
.hero-art-square { position: absolute; left: 14%; top: 26%; width: 26%; aspect-ratio: 1 / 1; background: oklch(0.32 0.07 258); }
.hero-art-diamond { position: absolute; right: 12%; top: 12%; width: 14%; aspect-ratio: 1 / 1; border: 1px solid oklch(0.32 0.07 258); transform: rotate(45deg); }

/* ---------- Home: capabilities ---------- */
.capabilities { border-top: 1px solid oklch(0.89 0.006 260); padding: clamp(56px, 7vw, 90px) 0; }
.capabilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; }
.capabilities h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 22px; margin: 0 0 14px; }
.capabilities p:not(.index) { font-size: 16px; line-height: 1.65; color: oklch(0.36 0.012 260); margin: 0; }

/* ---------- Home: principles (dark) ---------- */
.principles { background: oklch(0.19 0.018 260); color: oklch(0.96 0.004 85); }
.principles .container { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.principles .section-title { margin-bottom: 52px; color: oklch(0.96 0.004 85); }
.principles ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.principles li { border-top: 1px solid oklch(0.42 0.02 260); padding-top: 20px; }
.principles .index { color: oklch(0.78 0.04 258); margin-bottom: 12px; }
.principles h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 20px; margin: 0 0 10px; color: oklch(0.97 0.004 85); }
.principles li p:not(.index) { font-size: 15px; line-height: 1.6; color: oklch(0.85 0.008 260); margin: 0; }

/* ---------- Home: facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: oklch(0.89 0.006 260); margin: clamp(56px, 7vw, 90px) 0; }
.facts > div { background: oklch(0.982 0.004 85); padding: 36px 28px; }
.facts p { font-family: Newsreader, Georgia, serif; font-size: 21px; margin: 0; line-height: 1.3; }

/* ---------- Home: closing ---------- */
.closing { border-top: 1px solid oklch(0.89 0.006 260); padding: clamp(56px, 7vw, 96px) 0; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 40px; }
.closing p { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -0.01em; margin: 0; max-width: 34ch; }

/* ---------- Inner pages: head ---------- */
.page-head { padding: clamp(48px, 7vw, 92px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid oklch(0.89 0.006 260); }
.page-head h1 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; margin: 0; max-width: 22ch; }
.page-head h1.wide { max-width: 24ch; }
.page-head .lead { font-size: 18px; line-height: 1.6; color: oklch(0.36 0.012 260); max-width: 66ch; margin: 28px 0 0; }
.page-head--legal { padding-bottom: clamp(28px, 4vw, 48px); }
.page-head--legal h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1; max-width: none; }

/* ---------- What we do: discipline ---------- */
.discipline { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px); padding: clamp(44px, 6vw, 76px) 0; border-bottom: 1px solid oklch(0.89 0.006 260); }
.discipline:last-child { border-bottom: none; }
.discipline-head { flex: 0 1 200px; min-width: 0; }
.discipline-head .index { margin-bottom: 12px; }
.discipline-head h2 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.2; margin: 0; }
.discipline-body { flex: 1 1 420px; min-width: 0; }
.discipline-body p { font-size: 17px; line-height: 1.68; color: oklch(0.3 0.012 260); max-width: 70ch; margin: 0 0 18px; }
.list-lined { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list-lined li { font-size: 15px; color: oklch(0.36 0.012 260); border-top: 1px solid oklch(0.91 0.006 260); padding-top: 10px; }

/* ---------- Approach: essay ---------- */
.essay { padding: clamp(44px, 6vw, 80px) 0; display: grid; gap: clamp(44px, 5vw, 64px); max-width: 760px; }
.essay h2 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; margin: 0 0 16px; }
.essay p { font-size: 17px; line-height: 1.72; color: oklch(0.3 0.012 260); margin: 0; }

/* ---------- Company ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(40px, 5vw, 72px); padding: clamp(44px, 6vw, 80px) 0; }
.two-col--lined { border-bottom: 1px solid oklch(0.89 0.006 260); }
.two-col h2 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: 28px; margin: 0; }
.values { display: grid; gap: 26px; }
.values > div { border-top: 1px solid oklch(0.89 0.006 260); padding-top: 18px; }
.values h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 20px; margin: 0 0 8px; }
.values p { font-size: 16px; line-height: 1.65; color: oklch(0.36 0.012 260); margin: 0; max-width: 60ch; }
.address { font-style: normal; font-size: 17px; line-height: 1.7; color: oklch(0.3 0.012 260); margin: 0 0 20px; }
.note { font-size: 16px; line-height: 1.68; color: oklch(0.36 0.012 260); max-width: 60ch; margin: 0; }

/* ---------- Careers ---------- */
.careers-body { padding: clamp(44px, 6vw, 80px) 0; max-width: 720px; }
.careers-body > p { font-size: 17px; line-height: 1.72; color: oklch(0.3 0.012 260); margin: 0 0 20px; }
.careers-body > p.spaced { margin-bottom: 44px; }
.careers-body h2 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: 26px; margin: 0 0 20px; }
.careers-body .list-lined { margin: 0 0 44px; }
.careers-body .list-lined li { font-size: 16px; color: oklch(0.34 0.012 260); }
.callout { border: 1px solid oklch(0.89 0.006 260); padding: 32px; }
.callout p { font-size: 16px; line-height: 1.68; color: oklch(0.3 0.012 260); margin: 0 0 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(40px, 5vw, 72px); padding: clamp(44px, 6vw, 80px) 0; }
.contact-grid h2 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.32 0.07 258); margin: 0 0 14px; }
.contact-email { font-size: 18px; margin: 0 0 40px; }
.contact-grid .address { margin-bottom: 40px; }
.contact-note { font-size: 15px; line-height: 1.65; color: oklch(0.42 0.012 260); max-width: 52ch; margin: 0; border-top: 1px solid oklch(0.89 0.006 260); padding-top: 18px; }
.form { display: grid; gap: 22px; }
.form-field { display: grid; gap: 8px; }
.form label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.38 0.012 260); }
.form input, .form textarea { border: 1px solid oklch(0.84 0.008 260); background: oklch(0.995 0.002 85); padding: 13px 14px; font-size: 16px; color: oklch(0.19 0.012 260); }
.form textarea { line-height: 1.6; resize: vertical; }
.form .btn-primary { padding: 14px 30px; }
.form-success { border: 1px solid oklch(0.32 0.07 258); padding: 36px; }
.form-success .title { font-family: Newsreader, Georgia, serif; font-size: 24px; margin: 0 0 12px; }
.form-success p:not(.title) { font-size: 16px; line-height: 1.65; color: oklch(0.36 0.012 260); margin: 0 0 22px; }

/* ---------- Legal: prose ---------- */
.prose { padding: clamp(36px, 5vw, 64px) 0; max-width: 720px; }
.prose h2 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.prose p { font-size: 17px; line-height: 1.72; color: oklch(0.3 0.012 260); margin: 0 0 32px; }
.prose p.tight { margin-bottom: 14px; }
.prose p.mid { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 32px; padding: 0 0 0 20px; display: grid; gap: 8px; }
.prose li { font-size: 17px; line-height: 1.65; color: oklch(0.3 0.012 260); }
.prose strong { font-weight: 600; }
.prose .categories { display: grid; gap: 22px; margin: 0 0 32px; }
.prose .categories > div { border-top: 1px solid oklch(0.89 0.006 260); padding-top: 16px; }
.prose .categories h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 20px; margin: 0 0 8px; }
.prose .categories p { font-size: 16px; line-height: 1.65; color: oklch(0.34 0.012 260); margin: 0; }
.prose dl { margin: 0 0 36px; display: grid; gap: 26px; }
.prose dl > div { border-top: 1px solid oklch(0.89 0.006 260); padding-top: 16px; }
.prose dt { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.38 0.012 260); margin: 0 0 8px; }
.prose dd { font-size: 18px; line-height: 1.6; color: oklch(0.19 0.012 260); margin: 0; }
.prose dd .link-plain { padding-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid oklch(0.89 0.006 260); background: oklch(0.965 0.004 85); margin-top: auto; }
.site-footer .container { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 20px; }
.footer-logo .logo-mark { width: 9px; height: 9px; }
.footer-logo .logo-text { font-size: 17px; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: oklch(0.42 0.012 260); margin: 0; max-width: 26ch; }
.site-footer h2 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.42 0.012 260); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a, .site-footer li button { font-size: 14px; color: oklch(0.3 0.012 260); text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; text-align: left; }
.site-footer li a:hover, .site-footer li button:hover { color: oklch(0.32 0.07 258); }
.footer-legal { font-size: 13px; line-height: 1.7; color: oklch(0.46 0.012 260); margin: clamp(40px, 5vw, 60px) 0 0; border-top: 1px solid oklch(0.89 0.006 260); padding-top: 24px; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: oklch(0.19 0.018 260); color: oklch(0.96 0.004 85); border-top: 1px solid oklch(0.32 0.07 258); }
.cookie-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.cookie-bar p { font-size: 14px; line-height: 1.6; color: oklch(0.88 0.008 260); margin: 0; max-width: 64ch; }
.cookie-bar a { color: oklch(0.86 0.05 258); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-btn { padding: 11px 20px; background: none; border: 1px solid oklch(0.45 0.02 260); color: oklch(0.9 0.008 260); font-size: 13px; font-weight: 500; cursor: pointer; }
.cookie-btn:hover { border-color: oklch(0.7 0.03 260); }
.cookie-btn--accent { padding: 11px 22px; background: oklch(0.96 0.004 85); border: 1px solid oklch(0.96 0.004 85); color: oklch(0.19 0.018 260); font-weight: 600; }
.cookie-btn--accent:hover { background: #fff; border-color: #fff; }
.cookie-manage { border-top: 1px solid oklch(0.3 0.02 260); }
.cookie-manage .container { padding-top: 24px; padding-bottom: 30px; display: grid; gap: 18px; }
.cookie-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid oklch(0.28 0.02 260); padding-bottom: 16px; }
.cookie-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.cookie-row .name { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: oklch(0.96 0.004 85); }
.cookie-row .desc { font-size: 13px; color: oklch(0.8 0.01 260); margin: 0; }
.cookie-always { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: oklch(0.78 0.01 260); }
.cookie-toggle { padding: 8px 16px; background: none; border: 1px solid oklch(0.5 0.02 260); color: oklch(0.92 0.008 260); font-family: "IBM Plex Mono", monospace; font-size: 12px; cursor: pointer; min-width: 92px; }
.cookie-save { display: flex; gap: 12px; padding-top: 6px; }
.cookie-save button { padding: 11px 22px; background: oklch(0.96 0.004 85); border: none; color: oklch(0.19 0.018 260); font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---------- Reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.2, .6, .2, 1), transform .55s cubic-bezier(.2, .6, .2, 1); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .site-header .container { padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 16px 20px; }
  .capabilities-grid, .principles ol { gap: 32px; }
  .callout, .form-success { padding: 24px; }
  .cookie-bar { padding-top: 18px; padding-bottom: 18px; }
}
