:root {
  --paper: #F7F6F2;
  --sand: #EFEDE6;
  --ink: #12312F;
  --ink-soft: #4A5F5D;
  --muted: #5A6B69;
  --teal: #009FAB;
  --teal-deep: #05646C;
  --teal-dark: #064B52;
  --teal-light: #8FD8DE;
  --line: rgba(18, 49, 47, 0.12);
  --shell: 1240px;
  --pad: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--teal-deep); text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease; }
a:hover { color: var(--teal); }

h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(42px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; color: var(--teal-deep); }

p { margin: 0; text-wrap: pretty; }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 22px;
}
.eyebrow .rule { width: 34px; height: 1px; background: var(--teal); flex: none; }
.eyebrow--light { color: var(--teal-light); }
.eyebrow--light .rule { background: #4ECBD4; }

.label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.label--light { color: var(--teal-light); }

.lede { margin-top: 30px; max-width: 520px; font-size: 18.5px; line-height: 1.65; color: var(--ink-soft); }
.lede--sm { margin-top: 26px; max-width: 480px; font-size: 17.5px; line-height: 1.7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; }
.btn-outline { border: 1px solid rgba(18,49,47,0.22); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(18,49,47,0.04); color: var(--ink); }
.btn-white { background: #fff; color: var(--teal-dark); }
.btn-white:hover { background: var(--teal-light); color: var(--teal-dark); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.34); color: #EAF4F4; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-ink { padding: 11px 22px; background: var(--ink); color: var(--paper); font-size: 14px; }
.btn-ink:hover { background: var(--teal-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn-row--center { justify-content: center; margin-top: 48px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,242,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,49,47,0.10);
}
.header-inner { display: flex; align-items: center; gap: 32px; padding-top: 0; padding-bottom: 14px; }
.brand img { width: 104px; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.btn):not(.status-pill) { font-size: 14.5px; font-weight: 500; color: #3D5250; }
.site-nav > a:not(.btn):not(.status-pill):hover { color: var(--teal); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--teal-dark); border-radius: 999px;
  background: var(--teal-dark);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #EAF4F4;
}
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-light); flex: none; }
a.status-pill { color: #EAF4F4; }
a.status-pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.status-pill--hiring i {
  width: 6px; height: 6px; background: #6FE3EA;
  box-shadow: 0 0 0 0 rgba(143,216,222,0.8), 0 0 6px 1px rgba(143,216,222,0.95);
  animation: pillDot 1.3s ease-in-out infinite;
}
@keyframes pillDot {
  0%   { box-shadow: 0 0 0 0 rgba(143,216,222,0.8), 0 0 6px 1px rgba(143,216,222,0.95); opacity: 1; transform: scale(1); }
  50%  { box-shadow: 0 0 0 6px rgba(143,216,222,0), 0 0 11px 2px rgba(143,216,222,1); opacity: 0.5; transform: scale(1.3); }
  100% { box-shadow: 0 0 0 0 rgba(143,216,222,0), 0 0 6px 1px rgba(143,216,222,0.95); opacity: 1; transform: scale(1); }
}
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); }

/* Hero */
.hero { padding-top: 76px; padding-bottom: 96px; }
.hero-grid { display: flex; gap: 72px; align-items: center; flex-wrap: wrap; }
.hero-copy { flex: 1 1 460px; min-width: 300px; }
.hero-media { flex: 1 1 400px; min-width: 300px; position: relative; }
.hero-contact {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-contact a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.hero-contact a svg {
  width: 18px; height: 18px; flex: none; color: var(--teal-deep);
}
.hero-contact a:hover { color: var(--teal); }
.hero-contact a:hover svg { color: var(--teal); }
.opening-card {
  position: absolute; left: -34px; bottom: 44px; max-width: 250px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 26px; background: #fff; border-radius: 5px;
  box-shadow: 0 18px 50px -22px rgba(6,75,82,0.45);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft);
}
.opening-year { font-family: 'Newsreader', serif; font-size: 34px; line-height: 1; color: var(--teal-deep); }

/* Photo placeholders — swap for <img class="photo"> */
.photo {
  position: relative; border-radius: 6px; overflow: hidden; background: #E7EBEA;
  background-image: repeating-linear-gradient(135deg, rgba(0,159,171,0.09) 0 9px, rgba(0,159,171,0) 9px 20px);
  display: block; object-fit: cover; width: 100%;
}
.photo--tall { aspect-ratio: 4 / 4.6; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--fill { flex: 1; min-height: 260px; margin-top: 38px; }
.photo--dark {
  background: #0A5F68;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 9px, rgba(255,255,255,0) 9px 20px);
}
.photo-note {
  position: absolute; left: 18px; bottom: 15px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.photo--dark .photo-note { color: var(--teal-light); }

/* Trust strip */
.strip { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
  padding-top: 34px; padding-bottom: 34px;
}
.strip-quote { font-family: 'Newsreader', serif; font-size: 21px; font-style: italic; }
.strip-facts { display: flex; flex-wrap: wrap; gap: 44px; }
.strip-facts > div { display: flex; flex-direction: column; gap: 5px; }
.fact { font-size: 15.5px; font-weight: 600; }

/* Careers */
.careers { background: var(--teal-dark); color: #EAF4F4; padding: 104px 0; }
.careers h2 { color: #fff; }
.section-head { display: flex; gap: 64px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 56px; }
.section-head > div { flex: 1 1 520px; min-width: 300px; }
.section-intro { flex: 1 1 380px; min-width: 280px; font-size: 17px; line-height: 1.7; color: #B9D9DC; }
.section-intro--dark { color: var(--ink-soft); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.role-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px;
}
.role-body { display: flex; flex-direction: column; gap: 14px; padding: 32px 32px 34px; flex: 1; }
.role-body h3 { font-size: 29px; color: #fff; }
.role-body p { font-size: 16px; line-height: 1.65; color: #B9D9DC; }
.tag {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: rgba(78,203,212,0.16);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-light);
}

/* About */
.about { padding-top: 110px; padding-bottom: 110px; }
.about-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 72px; align-items: center; }
.about-copy { min-width: 0; }
.about-media { min-width: 0; }
.about-photo { width: 100%; height: 100%; min-height: 340px; }
.value-list {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.value-list li {
  display: flex; flex-direction: column; gap: 12px;
  padding: 34px 32px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
}
.num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; color: var(--teal); }
.value-list h3 { font-size: 25px; }
.value-list p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--sand); border-top: 1px solid var(--line); padding: 100px 0; }
.contact .section-head { margin-bottom: 50px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  padding: 38px 34px; background: var(--teal-dark); border-radius: 6px; color: #EAF4F4;
}
a.contact-card:hover { background: var(--teal-deep); color: #EAF4F4; }
.contact-value { font-family: 'Newsreader', serif; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.1; color: #fff; white-space: nowrap; }
.contact-cta { font-size: 14px; font-weight: 600; color: #B9D9DC; }
.contact-cta--muted { font-weight: 400; }

/* Footer */
.site-footer { background: var(--ink); color: #9FB5B3; }
.site-footer .shell { padding-top: 12px; padding-bottom: 12px; text-align: center; font-size: 13.5px; }

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 24px var(--pad) 30px; background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .hero { padding-top: 56px; padding-bottom: 72px; }
  .hero-grid { gap: 48px; }
  .opening-card { left: auto; right: 16px; bottom: -20px; }
  .careers, .contact { padding: 76px 0; }
  .about { padding-top: 76px; padding-bottom: 76px; }
  .about-top { gap: 48px; }
  .value-list { margin-top: 40px; }
  .section-head { gap: 32px; margin-bottom: 40px; }
  .contact-value { white-space: normal; word-break: break-word; }
}

@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
  .strip-facts { gap: 24px 32px; }
}
