/* =========================================================
   Inisturk Sauna Experience — shared styles
   ========================================================= */

:root {
  /* Palette: Atlantic at dusk, warm sauna firelight, weathered cream */
  --ink:      #0c1216;       /* deep ocean / near black */
  --peat:    #14201f;        /* slate-green darkness */
  --slate:   #2a3539;        /* wet stone */
  --bone:    #f3ebdd;        /* warm cream paper */
  --bone-2:  #ebe1d0;        /* slightly darker bone for sections */
  --mist:    #c9cdc5;        /* sea mist */
  --moss:    #4a6450;        /* irish moss */
  --ember:   #c66b2c;        /* sauna firelight, copper-amber */
  --ember-2: #a85420;        /* darker ember */
  --rule:    rgba(12, 18, 22, 0.14);

  /* Type */
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:    "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
}

/* ============ Reset / base ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============ Type system ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.serif    { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.serif-i  { font-family: var(--display); font-style: italic; font-weight: 400; }

h1, h2, h3 { font-family: var(--display); font-weight: 350; letter-spacing: -0.015em; line-height: 1.02; margin: 0; }

h1 { font-size: clamp(2.6rem, 7.2vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.15; }

p  { margin: 0 0 1rem; }

/* ============ Container / utility ============ */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }

.divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  color: var(--bone);
  transition: background 0.4s ease, color 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(12, 18, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.solid {
  background: var(--bone);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  position: sticky;
}

.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand .dot {
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-links a.book-pill {
  display: inline-block;
  padding: 0.5rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-links a.book-pill:hover { background: var(--ember); color: var(--bone); border-color: var(--ember); }

@media (max-width: 720px) {
  .nav-links a:not(.book-pill) { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(12,18,22,0.45) 0%, rgba(12,18,22,0.18) 25%, rgba(12,18,22,0.55) 65%, rgba(12,18,22,0.92) 100%),
    url("images/01-hero-sauna-currachs.jpg");
  background-size: cover;
  background-position: center 55%;
  z-index: -2;
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.18;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-inner {
  width: 100%;
  padding: 8rem var(--gutter) clamp(3rem, 8vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
}

.hero h1 {
  font-weight: 320;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 350;
  color: var(--ember);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 2rem;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.78);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--ember);
  border-radius: 50%;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid currentColor;
  transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ember);
  color: var(--bone);
  border-color: var(--ember);
}
.btn-primary:hover { background: var(--ember-2); border-color: var(--ember-2); }
.btn-ghost { color: var(--bone); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); }

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 28px;
  background: currentColor;
  display: inline-block;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.4); transform-origin: top; }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* ============ "Origins" intro section ============ */
.intro {
  background: var(--bone);
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 880px) {
  .intro-grid { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; }
}

.intro h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  max-width: 14ch;
}
.intro h2 em { font-style: italic; color: var(--ember-2); }

.intro-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 56ch;
}

.intro-figure {
  margin-top: 3.5rem;
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 2px;
}
@media (max-width: 768px) {
     .intro-figure {
            aspect-ratio: 4 / 3;
            margin-left: calc(-1 * var(--gutter));
            margin-right: calc(-1 * var(--gutter));
            width: calc(100% + 2 * var(--gutter));
            border-radius: 0;
                    margin-top: 2rem;
     }
       .intro {
                  padding-bottom: 2rem;
       }
}

}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-caption {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: rgba(12,18,22,0.7);
  backdrop-filter: blur(8px);
  color: var(--bone);
  padding: 0.55rem 0.9rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============ About Inisturk ============ */
.island {
  background: var(--peat);
  color: var(--bone);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 60ch;
}
.section-head .lede {
  color: rgba(243, 235, 221, 0.7);
  font-size: 1.05rem;
  line-height: 1.7;
}
.island .eyebrow { color: var(--ember); }

.island-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(243, 235, 221, 0.12);
  border: 1px solid rgba(243, 235, 221, 0.12);
}
@media (min-width: 720px) { .island-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .island-grid { grid-template-columns: repeat(3, 1fr); } }

.island-card {
  background: var(--peat);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 260px;
  position: relative;
  transition: background 0.4s ease;
}
.island-card:hover { background: #1b2a29; }
.island-card .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ember);
  letter-spacing: 0.05em;
}
.island-card h3 {
  font-size: 1.5rem;
  font-weight: 350;
  color: var(--bone);
}
.island-card p {
  color: rgba(243, 235, 221, 0.66);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* ============ Gallery preview ============ */
.gallery-preview {
  background: var(--bone-2);
}

.gallery-preview .head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gallery-preview .head-row .lede { margin-top: 1.5rem; }
.gallery-preview .view-all { margin-top: 2rem; display: inline-block; }

.preview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .preview-grid { grid-template-columns: 1fr; }
}

.preview-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--slate);
  aspect-ratio: 4 / 3;
}
.preview-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}
.preview-grid figure:hover img { transform: scale(1.06); }

.view-all {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.view-all:hover { color: var(--ember); border-color: var(--ember); }

/* ============ Booking ============ */
.booking {
  background: var(--peat);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.booking::before {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at center, rgba(198, 107, 44, 0.18), transparent 60%);
  pointer-events: none;
}

.acuity-embed {
     background: var(--bone);
     border-radius: 6px;
     border: 1px solid rgba(243, 235, 221, 0.2);
     overflow: hidden;
}
.acuity-embed iframe {
     display: block;
}

@media (max-width: 768px) {
     .booking::before { display: none; }
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 940px) {
  .booking-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}

/* Calendar */
.cal {
  background: rgba(243, 235, 221, 0.04);
  border: 1px solid rgba(243, 235, 221, 0.12);
  padding: 1.75rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.cal-header h3 {
  font-size: 1.3rem;
  font-weight: 350;
  color: var(--bone);
  font-family: var(--display);
}
.cal-nav {
  display: flex;
  gap: 0.4rem;
}
.cal-nav button {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(243, 235, 221, 0.2);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.cal-nav button:hover:not(:disabled) { background: rgba(243, 235, 221, 0.08); border-color: var(--ember); }
.cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(243, 235, 221, 0.5);
  padding: 0.5rem 0;
}
.cal-day {
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--bone);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  position: relative;
  font-family: var(--sans);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cal-day:hover:not(.disabled):not(.empty) {
  background: rgba(198, 107, 44, 0.18);
  border-color: var(--ember);
}
.cal-day.empty { visibility: hidden; }
.cal-day.disabled {
  color: rgba(243, 235, 221, 0.22);
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day.full {
  color: rgba(243, 235, 221, 0.3);
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day.today {
  border-color: rgba(243, 235, 221, 0.3);
}
.cal-day.selected {
  background: var(--ember);
  color: var(--bone);
  border-color: var(--ember);
}
.cal-day .dot {
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.6;
}
.cal-day.selected .dot { background: var(--bone); }

.cal-legend {
  display: flex;
  gap: 1.3rem;
  margin-top: 1.25rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.55);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend .sw {
  width: 9px; height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.sw.avail { background: rgba(243, 235, 221, 0.2); }
.sw.partial { background: var(--ember); opacity: 0.6; }
.sw.full { background: rgba(243, 235, 221, 0.08); border: 1px solid rgba(243, 235, 221, 0.18); }

/* Booking form */
.book-side h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 0.8rem;
}
.book-side h2 em { font-style: italic; color: var(--ember); }
.book-side .lede {
  color: rgba(243, 235, 221, 0.7);
  margin-bottom: 2rem;
  max-width: 48ch;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 480px) { .slot-list { grid-template-columns: repeat(2, 1fr); } }

.slot {
  background: transparent;
  border: 1px solid rgba(243, 235, 221, 0.2);
  color: var(--bone);
  padding: 0.7rem 0.4rem;
  font-size: 13px;
  text-align: center;
  font-family: var(--sans);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.slot:hover:not(:disabled) { border-color: var(--ember); background: rgba(198, 107, 44, 0.1); }
.slot.selected { background: var(--ember); border-color: var(--ember); color: var(--bone); }
.slot:disabled {
  color: rgba(243, 235, 221, 0.25);
  text-decoration: line-through;
  cursor: not-allowed;
}

.slot-empty {
  color: rgba(243, 235, 221, 0.5);
  font-size: 14px;
  font-style: italic;
  padding: 1rem 0 1.75rem;
}

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.6);
  margin-bottom: 0.4rem;
}
.field input,
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 235, 221, 0.22);
  color: var(--bone);
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease;
}
.field input:focus,
.field select:focus { border-color: var(--ember); }
.field input::placeholder { color: rgba(243, 235, 221, 0.35); }
.field select option { background: var(--ink); color: var(--bone); }

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) { .fields-row { grid-template-columns: 1fr; } }

.payment-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed rgba(243, 235, 221, 0.22);
  border-radius: 2px;
  background: rgba(243, 235, 221, 0.03);
}
.payment-box .pb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.payment-box .pb-head h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--bone);
}
.payment-box .badge {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid var(--ember);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}
.payment-box .pb-note {
  font-size: 12.5px;
  color: rgba(243, 235, 221, 0.55);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.payment-box .pb-stripe {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.35);
  margin: 0;
}

.summary {
  margin: 1.5rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 235, 221, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.summary .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.55);
}
.summary .total {
  font-family: var(--display);
  font-size: 1.6rem;
}

.book-submit {
  width: 100%;
  background: var(--ember);
  color: var(--bone);
  border: 0;
  padding: 1rem;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s ease;
  font-family: var(--sans);
}
.book-submit:hover:not(:disabled) { background: var(--ember-2); }
.book-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.confirm {
  display: none;
  background: rgba(74, 100, 80, 0.2);
  border: 1px solid rgba(74, 100, 80, 0.5);
  padding: 1.4rem;
  margin-top: 1.25rem;
  font-size: 14px;
  line-height: 1.6;
}
.confirm.show { display: block; }
.confirm strong { color: var(--bone); }

/* ============ Footer ============ */
.footer {
  background: var(--peat);
  color: rgba(243, 235, 221, 0.65);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; } }

.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer .brand-line {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--bone);
  margin-bottom: 0.8rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer a:hover { color: var(--ember); }

.footer-base {
  border-top: 1px solid rgba(243, 235, 221, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  color: rgba(243, 235, 221, 0.4);
  letter-spacing: 0.05em;
}

/* ============ Gallery page ============ */
.page-head {
  padding: 8rem var(--gutter) 4rem;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.page-head .wrap-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.page-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 1rem;
  font-weight: 320;
  max-width: 18ch;
}
.page-head h1 em { font-style: italic; color: var(--ember-2); }
.page-head .lede {
  margin-top: 1.5rem;
  color: var(--slate);
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.filter {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.masonry {
  padding: 4rem var(--gutter) var(--section-y);
  background: var(--bone);
}
.masonry-grid {
  max-width: 1280px;
  margin: 0 auto;
  columns: 3;
  column-gap: 0.85rem;
}
@media (max-width: 880px) {
  .masonry-grid { columns: 2; }
}
@media (max-width: 520px) {
  .masonry-grid { columns: 1; }
}

@media (max-width: 768px) {
     .page-head {
            padding: 5rem var(--gutter) 1.5rem;
     }
     .filters {
            margin-top: 0;
     }
     .masonry {
            padding-top: 1.5rem;
     }
}

.masonry-grid figure {
  position: relative;
  margin: 0 0 0.85rem 0;
  overflow: hidden;
  background: var(--slate);
  break-inside: avoid;
  transition: opacity 0.4s ease;
}
.masonry-grid figure img {
  width: 100%;
  display: block;
  transition: transform 0.9s ease;
}
.masonry-grid figure:hover img { transform: scale(1.05); }

.masonry-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(to top, rgba(12,18,22,0.85), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.masonry-grid figure:hover figcaption { opacity: 1; }

.masonry-grid figure.hide { display: none; }

.masonry-grid figure { cursor: pointer; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 18, 22, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lb-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lb-img-wrap img.loaded {
  opacity: 1;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  font-family: inherit;
  z-index: 10;
  transition: opacity 0.2s ease;
  opacity: 0.7;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}

.lb-close {
  top: 1.5rem;
  right: 1.8rem;
  font-size: 2.4rem;
  line-height: 1;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  line-height: 1;
  padding: 0.5rem;
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

.lb-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  text-align: center;
  margin: 0;
}

.lb-counter {
  position: absolute;
  top: 1.8rem;
  left: 1.8rem;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin: 0;
}

@media (max-width: 600px) {
  .lb-prev { left: 0.4rem; font-size: 2.4rem; }
  .lb-next { right: 0.4rem; font-size: 2.4rem; }
  .lb-close { top: 0.8rem; right: 1rem; }
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
