/* applications-careers - taste-skill redesign
   Design read: careers/recruiting page for job seekers, trust-forward warm-modern language.
   System: custom editorial-sans (Geist + Geist Mono), forest-green accent, stone neutrals.
   Dials: DESIGN_VARIANCE 5, MOTION_INTENSITY 4, VISUAL_DENSITY 4.
   One accent (forest), one radius system, one theme lock (auto), zero em-dashes. */

/* 1. Tokens */
:root {
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #faf9f6;            /* warm stone */
  --surface: #ffffff;
  --surface-2: #f1efe9;     /* stone tint */
  --text: #1c1917;          /* warm near-black */
  --text-soft: #57534e;     /* stone-600 */
  --muted: #78716c;         /* stone-500 */
  --border: #e7e5e0;
  --border-strong: #d6d3cd;

  --accent: #1b4d3e;        /* forest green */
  --accent-strong: #123f33;
  --accent-ink: #ffffff;
  --accent-soft: #e4ece6;   /* tinted wash */
  --accent-ring: rgba(27, 77, 62, 0.22);

  --danger: #b91c1c;
  --success: #1b4d3e;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 12px 32px rgba(28, 25, 23, 0.08);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05), 0 4px 12px rgba(28, 25, 23, 0.06);

  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1b1a17;
    --surface-2: #211f1c;
    --text: #f2f0ea;
    --text-soft: #d6d3cd;
    --muted: #a8a29e;
    --border: #2c2a26;
    --border-strong: #3a3733;

    --accent: #58a887;
    --accent-strong: #6fbe9c;
    --accent-ink: #0f201a;
    --accent-soft: #1e2b25;
    --accent-ring: rgba(88, 168, 135, 0.3);

    --danger: #f87171;
    --success: #58a887;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }

@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geistmono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geistmono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 3. Header (single line, <= 80px) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.header-nav a:hover { color: var(--text); }
.header-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
}
.header-nav .nav-cta:hover { color: var(--accent-strong); }

/* 4. Hero (split, left-copy / right-visual) */
.hero {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 70% at 15% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - var(--header-h));
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-copy { max-width: 540px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}
.hero-sub {
  margin: 0 0 30px;
  color: var(--text-soft);
  font-size: 17px;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats div { text-align: left; }
.hero-stats dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}
.hero-stats dd {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 60%;
  height: 60%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  z-index: -1;
}

/* 5. Sections */
.section { padding: 96px 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--text-soft); font-size: 17px; }

/* 6. Roles (asymmetric grid, not 3-equal) */
.roles-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}
.role-card:nth-child(3n + 1) { transform: translateY(-8px); }
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.role-card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.role-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* 7. Process (split, reversed, number-led) */
.process {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.process-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.process-sub { margin: 0 0 36px; color: var(--text-soft); font-size: 17px; max-width: 46ch; }
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.process-list strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 3px;
}
.process-list span { color: var(--text-soft); font-size: 15px; }
.process-visual img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* 8. Apply (2-col form) */
.apply-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.apply-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.apply-intro p { color: var(--text-soft); margin: 0 0 22px; font-size: 16px; }
.apply-points { margin: 0; padding: 0; list-style: none; }
.apply-points li {
  padding-left: 26px;
  position: relative;
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 12px;
}
.apply-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 20px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.req-mark { color: var(--danger); }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
textarea { resize: vertical; }
.field-hint { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
input[type="file"] { padding: 8px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
  font-size: 14px;
}

.success-panel { text-align: center; padding: 24px 8px; }
.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 26px;
  font-weight: 800;
}
.success-panel h3 { margin: 0 0 8px; font-size: 22px; }
.success-panel p { color: var(--text-soft); margin: 0 0 18px; }

/* 9. Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 10. Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .hero { min-height: auto; }
  .hero-visual { max-width: 560px; }
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-copy { order: 1; }
  .process-visual { order: 0; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .role-card:nth-child(3n + 1) { transform: none; }
  .apply-layout { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  .roles-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-stats { gap: 28px; }
  .form-card { padding: 22px; }
  .header-nav a:first-child { display: none; }
  .section { padding: 56px 0; }
  .hero-grid { padding-top: 40px; }
  .process-list li { grid-template-columns: 44px 1fr; }
}

/* 11. Motion (reduced-motion aware) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
