html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Recursive",
    -apple-system,
    sans-serif;
  font-variation-settings:
    "wght" 400,
    "MONO" 0,
    "CASL" 0.4,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-variation-settings:
    "wght" 400,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
}

.atmo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 30% 10%,
      rgba(196, 168, 130, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(139, 92, 246, 0.03) 0%,
      transparent 40%
    );
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.rd1 {
  transition-delay: 0.08s;
}
.rd2 {
  transition-delay: 0.16s;
}
.rd3 {
  transition-delay: 0.24s;
}
.rd4 {
  transition-delay: 0.32s;
}
.rd5 {
  transition-delay: 0.4s;
}
.rd6 {
  transition-delay: 0.48s;
}
.rd7 {
  transition-delay: 0.56s;
}
.rd8 {
  transition-delay: 0.64s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal:not(.visible),
  .reveal.visible {
    opacity: 1;
    transition: none;
    transform: none;
  }
  .rd1,
  .rd2,
  .rd3,
  .rd4,
  .rd5,
  .rd6,
  .rd7,
  .rd8 {
    transition-delay: 0s;
  }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
section {
  padding: 96px 0;
}
.section-label {
  font-variation-settings:
    "wght" 600,
    "MONO" 1,
    "CASL" 0.3,
    "CRSV" 0.5,
    "slnt" -4;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 40px;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Nav lives in atlascrew.css */

/* Hero */
.hero {
  min-height: 70vh;
  min-height: min(78svh, 780px);
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
  /* New stacking context keeps hero overlays inside the section. */
  isolation: isolate;
  background: #070a0f;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Left-weighted scrim preserves text contrast while leaving the bench visible. */
  background:
    linear-gradient(
      90deg,
      rgba(11, 13, 17, 0.95) 0%,
      rgba(11, 13, 17, 0.86) 32%,
      rgba(11, 13, 17, 0.5) 62%,
      rgba(11, 13, 17, 0.7) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 13, 17, 0.18) 0%,
      rgba(11, 13, 17, 0.12) 48%,
      var(--bg) 100%
    );
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  pointer-events: none;
  /* Reinforces the foreground-to-page fade over the workbench edge. */
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero .container {
  z-index: 2;
}
.hero-intro {
  font-variation-settings:
    "wght" 500,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-name {
  font-variation-settings:
    "wght" 300,
    "MONO" 0,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin: 0 0 22px;
  max-width: 820px;
}
.hero-name.consulting-title {
  font-size: clamp(40px, 5.8vw, 74px);
  letter-spacing: 0.025em;
  max-width: 880px;
}
.hero-statement {
  font-size: clamp(22px, 3vw, 34px);
  font-variation-settings:
    "wght" 300,
    "MONO" 0,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--accent-warm);
  margin: 0 0 24px;
  max-width: 640px;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  max-width: 640px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 20, 28, 0.58);
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  font-variation-settings:
    "wght" 600,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.hero-link.primary {
  border-color: rgba(196, 168, 130, 0.75);
  background: rgba(196, 168, 130, 0.13);
  color: var(--text-bright);
}
.hero-link:hover,
.hero-link:focus-visible {
  border-color: var(--accent-warm);
  background: rgba(196, 168, 130, 0.1);
  color: var(--text-bright);
}
.hero-link:focus-visible {
  outline: 2px solid rgba(196, 168, 130, 0.55);
  outline-offset: 3px;
}
.hero-link:active {
  background: rgba(196, 168, 130, 0.16);
  transform: translateY(1px);
}

/* Part headings */
.part {
  padding: 80px 0 0;
}
.part + section {
  padding-top: 64px;
}
.part-num {
  font-variation-settings:
    "wght" 600,
    "MONO" 1,
    "CASL" 0.3,
    "CRSV" 0.5,
    "slnt" -4;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-warm);
  opacity: 0.7;
  margin-bottom: 14px;
}
.part-title {
  font-size: clamp(30px, 4vw, 42px);
  font-variation-settings:
    "wght" 300,
    "MONO" 0,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  color: var(--text-bright);
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.part-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-top: 20px;
}

/* About prose */
.about-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}
.about-text strong {
  color: var(--text);
  font-weight: 600;
}
.about-text + .about-text {
  margin-top: 24px;
}
.section-intro-spaced {
  margin-bottom: 40px;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.value-card {
  background: var(--bg-raised);
  padding: 32px 28px;
  transition: background 0.3s;
}
.value-card:hover {
  background: var(--bg-hover);
}
.value-card:first-child {
  border-radius: 8px 0 0 0;
}
.value-card:nth-child(2) {
  border-radius: 0 8px 0 0;
}
.value-card:nth-child(3) {
  border-radius: 0 0 0 8px;
}
.value-card:last-child {
  border-radius: 0 0 8px 0;
}
.value-tag {
  font-variation-settings:
    "wght" 500,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 12px;
  opacity: 0.7;
}
.value-card h3 {
  font-variation-settings:
    "wght" 500,
    "MONO" 0,
    "CASL" 0.2,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 16px;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.service-card {
  background: var(--bg-raised);
  padding: 32px 28px;
  transition: background 0.3s;
}
.service-card:hover {
  background: var(--bg-hover);
}
.service-card:first-child {
  border-radius: 8px 0 0 0;
}
.service-card:nth-child(2) {
  border-radius: 0 8px 0 0;
}
.service-card:nth-child(3) {
  border-radius: 0 0 0 8px;
}
.service-card:last-child {
  border-radius: 0 0 8px 0;
}
.service-card h3 {
  font-variation-settings:
    "wght" 500,
    "MONO" 0,
    "CASL" 0.2,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 16px;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.service-tag {
  font-variation-settings:
    "wght" 500,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 12px;
  opacity: 0.7;
}

/* Pattern */
.pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}
.pattern-step {
  background: var(--bg-raised);
  padding: 28px 24px;
}
.pattern-step:first-child {
  border-radius: 8px 0 0 8px;
}
.pattern-step:last-child {
  border-radius: 0 8px 8px 0;
}
.pattern-num {
  font-variation-settings:
    "wght" 400,
    "MONO" 1,
    "CASL" 0.6,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 28px;
  color: var(--accent-warm);
  opacity: 0.5;
  margin-bottom: 12px;
}
.pattern-step h3 {
  font-variation-settings:
    "wght" 500,
    "MONO" 0,
    "CASL" 0.2,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 15px;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.pattern-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline-item {
  background: var(--bg-raised);
  padding: 28px 28px;
  display: flex;
  gap: 32px;
  align-items: baseline;
  transition: background 0.3s;
}
.timeline-item:hover {
  background: var(--bg-hover);
}
.timeline-item:first-child {
  border-radius: 8px 8px 0 0;
}
.timeline-item:last-child {
  border-radius: 0 0 8px 8px;
}
.timeline-year {
  font-variation-settings:
    "wght" 400,
    "MONO" 1,
    "CASL" 0.6,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 14px;
  color: var(--accent-warm);
  min-width: 80px;
  opacity: 0.7;
}
.timeline-content h3 {
  font-variation-settings:
    "wght" 500,
    "MONO" 0,
    "CASL" 0.2,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 15px;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.timeline-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.path-resume-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 20, 28, 0.48);
}
.path-resume-cta p {
  max-width: 66ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.path-resume-cta a {
  flex: 0 0 auto;
  font-variation-settings:
    "wght" 600,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-warm);
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
  border-bottom: 1px solid rgba(196, 168, 130, 0.35);
}
.path-resume-cta a:hover {
  color: var(--text-bright);
  border-color: var(--text-bright);
}
.path-resume-cta a:focus-visible {
  color: var(--text-bright);
  border-color: var(--text-bright);
  outline: 2px solid var(--accent-warm);
  outline-offset: 5px;
}
.path-resume-cta a span {
  opacity: 0.45;
}

/* Brand section */
.brand-block {
  background: var(--bg-raised);
  border-radius: 8px;
  padding: 48px 40px;
  margin-top: 40px;
  border-left: 2px solid var(--accent-warm);
}
.brand-block h2,
.brand-block h3 {
  font-size: 22px;
  font-variation-settings:
    "wght" 400,
    "MONO" 0,
    "CASL" 0.2,
    "CRSV" 0.5,
    "slnt" 0;
  color: var(--text-bright);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.brand-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
}
.brand-block p + p {
  margin-top: 16px;
}

/* Consulting CTA */
.cta-banner {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 32px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 28px;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.3s,
    border-color 0.3s;
  position: relative;
}
.cta-banner:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}
.cta-banner-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.cta-banner-body {
  flex: 1 1 280px;
  min-width: 0;
}
.cta-banner-body h2,
.cta-banner-body h3 {
  font-size: 20px;
  font-variation-settings:
    "wght" 500,
    "MONO" 0,
    "CASL" 0.2,
    "CRSV" 0.5,
    "slnt" 0;
  color: var(--accent-warm);
  margin-top: 0;
  margin-bottom: 4px;
}
.cta-banner-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.cta-banner-link {
  font-variation-settings:
    "wght" 600,
    "MONO" 1,
    "CASL" 0.3,
    "CRSV" 0.5,
    "slnt" -2;
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: var(--accent-warm);
  transition: color 0.3s;
}
.cta-banner:hover .cta-banner-link {
  color: var(--text-bright);
}
.cta-banner-actions {
  flex-basis: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.cta-banner-actions a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-variation-settings:
    "wght" 500,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.cta-banner-actions a:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  color: var(--text-bright);
}
.cta-banner-action-arrow {
  opacity: 0.4;
}

/* Contact */
.contact-section {
  text-align: center;
}
.contact-section h2 {
  font-size: 28px;
  font-variation-settings:
    "wght" 300,
    "MONO" 0,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  color: var(--text-bright);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.contact-section p {
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 28px;
  font-size: 15px;
}
.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variation-settings:
    "wght" 500,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.contact-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-text {
  font-variation-settings:
    "wght" 500,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 11px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-variation-settings:
    "wght" 500,
    "MONO" 1,
    "CASL" 0,
    "CRSV" 0.5,
    "slnt" 0;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  section {
    padding: 64px 0;
  }
  .part {
    padding: 48px 0 0;
  }
  .part + section {
    padding-top: 40px;
  }
  .hero {
    min-height: auto;
    min-height: min(78svh, 620px);
    padding: 88px 0 56px;
  }
  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(11, 13, 17, 0.78) 0%,
        rgba(11, 13, 17, 0.72) 46%,
        var(--bg) 100%
      ),
      linear-gradient(90deg, rgba(11, 13, 17, 0.85), rgba(11, 13, 17, 0.5));
  }
  .hero-art img {
    object-position: 58% center;
  }
  .hero-links {
    gap: 8px;
    margin-top: 24px;
  }
  .hero-link {
    min-height: 44px;
    padding: 0 12px;
  }
  .hero-name.consulting-title {
    font-size: clamp(32px, 8.5vw, 40px);
    letter-spacing: 0.012em;
  }
  .values-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .value-card {
    border-radius: 0 !important;
  }
  .value-card:first-child {
    border-radius: 8px 8px 0 0 !important;
  }
  .value-card:last-child {
    border-radius: 0 0 8px 8px !important;
  }
  .service-card {
    border-radius: 0 !important;
  }
  .service-card:first-child {
    border-radius: 8px 8px 0 0 !important;
  }
  .service-card:last-child {
    border-radius: 0 0 8px 8px !important;
  }
  .pattern-grid {
    grid-template-columns: 1fr;
  }
  .pattern-step {
    border-radius: 0 !important;
  }
  .pattern-step:first-child {
    border-radius: 8px 8px 0 0 !important;
  }
  .pattern-step:last-child {
    border-radius: 0 0 8px 8px !important;
  }
  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }
  .path-resume-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .brand-block {
    padding: 32px 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 16px;
  }
  .cta-banner-link {
    margin-top: 4px;
  }
  .cta-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .cta-banner-actions a {
    min-width: 0;
    justify-content: center;
  }
}
