/* ============================
   2oosos — Photography v2
   Editorial · Japanese Minimal
   style.css
   ============================ */

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

/* ---------- VARIABLES ---------- */
:root {
  --cream:      #f5f0e8;
  --cream-2:    #ede8df;
  --cream-3:    #e4ddd2;
  --ink:        #16120e;
  --ink-2:      #2e2820;
  --ink-soft:   #6b6258;
  --ink-dim:    #b0a89e;
  --red:        #8b3a2a;
  --red-light:  #a84f3c;
  --border:     rgba(22,18,14,0.1);
  --border-md:  rgba(22,18,14,0.18);

  --font-disp:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', sans-serif;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t:          0.35s;
  --radius:     2px;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* Scrollbar */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--ink-dim); }
::selection { background: var(--ink); color: var(--cream); }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================
   NAVBAR
   ============================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}

.logo-wordmark {
  font-family: var(--font-disp);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: color var(--t);
}
.logo-wordmark:hover { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color var(--t);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--t);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-ig {
  color: var(--ink-soft);
  transition: color var(--t);
  display: flex; align-items: center;
}
.nav-ig:hover { color: var(--red); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: var(--t);
}
.hamburger span:first-child { width: 22px; }
.hamburger span:last-child  { width: 14px; }
.hamburger:hover span { width: 22px; background: var(--red); }

/* Mobile menu */
.mob-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 89;
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: var(--t) var(--ease);
}
.mob-menu.open { pointer-events: all; opacity: 1; transform: translateY(0); }
.mob-menu nav { display: flex; flex-direction: column; gap: 1.2rem; }
.mob-link {
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color var(--t);
}
.mob-link:hover { color: var(--red); }
.mob-ig {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

/* ============================
   HERO
   ============================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  padding: 120px 2.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 0 4rem;
  position: relative;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.hero-issue {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.dot { color: var(--red); }

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-disp);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.title-line.italic { font-style: italic; color: var(--red); font-weight: 400; }

.hero-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 360px;
  line-height: 1.8;
  border-left: 2px solid var(--red);
  padding-left: 1rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.75rem 1.75rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t);
}
.hero-btn:hover { background: var(--red); }

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero-img-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream-3);
}

.hero-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-style: italic;
}
.hero-img-placeholder small { font-size: 0.65rem; }

.hero-frame-deco {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 50%; height: 50%;
  border: 1px solid var(--border-md);
  z-index: -1;
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.caption-line { flex: 1; height: 1px; background: var(--border-md); }

.hero-scroll {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  align-self: end;
}
.scroll-track {
  width: 40px; height: 2px;
  background: var(--border-md);
  overflow: hidden;
}
.scroll-thumb {
  width: 40%; height: 100%;
  background: var(--red);
  animation: scrollMove 1.8s var(--ease) infinite;
}
@keyframes scrollMove {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ============================
   GALLERY
   ============================ */
#gallery {
  background: var(--cream-2);
  padding: 6rem 0;
}

.gallery-head {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-head-left h2 {
  font-family: var(--font-disp);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
.gallery-head-left h2 em {
  font-style: italic;
  color: var(--red);
}

.gallery-head-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.8;
  text-align: right;
  max-width: 220px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 3px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.g-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream-3);
  cursor: pointer;
}

.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.g-item:hover img { transform: scale(1.04); filter: brightness(0.88); }

.g-empty { background: var(--cream-3); }
.g-empty::after {
  content: '';
  position: absolute;
  inset: 0;
}

.g-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--t);
}
.g-item:hover .g-hover { opacity: 1; }
.g-hover span {
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(245,240,232,0.9);
  line-height: 1;
}

/* Bento-style layout tweaks */
.g-item--tall { grid-row: span 1; }
.g-item--wide { grid-column: span 1; }

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22,18,14,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lb-inner { max-width: 90vw; max-height: 90vh; }
.lb-inner img { max-width: 100%; max-height: 88vh; object-fit: contain; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: 1px solid rgba(245,240,232,0.15);
  color: rgba(245,240,232,0.5);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  color: var(--cream);
  border-color: rgba(245,240,232,0.5);
}

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(245,240,232,0.35);
}

/* ============================
   PRESETS
   ============================ */
#presets {
  background: var(--cream);
  padding: 6rem 0;
}

.presets-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 2rem;
}
.presets-header h2 {
  font-family: var(--font-disp);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.presets-header p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

.presets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.preset-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color var(--t);
}
.preset-card:hover { border-color: var(--border-md); }

.pc-number {
  position: absolute;
  top: 1rem; left: 1.2rem;
  font-family: var(--font-disp);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--ink-dim);
  z-index: 2;
}

/* Preview */
.pc-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--cream-3);
  overflow: hidden;
  user-select: none;
}

.pc-before, .pc-after {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.pc-after { clip-path: inset(0 50% 0 0); }

.pc-empty { background: var(--cream-3); }

.pc-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(22,18,14,0.5);
  pointer-events: none;
  z-index: 3;
}

.pc-knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--ink);
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(22,18,14,0.2);
}

.pc-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 5;
  -webkit-appearance: none;
  appearance: none;
}

.pc-tag {
  position: absolute;
  bottom: 0.6rem;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 2px 7px;
  background: rgba(245,240,232,0.8);
  color: var(--ink-soft);
  pointer-events: none;
  z-index: 3;
}
.pc-tag--b { left: 0.6rem; }
.pc-tag--a { right: 0.6rem; }

/* Body */
.pc-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pc-body h3 {
  font-family: var(--font-disp);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}
.pc-body p {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.pc-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  width: fit-content;
  padding: 0.6rem 1.4rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--t);
}
.pc-dl:hover { background: var(--red); }

/* ============================
   ABOUT
   ============================ */
#about {
  background: var(--cream-2);
  padding: 6rem 0;
}

.about-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: center;
}

.about-img-col { position: relative; }

.about-img-box {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream-3);
  overflow: visible;
}

.about-img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: saturate(0.85);
}

.about-img-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.4rem;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 0.8rem;
}
.about-img-ph small { font-size: 0.65rem; }

.about-sticker {
  position: absolute;
  bottom: -1.2rem; right: -1.2rem;
  width: 72px; height: 72px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-disp);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
  line-height: 1.3;
  z-index: 2;
}

.about-text-col { display: flex; flex-direction: column; gap: 1.2rem; }

.about-text-col h2 {
  font-family: var(--font-disp);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}
.about-text-col h2 em { font-style: italic; color: var(--red); }

.about-text-col p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 480px;
}
.about-text-col p strong { color: var(--ink); font-weight: 400; }

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid rgba(139,58,42,0.3);
  padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.about-cta:hover { color: var(--red-light); border-color: var(--red-light); }

/* ============================
   CONTACT
   ============================ */
#contact {
  background: var(--ink);
  padding: 8rem 0;
}

.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.contact-wrap .eyebrow { color: var(--red-light); }

.contact-wrap h2 {
  font-family: var(--font-disp);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
}
.contact-wrap h2 em { font-style: italic; color: var(--red-light); }

.contact-wrap p {
  font-size: 0.87rem;
  color: rgba(245,240,232,0.45);
  line-height: 1.9;
}

.contact-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  background: var(--red);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--t);
}
.contact-btn:hover { background: var(--red-light); }
.contact-btn .arrow { transition: transform var(--t); }
.contact-btn:hover .arrow { transform: translateX(4px); }

/* ============================
   FOOTER
   ============================ */
#footer {
  background: var(--ink-2);
  border-top: 1px solid rgba(245,240,232,0.06);
  padding: 2rem 0;
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-disp);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.5);
}

.footer-copy {
  font-size: 0.68rem;
  color: rgba(245,240,232,0.2);
  letter-spacing: 0.05em;
}

.footer-ig {
  color: rgba(245,240,232,0.3);
  transition: color var(--t);
  display: flex; align-items: center;
}
.footer-ig:hover { color: var(--red-light); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-right { display: none; }
  .hero-scroll { grid-column: 1; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .presets-row  { grid-template-columns: 1fr; max-width: 540px; }
  .about-wrap   { grid-template-columns: 1fr; gap: 3rem; }
  .about-sticker { display: none; }
}

@media (max-width: 640px) {
  #navbar { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #hero { padding: 90px 1.25rem 3rem; }
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 0 1.25rem; }
  .gallery-head-desc { text-align: left; max-width: 100%; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); padding: 0 1.25rem; }
  .presets-row   { padding: 0 1.25rem; }
  .about-wrap    { padding: 0 1.25rem; }
  .footer-wrap   { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
