/*
  QUICK EDITS
  - Colours: change the variables below.
  - Font sizes: search for "font-size".
  - Portrait: replace images/profile.jpg with your own photo.
*/
:root {
  --page: #f8f6f4;
  --text: #090909;
  --muted-text: #22201f;
  --button: #a77364;
  --button-hover: #8d5d50;
  --play: #464241;
  --line: #342f2d;
  --content-width: 1510px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border: 4px solid var(--line);
}

.site-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 96px 34px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav a {
  color: var(--text);
  font-size: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav a:hover { color: var(--button); }

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(460px, 1fr);
  align-items: center;
  gap: clamp(58px, 8vw, 145px);
  max-width: var(--content-width);
  margin: 116px auto 80px;
  padding: 0 34px;
}

.portrait-wrap {
  height: 670px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: transparent; /* removes the rectangle */
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps the full transparent PNG visible */
  object-position: center bottom;
  display: block;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: clamp(48px, 5.1vw, 92px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(82px, 9.4vw, 170px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.bio {
  max-width: 810px;
  margin: 50px 0 0;
  font-size: clamp(17px, 1.55vw, 25px);
  font-weight: 500;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 37px;
  margin-top: 42px;
}

.portfolio-button {
  padding: 12px 43px 14px;
  border-radius: 999px;
  background: var(--button);
  color: white;
  font-size: 35px;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.portfolio-button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

.play-button {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--play);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #fff;
}

.corner-line {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: min(28vw, 420px);
  min-width: 260px;
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 74px 34px;
  border-top: 1px solid #d4ceca;
}
.section-label {
  margin: 0 0 18px;
  color: #a77364;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-content {
  max-width: 850px;
}

.section-content h2 {
  margin: 0 0 28px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.95;
}

.section-content > p {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 35px;
}

.info-card {
  min-height: 220px;
  padding: 30px;
  border-radius: 16px;
  background: #eee8e4;
}

.card-date {
  color: #a77364;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.info-card h3 {
  margin-top: 36px;
  font-size: 24px;
}

.info-card p {
  line-height: 1.5;
}

.email-link {
  display: inline-block;
  margin-top: 25px;
  color: black;
  font-size: 30px;
  font-weight: bold;
  text-decoration-color: #a77364;
  text-underline-offset: 6px;
}

@media (max-width: 850px) {
  .site-header { padding-top: 34px; }
  .nav { justify-content: center; flex-wrap: wrap; }
  .nav a { font-size: 18px; }
  .hero { grid-template-columns: 1fr; margin-top: 64px; }
  .portrait-wrap { max-width: 500px; height: min(105vw, 600px); }
  .hero-copy { padding-bottom: 100px; }
}

@media (max-width: 480px) {
  .page-shell { border-width: 2px; }
  .site-header, .hero { padding-left: 20px; padding-right: 20px; }
  .hero { gap: 38px; }
  .hero-actions { gap: 22px; }
  .portfolio-button { padding: 13px 29px; font-size: 27px; }
  .play-button { width: 58px; height: 58px; }
  .play-button span { border-top-width: 12px; border-bottom-width: 12px; border-left-width: 18px; }
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 560px);
  align-items: center;
  gap: clamp(50px, 8vw, 140px);
}

.about-text {
  max-width: 620px;
}

.about-text h2 {
  margin: 0 0 35px;
}

.about-text p {
  margin: 0 0 20px;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.6;
}

.about-photo-wrap {
  height: 670px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.about-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;

  /* Blends the white outline/background into your cream website background */
  mix-blend-mode: multiply;
}
.about-photo-wrap {
  position: relative;
  isolation: isolate;
}

/* Keeps your portrait above the sparkle decoration */
.about-photo {
  position: relative;
  z-index: 2;
}

/* Decorative star area */
.sparkles {
  position: absolute;
  inset: -25px;
  z-index: 1;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-family: Georgia, serif;
  line-height: 1;
  color: #d6ac5c;
  opacity: 0.85;
  filter: drop-shadow(0 3px 5px rgba(91, 65, 40, 0.12));
}

.sparkle-1 {
  top: 6%;
  left: 8%;
  font-size: 42px;
  color: #d4a956;
}

.sparkle-2 {
  top: 17%;
  right: 5%;
  font-size: 26px;
  color: #bd8070;
}

.sparkle-3 {
  top: 38%;
  left: -2%;
  font-size: 22px;
  color: #b9b794;
}

.sparkle-4 {
  top: 54%;
  right: 0;
  font-size: 38px;
  color: #d4a956;
}

.sparkle-5 {
  bottom: 23%;
  left: 4%;
  font-size: 28px;
  color: #bd8070;
}

.sparkle-6 {
  bottom: 8%;
  right: 13%;
  font-size: 20px;
  color: #b9b794;
}

.sparkle-7 {
  bottom: 4%;
  left: 35%;
  font-size: 34px;
  color: #d4a956;
}
.role-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
}

.role-track {
  display: flex;
  gap: 26px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 12px 4px 28px;
  scrollbar-width: none;
  align-items: flex-start;
}

.role-track::-webkit-scrollbar {
  display: none;
}

.role-card {
  flex: 0 0 min(360px, 82vw);
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 22px; /* soft rectangular edges */
  background: #eee8e4;
  box-shadow: 0 8px 24px rgba(45, 35, 31, 0.08);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

/* Gentle pop when the mouse is over a card */
.role-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 36px rgba(45, 35, 31, 0.16);
}

.role-card img {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 350ms ease;
}

/* Image zooms very slightly on hover */
.role-card:hover img {
  transform: scale(1.06);
}

.role-card-content {
  padding: 25px;
}

.role-card h3 {
  margin: 12px 0 6px;
  font-size: 24px;
  line-height: 1.15;
}

.organisation {
  margin: 0;
  color: #8d5d50;
  font-size: 14px;
  font-weight: 700;
}

.role-card-content > p:not(.card-date):not(.organisation) {
  margin: 18px 0;
  line-height: 1.55;
}

.role-card a {
  color: #1f1b19;
  font-weight: 700;
  text-decoration-color: #a77364;
  text-underline-offset: 5px;
}

/* Left and right navigation arrows */
.carousel-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border: none;
  border-radius: 14px; /* soft rectangular arrow button */
  background: #a77364;
  color: white;
  cursor: pointer;
  font-size: 28px;
  transition: transform 180ms ease, background 180ms ease;
}

.carousel-arrow:hover {
  background: #8d5d50;
  transform: translateY(-3px);
}

@media (max-width: 700px) {
  .carousel-arrow {
    display: none;
  }

  .role-card {
    flex-basis: 86vw;
  }
}
/* Automatically changing event photos */
.role-slideshow {
  position: relative;
  height: 225px;
  overflow: hidden;
}

.role-slideshow .role-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.role-slideshow .role-slide.active {
  opacity: 1;
}

/* Hidden full description */
.role-details {
  display: none;
  margin-top: 16px;
}

.role-details p {
  margin: 0 0 14px;
  line-height: 1.55;
}

/* Shows the complete description after clicking Read more */
.role-card.expanded .role-details {
  display: block;
}

.read-more-button {
  padding: 0;
  border: none;
  background: none;
  color: #1f1b19;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #a77364;
  text-underline-offset: 5px;
}
.project-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 34px 130px;
}

.project-page h1 {
  margin: 15px 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(70px, 10vw, 150px);
}

.back-link {
  display: inline-block;
  margin-bottom: 70px;
  color: #1f1b19;
  font-weight: 700;
  text-decoration-color: #a77364;
  text-underline-offset: 5px;
}

.project-intro {
  max-width: 780px;
  font-size: clamp(21px, 2.4vw, 32px);
  line-height: 1.45;
}

.project-hero-image {
  width: 100%;
  max-height: 600px;
  margin: 55px 0;
  border-radius: 22px;
  object-fit: cover;
}

.project-detail-section {
  max-width: 850px;
  margin: 70px 0;
}

.project-detail-section h2 {
  margin-bottom: 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 5vw, 68px);
}

.project-detail-section p,
.project-detail-section li {
  font-size: 18px;
  line-height: 1.7;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.results-grid div {
  padding: 26px;
  border-radius: 18px;
  background: #eee8e4;
}

.results-grid strong {
  display: block;
  color: #a77364;
  font-size: 32px;
}

.results-grid span {
  display: block;
  margin-top: 8px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-gallery img {
  width: 100%;
  height: 230px;
  border-radius: 16px;
  object-fit: cover;
}

@media (max-width: 700px) {
  .results-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery img {
    height: auto;
  }
}
/* Removes the large gap before Projects */
#volunteering {
  min-height: 0;
  padding-bottom: 35px;
}

.role-carousel {
  margin-bottom: 0;
}

.role-track {
  height: auto !important;
  min-height: 0 !important;
  align-items: flex-start;
}

.role-card {
  height: auto !important;
  min-height: 0 !important;
  align-self: flex-start;
}

#projects {
  margin-top: 0;
  padding-top: 55px;
}
/* Keep all volunteering cards in one horizontal row */
#roleTrack {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  overflow-x: auto;
}

#roleTrack .role-card {
  flex: 0 0 360px !important;
}
#roleTrack .role-card {
  flex: 0 0 360px !important;
}
.about-layout {
  display: block;
}

.about-text {
  max-width: 800px;
}
/* Better organised text-only About section */
.about-text {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  column-gap: 90px;
  max-width: none;
}

.about-text h2 {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
}

.about-text p {
  grid-column: 2;
  max-width: 700px;
  margin: 0 0 22px;
}

/* Mobile layout */
@media (max-width: 850px) {
  .about-text {
    display: block;
  }

  .about-text h2 {
    margin-bottom: 30px;
  }
}
.project-slideshow {
  position: relative;
  height: min(58vw, 600px);
  min-height: 300px;
  margin: 55px 0;
  overflow: hidden;
  border-radius: 22px;
  background: #eee8e4;
}

.project-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.project-slide.active {
  opacity: 1;
}

.tech-list {
  padding-left: 22px;
}

.tech-list li {
  margin-bottom: 14px;
}

.github-button {
  display: inline-block;
  padding: 15px 23px;
  border-radius: 10px;
  background: #a77364;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.github-button:hover {
  background: #8d5d50;
}

.paper-viewer {
  width: 100%;
  height: 700px;
  border: 1px solid #d4ceca;
  border-radius: 16px;
  background: white;
}

.team-photo {
  display: block;
  width: 100%;
  max-width: 760px;
  border-radius: 18px;
  object-fit: cover;
}

@media (max-width: 700px) {
  .paper-viewer {
    height: 500px;
  }
}
.paper-viewer {
  display: block;
  width: 100%;
  height: 900px;
  margin: 0;
  border: 1px solid #d4ceca;
  border-radius: 16px;
  background: white;
}
.project-note {
  text-align: center;
  padding: 55px 30px;
  margin-bottom: 40px;
  border-radius: 22px;
  background: #eee8e4;
}

.project-note .section-label {
  margin-bottom: 18px;
}

.project-note blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.2;
}

.project-note strong {
  color: #a77364;
}
.project-note {
  max-width: 620px;
  padding: 26px 32px;
  margin: 40px auto 55px;
  text-align: center;
  border-radius: 18px;
  background: #eee8e4;
}

.project-note .section-label {
  margin: 0 0 10px;
  font-size: 13px;
}

.project-note blockquote {
  max-width: 540px;
  margin: 0 auto;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
}

.project-note strong {
  color: #a77364;
}
.contact-links {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-top: 34px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid #ded6d2;
  border-radius: 14px;
  color: var(--text);
  background: #eee8e4;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-link span {
  color: var(--button);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-link:hover {
  background: #e4d9d4;
  transform: translateX(5px);
}

@media (max-width: 600px) {
  .contact-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    font-size: 16px;
  }
}