/*
  Studio KTS / Freddy X. Lebron portfolio
  File-manager friendly version: images are external files in assets/img.
  Edit colors, spacing, and layout here.
*/

:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-soft: rgba(17, 17, 17, 0.74);
  --text: #f5f2eb;
  --muted: rgba(245, 242, 235, 0.68);
  --quiet: rgba(245, 242, 235, 0.12);
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --display: "Bebas Neue", Impact, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 168, 76, 0.08), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 24rem),
    var(--bg);
  font-family: var(--mono);
  cursor: crosshair;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

img { display: block; max-width: 100%; }

code {
  padding: 0.14rem 0.32rem;
  border: 1px solid var(--quiet);
  border-radius: 0.3rem;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  transition: top 180ms ease;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: 68px;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.58);
  border-bottom: 1px solid rgba(245, 242, 235, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--quiet);
  border-radius: 50%;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: clamp(0.9rem, 2vw, 2rem);
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-pad {
  padding: clamp(5rem, 9vw, 9rem) clamp(1.1rem, 5vw, 5rem);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.geo-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(201, 168, 76, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(201, 168, 76, 0.10) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(245, 242, 235, 0.13) 48% 52%, transparent 52% 100%);
  background-size: 92px 92px, 92px 92px, 520px 520px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 980px;
  font-size: clamp(5.8rem, 16vw, 16rem);
}

h1 span { color: var(--gold); }

.hero-copy {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: crosshair;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  background: var(--gold);
  color: #171308;
}

.btn-primary:hover { color: #171308; }

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.scroll-hint {
  position: absolute;
  left: clamp(1rem, 5vw, 5rem);
  bottom: 2rem;
  z-index: 2;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(245, 242, 235, 0.1);
  background: #0d0d0d;
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 1.6rem;
  align-items: center;
  padding: 1.05rem 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 4.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: marquee 36s linear infinite;
}

.marquee-track b {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.35em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-heading {
  max-width: 980px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading h2,
.about-copy h2,
.contact h2 {
  font-size: clamp(3.5rem, 8vw, 8.5rem);
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1.15rem;
}

.art-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 235, 0.1);
  background: var(--panel);
  box-shadow: var(--shadow);
  break-inside: avoid;
  isolation: isolate;
}

.art-card img {
  width: 100%;
  height: auto;
  transition: transform 500ms ease, filter 500ms ease;
}

.art-card:hover img,
.art-card:focus-within img {
  transform: scale(1.035);
  filter: saturate(0.9) brightness(0.82);
}

.card-button {
  all: unset;
  display: block;
  width: 100%;
  cursor: crosshair;
}

.card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.8rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.58), transparent);
  transform: translateY(45%);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
  pointer-events: none;
}

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

.card-overlay h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 0.9;
}

.card-overlay p {
  margin: 0;
  color: rgba(245, 242, 235, 0.78);
  font-size: 0.72rem;
  line-height: 1.55;
}

.mini-inquire {
  pointer-events: auto;
  flex: 0 0 auto;
  padding: 0.56rem 0.72rem;
  border: 1px solid rgba(201, 168, 76, 0.8);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.68);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: crosshair;
}

.ribbon {
  position: absolute;
  top: 0.9rem;
  right: -2.4rem;
  z-index: 2;
  width: 8rem;
  padding: 0.36rem;
  background: var(--gold);
  color: #141006;
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transform: rotate(35deg);
}

.about {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: center;
  border-top: 1px solid rgba(245, 242, 235, 0.08);
}

.swatch-wrap {
  min-height: 540px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 242, 235, 0.1);
  background:
    linear-gradient(135deg, rgba(201, 168, 76, 0.11), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow);
}

.swatch-grid {
  width: min(78vw, 420px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  transform: rotate(-6deg);
}

.swatch-grid i {
  display: block;
  border: 1px solid rgba(245, 242, 235, 0.14);
  animation: swatchPulse 4s ease-in-out infinite;
}

.swatch-grid i:nth-child(1) { background: #c9a84c; animation-delay: 0s; }
.swatch-grid i:nth-child(2) { background: #f5f2eb; animation-delay: .1s; }
.swatch-grid i:nth-child(3) { background: #d23939; animation-delay: .2s; }
.swatch-grid i:nth-child(4) { background: #1157cf; animation-delay: .3s; }
.swatch-grid i:nth-child(5) { background: #0f643b; animation-delay: .4s; }
.swatch-grid i:nth-child(6) { background: #0a0a0a; animation-delay: .5s; }
.swatch-grid i:nth-child(7) { background: #f0cf1a; animation-delay: .6s; }
.swatch-grid i:nth-child(8) { background: #9f2d7b; animation-delay: .7s; }
.swatch-grid i:nth-child(9) { background: #42c4ca; animation-delay: .8s; }
.swatch-grid i:nth-child(10) { background: #b56b31; animation-delay: .9s; }
.swatch-grid i:nth-child(11) { background: #6f6a60; animation-delay: 1s; }
.swatch-grid i:nth-child(12) { background: #f05b2b; animation-delay: 1.1s; }
.swatch-grid i:nth-child(13) { background: #1d1d1d; animation-delay: 1.2s; }
.swatch-grid i:nth-child(14) { background: #eeeeee; animation-delay: 1.3s; }
.swatch-grid i:nth-child(15) { background: #7cc232; animation-delay: 1.4s; }
.swatch-grid i:nth-child(16) { background: #0d2c75; animation-delay: 1.5s; }

@keyframes swatchPulse {
  0%, 100% { transform: translateY(0); opacity: 0.86; }
  50% { transform: translateY(-8px); opacity: 1; }
}

.about-copy p {
  color: var(--muted);
  line-height: 1.78;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.stats div {
  padding: 1rem;
  border: 1px solid rgba(245, 242, 235, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
}

.stats span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  border-top: 1px solid rgba(245, 242, 235, 0.08);
}

.contact-intro p {
  color: var(--muted);
  line-height: 1.75;
}

.email-line a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 168, 76, 0.6);
}

.inquiry-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(245, 242, 235, 0.1);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 0.45rem;
}

.inquiry-form span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(245, 242, 235, 0.14);
  border-radius: 0;
  padding: 0.92rem;
  background: #0c0c0c;
  color: var(--text);
  font: inherit;
  cursor: crosshair;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

textarea { resize: vertical; }

.form-note {
  min-height: 1.2rem;
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
}

.footer {
  padding: 2rem clamp(1.1rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(245, 242, 235, 0.1);
  color: var(--muted);
  font-size: 0.72rem;
}

.footer a { color: var(--text); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.is-open { display: grid; }

.lightbox img {
  max-height: 78svh;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(245, 242, 235, 0.14);
  box-shadow: var(--shadow);
}

.lightbox-caption {
  max-width: 860px;
  margin-top: 1rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 242, 235, 0.2);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.78);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: crosshair;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 720ms ease forwards;
}

.reveal:nth-child(2) { animation-delay: 120ms; }
.reveal:nth-child(3) { animation-delay: 220ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .gallery-grid { column-count: 2; }
  .about,
  .contact { grid-template-columns: 1fr; }
  .swatch-wrap { min-height: 420px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 62px; }
  .nav-links { gap: 0.85rem; font-size: 0.66rem; }
  .brand { width: 38px; height: 38px; }
  .gallery-grid { column-count: 1; }
  .card-overlay { transform: translateY(0); opacity: 1; }
  .stats { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .scroll-hint { display: none; }
}
