/* =============================================
   ANALOGFILM — Global Styles
   ============================================= */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --surface: #161616;
  --border: rgba(255,255,255,0.07);
  --white: #ffffff;
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --font: 'Inter', sans-serif;
  --nav-h: 76px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: var(--font); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.97);
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-60);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active {
  border-bottom: 1px solid var(--white-40);
  padding-bottom: 2px;
}

.hamburger {
  display: none;
  color: var(--white);
  padding: 8px;
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--white);
  padding: 8px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav a {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white-40);
  transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--white); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.5) 0%,
    rgba(10,10,10,0.1) 40%,
    rgba(10,10,10,0.1) 60%,
    rgba(10,10,10,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: clamp(60px, 14vw, 160px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--white);
}

.hero-sub {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white-40);
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white-40);
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* =============================================
   EDITORIAL SECTION
   ============================================= */
.editorial-section {
  background: var(--bg);
  padding: 120px 60px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.editorial-entry {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 60px;
  align-items: end;
}

.editorial-entry.reverse {
  grid-template-columns: 4fr 8fr;
}

.editorial-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/5;
}

.editorial-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
  transform: scale(1.03);
}

.editorial-img-wrap:hover .editorial-img {
  transform: scale(1);
  filter: grayscale(0%);
}

.editorial-text {
  padding-bottom: 40px;
}

.editorial-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--white-40);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.editorial-title {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.editorial-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--white-60);
  max-width: 320px;
  margin-bottom: 32px;
}

.editorial-btn {
  font-size: 10px;
  letter-spacing: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--white-20);
  padding-bottom: 6px;
  transition: border-color 0.3s, color 0.3s;
}

.editorial-btn:hover { border-color: var(--white); }

/* =============================================
   BENTO GRID
   ============================================= */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.bento-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
}

.bento-large { grid-column: span 1; }

.bento-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: opacity 0.5s, filter 0.5s;
}

.bento-item:hover .bento-img {
  opacity: 0.9;
  filter: grayscale(0%);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.bento-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--white-60);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bento-title {
  font-size: 18px;
  font-weight: 600;
}

.bento-small {
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
}

.bento-icon {
  font-size: 28px;
  color: var(--white);
}

.bento-info-title {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 8px;
}

.bento-info-desc {
  font-size: 11px;
  color: var(--white-40);
  line-height: 1.6;
  margin-bottom: 12px;
}

.bento-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  transition: color 0.3s;
}

.bento-link:hover { color: var(--white-60); }

.bento-cta {
  background: var(--white);
  color: #000;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s;
}

.bento-cta:hover { background: #e5e5e5; }

.bento-cta a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: #000;
}

.bento-arrow { font-size: 28px; }

.bento-cta-title {
  font-size: 18px;
  font-weight: 900;
}

.bento-cta-desc {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  position: relative;
  padding: 160px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

.cta-bg-text {
  position: absolute;
  font-size: 18vw;
  font-weight: 900;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  pointer-events: none;
  left: -5%;
  user-select: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
}

.cta-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.cta-title em {
  font-style: italic;
  font-weight: 200;
}

.cta-desc {
  font-size: 16px;
  color: var(--white-60);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 48px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-primary {
  background: var(--white);
  color: #000;
  padding: 16px 40px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s;
}

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

.btn-secondary {
  border: 1px solid var(--white-20);
  color: var(--white);
  padding: 16px 40px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
  background: var(--white-10);
  border-color: var(--white-40);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  padding: 40px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 900;
}

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-40);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-40);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--white); }

/* =============================================
   GALLERY PAGE
   ============================================= */
.gallery-main {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.filter-bar {
  display: flex;
  gap: 40px;
  padding: 0 60px 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  overflow-x: auto;
}

.filter-btn {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
  padding-bottom: 4px;
  transition: color 0.3s;
  white-space: nowrap;
}

.filter-btn:hover { color: var(--white); }

.filter-btn.active {
  color: var(--white);
  border-bottom: 1px solid var(--white);
  font-weight: 700;
}

.masonry-grid {
  columns: 3;
  column-gap: 16px;
  padding: 0 60px;
}

.masonry-item {
  position: relative;
  break-inside: avoid;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: crosshair;
  background: var(--surface);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.5s,
              opacity 0.5s;
}

.masonry-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
  opacity: 0.6;
}

.masonry-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  transition: opacity 0.4s;
}

.masonry-item:hover .masonry-hover { opacity: 1; }

.masonry-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--white-60);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.masonry-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.masonry-item.hidden {
  display: none;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-info {
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--white);
  padding: 12px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-main {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  padding-left: 60px;
  padding-right: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-header { margin-bottom: 80px; }

.about-title {
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-divider {
  width: 80px;
  height: 1px;
  background: var(--white-20);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.about-bio { margin-bottom: 64px; }

.about-bio-main {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--white-60);
  margin-bottom: 24px;
}

.about-bio-sub {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.45);
}

.about-contacts { display: flex; flex-direction: column; gap: 32px; }

.about-contact-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--white-40);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.about-contact-value {
  font-size: 18px;
  font-weight: 400;
  transition: color 0.3s;
}

.about-contact-value:hover { color: var(--white-60); }

.about-portrait-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.about-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: transform 0.7s;
}

.about-portrait-wrap:hover .about-portrait { transform: scale(1.04); }

.about-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.4), transparent);
  pointer-events: none;
}

.about-portrait-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
}

.about-quote {
  margin-top: 160px;
  padding-left: calc(5fr / 12 * 100%);
  padding-left: 41.66%;
}

.about-quote blockquote {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--white-60);
  max-width: 540px;
  margin-bottom: 24px;
}

.about-quote-attr {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-main {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  padding-left: 60px;
  padding-right: 60px;
  min-height: 100vh;
}

.contact-header { margin-bottom: 80px; }

.contact-title {
  font-size: clamp(60px, 14vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  align-items: start;
}

.contact-form { margin-bottom: 60px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.form-group { margin-bottom: 40px; }

.form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 10px 0;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.4s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--white); }

.form-group textarea { resize: none; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: #000;
  padding: 18px 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s;
  cursor: pointer;
  font-family: var(--font);
}

.form-submit:hover { background: #e5e5e5; }

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  font-size: 13px;
  color: var(--white-60);
}

.form-success.show { display: block; }

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.contact-info-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-info-val {
  font-size: 16px;
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.6;
  transition: color 0.3s;
}

a.contact-info-val:hover { color: var(--white); }

.contact-img-col { position: sticky; top: calc(var(--nav-h) + 40px); }

.contact-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.contact-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7);
  transition: transform 1s;
}

.contact-img-wrap:hover img { transform: scale(1.05); }

.contact-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.5), transparent);
  pointer-events: none;
}

.contact-bottom {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.contact-bottom-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-bottom-item .material-symbols-outlined {
  font-size: 28px;
  color: var(--white);
}

.contact-bottom-item p {
  font-size: 13px;
  font-weight: 300;
  color: var(--white-40);
  line-height: 1.7;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .editorial-entry,
  .editorial-entry.reverse {
    grid-template-columns: 1fr;
  }

  .editorial-img-wrap { aspect-ratio: 16/9; }

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-column: span 2; }

  .masonry-grid { columns: 2; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-portrait-wrap { aspect-ratio: 16/9; }
  .about-quote { padding-left: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-img-col { display: none; }
  .contact-bottom { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-inner { padding: 0 20px; }

  .editorial-section { padding: 80px 20px; gap: 80px; }
  .cta-section { padding: 100px 20px; }
  .filter-bar { padding: 0 20px 32px; gap: 24px; }
  .masonry-grid { columns: 1; padding: 0 20px; }

  .about-main,
  .contact-main { padding-left: 20px; padding-right: 20px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }

  .cta-btns { flex-direction: column; align-items: center; }
}
