﻿/* ═══════════════════════════════════════════════════════════
   Scott Randall Creative — Portfolio
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0a0a;
  --bg-alt:     #111111;
  --border:     #1e1e1e;
  --border-mid: #2a2a2a;
  --text:       #f0f0f0;
  --text-muted: #a5a5a5;
  --accent:     #ffffff;
  --nav-h:      68px;

  --font: 'Trebuchet MS', 'Gill Sans', 'Segoe UI', Arial, sans-serif;
  --font-heading: Georgia, 'Times New Roman', Times, serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}


/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

#navbar.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 45px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--accent); }

.nav-links .nav-cta {
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ── Hero ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-inner {
  width: 100%;
  max-width: 1400px;
  padding: calc(var(--nav-h) + 5rem) 3rem 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Two-column editorial split — kept for reference, no longer used */
.hero-split {
  display: contents;
}

.hero-name {
  display: flex;
  flex-direction: column;
  line-height: 0.93;
  margin-bottom: 1.6rem;
}

.hero-name-line1 {
  font-size: clamp(2.5rem, 5vw, 5.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero-name-line2 {
  font-size: clamp(2.5rem, 5vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.hero-disciplines {
  font-size: clamp(0.58rem, 0.85vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-folio-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-bottom: 0.1em;
}

.hero-folio-img {
  width: min(520px, 82vw);
  height: auto;
  display: block;
  margin-bottom: 1.6rem;
}

.hero-folio-word {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 22vw, 188rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 1.6rem;
  user-select: none;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  transition: color 0.2s;
  animation: bounce 2.2s ease-in-out infinite;
}

.hero-scroll:hover,
.hero-scroll:focus-visible { color: var(--accent); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}


/* ── About ───────────────────────────────────────────────── */
#about {
  padding: 8rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: start;
}

#about h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.75rem;
  color: var(--accent);
}

#about h2 em { font-style: italic; font-weight: 300; }

#about p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

#about p:last-child { margin-bottom: 0; }

#about p strong { color: var(--text); font-weight: 700; }

.about-meta { display: flex; flex-direction: column; gap: 2rem; }

.about-meta-block h4 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-mid);
}

.about-meta-block li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}


/* ── Folio Sections (shared) ─────────────────────────────── */
#art-direction,
#graphic-design,
#commercial-illustration {
  padding: 7rem 0 5rem;
  border-top: 1px solid var(--border);
}

#graphic-design {
  background: var(--bg-alt);
}

.folio-header {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  padding: 0 2rem;
}

.folio-heading {
  font-size: clamp(8.6rem, 5.5vw, 5rem);
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  text-align: center;
}

.folio-heading strong {
  font-weight: 700;
}


/* ── Carousel ────────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3.75rem;
}

.carousel-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1.5rem;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-card:hover {
  outline-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.carousel-card:focus-visible {
  outline-color: var(--accent);
}

/* picture element fills the card exactly like the img did */
.carousel-card picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Portrait aspect ratio for mobile images */
@media (max-width: 768px) {
  .carousel-card {
    aspect-ratio: 9 / 16;
  }
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 0.75rem); /* offset for bottom padding */
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-mid);
  color: var(--text);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
  color: var(--accent);
}

.carousel-btn:disabled { opacity: 0.2; pointer-events: none; }

.carousel-prev { left: 0; }
.carousel-next { right: 0; }


/* ── Contact ─────────────────────────────────────────────── */
#contact {
  padding: 8rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

#contact h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

#contact p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-email:hover,
.contact-email:focus-visible { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-group label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: rgba(255, 255, 255, 0.3); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #444; }

.btn-submit {
  align-self: flex-start;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: background 0.2s, opacity 0.2s;
}

.btn-submit:hover { background: #d8d8d8; }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.cf-turnstile-wrap {
  /* Turnstile renders an iframe — keep it flush with the form */
  display: flex;
  align-items: center;
  min-height: 65px;
}

.form-status {
  font-size: 0.875rem;
  padding: 0.8rem 1rem;
  line-height: 1.5;
  border-radius: 2px;
}

.form-status.success {
  background: rgba(50, 200, 100, 0.08);
  color: #5de090;
  border: 1px solid rgba(50, 200, 100, 0.2);
}

.form-status.error {
  background: rgba(220, 50, 50, 0.08);
  color: #f87171;
  border: 1px solid rgba(220, 50, 50, 0.2);
}

.form-status[hidden] { display: none; }


/* ── Footer ──────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo { height: 32px; width: auto; }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


/* ── Fullscreen Viewer ───────────────────────────────────── */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer[hidden] { display: none !important; }

.viewer-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 3.5rem 5.5rem;
  background: #ffffff;
}

.viewer-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}

.viewer-close {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2001;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #111;
  border-radius: 50%;
  transition: background 0.2s;
}

.viewer-close:hover { background: rgba(0, 0, 0, 0.18); }

.viewer-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2001;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #111;
  border-radius: 50%;
  transition: background 0.2s;
}

.viewer-nav:hover  { background: rgba(0, 0, 0, 0.14); }
.viewer-nav:disabled { opacity: 0.2; pointer-events: none; }

.viewer-prev { left: 1.1rem; }
.viewer-next { right: 1.1rem; }

.viewer-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.12em;
  user-select: none;
  white-space: nowrap;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .carousel-card { width: calc(60% - 0.5rem); }
}

@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3.5rem; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3.5rem; }
  .carousel-card { width: calc(75% - 0.5rem); }
  .folio-heading { font-size: clamp(1.6rem, 4vw, 2.5rem); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .hero-inner { padding-inline: 2rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
  }

  .nav-links .nav-cta {
    margin: 0.85rem 2rem;
    display: inline-block;
    width: auto;
    border: 1px solid var(--border-mid);
  }

  #about, #contact { padding: 5rem 0; }

  #art-direction,
  #graphic-design,
  #commercial-illustration { padding: 5rem 0 4rem; }

  .carousel-card { width: calc(88vw - 3.75rem); }

  .viewer-img-wrap { padding: 3.5rem 3.75rem; }
  .viewer-nav { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .hero-inner { padding-inline: 1.5rem; }



  .carousel-wrap  { padding: 0 2.75rem; }
  .carousel-card  { width: 90vw; }
  .folio-heading { font-size: clamp(1.4rem, 6vw, 2rem); }

  .footer-inner   { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .viewer-img-wrap { padding: 3.5rem 2.75rem; }
  .viewer-nav    { width: 40px; height: 40px; }
  .viewer-prev   { left: 0.5rem; }
  .viewer-next   { right: 0.5rem; }
}
