/* ==========================================================================
WHEN WEB TECHNOLOGIES SPEAK MEDICINE | STANDALONE PAGE
========================================================================== */

:root {
  --bg: #020305;
  --bg-soft: #0b0e14;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.76);
  --beige: #d8ccb7;
  --gold: #d4af37;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --pink: #ff00fb;
  --glass: linear-gradient(145deg, rgba(16, 20, 28, 0.74), rgba(5, 5, 5, 0.92));
  --glass-soft: rgba(255, 255, 255, 0.025);
  --border: rgba(34, 211, 238, 0.22);
  --border-soft: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.055), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(34, 211, 238, 0.035), transparent 28%),
    linear-gradient(145deg, var(--bg-soft) 0%, var(--bg) 72%);
  background-attachment: fixed;
  font-family: "Urbanist", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ==========================================================================
3. PAGE HEADER | LUXURY GLASS NAVIGATION
========================================================================== */

.page-header-shell {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1100;

  width: min(calc(100% - 48px), 1320px);
  min-height: 108px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;

  padding: 10px 18px;

  transform: translateX(-50%);

  /* Transparent glass — intentionally no visible frame */
  background:
    linear-gradient(
      135deg,
      rgba(10, 14, 20, 0.30),
      rgba(2, 3, 5, 0.12)
    );

  border: 1px solid transparent;
  border-radius: 30px;

  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 20px 55px rgba(0, 0, 0, 0.20);
}

/* --------------------------------------------------------------------------
3.1 HEADER ACTION BUTTONS
-------------------------------------------------------------------------- */

.header-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: fit-content;
  min-height: 56px;
  padding: 0 25px;

  color: #fff8e8;

  background:
    linear-gradient(
      135deg,
      rgba(12, 15, 22, 0.90),
      rgba(18, 10, 31, 0.90)
    )
    padding-box,
    linear-gradient(
      115deg,
      #d4af37,
      #f4df8a 32%,
      #22d3ee 67%,
      #a855f7
    )
    border-box;

  border: 1.5px solid transparent;
  border-radius: 999px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(212, 175, 55, 0.07);

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;

  text-decoration: none;

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

/* Moving light across the button */
.header-action::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  left: -45%;

  width: 34%;
  height: 220%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.20),
      transparent
    );

  transform: rotate(18deg);
  transition: left 0.55s ease;
}

.header-home {
  justify-self: start;
}

.header-portfolio {
  justify-self: end;
}

.header-action i {
  color: #f5cf59;
  font-size: 14px;

  filter:
    drop-shadow(0 0 7px rgba(212, 175, 55, 0.35));

  transition:
    color 0.28s ease,
    transform 0.28s ease,
    filter 0.28s ease;
}

/* Luxury hover */
.header-action:hover,
.header-action:focus-visible {
  transform: translateY(-4px) scale(1.035);
  filter: brightness(1.12);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 18px 42px rgba(0, 0, 0, 0.50),
    0 0 20px rgba(212, 175, 55, 0.20),
    0 0 34px rgba(34, 211, 238, 0.13),
    0 0 46px rgba(168, 85, 247, 0.08);

  outline: none;
}

.header-action:hover::before,
.header-action:focus-visible::before {
  left: 125%;
}

.header-action:hover i,
.header-action:focus-visible i {
  color: var(--cyan);
  transform: scale(1.15);
  filter:
    drop-shadow(0 0 9px rgba(34, 211, 238, 0.52));
}

/* --------------------------------------------------------------------------
3.2 UNIVERSITY BRAND
-------------------------------------------------------------------------- */

.university-brand {
  width: clamp(480px, 42vw, 650px);

  display: flex;
  align-items: center;
  justify-content: center;
}

.university-brand img {
  display: block;

  width: 100%;
  height: 105px;

  object-fit: contain;
  transform: scale(1.35);

  filter:
    drop-shadow(0 0 12px rgba(212, 175, 55, 0.22))
    drop-shadow(0 0 26px rgba(212, 175, 55, 0.10));

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.university-brand:hover img {
  transform: scale(1.43);

  filter:
    drop-shadow(0 0 15px rgba(212, 175, 55, 0.32))
    drop-shadow(0 0 32px rgba(212, 175, 55, 0.14));
}

/* ==========================================================================
4. STORY NAVIGATION
========================================================================== */

.story-nav {
  position: fixed;
  top: 50%;
  left: 26px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 10px;
  transform: translateY(-50%);
  background: rgba(5, 7, 11, 0.82);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.story-nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.story-nav a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  transform: scale(1.08);
}

.story-nav a::after {
  content: attr(data-label);
  position: absolute;
  left: 58px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(5, 7, 11, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.story-nav a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.story-page {
  width: min(92%, 1240px);
  margin: 0 auto;
  padding: 125px 0 90px;
}

.hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5.6vw, 5.9rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.hero p {
  max-width: 880px;
  margin: 28px auto 0;
  color: var(--beige);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.7;
  font-weight: 500;
}

.story-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  margin: 0 0 46px;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 30px 90px rgba(0, 0, 0, 0.46);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
}

.html-card::before {
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.08));
}

.css-card::before {
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--pink));
}

.js-card::before {
  background: linear-gradient(180deg, var(--gold), var(--cyan), var(--pink));
}

/* ==========================================================================
7.1 STORY CARD HOVER
========================================================================== */

.story-card.is-hovered {
  transform: translateY(-7px);
}

.html-card.is-hovered {
  border-color: rgba(212, 175, 55, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 34px 95px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(212, 175, 55, 0.11);
}

.css-card.is-hovered {
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 34px 95px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(168, 85, 247, 0.14);
}

.js-card.is-hovered {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 34px 95px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(34, 211, 238, 0.12);
}

.story-index {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.story-copy h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.html-card h2 {
  color: var(--gold);
}

.css-card h2 {
  background: linear-gradient(100deg, var(--cyan), var(--purple) 52%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.js-card h2 {
  color: #f4d97c;
}

.story-copy p {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.82;
  text-wrap: pretty;
}

.story-lead {
  color: var(--beige) !important;
  font-size: 20px !important;
  line-height: 1.55 !important;
  font-weight: 700;
}

.story-note {
  margin-top: 24px !important;
  padding: 15px 18px;
  color: var(--gold) !important;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.11), rgba(212, 175, 55, 0.025));
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  font-size: 15px !important;
  line-height: 1.7 !important;
  font-weight: 650;
  text-wrap: balance;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.js-card .story-copy {
  text-wrap: pretty;
}

.story-copy,
.story-image {
  min-width: 0;
  max-width: 100%;
}

.css-card .story-note {
  color: var(--cyan) !important;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.13), rgba(34, 211, 238, 0.035));
  border-left-color: var(--purple);
}

.js-card .story-note {
  color: #f4d97c !important;
  background: linear-gradient(90deg, rgba(244, 217, 124, 0.11), rgba(34, 211, 238, 0.03));
  border-left-color: var(--cyan);
}

.mapping-grid,
.feature-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.mapping-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mapping-grid div,
.feature-grid span {
  position: relative;
  padding: 19px 20px 19px 23px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.mapping-grid div::before,
.feature-grid span::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--inner-card-accent, var(--gold));
  box-shadow: 0 0 12px var(--inner-card-glow, rgba(212, 175, 55, 0.5));
  content: "";
}

.html-card .mapping-grid div {
  --inner-card-accent: var(--gold);
  --inner-card-glow: rgba(212, 175, 55, 0.52);
}

.css-card .feature-grid span {
  --inner-card-accent: var(--purple);
  --inner-card-glow: rgba(168, 85, 247, 0.52);
}

.js-card .feature-grid span {
  --inner-card-accent: var(--cyan);
  --inner-card-glow: rgba(34, 211, 238, 0.5);
}

.mapping-grid div:hover,
.feature-grid span:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border-color: var(--inner-card-accent, var(--gold));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.26),
    0 0 18px var(--inner-card-glow, rgba(212, 175, 55, 0.26));
}

.mapping-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 17px;
}

.mapping-grid span,
.feature-grid span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.5;
}

.story-image {
  width: 100%;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.story-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.story-image:hover img,
.story-image.is-hovered img {
  transform: translateY(-4px) scale(1.035);
  filter: brightness(1.055);
  box-shadow:
    0 32px 82px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(34, 211, 238, 0.11);
}

.journey-card {
  margin: 70px 0 20px;
  padding: clamp(44px, 7vw, 82px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 34%),
    var(--glass);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 30px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.journey-card > span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.journey-card h2 {
  max-width: 1020px;
  margin: 0 auto 24px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.journey-card p {
  max-width: 1020px;
  margin: 0 auto;
  color: var(--beige);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.88;
}

.site-footer {
  width: min(92%, 1240px);
  margin: 0 auto;
  padding: 32px 0 44px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .story-card {
    grid-template-columns: 1fr;
  }

  .story-image {
    order: -1;
  }

  .story-nav {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    flex-direction: row;
    justify-content: center;
    transform: none;
    border-radius: 18px;
  }

  .story-nav a::after {
    display: none;
  }

  .story-page {
    padding-top: 130px;
  }
}

@media (max-width: 700px) {
  .page-header-shell {
    top: 10px;
    left: 50%;

    width: calc(100% - 20px);
    min-height: 72px;

    grid-template-columns: auto 1fr auto;
    gap: 8px;

    padding: 8px 10px;

    border-radius: 18px;

    transform: translateX(-50%);
  }

  .header-action {
    min-width: 42px;
    min-height: 42px;

    padding: 0 12px;

    font-size: 11px;
  }

  .header-action span {
    display: none;
  }

  .university-brand {
    width: min(46vw, 230px);
  }

  .university-brand img {
    height: 44px;
    transform: scale(1.18);
  }

  .story-page {
    width: 94%;
    padding: 112px 0 86px;
  }

  .hero {
    min-height: 330px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 6.5vw, 1.75rem);
    line-height: 1.04;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 16px;
  }

  .story-card {
    width: 100%;
    min-width: 0;
    gap: 22px;
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 24px;
  }

  .story-copy h2 {
    font-size: 2rem;
  }

  .story-lead {
    font-size: 17px !important;
  }

  .story-copy p {
    font-size: 15px;
    line-height: 1.68;
  }

  .mapping-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .story-image img {
    border-radius: 18px;
  }

  .journey-card {
    margin-top: 42px;
    padding: 36px 20px;
    border-radius: 24px;
  }

  .journey-card h2 {
    max-width: 100%;
    font-size: 1.5rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .site-footer {
    width: 94%;
    padding-bottom: 96px;
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .story-image img,
  .header-action,
  .university-brand img,
  .story-nav a {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ==========================================================================
11.1 IMAGE LIGHTBOX
========================================================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox img {
  display: block;
  max-width: min(94vw, 1500px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow:
    0 35px 110px rgba(0, 0, 0, 0.72),
    0 0 38px rgba(34, 211, 238, 0.08);
  transform: scale(0.96);
  transition: transform 0.28s ease;
}

.image-lightbox.is-open img {
  transform: scale(1);
}

.image-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(5, 7, 11, 0.82);
  border: 1px solid var(--border);
  border-radius: 50%;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.mobile-title-break {
  display: none;
}

@media (max-width: 700px) {
  .mobile-title-break {
    display: block;
  }

  .journey-card h2 span {
    display: block;
  }
}

/* ==========================================================================
17. LUXURY HEADER | RESPONSIVE OVERRIDES
========================================================================== */

@media (max-width: 700px) {
  .page-header-shell {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 76px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 20px;
  }

  .header-action {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
  }

  .header-action span {
    display: none;
  }
  .university-brand {
    width: min(46vw, 230px);
  }

  .university-brand img {
    width: 100%;
    height: 52px;
  }
  .story-page {
    padding-top: 105px;
  }
}
