:root {
  --bg: #f7f5f0;
  --surface: #fff;
  --ink: #16252a;
  --muted: #5a696e;
  --line: #e5e0d6;
  --primary: #0d5c63;
  --primary-hover: #094a50;
  --primary-soft: #e6f0f1;
  --green-soft: #e7f2ea;
  --cream: #f4ede1;
  --peach: #f2b597;
  --peach-soft: #fbe9df;
  --shadow: 0 1px 2px rgba(22, 37, 42, .04), 0 8px 28px rgba(22, 37, 42, .06);
  --shadow-hover: 0 2px 4px rgba(22, 37, 42, .05), 0 16px 40px rgba(22, 37, 42, .10);
  --radius: 20px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Onest", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 88px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased }
img { max-width: 100%; display: block }
a { color: var(--primary) }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; margin: 0 }
h2 { font-size: clamp(30px, 4vw, 44px) }
h3 { font-size: 22px; line-height: 1.2 }
p { margin: 0 }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px }
.section { padding: clamp(72px, 9vw, 112px) 0 }
.section.tint { background: #fbfaf7; border-block: 1px solid var(--line) }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary) }
.head { max-width: 680px; margin-bottom: 40px }
.head p { color: var(--muted); font-size: 19px; margin-top: 14px }
.muted { color: var(--muted) }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); padding: 16px 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s }
.btn-primary { background: var(--primary); color: #fff }
.btn-primary:hover { background: var(--primary-hover) }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line) }
.btn-ghost:hover { border-color: var(--ink) }
.btn:disabled { opacity: .6; cursor: wait }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(13, 92, 99, .35); outline-offset: 2px }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 240, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s }
.nav.scrolled { border-color: var(--line) }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 72px }
.logo { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px }
.logo i { width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--primary); box-shadow: 8px 0 0 var(--peach) }
.nav-links { display: flex; gap: 28px; margin-left: auto; list-style: none; padding: 0 }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500 }
.nav-links a:hover { color: var(--primary) }
.nav .btn { padding: 12px 20px; font-size: 15px }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px }
@media (max-width: 900px) {
  .burger { display: block }
  .nav .nav-cta { display: none }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; margin: 0 }
  .nav-links a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line) }
  .nav.open .nav-links { display: flex }
  .nav-links .mobile-cta { display: block; margin-top: 16px }
  .nav-links .mobile-cta a { border: 0; color: #fff; text-align: center }
}
@media (min-width: 901px) { .nav-links .mobile-cta { display: none } }

/* status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.badge.COLLECTING::before { animation: pulse 2s infinite }
.badge.READY { background: var(--green-soft); color: #1f6b3d }
.badge.COMPLETED { background: #e9ecea; color: #33463b }
.badge.IDEA { background: var(--peach-soft); color: #9a4b26 }
.badge.CANCELLED { background: #efeded; color: #6d6262 }
@keyframes pulse { 50% { opacity: .3 } }
.cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }

/* progress */
.bar { height: 8px; background: #ece7de; border-radius: 999px; overflow: hidden }
.bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .9s cubic-bezier(.2, .7, .2, 1) }
.READY .bar i, .bar.done i { background: #2f8a55 }

/* cover placeholder */
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-soft); color: var(--primary) }
.cover img { width: 100%; height: 100%; object-fit: cover }
.cover.c1 { background: var(--green-soft); color: #2f7a4d }
.cover.c2 { background: var(--cream); color: #8a5a2b }
.cover.c3 { background: var(--peach-soft); color: #a3532d }
.cover:not(:has(img))::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(currentColor 1px, transparent 1.2px); background-size: 18px 18px; opacity: .14 }
.cover svg { position: absolute; right: 8%; bottom: 12%; width: 34%; height: auto; opacity: .85 }

/* project cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px }
.filters button { font: 500 15px/1 var(--body); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .2s }
.filters button:hover { border-color: var(--ink) }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr) }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 20px } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d8d1c4 }
.card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1 }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.card-body > p { color: var(--muted); font-size: 16px }
.card-nums { margin-top: auto; padding-top: 10px; display: grid; gap: 10px }
.card-nums .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px }
.card-nums b { font-size: 18px; font-weight: 600 }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px }
.card-foot span:last-child { font-weight: 600; color: var(--primary) }
.card-idea { margin-top: auto; padding: 14px 16px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 15px }
.empty-note { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted) }

/* inputs */
input, textarea { font: inherit; color: var(--ink) }
.field { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff }
.field:focus { border-color: var(--primary); outline: none }

/* dialog */
dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow-hover) }
dialog::backdrop { background: rgba(22, 37, 42, .4) }
dialog form { padding: 32px; display: grid; gap: 16px }
dialog h3 { font-size: 28px }
dialog .x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted) }

/* footer */
footer { background: var(--ink); color: #c9d3d5; padding: 64px 0 40px; font-size: 15px }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px }
footer .logo { color: #fff }
footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 14px }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px }
footer a { color: #c9d3d5; text-decoration: none }
footer a:hover { color: #fff }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; font-size: 13px; color: #8fa0a4 }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr 1fr } footer .wrap > div:first-child { grid-column: 1 / -1 } }

.note { padding: 16px 20px; border-radius: 14px; background: var(--green-soft); color: #1f5a36; margin-bottom: 24px }
.note.cancel { background: var(--peach-soft); color: #8a4220 }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important } html { scroll-behavior: auto } }
