:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #66625c;
  --line: #1b1b1b;
  --soft-line: #e9e6df;
  --wash: #f7f7f4;
  --cyan: #00a7d8;
  --red: #ef4136;
  --yellow: #ffc928;
  --green: #43b049;
  --violet: #7654d9;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 167, 216, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(239, 65, 54, 0.04) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 72px 72px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 62%, rgba(255, 201, 40, 0.18) 62% 63%, transparent 63%),
    linear-gradient(150deg, transparent 0 72%, rgba(67, 176, 73, 0.12) 72% 73%, transparent 73%);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 40;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 0 44%, var(--ink) 44% 56%, transparent 56%),
    conic-gradient(from -20deg, var(--cyan), var(--yellow), var(--red), var(--green), var(--violet), var(--cyan));
  box-shadow: 4px 4px 0 var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 34px);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a {
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--yellow);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: calc(100svh - 78px);
  padding: clamp(52px, 8vw, 94px) clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
}

.hero-copy {
  max-width: 680px;
}

.quiet-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 9ch;
  font-size: 6.9rem;
  line-height: 0.84;
}

.hero h1 span {
  display: block;
}

.hero-text {
  max-width: 620px;
  margin: clamp(24px, 4vw, 34px) 0 0;
  color: #302f2d;
  font-size: 1.26rem;
  font-weight: 600;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--cyan);
}

.button-ghost {
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--yellow);
}

.button:hover,
.button:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.photo-card:hover {
  transform: translate(-2px, -2px);
}

.memory-board {
  position: relative;
  min-height: clamp(520px, 62vw, 720px);
}

.board-stripe {
  position: absolute;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.18);
}

.stripe-cyan {
  width: 68%;
  height: 20px;
  top: 7%;
  right: 2%;
  rotate: -7deg;
  background: var(--cyan);
}

.stripe-red {
  width: 20px;
  height: 63%;
  left: 16%;
  top: 20%;
  rotate: 9deg;
  background: var(--red);
}

.stripe-yellow {
  width: 58%;
  height: 18px;
  right: 12%;
  bottom: 14%;
  rotate: 5deg;
  background: var(--yellow);
}

.hero-photo,
.photo-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  padding: 9px 9px 32px;
}

.hero-photo::before,
.photo-card::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 18px;
  top: -8px;
  left: 24px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  rotate: -4deg;
}

.hero-photo img,
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.hero-photo-a {
  width: 47%;
  height: 47%;
  left: 4%;
  top: 17%;
  rotate: -4deg;
}

.hero-photo-b {
  width: 40%;
  height: 34%;
  right: 7%;
  top: 3%;
  rotate: 5deg;
}

.hero-photo-c {
  width: 38%;
  height: 40%;
  right: 5%;
  top: 43%;
  rotate: -7deg;
}

.hero-photo-d {
  width: 35%;
  height: 31%;
  left: 18%;
  bottom: 2%;
  rotate: 6deg;
}

.gallery-section,
.moments-section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.gallery-section {
  background:
    linear-gradient(90deg, transparent 0 28px, rgba(17, 17, 17, 0.05) 28px 29px, transparent 29px),
    var(--wash);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 28px;
}

.section-heading h2 {
  max-width: 760px;
  font-size: 4.7rem;
  line-height: 0.95;
}

.section-heading-compact {
  display: block;
  text-align: center;
}

.section-heading-counter {
  justify-content: flex-end;
  margin-bottom: 18px;
}

.gallery-count {
  min-width: 150px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.filter-bar {
  display: flex;
  gap: 9px;
  max-width: 1200px;
  margin: 0 auto 32px;
  padding-bottom: 6px;
  overflow-x: auto;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.filter-button.is-active {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--green);
}

.random-bar .filter-button:nth-child(2) {
  box-shadow: 4px 4px 0 var(--violet);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 24px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.photo-card {
  position: relative;
  display: grid;
  rotate: var(--tilt, 0deg);
  grid-template-rows: auto 1fr;
  grid-column: span 4;
  min-height: 100%;
  padding: 10px;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-card:nth-child(6n + 1),
.photo-card:nth-child(6n + 5) {
  grid-column: span 6;
}

.photo-card:nth-child(6n + 3) {
  grid-column: span 5;
}

.photo-card:nth-child(6n + 4) {
  grid-column: span 7;
}

.photo-card:nth-child(4n + 2)::before {
  background: var(--cyan);
}

.photo-card:nth-child(4n + 3)::before {
  background: var(--red);
}

.photo-card:nth-child(4n + 4)::before {
  background: var(--green);
}

.photo-card:hover,
.photo-card:focus-visible {
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.16), var(--shadow);
}

.photo-card button {
  position: absolute;
  inset: 0;
  z-index: 2;
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e6e2d8;
  border-radius: 5px;
  overflow: hidden;
}

.photo-card.is-tall .photo-media {
  aspect-ratio: 3 / 4;
}

.photo-card.is-wide .photo-media {
  aspect-ratio: 16 / 9;
}

.photo-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 13px 3px 0;
}

.photo-caption strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.photo-caption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.photo-index {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.moments-section {
  background: var(--paper);
}

.moments-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 38px auto 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.moment-item {
  min-height: 220px;
  padding: 24px;
  border-right: 2px solid var(--ink);
}

.moment-item:last-child {
  border-right: 0;
}

.moment-item .moment-tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 9px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 900;
}

.moment-item:nth-child(1) {
  box-shadow: inset 0 9px 0 var(--cyan);
}

.moment-item:nth-child(2) {
  box-shadow: inset 0 9px 0 var(--yellow);
}

.moment-item:nth-child(3) {
  box-shadow: inset 0 9px 0 var(--red);
}

.moment-item:nth-child(4) {
  box-shadow: inset 0 9px 0 var(--green);
}

.moment-item h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.16;
}

.moment-item p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: var(--paper);
  background: var(--ink);
}

.site-footer p {
  max-width: 640px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-style: normal;
  font-weight: 900;
}

.site-footer a {
  color: var(--paper);
}

.lightbox {
  width: min(1080px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
}

.lightbox::backdrop {
  background: rgba(17, 17, 17, 0.78);
}

.lightbox figure {
  display: grid;
  gap: 0;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 164px);
  object-fit: contain;
  background: #e6e2d8;
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 18px;
  border-top: 2px solid var(--ink);
}

.lightbox figcaption strong {
  font-size: 1rem;
}

.lightbox figcaption span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: scale(1.06);
  background: var(--yellow);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

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

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 46px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: 6.2rem;
  }

  .memory-board {
    min-height: 460px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 3.8rem;
  }

  .gallery-count {
    margin-top: 14px;
    text-align: left;
  }

  .photo-card,
  .photo-card:nth-child(n) {
    grid-column: span 6;
  }

  .moments-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .moment-item:nth-child(2) {
    border-right: 0;
  }

  .moment-item:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }
}

@media (max-width: 660px) {
  .site-header {
    position: static;
    display: grid;
    gap: 16px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    gap: 28px;
    padding-top: 32px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: 3.85rem;
    line-height: 0.92;
    overflow-wrap: normal;
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .memory-board {
    display: flex;
    gap: 12px;
    min-height: 300px;
    overflow-x: auto;
    padding: 18px 0 30px;
    scroll-snap-type: x proximity;
  }

  .board-stripe {
    display: none;
  }

  .hero-photo {
    position: relative;
    flex: 0 0 230px;
    height: 220px;
    margin-right: 16px;
    rotate: 0deg;
    scroll-snap-align: start;
  }

  .hero-photo-a,
  .hero-photo-b,
  .hero-photo-c,
  .hero-photo-d {
    inset: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .photo-card,
  .photo-card:nth-child(n) {
    grid-column: span 1;
  }

  .photo-card {
    rotate: 0deg;
  }

  .moments-list {
    grid-template-columns: 1fr;
  }

  .moment-item {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .moment-item:last-child {
    border-bottom: 0;
  }

  .site-footer,
  .site-footer address,
  .lightbox figcaption {
    display: grid;
    justify-content: start;
    text-align: left;
  }

  .lightbox-nav {
    top: auto;
    bottom: 78px;
    transform: none;
  }

  .lightbox-nav:hover,
  .lightbox-nav:focus-visible {
    transform: scale(1.06);
  }
}
/* Visual refresh v2 */
:root {
  --paper: #ffffff;
  --wash: #f3faf8;
  --mist: #f7f8ff;
  --soft-line: #dfebe8;
  --shadow: 0 22px 46px rgba(12, 18, 28, 0.12);
  --shadow-strong: 10px 12px 0 rgba(17, 17, 17, 0.9), 0 30px 70px rgba(12, 18, 28, 0.16);
}

body {
  background:
    linear-gradient(90deg, rgba(0, 167, 216, 0.055) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(239, 65, 54, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 42%, #f5fbfa 100%);
  background-size: 82px 82px, 82px 82px, auto;
}

body::before {
  background:
    linear-gradient(112deg, transparent 0 58%, rgba(255, 201, 40, 0.2) 58% 58.7%, transparent 58.7%),
    linear-gradient(150deg, transparent 0 74%, rgba(0, 167, 216, 0.14) 74% 74.7%, transparent 74.7%),
    linear-gradient(28deg, transparent 0 82%, rgba(239, 65, 54, 0.1) 82% 82.6%, transparent 82.6%);
}

.site-header {
  padding-block: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 12px 36px rgba(17, 17, 17, 0.06);
}

.brand-mark {
  box-shadow: 3px 3px 0 var(--ink), 0 0 0 5px rgba(255, 255, 255, 0.86);
}

.main-nav a::after {
  height: 4px;
  bottom: -9px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--red));
}

.hero {
  position: relative;
  grid-template-columns: minmax(430px, 1fr) minmax(390px, 0.95fr);
  min-height: calc(100svh - 72px);
  padding-bottom: clamp(72px, 9vw, 118px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  height: 18px;
  z-index: -1;
  border: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--cyan), var(--yellow) 38%, var(--red) 66%, var(--green));
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.16);
  transform: rotate(-1.1deg);
}

.hero-copy {
  padding-top: 18px;
}

.hero h1 {
  position: relative;
  z-index: 0;
  max-width: 8.5ch;
  font-size: 6.45rem;
  line-height: 0.9;
}

.hero h1 span {
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: -0.08em;
  bottom: -0.07em;
  z-index: -1;
  height: 0.12em;
  border: 2px solid var(--ink);
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--cyan));
  transform: rotate(-1.6deg);
}

.hero-text {
  max-width: 560px;
  padding-left: 18px;
  border-left: 6px solid var(--red);
  color: #2a2c2c;
  font-size: 1.18rem;
  line-height: 1.56;
}

.button,
.filter-button {
  border-radius: 8px;
}

.button-primary {
  box-shadow: 5px 5px 0 var(--cyan), 10px 10px 0 rgba(17, 17, 17, 0.08);
}

.button-ghost {
  box-shadow: 5px 5px 0 var(--yellow), 10px 10px 0 rgba(17, 17, 17, 0.08);
}

.memory-board {
  min-height: clamp(560px, 60vw, 760px);
}

.memory-board::before {
  content: "";
  position: absolute;
  inset: 9% 2% 5% 6%;
  z-index: -1;
  border: 2px solid rgba(17, 17, 17, 0.12);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 100%),
    rgba(255, 255, 255, 0.68);
  background-size: 36px 36px;
  transform: rotate(1deg);
}

.board-stripe {
  border-width: 0;
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.14);
}

.hero-photo,
.photo-card {
  border-color: rgba(17, 17, 17, 0.92);
  box-shadow: var(--shadow);
}

.hero-photo {
  padding: 10px 10px 34px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-photo::before,
.photo-card::before {
  width: 74px;
  height: 16px;
  border: 0;
  background: var(--accent, var(--yellow));
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.9), 3px 3px 0 rgba(17, 17, 17, 0.14);
}

.hero-photo-a { width: 50%; height: 49%; left: 2%; top: 20%; rotate: -5deg; }
.hero-photo-b { width: 42%; height: 35%; right: 5%; top: 2%; rotate: 4deg; }
.hero-photo-c { width: 40%; height: 42%; right: 2%; top: 44%; rotate: -5deg; }
.hero-photo-d { width: 34%; height: 31%; left: 19%; bottom: 0; rotate: 4deg; }

.gallery-section {
  padding-top: clamp(42px, 6vw, 72px);
  background:
    linear-gradient(90deg, transparent 0 28px, rgba(17, 17, 17, 0.045) 28px 29px, transparent 29px),
    linear-gradient(180deg, #f6fbfa 0%, #ffffff 100%);
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto 34px;
}

.filter-bar {
  max-width: none;
  margin: 0;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.1);
}

.filter-button {
  min-height: 44px;
  padding-inline: 16px;
  border-width: 0;
  background: transparent;
}

.filter-button.is-active {
  box-shadow: none;
}

.random-bar .filter-button:nth-child(2) {
  border-left: 2px solid rgba(17, 17, 17, 0.12);
  box-shadow: none;
}

.gallery-count {
  min-width: auto;
  padding: 12px 14px;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.07);
}

.gallery-grid {
  grid-auto-flow: dense;
  gap: clamp(18px, 2.2vw, 30px);
  max-width: 1240px;
}

.photo-card {
  padding: 10px 10px 0;
  border: 0;
  outline: 2px solid rgba(17, 17, 17, 0.92);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.12);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 5px;
}

.photo-card:hover,
.photo-card:focus-visible {
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.86), 0 24px 54px rgba(17, 17, 17, 0.16);
}

.photo-media {
  background:
    linear-gradient(135deg, rgba(0, 167, 216, 0.1), transparent 34%),
    #f0f4ef;
}

.photo-media img {
  transition: transform 260ms ease;
}

.photo-card:hover .photo-media img,
.photo-card:focus-visible .photo-media img {
  transform: scale(1.025);
}

.photo-caption {
  min-height: 86px;
  padding: 15px 3px 17px;
}

.photo-caption strong {
  font-size: 1.04rem;
}

.photo-caption span span {
  font-size: 0.78rem;
}

.photo-index {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent, var(--yellow));
}

.moments-section {
  padding-top: clamp(62px, 8vw, 104px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.moments-list {
  gap: 18px;
  margin-top: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.moment-item {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.1);
}

.moment-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: var(--moment-accent, var(--cyan));
}

.moment-item:nth-child(1) { --moment-accent: var(--cyan); box-shadow: 7px 7px 0 rgba(0, 167, 216, 0.22); }
.moment-item:nth-child(2) { --moment-accent: var(--yellow); box-shadow: 7px 7px 0 rgba(255, 201, 40, 0.25); }
.moment-item:nth-child(3) { --moment-accent: var(--red); box-shadow: 7px 7px 0 rgba(239, 65, 54, 0.2); }
.moment-item:nth-child(4) { --moment-accent: var(--green); box-shadow: 7px 7px 0 rgba(67, 176, 73, 0.22); }

.moment-item .moment-tag {
  margin-top: 10px;
  color: var(--ink);
  background: var(--moment-accent, var(--yellow));
}

.site-footer {
  position: relative;
  padding-block: 42px;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--red), var(--green), var(--violet));
}

@media (min-width: 961px) {
  .photo-card,
  .photo-card:nth-child(n) {
    grid-column: span 4;
  }

  .photo-card:nth-child(10n + 1),
  .photo-card:nth-child(10n + 8) {
    grid-column: span 7;
  }

  .photo-card:nth-child(10n + 2),
  .photo-card:nth-child(10n + 9) {
    grid-column: span 5;
  }

  .photo-card:nth-child(10n + 5) {
    grid-column: span 6;
  }
}

@media (max-width: 960px) {
  .hero h1 {
    font-size: 5.55rem;
  }

  .gallery-toolbar {
    align-items: flex-start;
  }

  .filter-bar {
    display: inline-flex;
  }
}

@media (max-width: 660px) {
  .site-header {
    border-bottom-width: 1px;
    box-shadow: none;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: 3.5rem;
    line-height: 0.94;
  }

  .hero-text {
    padding-left: 14px;
    border-left-width: 4px;
  }

  .memory-board::before {
    display: none;
  }

  .gallery-toolbar {
    display: grid;
  }

  .filter-bar {
    width: 100%;
    overflow-x: auto;
  }

  .filter-button {
    flex: 1 0 auto;
  }

  .gallery-count {
    width: max-content;
    max-width: 100%;
    text-align: left;
  }

  .moments-list {
    gap: 14px;
  }

  .moment-item:nth-child(n) {
    border: 2px solid var(--ink);
  }
}
/* Desktop hero rhythm */
@media (min-width: 961px) {
  .hero-copy {
    transform: translateY(-44px);
  }
}
/* Responsive polish override */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-text {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    border-left-width: 4px;
  }
}
/* Premium editorial refresh v3 */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #5d5b55;
  --gallery-bg: #f7fbfa;
  --cyan: #00a7d8;
  --red: #ef4136;
  --yellow: #ffc928;
  --green: #43b049;
  --violet: #7654d9;
  --soft-shadow: 0 20px 60px rgba(17, 24, 39, 0.14);
  --frame-shadow: 0 14px 38px rgba(17, 24, 39, 0.13), 0 2px 0 rgba(17, 17, 17, 0.85);
}

body {
  background:
    linear-gradient(90deg, rgba(0, 167, 216, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.028) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 78% 8%, rgba(255, 201, 40, 0.18), transparent 28%),
    #ffffff;
  background-size: 96px 96px, 96px 96px, auto, auto;
}

body::before {
  background:
    linear-gradient(118deg, transparent 0 57%, rgba(239, 65, 54, 0.13) 57% 57.5%, transparent 57.5%),
    linear-gradient(145deg, transparent 0 76%, rgba(0, 167, 216, 0.16) 76% 76.55%, transparent 76.55%),
    linear-gradient(22deg, transparent 0 84%, rgba(67, 176, 73, 0.13) 84% 84.55%, transparent 84.55%);
}

.site-header {
  padding-block: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 10px 34px rgba(17, 17, 17, 0.055);
}

.brand-mark {
  position: relative;
  width: 56px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(92deg, var(--cyan) 0 31%, transparent 31% 100%) 2px 3px / 42px 9px no-repeat,
    linear-gradient(92deg, var(--yellow) 0 74%, transparent 74% 100%) 8px 15px / 48px 9px no-repeat,
    linear-gradient(92deg, var(--red) 0 48%, var(--green) 48% 100%) 0 27px / 50px 9px no-repeat;
  box-shadow: none;
  transform: rotate(-3deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 4px solid var(--ink);
  transform: rotate(4deg);
}

.brand small {
  letter-spacing: 0;
}

.main-nav {
  font-size: 0.94rem;
}

.main-nav a::after {
  bottom: -10px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--cyan));
}

.hero {
  grid-template-columns: minmax(410px, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(42px, 6vw, 92px);
  min-height: calc(100svh - 66px);
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(72px, 8vw, 110px);
}

.hero::before {
  bottom: 42px;
  height: 10px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--yellow), var(--red));
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
  transform: rotate(-0.8deg);
}

.hero-copy {
  min-width: 0;
  transform: translateY(-22px);
}

.hero h1 {
  max-width: 8ch;
  color: #0b0b0c;
  font-size: clamp(4.7rem, 8.2vw, 7.35rem);
  line-height: 0.86;
}

.hero h1 span::after {
  left: 0.02em;
  right: -0.04em;
  bottom: -0.08em;
  height: 0.11em;
  border: 0;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--cyan));
  box-shadow: 0 2px 0 var(--ink);
}

.hero-text {
  width: 100%;
  max-width: 620px;
  margin-top: 36px;
  padding: 18px 0 18px 22px;
  border-left: 5px solid var(--red);
  color: #242424;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.58;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent);
}

.hero-actions {
  margin-top: 26px;
}

.button,
.filter-button {
  border-radius: 999px;
}

.button {
  min-height: 50px;
  padding-inline: 20px;
}

.button-primary {
  box-shadow: 0 7px 0 var(--cyan), 0 18px 34px rgba(0, 167, 216, 0.18);
}

.button-ghost {
  box-shadow: 0 7px 0 var(--yellow), 0 18px 34px rgba(255, 201, 40, 0.18);
}

.memory-board {
  min-height: clamp(560px, 58vw, 740px);
  perspective: 1200px;
}

.memory-board::before {
  inset: 7% 0 3% 5%;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 100%),
    rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08), 0 28px 90px rgba(17, 17, 17, 0.07);
}

.hero-counter {
  position: absolute;
  right: 4%;
  top: 12%;
  z-index: 6;
  display: grid;
  min-width: 126px;
  padding: 13px 16px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 16px;
  box-shadow: 0 7px 0 var(--red), 0 24px 54px rgba(17, 17, 17, 0.22);
  transform: rotate(4deg);
}

.hero-counter strong {
  font-size: 2.15rem;
  line-height: 0.9;
}

.hero-counter span {
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-photo,
.photo-card {
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 16px;
  box-shadow: var(--frame-shadow);
}

.hero-photo {
  padding: 10px 10px 38px;
  background: #ffffff;
}

.hero-photo::before,
.photo-card::before {
  top: -7px;
  left: 28px;
  width: 78px;
  height: 14px;
  border: 0;
  border-radius: 2px;
  opacity: 0.92;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.6), 0 8px 16px rgba(17, 17, 17, 0.08);
}

.hero-photo img,
.photo-card img {
  border-radius: 10px;
}

.hero-photo-a {
  width: 54%;
  height: 58%;
  left: 3%;
  top: 22%;
  z-index: 2;
  rotate: -3deg;
}

.hero-photo-b {
  width: 41%;
  height: 36%;
  right: 5%;
  top: 3%;
  z-index: 3;
  rotate: 5deg;
}

.hero-photo-c {
  width: 40%;
  height: 39%;
  right: 2%;
  top: 50%;
  z-index: 1;
  rotate: -5deg;
}

.hero-photo-d {
  width: 36%;
  height: 30%;
  left: 22%;
  bottom: -1%;
  z-index: 4;
  rotate: 7deg;
}

.gallery-section {
  padding-top: clamp(38px, 5vw, 70px);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--gallery-bg) 18%, #ffffff 100%);
}

.gallery-toolbar {
  position: sticky;
  top: 72px;
  z-index: 12;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
}

.filter-bar {
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f4;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.filter-button {
  min-height: 42px;
  padding-inline: 18px;
}

.filter-button.is-active {
  color: #ffffff;
  background: var(--ink);
}

.random-bar .filter-button:nth-child(2) {
  border-left: 0;
}

.gallery-count {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #30302d;
  font-size: 0.96rem;
}

.gallery-grid {
  max-width: 1320px;
  gap: clamp(18px, 2vw, 32px);
  padding-top: 22px;
}

.photo-card {
  padding: 9px;
  outline: 0;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(17, 17, 17, 0.1);
}

.photo-card::after {
  inset: 9px;
  border-radius: 12px;
}

.photo-card:hover,
.photo-card:focus-visible {
  box-shadow: 0 10px 0 var(--accent, var(--cyan)), 0 28px 70px rgba(17, 17, 17, 0.17);
}

.photo-media {
  border-radius: 12px;
  background: #f2f4f2;
}

.photo-caption {
  min-height: 88px;
  padding: 15px 5px 9px;
}

.photo-caption strong {
  font-size: clamp(0.95rem, 1vw, 1.08rem);
}

.photo-index {
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent, var(--yellow));
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.82);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.moments-section {
  padding-top: clamp(72px, 8vw, 112px);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
}

.moments-note {
  max-width: 760px;
  margin: 0 auto clamp(24px, 4vw, 38px);
  text-align: center;
}

.moments-note p {
  margin: 0;
  color: #333;
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
  font-weight: 800;
  line-height: 1.42;
}

.moments-list {
  max-width: 1260px;
  gap: 16px;
}

.moment-item {
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.moment-item::before {
  left: 20px;
  right: 20px;
  top: 16px;
  height: 6px;
  border-radius: 99px;
}

.moment-item .moment-tag {
  margin-top: 20px;
  border-radius: 999px;
}

.site-footer {
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(0, 167, 216, 0.16), transparent 22%, transparent 78%, rgba(255, 201, 40, 0.14)),
    var(--ink);
}

.lightbox {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.lightbox img {
  background: #111;
}

.lightbox figcaption {
  border-top: 0;
}

@media (min-width: 961px) {
  .photo-card:nth-child(12n + 1),
  .photo-card:nth-child(12n + 7) {
    grid-column: span 7;
  }

  .photo-card:nth-child(12n + 2),
  .photo-card:nth-child(12n + 8) {
    grid-column: span 5;
  }

  .photo-card:nth-child(12n + 5),
  .photo-card:nth-child(12n + 11) {
    grid-column: span 6;
  }
}

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

  .hero-copy {
    transform: none;
  }

  .gallery-toolbar {
    position: static;
    display: grid;
    border-radius: 18px;
  }

  .memory-board {
    min-height: 500px;
  }
}

@media (max-width: 660px) {
  .brand-mark {
    width: 48px;
    height: 34px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 3.8rem);
  }

  .hero-counter {
    right: 14px;
    top: 14px;
    min-width: 104px;
    padding: 10px 12px;
  }

  .hero-counter strong {
    font-size: 1.7rem;
  }

  .memory-board {
    min-height: 340px;
  }

  .hero-photo {
    flex-basis: 244px;
    height: 246px;
    border-radius: 14px;
  }

  .gallery-toolbar {
    padding: 10px;
  }

  .filter-bar {
    display: flex;
    width: 100%;
  }

  .filter-button {
    min-width: max-content;
  }

  .gallery-count {
    padding: 4px 8px;
  }

  .moments-note {
    text-align: left;
  }

  .moment-item {
    border-radius: 16px;
  }
}
/* Softer contrast refresh */
:root {
  --ink: #25231f;
  --muted: #67635c;
  --soft-shadow: 0 20px 60px rgba(37, 35, 31, 0.12);
  --frame-shadow: 0 14px 38px rgba(37, 35, 31, 0.11), 0 2px 0 rgba(37, 35, 31, 0.52);
}

.hero h1 {
  color: #28251f;
}

.hero h1 span::after {
  box-shadow: 0 2px 0 rgba(37, 35, 31, 0.42);
}

.hero-text {
  color: #34312b;
}

.button-primary,
.filter-button.is-active {
  background: #24414a;
  color: #ffffff;
}

.button-primary {
  border-color: #24414a;
  box-shadow: 0 7px 0 var(--cyan), 0 18px 34px rgba(0, 167, 216, 0.16);
}

.button-ghost,
.filter-button {
  border-color: rgba(37, 35, 31, 0.72);
  color: #28251f;
}

.brand-mark::after {
  border-left-color: #25231f;
}

.photo-index {
  box-shadow: inset 0 0 0 2px rgba(37, 35, 31, 0.74);
}
/* Final badge centering */
.photo-caption .photo-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin-top: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}