/* ============================================================
   Skipy — Portfolio
   Palette mirrored from s-k-i-p-y.blogspot.com (dark + orange)
   ============================================================ */

:root {
  --bg:        #232323;
  --bg-soft:   #292929;
  --panel:     #3d3d3d;
  --panel-2:   #343434;
  --line:      #474747;
  --text:      #cdcdcd;
  --muted:     #9a9a9a;
  --orange:    #e27300;
  --orange-2:  #f57c00;
  --orange-3:  #ff9e2c;
  --shadow:    0 24px 60px rgba(0, 0, 0, .45);
  --radius:    14px;
  --wrap:      1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font: 400 16px/1.6 Inter, "Segoe UI", Arial, Tahoma, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 50% -10%, rgba(226, 115, 0, .16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(245, 124, 0, .07), transparent 55%),
    linear-gradient(180deg, #262626 0%, #202020 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-3); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(35, 35, 35, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(71, 71, 71, .7);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 30px/1 "Old Standard TT", Georgia, serif;
  color: var(--orange-2);
  letter-spacing: .5px;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, .35), 0 0 22px rgba(245, 124, 0, .35);
}
.brand:hover { color: var(--orange-3); }

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(245, 124, 0, .6));
  transition: transform .25s;
}
.brand:hover .brand-icon { transform: rotate(-8deg) scale(1.08); }

/* Fiery "S" standing in for the letter in Skipy (hero title) */
.s-replace { white-space: nowrap; }

.s-replace img {
  display: inline-block;
  height: .9em;
  width: auto;
  vertical-align: -0.12em;
  filter: drop-shadow(0 0 14px rgba(245, 124, 0, .5));
}

.hero-title .s-replace img {
  height: 1.05em;
  vertical-align: -0.18em;
  filter: drop-shadow(0 0 34px rgba(245, 124, 0, .55));
}

.nav { display: flex; gap: 8px; }

.nav-link {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}
.nav-link:hover {
  color: #fff;
  background: #000;
  border-color: var(--line);
}
.nav-link:first-child {
  color: var(--orange-2);
  border-color: rgba(245, 124, 0, .5);
}
.nav-link:first-child:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(245, 124, 0, .45);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: clamp(60px, 12vh, 130px) 0 clamp(50px, 8vh, 90px);
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(50% 50% at 50% 40%, rgba(245, 124, 0, .30), transparent 70%);
  filter: blur(20px);
  animation: pulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-art {
  width: clamp(150px, 24vw, 210px);
  aspect-ratio: 1;
  margin: 0 auto 30px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(150deg, var(--orange-2), transparent 55%);
  box-shadow: 0 0 0 1px rgba(245, 124, 0, .35), 0 0 60px rgba(245, 124, 0, .35), var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #2f2f2f;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--orange);
}

.hero-title {
  margin: 0;
  font: 700 clamp(56px, 12vw, 108px)/1 "Old Standard TT", Georgia, serif;
  color: var(--orange-2);
  text-shadow: -1px -1px 1px rgba(0, 0, 0, .35), 0 0 50px rgba(245, 124, 0, .35);
}

.hero-sub {
  margin: 10px 0 34px;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--muted);
  font-style: italic;
  font-family: "Old Standard TT", Georgia, serif;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #1a1a1a;
  background: linear-gradient(180deg, var(--orange-3), var(--orange));
  box-shadow: 0 10px 26px rgba(245, 124, 0, .35);
}
.btn-primary:hover {
  color: #1a1a1a;
  box-shadow: 0 14px 34px rgba(245, 124, 0, .5);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(61, 61, 61, .35);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--orange);
  background: rgba(245, 124, 0, .12);
}

/* ---------------- Scroll hint ---------------- */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(155, 155, 155, .5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange-2);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------------- Gallery ---------------- */
.gallery-section { padding: 30px 0 110px; }

.section-head {
  text-align: center;
  margin-bottom: 46px;
}
.section-head h2 {
  margin: 0 0 10px;
  font: 700 clamp(30px, 5vw, 44px)/1.1 "Old Standard TT", Georgia, serif;
  color: #fff;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--orange-2), transparent);
}
.section-head p { margin: 0; color: var(--muted); }

.gallery {
  column-count: 3;
  column-gap: 20px;
}

.tile {
  position: relative;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  outline: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 124, 0, .55);
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .82));
  opacity: 0;
  transition: opacity .35s;
}

.tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .35s, transform .35s;
}
.tile figcaption .t {
  font: 600 19px/1.2 "Old Standard TT", Georgia, serif;
  color: #fff;
}
.tile figcaption .s {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange-3);
}

.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid rgba(71, 71, 71, .7);
  background: rgba(0, 0, 0, .25);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  font-size: 14px;
  color: var(--muted);
}
.footer-wrap nav { display: flex; gap: 20px; }

.footer-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 7px;
  border-radius: 4px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(245, 124, 0, .5));
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(15, 15, 15, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }

.lb-figure { margin: 0; text-align: center; max-width: 92vw; }
.lb-img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  background: #2f2f2f;
}
.lb-cap { margin-top: 16px; color: var(--muted); font-size: 14px; }
.lb-cap strong { color: var(--orange-3); font-weight: 600; }

.lb-btn {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(52, 52, 52, .7);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background .25s, color .25s, transform .2s;
}
.lb-btn:hover { background: var(--orange); color: #1a1a1a; transform: scale(1.08); }

.lb-close { top: 24px; right: 24px; width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 32px;
  line-height: 1;
}
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1023.95px) {
  .gallery { column-count: 2; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-wrap { height: 60px; }
  .brand { font-size: 25px; }
  .nav-link { padding: 8px 14px; }
  .gallery { column-count: 1; column-gap: 0; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-close { top: 12px; right: 12px; }
  .lightbox { padding: 16px; }
  .footer-wrap { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow, .hero-art, .scroll-hint span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
