/* ============================================================
   Synexian — Careers template (cream theme, home-derived)
   Shared skeleton for every /pages/careers/<slug>/ opening page.
   Same design family as the HOMEPAGE and the solutions pages —
   cream surfaces, grid-paper backdrops, traffic-dot accents,
   gif badges, white cards, one dark ink CTA card — NOT the
   immersive dark service pages. Motion stays light: CSS
   entrances + IntersectionObserver reveals only. No vendor libs.
   Signature element: the hero .job-ticket — a boarding-pass
   style role card with perforation, details grid, and a stamp.
   ============================================================ */

section { padding: 6rem 0; }

/* ---------- per-role ticket theming ----------
   The hero .job-ticket AND the apply mini-player both read these
   vars, so each opening page restyles its "window" in one place:
   set <body data-ticket-theme="..."> on the page. Default is
   "paper" (white card, dark text). Add presets here as roles
   need them. */
body {
  --tk-bg: var(--surface-2);
  --tk-text: var(--text);
  --tk-line: var(--line);
  --tk-line-strong: var(--line-strong);
  --tk-dim: var(--text-dim);
  --tk-faint: var(--text-faint);
  --tk-accent: var(--amber-deep);
  --tk-field: rgba(20, 36, 48, 0.04);
}
body[data-ticket-theme='ink'],
[data-tk='ink'] {
  --tk-bg: var(--ink-800);
  --tk-text: var(--cream);
  --tk-line: rgba(240, 235, 218, 0.16);
  --tk-line-strong: rgba(240, 235, 218, 0.32);
  --tk-dim: rgba(240, 235, 218, 0.68);
  --tk-faint: rgba(240, 235, 218, 0.45);
  --tk-accent: var(--amber);
  --tk-field: rgba(240, 235, 218, 0.07);
}
body[data-ticket-theme='olive'],
[data-tk='olive'] {
  --tk-bg: #4d5a1e;
  --tk-text: var(--cream);
  --tk-line: rgba(240, 235, 218, 0.2);
  --tk-line-strong: rgba(240, 235, 218, 0.38);
  --tk-dim: rgba(240, 235, 218, 0.75);
  --tk-faint: rgba(240, 235, 218, 0.5);
  --tk-accent: var(--amber);
  --tk-field: rgba(240, 235, 218, 0.08);
}

/* grid-paper backdrop helper (home hero / CTA card motif) */
.grid-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}

/* ---------- 1. hero — copy + job ticket ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}
.hero .dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  animation: dot-drift 9s ease-in-out infinite alternate;
}
.dot-amber { width: 18px; height: 18px; background: var(--amber); top: 20%; left: 6%; }
.dot-coral { width: 13px; height: 13px; background: var(--coral); top: 74%; left: 46%; animation-delay: -3s; }
.dot-olive { width: 15px; height: 15px; background: var(--olive); top: 12%; left: 55%; animation-delay: -6s; }
@keyframes dot-drift {
  to { transform: translate(14px, -20px); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy .tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.3rem;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--amber-deep);
}
.hero-sub {
  margin: 1.4rem 0 2.2rem;
  max-width: 54ch;
  font-size: 1.08rem;
  color: var(--text-dim);
}
.cta-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* gentle entrance — pure CSS, home pattern */
.hero-copy > *, .job-ticket {
  animation: hero-rise 0.9s var(--ease-out) both;
}
.hero-copy h1 { animation-delay: 0.07s; }
.hero-sub { animation-delay: 0.14s; }
.hero-copy .cta-group { animation-delay: 0.21s; }
.job-ticket { animation-delay: 0.18s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
}

/* the job ticket — a boarding pass for the role (per-role themed) */
.job-ticket {
  position: relative;
  background: var(--tk-bg);
  color: var(--tk-text);
  border: 1px solid var(--tk-line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(20, 36, 48, 0.4);
  rotate: -1.2deg;
  transition: rotate 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
}
.job-ticket:hover { rotate: 0deg; }
/* while the apply player is "borrowing" the window */
.job-ticket.ghosted { opacity: 0; pointer-events: none; }
.ticket-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--tk-line);
}
.ticket-head .win-dots { display: inline-flex; gap: 6px; }
.ticket-head .win-dots i { width: 10px; height: 10px; border-radius: 50%; }
.ticket-head .win-dots i:nth-child(1) { background: var(--amber); }
.ticket-head .win-dots i:nth-child(2) { background: var(--coral); }
.ticket-head .win-dots i:nth-child(3) { background: var(--olive); }
.ticket-head span:last-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--tk-faint);
}
.ticket-main { padding: 1.6rem 1.5rem 1.4rem; position: relative; }
.ticket-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
  padding-right: 7rem; /* keep clear of the stamp */
}
.ticket-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.4rem;
}
.ticket-details div { display: grid; gap: 0.15rem; }
.ticket-details dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tk-faint);
}
.ticket-details dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.ticket-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
  rotate: 8deg;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--coral);
  border: 2px solid var(--coral);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  opacity: 0.85;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='1.1' fill='%23000'/%3E%3Ccircle cx='3' cy='3' r='1.1' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='1.1' fill='%23000'/%3E%3Ccircle cx='3' cy='3' r='1.1' fill='%23000'/%3E%3C/svg%3E");
}
/* perforation between main and stub, with punch holes */
.ticket-tear {
  position: relative;
  border-top: 2px dashed var(--tk-line-strong);
}
.ticket-tear::before,
.ticket-tear::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.ticket-tear::before { left: -11px; border-right-color: transparent; }
.ticket-tear::after { right: -11px; border-left-color: transparent; }
.ticket-stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem 1.2rem;
}
.ticket-barcode {
  height: 30px;
  flex: 1;
  max-width: 180px;
  background: repeating-linear-gradient(
    90deg,
    var(--tk-text) 0 2px, transparent 2px 5px,
    var(--tk-text) 5px 6px, transparent 6px 11px,
    var(--tk-text) 11px 14px, transparent 14px 17px
  );
  opacity: 0.65;
}
.ticket-stub .apply-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tk-accent);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.ticket-stub .apply-chip svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.ticket-stub .apply-chip:hover svg { transform: translateX(4px); }

/* ---------- 2. about the role ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-copy .eyebrow { margin-bottom: 1.2rem; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.1rem; }
.about-copy p { color: var(--text-dim); margin-bottom: 1rem; max-width: 58ch; }

/* "what you'll own" checklist card */
.own-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 2rem;
  box-shadow: 0 18px 40px -28px rgba(20, 36, 48, 0.35);
}
.own-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.own-card h3 .win-dots { display: inline-flex; gap: 5px; }
.own-card h3 .win-dots i { width: 9px; height: 9px; border-radius: 50%; }
.own-card h3 .win-dots i:nth-child(1) { background: var(--amber); }
.own-card h3 .win-dots i:nth-child(2) { background: var(--coral); }
.own-card h3 .win-dots i:nth-child(3) { background: var(--olive); }
.own-card ul { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.own-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.own-card li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--olive); }

/* ---------- 3. responsibilities ---------- */
.resp { background: var(--surface); border-block: 1px solid var(--line); }
.resp .section-head { margin-bottom: 2.8rem; }
.resp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.resp-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.resp-row:hover { border-color: var(--amber); transform: translateY(-3px); }
.resp-row .n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-deep);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.resp-row h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.resp-row p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- 4. requirements — you bring / bonus points ---------- */
.reqs .section-head { margin-bottom: 2.8rem; }
.req-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}
.req-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
}
.req-card.must { border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.req-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  margin-bottom: 1.3rem;
}
.req-card h3 .req-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}
.req-card.must h3 .req-badge { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber-deep); }
.req-card.nice h3 .req-badge { background: color-mix(in srgb, var(--olive) 18%, transparent); color: var(--olive); }
.req-card ul { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.req-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.96rem;
}
.req-card li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; }
.req-card.must li svg { color: var(--amber-deep); }
.req-card.nice li { color: var(--text-dim); }
.req-card.nice li svg { color: var(--olive); }

/* ---------- 5. your week — gif-badge cards (home pillar pattern) ---------- */
.week { background: var(--surface); border-block: 1px solid var(--line); }
.week .section-head { margin-bottom: 2.8rem; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.week-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--surface-2);
}
.week-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.week-card .gif-badge {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.week-card .gif-badge img { width: 48px; height: 48px; object-fit: contain; }
.week-card h3 { font-size: 1.08rem; }
.week-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- 6. hiring process ---------- */
.hiring .section-head { margin-bottom: 2.8rem; }
.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.phase-card {
  position: relative;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 2rem;
}
.phase-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.phase-card .ph-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: color-mix(in srgb, var(--amber-deep) 38%, transparent);
  line-height: 1;
}
.phase-card h3 { font-size: 1.1rem; }
.phase-card p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.phase-card .ph-when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
}
.phase-card .ph-arrow {
  position: absolute;
  top: 50%;
  right: -1.05rem;
  translate: 0 -50%;
  z-index: 1;
  color: var(--amber-deep);
  background: var(--bg);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
}
.phase-card .ph-arrow svg { width: 15px; height: 15px; }
.phase-card:last-child .ph-arrow { display: none; }

/* ---------- 7. perks ---------- */
.perks { background: var(--surface); border-block: 1px solid var(--line); }
.perks .section-head { margin-bottom: 2.8rem; }
.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.perk-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--surface-2);
}
.perk-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.perk-card h3 { font-size: 1.08rem; }
.perk-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- 8. other openings ---------- */
.openings .section-head { margin-bottom: 2.6rem; }
.open-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.open-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface-2);
}
.open-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(20, 36, 48, 0.35);
}
.open-card .open-team {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.open-card h3 { font-size: 1.15rem; }
.open-card .open-meta { color: var(--text-faint); font-size: 0.85rem; flex: 1; }
.open-card .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber-deep);
}
.open-card .go svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.open-card:hover .go svg { transform: translateX(4px); }
/* speculative-application card when this is the only opening */
.open-card.spec {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  justify-content: center;
}
.open-card.spec:hover { border-color: var(--amber); box-shadow: none; }
.open-card.spec p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- 9. FAQ ---------- */
.faq .section-head { margin-bottom: 2.6rem; max-width: 720px; }
.faq-list { max-width: 820px; display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: var(--amber); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-q .chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--amber-deep);
  transition: transform 0.3s var(--ease-out);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-dim);
  font-size: 0.96rem;
  max-width: 68ch;
}

/* ---------- 10. final CTA — dark ink card (home pattern) ---------- */
.cta-final { padding-bottom: 7rem; }
.cta-card {
  position: relative;
  background: var(--ink-800);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 235, 218, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 235, 218, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.cta-card > * { position: relative; }
.cta-dots { display: inline-flex; gap: 8px; margin-bottom: 1.4rem; }
.cta-dots i { width: 12px; height: 12px; border-radius: 50%; }
.cta-dots i:nth-child(1) { background: var(--amber); }
.cta-dots i:nth-child(2) { background: var(--coral); }
.cta-dots i:nth-child(3) { background: var(--olive); }
.cta-card h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.cta-card p {
  max-width: 62ch;
  margin: 1.1rem auto 2rem;
  color: rgba(240, 235, 218, 0.7);
}
.cta-card .cta-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(240, 235, 218, 0.45);
  margin-top: 1.6rem;
}
.cta-card .cta-group { justify-content: center; }
.cta-card .btn-ghost { color: var(--cream); border-color: rgba(240, 235, 218, 0.3); }
.cta-card .btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- apply mini-player ----------
   The job ticket enlarges (FLIP) into this dialog when any
   [data-apply] trigger is clicked. It reuses the ticket-head and
   the --tk-* theme vars, so it automatically matches whatever
   window design the page's ticket theme defines. Markup is built
   by career.js. */
.apply-player {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.apply-player[hidden] { display: none; }
.apply-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.apply-player.open .apply-backdrop { opacity: 1; }

.apply-card {
  position: relative;
  width: min(580px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  background: var(--tk-bg);
  color: var(--tk-text);
  border: 1px solid var(--tk-line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 120px -30px rgba(5, 10, 16, 0.7);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
.apply-card .ticket-head { flex: none; }
.apply-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--tk-line-strong);
  background: transparent;
  color: var(--tk-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.apply-close:hover { border-color: var(--tk-accent); color: var(--tk-accent); }
.apply-close svg { width: 15px; height: 15px; }

.apply-body {
  padding: 1.6rem 1.7rem 1.7rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.apply-progress { display: flex; gap: 0.45rem; }
.apply-progress i {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--tk-line);
  transition: background-color 0.3s;
}
.apply-progress i.done { background: color-mix(in srgb, var(--tk-accent) 45%, var(--tk-line)); }
.apply-progress i.on { background: var(--tk-accent); }

.apply-step { display: grid; gap: 1.05rem; animation: step-in 0.35s var(--ease-out); }
.apply-step[hidden] { display: none; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
}
.apply-step .step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tk-accent);
}
.apply-step h3 { font-size: 1.3rem; }
.apply-step .step-hint { color: var(--tk-dim); font-size: 0.93rem; margin-top: -0.5rem; }

.apply-field { display: grid; gap: 0.4rem; }
.apply-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tk-faint);
}
.apply-field input,
.apply-field textarea {
  width: 100%;
  background: var(--tk-field);
  border: 1px solid var(--tk-line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--tk-text);
  font-size: 0.97rem;
  transition: border-color 0.2s;
}
.apply-field input:focus-visible,
.apply-field textarea:focus-visible {
  outline: none;
  border-color: var(--tk-accent);
}
.apply-field textarea { min-height: 150px; resize: vertical; }
.apply-field input.invalid,
.apply-field textarea.invalid { border-color: var(--coral); }
.apply-field .field-err {
  font-size: 0.8rem;
  color: var(--coral);
  display: none;
}
.apply-field input.invalid ~ .field-err,
.apply-field textarea.invalid ~ .field-err { display: block; }

/* review step */
.apply-review {
  display: grid;
  gap: 0.7rem;
  border: 1px dashed var(--tk-line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.apply-review div { display: grid; gap: 0.1rem; }
.apply-review dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tk-faint);
}
.apply-review dd { margin: 0; font-size: 0.94rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.apply-attach-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--tk-dim);
}
.apply-attach-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--tk-accent); }

.apply-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.2rem;
}
/* base.css .btn sets display, which outranks the UA [hidden] rule */
.apply-nav [hidden] { display: none; }
.apply-nav .btn { min-height: 44px; padding: 0.6rem 1.4rem; font-size: 0.94rem; }
.apply-nav .btn-ghost { color: var(--tk-text); border-color: var(--tk-line-strong); }
.apply-nav .btn-ghost:hover { border-color: var(--tk-accent); color: var(--tk-accent); }
.apply-nav .copy-app {
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--tk-faint);
  transition: color 0.2s;
}
.apply-nav .copy-app:hover { color: var(--tk-accent); }

@media (prefers-reduced-motion: reduce) {
  .apply-card, .apply-backdrop { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .job-ticket { max-width: 520px; rotate: 0deg; }
  .about-grid { grid-template-columns: 1fr; }
  .resp-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-card .ph-arrow { display: none; }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .open-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 4rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .week-grid, .phase-grid, .perk-grid { grid-template-columns: 1fr; }
  .ticket-details { grid-template-columns: 1fr 1fr; }
  .ticket-role { padding-right: 0; }
  .ticket-stamp { position: static; rotate: 0deg; display: inline-block; margin-bottom: 1rem; }
}
