:root {
  --brand: #b00b39;
  --btn-border: rgba(255, 255, 255, 0.28);
  --btn-border-hover: #b00b39;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: auto;
  padding: 6px clamp(10px, 2.5vw, 20px);
  background: rgba(255, 255, 255, 0.063);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 16px);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.face-nav-wrap {
  position: relative;
}

.face-menu-trigger {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
  overflow: hidden;
}

.header-face {
  display: block;
  width: clamp(48px, 8.5vw, 64px);
  height: clamp(48px, 8.5vw, 64px);
}

.face-nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  background: rgba(36, 36, 44, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 1100;
}

.face-nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: #f4f4f8;
  text-decoration: none;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.face-nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.face-nav-dropdown a[aria-current="page"] {
  background: rgba(176, 11, 57, 0.32);
  color: #fff;
}

.header-logo {
  margin: 0;
  max-width: min(58vw, 480px);
  text-align: left;
  color: var(--brand);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 5.5vw, 3.15rem);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.2vw, 22px);
  z-index: 2;
}

.header-nav a {
  border: none;
  background: none;
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.782);
  text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-nav a:hover {
  color: var(--brand);
}

.header-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.header-nav a[aria-current="page"]:hover {
  color: #8a092d;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-bar {
    justify-content: center;
  }

  .header-brand {
    justify-content: center;
  }
}
body {
  font-size: clamp(16px, 2.2vw, 20px);
  background-image: url("imgs/slushbg.png");
  font-family: Georgia, "Times New Roman", serif;
  color: white;
}

main {
  width: min(960px, 92%);
  margin: 18px auto 40px;
  overflow-x: visible;
  padding-inline: clamp(8px, 2vw, 16px);
}

.image-box {
  overflow: visible;
}

.image-box img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.image-caption {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  padding: 10px;
}

.page-intro {
  margin-top: 16px;
  line-height: 1.6;
  width: 100%;
  max-width: none;
}

.page-intro a {
  color: #ffb3c9;
}

.portfolio-grid {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-thumb {
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  overflow: visible;
  cursor: pointer;
  display: block;
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.portfolio-thumb:hover,
.portfolio-thumb:focus-visible {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--btn-border-hover);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  outline: none;
}

.portfolio-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.portfolio-work-carousel {
  margin-top: 20px;
}

.portfolio-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 5vw, 32px);
  margin-bottom: 18px;
  min-height: 3.25rem;
}

.portfolio-carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid var(--btn-border);
  border-radius: 10px;
  background: rgba(16, 16, 36, 0.75);
  color: white;
  font-size: 1.35rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.portfolio-carousel-btn:hover {
  background: rgba(105, 43, 43, 0.9);
  border-color: var(--btn-border-hover);
}

.portfolio-carousel-title {
  margin: 0;
  flex: 1;
  max-width: min(100%, 360px);
  text-align: center;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  color: var(--brand);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-panels {
  display: grid;
  grid-template-columns: 1fr;
  overflow-anchor: none;
}

.carousel-panels > .carousel-panel {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.carousel-panels > .carousel-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.35s ease, visibility 0s linear;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-panels > .carousel-panel {
    transition-duration: 0.01ms;
  }
}

.carousel-panel-intro {
  margin-bottom: 14px;
  line-height: 1.55;
  opacity: 0.95;
}

.carousel-panel--animation .portfolio-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 420px) {
  .carousel-panel--animation .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 20, 0.88);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: min(85vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  display: block;
}

.lightbox-date {
  margin-top: 12px;
  text-align: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
  opacity: 0.88;
  font-variant-numeric: tabular-nums;
}

.products {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 14px;
  padding: 6px 4px;
}

.product-btn {
  width: 100%;
  border: 2px solid var(--btn-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

a.product-btn {
  text-decoration: none;
  color: inherit;
}

.products .product-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--btn-border-hover);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: scale(1.05);
}

.product-details h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
}

.product-details p {
  opacity: 0.92;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  margin-top: 4px;
}

.price {
  color: #4ed46b;
  margin-top: 6px;
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
}

.preview {
  width: 140px;
  height: 95px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--btn-border);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

a.product-btn:hover .preview,
button.product-btn:hover .preview {
  border-color: var(--btn-border-hover);
}

.social-badge {
  display: grid;
  place-items: center;
  width: 140px;
  height: 95px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid var(--btn-border);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.04em;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease;
}

a.product-btn:hover .social-badge {
  border-color: var(--btn-border-hover);
}

.social-badge--instagram {
  background: linear-gradient(145deg, #f58529, #dd2a7b, #8134af);
}

.social-badge--bluesky {
  background: linear-gradient(180deg, #1185fe 0%, #0a66cc 100%);
}

.social-badge--email {
  background: linear-gradient(145deg, #3d6b8e, #2a4a62);
}

.product-modal[hidden] {
  display: none !important;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 28px);
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 32, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.product-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: rgba(28, 28, 48, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  padding: clamp(18px, 4vw, 26px);
  color: white;
}

.product-modal-sheet img.product-modal-visual {
  width: 100%;
  max-height: min(280px, 42vh);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.product-modal-sheet h2 {
  margin-top: 16px;
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  color: var(--brand);
}

.product-modal-sheet .product-modal-desc {
  margin-top: 10px;
  line-height: 1.5;
  opacity: 0.92;
}

.product-modal-sheet .product-modal-price {
  margin-top: 12px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: #4ed46b;
}

.product-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.product-modal-actions button {
  flex: 1 1 auto;
  min-width: min(140px, 100%);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.2s ease;
}

.product-modal-actions button:hover {
  transform: translateY(-1px);
}

.btn-modal-primary {
  background: var(--brand);
  color: white;
  border: 2px solid var(--btn-border);
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.btn-modal-primary:hover {
  filter: brightness(1.08);
  border-color: var(--btn-border-hover);
}

.btn-modal-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 2px solid var(--btn-border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-modal-secondary:hover {
  border-color: var(--btn-border-hover);
  background: rgba(255, 255, 255, 0.18);
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 14px;
  min-height: 40px;
  border: 2px solid var(--btn-border);
  border-radius: 10px;
  background: rgba(16, 16, 36, 0.85);
  color: white;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 600;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.product-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--btn-border-hover);
}

body.modal-open {
  overflow: hidden;
}
