:root {
  --bg: #f6f4fb;
  --surface: #ffffff;
  --ink: #1a1232;
  --muted: #4f466a;
  --brand: #3f0f75;
  --brand-2: #6021a8;
  --accent: #ff5a57;
  --line: rgba(26, 18, 50, 0.12);
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: clamp(1.06rem, 1.2vw, 1.2rem);
}

p {
  margin: 0;
  color: var(--muted);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(96, 33, 168, 0.34);
  outline-offset: 3px;
  border-radius: 8px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 80vh, 740px);
  display: flex;
  align-items: center;
  background-image: url("background.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(246, 244, 251, 0.95) 10%, rgba(246, 244, 251, 0.82) 55%, rgba(246, 244, 251, 0.7) 100%);
}

.hero-inner {
  text-align: center;
  max-width: 900px;
  padding-block: clamp(2.8rem, 8vh, 5.2rem);
  animation: fade-up 700ms ease both;
}

.hero-logo {
  margin-bottom: 1rem;
  color: var(--brand);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: clamp(0.95rem, 1.5vw, 1.16rem);
  text-transform: uppercase;
  height: 170px;
}

.hero-blurb {
  margin: 1rem auto 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.74rem 1.24rem;
  margin-top: 1.55rem;
  transition: transform 140ms ease, filter 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 56%, var(--accent));
}

.btn-primary:hover {
  filter: brightness(1.02);
}

.capabilities {
  background: transparent;
  padding-block: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 0;
}

.capability-item {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.capability-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 9, 44, 0) 0%,
    rgba(20, 9, 44, 0) 48%,
    rgba(20, 9, 44, 0.5) 76%,
    rgba(20, 9, 44, 0.74) 100%
  );
}

.capability-content {
  position: relative;
  z-index: 1;
  padding: 1.2rem;
}

.capability-item h3,
.capability-item p {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.capability-item p {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
}

.capability-item svg {
  width: 40px;
  height: 40px;
  margin: 0 0 0.6rem;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.manifesto {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  display: flex;
  align-items: center;
  background-image: url("manifesto.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.manifesto-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.18);
}

.manifesto-inner {
  text-align: center;
}

.manifesto blockquote {
  margin: 0 auto;
  max-width: 44ch;
  color: #f8f2ff;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(1.26rem, 2.3vw, 1.95rem);
  line-height: 1.34;
  animation: fade-up 700ms ease both;
}

.focus-tabs {
  background: #ffffff;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tab-list label {
  cursor: pointer;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 87, 0.45);
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.tab-panels {
  margin-top: 1.2rem;
}

.tab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.4rem;
  animation: fade-up 400ms ease both;
}

.tab-panel p {
  font-size: clamp(1.02rem, 1.32vw, 1.17rem);
}

.tab-copy p + p {
  margin-top: 0.8rem;
}

.tab-copy {
  align-self: center;
}

.tab-image {
  min-height: 320px;
  border-radius: 14px;
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
}

#tab-1:checked ~ .tab-list label[for="tab-1"],
#tab-2:checked ~ .tab-list label[for="tab-2"],
#tab-3:checked ~ .tab-list label[for="tab-3"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

#tab-1:checked ~ .tab-panels .panel-1,
#tab-2:checked ~ .tab-panels .panel-2,
#tab-3:checked ~ .tab-panels .panel-3 {
  display: grid;
}

.site-footer {
  background: #ffffff;
  padding-block: 2.2rem 2rem;
}

.footer-stack {
  text-align: center;
}

.footer-email {
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-email a {
  color: var(--brand);
}

.site-footer address {
  color: var(--muted);
  font-style: normal;
}

.footer-copyline {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .tab-panel,
  .manifesto blockquote {
    opacity: 0;
    animation: reveal-up both;
    animation-timeline: view();
    animation-range: entry 15% cover 35%;
  }

  .tab-panel {
    animation-name: reveal-left;
  }

  .panel-2 .tab-image,
  .panel-3 .tab-image {
    animation-name: reveal-right;
  }
}

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

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 1.4rem));
  }

  .hero {
    min-height: auto;
    background-attachment: scroll;
  }

  .hero-inner {
    text-align: center;
  }

  .btn {
    width: 100%;
  }

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

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .tab-image {
    min-height: 240px;
  }

  .tab-list {
    justify-content: center;
  }

  .tab-panel p {
    text-align: center;
  }

  .manifesto {
    background-attachment: scroll;
  }

  .hero {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .manifesto {
    background-attachment: scroll;
  }
}
