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

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

:root {
  --red:          #FF0000;
  --tiger-flame:  #F1592A;
  --soft-apricot: #F9DBBD;
  --space-indigo: #2C2C54;
  --black:        #000000;

  --btn-grad:   linear-gradient(135deg, #F1592A 0%, #FF0000 100%);
  --text:       #1a1a1a;
  --muted:      #8e8278;

  --nav-h:   50px;
  --nav-top: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background:
    linear-gradient(180deg, #F9DBBD 0%, #FFFFFF 100%);

  padding-top: calc(var(--nav-h) + var(--nav-top) + 12px);

  position: relative;
  isolation: isolate;
}

/* Dotted Grid Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image:
    radial-gradient(
      rgba(44, 44, 84, 0.10) 2px,
      transparent 2px
    );

  background-size: 24px 24px;
  background-position: center;

  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.12)
  );

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.12)
  );
}

/* Navbar */
nav {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 1200px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(172,172,172,0.34), rgba(255,255,255,0.14));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(110,110,110,0.32);
  border-radius: 999px;
  overflow: visible;
  isolation: isolate;
  box-shadow:
    0 12px 36px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(90,90,90,0.22),
    inset 0 0 0 1px rgba(120,120,120,0.18),
    0 0 0 1px rgba(140,140,140,0.08);
}

/* top reflection */
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,0.30), rgba(255,255,255,0.06) 42%, transparent 100%);
  pointer-events: none;
  border-radius: 999px;
}

/* inner shading */
nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 10px 18px rgba(255,255,255,0.04), inset 0 -10px 18px rgba(0,0,0,0.04);
  pointer-events: none;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  max-width: 150px;
  object-fit: contain;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: 16px;
}

.nav-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: rgba(26,26,26,0.82);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

/* Hamburger toggle: hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
@media (max-width: 600px) {
  nav {
    border-radius: 24px;
    padding: 0 20px;
    height: 52px;
  }

  :root { --nav-h: 52px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(110,110,110,0.20);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);

    /* collapse animation */
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease;
  }

  .nav-links.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 40px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;  
  text-decoration: none;
  white-space: nowrap;
}
.btn-red {
  background: var(--btn-grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(241, 89, 42, 0.42);
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(241, 89, 42, 0.55);
  filter: brightness(1.06);
}

.btn-sm {
  height: 44px;
  padding: 0 28px;
  font-size: 1.125rem;
  font-weight: 500;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0,0,0,0.10);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-copy {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-shrink: 0;
}
.footer-links li { display: flex; align-items: center; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.18s;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--red); }
 
/* LinkedIn icon */
.li-ico {
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.12);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
  font-style: normal;
  letter-spacing: -0.5px;
  font-family: sans-serif;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.li-ico:hover { background: #0A66C2; color: #fff; }
 
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px;
    gap: 16px;
  }
  .footer-left { gap: 8px; }
  .footer-copy { white-space: normal; font-size: 0.78rem; }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    width: 100%;
    gap: 0;
  }
  .footer-links li:not(:last-child) {
    grid-column: 1;
    padding: 5px 0;
  }
  .footer-links li:last-child {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    align-items: flex-start;
    padding-top: 5px;
  }
  .footer-links a { font-size: 0.88rem; }
}
 

/* Comparison Card */
.compare-wrap {
  max-width: 760px;
  width: 100%;
  margin: 24px auto 60px;
  padding: 0 20px;
}

.compare-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  background: transparent url('assets/misc/cube_before.png') center center / contain no-repeat;
}

.compare-layer-pifox {
  position: absolute;
  inset: 0;
  background: url('assets/misc/cube_after.png') center center / contain no-repeat;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
  pointer-events: none;
}

/* Gallery Comparison Card */
.gallery-compare-wrap {
  max-width: 850px;
  width: 100%;
  margin: 24px auto 60px;
  padding: 0 20px;
}

.gallery-compare-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  background: transparent url('assets/misc/monster_after.png') center center / contain no-repeat;
}

.gallery-compare-layer-pifox {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: url('assets/misc/monster_before.png') center center / contain no-repeat;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
  pointer-events: none;
}

.gallery-compare-credit {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 60px;
  padding: 0 12px;
}

.gallery-compare-credit small {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  max-width: 700px;

  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.gallery-compare-credit small span {
  white-space: nowrap;
}

.gallery-compare-credit small span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  opacity: 0.5;
}

/* Divider */
.divider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: rgba(255,255,255,0.60);
  z-index: 12;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.divider-knob {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.90);
  border: 2px solid rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.90);
  font-size: 0.65rem;
  letter-spacing: -1px;
  pointer-events: none;
  box-shadow: 0 2px 14px rgba(0,0,0,0.50);
  flex-shrink: 0;
}

/* Features */
.features-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.feature-text p {
  font-size: 1.125rem;  
  font-weight: 500;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-card-empty {
  background: rgba(249, 219, 189, 0.45);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  height: 240px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.60),
    0 4px 20px rgba(0,0,0,0.06);
}

/* ── Feature image card: plain ── */
.feature-img-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin: 0 auto;
  position: relative;
  border-radius: 28px;
}

.feature-img-card img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* ── Feature image card: frosted glass variant ── */
.feature-img-card--glass {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.52) 0%, rgba(249,219,189,0.22) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow:
    0 6px 24px rgba(0,0,0,0.07),
    0 2px 6px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.75),
    inset 0 -1px 0 rgba(180,150,130,0.10);
  animation: featureFloat 4s ease-in-out infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Top-edge reflection */
.feature-img-card--glass::after {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.feature-img-card--glass:hover {
  box-shadow:
    0 12px 36px rgba(0,0,0,0.10),
    0 3px 10px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(180,150,130,0.14);
  transform: translateY(-4px);
  animation-play-state: paused;
}

.feature-img-card--glass img {
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.13));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-img-card--glass:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18));
}

/* Stagger float per row */
.feature-row:nth-child(1) .feature-img-card--glass { animation-delay: 0s; }
.feature-row:nth-child(2) .feature-img-card--glass { animation-delay: -1.4s; }
.feature-row:nth-child(3) .feature-img-card--glass { animation-delay: -2.8s; }

@keyframes featureFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Partners */
.partners {
  padding: 36px 24px 44px;
  text-align: center;
}
.partners .plabel {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.40;
  filter: grayscale(1);
  display: block;
  transition: opacity 0.22s, filter 0.22s;
}
.partner-logo:hover {
  opacity: 0.80;
  filter: grayscale(0);
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.info-card {
  border-top: 2px solid rgba(0,0,0,0.14);
  padding-top: 20px;
}
.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.info-card p {
  font-size: 1rem; 
  font-weight: 500;
  color: var(--muted);
  line-height: 1.75;
}
/* compare labels */
.cmp-label {
  position: absolute;
  bottom: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.55;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
}
.cmp-label.left  { left:  12px; }
.cmp-label.right { right: 12px; text-align: right; }

@media (max-width: 480px) {
  .compare-wrap  { padding: 0 16px; margin-bottom: 40px; }
  .cmp-label     { font-size: 0.6rem; padding: 4px 7px; }
  .divider-knob  { width: 30px; height: 30px; font-size: 0.55rem; }
}

/* Mobile: stack feature rows */
@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* Always put .feature-text first */
  .feature-row .feature-text         { order: 0; }
  .feature-row .feature-card-empty   { order: 1; }
  .feature-row .feature-img-card     { order: 1; }
}
/* gallery ---------------------------------------------------------------- */

/* Page header */
.gallery-hero {
  text-align: center;
  padding: 52px 24px 32px;
}
.gallery-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.gallery-hero p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Hero static image */
.hero-image-wrap {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.hero-image-wrap img {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

/* Gallery body */
.gallery-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* Section header */
.section-header {
  margin-bottom: 28px;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-header p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Category group label */
.category-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.category-group:last-child { margin-bottom: 0; }

.category-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.00rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
}
.category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.10);
}

/* 3-column uniform grid | unused na */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: rgba(249,219,189,0.4);
}
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.grid-item:hover img { transform: scale(1.06); }

/* Hover overlay */
.grid-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  z-index: 2;
}
.grid-item:hover .grid-item-overlay { opacity: 1; }

.grid-item-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.grid-item-credit {
  color: rgba(255,255,255,0.65);
  font-size: 0.7rem;
  font-weight: 500;
}

/* Zoom button */
.grid-item-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.18s;
  cursor: zoom-in;
}
.grid-item:hover .grid-item-zoom { opacity: 1; }
.grid-item-zoom:hover { background: rgba(255,255,255,0.35); }
.grid-item-zoom svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* Featured Work */
.featured-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.featured-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  cursor: zoom-in;
  background: rgba(249,219,189,0.4);
  flex: 1 0 auto;
}

.featured-gallery .featured-item.last-row {
  flex-grow: 0;
}

.featured-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.featured-item:hover img { transform: scale(1.06); }
.featured-item .grid-item-overlay { opacity: 0; transition: opacity 0.28s; }
.featured-item:hover .grid-item-overlay { opacity: 1; }
.featured-item .grid-item-zoom { opacity: 0; transition: opacity 0.22s; }
.featured-item:hover .grid-item-zoom { opacity: 1; }

/* Hidden items (filter / category collapse) */
.grid-item[data-hidden="true"],
.featured-item[data-hidden="true"] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img-wrap {
  width: 100%;
  max-height: 72vh;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}
.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.lightbox-info { flex: 1; }
.lightbox-title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.lightbox-credit { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.lightbox-badge {
  background: var(--btn-grad);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  flex-shrink: 0;
}
.lightbox-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,80,40,0.55); }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 10;
  user-select: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

/* Responsive */
@media (max-width: 900px) {
  .gallery-body { max-width: 100%; }
}

@media (max-width: 768px) {
  .gallery-body { padding: 0 16px 64px; gap: 56px; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .featured-item { height: 180px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

@media (max-width: 480px) {
  .gallery-hero { padding: 28px 16px 20px; }
  .hero-image-wrap { padding: 0 16px; margin-bottom: 40px; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .featured-item { height: 140px; }
  .lightbox { padding: 16px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-close { top: -10px; right: -10px; }
}

/* index ------------------------------------------------------------------ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 24px 24px;
}
.hero-logo {
  width: clamp(220px, 28vw, 480px);
  height: auto;
  display: block;
  margin-bottom: 24px;
}
.hero .sub {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .hero { padding: 36px 20px 20px; }
  .hero .sub { font-size: 1.2rem; }
  .hero-logo { width: clamp(100px, 30vw, 200px); }
  .info-grid { display: flex; flex-direction: column; }
}
@media (max-width: 480px) {
  .hero { padding: 28px 16px 16px; }
  .hero .sub { font-size: 1.05rem; }
  .hero-logo { width: clamp(100px, 50vw, 160px); }
}

/* beta ------------------------------------------------------------------- */

.beta-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 36px;
}
.beta-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.beta-hero p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 490px;
  margin-bottom: 36px;
}
.beta-hero a { color: inherit; text-decoration: underline; }

.dl-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 64px;
}

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(250,238,218,0.85);
  border: 1px solid rgba(0,0,0,0.13);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.dl-pill--card {
  border-radius: 16px;
  padding: 18px 24px;
  align-items: flex-start;
  min-width: 280px;
  max-width: 420px;
}

.dl-pills-row .dl-pill { margin-bottom: 0; }

.pi-red { color: var(--red); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.step {
  border-top: 1px solid rgba(0,0,0,0.13);
  padding: 30px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step h3 span { color: var(--muted); font-weight: 400; }
.step p { font-size: 0.84rem; color: var(--muted); line-height: 1.75; }

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

/* faq -------------------------------------------------------------------- */

.faq-body {
  flex: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 52px 24px 0;
  width: 100%;
}
.faq-body h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
/* ADDED: keep anchor targets clear of the fixed nav bar */
.faq-item {
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--nav-h) + var(--nav-top) + 64px);
}
.faq-item .q { font-size: 0.93rem; font-weight: 700; margin-bottom: 8px; }
.faq-item .a { font-size: 0.85rem; color: var(--muted); line-height: 1.8; }

.faq-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  max-width: 620px;
  margin: 48px auto 0;
  padding: 0 24px 54px;
  scroll-margin-top: calc(var(--nav-h) + var(--nav-top) + 24px); /* ADDED */
}
.faq-logo-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fox-logo-mount { width: 250px; }
.contact-col h3 { font-size: 0.93rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 10px; }
.contact-col p  { font-size: 0.82rem; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }
.contact-col a.mail {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
}
.contact-col a.mail:hover { color: var(--red); }

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

/* ── Nav User Dropdown ──────────────────────────────────────────────────── */

.nav-user {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(110,110,110,0.30);
  background: rgba(255,255,255,0.30);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  padding: 0;
}

.nav-user-btn:hover {
  background: rgba(255,255,255,0.55);
  border-color: rgba(110,110,110,0.55);
}

.nav-user-avatar {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.nav-user-icon {
  width: 16px;
  height: 16px;
  stroke: var(--text);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(110,110,110,0.18);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.70);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-user-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav-user-card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--btn-grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-user-card-email {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.nav-user-item:hover { background: rgba(0,0,0,0.04); color: var(--red); }

.nav-user-logout {
  border-top: 1px solid rgba(0,0,0,0.07);
  color: var(--muted);
}

.nav-user-logout:hover { color: var(--red); background: rgba(255,0,0,0.04); }


/* ── Auth Page (login.html) ─────────────────────────────────────────────── */

.auth-page {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(110,110,110,0.18);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.80);
  overflow: hidden;
}

/* Tab switcher */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.auth-tab {
  flex: 1;
  padding: 14px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
  letter-spacing: 0.01em;
}

.auth-tab:hover { color: var(--text); background: rgba(0,0,0,0.02); }

.auth-tab.active {
  color: var(--text);
  background: rgba(255,255,255,0.60);
  border-bottom: 2px solid var(--red);
}

/* Form */
.auth-form {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
}

.auth-form.hidden { display: none; }

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-sub {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.auth-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.auth-input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(110,110,110,0.26);
  background: rgba(255,255,255,0.70);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  margin-bottom: 16px;
  transition: border-color 0.16s, box-shadow 0.16s;
  outline: none;
  width: 100%;
}

.auth-input:focus {
  border-color: var(--tiger-flame);
  box-shadow: 0 0 0 3px rgba(241,89,42,0.12);
}

.auth-input::placeholder { color: rgba(142,130,120,0.65); }

.auth-error {
  min-height: 18px;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  margin-bottom: 16px;
  height: 46px;
  font-size: 0.95rem;
}

.auth-switch {
  font-size: 0.80rem;
  color: var(--muted);
  text-align: center;
}

.auth-switch-link {
  background: none;
  border: none;
  color: var(--tiger-flame);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-switch-link:hover { color: var(--red); }

@media (max-width: 480px) {
  .auth-page  { padding: 24px 16px 48px; }
  .auth-form  { padding: 24px 20px 20px; }
  .auth-title { font-size: 1.2rem; }
}


/* ── User Account Page (user.html) ──────────────────────────────────────── */

.user-page {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}

.user-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(110,110,110,0.18);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.80);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header row with avatar + email */
.user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--btn-grad);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(241,89,42,0.35);
}

.user-email {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.user-plan {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tiger-flame);
  margin-top: 3px;
  letter-spacing: 0.03em;
}

.user-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 24px 0;
}

/* Sections inside the card */
.user-section { display: flex; flex-direction: column; }

.user-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.user-section-desc {
  font-size: 0.80rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Token display box */
.token-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(249,219,189,0.30);
  border: 1px solid rgba(110,110,110,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  min-height: 48px;
}

.token-text {
  flex: 1;
  font-size: 0.74rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  color: var(--text);
  word-break: break-all;
  line-height: 1.55;
}

.token-copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(110,110,110,0.22);
  background: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s, border-color 0.16s;
}

.token-copy-btn:hover {
  background: rgba(255,255,255,0.90);
  border-color: var(--tiger-flame);
}

.token-copy-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  flex-shrink: 0;
}

.token-copy-btn:hover svg { stroke: var(--tiger-flame); }

/* Success message */
.token-success {
  min-height: 18px;
  font-size: 0.78rem;
  color: #1a8a4a;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Generate button */
.user-action-btn {
  align-self: flex-start;
  height: 44px;
  padding: 0 28px;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Logout button */
.user-logout-btn {
  align-self: flex-start;
  height: 40px;
  padding: 0 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.user-logout-btn:hover {
  background: rgba(255,0,0,0.06);
  color: var(--red);
  border-color: rgba(255,0,0,0.22);
}

@media (max-width: 480px) {
  .user-page { padding: 24px 16px 48px; }
  .user-card { padding: 24px 20px; }
}