/* RIVAN Clinical Aesthetics Academy — futuristic dark blue / cyan / violet theme */
:root {
  --bg: #040b24;
  --bg2: #07133a;
  --cyan: #19d9f5;
  --blue: #2a8bff;
  --violet: #8b5cf6;
  --white: #fff;
  --soft: #c3d2ee;
  --line: #27468a;
  --grad: linear-gradient(100deg, #13e3f6 0%, #2a8bff 55%, #8b5cf6 100%);
  --gtext: linear-gradient(100deg, #19e6f7 0%, #4aa3ff 50%, #9a73ff 100%);
  --glass: linear-gradient(135deg, #0d2b6acc, #0a1b52e6);
  --head: "Poppins", "DM Sans", Arial, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  --pad: max(5vw, calc((100vw - 1340px)/2))
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px
}

body {
  margin: 0;
  font-family: var(--sans);
  color: #fff;
  background: var(--bg);
  overflow-x: hidden
}

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

.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto
}

/* Header */
.site-header {
  height: 72px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #0a1f4d;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e3e8f0;
  box-shadow: 0 2px 14px #0a1f4d14
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 14px #2a8bff55
}

.brand-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block
}

.brand-text b {
  font: 600 26px/1 var(--head);
  letter-spacing: 1px;
  display: block
}

.brand-text small {
  font-size: 10.5px;
  color: #d3def5;
  display: block;
  margin-top: 3px
}

.site-header .brand-text b {
  color: #0a1f4d
}

.site-header .brand-text small {
  color: #4a5b7a
}

.site-header .brand-logo {
  box-shadow: 0 0 0 1px #e3e8f0
}

.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 13px;
  font-weight: 500
}

.main-nav a {
  padding: 27px 0;
  position: relative;
  color: #0a1f4d
}

.main-nav a:hover {
  color: #1a6fe0
}

.main-nav a.active {
  color: #1a6fe0
}

.main-nav a.active:after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad)
}

.chevron {
  font-size: 14px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 15px 28px;
  font: 600 13px var(--sans);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s
}

.button .ic {
  width: 16px;
  height: 16px
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px #2a8bff66
}

.button-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 22px #2a8bff55
}

.button-outline {
  border-color: #ffffffcc;
  color: #fff;
  background: #06123a66
}

.header-cta {
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 12px
}

.menu-toggle {
  display: none;
  background: none;
  border: 0
}

/* Hero */
.hero {
  min-height: 560px;
  position: relative;
  background: var(--bg);
  color: #fff;
  padding: 90px var(--pad) 130px
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 0 100%, #7a4cf055, transparent 40%), radial-gradient(ellipse at 50% 0, #1a56d055, transparent 55%), var(--bg)
}

.hero-image {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-clinic.png") no-repeat right center/auto 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 62%);
  z-index: 1
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 700px
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #e6eeff;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 16px
}

.eyebrow i {
  display: block;
  width: 80px;
  height: 1px;
  background: #ffffff80
}

.hero h1 {
  font: 600 clamp(40px, 4.4vw, 72px)/1.12 var(--head);
  letter-spacing: -1px;
  margin: 0 0 20px;
  white-space: nowrap
}

.hero h1 em,
.section-heading em,
.journey em,
.faq-intro em,
.lab-copy h2 em,
.foundation-cta em {
  font-weight: 600;
  background: var(--gtext);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .1em
}

.hero-intro {
  font-size: 17px;
  line-height: 1.65;
  color: #e4ecfb;
  margin: 0 0 32px
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  bottom: 84px;
  display: flex;
  gap: 10px
}

.hero-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  display: block
}

.hero-dots i.on {
  background: #fff
}

.trust-strip {
  position: absolute;
  z-index: 5;
  bottom: -36px;
  left: var(--pad);
  right: var(--pad);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(100deg, #0f2d6ef2, #12307ff2 60%, #2a2c8ef2);
  border: 1px solid #3f78e6;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 34px #2a8bff55, 0 14px 34px #02061a99
}

.trust-strip>div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid #ffffff2e
}

.trust-strip>div:last-child {
  border: 0
}

.trust-strip .ic {
  width: 36px;
  height: 36px;
  color: #e6f2ff;
  stroke-width: 1.3
}

.trust-strip b {
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  color: #fff
}

.trust-strip strong {
  display: block;
  font: 600 17px var(--head)
}

/* Dark sections */
.section-dark2 {
  background: radial-gradient(ellipse at 100% 0, #2f2aa633, transparent 45%), radial-gradient(ellipse at 0 100%, #0f5fd433, transparent 45%), linear-gradient(180deg, #060f33, #050c2a)
}

.glass {
  background: var(--glass);
  border: 1px solid #3573e0;
  border-radius: 18px;
  box-shadow: 0 0 28px #2a8bff33, inset 0 0 30px #1b4fc033
}

.foundation {
  padding: 120px var(--pad) 56px
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center
}

.split-heading>div {
  min-width: 42%
}

.section-heading h2,
.journey h2,
.faq-intro h2 {
  font: 600 clamp(32px, 3vw, 46px)/1.12 var(--head);
  letter-spacing: -.6px;
  margin: 0
}

.section-lead {
  max-width: 650px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  padding-left: 36px;
  border-left: 1px solid #ffffff55
}

.section-lead small {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--soft);
  margin-top: 12px
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 6px 26px;
  border-left: 1px solid #ffffff2a
}

.benefit:first-child {
  padding-left: 0;
  border: 0
}

.benefit>.ic {
  width: 44px;
  height: 44px;
  color: var(--cyan);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 8px #19d9f588)
}

.benefit h3 {
  font: 600 15.5px var(--head);
  margin: 0 0 6px
}

.benefit p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft);
  margin: 0
}

/* Programmes */
.programmes {
  padding: 44px var(--pad) 60px
}

.programme-heading>p {
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #e4ecfb;
  margin: 0;
  padding-left: 34px;
  border-left: 1px solid #ffffff55
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 34px
}

.programme-card {
  height: 260px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #4a86f0;
  border-radius: 20px;
  background: linear-gradient(120deg, #0c2a66, #0a1c52);
  box-shadow: 0 0 28px #2a8bff44, inset 0 0 26px #2a8bff22
}

.programme-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c2a66 0%, #0c2a66 44%, #0c2a6600 64%);
  pointer-events: none
}

.programme-card img {
  position: absolute;
  right: 0;
  top: -6%;
  height: 140%;
  width: auto;
  max-width: none;
  clip-path: inset(0 0 0 60%)
}

.programme-content {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  width: 64%
}

.number {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 6px
}

.programme-content h3 {
  font: 600 24px/1.2 var(--head);
  margin: 14px 0 10px
}

.programme-content p {
  font-size: 13px;
  line-height: 1.55;
  max-width: 250px;
  margin: 0 0 16px;
  color: #d8e4fa
}

.programme-content a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan)
}

.programme-content a .ic {
  width: 15px;
  height: 15px
}

/* Advantage + AI lab */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 10px var(--pad) 56px;
  align-items: center
}

.advantage {
  padding: 28px 30px
}

.advantage .eyebrow {
  font-size: 10.5px;
  margin-bottom: 8px
}

.advantage h2 {
  font: 600 clamp(24px, 2.2vw, 32px) var(--head);
  margin: 0 0 20px
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ffffff2a
}

.advantage-grid article {
  display: flex;
  gap: 12px;
  padding: 18px 14px;
  border-right: 1px solid #ffffff2a;
  border-bottom: 1px solid #ffffff2a
}

.advantage-grid article:nth-child(3n) {
  border-right: 0
}

.advantage-grid article:nth-child(n+4) {
  border-bottom: 0
}

.advantage-grid .ic {
  width: 30px;
  height: 30px;
  color: var(--cyan);
  stroke-width: 1.3;
  margin-top: 2px
}

.advantage-grid h3 {
  font: 600 13px/1.3 var(--head);
  margin: 0 0 6px
}

.advantage-grid p {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--soft);
  margin: 0
}

.lab-copy h2 {
  font: 600 clamp(30px, 2.8vw, 44px)/1.15 var(--head);
  margin: 0 0 12px
}

.lab-copy>p:not(.eyebrow) {
  font-size: 15px;
  margin: 0 0 22px;
  color: #e4ecfb
}

.lab-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: center
}

.lab-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 34px #2a8bff55;
  border: 1px solid #3573e0
}

.lab-image img {
  display: block;
  width: 100%;
  height: auto
}

.lab-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px
}

.lab-copy li {
  font-size: 14px;
  line-height: 1.45;
  color: #eaf1ff;
  display: flex;
  gap: 14px;
  align-items: center
}

.lab-copy li:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  background: linear-gradient(135deg, #19d9f5, #2a8bff);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 12px #19d9f588
}

/* Journey */
.journey {
  padding: 46px var(--pad) 40px;
  display: grid;
  grid-template-columns: 28% 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid #16306d
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.journey-steps article {
  padding: 0 26px;
  border-left: 1px solid #ffffff2e;
  text-align: center
}

.journey-steps span {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px #19d9f588)
}

.journey-steps .ic {
  width: 36px;
  height: 36px;
  stroke-width: 1.3
}

.journey-steps h3 {
  font: 600 15px var(--head);
  margin: 0 0 6px
}

.journey-steps p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--soft);
  margin: 0
}

/* CTA band */
.foundation-cta {
  margin: 0 var(--pad);
  padding: 30px 44px;
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(100deg, #1a3a9a, #1b2f86 55%, #3b2c9e);
  border: 1.5px solid #5a8cf2;
  box-shadow: 0 0 34px #2a8bff44
}

.foundation-cta:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0 50%, #19d9f544, transparent 45%), radial-gradient(ellipse at 100% 0, #8b5cf655, transparent 40%)
}

.foundation-cta>* {
  position: relative
}

.foundation-cta h2 {
  font: 600 clamp(22px, 2.1vw, 32px)/1.25 var(--head);
  margin: 0
}

.foundation-cta p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #e4ecfb;
  margin: 0;
  border-left: 1px solid #ffffff55;
  padding-left: 30px
}

/* FAQ + enquiry */
.faq-enquiry {
  padding: 56px var(--pad) 64px;
  display: grid;
  grid-template-columns: .85fr 1.05fr 1.1fr;
  gap: 40px;
  align-items: center
}

.faq-intro>p:last-child {
  font-size: 14px;
  line-height: 1.7;
  color: #e4ecfb;
  max-width: 300px;
  margin-top: 16px
}

.faq-list details {
  border: 1px solid #3573e0;
  border-radius: 10px;
  margin: 12px 0;
  background: linear-gradient(110deg, #0c2a66bb, #0a1c52cc)
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between
}

.faq-list summary::-webkit-details-marker {
  display: none
}

.faq-list summary:after {
  content: "+";
  font-size: 20px;
  line-height: 1
}

.faq-list details[open] summary:after {
  content: "−"
}

.faq-list details p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--soft);
  padding: 0 18px 16px;
  margin: 0
}

.enquiry-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--glass);
  border: 1.5px solid #4a86f0;
  box-shadow: 0 0 30px #2a8bff44
}

.enquiry-card h3 {
  font: 600 19px var(--head);
  margin: 0 0 6px
}

.enquiry-card>p {
  font-size: 12.5px;
  color: var(--soft);
  margin: 0 0 14px
}

.enquiry-card label {
  display: block;
  margin: 10px 0
}

.enquiry-card input,
.enquiry-card select {
  width: 100%;
  border: 1px solid #2e5cc0;
  border-radius: 7px;
  background: #07184a;
  padding: 13px 14px;
  font: 13.5px var(--sans);
  color: #fff;
  outline: none
}

.enquiry-card input::placeholder {
  color: #b3c4e6
}

.enquiry-card select option {
  color: #06123a
}

.enquiry-card input:focus,
.enquiry-card select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #19d9f533
}

.enquiry-card button {
  width: 100%;
  margin-top: 8px
}

.form-note {
  display: block;
  font-size: 11px;
  color: #9fb3da;
  margin-top: 10px
}

.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
}

/* Footer */
.site-footer {
  background: linear-gradient(110deg, #050c2a, #0a1a55);
  border-top: 1px solid #1d3b86;
  padding: 38px var(--pad) 16px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  position: relative;
  overflow: hidden
}

.site-footer:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 140px;
  left: -80px;
  bottom: -80px;
  border: 1px solid #8b5cf699;
  border-radius: 50%;
  transform: rotate(8deg);
  pointer-events: none
}

.site-footer h4 {
  font: 600 13px var(--head);
  margin: 3px 0 12px
}

.site-footer>div>a,
.site-footer>div>span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #d3def5;
  margin: 9px 0
}

.site-footer>div>a .ic,
.site-footer>div>span .ic {
  width: 15px;
  height: 15px;
  color: var(--cyan)
}

.socials {
  display: flex;
  gap: 10px
}

.socials a {
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
  font-weight: 700;
  margin: 0 !important;
  font-size: 13px
}

.socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan)
}

.copyright {
  grid-column: 1/-1;
  text-align: center;
  border-top: 1px solid #ffffff1c;
  padding-top: 14px;
  margin: 8px 0 0;
  font-size: 11.5px;
  color: #a9bbdc;
  position: relative;
  z-index: 1
}

@media(max-width:1100px) {
  .main-nav {
    gap: 18px
  }

  .hero h1 {
    white-space: normal
  }

  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 16px
  }

  .trust-strip>div:nth-child(3) {
    border: 0
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px
  }

  .benefit:nth-child(3) {
    padding-left: 0;
    border: 0
  }

  .duo {
    grid-template-columns: 1fr
  }

  .journey {
    grid-template-columns: 1fr
  }

  .programme-grid {
    grid-template-columns: 1fr 1fr
  }

  .faq-enquiry {
    grid-template-columns: 1fr 1fr
  }

  .faq-intro {
    grid-column: 1/-1
  }

  .enquiry-card {
    grid-column: 2;
    grid-row: 2
  }

  .faq-list {
    grid-column: 1;
    grid-row: 2
  }

  .foundation-cta {
    grid-template-columns: 1fr 1fr
  }

  .foundation-cta .button {
    grid-column: 2
  }

  .site-footer {
    grid-template-columns: 1.4fr 1fr 1fr
  }

  .section-heading {
    align-items: flex-start
  }
}

@media(max-width:650px) {
  .site-header {
    height: 62px;
    padding: 0 18px
  }

  .brand {
    min-width: 0
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0a1f4d
  }

  .header-cta {
    display: none
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 22px 20px;
    border-bottom: 1px solid #e3e8f0;
    box-shadow: 0 12px 20px #0a1f4d22;
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .main-nav.open {
    display: flex
  }

  .main-nav a {
    padding: 12px 0
  }

  .main-nav a.active:after {
    bottom: 5px;
    width: 30px
  }

  .hero {
    padding: 48px 22px 200px;
    min-height: 760px
  }

  .hero-image {
    width: 100%;
    height: 46%;
    top: auto;
    bottom: 0;
    background-position: 70% center;
    background-image: linear-gradient(180deg, #040b24 0%, #040b2400 45%), url("../assets/hero-clinic.png")
  }

  .hero-copy {
    max-width: 100%
  }

  .hero h1 {
    font-size: 38px
  }

  .hero-intro {
    font-size: 14px
  }

  .desktop-only {
    display: none
  }

  .hero-dots {
    display: none
  }

  .trust-strip {
    left: 4%;
    right: 4%;
    bottom: -120px;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 18px
  }

  .trust-strip>div {
    justify-content: flex-start;
    border: 0
  }

  .trust-strip .ic {
    width: 26px;
    height: 26px
  }

  .trust-strip b {
    font-size: 11.5px
  }

  .foundation {
    padding: 160px 22px 35px
  }

  .section-heading {
    display: block
  }

  .section-lead {
    margin-top: 20px;
    font-size: 15px;
    padding-left: 0;
    border-left: 0
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    margin-top: 22px
  }

  .benefit {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #ffffff2a
  }

  .benefit:last-child {
    border: 0
  }

  .programmes {
    padding: 36px 18px
  }

  .programme-heading>p {
    margin-top: 12px;
    padding-left: 0;
    border-left: 0
  }

  .programme-grid {
    grid-template-columns: 1fr
  }

  .programme-card {
    height: 240px
  }

  .duo {
    padding: 10px 18px 40px
  }

  .advantage {
    padding: 22px 18px
  }

  .advantage-grid {
    grid-template-columns: 1fr
  }

  .advantage-grid article {
    border-right: 0 !important;
    border-bottom: 1px solid #ffffff2a !important
  }

  .lab-body {
    grid-template-columns: 1fr
  }

  .journey {
    padding: 36px 22px 30px;
    gap: 20px
  }

  .journey-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px
  }

  .journey-steps article {
    padding: 0 12px
  }

  .foundation-cta {
    margin: 0 16px;
    padding: 26px 22px;
    grid-template-columns: 1fr;
    gap: 16px
  }

  .foundation-cta p {
    border-left: 0;
    padding-left: 0
  }

  .foundation-cta .button {
    grid-column: auto;
    justify-self: start
  }

  .faq-enquiry {
    padding: 40px 20px;
    grid-template-columns: 1fr;
    gap: 22px
  }

  .faq-intro,
  .faq-list,
  .enquiry-card {
    grid-column: auto;
    grid-row: auto
  }

  .enquiry-card {
    padding: 22px
  }

  .site-footer {
    padding: 30px 22px 14px;
    grid-template-columns: 1fr 1fr
  }

  .footer-brand {
    grid-column: 1/-1
  }
}

/* Motion helpers */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

.success-note {
  color: var(--cyan) !important;
  font-weight: 700
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

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


@media(max-width:650px) {
  .hero-image {
    -webkit-mask-image: none;
    mask-image: none;
    background-size: cover
  }
}

.brand {
  min-width: 0
}

.brand-img {
  height: 50px;
  width: auto;
  display: block
}

.footer-brand .brand-img {
  height: 54px;
  background: #fff;
  padding: 7px 14px;
  border-radius: 10px;
  box-sizing: content-box
}

@media(max-width:650px) {
  .brand-img {
    height: 38px
  }

  .footer-brand .brand-img {
    height: 44px
  }
}


/* ==========================================================
   RIVAN — WORD, IMAGE, TEXT ENTRANCE & BUTTON HOVER MOTION
   Additive animation layer. Existing layout, dimensions,
   spacing, colours, content and responsive rules are retained.
   ========================================================== */

@keyframes rivanWordLaunch {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) rotateX(-18deg);
    filter: blur(5px);
  }

  65% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) rotateX(2deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0);
    filter: blur(0);
  }
}

@keyframes rivanTextLaunch {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes rivanImageLaunch {
  from {
    opacity: .35;
    clip-path: inset(0 12% 0 12%);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

@keyframes rivanAccentShimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes rivanButtonGlow {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(42, 139, 255, 0);
  }

  50% {
    box-shadow: 0 0 24px rgba(42, 139, 255, .32);
  }
}

/* Hero headline launches on initial page load */
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-intro,
.hero-copy .hero-actions,
.hero-copy .hero-stats {
  animation: rivanTextLaunch .8s cubic-bezier(.2, .75, .25, 1) both;
}

.hero-copy .eyebrow {
  animation-delay: .08s;
}

.hero-copy h1 {
  animation-name: rivanWordLaunch;
  animation-delay: .18s;
  transform-origin: 50% 100%;
}

.hero-copy .hero-intro {
  animation-delay: .34s;
}

.hero-copy .hero-actions {
  animation-delay: .48s;
}

.hero-copy .hero-stats {
  animation-delay: .62s;
}

/* Emphasised words receive a subtle animated gradient sheen */
.hero h1 em,
.section-heading h2 em,
.journey h2 em,
.faq-intro h2 em,
.lab-copy h2 em,
.foundation-cta em {
  background-size: 200% 100%;
  animation: rivanAccentShimmer 5s linear infinite;
}

/* Image entrance and image hover zoom. No box dimensions changed. */
.hero-image {
  animation: rivanImageLaunch 1.25s cubic-bezier(.2, .75, .25, 1) .12s both;
  transform-origin: center right;
}

.programme-card img,
.lab-image img {
  transition: transform .85s cubic-bezier(.2, .75, .25, 1),
    filter .65s ease;
  will-change: transform;
}

.programme-card:hover img {
  transform: scale(1.12);
  filter: saturate(1.18) contrast(1.04);
}

.programme-card {
  transition: border-color .35s ease, box-shadow .4s ease;
}

.programme-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 15px 38px rgba(25, 130, 255, .26),
    0 0 18px rgba(25, 217, 245, .16);
}

.programme-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg,
      rgba(25, 217, 245, .18),
      rgba(122, 76, 240, .18) 52%,
      transparent 82%);
  transition: opacity .45s ease;
}

.programme-card:hover::before {
  opacity: 1;
}

.programme-content h3,
.programme-content p,
.programme-content a {
  transition: transform .4s ease, color .35s ease;
}

.programme-card:hover .programme-content h3,
.programme-card:hover .programme-content p {
  transform: translateX(4px);
}

.programme-content a .ic {
  transition: transform .35s ease;
}

.programme-card:hover .programme-content a .ic {
  transform: translateX(6px);
}

.lab-image:hover img {
  transform: scale(1.075);
  filter: saturate(1.16) brightness(1.06);
}

/* Section text launch classes are applied by main.js when in view */
.rivan-text-launch {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(3px);
}

.rivan-text-launch.is-launched {
  animation: rivanTextLaunch .78s cubic-bezier(.2, .75, .25, 1) both;
}

.rivan-word-launch {
  opacity: 0;
  transform: translate3d(0, 18px, 0) rotateX(-12deg);
  filter: blur(3px);
  transform-origin: 50% 100%;
}

.rivan-word-launch.is-launched {
  animation: rivanWordLaunch .82s cubic-bezier(.2, .75, .25, 1) both;
}

.rivan-image-launch {
  opacity: .35;
  clip-path: inset(0 0 0 0 round 0);
}

.rivan-image-launch.is-launched {
  animation: rivanImageLaunch .95s cubic-bezier(.2, .75, .25, 1) both;
}

/* Staggered cards and content as they enter the viewport */
.benefit,
.advantage-grid article,
.journey-steps article,
.faq-list details {
  transition: transform .4s ease, box-shadow .4s ease,
    border-color .35s ease, background-color .35s ease;
}

.benefit:hover,
.advantage-grid article:hover,
.journey-steps article:hover {
  transform: translateY(-5px);
}

.benefit>.ic,
.advantage-grid article>.ic,
.journey-steps span .ic {
  transition: transform .4s cubic-bezier(.2, .75, .25, 1),
    filter .4s ease, color .35s ease;
}

.benefit:hover>.ic,
.advantage-grid article:hover>.ic,
.journey-steps article:hover span .ic {
  transform: translateY(-3px) scale(1.12);
  filter: drop-shadow(0 0 10px #19d9f5aa);
}

/* Button hover: animated light sweep, lift and arrow movement */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s ease, box-shadow .35s ease,
    filter .35s ease;
}

.button::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  left: -75%;
  width: 42%;
  height: 190%;
  transform: skewX(-23deg);
  background: linear-gradient(90deg, transparent,
      rgba(255, 255, 255, .42), transparent);
  transition: left .7s cubic-bezier(.2, .75, .25, 1);
  pointer-events: none;
}

.button:hover::after {
  left: 145%;
}

.button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(42, 139, 255, .38);
}

.button .ic {
  transition: transform .35s cubic-bezier(.2, .75, .25, 1);
}

.button:hover .ic {
  transform: translateX(5px);
}

.button:active {
  transform: translateY(-1px) scale(.985);
}

/* Navigation underline glides in without changing nav layout */
.main-nav a {
  background-image: linear-gradient(90deg, var(--cyan), #8062f5);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0 2px;
  transition: color .3s ease, background-size .35s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-size: 100% 2px;
}

/* FAQ icon rotation and enquiry focus glow */
.faq-list summary::after {
  transition: transform .3s ease, color .3s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.enquiry-card {
  transition: border-color .35s ease, box-shadow .35s ease;
}

.enquiry-card:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 217, 245, .12),
    0 12px 34px rgba(42, 139, 255, .22);
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .rivan-text-launch,
  .rivan-word-launch {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
