/* ===========================================================
   BackUPlan LLC — Page Sections
   ========================================================= */

/* -----------------------------
   HERO
   ----------------------------- */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-headline {
  margin: 18px 0 22px;
}
.hero-headline .accent-word {
  display: inline-block;
  color: var(--accent-ink);
  position: relative;
}
.hero-headline .accent-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.18em;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub { max-width: 50ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust {
  display: flex; align-items: center; gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-trust-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-trust-stat .num {
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-trust-stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-trust-divider {
  width: 1px; height: 24px; background: var(--line);
}

/* Hero visual — floating dashboard */
.hero-visual {
  position: relative;
  height: 540px;
}
.dash-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.dash-main {
  inset: 0 0 0 30px;
  width: calc(100% - 30px);
}
.dash-main .dash-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dash-main .dash-top .dots { display: flex; gap: 6px; }
.dash-main .dash-top .dots span {
  width: 8px; height: 8px; border-radius: 999px; background: var(--bg-3);
}
.dash-main .dash-top .url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.dash-body { padding: 22px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dash-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
}
.dash-stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.dash-stat .v {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 6px;
  display: flex; align-items: baseline; gap: 6px;
}
.dash-stat .v small {
  font-size: 11px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 500;
}
.dash-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  height: 180px;
  position: relative;
  background: var(--bg);
}
.dash-chart .ch-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dash-chart svg { width: 100%; height: calc(100% - 24px); }

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.float-card .ico svg { width: 16px; height: 16px; color: var(--accent-ink); }
.float-card .t { font-weight: 500; }
.float-card .s { color: var(--muted); font-size: 11px; font-family: var(--font-mono); }

.float-a { top: 24px; left: -20px; animation-delay: 0s; }
.float-b { bottom: 60px; right: -10px; animation-delay: -2s; }
.float-c { top: 220px; left: -40px; animation-delay: -4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero background — clean */
.hero-bg {
  display: none;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; margin-top: 24px; }
  .float-a { left: 4px; }
  .float-c { left: -8px; top: 240px; }
}

/* -----------------------------
   Logo bar / industries strip
   ----------------------------- */
.logo-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.logo-bar-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-block: 28px;
  flex-wrap: wrap;
}
.logo-bar .l {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex-shrink: 0;
}
.logo-bar ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-2);
}
.logo-bar li { display: inline-flex; align-items: center; gap: 8px; }
.logo-bar li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: rotate(45deg);
}

/* -----------------------------
   About intro (on landing)
   ----------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about-pillars {
  display: grid;
  gap: 20px;
}
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.pillar:last-child { border-bottom: 0; }
.pillar .ix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
}
.pillar h4 { margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 15px; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* -----------------------------
   Services grid
   ----------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.service {
  background: var(--bg-2);
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: background 0.2s ease;
  min-height: 220px;
}
.service:hover { background: var(--bg); }
.service .s-ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.service .s-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.service .s-mark svg { width: 18px; height: 18px; color: var(--ink-2); }
.service h4 { letter-spacing: -0.01em; }
.service p { font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   Projects
   ----------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.project {
  grid-column: span 3;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.project:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.project.featured { grid-column: span 6; }
.project.featured .p-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.project.featured .p-visual { min-height: 280px; }

.p-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.p-visit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-ink);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
  white-space: nowrap;
}
.p-visit:hover { border-color: var(--accent-ink); }
.p-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-status {
  font-family: var(--font-mono);
  font-size: 11px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-ink);
}
.p-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.project h3 { letter-spacing: -0.016em; }
.p-tagline {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
  max-width: 44ch;
}
.p-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.p-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.p-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
}
.p-metrics {
  display: flex; gap: 24px;
  margin-top: 4px;
}
.p-metrics div { display: flex; flex-direction: column; gap: 2px; }
.p-metrics .v { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.p-metrics .l { font-family: var(--font-mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Project visual placeholder */
.p-visual {
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.p-visual .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 4%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}
.p-visual .v-content {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
}

@media (max-width: 980px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project { grid-column: span 1; }
  .project.featured { grid-column: span 2; }
  .project.featured .p-head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project.featured { grid-column: span 1; }
}

/* -----------------------------
   Tech stack
   ----------------------------- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.tech-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tech-badge:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-badge .dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* -----------------------------
   Why us
   ----------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.why-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ink);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
}
.why-card .num::before {
  content: "";
  width: 16px; height: 1px; background: var(--accent);
}
.why-card h4 { margin-bottom: 8px; letter-spacing: -0.015em; }
.why-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 880px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* -----------------------------
   Process timeline — animated
   ----------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
}
/* static background track */
.process::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 8px;                      /* center of dot 1 (dot is 16px wide) */
  right: calc(20% - 8px);         /* center of dot 5 (last col starts at 80%) */
  height: 1px;
  background: var(--line);
  z-index: 0;
}
/* animated fill track */
.process-fill-track {
  position: absolute;
  top: 17px;
  left: 8px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  z-index: 1;
  transition: width 2.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.process.animated .process-fill-track {
  width: calc(80% - 8px);         /* from dot 1 center to dot 5 center */
}

.step {
  position: relative;
  padding-top: 52px;
  padding-right: 20px;
}
.step .step-dot {
  position: absolute;
  top: 10px;
  left: 0;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  z-index: 2;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.step .step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.step .step-ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.step h4 {
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.06s, transform 0.4s ease 0.06s;
}
.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.12s, transform 0.4s ease 0.12s;
}
.step.active .step-ix,
.step.active h4,
.step.active p {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .process::before { display: none; }
  .process-fill-track { display: none; }
  .step { padding-top: 0; padding-left: 30px; }
  .step .step-dot { top: 0; }
  .step .step-ix, .step h4, .step p { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
}

/* -----------------------------
   CTA panel
   ----------------------------- */
.cta-panel {
  background: var(--ink);
  color: white;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 100% 0%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 0%, transparent 60%);
  pointer-events: none;
}
.cta-panel h2 { color: white; max-width: 18ch; }
.cta-panel p { color: rgba(255,255,255,0.7); margin-top: 16px; max-width: 44ch; }
.cta-panel .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; position: relative; }
.cta-panel .btn-secondary { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.15); }
.cta-panel .btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.cta-side {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 48px;
  position: relative;
  display: grid; gap: 20px;
}
.cta-side .row { display: grid; gap: 4px; }
.cta-side .l { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; }
.cta-side .v { font-size: 16px; color: white; }
.cta-side .v a { color: white; border-bottom: 1px solid rgba(255,255,255,0.2); }
.cta-side .v a:hover { border-color: white; }

@media (max-width: 880px) {
  .cta-panel { grid-template-columns: 1fr; }
  .cta-side { border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 32px; }
}

/* -----------------------------
   Page header (sub-pages)
   ----------------------------- */
.page-head {
  padding-block: clamp(72px, 9vw, 120px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  max-width: 18ch;
  margin: 16px 0 16px;
}
.page-head p { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* Breadcrumb */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--muted-2); }

/* -----------------------------
   About page specific
   ----------------------------- */
.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.bio-photo {
  width: 220px; height: 260px;
  border-radius: 18px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.bio-photo .ph-text {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-align: center; padding: 16px;
  letter-spacing: 0.03em;
}
.bio-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(13,15,12,0.04) 6px, rgba(13,15,12,0.04) 7px);
}
.bio h3 { font-size: 24px; margin-bottom: 4px; }
.bio .role { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.bio p { color: var(--muted); margin-bottom: 12px; line-height: 1.6; }

@media (max-width: 640px) {
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .bio-photo { width: 100%; height: 240px; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.value {
  background: var(--bg-2);
  padding: 28px;
  display: grid; gap: 6px;
}
.value .ix { font-family: var(--font-mono); font-size: 11px; color: var(--accent-ink); margin-bottom: 8px; }
.value h4 { letter-spacing: -0.01em; }
.value p { color: var(--muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }

.industries-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.industry {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg-2);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color 0.18s ease;
}
.industry:hover { border-color: var(--line-2); }
.industry .ix { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 880px) { .industries-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries-list { grid-template-columns: 1fr; } }

/* -----------------------------
   Careers
   ----------------------------- */
.careers-hero {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-2);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.careers-hero h2 { margin-bottom: 16px; max-width: 16ch; }
.careers-hero p { color: var(--muted); margin-bottom: 24px; max-width: 50ch; }
.careers-visual {
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.careers-visual .line { display: block; }
.careers-visual .c-mute { color: var(--muted); }
.careers-visual .c-key { color: var(--accent-ink); }
.careers-visual .blink { animation: blink 1s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.role-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  transition: border-color 0.18s ease;
}
.role-card:hover { border-color: var(--line-2); }
.role-card .r-ix { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.role-card .r-title { font-weight: 500; }
.role-card .r-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.role-card .r-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.role-card .r-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warn);
  display: inline-flex; align-items: center; gap: 6px;
}
.role-card .r-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--warn);
}
@media (max-width: 880px) {
  .role-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .role-card > * { justify-self: start; }
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perk {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--bg-2);
}
.perk .ix { font-family: var(--font-mono); font-size: 11px; color: var(--accent-ink); margin-bottom: 12px; }
.perk h4 { margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr; } }

/* -----------------------------
   Contact
   ----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; flex-wrap: wrap; }
.form-actions .note { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.contact-aside { padding-top: 8px; }
.contact-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.contact-block:last-child { border-bottom: 0; }
.contact-block .l {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.contact-block .v { font-size: 17px; color: var(--ink); }
.contact-block .v a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.contact-block .v a:hover { border-color: var(--ink); }

.success-msg {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.success-msg.show { display: block; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* -----------------------------
   FAQ
   ----------------------------- */
.faq {
  border-top: 1px solid var(--line);
  max-width: 880px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 70ch;
}
