:root {
  color-scheme: light;
  --ivory: #fbf4e6;
  --cream: #fffaf0;
  --gold: #c99643;
  --gold-soft: #e8c47d;
  --green: #172a20;
  --green-2: #263f31;
  --charcoal: #201f1c;
  --text: #2d2a25;
  --muted: #766d61;
  --line: rgba(201, 150, 67, 0.34);
  --shadow: 0 26px 80px rgba(24, 32, 25, 0.22);
  --copy-card-gap: 14px;
  --heart-rule-width: min(100%, clamp(260px, 72vw, 520px));
}

[hidden] { display: none !important; }

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--green);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: transparent;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 10, 8, 0.75) 0%, rgba(6, 10, 8, 0.35) 45%, rgba(6, 10, 8, 0.25) 100%),
    url("assets/brian-hero-background.png") center / cover no-repeat;
}

body::selection {
  background: rgba(201, 150, 67, 0.35);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.panel {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-inner {
  width: min(1376px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.narrow {
  display: grid;
  place-content: center;
  max-width: 930px;
  text-align: center;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100svh;
  color: white;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  width: min(1376px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.hero-left {
  display: contents;
}

.hero-brand {
  order: 1;
  justify-self: center;
  width: min(210px, 70vw);
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.hero-years {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 78%;
  margin: -8px auto 0;
  color: rgba(255, 246, 225, 0.9);
}

.hero-years span {
  height: 1px;
  background: rgba(255, 246, 225, 0.72);
}

.hero-years p {
  margin: 0;
  font-size: clamp(0.78rem, 3.3vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.portrait-card {
  position: relative;
  order: 2;
  justify-self: center;
  width: min(68vw, 190px);
  margin: 0;
}

.portrait-frame {
  aspect-ratio: 0.86;
  overflow: hidden;
  border: clamp(3px, 0.42vw, 6px) solid rgba(232, 196, 125, 0.92);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.1);
  box-shadow: 0 28px 80px rgba(6, 6, 4, 0.45);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
}

.hero-copy {
  display: grid;
  gap: 10px;
  order: 3;
  text-align: center;
  justify-items: center;
}

.kicker {
  margin: 0 0 12px;
  color: rgba(255, 246, 225, 0.92);
  font-size: clamp(0.92rem, 1.15vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--green-2);
}

.kicker.gold {
  color: var(--gold-soft);
}

h1, h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 11.5vw, 5.4rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 6vw, 4.35rem);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  width: min(100%, 314px);
}

.hero-event-card {
  display: grid;
  grid-template-columns: 1fr;
  margin: 4px 0 2px;
  overflow: hidden;
  border: 1px solid rgba(201, 150, 67, 0.78);
  border-radius: 8px;
  background: rgba(10, 12, 8, 0.58);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
}

.hero-event-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 16px;
  text-align: left;
}

.hero-event-item + .hero-event-item {
  border-top: 1px solid rgba(201, 150, 67, 0.72);
}

.event-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--gold-soft);
}

.event-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.hero-event-item p {
  margin: 0;
  color: var(--gold-soft);
  font-size: clamp(0.76rem, 1vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-event-item strong,
.hero-event-item span:not(.event-icon) {
  display: block;
  color: rgba(255, 250, 240, 0.94);
  font-size: clamp(0.95rem, 1.15vw, 1.18rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero-action {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border-radius: 5px;
  padding: 9px 14px;
  color: white;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-action:hover {
  transform: translateY(-2px);
}

.hero-action-primary {
  border: 1px solid rgba(255, 218, 144, 0.55);
  background: linear-gradient(135deg, rgba(216, 173, 99, 0.94), rgba(176, 117, 37, 0.94));
  box-shadow: 0 20px 42px rgba(55, 31, 6, 0.3);
}

.hero-action-secondary {
  border: 1px solid rgba(232, 196, 125, 0.72);
  background: rgba(20, 19, 15, 0.34);
  backdrop-filter: blur(7px);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff4d5;
}

.action-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.hero-action strong,
.hero-action small {
  display: block;
  text-align: left;
}

.hero-action strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-action small {
  margin-top: 3px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.88rem;
}

.hero-rule {
  display: block;
  width: 104px;
  height: 3px;
  margin: 10px auto 12px;
  background: var(--gold-soft);
}

.hero-line {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 250, 240, 0.94);
  font-size: clamp(0.94rem, 3.9vw, 1.2rem);
  font-weight: 500;
  line-height: 1.52;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 6px;
  padding: 0 24px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #d8ad63, #bd8431);
  color: white;
  box-shadow: 0 14px 34px rgba(112, 72, 20, 0.3);
}

.button-secondary {
  border: 1px solid rgba(232, 196, 125, 0.78);
  color: #fff6e5;
  background: rgba(22, 31, 23, 0.28);
  backdrop-filter: blur(8px);
}

.button-secondary-dark {
  border: 1px solid rgba(255, 250, 240, 0.35);
  color: rgba(255, 250, 240, 0.85);
  background: transparent;
}

.button-compact {
  min-height: 48px;
  padding: 0 18px;
}

/* ── Attendance panel (section 2) ─────────────────────────────── */

.attendance-panel {
  background: none;
}

.attendance-inner,
.memory-inner,
.gallery-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--copy-card-gap);
  width: min(1376px, calc(100% - 48px));
  margin: clamp(24px, 4dvh, 48px) auto;
  padding: clamp(30px, 5dvh, 48px) 0;
  background: transparent;
}

@media (max-width: 480px) {
  .attendance-inner,
  .memory-inner,
  .gallery-inner {
    width: min(100% - 48px, 1376px);
    margin-block: 16px;
  }
}

.attendance-left {
  display: grid;
  align-content: start;
  gap: 0;
}

.att-kicker-rule {
  display: block;
  width: 48px;
  height: 2px;
  margin: 8px 0 18px;
  background: var(--gold-soft);
}

.attendance-left h2 {
  color: white;
  max-width: 760px;
  font-size: clamp(2rem, 8.8vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.att-heart-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 14px;
  color: var(--gold-soft);
  width: var(--heart-rule-width);
  max-width: 100%;
}

.attendance-panel .att-heart-rule {
  display: none;
}

.attendance-panel .att-copy {
  max-width: 820px;
  margin-top: 14px;
  color: rgba(255, 250, 240, 0.96);
  font-size: clamp(1rem, 3.7vw, 1.12rem);
  font-weight: 500;
  line-height: 1.62;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.att-heart-rule span {
  flex: 1;
  height: 1px;
  background: rgba(232, 196, 125, 0.55);
}

.att-heart-rule svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-soft);
  stroke: none;
  flex-shrink: 0;
}

.att-copy {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  line-height: 1.55;
}

.att-details-card {
  display: none;
  gap: 0;
  margin-top: var(--copy-card-gap);
  border: 1px solid rgba(201, 150, 67, 0.5);
  border-radius: 10px;
  background: rgba(8, 14, 10, 0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.att-detail-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 14px;
  padding: 16px 22px;
}

.att-detail-row + .att-detail-row {
  border-top: 1px solid rgba(201, 150, 67, 0.24);
}

.att-detail-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 2px;
  color: var(--gold-soft);
}

.att-detail-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.att-detail-row div p {
  margin: 0 0 3px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.att-detail-row div strong {
  display: block;
  color: rgba(255, 250, 240, 0.95);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.att-detail-row div span {
  display: block;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Add to Calendar */
.att-add-calendar {
  display: none;
  margin-top: 16px;
}

.btn-add-calendar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(201, 150, 67, 0.45);
  border-radius: 10px;
  color: rgba(255, 250, 240, 0.95);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.btn-add-calendar:hover {
  background: rgba(201, 150, 67, 0.1);
  border-color: var(--gold);
}

.btn-cal-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--gold);
}

.btn-cal-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-add-calendar > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn-add-calendar strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn-add-calendar small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 250, 240, 0.7);
  letter-spacing: 0;
  text-transform: none;
}

.att-share-link {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
}

.att-share-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  color: var(--gold-soft);
}

.att-share-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.att-share-link p {
  margin: 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.94rem;
  line-height: 1.55;
}

.att-share-link .share-status {
  grid-column: 2;
  margin-top: 4px;
  color: var(--gold-soft);
  font-size: 0.88rem;
}

.inline-link {
  display: inline;
  padding:  4px 8px; margin: -4px -8px;
  color: rgba(255, 250, 240, 0.95);
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: transparent;
  cursor: pointer;
}

/* ── Form card (right side) ────────────────────────────────────── */

.attendance-form-card {
  display: grid;
  gap: 0;
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 0 18px 48px rgba(8, 14, 10, 0.28);
  overflow: hidden;
}

.form-card-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(201, 150, 67, 0.2);
}

.form-header-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(201, 150, 67, 0.12);
  color: var(--gold);
}

.form-header-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.form-card-header strong {
  display: block;
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.attendance-form-card form {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.attendance-response-card form {
  padding: 22px 18px 12px;
}

.attendance-form-card .field label {
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.netlify-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.label-optional {
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.input-icon-wrap {
  position: relative;
}

.input-prefix-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.input-prefix-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-icon-wrap input {
  width: 100%;
  padding-left: 42px;
  background: white;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
  min-height: 48px;
  border-radius: 8px;
  font-size: 1rem;
}

.input-icon-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 67, 0.18);
}

.att-form-row {
  display: grid;
  grid-template-columns:  1fr;
  gap: 14px;
  align-items: start;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 10px 36px 10px 14px;
  appearance: none;
  outline: none;
  cursor: pointer;
  font-size: 1rem;
}

.select-wrap select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 67, 0.18);
}

.att-choice-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.att-choice-field legend {
  color: var(--charcoal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.att-response-btns {
  display: grid;
  gap: 8px;
}

.att-response-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.att-response-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.att-response-btn:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 67, 0.22);
}

.att-response-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
  opacity: 0.6;
}

.att-response-yes {
  background: rgba(201, 150, 67, 0.08);
  border-color: rgba(201, 150, 67, 0.4);
  color: var(--green);
}

.att-response-yes svg {
  color: var(--gold);
  opacity: 1;
}

.att-response-hope {
  background: rgba(201, 150, 67, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.att-response-hope svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.att-response-btn:has(input:checked).att-response-yes {
  background: linear-gradient(135deg, rgba(216, 173, 99, 0.92), rgba(176, 117, 37, 0.92));
  border-color: var(--gold);
  color: white;
}

.att-response-btn:has(input:checked).att-response-yes svg {
  color: white;
  opacity: 1;
}

.att-response-btn:has(input:checked).att-response-hope {
  background: linear-gradient(135deg, rgba(216, 173, 99, 0.92), rgba(176, 117, 37, 0.92));
  border-color: var(--gold);
  color: white;
}

.att-response-btn:has(input:checked).att-response-hope svg {
  stroke: white;
  opacity: 1;
}

/* Attendance confirmation */
.att-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 4dvh, 52px) 32px;
  gap: 16px;
  flex: 1;
  animation: fadeUp 400ms ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.att-confirm-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(216, 173, 99, 0.25), rgba(176, 117, 37, 0.25));
  border-radius: 50%;
  color: var(--gold);
}

.att-confirm-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.att-confirm-heading {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}

.att-confirm-copy {
  margin: 0;
  max-width: 38ch;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.att-confirm-calendar {
  display: block;
  width: min(100%, 320px);
  margin-top: 6px;
}

.att-confirm-calendar .btn-add-calendar {
  min-height: 48px;
  border-color: rgba(201, 150, 67, 0.34);
  background: rgba(201, 150, 67, 0.08);
  color: var(--green);
}

.att-confirm-calendar .btn-add-calendar:hover {
  background: rgba(201, 150, 67, 0.14);
}

.att-confirm-calendar .btn-add-calendar strong {
  color: var(--green);
}

.att-confirm-calendar .btn-add-calendar small {
  color: var(--muted);
}

.att-confirm-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 150, 67, 0.18);
  width: 100%;
}

.att-confirm-share > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.btn-confirm-share {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 20px;
  background: linear-gradient(135deg, rgba(216, 173, 99, 0.92), rgba(176, 117, 37, 0.92));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.btn-confirm-share:hover {
  opacity: 0.88;
}

.btn-confirm-share svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.att-confirm-share-status {
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  min-height: 1em;
}

/* Can't make it */
.cant-make-it {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(201, 150, 67, 0.18);
}

.cant-make-it-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.btn-memory-instead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(201, 150, 67, 0.4);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: background 160ms ease, border-color 160ms ease;
}

.btn-memory-instead:hover {
  background: rgba(201, 150, 67, 0.08);
  border-color: var(--gold);
}

.btn-memory-instead svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
  stroke: none;
  flex-shrink: 0;
}

.attendance-form-card textarea {
  width: 100%;
  min-height: 106px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: white;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
}

.attendance-form-card textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 67, 0.18);
}

.btn-send-response {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #d8ad63, #b87e2e);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(176, 117, 37, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-send-response:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(176, 117, 37, 0.42);
}

.btn-send-response svg {
  width: 18px;
  height: 18px;
  fill: white;
  stroke: none;
}

.form-footnote {
  margin: 6px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.attendance-form-card .form-status {
  min-height: 20px;
  margin: 0;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.form-status,
.micro-status,
.share-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold-soft);
  font-weight: 800;
}

.dark-status,
.share-status,
.micro-status {
  color: var(--green);
}




.footer-panel {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: clamp(54px, 9vw, 112px) 0;
}

.footer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(232, 196, 125, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(6, 10, 8, 0.04), rgba(6, 10, 8, 0.62));
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-thanks-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 150, 67, 0.48);
  border-radius: 8px;
  padding: clamp(42px, 7vw, 78px) clamp(22px, 5vw, 72px);
  color: var(--green);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.78), rgba(255, 250, 240, 0.94)),
    url("assets/paper-texture.svg") center / cover no-repeat;
  box-shadow:
    0 28px 82px rgba(5, 8, 6, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.footer-thanks-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.footer-thanks-card::before {
  inset: 12px;
  border: 1px solid rgba(201, 150, 67, 0.24);
  border-radius: 6px;
}

.footer-thanks-card h2 {
  max-width: 760px;
  color: var(--green);
  font-size: 2.35rem;
  line-height: 1.08;
}

.footer-note-rule {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(360px, 78%);
  color: var(--gold);
}

.footer-note-rule span {
  flex: 1;
  height: 1px;
  background: rgba(201, 150, 67, 0.54);
}

.footer-note-rule svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-share-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(232, 196, 125, 0.44);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 32px);
  color: rgba(255, 250, 240, 0.9);
  background: rgba(8, 14, 10, 0.72);
  box-shadow: 0 22px 58px rgba(5, 8, 6, 0.26);
  backdrop-filter: blur(10px);
}

.footer-share-card .kicker {
  margin-bottom: 0;
  color: var(--gold-soft);
}

.footer-share-card h3 {
  margin: 0;
  color: white;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.18;
}

.footer-share-card p {
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
}

.footer-share-card .button {
  width: 100%;
  margin-top: 4px;
}

.footer-share-card .share-status {
  color: var(--gold-soft);
  text-align: center;
}



/* --- Memory & Gallery Specifics --- */
.memory-panel { background: none; }

.memory-left .att-heart-rule span {
  background: rgba(201, 150, 67, 0.3);
}

.memory-thank-you-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 150, 67, 0.4);
  color: var(--gold);
  flex-shrink: 0;
}

.memory-thank-you-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-thank-you-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 250, 240, 0.9);
}

.memory-header-icon {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.memory-header-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.memory-form-card .input-icon-wrap input,
.memory-form-card .textarea-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 160ms ease;
}

.memory-contact-row {
  grid-template-columns: 1fr;
}

.textarea-wrap {
  position: relative;
}

.textarea-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 160ms ease;
}

.textarea-wrap textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.textarea-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  transform: none;
  color: var(--muted);
}

.char-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.75rem;
  color: var(--muted);
  pointer-events: none;
}

.memory-photo-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 150, 67, 0.22);
}

.memory-photo-copy strong {
  display: block;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.memory-photo-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.file-upload-area {
  position: relative;
  width: 100%;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: white;
  transition: border-color 160ms ease, background 160ms ease;
  overflow: hidden;
}

.file-upload-area:hover, .file-upload-area:focus-within {
  border-color: var(--gold);
  background: white;
}

.dropbox-upload-link,
.file-upload-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.dropbox-upload-link {
  width: 100%;
  min-height: 72px;
}

.dropbox-upload-link[aria-disabled="true"] {
  cursor: default;
}

.dropbox-upload-link[aria-disabled="true"] strong,
.dropbox-upload-link[aria-disabled="true"] span,
.dropbox-upload-link[aria-disabled="true"] svg {
  opacity: 0.68;
}

.dropbox-upload-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.file-upload-content svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropbox-upload-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.dropbox-upload-link div,
.file-upload-content div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropbox-upload-link strong,
.file-upload-content strong {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.dropbox-upload-link span,
.file-upload-content span {
  font-size: 0.8rem;
  color: var(--muted);
}

.dropbox-upload-status {
  margin: -4px 14px 14px 50px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.btn-send-memory {
  margin-top: 12px;
  background: #b07525;
  color: white;
  justify-content: center;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-send-memory:hover {
  background: #a06820;
}

.btn-send-memory svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.memory-confirmation .att-confirm-heading {
  color: var(--charcoal);
}

.memory-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.memory-form-card {
  background: #fbf4e6;
  border: none;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
  padding: clamp(18px, 4vw, 28px);
}

.memory-form-card form {
  gap: 14px;
  padding: 0;
}

.memory-form-card .form-card-header {
  border-bottom: none;
  padding: 0 0 2px;
}

.memory-form-card .input-icon-wrap input,
.memory-form-card .textarea-wrap textarea {
  background: white;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
}

.memory-form-card .textarea-wrap textarea {
  min-height: 118px;
  padding-top: 12px;
  padding-bottom: 32px;
}

.memory-form-card .btn-send-memory {
  margin-top: 2px;
  padding: 0 18px;
}

.memory-form-card label {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.memory-form-card .form-card-header strong {
  font-size: clamp(0.75rem, 1.2dvh, 0.85rem);
}

.memory-form-card .form-card-header p {
  font-size: 0.88rem;
  margin-top: 2px;
}

.memory-contact-helper {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: -4px 2px 2px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.memory-contact-helper svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  fill: var(--gold);
  flex: 0 0 auto;
}

.attendance-left.memory-left h2,
.attendance-left.gallery-left h2 {
  color: white;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  max-width: 620px;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.attendance-left.memory-left .att-copy,
.attendance-left.gallery-left .att-copy {
  color: rgba(255, 250, 240, 0.92);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.3dvh, 1.1rem);
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: 0;
}

.memory-thank-you-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding: clamp(16px, 2.5dvh, 24px) clamp(20px, 2.5vw, 28px);
  background: rgba(8, 14, 10, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 150, 67, 0.5);
  border-radius: 10px;
  color: white;
  max-width: 420px;
  overflow: hidden;
}

.memory-footnote {
  margin-top: clamp(6px, 1dvh, 12px);
  font-size: clamp(0.75rem, 1.1dvh, 0.82rem);
}

.memory-left .kicker,
.gallery-left .kicker {
  color: var(--gold);
}

.memory-left .att-kicker-rule,
.gallery-left .att-kicker-rule {
  background: var(--gold-soft);
}

.memory-left .att-heart-rule svg,
.gallery-left .att-heart-rule svg {
  fill: var(--gold-soft);
}

/* --- Gallery Specifics --- */
.gallery-panel { background: none; }
.gallery-left { display: flex; flex-direction: column; height: 100%; }

.gallery-card {
  background: #fbf4e6;
  border: none;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  padding: clamp(18px, 3dvh, 28px);
}

.gallery-header-icon {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.gallery-header-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 12px);
  margin-top: 16px;
}

.gallery-photo-item {
  min-width: 0;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #efe1c9;
}

.gallery-photo-item-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gallery-photo-item-tall {
  aspect-ratio: 3 / 4;
}

.gallery-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-photo-item-focus-low img {
  object-position: 50% 64%;
}

.gallery-photo-item:hover img {
  transform: scale(1.035);
}

/* --- TABLET (768px+) --- */
@media (min-width: 768px) {
  :root {
    --copy-card-gap: 24px;
  }

  .hero-panel {
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 32px;
    padding: 28px 0 24px;
  }

  .hero-left {
    display: grid;
    align-content: start;
    gap: 32px;
    order: 1;
  }

  .hero-brand {
    order: initial;
    justify-self: start;
    width: 220px;
    margin: 0;
  }

  .portrait-card {
    order: 2;
    align-self: center;
    justify-self: end;
    width: 320px;
    max-width: 100%;
    margin: 0;
  }

  .hero-copy {
    gap: 16px;
    order: initial;
    text-align: left;
    justify-items: start;
  }

  .hero-rule {
    margin: 16px 0 18px;
  }

  .hero-line {
    margin: 0;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 16px;
    justify-content: flex-start;
    width: 100%;
  }

  .hero-action {
    grid-template-columns: 40px 1fr;
    width: 300px;
    min-height: 64px;
    gap: 12px;
    padding: 10px 18px;
  }

  .hero-action strong {
    font-size: 0.95rem;
  }

  .action-icon {
    width: 44px;
    height: 44px;
  }

  .action-icon svg {
    width: 38px;
    height: 38px;
  }

  .hero-event-card {
    margin: 8px 0 4px;
  }

  .hero-event-item {
    grid-template-columns: 52px 1fr;
    gap: 18px;
    min-height: 90px;
    padding: 16px 28px;
  }

  .event-icon {
    width: 40px;
    height: 40px;
  }

  .event-icon svg {
    width: 36px;
    height: 36px;
  }

  .hero-event-item + .hero-event-item {
    border-top: 1px solid rgba(201, 150, 67, 0.72);
    border-left: 0;
  }

  .attendance-inner,
  .memory-inner,
  .gallery-inner {
    grid-template-columns: 1fr;
    gap: var(--copy-card-gap);
    padding: clamp(36px, 4.5dvh, 56px) 0;
  }

  .attendance-left h2 {
    font-size: clamp(2rem, 6vw, 3.9rem);
  }

  .attendance-panel .att-heart-rule {
    display: flex;
  }

  .attendance-panel .att-copy {
    margin-top: 0;
  }

  .att-details-card {
    display: grid;
  }

  .footer-thanks-card h2 {
    font-size: 3rem;
  }

  .footer-share-card h3 {
    font-size: 1.9rem;
  }
}

/* --- DESKTOP (1100px+) --- */
@media (min-width: 1100px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    gap: 64px;
  }

  .hero-left {
    gap: 64px;
  }

  .hero-brand {
    width: clamp(250px, 21vw, 340px);
  }

  .portrait-card {
    width: 420px;
  }

  .hero-event-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-event-item + .hero-event-item {
    border-top: none;
    border-left: 1px solid rgba(201, 150, 67, 0.72);
  }

  .attendance-inner,
  .memory-inner,
  .gallery-inner {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
    gap: clamp(48px, 6vw, 96px);
  }

  .att-form-row, .memory-contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  }

  .footer-thanks-card h2 {
    font-size: 3.35rem;
  }

  .footer-share-card {
    justify-self: end;
  }

  .footer-share-card h3 {
    font-size: 2.05rem;
  }
}
