/*
Theme Name: MM Shihab Portfolio
Theme URI: https://mmshihab-portfolio.ritbd21.chatgpt.site
Author: Md. Moneruzzaman
Description: A modern, Customizer-driven professional portfolio for rehabilitation practice, research, speaking, service, and consultation.
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mmshihab-portfolio
*/

:root {
  --navy: #092d49;
  --navy-deep: #071e34;
  --ink-soft: #53697a;
  --teal: #00a69c;
  --cyan: #22bce0;
  --coral: #ff725e;
  --violet: #725bff;
  --lime: #c6ef72;
  --paper: #f6faf8;
  --white: #ffffff;
  --line: rgba(9, 45, 73, 0.13);
  --shadow: 0 26px 75px rgba(9, 45, 73, 0.14);
  --gradient: linear-gradient(115deg, #00a69c 0%, #22bce0 31%, #725bff 65%, #ff725e 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 188, 224, 0.11), transparent 28rem),
    radial-gradient(circle at 94% 20%, rgba(114, 91, 255, 0.08), transparent 32rem),
    var(--paper);
  color: var(--navy);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.admin-bar .site-header {
  top: 48px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.section-shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  width: min(1340px, calc(100% - 30px));
  min-height: 74px;
  margin: 16px auto 0;
  padding: 8px 9px 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 50px rgba(9, 45, 73, 0.11);
  backdrop-filter: blur(20px);
}

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

.brand img {
  width: 230px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand .custom-logo-link {
  display: flex;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.desktop-nav > .nav-link,
.nav-dropdown > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 13px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.desktop-nav > .nav-link:hover,
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary {
  background: rgba(0, 166, 156, 0.1);
  color: #087c77;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary span {
  margin-left: 7px;
  color: var(--coral);
  font-size: 0.8rem;
  transition: transform 180ms ease;
}

.nav-dropdown[open] > summary span {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: 51px;
  left: 50%;
  display: grid;
  width: 230px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 55px rgba(9, 45, 73, 0.16);
  transform: translateX(-50%);
}

.dropdown-wide {
  width: 250px;
}

.dropdown-panel a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  padding: 12px 11px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}

.dropdown-panel a:hover {
  background: #edf9f7;
  transform: translateX(3px);
}

.dropdown-panel small {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 0.68rem;
  font-style: italic;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 16px;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 850;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.gradient-button,
.gradient-icon {
  background: var(--gradient);
  background-size: 300% 300%;
  color: var(--white);
  animation: gradient-drift 7s ease infinite;
}

.gradient-button {
  box-shadow: 0 16px 36px rgba(34, 127, 177, 0.22);
}

.gradient-button:hover {
  box-shadow: 0 20px 44px rgba(61, 94, 196, 0.3);
}

@keyframes gradient-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header-cta {
  min-height: 54px;
  padding-inline: 21px;
}

.outline-button {
  border-color: transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) padding-box,
    var(--gradient) border-box;
  background-size: 100% 100%, 300% 300%;
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(9, 45, 73, 0.06);
  animation: gradient-drift 7s ease infinite;
}

.outline-button:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--gradient) border-box;
  background-size: 100% 100%, 300% 300%;
}

.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  min-height: 700px;
  padding: 58px 0 48px;
  gap: 55px;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 23px;
  color: #087c77;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.55;
  text-transform: uppercase;
}

.status-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(255, 114, 94, 0.15);
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  50% { box-shadow: 0 0 0 13px rgba(255, 114, 94, 0); }
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.5rem, 6.2vw, 6.45rem);
  font-weight: 690;
  letter-spacing: -0.068em;
  line-height: 0.93;
}

.hero h1 em {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 650px;
  margin: 29px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.78;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
  margin: 42px 0 0;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 0 17px;
  border-right: 1px solid var(--line);
}

.hero-facts div:first-child { padding-left: 0; }
.hero-facts div:last-child { border-right: 0; }

.hero-facts dt {
  margin-bottom: 6px;
  color: #7d909c;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  isolation: isolate;
}

.portrait-glow {
  position: absolute;
  z-index: -4;
  inset: 7% 0 0 8%;
  border-radius: 46% 54% 32% 68% / 42% 35% 65% 58%;
  background: linear-gradient(145deg, rgba(34, 188, 224, 0.36), rgba(114, 91, 255, 0.18) 54%, rgba(255, 114, 94, 0.26));
  filter: blur(3px);
  animation: blob-shift 10s ease-in-out infinite alternate;
}

@keyframes blob-shift {
  to { border-radius: 58% 42% 59% 41% / 51% 58% 42% 49%; transform: rotate(2deg) scale(1.02); }
}

.hero-photo {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 0;
  width: 92%;
  height: 91%;
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 45% 45% 27px 27px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
}

.pulse-ring {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(0, 166, 156, 0.28);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit-pulse 3.4s ease-out infinite;
}

.pulse-ring-one {
  top: 4%;
  right: -8%;
  width: 330px;
  height: 330px;
}

.pulse-ring-two {
  bottom: 3%;
  left: -2%;
  width: 160px;
  height: 160px;
  animation-delay: 1.1s;
}

@keyframes orbit-pulse {
  0% { opacity: 0.7; transform: scale(0.82); }
  75%, 100% { opacity: 0; transform: scale(1.18); }
}

.pulse-photo {
  position: relative;
  isolation: isolate;
}

.pulse-photo::before {
  position: absolute;
  z-index: -1;
  inset: -8px;
  border: 2px solid rgba(34, 188, 224, 0.28);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: photo-pulse 3.2s ease-out infinite;
}

@keyframes photo-pulse {
  0% { opacity: 0.65; transform: scale(0.985); }
  70%, 100% { opacity: 0; transform: scale(1.035); }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.marquee-dark {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--navy-deep);
  color: white;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 84px;
  animation: marquee 31s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding-right: 37px;
  gap: 37px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.marquee-item i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 114, 94, 0.12);
}

.marquee-logo {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.marquee-light .marquee-logo {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.marquee-logo img {
  width: auto;
  max-width: 124px;
  height: 34px;
  object-fit: contain;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section-index {
  display: flex;
  align-items: center;
  margin-bottom: 43px;
  gap: 16px;
}

.section-index span,
.card-index {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 0.92rem;
  font-style: italic;
}

.section-index p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about {
  padding-block: 94px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 9%;
}

.context-photo {
  margin: 0;
  border-radius: 31px;
  background: white;
  box-shadow: var(--shadow);
}

.context-photo::after {
  position: absolute;
  z-index: -2;
  top: -28px;
  right: -28px;
  width: 73%;
  height: 68%;
  border-radius: 32px;
  background: linear-gradient(145deg, #c9f2ed, #cfd8ff);
  content: "";
}

.context-photo img {
  width: 100%;
  aspect-ratio: 8 / 9;
  max-height: 560px;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 24%;
}

.about-copy h2,
.section-heading h2,
.experience-intro h2,
.education-copy h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.7rem);
  font-weight: 670;
  letter-spacing: -0.056em;
  line-height: 1.01;
}

.about-copy > p:not(.eyebrow),
.experience-intro > p:not(.eyebrow) {
  max-width: 740px;
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.84;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  margin-top: 29px;
  gap: 9px;
}

.skill-pills span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
}

.experience {
  padding: 92px 0 104px;
  border-top: 1px solid var(--line);
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
  gap: 7%;
}

.experience-intro {
  position: sticky;
  top: 125px;
}

.cutout-portrait {
  position: relative;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #d9f8f2, #a6dcf0 48%, #c8c7ff);
  box-shadow: 0 18px 50px rgba(9, 45, 73, 0.1);
}

.portrait-shape {
  position: absolute;
  top: -35%;
  right: -8%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.12), 0 0 0 70px rgba(255, 255, 255, 0.07);
}

.cutout-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 28px rgba(9, 45, 73, 0.12));
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0 0 0 51px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 18px;
  left: 10px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  padding-bottom: 0;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  top: 5px;
  left: -48px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 1px var(--coral);
}

.timeline-period,
.degree-card span {
  margin: 0 0 10px;
  color: #087c77;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.timeline-organization {
  margin: 7px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-summary {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.72;
}

.education {
  padding: 94px 0 108px;
  border-top: 1px solid var(--line);
}

.education-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 8%;
}

.degree-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.degree-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.degree-card span {
  display: block;
  margin-bottom: 8px;
}

.degree-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.degree-card p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.degree-card strong {
  max-width: 190px;
  padding: 10px 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d7f4ef, #e7e3ff);
  color: #08716d;
  font-size: 0.66rem;
  line-height: 1.48;
  text-align: center;
}

.development-list {
  margin-top: 31px;
}

.development-list > p {
  margin: 0 0 16px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.development-list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  gap: 12px 28px;
  list-style: none;
}

.development-list li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.development-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.education-visual {
  position: relative;
  min-height: 690px;
}

.education-visual::before {
  position: absolute;
  z-index: -3;
  inset: 4% 0 8% 14%;
  border-radius: 50% 50% 25% 25%;
  background: linear-gradient(155deg, #d0f4ef, #b8daf2 55%, #d9d1ff);
  content: "";
}

.graduation-photo,
.award-photo {
  position: absolute;
  margin: 0;
  border: 7px solid white;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.graduation-photo {
  top: 0;
  right: 3%;
  width: 67%;
  height: 78%;
  border-width: 9px;
  border-radius: 28px;
}

.graduation-photo img,
.award-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graduation-photo img { object-position: center 20%; }

.award-photo {
  width: 39%;
  height: 28%;
  border-radius: 20px;
}

.award-photo-one {
  top: 24%;
  left: 0;
  transform: rotate(-4deg);
}

.award-photo-two {
  right: 3%;
  bottom: 0;
  transform: rotate(3deg);
}

.carousel-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 18px;
}

.carousel-label span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.carousel-label p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.research {
  padding: 96px 0 90px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.26fr 0.74fr;
  align-items: end;
  margin-bottom: 52px;
  gap: 8%;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.74;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.research-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(9, 45, 73, 0.035);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.research-card:hover {
  border-color: rgba(0, 166, 156, 0.25);
  box-shadow: 0 27px 65px rgba(9, 45, 73, 0.13);
  transform: translateY(-7px);
}

.card-meta,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
}

.card-meta span {
  color: #087c77;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-index {
  display: block;
  margin-top: 50px;
}

.publication-logo {
  width: auto;
  max-width: 150px;
  height: 42px;
  margin-top: 38px;
  object-fit: contain;
  object-position: left center;
}

.research-card h3 {
  margin: 12px 0 29px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.37;
}

.card-footer {
  margin-top: auto;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.card-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.gradient-icon {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  place-items: center;
  transition: transform 180ms ease;
}

.gradient-icon:hover { transform: rotate(9deg) scale(1.05); }

.speaking {
  margin-top: 0;
  padding: 96px 0 104px;
  background:
    radial-gradient(circle at 9% 8%, rgba(34, 188, 224, 0.2), transparent 31%),
    radial-gradient(circle at 95% 90%, rgba(114, 91, 255, 0.18), transparent 32%),
    var(--navy-deep);
  color: white;
}

.light-index { color: white; }
.speaking .section-heading > p { color: rgba(255, 255, 255, 0.68); }
.eyebrow.light { color: #83e7df; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  border-radius: 23px;
  overflow: hidden;
  background: #173f57;
}

.gallery-item:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 5 / 9; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1; }
.gallery-item:nth-child(4) { grid-column: 5 / 9; grid-row: 2; }
.gallery-item:nth-child(5) { grid-column: 9 / 13; grid-row: 2; }

.gallery-item::after {
  position: absolute;
  z-index: 1;
  inset: 48% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(4, 22, 38, 0.9));
  content: "";
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(4) img { object-position: center 23%; }
.gallery-item:hover img { transform: scale(1.045); }

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  right: 21px;
  bottom: 19px;
  left: 21px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.others {
  padding: 96px 0;
}

.others-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}

.other-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.79);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.other-card:hover {
  box-shadow: 0 25px 60px rgba(9, 45, 73, 0.11);
  transform: translateY(-6px);
}

.other-card::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  content: "";
  opacity: 0.13;
}

.accent-teal::before { background: var(--teal); }
.accent-coral::before { background: var(--coral); }
.accent-violet::before { background: var(--violet); }
.accent-blue::before { background: var(--cyan); }

.other-card > span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 0.79rem;
  font-style: italic;
}

.other-card-image {
  width: calc(100% + 60px);
  height: 170px;
  margin: -30px -30px 24px;
  object-fit: cover;
}

.other-card-image + span + h3 {
  margin-top: 24px;
}

.other-card h3 {
  margin: 46px 0 15px;
  font-size: 1.7rem;
  letter-spacing: -0.035em;
}

.other-card p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.76;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 23px;
  gap: 8px;
}

.resource-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: #edf6f8;
  color: #087c77;
  font-size: 0.68rem;
  font-weight: 900;
}

.compact-button {
  min-height: 48px;
  margin-top: 23px;
  padding-inline: 18px;
  font-size: 0.76rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  min-height: 470px;
  margin-top: 80px;
  margin-bottom: 34px;
  padding: 68px 68px 0;
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 4%, rgba(34, 188, 224, 0.35), transparent 35%),
    linear-gradient(130deg, #092f4b 0%, #0a5763 53%, #253872 100%);
  color: white;
  box-shadow: var(--shadow);
  gap: 7%;
  overflow: hidden;
}

.contact-copy {
  align-self: center;
  padding-bottom: 68px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.91rem;
  line-height: 1.75;
}

.contact-portrait {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.contact-portrait img {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -3%;
  width: 100%;
  max-height: 455px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.22));
}

.contact-orbit {
  position: absolute;
  right: 2%;
  bottom: 8%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.06), 0 0 0 75px rgba(255, 255, 255, 0.035);
  animation: gentle-scale 4s ease-in-out infinite alternate;
}

@keyframes gentle-scale {
  to { transform: scale(1.06); }
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  margin-bottom: 28px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 35px rgba(9, 45, 73, 0.05);
  gap: 46px;
}

.footer-brand strong { font-size: 0.91rem; }
.footer-brand p { margin: 5px 0 0; color: var(--ink-soft); font-size: 0.69rem; }

.site-footer nav {
  display: flex;
  gap: 23px;
}

.site-footer nav a,
.back-top {
  font-size: 0.72rem;
  font-weight: 850;
}

.site-footer nav a:hover,
.back-top:hover { color: #087c77; }

.post-index {
  min-height: 70vh;
  padding-block: 120px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.post-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.post-card h2 {
  margin: 0 0 18px;
  font-size: 1.7rem;
}

.post-card div {
  color: var(--ink-soft);
  line-height: 1.75;
}

.reveal {
  animation: reveal 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-late { animation-delay: 140ms; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .reveal-on-scroll {
    animation: scroll-reveal linear both;
    animation-range: entry 10% cover 32%;
    animation-timeline: view();
  }

  @keyframes scroll-reveal {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 215px 1fr auto; }
  .brand img { width: 200px; }
  .desktop-nav > .nav-link,
  .nav-dropdown > summary { padding-inline: 11px; }
  .hero { gap: 32px; }
  .hero h1 { font-size: clamp(3.45rem, 6.4vw, 5.25rem); }
  .contact-panel { padding-inline: 54px; }
}

@media (max-width: 900px) {
  .section-shell { width: min(100% - 38px, 700px); }

  .site-header {
    top: 10px;
    grid-template-columns: 1fr auto;
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 7px 8px 7px 15px;
    border-radius: 18px;
  }

  .brand img { width: min(215px, 61vw); height: 41px; }
  .desktop-nav,
  .header-cta { display: none; }
  .mobile-menu { position: relative; display: block; }

  .mobile-menu > summary {
    display: grid;
    width: 49px;
    height: 49px;
    padding: 13px;
    border-radius: 14px;
    background: var(--gradient);
    background-size: 250% 250%;
    cursor: pointer;
    place-content: center;
    gap: 5px;
    animation: gradient-drift 7s ease infinite;
  }

  .mobile-menu > summary span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: white;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-menu[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu[open] > summary span:nth-child(2) { opacity: 0; }
  .mobile-menu[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu > nav {
    position: absolute;
    top: 60px;
    right: 0;
    display: grid;
    width: min(320px, calc(100vw - 34px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }

  .mobile-menu nav > a,
  .mobile-menu nav > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
  }

  .mobile-menu nav > a:hover,
  .mobile-menu nav > details > summary:hover { background: #eff9f7; }

  .mobile-menu nav details div {
    display: grid;
    padding: 2px 8px 8px 24px;
  }

  .mobile-menu nav details div a {
    padding: 9px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 750;
  }

  .mobile-cta {
    margin-top: 8px;
    color: white;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 85px 0 58px;
  }

  .hero h1 { max-width: 650px; font-size: clamp(3.55rem, 12vw, 5.8rem); }
  .hero-visual { min-height: 610px; margin-top: 15px; }
  .hero-photo { right: 5%; width: 90%; }

  .about-grid,
  .experience-grid,
  .education-layout,
  .section-heading,
  .contact-panel { grid-template-columns: 1fr; }

  .about-grid,
  .experience-grid,
  .education-layout { gap: 68px; }
  .context-photo { width: min(86%, 480px); }
  .experience-intro { position: static; }
  .cutout-portrait { max-width: 560px; }
  .timeline { display: block; }
  .timeline-item { padding-bottom: 48px; }
  .section-heading { align-items: start; gap: 22px; }

  .education-visual { width: min(100%, 620px); min-height: 660px; margin-inline: auto; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { min-height: 330px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 450px repeat(2, 280px); }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item:nth-child(n+2) { grid-column: auto; grid-row: auto; }
  .gallery-item:nth-child(1) img { object-position: center 18%; }

  .contact-panel { gap: 0; padding: 54px 50px 0; }
  .contact-copy { padding-bottom: 20px; }
  .contact-portrait { min-height: 400px; }
  .contact-portrait img { width: min(100%, 470px); left: 50%; transform: translateX(-50%); }
  .contact-orbit { left: 50%; transform: translateX(-50%); }
  @keyframes gentle-scale { to { transform: translateX(-50%) scale(1.06); } }

  .site-footer { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 56px;
  }
}

@media (max-width: 580px) {
  .section-shell { width: calc(100% - 30px); }
  .brand img { width: min(190px, 58vw); }
  .hero { padding-top: 66px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-intro { font-size: 0.98rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }

  .hero-facts { grid-template-columns: 1fr; gap: 17px; }
  .hero-facts div,
  .hero-facts div:first-child { padding: 0 0 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts div:last-child { border-bottom: 0; }
  .hero-visual { min-height: 500px; }
  .hero-photo { right: 0; width: 100%; height: 90%; border-radius: 42% 42% 22px 22px; }
  .pulse-ring-one { right: -20%; width: 260px; height: 260px; }

  .about,
  .experience,
  .education,
  .research,
  .others { padding-block: 84px; }
  .speaking { padding-block: 84px; }

  .section-index { margin-bottom: 34px; }
  .context-photo { width: calc(100% - 22px); }
  .context-photo::after { right: -20px; }

  .about-copy h2,
  .section-heading h2,
  .experience-intro h2,
  .education-copy h2,
  .contact-panel h2 { font-size: clamp(2.35rem, 11.5vw, 3.25rem); }

  .timeline { padding-left: 38px; }
  .timeline-marker { left: -35px; }
  .degree-card { grid-template-columns: 1fr; }
  .degree-card strong { max-width: none; justify-self: start; text-align: left; }
  .development-list ul { grid-template-columns: 1fr; }
  .education-visual { min-height: 535px; }

  .carousel-label { display: block; }
  .carousel-label p { margin-top: 6px; }
  .marquee-track { min-height: 75px; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item:nth-child(n) { grid-column: 1; grid-row: auto; min-height: 320px; }
  .gallery-item:nth-child(1) { min-height: 440px; }

  .others-grid { grid-template-columns: 1fr; }
  .other-card { min-height: 285px; padding: 26px; }
  .other-card-image { width: calc(100% + 52px); margin: -26px -26px 22px; }
  .compact-button { width: auto; }

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

  .contact-panel {
    width: calc(100% - 20px);
    min-height: 700px;
    margin-top: 55px;
    padding: 39px 26px 0;
    border-radius: 28px;
  }
  .contact-copy { padding-bottom: 0; }
  .contact-portrait { min-height: 365px; }
  .contact-orbit { width: 290px; height: 290px; }
  .site-footer { padding: 23px; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Dedicated portfolio pages. */
.inner-page { min-height: 100vh; }

.page-hero {
  display: grid;
  align-items: center;
  min-height: 610px;
  padding-block: 92px 78px;
}

.page-hero-with-image {
  grid-template-columns: 1.08fr 0.72fr;
  gap: 8%;
}

.page-hero-copy { max-width: 850px; }

.page-kicker {
  display: flex;
  align-items: center;
  margin: 0 0 52px;
  gap: 16px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-kicker span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 0.92rem;
  font-style: italic;
}

.page-hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3.25rem, 6.4vw, 6.4rem);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.page-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.82;
}

.page-hero-image {
  position: relative;
  width: min(100%, 470px);
  margin: 0;
  justify-self: end;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, #d5f7f1, #c4d9ff);
  box-shadow: var(--shadow);
}

.page-hero-image img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: center bottom;
}

.page-section {
  padding-block: 96px 128px;
  border-top: 1px solid var(--line);
}

.page-copy-grid {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  align-items: start;
  margin-bottom: 52px;
  gap: 9%;
}

.page-copy-grid h2,
.consultation-panel h2,
.page-cta h2 {
  margin: 0;
  font-size: clamp(2.45rem, 4.5vw, 4.55rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.prose p,
.page-supporting,
.feature-card p,
.contact-details-grid article > p:last-child {
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.78;
}

.prose p { margin: 0 0 20px; }
.page-supporting { margin: 6px 0 0; }

.feature-grid { display: grid; gap: 17px; }
.four-up { grid-template-columns: repeat(4, 1fr); }
.three-up { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  min-height: 230px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(9, 45, 73, 0.04);
}

.feature-card > span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
}

.feature-card h3 {
  margin: 52px 0 13px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.page-degree-list { max-width: 1000px; }
.page-development { max-width: 980px; margin-top: 42px; }

.page-speaking {
  background:
    radial-gradient(circle at 9% 8%, rgba(34, 188, 224, 0.2), transparent 31%),
    radial-gradient(circle at 95% 90%, rgba(114, 91, 255, 0.18), transparent 32%),
    var(--navy-deep);
  color: white;
}

.static-logo-section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.static-logo-section h2 { margin: 0 0 25px; font-size: 1.3rem; }

.static-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.static-logo-grid a,
.static-logo-grid > div {
  display: grid;
  min-height: 120px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  place-items: center;
}

.static-logo-grid img { width: auto; max-width: 180px; max-height: 62px; object-fit: contain; }

.resource-page-grid,
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}

.resource-page-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 190px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.8);
  gap: 28px;
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.resource-page-card:hover { box-shadow: 0 23px 52px rgba(9, 45, 73, 0.11); transform: translateY(-5px); }
.resource-page-card h2 { margin: 0; font-size: 1.65rem; }
.resource-page-card > span { color: var(--coral); font-size: 1.5rem; }

.consultation-panel,
.page-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 62px;
  border-radius: 34px;
  background: linear-gradient(130deg, #092f4b 0%, #0a5763 53%, #253872 100%);
  color: white;
  box-shadow: var(--shadow);
  gap: 54px;
}

.contact-details-grid article {
  min-height: 280px;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.8);
}

.contact-details-grid h2 { margin: 34px 0 18px; font-size: clamp(1.45rem, 3vw, 2.35rem); letter-spacing: -0.04em; }
.contact-profile-links { display: flex; flex-wrap: wrap; margin-top: 40px; gap: 10px; }
.contact-profile-links a { padding: 11px 15px; border-radius: 999px; background: #e9f7f5; color: #087c77; font-size: 0.74rem; font-weight: 900; }

.page-cta { margin-top: 30px; margin-bottom: 34px; }

.editor-content,
.standard-page { padding-block: 85px; }

.editor-content { color: var(--ink-soft); line-height: 1.8; }
.standard-page { min-height: 70vh; }
.standard-page-card { padding: 40px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 255, 255, 0.82); }
.standard-page-card h1 { margin-top: 0; font-size: clamp(2.6rem, 6vw, 5rem); }

/* Compact, visually distinct dedicated pages. */
.inner-page {
  --page-accent: #00a69c;
  --page-accent-2: #22bce0;
  --page-surface: #eaf8f5;
  background: linear-gradient(180deg, color-mix(in srgb, var(--page-surface) 44%, var(--paper)), var(--paper) 44rem);
}

.page-theme-about { --page-accent: #00a69c; --page-accent-2: #22bce0; --page-surface: #d9f7f2; }
.page-theme-education { --page-accent: #5268e8; --page-accent-2: #9b62e7; --page-surface: #e6e8ff; }
.page-theme-research { --page-accent: #087c77; --page-accent-2: #35b980; --page-surface: #dff4e9; }
.page-theme-speaking { --page-accent: #ef775d; --page-accent-2: #f2b64c; --page-surface: #fff0df; }
.page-theme-interest { --page-accent: #8b59c4; --page-accent-2: #e16f9a; --page-surface: #f3e4f6; }
.page-theme-social-work { --page-accent: #d35d6e; --page-accent-2: #ff9d61; --page-surface: #ffebe7; }
.page-theme-resources { --page-accent: #2673c7; --page-accent-2: #20aeca; --page-surface: #deeffb; }
.page-theme-online-consultation { --page-accent: #6166cf; --page-accent-2: #0aa69a; --page-surface: #e3ebfa; }
.page-theme-contact { --page-accent: #137b8e; --page-accent-2: #655ed8; --page-surface: #dff1f3; }

.inner-page .page-hero {
  position: relative;
  display: block;
  width: min(1400px, calc(100% - 30px));
  min-height: 0;
  margin: 24px auto 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--page-accent) 18%, white);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--page-accent-2) 32%, transparent), transparent 31%),
    linear-gradient(132deg, color-mix(in srgb, var(--page-surface) 86%, white), color-mix(in srgb, var(--page-surface) 40%, white));
  overflow: hidden;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--page-accent) 13%, transparent);
}

.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.54fr);
  align-items: center;
  min-height: 470px;
  padding-block: 54px;
  gap: 6%;
}

.page-number-watermark {
  position: absolute;
  top: 12px;
  right: 1%;
  color: color-mix(in srgb, var(--page-accent) 9%, transparent);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 21vw, 18rem);
  font-style: italic;
  line-height: 0.95;
  pointer-events: none;
}

.page-hero-copy { position: relative; z-index: 2; }
.inner-page .page-kicker { margin-bottom: 34px; }
.inner-page .page-kicker span,
.inner-page .feature-card > span,
.inner-page .card-index { color: var(--page-accent); }
.inner-page .eyebrow { color: color-mix(in srgb, var(--page-accent) 78%, #062e48); }
.inner-page .page-hero h1 { max-width: 850px; font-size: clamp(3rem, 5.6vw, 5.75rem); }
.inner-page h1 em,
.inner-page h2 em { color: var(--page-accent); font-family: inherit; font-style: normal; font-weight: inherit; }
.inner-page .page-lead { margin-top: 23px; }

.inner-page .page-hero-image {
  z-index: 2;
  width: min(100%, 410px);
  max-height: none;
  border: 7px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: color-mix(in srgb, var(--page-surface) 72%, white);
}
.inner-page .page-hero-image img { width: 100%; height: auto; max-height: 490px; object-fit: contain; object-position: center bottom; }
.inner-page .page-section { padding-block: 68px 76px; }
.inner-page .page-copy-grid { margin-bottom: 38px; }
.inner-page .page-copy-grid h2,
.inner-page .consultation-panel h2,
.inner-page .page-cta h2,
.inner-page .page-link-band h2,
.inner-page .consultation-intro h2,
.inner-page .slider-toolbar h2,
.inner-page .resource-subsection h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); font-weight: 680; letter-spacing: -0.052em; line-height: 1.03; }

.inner-page .feature-card { min-height: 205px; border-color: color-mix(in srgb, var(--page-accent) 17%, white); background: rgba(255,255,255,.83); }
.inner-page .feature-card h3 { margin-top: 38px; }

.education-content-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: start; gap: 6%; }
.page-development { margin-top: 0; padding: 27px; border: 1px solid color-mix(in srgb, var(--page-accent) 18%, white); border-radius: 24px; background: rgba(255,255,255,.78); }
.page-development ul { grid-template-columns: 1fr; }
.static-logo-section { margin-top: 42px; padding-top: 36px; }
.static-logo-section h2 em { color: var(--page-accent); font-style: normal; }
.publication-logo { width: auto; max-width: 155px; max-height: 58px; margin-top: 34px; object-fit: contain; }

.page-theme-speaking .page-speaking {
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--page-accent-2) 26%, transparent), transparent 31%),
    radial-gradient(circle at 94% 88%, color-mix(in srgb, var(--page-accent) 22%, transparent), transparent 33%),
    var(--navy-deep);
}
.page-theme-speaking .page-speaking h2 em { color: #ffc670; }
.page-theme-speaking .page-speaking .eyebrow { color: #ffd1a2; }
.page-theme-speaking .page-speaking .page-supporting { color: rgba(255,255,255,.68); }

.social-slider { margin-top: 54px; }
.slider-toolbar { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 30px; }
.slider-controls { display: flex; gap: 9px; }
.slider-controls button { display: grid; width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--page-accent) 24%, white); border-radius: 50%; background: white; color: var(--page-accent); font-size: 1.15rem; cursor: pointer; place-items: center; }
.social-slider-track { display: grid; grid-auto-columns: min(72%, 790px); grid-auto-flow: column; padding: 8px 5px 22px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; gap: 18px; }
.social-slide { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: var(--navy-deep); box-shadow: 0 18px 45px rgba(9,45,73,.13); scroll-snap-align: start; }
.social-slide img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.social-slide figcaption { position: absolute; right: 18px; bottom: 17px; left: 18px; padding: 13px 16px; border-radius: 14px; background: rgba(7,30,52,.78); color: white; font-size: .76rem; font-weight: 850; backdrop-filter: blur(9px); }

.resource-hub { display: grid; gap: 64px; }
.resource-hub > .page-copy-grid { margin-bottom: -26px; }
.resource-carousel { min-width: 0; }
.resource-carousel-controls { display: flex; justify-content: flex-end; margin-bottom: 12px; gap: 8px; }
.resource-carousel-controls button { display: grid; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--page-accent) 24%, white); border-radius: 50%; background: white; color: var(--page-accent); font-size: 1rem; cursor: pointer; place-items: center; }
.resource-carousel-track { display: grid; grid-auto-columns: calc((100% - 36px) / 3); grid-auto-flow: column; padding: 4px 3px 18px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; gap: 18px; }
.resource-carousel-track::-webkit-scrollbar { display: none; }
.resource-slide { display: flex; min-width: 0; scroll-snap-align: start; }
.resource-card { display: flex; width: 100%; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid color-mix(in srgb, var(--page-accent) 17%, white); border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: 0 12px 32px rgba(9,45,73,.06); }
.resource-card > a { display: block; }
.resource-card > a img,
.resource-card > img,
.resource-card > .media-placeholder,
.resource-card > .blog-image-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.resource-card-copy { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 19px; }
.resource-card span { color: var(--page-accent); font-size: .63rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.resource-card h3 { margin: 7px 0 0; font-size: 1rem; line-height: 1.4; }
.resource-card p { margin: 9px 0 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.6; }
.resource-card a { color: var(--page-accent); font-size: .74rem; font-weight: 900; }
.resource-card-copy > a { margin-top: auto; padding-top: 13px; }
.media-placeholder { display: grid; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 79%, #092d49), color-mix(in srgb, var(--page-accent-2) 66%, #725bff)); color: white; place-items: center; text-align: center; }
.media-placeholder span { display: grid; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: white; font-size: 1.2rem; place-items: center; }
.media-placeholder p { margin: -24px 15px 0; color: rgba(255,255,255,.72); font-size: .75rem; }
.resource-empty-card { display: grid; min-height: 145px; padding: 24px; border: 1px dashed color-mix(in srgb, var(--page-accent) 35%, white); border-radius: 22px; background: color-mix(in srgb, var(--page-surface) 50%, white); color: var(--ink-soft); place-items: center; text-align: center; }
.resource-subsection { display: grid; gap: 30px; }
.blog-image-placeholder { display: grid; background: color-mix(in srgb, var(--page-surface) 75%, white); color: var(--page-accent); font-size: .72rem; font-weight: 850; place-items: center; }
.website-list { display: grid; gap: 12px; }
.website-list article { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--page-accent) 16%, white); border-radius: 21px; background: rgba(255,255,255,.8); gap: 30px; }
.website-list h3 { margin: 0; }
.website-list p { margin: 7px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }

.consultation-layout { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; gap: 6%; }
.consultation-intro { position: sticky; top: 120px; }
.consultation-intro > p { color: var(--ink-soft); line-height: 1.75; }
.consultation-form { display: grid; padding: 32px; border: 1px solid color-mix(in srgb, var(--page-accent) 18%, white); border-radius: 28px; background: rgba(255,255,255,.86); box-shadow: 0 18px 50px rgba(9,45,73,.08); gap: 22px; }
.consultation-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.consultation-form label { display: grid; color: var(--navy); font-size: .8rem; font-weight: 850; gap: 8px; }
.consultation-form input,
.consultation-form textarea,
.consultation-form select { width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--navy); font: inherit; }
.consultation-form textarea { resize: vertical; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.schedule-grid fieldset { display: grid; margin: 0; padding: 18px; border: 1px solid color-mix(in srgb, var(--page-accent) 20%, white); border-radius: 17px; gap: 14px; }
.schedule-grid legend { padding: 0 6px; color: var(--page-accent); font-size: .76rem; font-weight: 900; }
.consultation-form .button { justify-self: start; border: 0; cursor: pointer; }
.form-status { padding: 13px 15px; border-radius: 12px; font-size: .8rem; font-weight: 750; }
.form-success { background: #e0f6e9; color: #17643b; }
.form-error { background: #ffebe6; color: #8d3327; }
.consultation-socials { grid-column: 2; }
.consultation-socials > p { margin: 0 0 13px; font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.consultation-socials > div { display: flex; flex-wrap: wrap; gap: 9px; }
.social-button { padding: 10px 13px; border: 1px solid color-mix(in srgb, var(--page-accent) 21%, white); border-radius: 999px; background: white; color: var(--page-accent); font-size: .76rem; font-weight: 900; }

.page-link-band { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-top: 8px; margin-bottom: 18px; padding: 30px 34px; border: 1px solid color-mix(in srgb, var(--page-accent) 19%, white); border-radius: 26px; background: color-mix(in srgb, var(--page-surface) 58%, white); gap: 36px; }
.page-link-band .eyebrow { margin-bottom: 11px; }
.inner-page .page-link-band h2 { font-size: clamp(1.55rem, 3vw, 2.7rem); }
.inner-page .page-cta { margin-top: 18px; padding: 44px 48px; background: linear-gradient(128deg, color-mix(in srgb, var(--page-accent) 46%, #092f4b), color-mix(in srgb, var(--page-accent-2) 42%, #253872)); }

@supports (content-visibility: auto) {
  .about,
  .experience,
  .education,
  .research,
  .speaking,
  .others,
  .contact-panel,
  .page-section,
  .page-cta {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}

@media (max-width: 900px) {
  .page-hero-with-image,
  .page-copy-grid,
  .consultation-panel,
  .page-cta { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding-block: 86px 74px; }
  .page-hero-with-image { gap: 52px; }
  .page-hero-image { width: min(100%, 520px); justify-self: start; }
  .page-copy-grid { gap: 22px; }
  .four-up,
  .three-up,
  .static-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-page-grid,
  .contact-details-grid { grid-template-columns: 1fr; }

  .page-hero-inner { grid-template-columns: 1fr; padding-block: 48px 0; gap: 32px; }
  .inner-page .page-hero-image { width: min(100%, 430px); justify-self: end; }
  .inner-page .page-hero-image img { max-height: 430px; }
  .education-content-grid,
  .consultation-layout { grid-template-columns: 1fr; }
  .consultation-intro { position: static; }
  .consultation-socials { grid-column: 1; }
  .resource-carousel-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .page-link-band { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .page-hero { padding-top: 65px; }
  .page-kicker { margin-bottom: 38px; }
  .page-hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  .page-section { padding-block: 76px 90px; }
  .four-up,
  .three-up,
  .static-logo-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .consultation-panel,
  .page-cta { padding: 36px 25px; gap: 32px; border-radius: 27px; }
  .page-cta { width: calc(100% - 20px); }
  .resource-page-card { min-height: 165px; padding: 25px; }

  .inner-page .page-hero { width: calc(100% - 18px); margin-top: 15px; border-radius: 25px; }
  .page-hero-inner { width: calc(100% - 32px); padding-top: 40px; }
  .inner-page .page-kicker { margin-bottom: 27px; }
  .inner-page .page-hero h1 { font-size: clamp(2.75rem, 13.5vw, 4rem); }
  .inner-page .page-hero-image { width: 100%; }
  .inner-page .page-section { padding-block: 54px 62px; }
  .inner-page .page-copy-grid { margin-bottom: 30px; }
  .education-content-grid { gap: 32px; }
  .slider-toolbar { align-items: start; flex-direction: column; }
  .social-slider-track { grid-auto-columns: 88%; }
  .resource-hub { gap: 48px; }
  .resource-hub > .page-copy-grid { margin-bottom: -18px; }
  .resource-carousel-track { grid-auto-columns: min(86%, 340px); }
  .form-grid,
  .schedule-grid { grid-template-columns: 1fr; }
  .website-list article { grid-template-columns: 1fr; gap: 18px; }
  .website-list .button { width: 100%; }
  .consultation-form { padding: 23px; }
  .page-link-band { padding: 27px 23px; }
  .inner-page .page-cta { padding: 34px 25px; }
}
