@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   THEME / GLOBALS
   ========================================================= */
:root{
  --bg: #07090c;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.085);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --stroke: rgba(255,255,255,0.10);
  --stroke-strong: rgba(255,255,255,0.16);
  --accent: #ff7a18;

  --radius: 18px;
  --radius-lg: 22px;

  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --shadow-soft: 0 12px 40px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* fixed glow background */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255, 122, 24, 0.14), transparent 55%),
    radial-gradient(700px 450px at 80% 20%, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--bg);
  transform: translateZ(0);
}

/* main container used on all pages */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 18px;
  width: 100%;
  flex: 1;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 18px;
  border-bottom: 1px solid var(--stroke);
}

.brand{
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav__center{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  gap: 14px;
  backdrop-filter: blur(10px);
}

.nav__link{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav__link.is-active{ color: var(--text); }

.nav__right{
  display: flex;
  justify-content: flex-end;
}

.btn{
  background: var(--accent);
  color: #111;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(255,122,24,0.25);
}
.btn:hover{ filter: brightness(1.03); }

.nav__center a,
.nav__center a:visited{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

/* =========================================================
   ICON PILL
   ========================================================= */
.icon-pill{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.icon-pill:hover{
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

/* =========================================================
   FOOTER (GLOBAL)
   ========================================================= */
.site-footer{
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.site-footer__left{ justify-self: start; }

.site-footer__center{
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}

.site-footer__location{
  color: var(--muted);
}

.site-footer__right{
  justify-self: end;
  display: flex;
  gap: 10px;
}

@media (max-width: 900px){
  .site-footer__inner{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .site-footer__center,
  .site-footer__right{
    justify-self: start;
    align-items: flex-start;
  }
}

/* =========================================================
   HOME (paragraph/editorial layout)
   ========================================================= */
   .page-home .container{
    max-width: 1320px;
    min-height: calc(100vh - 78px);
    padding: 42px 36px 18px;
    display: flex;
    justify-content: center;
  }
  
  .home-hero{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .home-hero__inner{
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
  }
  
  .home-layout{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 72px;
    align-items: start;
  }
  
  .home-text{
    min-width: 0;
    max-width: 760px;
  }
  
  .home-hero__title{
    font-size: clamp(28px, 3.2vw, 54px);
    line-height: 1.08;
    margin: 0 0 22px;
    font-weight: 700;
    letter-spacing: -0.8px;
  }
  
  .home-hero__intro{
    max-width: 100%;
    display: grid;
    gap: 20px;
  }
  
  .home-hero__intro p{
    margin: 0;
    font-size: 16px;
    line-height: 1.78;
    color: rgba(255,255,255,0.78);
    font-weight: 400;
  }
  
  .home-hero__intro strong{
    color: rgba(255,255,255,0.92);
    font-weight: 600;
  }
  
  .home-hero__intro a{
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
  }
  
  .home-hero__intro a:hover{
    text-decoration: underline;
  }
  
  .home-photo{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 120px;
  }
  
  .home-photo img{
    width: 100%;
    max-width: 340px;
    height: 430px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 20px 55px rgba(0,0,0,0.38);
  }
  
  .home-bottom{
    width: 100%;
    max-width: 1180px;
    margin: 20px auto 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
  
    color: var(--muted);
    font-size: 14px;
  }
  
  .home-bottom__left{ justify-self: start; }
  .home-bottom__center{ justify-self: center; opacity: 0.9; }
  .home-bottom__right{
    justify-self: end;
    display: flex;
    gap: 10px;
  }
  
  @media (max-width: 980px){
    .home-layout{
      grid-template-columns: 1fr;
      gap: 32px;
    }
  
    .home-text{
      max-width: 100%;
    }
  
    .home-photo{
      position: relative;
      top: auto;
      justify-content: flex-start;
    }
  
    .home-photo img{
      max-width: 260px;
      height: 320px;
    }
  }
  
  @media (max-width: 900px){
    .page-home .container{
      padding: 30px 20px 24px;
    }
  
    .home-hero{
      gap: 18px;
    }
  
    .home-hero__title{
      font-size: clamp(28px, 7vw, 40px);
      margin-bottom: 18px;
    }
  
    .home-hero__intro{
      gap: 16px;
    }
  
    .home-hero__intro p{
      font-size: 16px;
      line-height: 1.72;
    }
  
    .home-bottom{
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 20px;
      padding: 18px 0;
    }
  
    .home-bottom__center,
    .home-bottom__right{
      justify-self: start;
    }
  }
/* =========================================================
   HEADERS
   ========================================================= */
.section{ padding: 22px 0; }

.page-title{
  font-size: 54px;
  letter-spacing: -0.8px;
  margin: 22px 0 18px;
  font-weight: 900;
}

.page-title--center{
  text-align: center;
  margin-top: 36px;
}

/* =========================================================
   FLIP CARD (GENERIC)
   ========================================================= */
.flip-card{
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}

.flip-card:focus-visible .flip-face{
  border-color: rgba(255, 122, 24, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.18);
}

.flip-card__inner{
  position: relative;
  width: 100%;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(.2,.8,.2,1);
}

.flip-card.is-flipped .flip-card__inner{
  transform: rotateY(180deg);
}

.flip-face{
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.flip-face--front{ transform: rotateY(0deg); }
.flip-face--back{ transform: rotateY(180deg); }

.flip-hint{
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  padding-top: 10px;
}

.flip-hint--back{
  padding-top: 0;
  padding-bottom: 6px;
}

/* =========================================================
   EXPERIENCE
   ========================================================= */
.xp-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

@media (max-width: 900px){
  .xp-grid{ grid-template-columns: 1fr; }
}

.xp-front{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 4px;
}

.xp-logo{
  width: 78px;
  height: 78px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  line-height: 1.05;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
  font-size: 15px;
}

.xp-role{ font-weight: 900; font-size: 22px; margin: 0; }
.xp-org{ font-weight: 750; color: rgba(255,255,255,0.80); font-size: 16px; margin: 0; }
.xp-loc, .xp-dates{ color: rgba(255,255,255,0.68); font-size: 14.5px; margin: 0; }

.xp-back{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xp-back__top{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.xp-back__role{ font-weight: 900; font-size: 18px; margin-bottom: 4px; }
.xp-back__sub{ color: rgba(255,255,255,0.65); font-size: 14.5px; }

.xp-back__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.84);
  font-size: 14.5px;
  line-height: 1.75;
  overflow: auto;
  max-height: 200px;
  padding-bottom: 14px;
}

.xp-logo--img{ padding: 10px; }
.xp-logo--img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.95;
}

/* =========================================================
   EDUCATION
   ========================================================= */
.edu-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

@media (max-width: 980px){
  .edu-grid{ grid-template-columns: 1fr; }
}

.edu-front{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 4px;
}

.edu-logo{
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
  font-size: 15px;
}

.edu-school{ font-weight: 900; font-size: 20px; margin: 0; }
.edu-loc{ color: rgba(255,255,255,0.70); font-size: 14.5px; margin: 0; }
.edu-degree{ font-weight: 750; color: rgba(255,255,255,0.86); font-size: 15.5px; margin: 2px 0 0; }

.edu-meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.edu-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.80);
  font-size: 13.5px;
}

.edu-back{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  min-height: 0;
}

.edu-back__top{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.edu-back__title{
  font-weight: 900;
  font-size: 17.5px;
  margin: 0 0 2px;
}

.edu-back__subtitle{
  color: rgba(255,255,255,0.66);
  font-size: 14px;
  margin: 0;
}

.edu-back__scroll{
  flex: 1;
  overflow: auto;
  padding-right: 6px;
  padding-bottom: 12px;
  max-height: 185px;
}

.edu-block{
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px 12px;
  margin-top: 10px;
  min-height: 0;
}

.edu-block__label{
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
}

.edu-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  line-height: 1.75;
  max-height: 170px;
  overflow: auto;
  padding-bottom: 10px;
}

.edu-logo--img{ padding: 10px; }
.edu-logo--img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}

/* =========================================================
   CERTIFICATIONS
   ========================================================= */
.certs{ margin-top: 34px; }

.cert-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

@media (max-width: 980px){
  .cert-grid{ grid-template-columns: 1fr; }
}

.cert-card .flip-card__inner{ min-height: 280px; }

.cert-front{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.cert-logo{
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 6px;
}

.cert-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.cert-sub{
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.74);
}

.cert-link{
  margin-top: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.cert-link:hover{ border-bottom-color: rgba(255,255,255,0.35); }

.cert-back{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-back__top{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cert-back__title{ font-weight: 900; font-size: 16.5px; }
.cert-back__sub{ color: rgba(255,255,255,0.62); font-size: 13.5px; }

.cert-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 13.5px;
  line-height: 1.7;
  max-height: 165px;
  overflow: auto;
  padding-bottom: 12px;
}

.cert-logo--img{ padding: 10px; }
.cert-logo--img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}

/* =========================================================
   PUBLICATIONS + PROJECTS (shared helpers)
   ========================================================= */
.pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.80);
  font-size: 13.5px;
  font-weight: 800;
}

.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip{
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 800;
}

.link-row{
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mini-link{
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-weight: 800;
}
.mini-link:hover{ border-bottom-color: rgba(255,255,255,0.35); }

/* =========================================================
   PUBLICATIONS
   ========================================================= */
.pub-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}
@media (max-width: 980px){
  .pub-grid{ grid-template-columns: 1fr; }
}

.pub-card .flip-card__inner{
  min-height: 360px;
}

.pub-front{
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.pub-front .flip-hint{
  margin-top: auto;
}

.pub-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pub-badge{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 12.5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.pub-pills{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pub-pill{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
  font-weight: 800;
}

.pub-title{
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.2;
  text-align: center;
}

.pub-authors{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
}

.pub-author--you{
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  text-decoration: none;
}

.pub-venue{
  margin: 0 0 6px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-back{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-back__top{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pub-back__title{
  font-weight: 900;
  font-size: 16.5px;
  margin: 0;
}

.pub-back__sub{
  font-size: 13.5px;
  color: rgba(255,255,255,0.68);
  margin-top: 2px;
}

.pub-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-chip{
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.pub-links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pub-link{
  font-weight: 900;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 2px;
}
.pub-link:hover{
  border-bottom-color: rgba(255,255,255,0.35);
}

/* =========================================================
   PROJECTS
   ========================================================= */
.proj-section{ margin-top: 60px; }

.proj-heading{
  margin: 70px 0 26px;
  font-size: 26px;
  font-weight: 900;
  color: rgba(255,255,255,0.90);
  text-align: center;
  letter-spacing: -0.2px;
}

.proj-heading::after{
  content:"";
  display:block;
  width: 70px;
  height: 2px;
  margin: 14px auto 0;
  background: rgba(255, 140, 0, 0.55);
  border-radius: 999px;
}

.proj-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(520px, 1fr));
  gap: 30px;
  align-items: start;
}

@media (max-width: 1150px){
  .proj-grid{ grid-template-columns: 1fr; }
}

.proj-card .flip-card__inner{
  min-height: 420px;
}

.proj-front{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-front .flip-hint{
  margin-top: auto;
}

.proj-image{
  height: 170px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  font-weight: 900;
  letter-spacing: 0.6px;
}

.proj-badge{
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  align-self: center;
}

.proj-title{
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin-top: 2px;
}

.proj-inst{
  text-align: center;
  font-size: 15px;
  opacity: 0.9;
}

.proj-meta{
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.proj-back{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  min-height: 0;
}

.proj-back__top{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.proj-back__title{
  font-weight: 900;
  font-size: 16.5px;
}

.proj-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  line-height: 1.75;
  max-height: 190px;
  overflow: auto;
  padding-bottom: 10px;
}

/* =========================================================
   MEDIA PAGE
   ========================================================= */
.media-section{ margin-top: 48px; }
.media-section__head{ margin: 0 auto 18px; max-width: 1100px; text-align: left; }
.media-section__title{ font-size: 28px; margin: 0 0 6px; }
.media-section__subtitle{ margin: 0; max-width: 780px; }

.media-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1000px){
  .media-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .media-grid{ grid-template-columns: 1fr; }
}

.media-card{
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.media-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,140,0,0.35);
}

.media-card--link{ text-decoration: none; color: inherit; cursor: pointer; }

.media-thumb{
  width: 100%;
  height: 140px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.10);
  background-color: rgba(255,255,255,0.03);
}

.media-icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  text-transform: lowercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.media-body{ display: flex; flex-direction: column; gap: 6px; }
.media-title{ font-size: 18px; font-weight: 700; line-height: 1.2; }
.media-meta{ font-size: 13px; }
.media-hint{ font-size: 12px; opacity: 0.7; margin-top: 6px; }

.media-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.media-modal.is-open{ display: block; }

.media-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}

.media-modal__content{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 92vw);
  max-height: 88vh;
  padding: 16px;
  border-radius: 22px;
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 70px rgba(0,0,0,0.55);
  overflow: hidden;
}

.media-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}

.media-modal__imgWrap{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.media-modal__imgWrap img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.media-modal__meta{ margin-top: 12px; }
.media-modal__title{ font-size: 18px; font-weight: 800; }
.media-modal__caption{ margin-top: 6px; font-size: 13px; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: start;
}

.about-heading{
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 16px 0;
}

.about-copy p{
  margin: 0 0 16px 0;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.about-copy strong{
  color: rgba(255, 255, 255, 0.92);
}

.about-signoff{
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.85);
}

.about-card{
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  position: sticky;
  top: 110px;
}

.about-photo{ padding: 14px; }

.photo-placeholder{
  height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.about-profile-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.about-meta{
  padding: 10px 18px 18px 18px;
}

.meta-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.meta-link{
  color: rgba(255, 255, 255, 0.80);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.meta-link:hover{
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-card{ position: relative; top: auto; }
  .about-heading{ font-size: 44px; }
  .photo-placeholder,
  .about-img{ height: 320px; }
}

.about-map{
  margin-top: 16px;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  max-width: 260px;
}

.about-map__label{
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

.about-map__link{
  display: inline-flex;
  text-decoration: none;
}

.about-map__img{
  width: 220px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.about-map__hint{
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 980px){
  .about-map{ max-width: 100%; }
  .about-map__img{ width: 200px; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact .page-title{ margin-top: 30px; }

.contact-shell{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .contact-shell{ grid-template-columns: 1fr; }
}

.contact-card{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.field{ display: flex; flex-direction: column; gap: 8px; }
.field--full{ grid-column: 1 / -1; }

.field label{
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
}

.field label span{
  color: rgba(255, 122, 24, 0.90);
  font-weight: 900;
}

.field input,
.field textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.90);
  padding: 12px 12px;
  outline: none;
}

.field textarea{ resize: vertical; }

.field input:hover,
.field textarea:hover{
  border-color: rgba(255,255,255,0.18);
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(255, 122, 24, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.16);
}

.contact-submit{
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  background: var(--accent);
  color: #111;
  box-shadow: 0 10px 26px rgba(255,122,24,0.25);
  transition: transform .15s ease, filter .15s ease;
}

.contact-submit:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.contact-note{
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}

.reach{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.reach-title{
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.reach-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.reach-card{
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 14px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.reach-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,140,0,0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.reach-badge{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.reach-name{
  font-weight: 900;
  font-size: 16px;
}

.reach-sub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  line-height: 1.55;
}

.reach-cta{
  margin-top: 8px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  display: inline-block;
  padding-bottom: 2px;
}

/* =========================================================
   RESPONSIVE (general)
   ========================================================= */
@media (max-width: 900px){
  .nav{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .nav__right{ justify-content: flex-start; }
  .page-title{ font-size: 42px; }
}

.about-map img {
  width: 320px;
  max-width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.about-map img:hover {
  transform: scale(1.03);
}