/* ============================================
   Adalyn Wendt — portfolio
   Minimal, white-background, agency-submission-ready
   ============================================ */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --accent: #3a3a3a;
  --serif: "Instrument Serif", "GT Super", "Tiempos", Georgia, serif;
  --sans: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --pad: clamp(24px, 5vw, 96px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Transparent header for image-first home hero */
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 50;
}
.site-header--overlay .wordmark,
.site-header--overlay .site-nav a {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.site-header--overlay .nav-toggle span { background: #fff; }
.site-header--overlay .site-nav a:hover { color: rgba(255,255,255,0.75); }

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a.active { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px var(--pad);
  border-top: 1px solid var(--line);
  margin-top: 96px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Hero (home, image-first) ---------- */

.hero-full {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}

.hero-link {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: border-color .2s ease, color .2s ease;
}
.hero-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---------- Teaser row (home, below fold) ---------- */

.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  padding: 48px var(--pad) 96px;
}

.teaser {
  display: block;
  position: relative;
  overflow: hidden;
}

.teaser img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .5s ease;
}

.teaser:hover img { transform: scale(1.02); }

.teaser-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--bg);
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Page title ---------- */

.page-title {
  padding: 72px var(--pad) 48px;
  border-bottom: 1px solid var(--line);
}
.page-title h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}
.page-title p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 520px;
}

/* ---------- Portfolio sections ---------- */

.section {
  padding: 72px var(--pad);
}

.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
}

.section-head .count {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}

.grid-runway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.grid figure, .grid-2 figure, .grid-3 figure, .grid-4 figure, .grid-runway figure {
  margin: 0;
}

.grid-2 img, .grid-3 img, .grid-runway img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity .2s ease;
}

.grid-2 img:hover, .grid-3 img:hover, .grid-runway img:hover {
  opacity: 0.88;
}
/* Landscape image that spans both columns inside .grid-2 */
.grid-2 figure.wide {
  grid-column: 1 / -1;
}
.grid-2 figure.wide img {
  aspect-ratio: 3 / 2;
}


/* ---------- Digitals page ---------- */

.digitals-intro {
  padding: 48px var(--pad) 24px;
  max-width: 720px;
}
.digitals-intro p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.digitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  padding: 24px var(--pad) 48px;
}

.digitals-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #f4f4f4;
}

.stats {
  padding: 48px var(--pad);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 64px;
  max-width: 720px;
}

.stat {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--muted);
}
.stat-value { font-variant-numeric: tabular-nums; }

/* ---------- About ---------- */

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  padding: 72px var(--pad);
  max-width: 1200px;
  align-items: start;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-body {
  max-width: 560px;
}
.about-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 24px;
}
.about-body .small {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  padding: 72px var(--pad);
  max-width: 1200px;
}

.contact-wrap h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 24px;
}

.contact-info p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.contact-info a { text-decoration: underline; }
.contact-image { margin-bottom: 32px; }
.contact-image img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-form { display: grid; gap: 18px; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .2s ease;
  margin-top: 8px;
  justify-self: start;
}
.btn:hover { background: var(--accent); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 48px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .site-header { padding: 20px var(--pad); }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--pad);
  }
  .site-header--overlay .site-nav {
    background: rgba(0,0,0,0.92);
    border-bottom: none;
  }
  .site-header--overlay .site-nav a { text-shadow: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 20px; }

  .hero-full { height: 85vh; min-height: 520px; }
  .hero-link { bottom: 28px; font-size: 10px; }

  .teasers { grid-template-columns: 1fr; padding: 32px var(--pad) 64px; }

  .grid-2, .grid-3, .grid-runway { grid-template-columns: 1fr; }
  .digitals-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; padding: 48px var(--pad); }
  .about-wrap { grid-template-columns: 1fr; padding: 48px var(--pad); }

  .site-footer { flex-direction: column; align-items: flex-start; }
}
