/* =========================
   Base / Theme
========================= */
:root{
  --bg: #111111;
  --text: #eeeeee;
  --muted: rgba(238,238,238,0.75);
  --green: #006400;

  --container: 1400px;
  --pad-x: 48px;

  --shadow: 0 12px 30px rgba(0,0,0,0.55);
}

/* Typography tuning (match mockup: not bold) */
h1, h2, h3,
.brand__name,
.section-title{
  font-weight: 400; /* normal, not bold */
}

.brand__role,
.nav-link,
.hint{
  font-weight: 400;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif; /* BODY/UI font */
}

/* Headings use Georgia (per your rule) */
h1, h2, h3{
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
}

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

[hidden]{
  display: none !important;
}

/* Layout container */
.container{
  width: min(var(--container), calc(100% - (var(--pad-x) * 2)));
  margin: 0 auto;
}

/* Better text rendering */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection highlight (subtle green) */
::selection{
  background: rgba(0,100,0,0.35);
  color: var(--text);
}

img,
video,
.card-media,
.suggested-card__media,
.modal-hero{
  -webkit-user-drag: none;
  user-select: none;
}

.welcome-pending body,
body.welcome-open{
  overflow: hidden;
}

.welcome-overlay{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% -20%, rgba(0,100,0,0.18), transparent 34%),
    linear-gradient(180deg, #111111 0%, #080808 100%);
  opacity: 1;
  transition: opacity 520ms ease, filter 520ms ease;
}

.welcome-overlay[hidden]{
  display: none !important;
}

.welcome-overlay__inner{
  display: grid;
  place-items: center;
  gap: 26px;
  transform: translateY(0) scale(1);
  transition: transform 680ms cubic-bezier(.22,1,.36,1), opacity 420ms ease;
}

.welcome-overlay__logo{
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,0.55));
}

.welcome-overlay__button{
  min-width: min(380px, calc(100vw - 48px));
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(0,100,0,0.46);
  border-radius: 999px;
  background: rgba(0,100,0,0.76);
  color: rgba(238,238,238,0.92);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  transition: background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.welcome-overlay__button:hover{
  border-color: rgba(0,100,0,0.62);
  background: rgba(0,100,0,0.88);
  transform: translateY(-1px);
}

.welcome-overlay__button:focus-visible{
  outline: 2px solid rgba(0,100,0,0.68);
  outline-offset: 3px;
}

.welcome-overlay.is-leaving{
  opacity: 0;
  filter: blur(6px);
}

.welcome-overlay.is-leaving .welcome-overlay__inner{
  opacity: 0;
  transform: translateY(-18px) scale(1.035);
}
/* =========================
   Header / Nav (matches mockup)
========================= */
.site-header{
  padding: 28px 0 18px;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
}

.brand__mark{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  letter-spacing: 1px;
  color: var(--green);
  line-height: 1;
}

.brand__title{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand__name{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: var(--green);
}

.brand__pipe{
  color: rgba(238,238,238,0.55);
  font-size: 20px;
  font-weight: 400;
}

.brand__role{
  font-family: Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(238,238,238,0.92);
  letter-spacing: 0.2px;
}

.brand__logo{
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

/* Nav */
.site-nav{
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link{
  font-size: 18px;
  color: var(--text);
  opacity: 0.95;
  padding: 10px 2px;
  position: relative;
}

.nav-link:hover{
  opacity: 1;
  color: var(--text);
}

.nav-link.is-active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.nav-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* Active nav underline support */
.nav-link.is-active::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

body.page-work .site-nav a[href*="index"],
body.page-about .site-nav a[href*="about"],
body.page-contact .site-nav a[href*="contact"]{
  opacity: 1;
}

body.page-work .site-nav a[href*="index"]::after,
body.page-about .site-nav a[href*="about"]::after,
body.page-contact .site-nav a[href*="contact"]::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.nav-icon:hover{
  background: rgba(255,255,255,0.06);
}

html, body{ cursor: default; }
a, button, .card, .carousel-btn{ cursor: pointer; }
input, textarea, select{ cursor: text; }

/* =========================
   Page placeholders (temporary)
========================= */
.page{
  padding: 28px 0 80px;
}

.section-title{
  margin-top: 34px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: rgba(238,238,238,0.95);
}

.hint{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* =========================
   Content Rows / Carousel (Films)
========================= */
.content-row{
  margin-top: 22px;
}

.row-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.carousel{
  position: relative;
}

.carousel-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 360px; /* card width (desktop-first) */
  gap: 26px;

  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px var(--pad-x); /* space for arrows */
  margin: 0 calc(var(--pad-x) * -1); /* let track reach page edges */
  scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar{ display: none; }

.card{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: none;
  user-select: none;
}

/* 16:9 media area */
.card-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a4dbf; /* your blue placeholder */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 220ms ease;
}

/* Hover reveal overlay */
.card-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.05));
  opacity: 0;
  transition: opacity 180ms ease;
}

/* Thumbnail lazy-load placeholder */
.card-media {
  background: #1a1a1a; /* fallback while loading */
  background-size: cover;
  background-position: center;
}

/* Optional: subtle fade-in once loaded */
.card-media.is-loaded {
  animation: thumbFade 220ms ease-out;
}

@keyframes thumbFade {
  from { opacity: 0.0; }
  to   { opacity: 1.0; }
}

.card-title{
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--text);
}

.card-type{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(238,238,238,0.78);
}

.card:hover .card-overlay,
.card:focus-visible .card-overlay{
  opacity: 1;
}

.card:hover .card-media,
.card:focus-visible .card-media{
  transform: scale(1.03);
}

/* Keyboard focus (clean cinematic glow) */
.card:focus-visible{
  box-shadow: 0 0 0 2px rgba(0,100,0,0.55), var(--shadow);
}

/* Arrow buttons (Netflix-ish) */
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 88px;
  border: 0;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(0,0,0,0.45);
  opacity: 0.88;
  z-index: 10;
  pointer-events: auto;
}

.carousel-btn span{
  font-size: 34px;
  line-height: 1;
  opacity: 0.95;
}

.carousel-btn:hover{
  opacity: 1;
  background: rgba(0,0,0,0.68);
}

.carousel-btn:focus-visible{
  outline: 2px solid rgba(0,100,0,0.7);
  outline-offset: 2px;
}

.carousel-btn.left{ left: 8px; }
.carousel-btn.right{ right: 8px; }

/* =========================
   Modal (streaming-style)
========================= */
body.modal-open{
  overflow: hidden;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-hero{
  flex: 0 0 auto;
}
.modal-body{
  flex: 1 1 auto;
}
.modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

@media (min-width: 821px){
  .modal-backdrop{
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.modal-dialog{
  position: relative;
  width: min(980px, calc(100% - 96px));
  margin: 70px auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 34px 90px rgba(0,0,0,0.74), 0 0 0 1px rgba(255,255,255,0.055);

  transform: translateY(16px) scale(0.985);
  transition: transform 240ms ease;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

/* Scroll the whole modal content (hero + body) together */
.modal-dialog.modal-scroll{
  max-height: calc(100vh - 120px);
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.modal.is-open .modal-dialog{
  transform: translateY(0) scale(1);
}

.modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  color: var(--text);
  display: grid;
  place-items: center;
  z-index: 2;
}

.modal-close span{
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.modal-close:hover{
  background: rgba(0,0,0,0.72);
}

.modal-close:focus-visible{
  outline: 2px solid rgba(0,100,0,0.75);
  outline-offset: 2px;
}

/* Hero area */
/* Modal hero container: flexible (no forced crop) */
#modal-hero{
  position: relative;
  width: 100%;
  background: rgba(0,0,0,0.35);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
}

#modal-hero.is-loading{
  min-height: clamp(220px, 48vw, 520px);
}

#modal-hero.is-loading::before{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0.035) 0%,
    rgba(255,255,255,0.085) 42%,
    rgba(255,255,255,0.035) 78%
  );
  background-size: 220% 100%;
  animation: mediaLoadSweep 1100ms ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes mediaLoadSweep{
  from{ background-position: 120% 0; }
  to{ background-position: -120% 0; }
}

/* Images: keep original aspect ratio (no crop) */
#modal-hero img{
  width: 100%;
  height: auto;
  max-height: 72vh;      /* prevents massive tall images */
  object-fit: contain;   /* key: no cropping */
  border-radius: 12px;
  display: block;
  opacity: 1;
  transition: opacity 220ms ease;
}

/* Local MP4 heroes: keep original aspect ratio (no crop) */
#modal-hero video{
  width: 100%;
  height: auto;
  max-height: 72vh;      /* matches your portrait-photo tweak */
  object-fit: contain;   /* key: prevents cropping */
  border-radius: 12px;
  display: block;
  background: rgba(0,0,0,0.25);
  opacity: 1;
  transition: opacity 220ms ease;
}

#modal-hero.is-loading img:not(.is-loaded),
#modal-hero.is-loading video:not(.is-loaded){
  opacity: 0.18;
}

.hero-gallery{
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  outline: none;
  touch-action: pan-y;
}

#modal-hero .hero-gallery img{
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  z-index: 2;
}

.hero-gallery-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 66px;
  border: 0;
  border-radius: 14px;
  background: rgba(0,0,0,0.56);
  color: var(--text);
  display: grid;
  place-items: center;
  z-index: 3;
}

.hero-gallery-btn.left{ left: 16px; }
.hero-gallery-btn.right{ right: 16px; }

.hero-gallery-btn span{
  font-size: 32px;
  line-height: 1;
}

.hero-gallery-btn:hover{
  background: rgba(0,0,0,0.76);
}

.hero-gallery-btn:focus-visible,
.hero-gallery-dot:focus-visible{
  outline: 2px solid rgba(0,100,0,0.78);
  outline-offset: 2px;
}

.hero-gallery-count{
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: rgba(238,238,238,0.9);
  font-size: 12px;
  letter-spacing: 0.2px;
  z-index: 3;
}

.hero-gallery-dots{
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero-gallery-dot{
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(238,238,238,0.42);
}

.hero-gallery-dot.is-active{
  background: var(--text);
  transform: scale(1.28);
}

/* Video/iframe wrapper: stays 16:9 */
.hero-frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
}

.hero-frame iframe,
.hero-frame video{
  width: 100%;
  height: 100%;
  display: block;
}

.modal-hero img,
.modal-hero video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body{
  padding: 22px 26px 26px;
  -webkit-overflow-scrolling: touch;
}

.modal-title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.2px;
  margin: 0;
}

.modal-meta{
  margin-top: 8px;
  color: rgba(238,238,238,0.75);
  font-size: 14px;
}

.modal-desc{
  margin: 16px 0 0;
  color: rgba(238,238,238,0.92);
  line-height: 1.55;
  font-size: 15.5px;
}

.modal-subtitle{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 22px 0 10px;
  font-size: 18px;
  color: rgba(238,238,238,0.95);
}

.credits-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(238,238,238,0.82);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Role chips (bubbles) */
.role-chips{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-chips li{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,100,0,0.16); /* accent green tint */
  border: 1px solid rgba(0,100,0,0.45);
  color: #eeeeee;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.modal-video{
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  background: #000;
}

/* Small extra polish */
.modal-credits{
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 6px;
  margin-top: 18px;
}

/* =========================
   About page (CV-style)
========================= */
.page-head{
  margin-top: 10px;
  margin-bottom: 28px;
}

.page-title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.2px;
}

.page-subtitle{
  margin: 10px 0 0;
  color: rgba(238,238,238,0.78);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 72ch;
}

.about-grid{
  display: grid;
  grid-template-columns: 360px 1fr; /* desktop-first */
  gap: 40px;
  align-items: start;
}

.about-side,
.about-main{
  display: grid;
  gap: 22px; /* breathing room between panels */
}

.panel{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.panel-title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 12px;
  position: relative;
}

.panel-title::after{
  content: "";
  display: block;
  height: 2px;
  width: 64px;
  margin-top: 10px;
  background: rgba(0,100,0,0.7);
  border-radius: 2px;
}

.body{
  margin: 0;
  color: rgba(238,238,238,0.88);
  line-height: 1.65;
  font-size: 15.5px;
}

.facts{
  margin: 0;
}

.fact{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fact:last-child{ border-bottom: 0; }

.fact dt{
  color: rgba(238,238,238,0.62);
  font-size: 13px;
}
.fact dd{
  margin: 0;
  color: rgba(238,238,238,0.9);
  font-size: 14px;
}

.side-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(0,100,0,0.78);
  color: var(--text);
  border: 1px solid rgba(0,100,0,0.35);
  font-size: 14px;
}

.btn:hover{
  background: rgba(0,100,0,0.92);
}

.btn-ghost{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.06);
}

.small-note{
  margin: 10px 0 0;
  color: rgba(238,238,238,0.6);
  font-size: 12.5px;
  line-height: 1.5;
}

.taglist{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.taglist li{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(238,238,238,0.82);
}

.timeline{
  display: grid;
  gap: 18px;
}

.item{
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.06);
}

.item-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.item-title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0;
}

.item-meta{
  color: rgba(238,238,238,0.65);
  font-size: 13px;
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(238,238,238,0.85);
  line-height: 1.6;
  font-size: 15px;
}

.skills{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* =========================
   Contact page
========================= */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 420px; /* desktop-first */
  gap: 40px;
  align-items: start;
}

.contact-side{
  display: grid;
  gap: 22px;
}

.announcement-panel{
  position: relative;
}

.announcement-panel__head{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.announcement-panel__head .panel-title{
  margin-bottom: 0;
}

.announcement-panel__tools{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.announcement-state{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(238,238,238,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(238,238,238,0.72);
  font-size: 12px;
  line-height: 1;
}

.announcement-state.is-enabled{
  border-color: rgba(0,100,0,0.42);
  background: rgba(0,100,0,0.22);
  color: rgba(238,238,238,0.94);
}

.announcement-state.is-blocked,
.announcement-state.is-unsupported{
  border-color: rgba(180,70,70,0.38);
  background: rgba(120,30,30,0.18);
}

.announcement-state.is-setup{
  border-color: rgba(0,100,0,0.34);
  background: rgba(0,100,0,0.14);
  color: rgba(238,238,238,0.88);
}

.announcement-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.announcement-actions .btn{
  width: 100%;
}

.announcement-status{
  min-height: 18px;
}

.announcement-ios-help{
  margin-top: 14px;
  border: 1px solid rgba(238,238,238,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  overflow: hidden;
}

.announcement-ios-help[hidden]{
  display: none;
}

.announcement-ios-help summary{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  color: rgba(238,238,238,0.94);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.announcement-ios-help summary::-webkit-details-marker{
  display: none;
}

.announcement-ios-help summary::after{
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(238,238,238,0.10);
  border-radius: 999px;
  background: rgba(0,100,0,0.16);
  color: rgba(238,238,238,0.82);
  font-size: 16px;
  line-height: 1;
}

.announcement-ios-help[open] summary{
  border-bottom: 1px solid rgba(238,238,238,0.08);
}

.announcement-ios-help[open] summary::after{
  content: "-";
}

.announcement-ios-help__body{
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  color: rgba(238,238,238,0.76);
  font-size: 13px;
  line-height: 1.55;
}

.announcement-ios-help__body p{
  margin: 0;
}

.announcement-ios-help__body ol{
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.announcement-ios-help__body li::marker{
  color: rgba(238,238,238,0.92);
  font-weight: 700;
}

.announcement-ios-help__note{
  color: rgba(238,238,238,0.58);
}

.announcement-inbox{
  margin-top: 14px;
  border: 1px solid rgba(238,238,238,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}

.announcement-inbox[hidden]{
  display: none;
}

.announcement-inbox__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(238,238,238,0.08);
}

.announcement-inbox__head strong{
  color: rgba(238,238,238,0.94);
  font-size: 13px;
  font-weight: 650;
}

.announcement-inbox__head span{
  display: grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  color: rgba(238,238,238,0.62);
  font-size: 12px;
  line-height: 1;
}

.announcement-inbox__head span:not(:empty){
  border: 1px solid rgba(0,100,0,0.36);
  border-radius: 999px;
  background: rgba(0,100,0,0.18);
  color: rgba(238,238,238,0.86);
  font-weight: 700;
}

.announcement-inbox__head span:empty{
  display: none;
}

.announcement-inbox__list{
  display: grid;
  max-height: 320px;
  overflow-y: auto;
}

.announcement-inbox__item{
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(238,238,238,0.07);
}

.announcement-inbox__item:last-child{
  border-bottom: 0;
}

.announcement-inbox__meta,
.announcement-inbox__body,
.announcement-inbox__empty{
  margin: 0;
}

.announcement-inbox__meta{
  color: rgba(238,238,238,0.52);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-inbox__item h3{
  margin: 0;
  color: rgba(238,238,238,0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.announcement-inbox__body{
  color: rgba(238,238,238,0.74);
  font-size: 13px;
  line-height: 1.45;
}

.announcement-inbox__link{
  width: fit-content;
  color: rgba(238,238,238,0.86);
  font-size: 12.5px;
  text-decoration: underline;
  text-decoration-color: rgba(0,100,0,0.62);
  text-underline-offset: 3px;
}

.announcement-inbox__empty{
  padding: 13px 14px;
  color: rgba(238,238,238,0.58);
  font-size: 13px;
  line-height: 1.45;
}

.contact-form{
  display: grid;
  gap: 14px;
}

.form-row{
  display: grid;
  gap: 8px;
}

.label{
  font-size: 13px;
  color: rgba(238,238,238,0.72);
}

.input,
.textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.28);
  color: rgba(238,238,238,0.92);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  outline: none;
}

.input::placeholder,
.textarea::placeholder{
  color: rgba(238,238,238,0.45);
}

.input:focus,
.textarea:focus{
  border-color: rgba(0,100,0,0.55);
  box-shadow: 0 0 0 3px rgba(0,100,0,0.18);
}

.form-actions{
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Email box */
.email-box{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.08);
}

.email-box code{
  color: rgba(238,238,238,0.9);
  font-size: 13.5px;
}

/* Social links */
.social-links{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.social{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(238,238,238,0.9);
}

.social:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(0,100,0,0.35);
}

.social-ic{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(238,238,238,0.10);
  background: rgba(17,17,17,0.92);
  padding: 18px 0;
  margin-top: 44px;
}

.footer-inner{
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
  color: rgba(238,238,238,0.70);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.footer-split{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.85;
}

/* =========================
   POLISH PASS (Desktop)
   ========================= */

/* Global type rhythm */
:root{
  --text: #eeeeee;
  --muted: rgba(238,238,238,0.72);
  --soft: rgba(238,238,238,0.10);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --shadow-soft: 0 14px 40px rgba(0,0,0,0.40);
  --green: #006400;
}

/* Section headings (Films/Photography/Social) */
.section-title,
.carousel-title,
.row-title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--text);
  font-size: 22px;
  letter-spacing: 0.4px;
  margin: 26px 0 12px;
}

/* Give each row breathing room */
.carousel,
.section-row,
.category-row{
  margin-bottom: 26px;
}


/* Card look */
.card{
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transform: translateZ(0); /* smoother hover */
  transition: transform 220ms ease, box-shadow 220ms ease;
  outline: none;
}

.card:focus-visible{
  box-shadow: 0 0 0 2px rgba(0,100,0,0.65), var(--shadow-soft);
}

/* Thumbnail surface */
.card-media{
  border-radius: 16px;
  background-color: #1a1a1a;
}

/* Hover lift (subtle, premium) */
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Overlay: smoother + slightly glassy */
.card-overlay{
  padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.06));
  backdrop-filter: blur(6px);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}

.card:hover .card-overlay,
.card:focus-visible .card-overlay{
  opacity: 1;
  transform: translateY(0);
}

.card-title{
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.card-type{
  margin-top: 6px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: rgba(238,238,238,0.75);
}

/* Carousel arrows: centered icon, no hover movement */
.carousel-btn,
.carousel-arrow{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(238,238,238,0.16);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 14px 40px rgba(0,0,0,0.50);
  display: inline-flex;          /* centers icon */
  align-items: center;           /* centers icon */
  justify-content: center;       /* centers icon */
  line-height: 1;                /* prevents vertical offset */
  padding: 0;                    /* prevents drift */
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

/* If your arrow is a text character like ‹ › or < > */
.carousel-btn span,
.carousel-arrow span{
  display: block;
  line-height: 1;
  transform: translateY(0);
}

/* Hover: no movement, just styling */
.carousel-btn:hover,
.carousel-arrow:hover{
  background: rgba(0,0,0,0.62);
  border-color: rgba(0,100,0,0.55);
}

.carousel-btn:focus-visible,
.carousel-arrow:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,100,0,0.65), 0 14px 40px rgba(0,0,0,0.50);
}



/* Role chips: slightly tighter + consistent with About chips */
.role-chips{
  gap: 10px;
}

.role-chips li{
  padding: 8px 12px;
  background: rgba(0,100,0,0.14);
  border: 1px solid rgba(0,100,0,0.42);
  color: rgba(238,238,238,0.90);
}

/* Optical centering for text chevrons inside carousel buttons */
.carousel-btn span{
  display: inline-block;
  line-height: 1;
  transform: translateY(1px);
}

/* Separate left/right optical tweak (adjust 1px -> 2px if needed) */
.carousel-btn.left span{
  transform: translate(1px, -2px);
}
.carousel-btn.right span{
  transform: translate(1px, -2px);
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  .card,
  .card-overlay,
  .carousel-btn,
  .carousel-arrow,
  .modal,
  .modal-dialog,
  .filter-panel,
  .welcome-overlay,
  .welcome-overlay__inner{
    transition: none !important;
    animation: none !important;
  }
}

/* Active nav fallback for startup and no-JS deployments */
body.page-work .site-nav a[href*="index"],
body.page-about .site-nav a[href*="about"],
body.page-contact .site-nav a[href*="contact"]{
  color: var(--text);
}

/* =========================
   Portfolio filters / tags
========================= */
.portfolio-filters{
  position: relative;
  z-index: 20;
  min-height: 66px;
  margin: 36px 0 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(238,238,238,0.07);
}

.filter-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.filter-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 0 8px;
  border: 0;
  background: transparent;
  color: rgba(238,238,238,0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.25px;
  text-align: left;
  transition: color 170ms ease;
}

.filter-toggle:hover{
  color: rgba(238,238,238,0.94);
}

.filter-toggle:focus-visible{
  outline: 2px solid rgba(0,100,0,0.62);
  outline-offset: 4px;
}

.filter-toggle__icon{
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(238,238,238,0.11);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: rgba(238,238,238,0.68);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portfolio-filters.is-open .filter-toggle__icon{
  transform: rotate(45deg);
  border-color: rgba(0,100,0,0.42);
  background: rgba(0,100,0,0.10);
}

.filter-panel{
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  z-index: 30;
  max-height: min(440px, 46vh);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  padding: 14px 0 2px;
  background: linear-gradient(180deg, rgba(17,17,17,0.98), rgba(17,17,17,0.88));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: max-height 240ms ease, opacity 180ms ease, transform 220ms ease, padding 220ms ease;
}

.portfolio-filters.is-collapsed .filter-panel{
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.filter-tags,
.project-tags{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag,
.filter-clear,
.project-tag{
  border-radius: 999px;
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: 0.2px;
}

.filter-tag,
.filter-clear{
  border: 1px solid rgba(238,238,238,0.12);
  background: rgba(255,255,255,0.035);
  color: rgba(238,238,238,0.76);
  transition: background 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease, opacity 170ms ease;
}

.filter-tag{
  padding: 8px 12px;
  font-size: 13px;
}

.filter-clear{
  padding: 7px 11px;
  font-size: 12.5px;
}

.filter-tag:hover,
.filter-clear:hover{
  color: rgba(238,238,238,0.94);
  border-color: rgba(0,100,0,0.42);
  background: rgba(255,255,255,0.055);
}

.filter-tag:focus-visible,
.filter-clear:focus-visible{
  outline: 2px solid rgba(0,100,0,0.68);
  outline-offset: 2px;
}

.filter-tag.is-active{
  color: rgba(238,238,238,0.96);
  background: rgba(0,100,0,0.22);
  border-color: rgba(0,100,0,0.58);
}

.filter-tag.is-unavailable{
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(0.98);
}

.filter-status{
  min-height: 18px;
  margin: 0;
  color: rgba(238,238,238,0.58);
  font-size: 12.5px;
}

.project-card{
  opacity: 1;
  transition: opacity 180ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.project-card.is-filtered-out{
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

.portfolio-empty{
  width: 280px;
  min-height: 110px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(238,238,238,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  color: rgba(238,238,238,0.58);
  font-size: 13px;
}

.project-tag{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(238,238,238,0.14);
  background: rgba(255,255,255,0.055);
  color: rgba(238,238,238,0.78);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.modal-tags{
  margin-top: 12px;
}

.modal-tags .project-tag{
  background: rgba(255,255,255,0.04);
}

.suggested-projects{
  margin-top: 26px;
  padding-top: 8px;
  border-top: 1px solid rgba(238,238,238,0.06);
}

.suggested-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.suggested-card{
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(238,238,238,0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  text-align: left;
  transition: border-color 170ms ease, transform 170ms ease, opacity 170ms ease;
}

.suggested-card:hover{
  border-color: rgba(0,100,0,0.36);
  transform: translateY(-2px);
}

.suggested-card:focus-visible{
  outline: 2px solid rgba(0,100,0,0.65);
  outline-offset: 2px;
}

.suggested-card__media{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a center / cover no-repeat;
}

.suggested-card__copy{
  position: absolute;
  inset: auto 0 0;
  padding: 18px 8px 7px;
  background: linear-gradient(to top, rgba(0,0,0,0.76), transparent);
  opacity: 0;
  transition: opacity 170ms ease;
}

.suggested-card:hover .suggested-card__copy,
.suggested-card:focus-visible .suggested-card__copy{
  opacity: 1;
}

.suggested-card__title{
  overflow: hidden;
  color: rgba(238,238,238,0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   Project feedback
========================= */
.project-feedback{
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(238,238,238,0.08);
}

.project-feedback__intro{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.project-feedback__intro > div{
  min-width: 0;
}

.project-feedback__intro .modal-subtitle{
  margin: 0;
}

.project-feedback__intro p{
  max-width: 440px;
  margin: 0;
  color: rgba(238,238,238,0.56);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: right;
}

.feedback-new{
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(238,238,238,0.13);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: rgba(238,238,238,0.84);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.feedback-new:hover{
  border-color: rgba(0,100,0,0.50);
  background: rgba(0,100,0,0.16);
  color: rgba(238,238,238,0.96);
  transform: translateY(-1px);
}

.project-feedback-form{
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(240px, 1fr);
  gap: 14px 16px;
  padding: 18px;
  border: 1px solid rgba(238,238,238,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.feedback-rating-field{
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-rating-field legend,
.feedback-field > span{
  display: block;
  margin-bottom: 8px;
  color: rgba(238,238,238,0.72);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12.5px;
}

.feedback-field small{
  margin-left: 5px;
  color: rgba(238,238,238,0.40);
  font-size: 10.5px;
}

.feedback-stars{
  width: max-content;
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 4px;
}

.feedback-stars button{
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238,238,238,0.10);
  border-radius: 7px;
  background: rgba(0,0,0,0.20);
  color: rgba(238,238,238,0.26);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.feedback-stars button span{
  font-size: 23px;
  line-height: 1;
}

.feedback-stars button:hover,
.feedback-stars button.is-active{
  border-color: rgba(0,100,0,0.48);
  background: rgba(0,100,0,0.12);
  color: rgba(206,232,191,0.94);
}

.feedback-stars button:hover{
  transform: translateY(-1px);
}

.feedback-stars button:focus-visible,
.feedback-new:focus-visible,
.feedback-field input:focus,
.feedback-field textarea:focus,
.feedback-submit:focus-visible{
  outline: 2px solid rgba(0,100,0,0.70);
  outline-offset: 2px;
}

.feedback-field input,
.feedback-field textarea{
  width: 100%;
  border: 1px solid rgba(238,238,238,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
  color: rgba(238,238,238,0.94);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.feedback-field input{
  min-height: 42px;
  padding: 0 12px;
}

.feedback-field textarea{
  min-height: 104px;
  padding: 11px 12px;
  line-height: 1.5;
  resize: vertical;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder{
  color: rgba(238,238,238,0.36);
}

.feedback-field input:focus,
.feedback-field textarea:focus{
  border-color: rgba(0,100,0,0.54);
  background: rgba(0,0,0,0.38);
  box-shadow: 0 0 0 3px rgba(0,100,0,0.12);
}

.feedback-field--comment,
.project-feedback-form__actions{
  grid-column: 1 / -1;
}

.feedback-honeypot{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}

.project-feedback-form__actions{
  display: flex;
  align-items: center;
  gap: 14px;
}

.feedback-submit{
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0,100,0,0.52);
  border-radius: 8px;
  background: rgba(0,100,0,0.72);
  color: rgba(255,255,255,0.96);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.feedback-submit:hover{
  border-color: rgba(122,185,109,0.68);
  background: rgba(0,112,0,0.82);
  transform: translateY(-1px);
}

.feedback-submit:disabled,
.project-feedback-form input:disabled,
.project-feedback-form textarea:disabled,
.project-feedback-form button:disabled{
  cursor: default;
  opacity: 0.52;
  transform: none;
}

.feedback-status{
  min-width: 0;
  margin: 0;
  color: rgba(238,238,238,0.54);
  font-size: 12px;
  line-height: 1.4;
}

.feedback-status.is-error{
  color: rgba(240,167,167,0.94);
}

.feedback-status.is-success{
  color: rgba(188,228,188,0.90);
}

.project-feedback-community{
  margin-top: 18px;
}

.project-feedback-community[hidden]{
  display: none !important;
}

.feedback-summary{
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 0 15px;
  border-bottom: 1px solid rgba(238,238,238,0.09);
}

.feedback-summary > div:first-child{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.feedback-summary > div:first-child span,
.feedback-summary small{
  color: rgba(238,238,238,0.52);
  font-size: 11.5px;
}

.feedback-summary strong{
  color: rgba(238,238,238,0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.feedback-summary__star-row,
.feedback-card__stars{
  display: flex;
  align-items: center;
  color: rgba(238,238,238,0.20);
}

.feedback-summary__star-row{
  gap: 4px;
  font-size: 17px;
}

.feedback-card__stars{
  gap: 2px;
  flex: 0 0 auto;
  font-size: 12px;
}

.feedback-summary__star-row .is-active,
.feedback-card__stars .is-active{
  color: rgba(206,232,191,0.92);
}

.feedback-list{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.feedback-card{
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(238,238,238,0.09);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}

.feedback-card__head{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-card__head > div:first-child{
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feedback-card__head strong{
  overflow: hidden;
  color: rgba(238,238,238,0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-card__head time{
  color: rgba(238,238,238,0.40);
  font-size: 10.5px;
}

.feedback-card > p,
.feedback-reply p{
  margin: 11px 0 0;
  color: rgba(238,238,238,0.76);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.feedback-reply{
  margin-top: 14px;
  padding: 11px 0 0 12px;
  border-top: 1px solid rgba(238,238,238,0.07);
  border-left: 2px solid rgba(0,100,0,0.54);
}

.feedback-reply__head{
  display: flex;
  align-items: center;
  gap: 7px;
}

.feedback-reply__head img{
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.feedback-reply__head strong{
  color: rgba(238,238,238,0.90);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12.5px;
  font-weight: 400;
}

.feedback-reply__head span{
  color: rgba(188,228,188,0.62);
  font-size: 10px;
}

.feedback-reply p{
  margin-top: 7px;
  color: rgba(238,238,238,0.68);
  font-size: 12.5px;
}

/* =========================
   Mobile layout
========================= */
.mobile-header,
.mobile-nav{
  display: none;
}

.card,
.card-media,
.card-overlay{
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-media{
  display: block;
  overflow: hidden;
}

@media (max-width: 820px){
  :root{
    --pad-x: 16px;
  }

  *, *::before, *::after{
    box-sizing: border-box;
  }

  html,
  body{
    width: 100%;
    overflow-x: hidden;
  }

  body{
    min-width: 0;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    background: #111111;
  }

  img,
  video,
  iframe{
    max-width: 100%;
    height: auto;
  }

  .desktop-header{
    display: none !important;
  }

  .mobile-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .mobile-brand{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .mobile-logo{
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: block;
    border: 0;
    background: transparent;
    overflow: hidden;
  }

  .mobile-logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .mobile-title{
    min-width: 0;
  }

  .mobile-name{
    max-width: calc(100vw - 132px);
    overflow: hidden;
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: 0.6px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-tag{
    margin-top: 2px;
    color: rgba(238,238,238,0.72);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
  }

  .mobile-top-ig{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: rgba(238,238,238,0.75);
    transition: color 180ms ease;
  }

  .mobile-top-ig:hover,
  .mobile-top-ig:active{
    color: rgba(238,238,238,0.95);
  }

  .mobile-top-ig svg{
    width: 22px;
    height: 22px;
    display: block;
  }

  .mobile-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: stretch;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 0 15px env(safe-area-inset-bottom);
    background: rgba(17,17,17,0.97);
    border-top: 1px solid rgba(238,238,238,0.10);
    box-shadow: 0 -18px 42px rgba(0,0,0,0.46);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-nav .nav-ig,
  .mobile-nav .mobile-top-ig{
    display: none !important;
  }

  .mobile-nav .nav-link{
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 66px;
    min-height: 66px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(238,238,238,0.64);
  }

  .mobile-nav .nav-link span{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mobile-nav .nav-link svg{
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav .nav-link::before{
    content: none !important;
  }

  .mobile-nav .nav-link::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--green);
    opacity: 0;
    transform: translateX(-50%) scaleX(0.5);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-nav .nav-link.is-active,
  body.page-work .mobile-nav a[href*="index"],
  body.page-about .mobile-nav a[href*="about"],
  body.page-contact .mobile-nav a[href*="contact"]{
    padding: 0 !important;
    border: 0 !important;
    color: rgba(238,238,238,0.95);
  }

  .mobile-nav .nav-link.is-active::after,
  body.page-work .mobile-nav a[href*="index"]::after,
  body.page-about .mobile-nav a[href*="about"]::after,
  body.page-contact .mobile-nav a[href*="contact"]::after{
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  .container{
    width: calc(100% - 32px) !important;
    max-width: 760px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page{
    padding: 20px 0 48px !important;
  }

  .page-head{
    margin: 6px 0 20px;
  }

  .page-title{
    font-size: 32px;
    line-height: 1.1;
  }

  .page-subtitle{
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .content-row{
    margin-top: 12px;
  }

  .portfolio-filters{
    margin: 26px 0 10px;
    padding-top: 2px;
  }

  .filter-head{
    margin-bottom: 10px;
  }

  .filter-toggle{
    padding: 14px 0 8px;
    font-size: 16px;
  }

  .filter-tags{
    gap: 7px;
  }

  .filter-tag{
    padding: 7px 10px;
    font-size: 12px;
  }

  .row-head{
    margin-bottom: 8px;
  }

  .section-title,
  .carousel-title,
  .row-title{
    margin: 22px 0 10px !important;
    font-size: 22px !important;
    line-height: 1.15;
  }

  .carousel{
    margin-bottom: 22px !important;
  }

  .carousel-btn,
  .carousel-arrow{
    display: none !important;
  }

  .carousel-track{
    grid-auto-columns: clamp(155px, 50.4vw, 196px) !important;
    gap: 14px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding: 4px 16px 18px !important;
    margin: 0 -16px !important;
    -webkit-overflow-scrolling: touch;
  }

  .card{
    border-radius: 14px;
    scroll-snap-align: center;
    box-shadow: 0 14px 34px rgba(0,0,0,0.38);
    background: #111111;
    overflow: hidden;
  }

  .card:hover{
    transform: none !important;
  }

  .card-media{
    aspect-ratio: 1080 / 1534;
    margin-bottom: -1px;
    border-radius: 14px;
    background-position: center;
    background-size: cover;
  }

  .card-overlay{
    opacity: 1 !important;
    transform: none !important;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.08) 70%);
    backdrop-filter: none;
  }

  .card-title{
    font-size: 16px;
    line-height: 1.2;
  }

  .card-type{
    font-size: 12px;
  }

  .modal{
    padding: 0;
  }

  .modal-dialog,
  .modal-dialog.modal-scroll{
    width: 100% !important;
    max-width: none;
    min-height: 100vh;
    max-height: 100vh;
    min-height: 100svh;
    max-height: 100svh;
    margin: 0 !important;
    border-radius: 0;
  }

  .modal-close{
    position: fixed;
    top: calc(env(safe-area-inset-top) + 12px);
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
  }

  #modal-hero{
    padding: 0;
    border-radius: 0;
    background: #000000;
  }

  #modal-hero img,
  #modal-hero video{
    max-height: 58vh;
    max-height: 58svh;
    border-radius: 0;
    object-fit: contain;
  }

  #modal-hero .hero-gallery img{
    max-height: 58vh;
    max-height: 58svh;
    border-radius: 0;
  }

  .hero-gallery-btn{
    width: 38px;
    height: 54px;
    border-radius: 12px;
  }

  .hero-gallery-btn.left{ left: 10px; }
  .hero-gallery-btn.right{ right: 10px; }

  .hero-gallery-count{
    left: 12px;
    bottom: 12px;
  }

  .hero-gallery-dots{
    bottom: 16px;
  }

  .modal-body{
    padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
  }

  .modal-title{
    font-size: 24px;
    line-height: 1.15;
  }

  .modal-desc{
    font-size: 14.5px;
    line-height: 1.6;
  }

  .modal-tags{
    gap: 7px;
  }

  .suggested-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .suggested-card{
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
  }

  .suggested-card__copy{
    display: none;
  }

  .suggested-card__media{
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background-size: contain;
  }

  .project-feedback{
    margin-top: 24px;
    padding-top: 16px;
  }

  .project-feedback__intro{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 7px;
    margin-bottom: 14px;
  }

  .project-feedback__intro p{
    max-width: none;
    font-size: 12px;
    text-align: left;
  }

  .project-feedback-form{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .feedback-field--comment,
  .project-feedback-form__actions{
    grid-column: auto;
  }

  .feedback-stars{
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .feedback-stars button{
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  .project-feedback-form__actions{
    display: grid;
    gap: 9px;
  }

  .feedback-submit{
    width: 100%;
  }

  .feedback-status{
    min-height: 17px;
  }

  .feedback-summary{
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .feedback-summary > div:first-child{
    align-items: center;
  }

  .feedback-summary > div:nth-child(2){
    justify-self: end;
  }

  .feedback-summary small{
    grid-column: 1 / -1;
  }

  .feedback-list{
    grid-template-columns: 1fr;
  }

  .feedback-card{
    padding: 13px;
  }

  .role-chips li{
    border-radius: 16px;
    white-space: normal;
  }

  .about-grid,
  .contact-grid{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  body.page-about .about-side,
  body.page-about .about-main{
    display: contents;
  }

  body.page-about .about-main > .panel:nth-child(1){ order: 1; }
  body.page-about .about-side > .panel:nth-child(1){ order: 2; }
  body.page-about .about-side > .panel:nth-child(2){ order: 3; }
  body.page-about .about-main > .panel:nth-child(2){ order: 4; }
  body.page-about .about-main > .panel:nth-child(3){ order: 5; }
  body.page-about .about-side > .panel:nth-child(3){ order: 6; }

  .about-side,
  .about-main,
  .contact-side{
    gap: 14px;
  }

  .panel{
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.30);
  }

  .panel,
  .panel *{
    overflow-wrap: anywhere;
  }

  .panel-title{
    font-size: 19px;
  }

  .body,
  .bullets{
    font-size: 14.5px;
  }

  .fact{
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 9px 0;
  }

  body.page-about .facts{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2px 0;
    border: 1px solid rgba(238,238,238,0.08);
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    overflow: hidden;
  }

  body.page-about .fact{
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 0;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(238,238,238,0.07);
    background: transparent;
  }

  body.page-about .fact:last-child{
    border-bottom: 0;
  }

  .fact dt{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }

  .fact dd,
  .item-meta{
    overflow-wrap: anywhere;
  }

  body.page-about .fact dd{
    font-size: 14px;
    line-height: 1.35;
  }

  .item{
    padding: 12px;
    border-radius: 12px;
  }

  .item-head{
    display: grid;
    gap: 6px;
  }

  .item-title{
    font-size: 17px;
    line-height: 1.25;
  }

  .taglist{
    gap: 8px;
  }

  .taglist li{
    padding: 7px 9px;
    font-size: 12.5px;
  }

  body.page-about .roadmap{
    gap: 10px;
  }

  body.page-about .roadmap li{
    padding: 12px 12px 12px 34px;
  }

  body.page-about .roadmap li::before{
    left: 13px;
    top: 16px;
    width: 8px;
    height: 8px;
  }

  .side-actions,
  .form-actions,
  .announcement-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn{
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }

  body.page-about .side-actions,
  body.page-contact .form-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-contact .contact-form{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.page-contact .contact-form .form-row:nth-of-type(3),
  body.page-contact .contact-form .form-actions,
  body.page-contact .contact-form .small-note{
    grid-column: 1 / -1;
  }

  .input,
  .textarea{
    min-height: 44px;
    border-radius: 12px;
    font-size: 16px;
  }

  body.page-contact .textarea{
    min-height: 118px;
  }

  .email-box{
    display: grid;
    gap: 12px;
    align-items: stretch;
  }

  .email-box code{
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.4;
  }

  .social{
    min-height: 50px;
    border-radius: 5px;
  }

  .site-footer{
    margin-top: 24px;
  }

  .footer-inner{
    width: calc(100% - 32px);
    max-width: 760px;
    text-align: center;
  }

  .footer-split{
    align-items: center;
  }
}

@media (max-width: 420px){
  .mobile-name{
    font-size: 18px;
  }

  .carousel-track{
    grid-auto-columns: clamp(151px, 50.4vw, 189px) !important;
  }

  .page-title{
    font-size: 30px;
  }

  .panel{
    padding: 14px;
  }
}

@media (min-width: 560px) and (max-width: 820px){
  body.page-about .roadmap{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-contact .contact-side{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-contact .contact-side .announcement-panel{
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px){
  body.page-about .facts,
  body.page-contact .contact-form,
  body.page-contact .form-actions,
  body.page-about .side-actions{
    grid-template-columns: 1fr;
  }

  .search-results{
    gap: 8px;
  }

  .search-result__copy strong{
    font-size: 12px;
  }
}

/* =========================
   Feature update polish
========================= */
.admin-sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button.nav-link{
  border: 0;
  background: transparent;
  font-family: Helvetica, Arial, sans-serif;
}

.search-trigger{
  padding: 0;
}

.welcome-overlay{
  background:
    radial-gradient(circle at 18% 20%, rgba(0,100,0,0.28), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(31,93,118,0.22), transparent 34%),
    linear-gradient(135deg, #111111 0%, #080808 48%, #102019 100%);
  background-size: 140% 140%;
  animation: ambientGradient 18s ease-in-out infinite alternate;
}

@keyframes ambientGradient{
  from{ background-position: 0% 45%; }
  to{ background-position: 100% 55%; }
}

.featured-row{
  margin-top: 4px;
}

.featured-carousel{
  margin-bottom: 34px;
}

.featured-track{
  grid-auto-columns: minmax(540px, 52vw);
}

.featured-card{
  position: relative;
  min-width: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.52);
  background: #151515;
  outline: none;
  transition: transform 260ms cubic-bezier(.22,1,.36,1), box-shadow 260ms ease;
}

.featured-card:hover,
.featured-card:focus-visible{
  transform: translateY(-5px);
  box-shadow: 0 32px 86px rgba(0,0,0,0.66);
}

.featured-card:focus-visible{
  outline: 2px solid rgba(0,100,0,0.72);
  outline-offset: 3px;
}

.featured-card__media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a center / cover no-repeat;
  transform: scale(1);
  transition: transform 440ms cubic-bezier(.22,1,.36,1);
}

.featured-card:hover .featured-card__media,
.featured-card:focus-visible .featured-card__media{
  transform: scale(1.025);
}

.featured-card__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.18) 58%, rgba(0,0,0,0.04)),
    linear-gradient(0deg, rgba(0,0,0,0.76), transparent 58%);
  opacity: 1;
  transform: none;
  backdrop-filter: none;
}

.featured-card__title{
  max-width: 72%;
  font-size: clamp(23px, 3.1vw, 42px);
  line-height: 1.03;
}

.featured-card__type{
  margin-top: 10px;
  font-size: 14px;
  color: rgba(238,238,238,0.82);
}

.search-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms cubic-bezier(.22,1,.36,1);
}

.search-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.search-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.search-modal__dialog{
  position: relative;
  width: min(920px, calc(100% - 48px));
  max-height: min(760px, calc(100vh - 72px));
  margin: 36px auto;
  padding: 22px;
  border: 1px solid rgba(238,238,238,0.10);
  border-radius: 8px;
  background: rgba(13,13,13,0.96);
  box-shadow: 0 34px 90px rgba(0,0,0,0.72);
  overflow: auto;
  transform: translateY(18px) scale(0.985);
  transition: transform 300ms cubic-bezier(.22,1,.36,1);
}

.search-modal.is-open .search-modal__dialog{
  transform: translateY(0) scale(1);
}

.search-modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.search-modal__head h2{
  font-size: 28px;
  font-weight: 400;
}

.search-modal__close{
  position: static;
  flex: 0 0 42px;
}

.search-field{
  display: block;
}

.search-field input{
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(238,238,238,0.14);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(0,0,0,0.34);
  color: rgba(238,238,238,0.94);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  outline: none;
}

.search-field input::placeholder{
  color: rgba(238,238,238,0.48);
}

.search-field input:focus{
  border-color: rgba(0,100,0,0.62);
  box-shadow: 0 0 0 3px rgba(0,100,0,0.18);
}

.search-breadcrumbs,
.search-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-breadcrumbs button,
.search-breadcrumbs span,
.search-tag{
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(238,238,238,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(238,238,238,0.78);
  padding: 0 12px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.search-breadcrumbs span,
.search-breadcrumbs button{
  display: inline-flex;
  align-items: center;
}

.search-tag:hover,
.search-breadcrumbs button:hover,
.search-tag.is-active{
  border-color: rgba(0,100,0,0.52);
  background: rgba(0,100,0,0.18);
  color: rgba(238,238,238,0.96);
}

.search-results-head p{
  min-height: 18px;
  margin: 18px 0 10px;
  color: rgba(238,238,238,0.62);
  font-size: 13px;
}

.search-results{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.search-result{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.search-result:hover,
.search-result:focus-visible{
  transform: translateY(-2px);
}

.search-result:focus-visible,
.search-tag:focus-visible,
.search-breadcrumbs button:focus-visible{
  outline: 2px solid rgba(0,100,0,0.68);
  outline-offset: 2px;
}

.search-result__media{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #191919 center / cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
}

.search-result__copy{
  display: none;
}

.search-result__copy strong{
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-result__copy span,
.search-empty{
  color: rgba(238,238,238,0.62);
  font-size: 12.5px;
}

.roadmap{
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap li{
  position: relative;
  padding: 14px 14px 14px 42px;
  border: 1px solid rgba(238,238,238,0.08);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.roadmap li::before{
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0,100,0,0.16);
}

.roadmap span{
  display: block;
  color: rgba(238,238,238,0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.roadmap p{
  margin: 7px 0 0;
  color: rgba(238,238,238,0.78);
  font-size: 14px;
  line-height: 1.55;
}

.modal{
  transition: opacity 280ms cubic-bezier(.22,1,.36,1);
}

.modal-dialog{
  transition: transform 320ms cubic-bezier(.22,1,.36,1), opacity 260ms ease;
}

.modal:not(.is-open) .modal-dialog{
  opacity: 0;
  transform: translateY(22px) scale(0.975);
}

.suggested-card:hover{
  border-color: rgba(238,238,238,0.18);
  transform: translateY(-2px);
}

@media (max-width: 820px){
  .mobile-nav{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-nav .nav-search{
    display: grid;
  }

  .mobile-nav .nav-search svg{
    fill: none;
  }

  .featured-card{
    scroll-snap-align: center;
    border-radius: 8px;
  }

  .featured-card__overlay{
    padding: 18px;
  }

  .featured-card__title{
    max-width: 100%;
    font-size: 23px;
  }

  .carousel-track{
    grid-auto-columns: clamp(155px, 50.4vw, 196px) !important;
  }

  .featured-track{
    grid-auto-columns: clamp(270px, 82vw, 420px) !important;
  }

  .card .card-media{
    aspect-ratio: 1080 / 1534 !important;
  }

  .featured-card__media{
    aspect-ratio: 16 / 9 !important;
  }

  .card-overlay{
    display: none !important;
  }

  .search-modal__dialog{
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: 16px 12px calc(26px + env(safe-area-inset-bottom));
  }

  .search-modal__head{
    margin-bottom: 12px;
  }

  .search-modal__head h2{
    font-size: 24px;
  }

  .search-field input{
    min-height: 50px;
    border-radius: 10px;
    padding: 0 14px;
  }

  .search-breadcrumbs,
  .search-tags{
    flex-wrap: nowrap;
    gap: 7px;
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .search-breadcrumbs::-webkit-scrollbar,
  .search-tags::-webkit-scrollbar{
    display: none;
  }

  .search-breadcrumbs button,
  .search-breadcrumbs span,
  .search-tag{
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    white-space: nowrap;
    font-size: 12.5px;
  }

  .search-results{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .search-result{
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    line-height: 0;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
  }

  .search-result__media{
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .search-result__copy{
    display: none;
  }

  .search-result__copy span{
    display: none;
  }

  .search-empty{
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce){
  .welcome-overlay,
  .featured-card,
  .featured-card__media,
  .search-modal,
  .search-modal__dialog{
    animation: none !important;
    transition: none !important;
  }
}
	
	/* Remove thumbnail text overlays on mobile */
@media (max-width: 768px) {
  .card-overlay {
    display: none !important;
  }
}
