/* ============================================================
   HAN Research & Facilitation Partners — Stylesheet
   ============================================================ */

/* Design Tokens
   ------------------------------------------------------------ */
:root {
  --black:      #0a0a0a;
  --white:      #ffffff;
  --off-white:  #f7f6f4;
  --light-gray: #eeece9;
  --border:     #dddbd7;
  --gray:       #9a9a9a;
  --mid-gray:   #5c5c5c;
  --dark:       #1a1a1a;
  --charcoal:   #2c2c2c;

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width:  1140px;
  --nav-height: 88px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* Layout
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding { padding: 7rem 0; }

/* Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  transform: translateX(-1.5rem);
}

.nav-logo img {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gray); }

.nav-cta {
  margin-left: 2.5rem;
  margin-right: -0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--dark);
  color: var(--dark);
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--dark); color: var(--white); }

/* Hero
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-height) + 3rem) 2rem 5rem;
  background: var(--white);
  overflow: hidden;
}


.hero-logo {
  width: min(340px, 65vw);
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: var(--dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease);
}
.btn-primary:hover { background: #333; }

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s;
}
.btn-secondary:hover { border-color: var(--dark); background: var(--off-white); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--gray);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 38px;
  background: var(--gray);
  transform-origin: top;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { opacity: 1; }
  70%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Eyebrow / section labels
   ------------------------------------------------------------ */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.75;
}

.section-header { margin-bottom: 4rem; }

/* Brand Architecture
   ------------------------------------------------------------ */
.brand-arch {
  background: var(--dark);
  color: var(--white);
}

.brand-arch-header {
  text-align: center;
  margin-bottom: 4rem;
}

.brand-arch-header .eyebrow {
  color: rgba(255,255,255,0.45);
}

.brand-arch-tagline {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  max-width: 18ch;
  margin: 0.75rem auto 0;
}

.brand-arch-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.brand-pillar {
  padding: 2.5rem 2.5rem 0;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.brand-pillar:last-child { border-right: none; }
.brand-pillar:first-child { padding-left: 0; }

.brand-pillar-name {
  font-family: 'Cormorant Garant', serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.875rem;
  line-height: 1.25;
}

.brand-pillar-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* About
   ------------------------------------------------------------ */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: start;
}

.about-image-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--light-gray);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray);
}

.about-image-placeholder svg { opacity: 0.4; }

.about-image-placeholder span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center center;
  background: var(--off-white);
}

.about-image-caption {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.625rem;
}

.about-title {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-bio {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  margin: 2rem 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credentials { display: flex; flex-direction: column; gap: 0.875rem; }

.credential {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 0.875rem;
  align-items: start;
}

.credential-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dark);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.credential-main {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--dark);
}

.credential-sub {
  font-size: 0.8125rem;
  color: var(--gray);
  margin-top: 0.15rem;
}

/* Services
   ------------------------------------------------------------ */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 3rem;
  transition: background 0.25s var(--ease);
}
.service-card:hover { background: var(--off-white); }

.service-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.service-list { display: flex; flex-direction: column; gap: 0.45rem; }

.service-list li {
  font-size: 0.875rem;
  color: var(--mid-gray);
  padding-left: 1.125rem;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray);
}

/* Signature Programme
   ------------------------------------------------------------ */
.sig-prog {
  margin-top: 5rem;
  padding: 3rem 3.5rem;
  background: var(--dark);
  color: var(--white);
}

.sig-prog-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 0.75rem;
}

.sig-prog-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.sig-prog-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.sig-prog-phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.sig-phase {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
}

.sig-phase-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
}

.sig-phase-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.sig-phase-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

/* Projects
   ------------------------------------------------------------ */
.projects { background: var(--off-white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
}

.project-funder {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.project-years {
  font-size: 0.7rem;
  color: var(--border);
}
.project-years::before { content: '·'; margin-right: 0.875rem; }

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.875rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.75;
}

/* Publications
   ------------------------------------------------------------ */
.publications { background: var(--white); }

.pub-award {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--dark);
  padding: 1.5rem 2rem;
  margin-bottom: 3.5rem;
}

.pub-award-icon {
  font-size: 1.25rem;
  color: var(--dark);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pub-award-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.pub-award-cite {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dark);
}

.pub-category { margin-bottom: 3rem; }

.pub-category-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.pub-list { display: flex; flex-direction: column; gap: 1.75rem; }

.pub-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pub-year {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 300;
  padding-top: 0.1rem;
}

.pub-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.pub-journal {
  font-size: 0.875rem;
  color: var(--gray);
  font-style: italic;
}

.pub-authors {
  font-size: 0.8125rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

.pub-more {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--gray);
}

/* Affiliations
   ------------------------------------------------------------ */
.affiliations {
  background: var(--dark);
  color: var(--white);
}

.affiliations .eyebrow  { color: rgba(255,255,255,0.38); }
.affiliations .section-title { color: var(--white); }
.affiliations .section-desc  { color: rgba(255,255,255,0.48); }

.affil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 3.5rem;
}

.affil-card {
  background: var(--dark);
  padding: 2.25rem 2.5rem;
  transition: background 0.25s;
}
.affil-card:hover { background: #212121; }

.affil-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.75rem;
}

.affil-org {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.affil-period {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* Languages
   ------------------------------------------------------------ */
.languages { background: var(--off-white); }

.lang-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.lang-card {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  transition: background 0.2s;
}
.lang-card:hover { background: var(--off-white); }

.lang-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.lang-level {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contact
   ------------------------------------------------------------ */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: start;
}

.contact-eyebrow { margin-bottom: 1.5rem; }

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-intro {
  font-size: 1.0625rem;
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 3rem;
}

.contact-items { display: flex; flex-direction: column; gap: 2rem; }

.contact-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.3rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--dark);
}
.contact-value a:hover { color: var(--gray); }

.contact-panel {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 3.5rem;
}

.contact-panel-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.contact-panel-body {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--black);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo img {
  height: 26px;
  width: auto;
  filter: invert(1);
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.65); }

/* Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .affil-grid { grid-template-columns: repeat(2, 1fr); }

  .lang-grid  { grid-template-columns: repeat(3, 1fr); }

  .about-image-placeholder,
  .about-photo { max-width: 380px; }

  .sig-prog-phases { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section-padding { padding: 5rem 0; }

  .services-grid,
  .projects-grid { grid-template-columns: 1fr; }

  .sig-prog { padding: 2.5rem 2rem; }
  .sig-prog-phases { grid-template-columns: repeat(2, 1fr); }

  .brand-arch-pillars { grid-template-columns: 1fr; }
  .brand-pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 2rem 0; }
  .brand-pillar:last-child { border-bottom: none; padding-bottom: 0; }

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

  .lang-grid  { grid-template-columns: repeat(2, 1fr); }

  .nav-links, .nav-cta { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .lang-grid  { grid-template-columns: repeat(2, 1fr); }

  .pub-item   { grid-template-columns: 1fr; gap: 0.25rem; }
}
