/* ─────────────────────────────────────────────
   NADFORMA — style.css
   Typeface: Cabinet Grotesk
   ───────────────────────────────────────────── */

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

:root {
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --grey:       #8C8C8C;
  --grey-light: #E8E8E8;

  --edge:   32px;
  --col:    min(580px, 100%);
  --gap:    clamp(80px, 14vw, 180px);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cabinet Grotesk', sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── OPACITY FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--edge);
  background: var(--white);
}

.nav-logo {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}

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


/* ══════════════════════════════════════
   TRAVELING RULE
══════════════════════════════════════ */
.rule-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.rule-line {
  position: absolute;
  top: 0;
  left: var(--edge);
  right: var(--edge);
  height: 1px;
  background: var(--black);
  transform: translateY(64px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rule-line.active {
  opacity: 1;
}


/* ══════════════════════════════════════
   PHOTO BLOCKS (blank image placeholders)
══════════════════════════════════════ */
.photo-block {
  background: var(--grey-light);
  position: relative;
}

.photo-block::after {
  content: attr(data-label);
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--grey);
}


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  padding-top: calc(64px + var(--gap));
  padding-left: var(--edge);
  padding-right: var(--edge);
  padding-bottom: var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  min-height: 90vh;
  align-items: start;
}

.hero-eyebrow {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  padding-bottom: 28px;
}

.hero-headline {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  font-size: clamp(64px, 11vw, 148px);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.02em;
  padding-right: 40px;
  align-self: end;
}

.hero-headline em {
  font-style: italic;
  font-weight: 100;
}

.hero-photo-block {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  min-height: 520px;
}


/* ══════════════════════════════════════
   STATEMENT
══════════════════════════════════════ */
.statement {
  padding: var(--gap) var(--edge);
  display: flex;
  justify-content: flex-end;
}

.statement-text {
  max-width: 460px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--black);
}


/* ══════════════════════════════════════
   WORK
══════════════════════════════════════ */
.work {
  padding: 0 var(--edge) var(--gap);
}

.work-header {
  padding-bottom: 60px;
  border-top: 1px solid var(--black);
  padding-top: 20px;
}

.section-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Work item base */
.work-item {
  margin-bottom: clamp(80px, 12vw, 160px);
}

/* 01 — large: photo left, meta right */
.work-item--large {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  align-items: end;
}

.photo-block--tall {
  aspect-ratio: 4/5;
  width: 100%;
}

.work-meta {
  padding-bottom: 4px;
}

.work-index {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--grey);
  margin-bottom: 16px;
}

.work-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.work-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey);
  max-width: 220px;
  margin-bottom: 24px;
}

.work-year {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--grey);
}

/* 02 — right: meta left, photo right */
.work-item--right {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: end;
  padding-left: clamp(40px, 8vw, 120px);
}

.work-meta--right {
  padding-bottom: 4px;
}

.photo-block--medium {
  aspect-ratio: 3/4;
  width: 100%;
}

/* 03 — full width photo */
.work-item--full {
  display: block;
}

.photo-block--wide {
  width: 100%;
  aspect-ratio: 16/7;
  margin-bottom: 28px;
}

.work-meta--below {
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.work-meta--below .work-title {
  margin-bottom: 0;
}

.work-meta--below .work-desc {
  margin-bottom: 0;
}

/* 04 — offset: photo right-aligned, narrow */
.work-item--offset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-right: clamp(40px, 8vw, 120px);
}

.photo-block--square {
  aspect-ratio: 1;
  width: 100%;
  grid-column: 2;
  grid-row: 1;
}

.work-meta--offset {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding-bottom: 4px;
}


/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about {
  padding: var(--gap) var(--edge);
  border-top: 1px solid var(--black);
}

.about-inner {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 20px;
}

.about-body {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.005em;
  grid-column: 2 / 3;
}

.photo-block--about {
  grid-column: 3 / 4;
  aspect-ratio: 3/4;
  width: 100%;
}


/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact {
  padding: var(--gap) var(--edge);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--black);
}

.contact-link {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-link:hover {
  color: var(--grey);
}


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  padding: 24px var(--edge);
  border-top: 1px solid var(--grey-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: var(--grey);
  letter-spacing: 0.05em;
}


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --edge: 20px;
    --gap:  60px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: unset;
    padding-top: calc(64px + 48px);
  }

  .hero-eyebrow { grid-column: 1; grid-row: 1; }
  .hero-headline { grid-column: 1; grid-row: 2; padding-right: 0; padding-bottom: 32px; }
  .hero-photo-block { grid-column: 1; grid-row: 3; min-height: 320px; }

  .work-item--large,
  .work-item--right,
  .work-item--offset {
    grid-template-columns: 1fr;
  }

  .work-item--right { padding-left: 0; }
  .work-item--offset { padding-right: 0; }

  .photo-block--square { grid-column: 1; grid-row: 1; }
  .work-meta--offset { grid-column: 1; grid-row: 2; }

  .work-meta--below {
    flex-direction: column;
    gap: 10px;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-inner .section-label { margin-bottom: 0; }
  .about-body { grid-column: 1; }
  .photo-block--about { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
  }
  .rule-line {
    transition: none;
  }
}
