/* ==================================================
   Root Variables
   ================================================== */

:root {
  --bg: #f7f5f1;
  --surface: #fff;
  --surface-soft: #f4f1ea;
  --ink: #15171a;
  --muted: #636973;
  --line: #e6e0d7;
  --accent: #476c77;
  --accent-strong: #183d48;
  --mint: #c6ddd0;
  --gold: #d7c39d;
  --shadow: 0 24px 70px rgba(32, 36, 39, .12);
  --brand-purple: #7b45c7;
  --brand-blue: #91afe4;
  --brand-pink: #d978d4;
}


/* ==================================================
   Base Styles
   ================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4rem, 8vw, 5.3rem);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}


/* ==================================================
   Layout
   ================================================== */

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand-purple);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(123, 69, 199, .14);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading h2 {
  max-width: 720px;
}

.services-band,
.support-band {
  background: #fff;
}

.contact-band {
  background: #f2efea;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: 76px;
  padding: 104px 0 116px;
}

.split-section > div:first-child h2 {
  max-width: 540px;
}

.service-grid p,
.project-card p,
.plan p,
.plan li {
  color: var(--muted);
}

.service-grid article,
.project-card,
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}


/* ==================================================
   Header
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(230, 224, 215, .72);
  backdrop-filter: blur(18px);
  transition:
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.site-header.is-scrolled {
  background: #fff;
  border-color: rgba(230, 224, 215, .92);
  box-shadow: 0 10px 34px rgba(21, 23, 26, .08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  transition: min-height .22s ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 68px;
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 50px;
  object-fit: contain;
  transition: height .22s ease;
}

.site-header.is-scrolled .brand-logo {
  height: 40px;
}

.site-nav {
  gap: 34px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--brand-purple);
  content: "";
  opacity: 0;
  transform: scaleX(.65);
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.site-nav a:hover {
  color: var(--brand-purple);
}

.site-nav a:hover::after {
  opacity: .55;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}


/* ==================================================
   Hero
   ================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .94fr);
  align-items: center;
  gap: 58px;
  min-height: calc(100svh - 84px);
  padding: 86px 0 76px;
}

.hero-copy h1 {
  position: relative;
  margin-bottom: 28px;
}

.hero-copy h1::after {
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 22px;
  background: var(--gold);
  border-radius: 999px;
  content: "";
  opacity: .72;
}

.hero-lede {
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.42vw, 1.2rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
}

.hero-showcase-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid rgba(230, 224, 215, .92);
  border-radius: 8px;
  box-shadow: 0 28px 76px rgba(32, 36, 39, .13);
}


/* ==================================================
   Services
   ================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 260px;
  overflow: hidden;
  padding: 34px;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.service-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--brand-purple);
  content: "";
  opacity: 0;
  transition: opacity .22s ease;
}

.service-grid article:nth-child(2)::before {
  background: var(--brand-blue);
}

.service-grid article:nth-child(3)::before {
  background: var(--brand-pink);
}

.service-grid article:hover {
  border-color: rgba(123, 69, 199, .24);
  box-shadow: 0 20px 54px rgba(32, 36, 39, .1);
  transform: translateY(-4px);
}

.service-grid article:hover::before {
  opacity: .72;
}

.service-grid article h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.service-grid p {
  margin-bottom: 0;
}


/* ==================================================
   Projects
   ================================================== */

.project-band {
  padding: 104px 0 112px;
  background: var(--bg);
}

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

.project-card {
  position: relative;
  display: block;
  min-height: 330px;
  overflow: hidden;
  padding: 28px;
  cursor: pointer;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.project-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--brand-purple);
  content: "";
  opacity: 0;
  transition: opacity .22s ease;
}

.project-card:nth-child(2)::before {
  background: var(--brand-blue);
}

.project-card:nth-child(3)::before {
  background: var(--brand-pink);
}

.project-card:hover {
  border-color: rgba(123, 69, 199, .24);
  box-shadow: 0 20px 54px rgba(32, 36, 39, .1);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: .72;
}

.project-type {
  display: block;
  margin-bottom: 48px;
  color: rgba(71, 108, 119, .72);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-card h3 span {
  color: var(--accent);
  font-size: .86em;
}


/* ==================================================
   Support Plans
   ================================================== */

.support-section {
  padding: 104px 0 112px;
}

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

.plan {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 30px;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.plan::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--brand-purple);
  content: "";
  opacity: 0;
  transition: opacity .22s ease;
}

.plan:nth-child(2)::before {
  background: var(--brand-blue);
}

.plan:nth-child(3)::before {
  background: var(--brand-pink);
}

.plan:hover {
  border-color: rgba(123, 69, 199, .24);
  box-shadow: 0 20px 54px rgba(32, 36, 39, .1);
  transform: translateY(-4px);
}

.plan:hover::before {
  opacity: .72;
}

.featured-plan {
  border-color: rgba(71, 108, 119, .34);
  box-shadow: 0 18px 58px rgba(24, 61, 72, .08);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}


/* ==================================================
   Contact CTA
   ================================================== */

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 74px 0 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-copy {
  max-width: 820px;
}

.contact-cta h2 {
  max-width: 740px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-support {
  max-width: 545px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}


/* ==================================================
   Footer
   ================================================== */

.site-footer {
  position: relative;
  padding: 68px 0 32px;
  background: #15171a;
  border-top: 1px solid rgba(247, 245, 241, .12);
  color: #f7f5f1;
  font-size: .95rem;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue), var(--brand-pink));
  content: "";
  opacity: .38;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 48px;
}

.footer-column h3 {
  margin-bottom: 16px;
  color: #f7f5f1;
  font-weight: 800;
}

.footer-brand p {
  max-width: 440px;
  margin-bottom: 0;
  color: rgba(247, 245, 241, .68);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(247, 245, 241, .68);
  text-underline-offset: 4px;
  transition: color .18s ease;
}

.footer-links a:hover {
  color: #f7f5f1;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 245, 241, .12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(247, 245, 241, .68);
}


/* ==================================================
   Policy Pages
   ================================================== */

.policy-page {
  padding: 92px 0 96px;
}

.policy-hero {
  max-width: 820px;
  margin-bottom: 54px;
}

.policy-hero h1 {
  font-size: clamp(2.35rem, 6vw, 3rem);
}

.policy-hero p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.policy-content {
  max-width: 820px;
}

.policy-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.policy-content p {
  color: var(--muted);
  line-height: 1.72;
}


/* ==================================================
   Responsive Styles
   ================================================== */

@media (max-width: 920px) {
  .hero,
  .split-section,
  .project-grid,
  .plan-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    min-height: auto;
  }

  .hero-visual {
    justify-self: stretch;
  }

  .split-section {
    gap: 40px;
  }

  .project-card,
  .plan {
    min-height: auto;
  }

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

  .footer-grid {
    gap: 34px;
  }
}

@media (max-width: 700px) {
  .section-shell,
  .header-inner {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 60px;
  }

  .brand-logo {
    height: 42px;
    max-width: 240px;
  }

  .site-header.is-scrolled .brand-logo {
    height: 36px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .site-nav a::after {
    display: none;
  }

  h1 {
    font-size: clamp(3.15rem, 17vw, 4.3rem);
  }

  .hero {
    padding-top: 58px;
  }

  .hero-copy h1 {
    margin-bottom: 24px;
  }

  .hero-copy h1::after {
    width: 52px;
    margin-top: 18px;
  }

  .hero-lede {
    max-width: 100%;
    line-height: 1.64;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .service-grid article {
    min-height: 220px;
    padding: 30px;
  }

  .split-section,
  .project-band,
  .support-section {
    padding: 72px 0;
  }

  .contact-cta {
    padding: 62px 0;
  }

  .project-type {
    margin-bottom: 32px;
  }

  .site-footer {
    padding-top: 58px;
  }
}

.footer-legal {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.68;
}


/* ==================================================
   Cookie Consent
   ================================================== */

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 0px;
  left: 20px;
  z-index: 60;
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(230, 224, 215, .96);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(21, 23, 26, .12);
  backdrop-filter: blur(18px);
}

.cookie-banner p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.cookie-banner strong {
  color: var(--ink);
  font-weight: 800;
}

.cookie-banner a {
  color: var(--brand-purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .18s ease;
}

.cookie-banner a:hover {
  color: var(--accent-strong);
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-banner__button {
  min-height: 42px;
  padding: 0 18px;
}

@media (max-width: 700px) {
  .cookie-banner {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .cookie-banner__content {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__button {
    flex: 1;
    width: auto;
  }
}

