/* Re:Shark careers — tokens taken from reshark.io (Webflow theme) */
:root {
  --green: #002310;
  --lime: #e4fd04;
  --mint: #d6e8d6;
  --beige: #d6d4c9;
  --light-grey: #ededea;
  --page: #f4f4f4;
  --card: #fafafa;
  --white: #ffffff;
  --muted: #4d5c53;
  --line: #e2e2de;

  --head: "Rethink Sans", "Instrument Sans", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --r-card: 20px;
  --r-btn: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--green);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Type scale (mirrors heading-02 / sub-heading-02 / sub-heading-04) */
.h-display { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.08; letter-spacing: -0.04em; }
.h-2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.12; letter-spacing: -0.03em; }
.h-3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -0.02em; }
.h-4 { font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-btn);
  font-family: var(--head); font-size: 16px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-lime { background: var(--lime); color: var(--green); }
.btn-lime:hover { background: #d4ec00; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #0a3a1e; }
.btn-lg { padding: 14px 22px; font-size: 17px; }

/* Arrow-in-circle motif */
.arrow {
  width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--green);
  display: inline-grid; place-items: center; flex: none;
}
.arrow svg { width: 14px; height: 14px; }

/* Nav */
.nav {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.nav .logo { display: block; width: 123px; }
.nav .logo img { width: 100%; height: auto; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-size: 16px; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right .back { text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.nav-right .back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Wrapper */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-cta { padding-top: clamp(120px, 12vw, 160px); }

/* Careers hero (mirrors homepage: text left, mascot card right) */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.hero-copy { padding-block: 24px; }
.hero-copy .lede { margin-top: 20px; max-width: 46ch; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { border-radius: var(--r-card); overflow: hidden; background: var(--light-grey); aspect-ratio: 1 / 1; max-height: 560px; justify-self: end; width: 100%; }
.hero-art img, .hero-art video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Big soft panel (mirrors the white rounded panel on the homepage) */
.panel { background: var(--card); border-radius: var(--r-card); padding: clamp(28px, 4vw, 56px); }
.panel-dark { background: var(--green); color: var(--light-grey); }
.panel-dark .muted { color: #b7c6bb; }
.panel-lime { background: var(--lime); color: var(--green); }

.section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--muted); max-width: 52ch; }

/* Role cards */
.roles-grid { display: grid; gap: 16px; }
.role-card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  background: var(--white); border-radius: 16px; padding: 24px 28px; text-decoration: none;
  border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.role-card:hover { border-color: var(--green); }
.role-card:hover .arrow { background: var(--green); color: var(--lime); }
.role-card h3 { font-size: 24px; letter-spacing: -0.02em; }
.role-card p { color: var(--muted); grid-column: 1; }
.role-card .meta { grid-column: 1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.role-card h3 { grid-column: 1; }
.role-card .arrow { grid-column: 2; grid-row: 1 / span 3; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--light-grey); color: var(--green); }
.chip-mint { background: var(--mint); }
.chip-lime { background: var(--lime); }
.chip-dark { background: var(--green); color: var(--lime); }
.count-pill { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--lime); font-family: var(--body); font-size: 14px; font-weight: 600; vertical-align: middle; margin-left: 10px; }
.empty-roles { background: var(--white); border-radius: 16px; padding: 32px; color: var(--muted); }
.empty-roles a { color: var(--green); }

/* Feature rows (arrow + title + text, like homepage) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.feature { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.feature h3 { font-family: var(--body); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); }
.panel-dark .feature p { color: #b7c6bb; }
.panel-dark .feature h3 { color: var(--white); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--white); border-radius: 16px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.step .num { font-family: var(--head); font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.step h3 { font-family: var(--body); font-weight: 600; font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA panel */
.cta { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 24px; align-items: center; }
.cta > div:not(.kai-peek), .cta > .btn { position: relative; z-index: 1; }
.cta .kai-peek-right { left: auto; right: clamp(24px, 6vw, 96px); width: 260px; height: 210px; bottom: calc(100% - 1px); }
.cta .kai-peek img { height: 270px; transform: translateY(30%); }
.cta p { margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.footer .wrap { padding-block: 32px 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .logo { width: 100px; }

/* ---------- Job page ---------- */
.job-head { padding-block: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.job-head .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.job-head .summary { color: var(--muted); font-size: 18px; max-width: 60ch; }

.job-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(40px, 6vw, 80px); }
.job-content { background: var(--white); border-radius: var(--r-card); padding: clamp(28px, 4vw, 48px); max-width: 100%; }
.job-content .intro { font-size: 18px; line-height: 1.6; max-width: 62ch; }
.job-content section { margin-top: 40px; }
.job-content section:first-of-type { margin-top: 32px; }
.job-content h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 14px; }
.job-content .lead { font-weight: 600; margin-bottom: 12px; }
.job-content ul { display: grid; gap: 12px; }
.job-content li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; max-width: 66ch; }
.job-content li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23002310' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12L12 4M6 4h6v6'/%3E%3C/svg%3E") center / 11px no-repeat; margin-top: 1px; }
.job-content li.no::before { background: var(--light-grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23002310' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.job-content li strong { font-weight: 600; }

.job-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.job-aside .aside-card:first-of-type { position: relative; }
.aside-card { background: var(--white); border-radius: 16px; padding: 24px; display: grid; gap: 16px; }
.aside-card dl { margin: 0; display: grid; gap: 12px; }
.aside-card dt { font-size: 13px; color: var(--muted); }
.aside-card dd { margin: 2px 0 0; font-weight: 500; }
.aside-card .btn { justify-content: center; }
.aside-card small { color: var(--muted); font-size: 13px; }
/* Kai popping up from behind the terms card (v4 "peek" treatment) */
.kai-peek { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 190px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; z-index: 0; }
.kai-peek img { height: 250px; width: auto; transform: translateY(28%); filter: drop-shadow(0 10px 18px rgba(0,35,16,.12)); }
.aside-card { position: relative; z-index: 1; }

.job-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.job-foot .panel { display: grid; gap: 12px; align-content: start; }
.job-foot .btn { justify-self: start; margin-top: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-height: 420px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .job-body { grid-template-columns: 1fr; }
  .job-aside { position: static; }
  .kai-peek { position: relative; bottom: auto; margin-bottom: 0; }
  .cta .kai-peek { position: absolute; bottom: calc(100% - 1px); margin: 0; }
  .job-foot { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 1fr; }
  .role-card .arrow { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-video { display: none; }
  .hero-art::after { content: ""; display: block; width: 100%; height: 100%; background: url("assets/kai-hiring.jpg") center / cover no-repeat; }
}

/* No-agencies notice */
.no-agencies { border-top: 1px solid var(--line); padding-top: 12px; }
.cta .no-agencies { margin-top: 14px; font-size: 14px; opacity: .8; border-top: 1px solid rgba(0,35,16,.25); padding-top: 12px; max-width: 52ch; }
