/* Type: Switzer (Fontshare), used for both display and body. */
:root {
  --ink: #1e1e1e;
  --paper: #fffefa;
  --line: rgba(30, 30, 30, 0.12);
  --muted: rgba(30, 30, 30, 0.62);
  --accent: #ff7300;
  --font-display: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; }

section > * + * { margin-top: 1.1em; }

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--ink); opacity: 0.75; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-current { opacity: 1 !important; font-weight: 600; }
.nav-cta {
  opacity: 1 !important;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
}
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid transparent; }
.btn-primary:hover { border-color: var(--accent); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-large { font-size: 18px; padding: 18px 34px; }

/* HERO */
.hero-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  padding: 40px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(39px, 6.2vw, 64px);
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-sub--strong {
  color: var(--ink);
  font-weight: 500;
}
.hero-circle {
  position: relative;
  display: inline-block;
  padding: 0 6px;
}
.hero-circle::after {
  content: '';
  position: absolute;
  left: -14px;
  right: -14px;
  top: -7px;
  bottom: -9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath d='M148,11 C104,6 46,15 24,34 C4,52 6,73 42,84 C93,99 209,98 258,81 C291,69 293,44 267,27 C246,13 197,7 158,8' fill='none' stroke='%23ff7300' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.symptom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.symptom-list li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 91px;
}

/* PIN STACK: bounds the sticky range to machine+approach+why-now, so
   machine properly unsticks once they've fully covered it, instead of
   staying sticky (and re-overlaying later sections) for the rest of the
   page. Combined, approach+why-now are naturally taller than a viewport,
   so machine gets fully covered without needing artificial height on
   either section. */
.pin-stack {
  position: relative;
}

/* LOGO SCROLL */
.logo-scroll {
  background: var(--paper);
  padding: 0 0 48px;
  flex-shrink: 0;
}
.logo-scroll-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 28px;
}
.logo-marquee {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 88px;
  width: max-content;
  animation: logo-scroll 26s linear infinite;
}
.logo-item {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.8;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* MACHINE (dark, inverted from original light treatment) */
.machine {
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 1;
}
.machine-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px;
}
.machine-inner > * + * {
  margin-top: 1.1em;
}
.machine .section-label { color: rgba(255, 254, 250, 0.55); }
.machine h2 {
  font-size: clamp(17px, 3.6vw, 40px);
  white-space: nowrap;
}
.machine-steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.machine-steps li {
  border-top: 2px solid var(--paper);
  padding-top: 18px;
}
.step-index {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.machine-steps h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.machine-steps p {
  font-size: 15px;
  color: rgba(255, 254, 250, 0.68);
  line-height: 1.55;
}

/* TRUST (light, inverted from original dark treatment) */
.trust {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding: 100px 24px;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 56px;
  align-items: start;
}
.trust-side > * + * { margin-top: 20px; }
.trust-side--problem { padding-top: 8px; }
.trust-side--answer { padding-top: 64px; }
.trust-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(30, 30, 30, 0.16) 15%, rgba(30, 30, 30, 0.16) 85%, transparent);
}
.trust h2 {
  font-size: clamp(32px, 4.4vw, 38px);
  margin-top: 1.1em;
}
.quote-mark {
  color: var(--accent);
}
.trust-lead {
  font-size: 20px;
  font-weight: 500;
}
.trust-frame {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 0 !important;
}
.trust-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-points li {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.trust-punch {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
  margin-top: 28px;
}

/* TRUST - VERSION A: CARD ROW (matches wedge-intro / wedge-card language) */
.trust-intro {
  max-width: 700px;
}
.trust-intro > * + * { margin-top: 20px; }
.trust-intro h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin-top: 1.1em;
}
.trust-intro .trust-lead {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  max-width: 640px;
}
.trust-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  background: #f4f2ec;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}
.trust-card:hover {
  border-color: var(--ink);
}
.trust-card p {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.trust > .trust-punch {
  max-width: 640px;
  margin-top: 32px;
}
@media (max-width: 700px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* TRUST - VERSION B: PILL TAGS (matches hero symptom-list language) */
.trust-pills {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-pills li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
}

@media (max-width: 780px) {
  .trust-inner { grid-template-columns: 1fr; gap: 0; }
  .trust-divider { display: none; }
  .trust-side--answer { padding-top: 40px; }
}

/* WHY NOW */
.why-now {
  background: var(--paper);
  padding: 100px 0;
  position: relative;
  z-index: 2;
}
.why-now-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-now h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-top: 1.1em;
  margin-bottom: 20px;
}
.why-now-text p:not(.section-label) {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
}
.why-now-text p:not(.section-label) + p { margin-top: 16px; }
.why-now-punch {
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 540px !important;
}
.why-now-stat {
  text-align: center;
}
.stat-caption,
.stat-footnote {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.stat-figure {
  display: inline-block;
  font-family: 'Caveat', var(--font-display);
  font-weight: 700;
  font-size: clamp(120px, 13vw, 220px);
  line-height: 0.85;
  margin-bottom: 20px;
  color: var(--accent);
  letter-spacing: -0.01em;
  transform: rotate(-2deg);
}
.stat-caption {
  display: block;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.stat-footnote {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
}

/* APPROACH */
.approach {
  padding: 100px 0 0;
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.approach-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.approach h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  max-width: 640px;
  margin-top: 1.1em;
}
.approach-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.approach-card {
  background: var(--paper);
  padding: 32px 26px;
}
.approach-card h3 {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.approach-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.approach-more {
  margin-top: 56px;
  text-align: center;
}

/* PAYOFF */
.payoff {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
}
.payoff h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 900px;
  margin-top: 1.1em;
}
.payoff-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.payoff-card {
  background: var(--paper);
  padding: 32px 26px;
}
.payoff-card h3 {
  display: inline-block;
  font-size: 20px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.payoff-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.payoff-more {
  margin-top: 36px;
  text-align: center;
}
@media (max-width: 860px) {
  .payoff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .payoff-grid { grid-template-columns: 1fr; }
}

/* ROUTE DIAGRAM ("Route" version of the approach section) */
.route-diagram {
  margin-top: 64px;
}
.route-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.route-hub-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
}
.route-hub-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.route-connectors {
  position: relative;
  height: 40px;
}
.route-connectors-vert {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--line);
  transform: translateX(-50%);
}
.route-connectors-horiz {
  position: absolute;
  top: 20px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--line);
}
.route-branches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.route-branch {
  position: relative;
  padding: 20px 24px 0;
  text-align: center;
}
.route-branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--line);
  transform: translateX(-50%);
}
.route-branch h3 {
  font-size: 21px;
}
.route-branch p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .route-connectors { display: none; }
  .route-branch::before { display: none; }
  .route-branches { grid-template-columns: 1fr; gap: 28px; }
  .route-branch { padding-top: 0; }
}

/* CONTACT FORM PAGE (contact.html) */
.form-hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 90px 24px 140px;
}
.form-hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  margin-top: 20px;
}
.form-hero-lead {
  font-size: 18px;
  color: var(--muted);
  margin-top: 20px;
  max-width: 520px;
}
.contact-form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn {
  align-self: flex-start;
  margin-top: 8px;
  cursor: pointer;
}
.form-success {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.form-success h2 {
  font-size: 28px;
}
.form-success p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
}
.form-success a { color: var(--ink); text-decoration: underline; }

/* DETAIL PAGE (how-we-work.html) */
.detail-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px 80px;
}
.detail-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  max-width: 800px;
  margin-top: 20px;
}
.detail-hero-lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin-top: 24px;
}
.detail-block {
  border-top: 1px solid var(--line);
}
.detail-block--alt {
  background: #f4f2ec;
}
.detail-block-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
}
.detail-block-inner > * + * { margin-top: 18px; }
.detail-block-inner h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-top: 12px;
}
.detail-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.detail-block-inner p:not(.detail-lead) {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
}

/* WEDGE */
.wedge {
  background: var(--paper);
  padding: 100px 24px;
}
.wedge-intro {
  max-width: var(--max);
  margin: 0 auto 56px;
}
.wedge-intro > * + * { margin-top: 20px; }
.wedge-intro .section-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.atlassian-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.wedge h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  max-width: 700px;
  margin-top: 1.1em;
}
.wedge-lead {
  font-size: 17px;
  color: var(--ink);
  max-width: 700px;
}
.wedge-underline {
  position: relative;
}
.wedge-underline::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -7px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M4,15 C55,10 95,18 150,12 C210,6 250,17 310,11 C345,7 365,13 394,9' fill='none' stroke='%23ff7300' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.wedge-intro .btn { margin-top: 28px; }
.wedge-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.wedge-card {
  background: #f4f2ec;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}
.wedge-card:hover {
  border-color: var(--ink);
}
.wedge-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.wedge-highlight {
  color: var(--accent);
  font-weight: 700;
}
.wedge-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.wedge-punch {
  max-width: var(--max);
  margin: 40px auto 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .wedge-grid { grid-template-columns: 1fr; }
}

/* WHO */
.who {
  background: var(--paper);
  padding: 100px 24px;
}
.who-inner {
  max-width: 780px;
  margin: 0 auto;
}
.who-inner > * + * {
  margin-top: 1.1em;
}
.who h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}
.who p {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
}
.who p + p { margin-top: 16px; }

/* CONTACT */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 24px;
  text-align: center;
}
.contact .section-label { color: rgba(255, 254, 250, 0.55); }
.contact h2 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.fade-out {
  background: linear-gradient(to right, var(--paper) 0%, rgba(255, 254, 250, 0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-lead {
  font-size: 18px;
  color: rgba(255, 254, 250, 0.78);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.contact-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.contact .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.contact .btn-primary:hover { background: #e9e7e0; }

/* FOOTER */
.footer {
  background: var(--ink);
  padding: 64px 24px 48px;
  text-align: center;
}
.footer-mark { margin: 0 auto 16px; }
.footer-copyright {
  font-size: 13px;
  color: rgba(255, 254, 250, 0.5);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .machine-steps { grid-template-columns: repeat(2, 1fr); }
  .why-now-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  /* The 2-column step grid can grow taller than 100vh, and a sticky
     section can't be scrolled internally - so below this width the
     pin-and-cover effect is dropped in favour of normal flow. */
  .machine { position: static; min-height: auto; }
}
@media (max-width: 640px) {
  /* Anchor links don't fit alongside the logo and CTA at phone widths -
     drop them and keep just the primary CTA, since every link only
     scrolls to a section already reachable by scrolling the page. */
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .machine-steps { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
