* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 74% 42%, rgba(221, 169, 74, 0.20), transparent 30%),
    radial-gradient(circle at center, #fffdf8 0%, #faf6ed 62%, #efe9dc 100%);
  color: #101414;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 38px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(250,247,239,0.96), rgba(250,247,239,0));
  transition:
  background 0.35s ease,
  box-shadow 0.35s ease;
}
header.scrolled {
  background: rgba(250, 247, 239, 0.98);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.name {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

nav a {
  margin-left: 42px;
  font-size: 1.08rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #101414;
  text-decoration: none;
  opacity: 0.82;
}

nav a:hover {
  color: #165f64;
  opacity: 1;
}

.hero {
  min-height: 100vh;
  padding: 120px 5vw 30px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 3vw;
  position: relative;
}

.hero-text {
  padding-left: 1vw;
  z-index: 2;
}

h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
}

h1 span {
  display: block;
  font-size: clamp(3.8rem, 7vw, 7.3rem);
}

h1 em {
  display: block;
  margin-top: 0.05em;
  font-size: clamp(2.6rem, 5.3vw, 5.4rem);
  color: #165f64;
  font-style: italic;
}


.keywords {
  margin-top: 48px;
  font-size: 1.2rem;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: #165f64;
  font-weight: 500;
  line-height: 2;
}

.keywords b {
  margin: 0 15px;
  color: #9c7a3a;
  font-weight: 400;
}

.symbol-wrap {
  position: relative;
  width: min(820px, 56vw);
  aspect-ratio: 1 / 1;
  justify-self: center;
}
.spiral-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  transform: none;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#genesisCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.explore {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #165f64;
  opacity: 0.92;
  text-align: center;
}

.explore span {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  animation: arrow 2.4s ease-in-out infinite;
}

@keyframes arrow {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(8px); opacity: 0.9; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.42);
}

.card {
  padding: 46px 5vw;
  border-right: 1px solid rgba(0,0,0,0.10);
  min-height: 210px;
}

.card:last-child { border-right: none; }

.card h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #165f64;
  font-weight: 500;
}

.card p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.65;
  color: #222;
  max-width: 330px;
}

.card div {
  margin-top: 28px;
  color: #165f64;
  font-size: 1.7rem;
}


.about-section {
  padding: 130px 8vw;
  background: #f7f4ee;
  border-top: 1px solid #d8d1c4;
  scroll-margin-top: 90px;
}

.about-title {
  max-width: 900px;
  margin: 0 auto 85px;
  text-align: center;
}

.about-title h2 {
  margin: 0 0 30px;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b6f78;
}

.about-quote {
  max-width: 820px;
  margin: 0 auto;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-style: italic;
  color: #0b6f78;
  line-height: 1.5;
}

.about-content {
  width: min(1250px, 100%);
  margin: 0 auto;
}


.about-photo {
  float: left;
  width: min(340px, 32%);
  margin: 0 clamp(50px, 7vw, 100px) 35px 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

.about-content::after {
  content: "";
  display: block;
  clear: both;
}

.about-text {
  min-width: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 1.6vw, 1.4rem);
  line-height: 1.8;
  color: #102f35;
}


.about-text p {
  margin: 0 0 30px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-text p:first-child {
  margin-top: 0;
}
.about-text p:nth-child(3) {
  clear: both;
  padding-top: 10px;
}
#research,
#publications,
#contact {
  scroll-margin-top: 110px;
}

.quote-author {
  margin: 20px 0 0;
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #102f35;
  opacity: 0.72;
}
.card-arrow {
  display: inline-block;
  margin-top: 28px;
  color: #165f64;
  font-size: 1.7rem;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.card-arrow:hover {
  transform: translateX(7px);
}


/* Detailed sections */

.detail-section {
  padding: 110px 8vw;
  scroll-margin-top: 90px;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.section-inner {
  width: min(1250px, 100%);
  margin: 0 auto;
}

.detail-section h2 {
  margin: 0 0 65px;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b6f78;
}


/* Research */

.research-section {
  background: #f7f4ee;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(35px, 5vw, 70px);
}

.research-area {
  padding-top: 25px;
  border-top: 2px solid #0b6f78;
}

.research-area h3 {
  margin: 0 0 20px;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.35;
  color: #102f35;
}

.research-area p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.18rem, 1.35vw, 1.28rem);
  line-height: 1.75;
  color: #30474a;
}


/* Publications */

.publications-section {
  background: #fffdf8;
}

.publication-group {
  margin-bottom: 75px;
}

.publication-group:last-child {
  margin-bottom: 0;
}

.publication-group h3 {
  margin: 0 0 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(11, 111, 120, 0.35);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: #0b6f78;
}

.publication {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.publication p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 1.6vw, 1.4rem);
  line-height: 1.8;
  color: #283d40;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.publication-status,
.publication-year {
  padding-top: 3px;
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b6f78;
}

.publication a {
  color: #0b6f78;
  text-decoration: none;
}

.publication a:hover {
  text-decoration: underline;
}

.publication.current {
  display: block;
}

.publication.current .publication-status {
  display: block;
  margin-top: 8px;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.13em;
}

.featured-publication {
  padding-left: 22px;
  border-left: 2px solid #d5a84a;
  background: linear-gradient(90deg, rgba(213, 168, 74, 0.09), transparent 58%);
}

.featured-publication a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}


/* Contact */

.contact-section {
  background: #102f35;
  color: #fffdf8;
}

.contact-section h2 {
  color: #fffdf8;
}

.contact-affiliation {
  margin: 0 0 40px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 45px;
}

.contact-links a {
  color: #e9c878;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-links a:hover {
  color: #ffffff;
}


/* Mobile layout */

/* Desktop styles above */


@media (max-width: 950px) {
  /* Header, hero and cards */

  header {
    position: absolute;
    flex-direction: column;
    gap: 18px;
  }

  nav a {
    margin: 0 10px;
    font-size: 0.88rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 155px;
  }

 
  .symbol-wrap {
    width: min(760px, 94vw);
    margin-top: -16px;
  }
.spiral-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
}
  .explore {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: -18px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  }
}


@media (max-width: 800px) {
  /* About */

  .about-section {
    padding: 90px 7vw;
  }

  .about-title {
    margin-bottom: 55px;
  }

  .about-photo {
    float: none;
    width: min(320px, 82vw);
    margin: 0 auto 45px;
  }

  .about-text {
    font-size: 1.15rem;
    line-height: 1.75;
  }

  .about-text p:nth-child(3) {
    padding-top: 0;
  }

  /* General typography */

  .name {
    font-size: 1.25rem;
  }

  nav a {
    font-size: 0.88rem;
  }

  .keywords {
    font-size: 1.05rem;
  }

  .card p {
    font-size: 1.15rem;
  }

  /* Detailed sections */

  .detail-section {
    padding: 80px 7vw;
  }

  .detail-section h2 {
    margin-bottom: 45px;
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .research-area p,
  .publication p {
    font-size: 1.15rem;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication-status,
  .publication-year {
    padding-top: 0;
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Mobile landing page */

header {
  padding: 20px 4vw 14px;
  gap: 12px;
}

.name {
  font-size: 1.05rem;
  letter-spacing: 0.19em;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(9px, 3vw, 17px);
  width: 100%;
  white-space: nowrap;
}

nav a {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}

.hero {
  display: block;
  min-height: 100svh;
  padding: 125px 5vw 40px;
  text-align: center;
}

.hero-text {
  position: relative;
  padding-left: 0;
  z-index: 2;
}

h1 span {
  font-size: clamp(2.8rem, 13vw, 3.25rem);
}

h1 em {
  font-size: clamp(1.7rem, 7.8vw, 2.1rem);
  white-space: nowrap;
}

.keywords {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  line-height: 1.4;
  white-space: nowrap;
}

.keywords b {
  margin: 0 3px;
}

.explore {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  margin-top: 0;
}
}


/* Preprint landing page */

.paper-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(221, 169, 74, 0.19), transparent 27rem),
    linear-gradient(145deg, #fffdf8 0%, #f5f1e8 100%);
}

.paper-header {
  background: rgba(250, 247, 239, 0.94);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(10px);
}

.name-link {
  color: #101414;
  text-decoration: none;
}

.paper-main {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 190px 0 95px;
}

.paper-article {
  width: min(860px, 100%);
}

.paper-kicker {
  margin-bottom: 28px;
  color: #9c7430;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.paper-article h1 {
  max-width: 920px;
  color: #102f35;
  font-size: clamp(3rem, 6.3vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.paper-author {
  margin: 34px 0 0;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.paper-author a {
  color: #0b6f78;
  text-decoration: none;
}

.paper-lede {
  max-width: 750px;
  margin: 48px 0 0;
  color: #29484c;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  line-height: 1.55;
}

.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.paper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid #0b6f78;
  color: #0b6f78;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.paper-button.primary {
  background: #0b6f78;
  color: #fffdf8;
}

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

.paper-button.primary:hover {
  background: #084f55;
}

.paper-button.secondary:hover {
  background: rgba(11, 111, 120, 0.07);
}

.review-note {
  max-width: 740px;
  margin: 56px 0 92px;
  padding: 22px 25px;
  border-left: 3px solid #d5a84a;
  background: rgba(255, 255, 255, 0.54);
  color: #34494b;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

.review-note strong {
  display: block;
  color: #102f35;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-section {
  max-width: 780px;
  margin-top: 78px;
  scroll-margin-top: 135px;
}

.paper-section h2 {
  margin: 0 0 28px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(11, 111, 120, 0.35);
  color: #0b6f78;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-section p {
  margin: 0 0 25px;
  color: #243c3f;
  font-family: Georgia, serif;
  font-size: clamp(1.12rem, 1.55vw, 1.28rem);
  line-height: 1.82;
}

.paper-keywords p {
  color: #496164;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.055em;
  line-height: 1.8;
}

.citation-section {
  padding: 30px;
  border: 1px solid rgba(11, 111, 120, 0.24);
  background: rgba(255, 255, 255, 0.5);
}

.citation-section h2 {
  margin-bottom: 22px;
}

.citation-section p:last-child {
  margin-bottom: 0;
}

.paper-footer {
  padding: 42px 5vw;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: #102f35;
}

.paper-footer a {
  color: #e9c878;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.paper-footer a:hover {
  color: #ffffff;
}

@media (max-width: 800px) {
  .featured-publication {
    padding-left: 16px;
  }

  .paper-header {
    position: absolute;
  }

  .paper-main {
    width: min(88vw, 720px);
    padding: 145px 0 70px;
  }

  .paper-article h1 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
    line-height: 1.04;
  }

  .paper-author {
    margin-top: 24px;
    font-size: 1.16rem;
  }

  .paper-lede {
    margin-top: 38px;
    font-size: 1.35rem;
  }

  .paper-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .paper-button {
    width: 100%;
  }

  .review-note {
    margin: 45px 0 68px;
  }

  .paper-section {
    margin-top: 60px;
  }

  .paper-section p {
    font-size: 1.08rem;
    line-height: 1.72;
  }

  .citation-section {
    padding: 23px;
  }
}
