/* =================================================================
   EDGIEBUM — 3D ARTIST PORTFOLIO
   Design system: dark viewport theme, brass accent, full-width gallery
   ================================================================= */

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------------- Tokens ---------------- */
:root {
  /* Color */
  --void: #000000;        /* background */
  --panel: #000000;       /* raised surface */
  --panel-2: #1d1d22;     /* hover / alt surface */
  --line: #29292f;        /* borders, grid, dividers */
  --bone: #f2f0ea;        /* primary text, warm off-white */
  --fog: #98968f;         /* secondary text */
  --brass: #c9a24b;       /* the one accent — museum-spotlight gold */
  --brass-bright: #ddbc72;
  --danger: #c9694b;

  /* Type */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Layout */
  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --radius: 3px;
}

/* ---------------- Base ---------------- */
body {
  background-color: var(--void);
  background-image: url('../images/brand/edgiebum_background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* background-attachment: fixed is unreliable on iOS Safari — it silently falls back
   to normal scrolling there, which just means the watermark scrolls with the page
   on iPhones/iPads instead of staying put. Not broken, just not fixed on that browser. */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

section { padding-block: clamp(4rem, 9vw, 7.5rem); }
section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-top: 0.75rem;
}
.section-head p {
  color: var(--fog);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-top: 1rem;
}

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  width: 100%;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-solid {
  background: var(--brass);
  color: var(--void);
}
.btn-solid:hover { background: var(--brass-bright); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--bone);
}
.btn-outline:hover { border-color: var(--brass); color: var(--brass); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  padding-block: 1.4rem;
  transition: all 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 0.9rem;
  background: rgba(11, 11, 13, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand span { color: var(--brass); }
.footer-mark { height: 46px; width: auto; margin-bottom: 1rem; opacity: 0.5; }

.nav-links {
  display: none;
}
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--fog);
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brass);
}
.nav-right { display: flex; align-items: center; gap: 1.75rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 600;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 550;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
}
.mobile-nav a.active { color: var(--brass); }
.mobile-nav .socials { margin-top: 2.5rem; display: flex; gap: 1.5rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; align-items: center; gap: 2.4rem; }
  .nav-toggle { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  margin-top: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass);
}
.hero .tagline {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--bone);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 40ch;
  margin-top: 1rem;
}
.hero .lede {
  color: var(--fog);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 62ch;
  margin-top: 1.25rem;
}
.hero .lede + .lede { margin-top: 1rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero .disciplines {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--fog); letter-spacing: 0.04em;
}
.hero .disciplines strong { color: var(--bone); font-weight: 400; }

/* ---------------- Gallery — full-width, uniform-height, no hover states ----------------
   Used identically on the homepage "Recent builds" strip and every portfolio category.
   Simple scroll to browse, click to open the full image — nothing hidden behind hover. */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 600px);
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item .item-hud {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(to top, rgba(11,11,13,0.88), transparent 100%);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 0.75rem;
}
.gallery-item .item-hud .title { font-size: 0.94rem; font-weight: 600; }
.gallery-item .item-hud .meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--brass); text-align: right; letter-spacing: 0.03em; white-space: nowrap; }
.gallery-item .expand-icon {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 32px; height: 32px;
  border: 1px solid rgba(242,240,234,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,11,13,0.55);
}
.gallery-item .expand-icon svg { width: 13px; height: 13px; }

/* ---------------- Sub-nav (portfolio category tabs) ---------------- */
.subnav-wrap {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(11,11,13,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.subnav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  overflow-x: auto;
  padding-block: 1.1rem;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.subnav a:hover, .subnav a.active { color: var(--brass); border-color: var(--brass); }

.category-block { padding-top: clamp(3rem, 6vw, 5rem); scroll-margin-top: 130px; }
.category-block .cat-label { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.category-block .cat-index { font-family: var(--font-mono); color: var(--line); font-size: 1.6rem; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 900;
  background: rgba(6,6,7,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: 95vw; max-height: 88vh; text-align: center; }
.lightbox-figure img {
  max-width: 95vw; max-height: 80vh;
  width: auto; height: auto;
  margin-inline: auto;
  border: 1px solid var(--line);
}
.lightbox-cap {
  margin-top: 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--fog);
  flex-wrap: wrap;
}
.lightbox-cap .lb-title { color: var(--bone); font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-align: left; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--bone);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--brass); color: var(--brass); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-prev { left: 0.5rem; } .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* ---------------- Process / pipeline (About page — genuine sequence) ---------------- */
.pipeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pipeline-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.pipeline-step .step-index { font-family: var(--font-mono); color: var(--brass); font-size: 1.1rem; }
.pipeline-step h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }
.pipeline-step p { color: var(--fog); margin-top: 0.4rem; font-size: 0.96rem; max-width: 60ch; }

/* ---------------- About: bio + tools ---------------- */
.bio-grid {
  display: grid;
  gap: 2.5rem;
}
.bio-portrait {
  aspect-ratio: 4/5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio-text p { color: var(--fog); font-size: 1.05rem; margin-top: 1rem; max-width: 62ch; }
.bio-text .name-tag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brass); letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 860px) {
  .bio-grid { grid-template-columns: 340px 1fr; align-items: start; }
}

.tools-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1rem;
}
.tools-grid span {
  background: var(--panel); padding: 1.1rem 1.2rem;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--bone);
}
@media (min-width: 640px) { .tools-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- Forms (commission intake) ---------------- */
.form-shell { max-width: 760px; }
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2.75rem 0;
}
fieldset legend {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.field-row { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .field-row.two-col { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-size: 0.88rem;
  color: var(--fog);
  margin-bottom: 0.55rem;
}
label .req { color: var(--brass); }

.input, textarea.input, select.input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--bone);
  font-size: 0.96rem;
  transition: border-color 0.2s var(--ease);
}
.input:focus, textarea.input:focus, select.input:focus { border-color: var(--brass); }
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398968f' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.check-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-option {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.check-option:hover { border-color: var(--fog); }
.check-option input { accent-color: var(--brass); width: 16px; height: 16px; flex-shrink: 0; }
.check-option:has(input:checked) { border-color: var(--brass); background: rgba(201,162,75,0.08); }
.check-option label { margin-bottom: 0; color: var(--bone); font-size: 0.92rem; }

.form-note { font-size: 0.84rem; color: var(--fog); margin-top: 0.5rem; }
.form-status {
  margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius);
  font-size: 0.92rem; display: none; border: 1px solid var(--line);
}
.form-status.show { display: block; }
.form-status.success { border-color: var(--brass); color: var(--brass-bright); }
.form-status.error { border-color: var(--danger); color: var(--danger); }

/* ---------------- Commission intro / rates strip ---------------- */
.commission-types {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}
@media (min-width: 780px) { .commission-types { grid-template-columns: repeat(4, 1fr); } }
.ctype { background: var(--panel); padding: 1.6rem 1.4rem; }
.ctype .mono-tag { display: block; margin-bottom: 0.6rem; }
.ctype h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.ctype p { color: var(--fog); font-size: 0.88rem; margin-top: 0.5rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-top { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 860px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 14ch; }
.footer-cta p { color: var(--fog); margin-top: 1rem; max-width: 44ch; }
.footer-links { display: flex; gap: clamp(2.5rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog); margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; color: var(--bone); font-size: 0.95rem; margin-bottom: 0.65rem; }
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column-reverse; gap: 1.5rem;
  font-size: 0.85rem; color: var(--fog);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.socials { display: flex; gap: 1.1rem; }
.socials a {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  color: var(--fog);
}
.socials a:hover { border-color: var(--brass); color: var(--brass); }
.socials svg { width: 16px; height: 16px; }

/* ---------------- Back to top ---------------- */
.to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brass); }
.to-top svg { width: 16px; height: 16px; color: var(--bone); }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- Page hero (non-home pages) ---------------- */
.page-hero { padding-top: clamp(7.5rem, 14vw, 10rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-top: 0.75rem; }
.page-hero p { color: var(--fog); max-width: 60ch; margin-top: 1.25rem; font-size: 1.05rem; }

/* ---------------- Simple content pages (Legal, Sitemap) ---------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2.75rem; margin-bottom: 0.75rem; font-family: var(--font-body); font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--fog); margin-top: 0.9rem; line-height: 1.75; }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin-top: 0.9rem; }
.prose li { color: var(--fog); line-height: 1.75; padding-left: 1.25rem; position: relative; margin-top: 0.4rem; }
.prose li::before { content: '—'; position: absolute; left: 0; color: var(--brass); }

.sitemap-group h3 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin-top: 2.75rem; margin-bottom: 0.5rem; }
.sitemap-group:first-child h3 { margin-top: 0; }
.sitemap-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.sitemap-list a:hover { color: var(--brass); }
.sitemap-list .path { font-family: var(--font-mono); font-size: 0.76rem; color: var(--fog); white-space: nowrap; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2.5rem, 5vw, 4rem); }
