:root {
  --brand: #4a1f57;
  --white: #ffffff;
  --brand-rgb: 74, 31, 87;
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--brand);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--brand);
}

p {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.25rem) 0;
  position: relative;
}

.section--brand {
  background: var(--brand);
  color: var(--white);
}

.section--brand h2,
.section--brand h3,
.section--brand p {
  color: var(--white);
}

.section--soft {
  background: rgba(var(--brand-rgb), 0.05);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.section-head--on-brand h2,
.section-head--on-dark h2 {
  color: var(--white);
}

.subhead,
.values-title,
.services__title,
.careers__sub {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
}

.btn--primary:hover {
  background: #3a1845;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(var(--brand-rgb), 0.35);
  color: var(--brand);
}

.btn--ghost:hover {
  border-color: var(--brand);
  background: rgba(var(--brand-rgb), 0.04);
}

.btn--on-dark {
  background: var(--white);
  color: var(--brand);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.9);
}

.placeholder-panel {
  padding: 1.75rem 1.5rem;
  border: 1px dashed rgba(var(--brand-rgb), 0.35);
  background: rgba(var(--brand-rgb), 0.03);
  margin-bottom: 2.5rem;
}

.placeholder-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.placeholder-panel p {
  color: rgba(var(--brand-rgb), 0.78);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(var(--brand-rgb), 0.1);
}

.nav {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand img {
  width: 132px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-header.is-scrolled .nav__brand img,
.site-header.nav-light .nav__brand img,
.site-header.is-open .nav__brand img {
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.site-header.is-scrolled .nav__links a,
.site-header.nav-light .nav__links a {
  color: var(--brand);
}

.nav__cta {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
}

.site-header.is-scrolled .nav__cta,
.site-header.nav-light .nav__cta {
  border-color: var(--brand);
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 1.3rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: var(--white);
  transition: background 0.3s ease;
}

.site-header.is-scrolled .nav__toggle span,
.site-header.nav-light .nav__toggle span,
.site-header.is-open .nav__toggle span {
  background: var(--brand);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #1a0c20;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-ken 18s ease-out forwards;
}

@keyframes hero-ken {
  to { transform: scale(1); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 12, 32, 0.45) 0%, rgba(26, 12, 32, 0.35) 40%, rgba(26, 12, 32, 0.82) 100%),
    linear-gradient(90deg, rgba(74, 31, 87, 0.55) 0%, rgba(26, 12, 32, 0.2) 60%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto 0 max(1.5rem, calc((100% - 1120px) / 2));
  padding: calc(var(--header-h) + 2.5rem) 0 5.5rem;
  max-width: 44rem;
}

.hero__logo {
  width: min(340px, 78vw);
  height: auto;
  margin-bottom: 1.4rem;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: clamp(1.55rem, 3.1vw, 2.3rem);
  font-weight: 600;
  color: var(--white);
  max-width: 18ch;
}

.hero__sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero .btn--primary {
  background: var(--white);
  color: var(--brand);
}

.hero .btn--primary:hover {
  background: #f5f5f5;
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 1.45rem;
  height: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.4rem;
}

.hero__scroll span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  animation: scroll-dot 1.6s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Value */
.value__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.75rem;
}

.value__item {
  padding: 1.4rem 0 1.1rem;
  border-top: 1px solid rgba(var(--brand-rgb), 0.18);
}

.value__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(var(--brand-rgb), 0.55);
  margin-bottom: 0.9rem;
}

.value__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.value__item p {
  color: rgba(var(--brand-rgb), 0.82);
  font-size: 0.98rem;
}

/* About */
.about__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

.about__block {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.about__block h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
  color: var(--white);
}

.about__block p + p {
  margin-top: 1rem;
}

.about__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.values-row li {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Products / services */
.services {
  padding-top: 0.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.services__grid li {
  padding: 1.3rem 1.15rem;
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  background: rgba(var(--brand-rgb), 0.04);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.services__grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.4);
}

.services__grid h4 {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}

.services__grid p {
  font-size: 0.92rem;
  color: rgba(var(--brand-rgb), 0.8);
}

/* How it works — connected flow */
.journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

.journey__step {
  padding: 1.4rem 1.15rem;
  background: var(--white);
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  position: relative;
}

.journey__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(var(--brand-rgb), 0.55);
  margin-bottom: 1rem;
}

.journey__step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.journey__step p {
  color: rgba(var(--brand-rgb), 0.8);
  font-size: 0.94rem;
}

.journey__connector {
  width: 1.5rem;
  align-self: center;
  height: 2px;
  background: var(--brand);
  position: relative;
}

.journey__connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand);
  border-top: 2px solid var(--brand);
  transform: translateY(-50%) rotate(45deg);
}

.how__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.industry-grid li {
  min-height: 6.5rem;
  display: grid;
  place-items: end start;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.35s ease, transform 0.35s var(--ease);
}

.industry-grid li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.industry-grid span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

/* Impact */
.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.highlight-list li,
.topic-list li {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

/* Careers */
.careers {
  position: relative;
  min-height: 32rem;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #1a0c20;
}

.careers__media {
  position: absolute;
  inset: 0;
}

.careers__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(74, 31, 87, 0.92) 0%, rgba(26, 12, 32, 0.78) 55%, rgba(26, 12, 32, 0.55) 100%);
}

.careers__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 10vw, 7rem);
}

.careers__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}

.careers__perks li {
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}

.careers__roles {
  margin-bottom: 1.5rem;
}

.careers__roles h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.careers__roles p {
  color: rgba(255, 255, 255, 0.85);
}

/* Contact */
.contact__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.social span {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(var(--brand-rgb), 0.7);
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.2);
  padding-bottom: 0.1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.7rem;
  background: var(--white);
  border: 1px solid rgba(var(--brand-rgb), 0.16);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(var(--brand-rgb), 0.25);
  background: rgba(var(--brand-rgb), 0.03);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  color: var(--brand);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .btn {
  justify-self: start;
}

/* Footer */
.footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.25rem 0 2.25rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer__brand img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer__links a:hover,
.footer__legal a:hover {
  color: var(--white);
}

.footer__newsletter label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__newsletter-row {
  display: flex;
  gap: 0.5rem;
}

.footer__newsletter input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
}

.footer__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer__newsletter .btn--primary {
  background: var(--white);
  color: var(--brand);
  white-space: nowrap;
}

.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero__image,
  .hero__scroll span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .value__grid,
  .services__grid,
  .industry-grid,
  .highlight-list,
  .topic-list,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .about__media {
    aspect-ratio: 16 / 10;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .journey__connector {
    width: 2px;
    height: 1.4rem;
    justify-self: center;
  }

  .journey__connector::after {
    right: 50%;
    top: auto;
    bottom: -3px;
    transform: translateX(50%) rotate(135deg);
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: inline-block;
  }

  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(var(--brand-rgb), 0.12);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    color: var(--brand) !important;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(var(--brand-rgb), 0.1);
  }

  .nav__cta {
    border: 0 !important;
    padding-left: 0 !important;
  }

  .site-header.is-open {
    background: rgba(255, 255, 255, 0.98);
  }

  .value__grid,
  .services__grid,
  .industry-grid,
  .highlight-list,
  .topic-list,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__newsletter-row {
    flex-direction: column;
  }

  .hero__content {
    margin-left: auto;
    margin-right: auto;
  }
}
