/* -------------------- Base -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f6f2ea;
  --paper-2: #fbf9f4;
  --ink: #141414;
  --muted: rgba(20, 20, 20, 0.65);
  --line: rgba(20, 20, 20, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);

  --radius: 14px;
  --max: 1080px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1100px 700px at 20% 0%, var(--paper-2), var(--paper));
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

/* -------------------- Layout shell -------------------- */
.shell {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

/* -------------------- Header / Nav --------------------
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  letter-spacing: 0.22em;
  font-size: 12px;
} */

/* -------------------- Header / Nav -------------------- */
/*
  .site-header:
  - sticky header with backdrop blur, so navigation stays visible while scrolling
  - subtle border line separates header from content
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/*
  .brand:
  - top-left name/identity text
  - letter-spacing creates the “gallery identity” look
*/
.brand {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.10em;
  font-weight: 600;
  text-transform: uppercase; /* optional; remove if you prefer natural case */
}

/* Option B: character-by-character fade-in for the brand name */
.brand .char {
  display: inline-block;            /* required for transforms per character */
  opacity: 0;                       /* start hidden */
  transform: translateY(6px);       /* subtle motion; remove if you want pure fade */
  animation: brandCharIn 520ms ease forwards;
  animation-delay: calc(var(--i) * 55ms);
}

/* Animation used by .brand .char */
@keyframes brandCharIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .brand .char {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Small mark next to the name */
.brand-mark {
  width: 32px;         /* adjust */
  height: 32px;        /* adjust */
  object-fit: contain;
  opacity: 0;
  transform: translateY(6px);
  animation: brandMarkIn 520ms ease forwards;
  animation-delay: 520ms; /* slightly before/with first letters */
}

@keyframes brandMarkIn {
  to { opacity: 1; transform: translateY(0); }
}

.nav {
  display: flex;
  gap: 18px;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.nav a {
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* -------------------- Mobile nav toggle (hamburger) -------------------- */
.nav-toggle {
  display: none;               /* hidden on desktop */
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  opacity: 0.85;
}

/* Keep header layout stable */
.site-header .shell {
  position: relative;
  gap: 14px;
}

/* Optional: slightly reduce brand spacing on small screens */
@media (max-width: 720px) {
  .brand {
    letter-spacing: 0.14em;
    font-size: clamp(14px, 4.2vw, 18px);
  }
}

/* -------------------- Mobile menu behavior -------------------- */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;      /* show hamburger on mobile */
  }

  /* Hide nav by default on mobile */
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;

    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);

    /* stacked links */
    flex-direction: column;
    gap: 10px;
  }

  /* When header is open, show dropdown nav */
  .site-header.is-open .nav {
    display: flex;
  }

  /* Make each link easy to tap */
  .nav a {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .nav a:hover {
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
  }
}


/* -------------------- Hero slideshow -------------------- */
.hero {
  position: relative;
  height: min(92vh, 860px);
  margin-bottom: 34px;
  overflow: hidden;
  /* border-bottom: 1px solid var(--line); */
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  animation: heroFade 18s infinite;
  transform: scale(1.02);
}

/* 3 slides stagger */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 28px 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
}

.hero-copy {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
}

.hero-kicker {
  letter-spacing: 0.28em;
  font-size: 11px;
  margin-bottom: 10px;
}

.hero-sub {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.hero-cta {
  width: min(var(--max), calc(100% - 56px));
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.22em;
  font-size: 11px;
  text-transform: uppercase;
}

/* -------------------- Sections -------------------- */
.section {
  padding: 44px 0;
}

.section-head {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 18px;
}

.section-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.highlight {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
  padding: 18px 18px;
  margin: 18px 0 30px;
}

.highlight-title {
  letter-spacing: 0.26em;
  font-size: 11px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.highlight-body {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* -------------------- Works list (editorial) -------------------- */
.works {
  display: grid;
  gap: 34px;
}

.work {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.work-media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.2);
}

.work-media img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* try 3/2, 4/5, 1/1 etc. */
  height: auto;          /* aspect-ratio handles it */
  object-fit: cover;     /* crop to fill */
  display: block;
}

.work-fullsize {
  position: absolute;
  right: 14px;
  bottom: 12px;
  letter-spacing: 0.22em;
  font-size: 10px;
  text-transform: uppercase;

  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.92);

  opacity: 0;
  transform: translateY(6px);
  transition: 160ms ease;
}

.work-media:hover .work-fullsize {
  opacity: 1;
  transform: translateY(0);
}

.work-meta {
  padding-top: 14px;
}

.work-title {
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.work-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* -------------------- Gallery -------------------- */

.gallery-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.fade-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: make images look consistent */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.25);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fade-on-scroll {
    transition: none;
    opacity: 1;
    transform: none;
  }
}



/* -------------------- Lightbox (CSS :target) -------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.86);
  z-index: 100;
  display: none;
  padding: 28px 18px;
}

.lightbox:target {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
}

.lightbox img {
  width: min(1100px, 96vw);
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);

  font-size: 24px;
  line-height: 1;
}

/* -------------------- Footer -------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

/* -------------------- Responsive tweaks -------------------- */
@media (min-width: 920px) {
  .works {
    gap: 44px;
  }

  .section-title {
    font-size: 20px;
  }
}