/* ============================================================
   ROSS LEAVER — LILCO-INSPIRED PORTFOLIO
============================================================ */

:root {
  --black: #000000;
  --white: #f4f4f0;
  --mint: #B7DFCF;
  --gray: #777772;
  --dark-gray: #1a1a18;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "DM Mono", monospace;
  --page-padding: clamp(20px, 4vw, 64px);
  --content-width: 1600px;
  --border: 1px solid rgba(244, 244, 240, 0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

section {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.section-number,
.section-title,
.eyebrow,
.work-year,
.feature-caption,
.site-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-number { color: var(--mint); }

.section-header {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding-bottom: 24px;
  border-bottom: var(--border);
}

/* Header */
.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px var(--page-padding);
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}

.site-header.header-hidden { transform: translateY(-100%); }

.site-logo { display: block; width: 42px; }
.site-logo img { width: 100%; height: auto; }

.main-nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.main-nav a { position: relative; }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--mint);
  transition: width 250ms ease;
}

.main-nav a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 130px;
  padding-bottom: 32px;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
}

.hero-content { max-width: 1300px; }

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero-intro {
  max-width: 520px;
  margin: 56px 0 0 auto;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.arrow { color: var(--mint); font-size: 20px; }

/* Statement */
.statement {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding-top: 180px;
  padding-bottom: 220px;
}

.statement-content { max-width: 1000px; }

.large-statement {
  margin: 0;
  font-size: clamp(42px, 6vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

/* Work */
.work { padding-bottom: 180px; }
.work-list { margin-top: 0; }

.work-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr 3fr 40px;
  gap: 30px;
  align-items: start;
  padding: 34px 0;
  border-bottom: var(--border);
  transition: background-color 300ms ease, padding-left 300ms ease, padding-right 300ms ease;
}

.work-item:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: var(--dark-gray);
}

.work-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.work-description { max-width: 620px; }

.work-description h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.work-description p {
  margin: 0;
  color: #aaa;
  font-size: 16px;
  line-height: 1.4;
}

.work-arrow {
  color: var(--mint);
  font-size: 24px;
  text-align: right;
}

/* Feature */
.feature { padding-bottom: 180px; }

.feature-image {
  position: relative;
  overflow: hidden;
}

.feature-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 600ms ease, transform 800ms cubic-bezier(.2,.7,.2,1);
}

.feature-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.feature-caption {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  color: var(--gray);
}

/* About */
.about { padding-bottom: 220px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10vw;
  padding-top: 80px;
}

.about-heading h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.about-copy {
  max-width: 520px;
  padding-top: 10px;
}

.about-copy p {
  margin: 0 0 28px;
  color: #aaa;
  font-size: 18px;
  line-height: 1.45;
}

/* After hours */
.after-hours {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10vw;
  padding-bottom: 220px;
}

.after-hours-image { overflow: hidden; }

.after-hours-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%);
}

.after-hours-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.after-hours-copy h2 {
  margin: 40px 0;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.after-hours-copy p {
  max-width: 400px;
  margin: 0;
  color: #aaa;
  font-size: 18px;
  line-height: 1.45;
}

/* Contact */
.contact {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 80px;
}

.contact-content { padding-bottom: 30px; }

.contact-content h2 {
  max-width: 1100px;
  margin: 0 0 70px;
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mint);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.contact-link span {
  font-size: 20px;
  transition: transform 250ms ease;
}

.contact-link:hover span { transform: translate(4px, -4px); }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 24px var(--page-padding);
  border-top: var(--border);
  color: var(--gray);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a:hover { color: var(--mint); }
.site-footer > div:last-child { text-align: right; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 800px) {
  .main-nav { display: none; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0 8px 8px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--white);
  }

  .main-nav.is-open {
    position: absolute;
    top: 75px;
    left: var(--page-padding);
    right: var(--page-padding);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--dark-gray);
    border: var(--border);
  }

  .hero {
    min-height: 90svh;
    padding-top: 110px;
  }

  .hero h1 { font-size: clamp(58px, 16vw, 110px); }

  .hero-intro {
    margin-top: 40px;
    margin-left: 0;
    font-size: 21px;
  }

  .statement {
    display: block;
    padding-top: 120px;
    padding-bottom: 140px;
  }

  .statement-content { margin-top: 50px; }

  .large-statement { font-size: clamp(40px, 10vw, 65px); }

  .section-header { grid-template-columns: 1fr 2fr; }

  .work { padding-bottom: 120px; }

  .work-item {
    grid-template-columns: 1fr 1fr 30px;
    gap: 15px;
  }

  .work-year {
    grid-column: 1 / -1;
    margin-bottom: 5px;
  }

  .work-logo { grid-column: 1; }
  .work-description { grid-column: 2; }
  .work-arrow { grid-column: 3; }

  .feature { padding-bottom: 120px; }

  .feature-image img { aspect-ratio: 4 / 5; }

  .about { padding-bottom: 140px; }

  .about-grid {
    display: block;
    padding-top: 60px;
  }

  .about-heading h2 { font-size: clamp(46px, 11vw, 70px); }
  .about-copy { margin-top: 60px; }

  .after-hours {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-bottom: 140px;
  }

  .after-hours-image img { aspect-ratio: 1 / 1; }
  .after-hours-copy h2 { margin: 30px 0; }

  .contact { min-height: 80svh; }

  .contact-content h2 {
    font-size: clamp(58px, 15vw, 100px);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-links { justify-content: flex-end; }

  .site-footer > div:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 480px) {
  :root { --page-padding: 18px; }

  .site-header { padding-top: 18px; }
  .site-logo { width: 36px; }
  .eyebrow span:last-child { display: none; }

  .work-item { grid-template-columns: 1fr 30px; }
  .work-logo { grid-column: 1; }
  .work-description {
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .work-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-links { justify-content: flex-end; }

  .site-footer > div:last-child {
    width: 100%;
  }
}
