/* shared styles */

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

:root {
  /* ink / neutrals */
  --ink:        #14161a;
  --ink-2:      #383d45;
  --grey:       #6b7178;
  --grey-2:     #9aa0a7;

  /* brand red */
  --red:        #9b2118;
  --red-deep:   #7a1712;
  --red-bright: #c62d22;

  /* brand blue */
  --blue:       #1d2c4a;
  --blue-2:     #34507f;
  --blue-soft:  #7c9bc9;

  /* surfaces */
  --paper:      #f5f2ec;
  --paper-2:    #ece8de;
  --card:       #ffffff;
  --line:       rgba(20,22,26,.13);
  --line-2:     rgba(20,22,26,.06);

  /* type */
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;

  --focus: #1d2c4a;
  --maxw: 1240px;
  --radius: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
a { color: var(--blue-2); }
img { max-width: 100%; display: block; }

/* accessibility */
.skip { position: absolute; top: -120px; left: 0; background: var(--blue); color: #fff;
        padding: 12px 24px; font-weight: 700; text-decoration: none; z-index: 99999;
        transition: top .2s; }
.skip:focus { top: 0; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* utilities */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--head);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head);
       font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
       padding: 13px 26px; text-decoration: none; border: 2px solid transparent;
       border-radius: 3px; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn svg { width: 14px; height: 14px; }
.btn-red    { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-blue   { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-ghost  { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* header */
.brandbar { height: 4px; background: linear-gradient(90deg,
            var(--red) 0%, var(--red-bright) 32%, var(--blue-2) 68%, var(--blue) 100%); }

.site-header { position: sticky; top: 0; z-index: 800; background: #fff;
               border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--line-2);
               transition: box-shadow .28s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(20,22,26,.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
                gap: 24px; height: 144px; transition: height .28s ease; will-change: height; }
.site-header.scrolled .header-inner { height: 84px; }
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-link img { height: 120px; width: auto; transition: height .28s ease; }
.site-header.scrolled .logo-link img { height: 60px; }
/* wordmark hidden at top, appears once scrolled */
.logo-wordmark { display: none; flex-direction: column; line-height: 1.05; }
.site-header.scrolled .logo-wordmark { display: flex; }
.logo-wordmark b { font-family: var(--head); font-size: 16px; font-weight: 800;
                   color: var(--ink); letter-spacing: -.01em; }
.logo-wordmark span { font-family: var(--head); font-size: 9.5px; font-weight: 600;
                      letter-spacing: .22em; text-transform: uppercase; color: var(--red);
                      margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 11px 15px;
            font-family: var(--head); font-size: 13px; font-weight: 600; letter-spacing: .02em;
            color: var(--ink); text-decoration: none; white-space: nowrap; position: relative;
            background: none; border: none; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px;
                   height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left;
                   transition: transform .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--red); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link .caret { width: 9px; height: 9px; transition: transform .2s; }
.nav-item.open .nav-link .caret { transform: rotate(180deg); }

/* Dropdown */
.nav-menu { position: absolute; top: calc(100% - 4px); left: 8px; min-width: 230px;
            background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
            box-shadow: 0 20px 44px rgba(20,22,26,.16); padding: 8px;
            opacity: 0; visibility: hidden; transform: translateY(6px);
            transition: opacity .18s, transform .18s, visibility .18s; z-index: 900; }
.nav-item:hover .nav-menu, .nav-item.open .nav-menu,
.nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; padding: 11px 14px; font-size: 13.5px; font-weight: 500;
              color: var(--ink-2); text-decoration: none; border-radius: 3px;
              transition: background .15s, color .15s; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--paper); color: var(--red); }

.header-tools { display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; align-items: center; gap: 8px; background: var(--paper);
                 border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; }
.header-search input { border: none; background: none; outline: none; font-family: var(--body);
                       font-size: 13px; color: var(--ink); width: 120px; }
.header-search input::placeholder { color: var(--grey); }
.header-search svg { width: 14px; height: 14px; color: var(--grey); flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 9px;
             background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; transition: .3s; }

/* footer */
.site-footer { background: var(--blue); color: rgba(255,255,255,.6); }
.footer-top { padding: 72px 0 52px; border-top: 4px solid var(--red); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 54px; width: auto; background: #fff; padding: 8px 10px;
                    border-radius: 6px; margin-bottom: 16px; }
.footer-brand b { font-family: var(--head); font-size: 16px; font-weight: 800;
                  color: #fff; display: block; }
.footer-brand .sub { font-family: var(--head); font-size: 9.5px; font-weight: 600;
                     letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft);
                     margin: 3px 0 16px; }
.footer-brand p { font-size: 14px; line-height: 1.75; max-width: 270px; color: rgba(255,255,255,.5); }
.footer-col h4 { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .12em;
                 text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 16px;
                 padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-mid { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1);
              border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-mid .lbl { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .14em;
                   text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 9px; }
.footer-mid p.disc { font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.7; max-width: 940px; }
.footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
                 flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* scroll to top */
.scroll-top { position: fixed; right: 26px; bottom: 26px; z-index: 700; width: 46px; height: 46px;
              background: var(--blue); color: #fff; border: none; border-radius: 50%; cursor: pointer;
              display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
              transform: translateY(10px); box-shadow: 0 8px 24px rgba(20,22,26,.28);
              transition: opacity .25s, visibility .25s, transform .25s, background .18s; }
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--red); }
.scroll-top svg { width: 18px; height: 18px; }

/* cookie bar */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--ink);
              border-top: 3px solid var(--red); color: rgba(255,255,255,.75); padding: 18px 32px;
              display: flex; align-items: center; justify-content: space-between; gap: 22px;
              flex-wrap: wrap; box-shadow: 0 -8px 38px rgba(0,0,0,.35);
              transform: translateY(100%); transition: transform .4s ease; }
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { font-size: 13px; line-height: 1.7; flex: 1; min-width: 260px; }
.cookie-bar a { color: var(--blue-soft); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button { font-family: var(--head); font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
                      padding: 10px 22px; border-radius: 3px; cursor: pointer; border: 1px solid transparent; }
.c-accept { background: var(--red); color: #fff; border: none; }
.c-accept:hover { background: var(--red-deep); }
.c-decline { background: transparent; color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.25); }
.c-decline:hover { color: #fff; border-color: rgba(255,255,255,.6); }

/* responsive */
@media (max-width: 1080px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .header-search { display: none; }
  .hamburger { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff;
              border-top: 3px solid var(--red); box-shadow: 0 18px 40px rgba(20,22,26,.16);
              flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
              display: none; }
  .main-nav.open { display: flex; }
  .nav-link { padding: 15px 24px; justify-content: space-between; width: 100%; }
  .nav-link::after { display: none; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
              border: none; border-top: 1px solid var(--line-2); padding: 0 0 8px; min-width: 0;
              display: none; }
  .nav-item.open .nav-menu { display: block; }
  .nav-menu a { padding: 12px 38px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* job postings */
.jobs-list{display:grid;gap:18px;margin-top:46px}
.job-card{background:#fff;border:1px solid var(--line,#e4e1dc);border-radius:var(--radius,10px);padding:26px 28px}
.job-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:12px}
.job-card h3{margin:0;font-size:1.25rem}
.job-meta{display:flex;gap:8px;flex-wrap:wrap}
.job-meta-item{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;padding:5px 11px;border-radius:999px;background:var(--paper-2,#f4f2ee);color:var(--ink-2,#555)}
.job-card p{margin:0 0 10px;line-height:1.65}
.job-close{font-size:.85rem;font-weight:600;color:var(--red,#b4272d)}
.job-card-actions{margin-top:16px}

/* hero controls, search, live regions */
/* 9px dot, 26px hit area (WCAG 2.5.8) */
.hero-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); }
.hero-dots { gap: 4px; }
.hero-pause { position: absolute; z-index: 4; bottom: 26px; right: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(20,22,26,.45); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.hero-pause:hover { background: var(--red); border-color: var(--red); }
.hero-pause svg { width: 15px; height: 15px; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }

/* Search */
.header-search { position: relative; }
.search-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(440px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(20,22,26,.16); z-index: 900; overflow: hidden; }
.search-status { margin: 0; padding: 11px 16px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--grey); background: var(--paper); border-bottom: 1px solid var(--line-2); }
.search-results { list-style: none; margin: 0; padding: 0; max-height: min(64vh, 460px); overflow-y: auto; }
.search-results li + li { border-top: 1px solid var(--line-2); }
.search-results a { display: grid; gap: 3px; padding: 13px 16px; text-decoration: none; color: var(--ink); }
.search-results li.active a, .search-results a:hover, .search-results a:focus-visible { background: var(--paper); }
.sr-page { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.sr-title { font-family: var(--head); font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.sr-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

/* small screens: no search */
@media (max-width: 900px) {
  .header-search { display: none; }
  .slider-arrow { display: grid; width: 40px; height: 40px; }
  .slider-arrow.prev { left: 10px; } .slider-arrow.next { right: 10px; }
  .hero-pause { bottom: 20px; right: 16px; }
}
@media (max-width: 640px) {
  .dir-pill { min-height: 44px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
