/* ChloeTrubyk — Dirty Shelter Girl
   Dark, edgy modeling portfolio */

:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --ink: #f2f0eb;
  --muted: #9a9590;
  --accent: #e10600;
  --line: #2a2a2a;
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Top contact bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-tag {
  opacity: 0.9;
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 2px solid #fff;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.topbar-phone:hover,
.topbar-phone:focus-visible {
  background: #fff;
  color: var(--accent);
  outline: none;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 42px;
  z-index: 90;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 1.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-noise {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  color: var(--accent);
  -webkit-text-stroke: 0;
  text-shadow: 4px 4px 0 #3a0000;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #ff1a12;
}

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

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.hero-image {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
}

/* Empty photo slots */
.img-slot {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      -45deg,
      #141414,
      #141414 12px,
      #1a1a1a 12px,
      #1a1a1a 24px
    );
  border: 2px dashed #3a3a3a;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.img-slot small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: #5c5c5c;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.hero-slot {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.gallery-item .img-slot {
  min-height: 0;
  height: 100%;
}

.hero-image-frame {
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 2px solid var(--accent);
  z-index: -1;
}

/* ---------- Banner ---------- */
.banner {
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.banner-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: banner-scroll 18s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.banner-track span::after {
  content: "✦";
  margin-left: 3rem;
  color: var(--accent);
}

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

/* ---------- Portfolio ---------- */
.portfolio {
  padding: 5rem 1.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.75rem;
}

.section-sub {
  color: var(--muted);
  margin-top: 0.75rem;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
}

.gallery-item:hover::after {
  border-color: var(--accent);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* ---------- About ---------- */
.about {
  padding: 5rem 1.5rem;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.about-text strong {
  color: var(--ink);
}

.about-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about-tags li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #150000 100%);
  border-top: 1px solid var(--line);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.contact-sub {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 4rem;
    gap: 2.5rem;
  }

  .hero-image {
    justify-self: center;
    order: -1;
    width: min(100%, 340px);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  .site-header {
    flex-direction: column;
    top: 0;
    position: relative;
  }

  .nav {
    gap: 1rem;
    font-size: 0.75rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }
}
