/* Small orientation cues for the existing portfolio. */
.compact-intro { display: none; }
.reading-details[hidden], .reading-toggle[hidden] { display: none; }
.reading-toggle { pointer-events: auto; cursor: pointer; display: block; margin: 12px auto 18px; padding: 8px 14px; border: 1px solid #aaa; border-radius: 8px; background: rgba(255,255,255,.96); color: #222; font: 13px/1.4 "Montserrat", sans-serif; }
.reading-toggle:focus-visible { outline: 2px solid #e63946; outline-offset: 3px; }
.reading-open { background: rgba(255,255,255,.96); border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.08); pointer-events: auto; }
@media (max-width: 1400px), (max-height: 800px) {
  .compact-reading .compact-intro { display: block; font: 14px/1.6 "Montserrat", sans-serif; letter-spacing: 0; }
  section.compact-reading { height: auto; min-height: 100vh; box-sizing: border-box; padding-top: 85px; padding-bottom: 48px; }
  .compact-reading .gsap-trigger { box-sizing: border-box; padding: 20px; }
  .compact-reading .hero-text { position: relative; top: auto; align-self: flex-start; }
  .compact-reading .reading-details { font: 14px/1.65 "Montserrat", sans-serif; letter-spacing: 0; }
  .compact-reading .reading-details p { font-size: 14px; line-height: 1.65; }
  .compact-reading .hero-actions { flex-wrap: wrap; }
}
.loader-retry { margin-top: 18px; padding: 10px 18px; border: 1px solid #ddd; border-radius: 8px; background: #fff; font: 13px "Montserrat", sans-serif; cursor: pointer; }
.fs-slider { box-sizing: border-box; padding: 40px 24px; background: rgba(25, 25, 25, 0.25); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.work-gallery-panel { width: min(960px, 100%); max-height: min(760px, calc(100svh - 80px)); overflow-y: auto; box-sizing: border-box; padding: 30px; border-radius: 20px; background: #fff; box-shadow: 0 20px 70px rgba(0,0,0,.16); font-family: "Montserrat", sans-serif; }
.work-gallery-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.gallery-eyebrow { font-size: 10px; letter-spacing: 2px; color: #777; margin: 0 0 8px; }
.work-gallery-header h2 { font: 32px/1.2 "Anton", sans-serif; margin: 0; }
.work-gallery-header p:last-child { font-size: 13px; color: #666; margin-bottom: 0; }
.gallery-close { border: 1px solid #e6e6e6; background: #fafafa; border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; font-size: 26px; cursor: pointer; }
.work-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card-grid[hidden], .work-detail[hidden] { display: none; }
.work-card { padding: 0; border: 1px solid #e6e3df; border-radius: 12px; overflow: hidden; text-align: left; background: white; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.work-card-caption { display: flex; justify-content: space-between; align-items: center; padding: 15px; }
.work-card small { display: block; font-size: 9px; color: #777; letter-spacing: .8px; margin-bottom: 6px; }
.work-card strong { font-size: 16px; }
.gallery-footnote { color: #888; font-size: 11px; margin: 22px 0 0; }
.work-detail img { display: block; width: 100%; max-height: 350px; object-fit: contain; background: #f1efec; border-radius: 12px; margin-top: 16px; }
.gallery-back { background: none; border: 0; padding: 8px 0; font: inherit; cursor: pointer; }
.work-detail p { font-size: 13px; color: #666; }
.work-detail > .gallery-eyebrow { margin-top: 22px; }
.work-detail img { max-height: none; height: auto; }
.work-detail h3 { font-size: 22px; line-height: 1.4; margin: 8px 0 20px; }
#workDetailContext { max-width: 720px; }
#workDetailContext h4 { font-size: 14px; margin: 20px 0 6px; }
#workDetailContext p { line-height: 1.7; margin-top: 0; }
.work-card-caption > span:first-child { min-width: 0; }
.work-card strong { line-height: 1.4; display: block; }
.work-card:focus-visible, .gallery-close:focus-visible, .gallery-back:focus-visible { outline: 2px solid #e63946; outline-offset: 3px; }
@media (max-width: 600px) {
  .fs-slider { padding: 24px 14px; }
  .work-gallery-panel { max-height: calc(100svh - 48px); padding: 20px; border-radius: 16px; }
  .work-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-gallery-header h2 { font-size: 25px; }
  .work-card-caption { padding: 12px; }
  .work-card small { font-size: 8px; }
}
.hero-text { top: 95px; box-sizing: border-box; padding: 0 24px; }
.hero-identity { margin: 0 0 14px; font: 14px/1.5 "Montserrat", sans-serif; letter-spacing: 0; }
.hero-identity span { display: block; font-size: 12px; color: #555; }
.hero-text h1 { margin: 0; }
.hero-text .line1, .hero-text .line2 { display: block; font-size: clamp(2rem, 4.1vw, 4rem); letter-spacing: 0.5px; line-height: 1.15; }
.hero-summary { max-width: 680px; margin: 16px auto; font: 14px/1.65 "Montserrat", sans-serif; letter-spacing: 0; }
.hero-actions { display: flex; justify-content: center; gap: 12px; }
.hero-actions button, .email-action { pointer-events: auto; cursor: pointer; border: 1px solid #111; border-radius: 8px; padding: 10px 16px; background: #111; color: white; font: 11px/1.5 "Montserrat", sans-serif; letter-spacing: 0.5px; text-decoration: none; }
.hero-actions .contact-trigger { background: white; color: #111; }
.hero-actions button:focus-visible, .email-action:focus-visible { outline: 2px solid #e63946; outline-offset: 4px; }
.about-text { max-width: 650px; }
.about-text .desc { font-size: 1rem; line-height: 1.6; }
.about-text .desc p { margin: 0 0 12px; }
.skills-text h2, .clients-text h2 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.15; }
.capability-list { text-align: left; }
.capability-list article { margin-top: 18px; padding-left: 16px; border-left: 2px solid #e63946; }
.capability-list h3 { font-size: 15px; margin: 0 0 6px; }
.capability-list p { font-size: 14px; line-height: 1.6; margin: 0; }
.clients-text > p { font-size: 1rem; }
.view-btn { animation: work-invitation 2.8s ease-in-out infinite; }
.vbtn-wrap { padding: 14px; margin-top: 6px; }
.view-btn:hover, .view-btn:focus-visible { animation: none; }
.view-btn:focus-visible { outline: 2px solid #e63946; outline-offset: 5px; }
@keyframes work-invitation {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
  45% { transform: translateY(-3px); box-shadow: 0 0 0 7px rgba(230, 57, 70, 0.12); }
  75% { transform: translateY(0); box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
}
.customizer-guide h2 { font: 24px/1.2 "Anton", sans-serif; margin: 0 0 8px; }
.customizer-guide p { margin: 4px 0; }
.contact-intro, .contact-availability { font: 13px/1.6 "Montserrat", sans-serif; }
.contact-availability { color: #555; }
.email-action { display: inline-block; margin: 12px 0 0; }
.contact-modal-content { max-height: calc(100svh - 64px); overflow-y: auto; box-sizing: border-box; }
.contact-modal-content .qr-img { width: 150px; margin-bottom: 0; }
.nav-top {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
}
#nav-menu { position: relative; }
.nav-top nav ul { align-items: center; }
.nav-contact {
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
}
.nav-top nav ul li a { display: inline-block; padding: 8px 0; }
.nav-top nav ul li a.active { color: #111; font-weight: bold; }
.nav-section-indicator {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #e63946;
  pointer-events: none;
  transition: transform 0.3s ease, width 0.3s ease;
}
.burger { border: 0; padding: 0; background: transparent; box-sizing: content-box; }
.scroll-explore {
  position: absolute;
  top: calc(100svh - 100px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 18px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #333;
  font: 12px "Montserrat", sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.scroll-explore.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.scroll-explore-arrow { font-size: 22px; animation: explore-nudge 1.8s ease-in-out infinite; }
.scroll-up-btn {
  left: 50%;
  right: auto;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: auto;
  height: auto;
  border-radius: 18px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #333;
  font: 12px "Montserrat", sans-serif;
  letter-spacing: 1px;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.scroll-up-btn.show { visibility: visible; }
.scroll-up-btn .scroll-explore-arrow { animation-name: return-nudge; }
.scroll-up-btn:focus-visible { outline: 2px solid #e63946; outline-offset: 5px; }
@keyframes return-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes explore-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.portfolio-section { position: relative; }
.customizer-guide {
  position: absolute;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #444;
  font: 13px/1.6 "Montserrat", sans-serif;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 48px);
}
.scroll-explore:focus-visible, .nav-contact:focus-visible, .burger:focus-visible,
#nav-menu a:focus-visible { outline: 2px solid #e63946; outline-offset: 5px; }
@media (max-width: 900px) {
  .hero-text { top: 65px; padding: 0 20px; }
  .hero-text .line1, .hero-text .line2 { font-size: clamp(1.7rem, 5vw, 3rem); }
  .hero-summary { font-size: 12px; max-width: 540px; }
  .hero-identity { font-size: 13px; }
  /* Use one navigation allowance instead of stacking section and text gaps. */
  section.compact-reading { padding-top: 52px; }
  .compact-reading .gsap-trigger { margin-top: 0; padding-top: 12px; }
  .compact-reading .about-text .hi,
  .compact-reading .skills-text h2,
  .compact-reading .clients-text h2 { margin-top: 0; }
  .about-text .hi { font-size: 2.4rem; }
  .about-text .role { font-size: 1.2rem; }
  .about-text .desc { font-size: 13px; }
  .capability-list article { margin-top: 14px; }
  .capability-list h3 { font-size: 13px; }
  .capability-list p { font-size: 12px; }
  .skills-text h2, .clients-text h2 { font-size: 2rem; }
  .customizer-guide { box-sizing: border-box; }
  #nav-menu { position: fixed; }
  .nav-top nav ul li a, .nav-contact { padding: 10px 16px; font-size: 1rem; }
  .nav-section-indicator { bottom: auto; top: 0; }
  .customizer-guide { top: 52px; font-size: 12px; }
}
@media (max-height: 700px) and (max-width: 900px) {
  .about-section, .skills-section, .clients-section { height: auto; min-height: 100vh; padding-bottom: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-card { transition: none; }
  .work-card:hover { transform: none; }
  .view-btn { animation: none; }
  .scroll-explore-arrow { animation: none; }
  .scroll-up-btn .scroll-explore-arrow { animation: none; }
  .nav-section-indicator, .scroll-explore, .scroll-up-btn { transition: none; }
}
