:root {
  --bg: #f6efdf;
  --bg-alt: #fbf7ee;
  --surface: rgba(255, 255, 255, 0.52);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --text: #1f2c3f;
  --muted: #5b6a7d;
  --accent: #f07c2f;
  --accent-strong: #d85f12;
  --navy: #1d3557;
  --line: rgba(29, 53, 87, 0.12);
  --shadow: 0 24px 60px rgba(29, 53, 87, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 124, 47, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(29, 53, 87, 0.1), transparent 32%),
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 100%);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.7rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 223, 0.78);
  border-bottom: 1px solid rgba(29, 53, 87, 0.08);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark,
.footer-logo {
  width: min(200px, 46vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-current {
  background: rgba(29, 53, 87, 0.08);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(251, 247, 238, 0.88));
  border-block: 1px solid rgba(29, 53, 87, 0.06);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.lead {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-grid,
.page-hero-grid,
.split-layout,
.two-column,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 1.15rem;
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.text-link:hover,
.site-nav a:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #f49a54);
  color: white;
  box-shadow: 0 18px 34px rgba(240, 124, 47, 0.24);
}

.button-secondary {
  border-color: rgba(29, 53, 87, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.stats div,
.visual-card,
.feature-card,
.content-card,
.info-card,
.job-card,
.contact-card,
.contact-form,
.split-panel {
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 1rem;
}

.stats dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  font-weight: 800;
}

.stats dd {
  margin: 0.4rem 0 0;
  color: var(--navy);
  font-weight: 700;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.visual-card {
  position: relative;
  padding: 1.2rem;
  overflow: hidden;
}

.visual-card-large {
  min-height: 28rem;
  background:
    radial-gradient(circle at top left, rgba(240, 124, 47, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(29, 53, 87, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.4);
}

.hero-carousel {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.visual-badge,
.job-tag {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(29, 53, 87, 0.08);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.visual-card p {
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.carousel-track {
  position: relative;
  min-height: 22rem;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: rgba(29, 53, 87, 0.08);
}

.carousel-track::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(29, 53, 87, 0.18));
  pointer-events: none;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 360ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 53, 87, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: scale(1.08);
  background: rgba(240, 124, 47, 0.72);
  outline: none;
}

.carousel-dot.is-active {
  background: var(--accent);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.visual-grid .visual-card {
  min-height: 11rem;
  background: var(--surface-strong);
}

.visual-grid .visual-card h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.visual-grid .visual-card p {
  margin-top: 0.9rem;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.split-copy h2,
.cta-band h2,
.page-hero h1 {
  max-width: 16ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.content-card,
.info-card,
.job-card,
.contact-card {
  padding: 1.4rem;
}

.feature-card p,
.content-card p,
.info-card p,
.job-card p,
.contact-card p,
.timeline-item p {
  color: var(--muted);
}

.split-layout,
.two-column,
.contact-grid,
.page-hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.split-panel {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  min-height: 20rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.24);
}

.panel-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.panel-blob-orange {
  inset: 2rem auto auto 1rem;
  width: 14rem;
  height: 14rem;
  background: rgba(240, 124, 47, 0.22);
}

.panel-blob-blue {
  right: 1rem;
  bottom: 1rem;
  width: 11rem;
  height: 11rem;
  background: rgba(29, 53, 87, 0.18);
}

.checklist,
.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li,
.stack-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7rem;
}

.checklist li::before,
.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

.text-link {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(240, 124, 47, 0.16), rgba(29, 53, 87, 0.12)),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(29, 53, 87, 0.08);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(29, 53, 87, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 0.7fr));
  gap: 1.5rem;
}

.footer-grid h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-weight: 700;
}

.page-main {
  padding-bottom: 3rem;
}

.page-hero {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.page-hero-grid {
  align-items: start;
}

.info-card-accent {
  background:
    radial-gradient(circle at top right, rgba(240, 124, 47, 0.16), transparent 36%),
    var(--surface);
}

.timeline-shell {
  display: grid;
  gap: 1rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(29, 53, 87, 0.08);
  box-shadow: var(--shadow);
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(240, 124, 47, 0.12);
  color: var(--accent-strong);
  font-weight: 900;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.job-card {
  min-height: 18rem;
}

.contact-grid {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 700;
}

.contact-form span {
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(29, 53, 87, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(240, 124, 47, 0.45);
  border-color: transparent;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.contact-card h2 {
  max-width: 13ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .two-column,
  .contact-grid,
  .page-hero-grid,
  .footer-grid,
  .jobs-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-heading h2,
  .split-copy h2,
  .cta-band h2,
  .page-hero h1,
  .contact-card h2 {
    max-width: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(29, 53, 87, 0.08);
    border-radius: 24px;
    background: rgba(251, 247, 238, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .js .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
  }

  .nav-shell {
    min-height: 76px;
  }

  h1 {
    font-size: clamp(2.9rem, 16vw, 4.4rem);
  }

  .section {
    padding: 3.4rem 0;
  }

  .carousel-track {
    min-height: 18rem;
  }
}
