@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500&display=swap");

:root {
  --ink: #183B35;
  --muted: #526B65;

  --paper: #F7F8F3;
  --white: #FFFFFF;

  --line: rgba(24, 59, 53, 0.14);

  --accent: #3D6FE0;
  --teal: #65BFA8;
  --amber: #C47A54;

  --blue-soft: #EAF0FF;
  --mint-soft: #E7F4EC;
  --lavender-soft: #F1F0E8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Outfit, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.78), rgba(4, 12, 24, 0));
}

.site-header.solid {
  mix-blend-mode: normal;
  background: rgba(234, 243, 248, 0.86);
  backdrop-filter: blur(12px);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
}

.site-header.solid .brand,
.site-header.solid .nav-links a,
.site-header.solid .menu-toggle,
.site-header.solid .link {
  color: var(--ink);
}

body.inner .site-header {
  mix-blend-mode: normal;
}

body.inner .brand,
body.inner .nav-links a,
body.inner .menu-toggle,
body.inner .link {
  color: var(--ink);
}

.brand-logo {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

.nav>.link {
  color: #fff;
  justify-self: end;
}

body.inner .nav>.link,
.site-header.solid .nav>.link {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.12rem;
  transition: gap 0.3s ease, color 0.3s ease;
}

.link:hover {
  color: var(--ink);
  gap: 0.7rem;
}

.link:hover {
  gap: 0.75rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  background: #071427;
}

.hero .link {
  color: #ffffff;
}

.hero .link:hover {
  color: #ffffff;
}

.hero .link::after {
  background: #ffffff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 39, 35, 0.62) 0%,
      rgba(15, 39, 35, 0.28) 42%,
      rgba(15, 39, 35, 0.72) 100%),
    radial-gradient(circle at 72% 48%,
      transparent 8%,
      rgba(15, 39, 35, 0.35) 100%);
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7.5rem 0 3.5rem;
}

.line {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 11ch;
  overflow: hidden;
  color: #f4f8ff;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.line span {
  display: inline-block;
}

.line.right {
  align-self: flex-end;
  text-align: right;
  font-style: italic;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.hero-foot p {
  margin: 0;
  max-width: 36ch;
}

.company-name {
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 0.35rem;
}

.hero-creds {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.6rem;
}

.hero-creds a {
  color: #d8f0ff;
  border-bottom: 1px solid rgba(216, 240, 255, 0.5);
}

.about-block {
  padding: 6rem 0;
  background: var(--mint-soft);
}

.about-home-layout {
  display: block;
}

.about-home-image {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  border-radius: 12px;
}

.about-home-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-home-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  width: 38%;
  color: #fff;
}

.about-home-content .kicker {
  color: rgba(255, 255, 255, 0.85);
}

.about-home-content h2 {
  max-width: 15ch;
  margin-bottom: 1rem;
  color: #fff;
}

.about-home-description {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.about-home-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(15, 39, 35, 0.92) 0%,
      rgba(15, 39, 35, 0.72) 38%,
      rgba(15, 39, 35, 0.08) 75%);
  z-index: 1;
}

/* Mobile layout */

@media (max-width: 700px) {
  .about-home-layout {
    display: block;
  }

  .about-home-image {
    min-height: 620px;
  }

  .about-home-image img {
    object-position: 65% center;
  }

  .about-home-image::after {
    background: linear-gradient(90deg,
        rgba(15, 39, 35, 0.94) 0%,
        rgba(15, 39, 35, 0.78) 65%,
        rgba(15, 39, 35, 0.45) 100%);
  }

  .about-home-content {
    width: 86%;
    left: 7%;
    top: 50%;
  }

  .about-home-content h2 {
    max-width: none;
    font-size: 2.4rem;
  }

  .about-home-description {
    font-size: 0.92rem;
  }
}


.pillars-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pillars-heading {
  margin-bottom: 2.5rem;
}

.pillars-heading h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.6rem;
  color: var(--ink);
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 220px;
  background: var(--white);
  transform: scale(1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.pillar:nth-child(1) {
  background: var(--mint-soft);
}

.pillar:nth-child(2) {
  background: var(--blue-soft);
}

.pillar:nth-child(3) {
  background: var(--lavender-soft);
}

.pillar:hover {
  transform: scale(1.025);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(24, 59, 53, 0.10);
  z-index: 2;
}

.pillar-num {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pillar h3 {
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .pillars-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pillar {
    padding: 1.7rem;
  }
}

@media (max-width: 700px) {
  .pillars-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .pillars-heading {
    margin-bottom: 1.5rem;
  }
}

.pillar h3 {
  margin: 0 0 0.35rem;
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 24ch;
}

.recognition-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mint-soft);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.recognition-row span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.recognition-row span::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}

.recognition-row .link {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
}

.footer-creds {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.stage {
  padding: 6.5rem 0;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.2rem;
  color: var(--ink);
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  margin: 0;
}

.editorial {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.home-cta-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: var(--ink);
  color: var(--white);
}

.home-cta {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.home-cta h2 {
  color: var(--white);
  max-width: 16ch;
  margin: 0;
}

.home-cta .lede {
  color: rgba(255, 255, 255, 0.78);
}

.home-cta .link {
  color: #ffffff;
}

.home-cta .link::after {
  background: #ffffff;
}

.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.0);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.list {
  margin: 2.5rem 0 0;
  padding: 0;
}

.list li {
  list-style: none;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.3s ease, padding 0.3s ease;
}

.list li:nth-child(1) {
  background: var(--blue-soft);
}

.list li:nth-child(2) {
  background: var(--lavender-soft)
}

.list li:last-child {
  border-bottom: 1px solid var(--line);
}

.num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--muted);
}

.list h3 {
  margin: 0 0 0.25rem;
  font-family: Outfit, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.list p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.impact {
  padding: 5.5rem 0 2rem;
}

.impact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.impact-row article {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.impact-row strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.impact-row p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 9rem 0 3rem;
  background:
    linear-gradient(180deg, #d7e8f2, var(--paper) 70%);
}

.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin: 0 0 1rem;
  color: var(--ink);
}

.figure img {
  filter: saturate(0.85) contrast(1.05);
}

form {
  display: grid;
  gap: 1.4rem;
  max-width: 560px;
}

label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.7rem 0;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-bottom-color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button.link {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  justify-self: start;
  color: var(--ink);
}

.site-footer {
  padding: 3.5rem 0 2.5rem;
  background: #E7EEE9;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.foot {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.foot strong {
  color: var(--ink);
  font-weight: 600;
}

.foot a {
  display: block;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}

.foot a:hover {
  color: var(--accent);
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3bbeff, #9fe7ff);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.word {
  display: inline-block;
}

/* List items start invisible — JS overrides with stagger */
.list li {
  opacity: 0;
}

.impact-row article {
  opacity: 0;
}

/* Clip-path start state for h2 inside .stage */
.stage h2 {
  clip-path: inset(0 100% 0 0);
}

.page-hero h1.products-heading {
  font-size: 3.7rem;
  max-width: 850px;
}

@media (prefers-reduced-motion: reduce) {

  .list li,
  .impact-row article,
  .stage h2 {
    opacity: 1 !important;
    clip-path: none !important;
  }
}

@media (max-width: 900px) {

  .editorial,
  .impact-row,
  .foot,
  .nav {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 81;
    flex-direction: column;
    background: #0b1a2e;
    color: #fff;
    padding: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links.open a,
  .site-header.solid .nav-links.open a {
    color: #fff;
  }

  .menu-toggle {
    display: inline;
    justify-self: end;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .pillars-row {
    grid-template-columns: 1fr;
  }

  .recognition-row .link {
    margin-left: 0;
  }

  .list .link {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .page-hero {
    padding-top: 220px !important;
  }
}

@media (max-width: 900px) {
  .editorial {
    display: flex;
    flex-direction: column;
  }

  .editorial>div:first-child {
    order: 1;
  }

  .editorial>form {
    order: 2;
    width: 100%;
  }

  .editorial>.figure {
    order: 3;
  }
}


/* About Page */

.company-hero {
  background: linear-gradient(
    180deg,
    var(--mint-soft) 0%,
    var(--paper) 90%
  );
}

.research-hero {
  background: linear-gradient(
    180deg,
    var(--blue-soft) 0%,
    var(--paper) 90%
  );
}

.company-hero h1 {
  max-width: 850px;
  margin-bottom: 1.5rem;
}

.company-description {
  max-width: 750px;
  line-height: 1.8;
}

.company-details {
  padding-top: 2rem;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.company-card {
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 250px;
  background: var(--white);
  transform: scale(1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.company-card:nth-child(1) {
  background: var(--mint-soft);
}

.company-card:nth-child(2) {
  background: var(--blue-soft);
}

.company-card:nth-child(3) {
  background: var(--lavender-soft);
}

.company-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(24, 59, 53, 0.12);
  z-index: 2;
}

.company-card h2 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.company-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.company-recognition {
  margin-top: 3rem;
  padding: 1.8rem 2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  background: var(--mint-soft);
}

.company-recognition p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}

/* Mobile layout */

@media (max-width: 900px) {
  .company-grid {
    grid-template-columns: 1fr;
  }

  .company-card {
    padding: 1.5rem;
  }

  .company-recognition {
    padding: 1.2rem;
  }
}

/* Why Healwave Section */
.why-healwave {
  margin-top: 5rem;
}

.why-healwave-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.why-healwave-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #0e233a;
  margin-top: 0.5rem;
}

.why-healwave-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-healwave-card {
  padding: 2.2rem;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(24, 59, 53, 0.05);
  transform: translateY(0);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.why-healwave-card:nth-child(1) {
  background: var(--mint-soft);
}

.why-healwave-card:nth-child(2) {
  background: var(--blue-soft);
}

.why-healwave-card:nth-child(3) {
  background: var(--lavender-soft);
}

.why-healwave-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(24, 59, 53, 0.12);
  z-index: 2;
}

.why-icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-healwave-card h3 {
  color: #0e233a;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.why-healwave-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.why-healwave-card h3 {
  font-weight: 400;
}

@media (max-width: 900px) {
  .why-healwave-grid {
    grid-template-columns: 1fr;
  }

  .why-healwave-card {
    min-height: auto;
    padding: 1.7rem;
  }

  .why-healwave {
    margin-top: 3.5rem;
  }
}

/* Research Areas */

.research-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.research-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  min-height: 290px;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.research-list li:nth-child(1) {
  background: var(--blue-soft);
}

.research-list li:nth-child(2) {
  background: var(--mint-soft);
}

.research-list li:nth-child(3) {
  background: var(--lavender-soft);
}

.research-list .num {
  font-size: 1.8rem;
  color: var(--accent);
}

.research-list h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.research-list p {
  max-width: none;
  line-height: 1.7;
}

.research-list li {
  transform: scale(1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.research-list li:hover {
  transform: scale(1.025);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(24, 59, 53, 0.12);
  z-index: 2;
}

@media (max-width: 900px) {
  .research-list {
    grid-template-columns: 1fr;
  }

  .research-list li {
    min-height: auto;
  }
}

.research-intro {
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.research-intro h2 {
  margin-bottom: 0.8rem;
}

.research-intro p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

/* Products Page */

.products-hero {
  background: linear-gradient(
    180deg,
    var(--mint-soft) 0%,
    var(--paper) 90%
  );
}

/* Product Sections */

#ai {
  background: var(--blue-soft);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#ai .figure {
  border-radius: 14px;
  overflow: hidden;
}

#ai .figure img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

#ai .figure:hover img {
  transform: scale(1.04);
}

#immersive {
  background: var(--mint-soft);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#immersive .figure {
  border-radius: 14px;
  overflow: hidden;
}

#immersive .figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

#immersive .figure:hover img {
  transform: scale(1.04);
}

/* Product Layout Refinements */

#ai .editorial,
#immersive .editorial {
  align-items: center;
  gap: 4rem;
}

#ai .figure,
#immersive .figure {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ai .figure img,
#immersive .figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

#ai .editorial > div:last-child,
#immersive .editorial > div:first-child {
  padding: 1rem 0;
}
@media (max-width: 900px) {
  #ai .editorial,
  #immersive .editorial {
    gap: 2rem;
  }

  #ai .figure,
  #immersive .figure {
    min-height: auto;
    width: 100%;
  }

  #ai .figure img,
  #immersive .figure img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
  }

  #ai .editorial > div:last-child,
  #immersive .editorial > div:first-child {
    padding: 0;
  }
}

#ai {
  border-bottom: 1px solid var(--line);
}

#immersive {
  border-bottom: 1px solid var(--line);
}

/* Contact Page */

.contact-hero {
  background: linear-gradient(
    180deg,
    var(--lavender-soft) 0%,
    var(--paper) 90%
  );
}

.contact-hero form {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(24, 59, 53, 0.07);
}

.contact-hero form label {
  color: var(--ink);
  font-weight: 500;
}

.contact-hero form input,
.contact-hero form select,
.contact-hero form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.contact-hero form input:focus,
.contact-hero form select:focus,
.contact-hero form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.contact-hero form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 700px) {
  .contact-hero form {
    padding: 1.5rem;
    width: 100%;
  }

  .contact-hero .editorial {
    gap: 2rem;
  }

  .contact-hero h1 {
    max-width: 12ch;
  }
}

/* Project funding acknowledgements */
.project-funding {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-funding img {
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 55px;
  object-fit: contain;
}

.project-funding p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .project-funding {
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .project-funding img {
    max-width: 110px;
    max-height: 45px;
  }
}

/* Mobile header hide/show on scroll */
@media (max-width: 700px) {
  .site-header {
    transition: transform 0.3s ease;
  }

  .site-header.header-hidden {
    transform: translateY(-100%);
  }
}


/* Achievements & Milestones */
.achievements-section {
  max-width: 1100px;
  margin: 5rem auto 3rem;
  padding: 0 1.5rem;
}

.achievements-heading {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.achievements-heading h2 {
  margin: 0.5rem 0 1rem;
  color: #0e233a;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.achievements-heading p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  padding: 2.2rem;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(24, 59, 53, 0.05);
  transform: translateY(0);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


.achievement-card:nth-child(1),
.achievement-card:nth-child(4) {
  background: var(--mint-soft);
}

.achievement-card:nth-child(2) {
  background: var(--blue-soft);
}

.achievement-card:nth-child(3) {
  background: var(--blue-soft);
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(24, 59, 53, 0.12);
  z-index: 2;
}

.achievement-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.achievement-card h3 {
  margin-bottom: 0.8rem;
  color: #0e233a;
  font-size: 1.3rem;
  font-weight: 400;
}

.achievement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .achievements-section {
    margin-top: 3.5rem;
    padding: 0 1rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .achievement-card {
    min-height: auto;
    padding: 1.7rem;
  }
}


.team-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.team-highlights span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 0.9rem;
}

.team-highlights b {
  color: var(--accent);
  font-size: 1.25rem;
}

.team-highlights strong {
  color: #183b35;
}


/* ========================================
   Team Page - Updated Layout
======================================== */

/* Director Profile */
.director-profile {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mint-soft);
  box-shadow: 0 8px 24px rgba(24, 59, 53, 0.05);
}

.director-photo {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--blue-soft);
}

.director-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.director-details h2 {
  margin: 0.6rem 0;
  color: #183b35;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

.team-affiliation {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.director-details > p:not(.kicker):not(.team-designation):not(.team-affiliation) {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Expert Cards Section */
.experts-heading {
  margin-top: 5rem;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.expert-card {
  height: 600px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 59, 53, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Expand only the card whose profile is opened */
.expert-card:has(.expert-more[open]) {
  height: auto;
}

.expert-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(24, 59, 53, 0.12);
}

.expert-photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--blue-soft);
}

.expert-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.expert-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.expert-content h3 {
  margin: 0.5rem 0;
  color: #183b35;
  font-size: 1.5rem;
  font-weight: 400;
}

.expert-designation {
  min-height: 42px;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.expert-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Expandable Profile Details */
.expert-more {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.expert-more summary {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.expert-more summary::-webkit-details-marker {
  display: none;
}

.expert-more summary::after {
  content: "+";
  float: right;
  font-size: 1.2rem;
}

.expert-more[open] summary::after {
  content: "−";
}

.expert-expanded {
  padding-top: 1rem;
}

.expert-expanded p {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.expert-expanded strong {
  color: #183b35;
}

.expert-more {
  margin-top: auto;
  padding-top: 1rem;
}
/* Responsive Layout */
@media (max-width: 900px) {
  .director-profile {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    padding: 1.7rem;
  }

  .director-photo {
    height: 350px;
  }

  .experts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .director-profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.2rem;
  }

  .director-photo {
    height: 320px;
    max-width: 100%;
  }

  .experts-heading {
    margin-top: 3.5rem;
  }

  .experts-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .expert-photo {
    height: 240px;
  }

  .expert-content {
    padding: 1.2rem;
  }

  .team-highlights {
    grid-template-columns: 1fr;
  }
}


/* Director Profile Links */
.director-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.director-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #183b35;
  background: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.director-links a:hover {
  color: #ffffff;
  background: #183b35;
  border-color: #183b35;
}

.director-links a span {
  font-weight: 600;
  font-size: 1rem;
}
