:root {
  --ink: #12241f;
  --muted: #4d635b;
  --paper: #edf5f1;
  --paper-deep: #d7e7df;
  --leaf: #2b6b55;
  --leaf-deep: #123f34;
  --bloom: #c45c26;
  --line: rgba(18, 36, 31, 0.12);
  --shadow: 0 24px 60px rgba(18, 63, 52, 0.14);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 14% 12%, rgba(84, 150, 124, 0.22), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(196, 92, 38, 0.12), transparent 26%),
    linear-gradient(180deg, #f3f8f5 0%, #e7f0eb 45%, #edf5f1 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 36, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 36, 31, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
  z-index: 0;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 6vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(244, 239, 230, 0.78);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.topbar nav a:hover {
  color: var(--leaf-deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rise 1.1s ease both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 24, 20, 0.82) 0%, rgba(8, 24, 20, 0.55) 42%, rgba(8, 24, 20, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 24, 20, 0.2) 0%, rgba(8, 24, 20, 0.72) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 6vw;
  max-width: 46rem;
  color: #f4faf7;
  animation: fade-up 0.9s ease 0.15s both;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.92;
  color: #f4faf7;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: 14ch;
}

.hero__lede {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  color: rgba(244, 250, 247, 0.82);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero .btn--primary {
  background: #f4faf7;
  color: var(--leaf-deep);
}

.hero .btn--primary:hover {
  background: #ffffff;
}

.hero .btn--ghost {
  border-color: rgba(244, 250, 247, 0.35);
  color: #f4faf7;
}

.hero .btn--ghost:hover {
  border-color: #f4faf7;
  color: #ffffff;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--leaf-deep);
  color: #f7f2ea;
}

.btn--primary:hover {
  background: var(--leaf);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(28, 36, 31, 0.18);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.btn.is-selected,
.proposal.is-selected .btn--select {
  background: var(--bloom);
  border-color: var(--bloom);
  color: #fff;
}

.section {
  padding: 5.5rem 6vw;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bloom);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.3rem);
  font-weight: 500;
  line-height: 1.05;
}

.section__intro p:last-child {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.proposal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.72);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: fade-up 0.7s ease both;
}

.proposal:nth-child(2) {
  animation-delay: 0.08s;
}

.proposal:nth-child(3) {
  animation-delay: 0.16s;
}

.proposal:hover,
.proposal.is-active {
  transform: translateY(-4px);
  border-color: rgba(47, 93, 74, 0.35);
}

.proposal.is-selected {
  border-color: rgba(138, 75, 75, 0.55);
}

.proposal__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.proposal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.proposal__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.proposal__code {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.proposal h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.proposal__tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.proposal__blurb {
  margin: 0.9rem 0 0;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.95rem;
}

.proposal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

.proposal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.review {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.35), rgba(231, 223, 209, 0.55));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.review__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-tab {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.8);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.page-tab.is-active {
  background: var(--leaf-deep);
  border-color: var(--leaf-deep);
  color: #f7f2ea;
}

.viewer {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.viewer__stage {
  min-height: 70vh;
  max-height: none;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.65), rgba(255, 253, 249, 0.95));
}

.viewer__empty,
.viewer__fallback {
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.viewer__stage img,
.viewer__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  image-rendering: auto;
  /* Keep full bitmap sharpness when the layout scales down */
  -webkit-user-drag: none;
}

.viewer__stage iframe {
  width: 100%;
  min-height: 75vh;
  border: 0;
  background: #fff;
}

.decision__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: rgba(255, 252, 247, 0.8);
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.decision__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.decision__value {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.decision__note {
  margin: 0.75rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 6vw 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 24, 20, 0.82);
  padding: 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #f7f2ea;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lightbox iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 84vh;
  }

  .hero__content {
    padding: 3rem 6vw 2.5rem;
  }

  .proposal-grid {
    grid-template-columns: 1fr;
  }

  .topbar nav {
    display: none;
  }
}
