/* ============================================
   NIKKI.MGMT — Responsive Styles
   ============================================ */

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

:root {
  --bg: #faf9f7;
  --bg-warm: #f3f0eb;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #999;
  --border: #e8e4df;
  --border-light: #f0ece7;
  --accent: #b8956a;
  --accent-light: rgba(184, 149, 106, 0.08);
  --accent-hover: #a07d55;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --max-w: 1140px;
  --section-py: clamp(3rem, 6vw, 7rem);
  --section-px: clamp(1rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(184,149,106,0.2); color: var(--text); }

/* ── HEADER ─────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--section-px);
}

.header__logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.accent { color: var(--accent); }

.header__nav { display: flex; gap: 2.2rem; }

.header__nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
  white-space: nowrap;
}
.header__nav a:hover { color: var(--text); }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.header__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── HERO ───────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem var(--section-px) 2rem;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(184,149,106,0.07) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.hero__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.hero__title { font-family: var(--font-serif); font-size: clamp(2.5rem, 8vw, 7.5rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.hero__subtitle { font-size: 0.82rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-top: 1.25rem; }

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.hero__scroll span { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }

.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ── SECTIONS ───────────────────────────── */
.section { padding: var(--section-py) var(--section-px); scroll-margin-top: 60px; }
.section--alt { background: var(--bg-warm); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }

.section__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section__number { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; color: var(--accent); }
.section__title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -0.01em; }

/* ── ABOUT ──────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.about-text__lead { font-size: 1.1rem; line-height: 1.75; margin-bottom: 1rem; }
.about-text p:last-child { color: var(--text-secondary); font-size: 0.92rem; }

.about-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.about-quick__item { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; background: var(--bg-card); }
.about-quick__label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.about-quick__value { font-family: var(--font-serif); font-size: 1rem; }

/* ── PARAMS ─────────────────────────────── */
.params-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.param-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 0.75rem; background: var(--bg-card); text-align: center; transition: background 0.3s; }
.param-card:hover { background: var(--accent-light); }
.param-card__value { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 400; line-height: 1; }
.param-card__unit { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-top: 0.3rem; }
.param-card__label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.6rem; }

/* ── EXPERIENCE ─────────────────────────── */
.experience-list { display: flex; flex-direction: column; }
.exp-item { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-light); }
.exp-item:last-child { border-bottom: none; }
.exp-item__icon { color: var(--accent); font-size: 0.6rem; margin-top: 0.2rem; flex-shrink: 0; }
.exp-item__title { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.3rem; }
.exp-item__desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.exp-item--highlight { margin-top: 0.5rem; padding: 1.25rem; background: var(--accent-light); border: 1px solid rgba(184,149,106,0.15); border-radius: 2px; }
.exp-item--highlight .exp-item__title { color: var(--accent-hover); }

/* ── GALLERY ────────────────────────────── */
.gallery-tabs { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }

.gallery-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-tab:hover { color: var(--text-secondary); }
.gallery-tab.active { color: var(--text); }
.gallery-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--border-light);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.03); }

.gallery-empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); font-size: 0.85rem; }
.gallery-empty span { display: block; font-size: 0.7rem; margin-top: 0.4rem; }

/* ── SELFIE LAYOUT ──────────────────────── */
.selfie-top { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; margin-bottom: 6px; height: 480px; }
.selfie-hero { overflow: hidden; border-radius: 2px; background: var(--border-light); cursor: pointer; }
.selfie-hero img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.selfie-hero:hover img { transform: scale(1.03); }
.selfie-side { overflow: hidden; border-radius: 2px; background: var(--border-light); cursor: pointer; }
.selfie-side img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.selfie-side:hover img { transform: scale(1.03); }
.selfie-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.selfie-bottom .gallery-item { aspect-ratio: 1 / 1; }

/* ── SNAP LAYOUT ────────────────────────── */
.snap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.snap-grid .gallery-item { overflow: hidden; border-radius: 2px; }
.snap-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.snap-grid .gallery-item:nth-child(1) { aspect-ratio: 4 / 5; }
.snap-grid .gallery-item:nth-child(2) { aspect-ratio: 3 / 5; }
.snap-grid .gallery-item:nth-child(3) { aspect-ratio: 4 / 5; margin-top: -90px; }
.snap-grid .gallery-item:nth-child(3) img { object-position: center 10%; }
.snap-grid .gallery-item:nth-child(4) { aspect-ratio: 1 / 1; }

/* ── FULL LAYOUT ───────────────────────── */
.full-top { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; margin-bottom: 6px; height: 440px; }
.full-hero, .full-side { overflow: hidden; border-radius: 2px; background: var(--border-light); cursor: pointer; }
.full-hero img, .full-side img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.full-hero:hover img, .full-side:hover img { transform: scale(1.03); }
.full-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.full-bottom .gallery-item { aspect-ratio: 1 / 1; }

/* ── SESSION LAYOUT ─────────────────────── */
.gallery-session { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.gallery-session .gallery-item--top { grid-column: span 3; aspect-ratio: 3 / 4; }
.gallery-session .gallery-item--bottom { grid-column: span 2; aspect-ratio: 3 / 4; }

/* ── LIGHTBOX ───────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,0.96); align-items: center; justify-content: center; cursor: pointer; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 2px; box-shadow: var(--shadow-md); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text); font-size: 2rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; z-index: 210; }
.lightbox__close:hover { opacity: 1; }

/* ── CONTACT ────────────────────────────── */
.contact-grid { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.contact-item { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.75rem 2rem; border: 1px solid var(--border); background: var(--bg-card); transition: border-color 0.3s, box-shadow 0.3s; flex: 1; min-width: 200px; border-radius: 2px; }
.contact-item:hover { border-color: rgba(184,149,106,0.35); box-shadow: var(--shadow-sm); }
.contact-item__label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contact-item__value { font-family: var(--font-serif); font-size: 1.1rem; }

/* ── FOOTER ─────────────────────────────── */
.footer { padding: 1.5rem var(--section-px); border-top: 1px solid var(--border); }
.footer__inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer__logo { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer__copy { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── REVEAL ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.params-grid .param-card:nth-child(2) { transition-delay: 0.06s; }
.params-grid .param-card:nth-child(3) { transition-delay: 0.12s; }
.params-grid .param-card:nth-child(4) { transition-delay: 0.18s; }
.params-grid .param-card:nth-child(5) { transition-delay: 0.24s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ─────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .selfie-top { height: 400px; }
  .full-top { height: 360px; }
}

/* ── Small tablet (≤ 768px) ─────────────── */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 30px rgba(0,0,0,0.06);
  }
  .header__nav.open { right: 0; }
  .header__nav a {
    display: block;
    padding: 1rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-light);
  }
  .header__burger { display: flex; }

  .hero { min-height: 85vh; padding-top: 4rem; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 4rem); }
  .hero__meta { gap: 0.5rem; font-size: 0.65rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .params-grid { grid-template-columns: repeat(3, 1fr); }
  .param-card { padding: 1.5rem 0.5rem; }

  .selfie-top { grid-template-columns: 1fr 1fr; height: auto; }
  .selfie-hero { aspect-ratio: 4/5; }
  .selfie-side { aspect-ratio: 3/5; }
  .selfie-bottom .gallery-item { aspect-ratio: 1/1; }

  .snap-grid { max-width: 100%; gap: 8px; }
  .snap-grid .gallery-item:nth-child(3) { margin-top: -12px; }

  .gallery-session { grid-template-columns: repeat(3, 1fr); }
  .gallery-session .gallery-item--top,
  .gallery-session .gallery-item--bottom { grid-column: span 1; aspect-ratio: 3/4; }

  .full-top { height: auto; }
  .full-top { grid-template-columns: 1fr 1fr; }
  .full-hero { aspect-ratio: 4/5; }
  .full-side { aspect-ratio: 3/5; }

  .contact-grid { flex-direction: column; }
  .contact-item { min-width: 0; }
}

/* ── Mobile (≤ 480px) ───────────────────── */
@media (max-width: 480px) {
  .hero { min-height: 80vh; padding-top: 3.5rem; }
  .hero__label { font-size: 0.6rem; margin-bottom: 1rem; }
  .hero__title { font-size: clamp(2rem, 12vw, 3rem); }
  .hero__subtitle { font-size: 0.7rem; letter-spacing: 0.2em; }
  .hero__meta { font-size: 0.6rem; gap: 0.4rem; }
  .hero__scroll { bottom: 1.5rem; }

  .section { padding: 2.5rem var(--section-px); }
  .section__header { margin-bottom: 1.5rem; }
  .section__title { font-size: 1.4rem; }

  .about-text__lead { font-size: 1rem; }
  .about-quick__item { padding: 0.85rem; }
  .about-quick__value { font-size: 0.9rem; }

  .params-grid { grid-template-columns: repeat(3, 1fr); }
  .param-card { padding: 1.25rem 0.4rem; }
  .param-card__value { font-size: 1.5rem; }

  .selfie-top { gap: 4px; }
  .selfie-bottom { gap: 4px; }

  .snap-grid { gap: 6px; }
  .snap-grid .gallery-item:nth-child(3) { margin-top: -8px; }

  .gallery-tab { padding: 0.7rem 0.9rem; font-size: 0.65rem; }

  .contact-item { padding: 1.25rem 1.5rem; }

  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Very small (≤ 360px) ───────────────── */
@media (max-width: 360px) {
  .params-grid { grid-template-columns: repeat(2, 1fr); }
  .param-card:last-child { grid-column: span 2; }
  .hero__title { font-size: 2rem; }
}

/* ── Touch hover fix ────────────────────── */
@media (hover: none) {
  .gallery-item:hover img { transform: none; }
  .selfie-hero:hover img,
  .selfie-side:hover img { transform: none; }
  .full-hero:hover img,
  .full-side:hover img { transform: none; }
}

/* ── Landscape phones ───────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; padding: 1rem var(--section-px); }
  .hero__title { font-size: 2.5rem; }
  .hero__scroll { display: none; }
}

/* ── Large screens ──────────────────────── */
@media (min-width: 1400px) {
  .hero__title { font-size: 8rem; }
}
