/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { -webkit-text-size-adjust: none; -ms-overflow-style: scrollbar; }
ol, ul { list-style: none; }

/* ── Variables ─────────────────────────────────── */
:root {
  --red:    #e5474b;
  --dark:   #1c1c1c;
  --darker: #0c0c0c;
  --grey:   #5a5a5a;
  --white:  #ffffff;
  --muted:  #717171;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --text-primary: rgba(255,255,255,0.85);
  --text-secondary: rgba(255,255,255,0.55);
  --text-dim: rgba(255,255,255,0.35);
}

/* ── Base ──────────────────────────────────────── */
body {
  background: var(--darker);
  color: rgba(255,255,255,0.75);
  font-family: "Lato", sans-serif;
  font-size: 15pt;
  font-weight: 300;
  line-height: 2;
  padding-top: 5em;
}

@media (max-width: 1280px) { body { font-size: 13pt; } }
@media (max-width: 980px)  { body { font-size: 12pt; } }

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover { text-decoration: underline; }

strong, b { font-weight: 700; color: var(--red); }
em, i { font-style: italic; }

p { margin: 0 0 2em; }

h1, h2, h3, h4, h5, h6 {
  color: var(--red);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 1em;
  text-transform: uppercase;
}
h1 { font-size: 2em; margin: 0 0 0.25em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.1em; }

@media (max-width: 736px) {
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.25em; }
  h3 { font-size: 1.1em; }
}

hr { border: 0; border-bottom: 1px solid var(--red); margin: 2em 0; }

/* ── Inner container ───────────────────────────── */
.inner {
  max-width: 65em;
  width: calc(100% - 6em);
  margin: 0 auto;
}
@media (max-width: 980px)  { .inner { width: calc(100% - 4em); } }
@media (max-width: 480px)  { .inner { width: calc(100% - 3em); } }

/* ── Button ────────────────────────────────────── */
.button {
  appearance: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  height: 3.5em;
  line-height: 3.65em;
  padding: 0 2.25em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  background: var(--grey);
  color: var(--white) !important;
}
.button:hover { background: #676767; text-decoration: none; filter: url(#melt); }
.button.alt {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--red);
  color: var(--red) !important;
}
.button.alt:hover { background: transparent; filter: url(#melt); }

/* ── Actions list ──────────────────────────────── */
ul.actions { cursor: default; list-style: none; padding: 0; }
ul.actions li { display: inline-block; padding: 0 1em 0 0; vertical-align: middle; }
ul.actions li:last-child { padding-right: 0; }

/* ══════════════════════════════════════════════════
   PAGE TRANSITION — dissolve effect
   ══════════════════════════════════════════════════ */
@keyframes dissolveIn {
  from {
    opacity: 0;
    filter: blur(6px) saturate(0.5);
    transform: scale(0.99);
  }
  to {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}
@keyframes dissolveOut {
  from {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
  to {
    opacity: 0;
    filter: blur(8px) saturate(0);
    transform: scale(1.01);
  }
}

.page-content {
  animation: dissolveIn 0.6s ease-out forwards;
}
.page-content.dissolving {
  animation: dissolveOut 0.4s ease-in forwards;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════ */
@keyframes barShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
#header {
  background: linear-gradient(90deg,
    #0a0a0a, #1a1a1a, #242424, #1a1a1a, #0f0f0f, #222, #0a0a0a
  );
  background-size: 200% auto;
  animation: barShift 18s linear infinite;
  color: #d5d5d5;
  cursor: default;
  height: 5em;
  left: 0;
  line-height: 5em;
  position: fixed;
  text-align: right;
  top: 0;
  width: 100%;
  z-index: 10001;
  transition: box-shadow 0.3s ease;
}
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#header .inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: calc(100% - 3em);
  max-width: none;
  margin: 0 1.5em;
}

/* ── Logo ──────────────────────────────────────── */
#header .logo {
  font-family: "Pacifico", cursive;
  font-size: 1.25em;
  font-weight: normal;
  text-transform: none;
  line-height: 1;
  background: linear-gradient(90deg,
    hsl(0,90%,65%), hsl(40,90%,65%), hsl(90,85%,55%),
    hsl(180,85%,55%), hsl(220,90%,65%), hsl(270,90%,65%),
    hsl(320,90%,65%), hsl(0,90%,65%)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoRainbow 6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
  transition: filter 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
@keyframes logoRainbow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes logoRainbowReverse {
  0%   { background-position: 200% center; }
  100% { background-position: 0% center; }
}
#header .logo:hover {
  background-image: linear-gradient(90deg,
    hsl(180,85%,55%), hsl(220,90%,65%), hsl(270,90%,65%),
    hsl(320,90%,65%), hsl(0,90%,65%), hsl(40,90%,65%),
    hsl(90,85%,55%), hsl(180,85%,55%)
  );
  animation-name: logoRainbowReverse;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.6)) url(#melt);
  text-decoration: none;
}

@media (max-width: 600px) {
  #header .logo { font-size: 1em; }
}

/* ── Hamburger toggle ─────────────────────────── */
.navPanelToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 2.5em;
  height: 2.5em;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5em;
  font-family: sans-serif;
  transition: color 0.2s;
  z-index: 10002;
}
.navPanelToggle:hover { color: rgba(255,255,255,.7); text-decoration: none; }

/* ── Nav panel (slide-in) ─────────────────────── */
@keyframes linkFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
#navPanel {
  position: fixed;
  right: 0; top: 0;
  width: 20em; height: 100%;
  background: var(--dark);
  color: var(--white);
  padding: 1.5em;
  z-index: 10003;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease-in-out, visibility 0.25s;
}
#navPanel.visible {
  transform: translateX(0);
  visibility: visible;
}
#navPanel a {
  display: block;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75em 0;
  border-top: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  opacity: 0;
  transition: color 0.2s;
}
#navPanel a:first-child { border-top: none; }
#navPanel a:hover { color: rgba(255,255,255,.7); text-decoration: none; }
#navPanel .close {
  display: block;
  text-align: right;
  color: #888;
  font-size: 1.2em;
  padding: 0.5em 0;
  cursor: pointer;
  text-decoration: none;
  border-top: none !important;
}
#navPanel .close:hover { color: var(--white); }
#navPanel.visible a {
  animation: linkFadeIn 0.2s ease forwards;
}
#navPanel.visible a:nth-child(1) { animation-delay: 0.05s; }
#navPanel.visible a:nth-child(2) { animation-delay: 0.12s; }
#navPanel.visible a:nth-child(3) { animation-delay: 0.19s; }
#navPanel.visible a:nth-child(4) { animation-delay: 0.26s; }
#navPanel.visible a:nth-child(5) { animation-delay: 0.33s; }
#navPanel.visible a:nth-child(6) { animation-delay: 0.40s; }
#navPanel.visible a:nth-child(7) { animation-delay: 0.47s; }

/* Active nav link highlight */
#navPanel a.active {
  color: var(--red);
}

/* Nav panel overlay */
#navPanel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
#navPanel-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════════════════════════
   BANNER / HERO
   ══════════════════════════════════════════════════ */
@keyframes rainbowShift {
  0%   { background-color: hsl(0,   60%, 22%); }
  14%  { background-color: hsl(40,  60%, 22%); }
  28%  { background-color: hsl(90,  55%, 21%); }
  42%  { background-color: hsl(180, 60%, 21%); }
  56%  { background-color: hsl(220, 65%, 22%); }
  70%  { background-color: hsl(270, 60%, 22%); }
  85%  { background-color: hsl(320, 60%, 22%); }
  100% { background-color: hsl(0,   60%, 22%); }
}

#banner {
  position: relative;
  min-height: calc(100vh - 5em);
  display: flex;
  align-items: center;
  padding: 6em 0;
  background-color: var(--darker);
  background-image: url("images/banner.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  text-align: left;
}
#banner::before {
  content: '';
  position: absolute;
  inset: 0;
  animation: rainbowShift 20s ease-in-out infinite;
  mix-blend-mode: color;
  z-index: 1;
  pointer-events: none;
}
#banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--darker);
  opacity: 0.55;
  transition: opacity 4s ease;
  z-index: 2;
}
body.is-loading #banner::after { opacity: 1; }
body.is-loading #banner::before { animation: none; }
#banner .inner {
  position: relative;
  z-index: 10;
  line-height: 1.5;
  width: 100%;
}
#banner h1 {
  color: var(--white);
  font-size: 2.5em;
  letter-spacing: 3px;
  margin: 0 0 0.6em;
}
#banner p { color: rgba(255,255,255,.7); font-size: 1.1em; max-width: 36em; }
#banner .button.alt {
  box-shadow: inset 0 0 0 2px var(--white);
  color: var(--white) !important;
}
#banner .button.alt:hover { background: rgba(255,255,255,.1); filter: url(#melt); }

@media (max-width: 736px) { #banner h1 { font-size: 1.75em; } }

/* ══════════════════════════════════════════════════
   SHARED PAGE SECTION STYLES
   ══════════════════════════════════════════════════ */
.page-section {
  padding: 6em 0;
  background: var(--darker);
  text-align: left;
  min-height: calc(100vh - 5em);
  display: flex;
  align-items: flex-start;
}
.page-section .inner {
  width: 100%;
  padding-top: 1em;
}

.section-header {
  margin-bottom: 3em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 1.5em;
}
.section-header .pill {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-dim);
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4em 1em;
  margin-bottom: 0.8em;
}
.section-header h2 {
  color: var(--white);
  margin-bottom: 0.3em;
}
.section-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1em;
}

/* ── Scroll animation ─────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.animated {
  opacity: 1;
  transform: translateY(0);
}
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }

/* ══════════════════════════════════════════════════
   WHAT (ABOUT)
   ══════════════════════════════════════════════════ */
#what .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
}
#what .about-text p {
  color: var(--text-secondary);
  font-size: 1.05em;
  line-height: 1.9;
}
#what .about-visual {
  background: linear-gradient(135deg, hsl(0,60%,30%) 0%, hsl(270,60%,22%) 100%);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#what .about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
}

@media (max-width: 980px) {
  #what .about-grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  #what .about-visual { height: 300px; }
}

/* ══════════════════════════════════════════════════
   MAKE (PROJECTS)
   ══════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--red);
  padding: 2em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.project-card .project-icon {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  display: block;
}
.project-card h3 {
  color: var(--white);
  font-size: 1.1em;
  margin-bottom: 0.5em;
}
.project-card p {
  color: var(--text-secondary);
  font-size: 0.9em;
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   NOW
   ══════════════════════════════════════════════════ */
.now-content h3 {
  color: var(--white);
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.now-list {
  list-style: none;
  padding: 0;
}
.now-list li {
  padding: 0.7em 0 0.7em 1.5em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}
.now-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.now-list li:last-child { border-bottom: none; }

.empty-state {
  text-align: left;
  padding: 3em 2em;
  border: 2px dashed rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
}
.empty-state .icon {
  font-size: 3em;
  color: rgba(255,255,255,0.15);
  display: block;
  margin-bottom: 0.5em;
}
.empty-state h3 {
  color: var(--text-dim);
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.empty-state p { font-size: 0.9em; margin: 0; }

/* ══════════════════════════════════════════════════
   LOOK (PICS)
   ══════════════════════════════════════════════════ */
.pics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1em;
}
.pics-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--card-border);
  transition: opacity 0.2s, transform 0.3s ease;
}
.pics-grid img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* ══════════════════════════════════════════════════
   TOUCH (CONTACT)
   ══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
}
.contact-info p {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 2em;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: 1em;
  color: var(--text-secondary);
}
.contact-item .contact-icon {
  font-size: 1.2em;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.contact-form input,
.contact-form textarea {
  padding: 1em;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: "Lato", sans-serif;
  font-size: 0.95em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,71,75,0.15);
}
.contact-form .button {
  align-self: flex-start;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }
}

.form-success {
  padding: 2em;
  border: 2px solid var(--red);
  background: rgba(229,71,75,0.08);
  color: var(--text-primary);
  text-align: center;
  display: none;
}
.form-success h3 {
  color: var(--white);
  margin-bottom: 0.3em;
}
.form-success p {
  color: var(--text-secondary);
  margin: 0;
}

.form-error {
  padding: 2em;
  border: 2px solid #ff4444;
  background: rgba(255,68,68,0.08);
  color: var(--text-primary);
  text-align: center;
  display: none;
}
.form-error h3 {
  color: #ff4444;
  margin-bottom: 0.3em;
}
.form-error p {
  color: var(--text-secondary);
  margin: 0;
}

/* Button loading state */
.button.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
#footer {
  background: linear-gradient(90deg,
    #0a0a0a, #1a1a1a, #242424, #1a1a1a, #0f0f0f, #222, #0a0a0a
  );
  background-size: 200% auto;
  animation: barShift 18s linear infinite;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  padding: 3em 0 2em;
}
#footer a { color: rgba(255,255,255,0.5); }
#footer a:hover { color: var(--white); text-decoration: none; }
#footer p { color: rgba(255,255,255,0.3); font-size: 0.9em; margin: 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 2em;
  margin-bottom: 1.5em;
  justify-content: flex-start;
}
.footer-nav a {
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  font-size: 0.85em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════
   ANIMATIONS — loading gate
   ══════════════════════════════════════════════════ */
body.is-loading *, body.is-loading *::before, body.is-loading *::after {
  animation: none !important;
  transition: none !important;
}
