/* ==========================================================================
   Trace: 2030 — 활동 아카이브
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  --ink:        #0F1A17;
  --ink-2:      #2B3A35;
  --muted:      #6E7C77;
  --muted-2:    #97A29E;
  --paper:      #FBFBF9;
  --surface:    #FFFFFF;
  --line:       #E2E7E4;
  --line-2:     #EFF2F0;

  --moss:       #0E5C48;
  --moss-deep:  #093A2E;
  --moss-soft:  #E6F1EC;
  --amber:      #F0A03C;
  --amber-soft: #FDF2E0;

  /* Category accents */
  --c-env:    #2F8F5B;
  --c-animal: #C4762A;
  --c-care:   #3F6CB0;
  --c-media:  #7B58A6;
  --c-edu:    #B2503C;

  /* Type */
  --display: 'Hahmlet', 'Noto Serif KR', serif;
  --body:    'IBM Plex Sans KR', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Space & shape */
  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(15, 26, 23, .05), 0 4px 14px rgba(15, 26, 23, .05);
  --shadow-2: 0 12px 34px rgba(15, 26, 23, .12);
  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.03em;
  margin: 0;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Shared type utilities
   ========================================================================== */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  margin-top: 16px;
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--moss); color: #fff; }
.btn--primary:hover { background: var(--moss-deep); }

.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--light { background: #fff; color: var(--moss-deep); }
.btn--light:hover { background: #F1F6F3; }

.btn--sm { padding: 9px 18px; font-size: 14px; }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 249, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 32px; height: 32px;
  flex: none;
}
.brand__text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.04em;
}
.brand__text span { color: var(--moss); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  transition: color .18s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--moss); }

.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 1.5px; background: var(--ink);
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 14px 0 0; align-self: flex-start; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 84px 0 0;
  background:
    radial-gradient(900px 420px at 82% 0%, var(--moss-soft) 0%, transparent 62%),
    var(--paper);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.24;
  margin-top: 20px;
  letter-spacing: -.045em;
}
.hero h1 em {
  font-style: normal;
  color: var(--moss);
  white-space: nowrap;
  background-image: linear-gradient(to top,
    rgba(240, 160, 60, .34) 0, rgba(240, 160, 60, .34) .28em, transparent .28em);
  padding: 0 .04em;
}
.hero__lead {
  margin-top: 22px;
  font-size: 17px;
  color: var(--muted);
  max-width: 30em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Signature: the trace path */
.hero__panel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--moss-deep);
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-2);
}
.hero__panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) { .hero__panel { aspect-ratio: 4 / 3; } }

.hero__panel-label {
  position: absolute;
  left: 22px; bottom: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
}

.trace-path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.8s var(--ease) .3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.trace-dot { fill: #fff; opacity: 0; animation: pop .5s var(--ease) forwards; }
@keyframes pop { to { opacity: 1; } }

/* Stats */
.stats {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 30px 24px 34px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--moss-deep);
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: .5em; font-weight: 600; color: var(--amber); top: -.7em; }
.stat__label {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero { padding-top: 52px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line-2); }
.section--dark { background: var(--moss-deep); color: #fff; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }
.section--dark .eyebrow { color: var(--amber); }

@media (max-width: 700px) { .section { padding: 64px 0; } }

/* About */
.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.about h2 { font-size: clamp(25px, 3.2vw, 36px); margin-top: 16px; }
.about__body p + p { margin-top: 18px; }
.about__body p { color: var(--ink-2); font-size: 16.5px; }
.about__body strong { color: var(--moss); font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* Activity fields */
.fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.field {
  background: var(--surface);
  padding: 32px 26px 36px;
  transition: background .25s var(--ease);
}
.field:hover { background: var(--moss-soft); }
.field__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted-2);
}
.field h3 { font-size: 20px; margin-top: 14px; }
.field p { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.field__bar { width: 30px; height: 3px; border-radius: 2px; margin-top: 18px; }
@media (max-width: 900px) { .fields { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* ==========================================================================
   Gallery cards  (signature element: the trace stamp)
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 26px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              border-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--moss-soft);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }

/* Placeholder artwork used until real photos are dropped in */
.ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.32) 1px, transparent 0),
    linear-gradient(145deg, var(--ph-a), var(--ph-b));
  background-size: 14px 14px, 100% 100%;
}
.ph__no {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.9);
  -webkit-text-stroke: 0;
  font-variant-numeric: tabular-nums;
}
.ph__cap {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.card__stamp {
  position: absolute;
  right: 14px; top: 14px;
  min-width: 46px;
  height: 46px;
  padding: 0 8px;
  border-radius: 50px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  transform: rotate(-6deg);
  transition: transform .3s var(--ease);
}
.card:hover .card__stamp { transform: rotate(0deg) scale(1.04); }

.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }

.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--cat, var(--moss));
  background: var(--moss-soft);
  background: color-mix(in srgb, var(--cat, var(--moss)) 10%, white);
}

.card__title {
  font-size: 17.5px;
  line-height: 1.5;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__sum {
  margin-top: 9px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Gallery page
   ========================================================================== */

.page-head {
  padding: 58px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 90% -10%, var(--moss-soft) 0%, transparent 65%),
    var(--paper);
}
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 16px; }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 46em; }

.crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 8px;
}
.crumb a:hover { color: var(--moss); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 70px;
  background: rgba(251,251,249,.94);
  backdrop-filter: blur(10px);
  z-index: 40;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter .n { font-family: var(--mono); font-size: 11px; opacity: .65; margin-left: 5px; }

.toolbar__right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.search {
  position: relative;
  display: flex; align-items: center;
}
.search input {
  width: 210px;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s var(--ease), width .25s var(--ease);
}
.search input:focus { outline: none; border-color: var(--moss); width: 250px; }
.search svg { position: absolute; left: 13px; color: var(--muted-2); pointer-events: none; }

select.sort {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 34px 9px 15px;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E7C77' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 13px center;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  appearance: none;
  cursor: pointer;
}

.result-line {
  padding: 22px 0 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
}
.result-line b { color: var(--moss); font-weight: 600; }

.empty {
  padding: 90px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.empty h3 { font-size: 20px; }
.empty p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.empty .btn { margin-top: 22px; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 52px;
}
.pager button {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ==========================================================================
   Activity detail
   ========================================================================== */

.detail { padding-block: 46px 90px; }

.detail__head { max-width: 860px; }
.detail__title {
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.34;
  margin-top: 18px;
}
.detail__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.fact {
  flex: 1 1 160px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.fact dd {
  margin: 6px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.02em;
}
@media (max-width: 640px) {
  .fact { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
}

.stage {
  margin-top: 36px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--moss-soft);
  cursor: zoom-in;
}
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage .ph__no { font-size: clamp(56px, 10vw, 104px); }

.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 92px; height: 68px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--moss-soft);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--moss); }

.prose { max-width: 720px; margin-top: 42px; }
.prose p { font-size: 16.5px; color: var(--ink-2); line-height: 1.9; }
.prose p + p { margin-top: 20px; }
.prose h3 {
  font-size: 21px;
  margin-top: 38px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}
.prose blockquote {
  margin: 32px 0 0;
  padding: 22px 24px;
  background: var(--moss-soft);
  border-radius: var(--r-md);
  font-size: 16px;
  color: var(--moss-deep);
  font-family: var(--display);
  line-height: 1.8;
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  background: var(--surface);
}

.neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.neighbor {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  background: var(--surface);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.neighbor:hover { border-color: var(--ink); transform: translateY(-2px); }
.neighbor span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.neighbor strong { display: block; margin-top: 8px; font-weight: 600; font-size: 15.5px; line-height: 1.55; }
.neighbor--next { text-align: right; }
.neighbor--empty { opacity: .4; pointer-events: none; }
@media (max-width: 600px) { .neighbors { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(9, 18, 15, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__close {
  position: absolute; top: 20px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ==========================================================================
   Testimonials / FAQ / CTA
   ========================================================================== */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-md);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
}
.quote__mark {
  font-family: var(--display);
  font-size: 42px;
  line-height: .8;
  color: var(--amber);
  opacity: .85;
}
.quote p { margin-top: 16px; flex: 1; font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.86); }
.quote__who {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; gap: 12px;
}
.quote__ini {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--moss-deep);
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--display);
  flex: none;
}
.quote__who b { display: block; font-size: 14.5px; font-weight: 600; }
.quote__who small { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,.55); }

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.03em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 20px;
  color: var(--moss);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 26px 0; color: var(--muted); font-size: 15.5px; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(27px, 4vw, 42px); margin-top: 16px; }
.cta p { margin-top: 16px; color: rgba(255,255,255,.72); max-width: 34em; margin-inline: auto; }
.cta .btn { margin-top: 30px; }

/* ==========================================================================
   Upload page
   ========================================================================== */

.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--amber-soft);
  border: 1px solid #F2DDB8;
  font-size: 14.5px;
  color: #7A5218;
  line-height: 1.7;
}
.note b { font-weight: 600; }

.form { max-width: 760px; margin-top: 34px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.f { margin-bottom: 20px; }
.f > label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.f .hint { font-weight: 400; color: var(--muted-2); font-size: 12.5px; margin-left: 6px; }
.f input[type="text"],
.f input[type="date"],
.f input[type="number"],
.f select,
.f textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.f textarea { min-height: 160px; resize: vertical; line-height: 1.8; }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px var(--moss-soft);
}

.drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 40px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.drop:hover, .drop.is-over { border-color: var(--moss); background: var(--moss-soft); }
.drop strong { display: block; font-size: 15.5px; font-weight: 600; }
.drop span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.preview { position: relative; width: 104px; height: 78px; border-radius: var(--r-sm); overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.form__actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.form__msg { font-size: 14px; color: var(--moss); font-weight: 500; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding: 56px 0 40px;
  font-size: 14px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .brand__text { color: #fff; }
.footer__desc { margin-top: 12px; max-width: 26em; line-height: 1.75; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { transition: color .18s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.42);
}

/* ==========================================================================
   Scroll reveal & motion prefs
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .trace-path { stroke-dashoffset: 0; }
}
