/* ============================================================
   DENIZ AREL — fashion photographer
   Palette: warm film black, bone, ash taupe, safelight red
   Type: Bodoni Moda (display) / Archivo (utility)
   ============================================================ */

:root {
  --ink: #0c0b09;
  --ink-soft: #14120e;
  --bone: #e9e2d6;
  --ash: #8a8272;
  --safelight: #c0331f;
  --safelight-hot: #e0492f;
  --hairline: rgba(233, 226, 214, 0.14);

  --display: "Bodoni Moda", "Didot", serif;
  --utility: "Archivo", "Helvetica Neue", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--utility);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--safelight); color: var(--bone); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

/* ------------------------------------------------------------
   Utility text
   ------------------------------------------------------------ */

.eyebrow {
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ------------------------------------------------------------
   Preloader
   ------------------------------------------------------------ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

.loader-mark {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.loader-mark em { color: var(--safelight); }

.loader-count {
  font-family: var(--utility);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}

.loader-bar {
  width: min(260px, 50vw);
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--safelight);
  transform: scaleX(0);
  transform-origin: left;
}

.loader-note {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  opacity: 0.6;
}

/* ------------------------------------------------------------
   Cursor
   ------------------------------------------------------------ */

.cursor { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; background: var(--safelight-hot); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(233, 226, 214, 0.35);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor.is-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--safelight-hot);
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

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

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  mix-blend-mode: difference;
}

.head-mark {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.head-nav { display: flex; gap: 2rem; }
.head-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.head-nav a:hover, .head-nav a:focus-visible { opacity: 1; }

.head-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--safelight-hot);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (max-width: 720px) {
  .head-status { display: none; }
  .head-nav { gap: 1.2rem; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.hero-eyebrow { margin-bottom: 1.6rem; color: var(--bone); opacity: 0.7; }

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(4.2rem, 17vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-title em { font-weight: 400; }

.hero-note {
  margin-top: 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.hero-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.scroll-hint, .hero-index {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   Manifesto
   ------------------------------------------------------------ */

.manifesto {
  padding: clamp(7rem, 16vh, 12rem) var(--gutter);
  max-width: 72rem;
}

.manifesto .eyebrow { margin-bottom: 2.4rem; }

.manifesto-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.22;
  letter-spacing: 0.005em;
}
.manifesto-text .w {
  display: inline-block;
  opacity: 0.12;
  transition: none;
}

.manifesto-meta {
  margin-top: 3.5rem;
  max-width: 34rem;
  color: var(--ash);
  font-size: 0.9rem;
}
.manifesto-sign {
  margin-top: 1.2rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--bone);
  font-size: 1rem;
}

/* ------------------------------------------------------------
   Works
   ------------------------------------------------------------ */

.works {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) var(--gutter);
}

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.2rem;
}
.works-count {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}

.work-row { border-top: 1px solid var(--hairline); }
.work-row:last-child { border-bottom: 1px solid var(--hairline); }

.work-row a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.9rem 0;
  transition: padding 0.35s ease;
}
.work-row a:hover, .work-row a:focus-visible { padding-left: 1.2rem; }

.work-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.work-title em { font-weight: 400; }
.work-row a:hover .work-title,
.work-row a:focus-visible .work-title { color: var(--safelight-hot); }

.work-meta {
  display: flex;
  gap: clamp(1rem, 4vw, 3.5rem);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .work-row a { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* ------------------------------------------------------------
   Services
   ------------------------------------------------------------ */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.services .eyebrow { margin-bottom: 1.8rem; }

.services-list li {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ash);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.services-list li:hover { color: var(--bone); letter-spacing: 0.02em; }

.clients {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.7;
  max-width: 30rem;
}
.clients-note {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--ash);
  max-width: 28rem;
}

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; gap: 3rem; }
}

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

.contact {
  padding: clamp(6rem, 16vh, 12rem) var(--gutter) 2rem;
  border-top: 1px solid var(--hairline);
}

.contact .eyebrow { margin-bottom: 1.6rem; }

.contact-mail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 7.4vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--safelight-hot), var(--safelight-hot));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.5s cubic-bezier(0.65, 0, 0.35, 1), color 0.4s ease;
}
.contact-mail em { font-weight: 400; }
.contact-mail:hover, .contact-mail:focus-visible {
  background-size: 100% 2px;
  color: var(--safelight-hot);
}

.contact-foot {
  margin-top: clamp(4rem, 10vh, 7rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
}

.contact-links { display: flex; gap: 1.8rem; }
.contact-links a,
.contact-place,
.contact-copy {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}
.contact-links a { transition: color 0.25s ease; }
.contact-links a:hover, .contact-links a:focus-visible { color: var(--safelight-hot); }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 11, 9, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: min(90vw, 62rem);
}

.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox figcaption {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}

.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: var(--gutter);
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  transition: color 0.25s ease;
}
.lightbox-close:hover, .lightbox-close:focus-visible { color: var(--safelight-hot); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  color: var(--bone);
  font-family: var(--utility);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.lightbox-prev { left: var(--gutter); }
.lightbox-next { right: var(--gutter); }
.lightbox-nav:hover, .lightbox-nav:focus-visible {
  color: var(--safelight-hot);
  border-color: var(--safelight-hot);
  background: rgba(233, 226, 214, 0.04);
}

@media (max-width: 720px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox img { max-height: 66vh; }
}

/* ------------------------------------------------------------
   Focus + reveal states
   ------------------------------------------------------------ */

:focus-visible {
  outline: 1px solid var(--safelight-hot);
  outline-offset: 4px;
}

.reveal { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1; }
  .status-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
