@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --blue: #5170ff;
  --green: #00bf63;
  --ink: #101b38;
  --muted: #5f6980;
  --line: #dde2ec;
  --soft: #f5f7fb;
  --white: #ffffff;
  --gradient: linear-gradient(100deg, var(--blue), var(--green));
  --shadow: 0 24px 70px rgba(16, 27, 56, 0.12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section { padding: 108px 0; }
.section-title { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -0.055em; }
.section-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; font-weight: 700; letter-spacing: 0.18em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.72); color: white; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.btn-outline:hover { background: white; color: var(--ink); }
.btn-gradient { color: white; background: var(--gradient); box-shadow: 0 14px 35px rgba(46, 128, 203, .28); }
.btn-plain { color: var(--ink); border-color: var(--line); background: white; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 24%, rgba(255,255,255,.22), transparent 31%),
    radial-gradient(circle at 8% 78%, rgba(255,255,255,.12), transparent 28%),
    linear-gradient(118deg, #5170ff 0%, #338cd0 52%, #00bf63 100%);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.hero::before { width: 640px; height: 640px; right: -160px; top: 80px; }
.hero::after { width: 390px; height: 390px; left: -190px; bottom: -30px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 68px; padding-top: 88px; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(4rem, 7.4vw, 7.1rem); line-height: .91; letter-spacing: -.075em; }
.hero h1 span { color: white; }
.hero-copy { max-width: 640px; margin: 30px 0 36px; color: rgba(255,255,255,.78); font-size: 1.16rem; line-height: 1.7; }
.hero .btn-gradient { background: white; box-shadow: 0 14px 35px rgba(16, 27, 56, .18); }
.hero .btn-gradient span { color: transparent; background: var(--gradient); background-clip: text; -webkit-background-clip: text; }
.hero-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 220px 220px 28px 28px;
  background: url('/assets/flomina-project.webp') center 32% / cover;
  box-shadow: 0 40px 90px rgba(0,0,0,.3);
}
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,15,35,.82)); }
.hero-card-label { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 30px; }
.hero-card-label small { display: block; margin-bottom: 8px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .15em; }
.hero-card-label strong { font-size: 1.45rem; line-height: 1.2; }

.project-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.project-media { overflow: hidden; border-radius: var(--radius); background: var(--soft); box-shadow: var(--shadow); }
.project-media img { width: 100%; height: 520px; object-fit: cover; object-position: center 22%; }
.funding { padding: 26px 28px 30px; }
.funding-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.funding strong { font-size: 1.2rem; }
.funding span { color: var(--muted); }
.progress { height: 12px; overflow: hidden; border-radius: 99px; background: #e9edf4; }
.progress-fill { width: 0%; height: 100%; border-radius: inherit; background: var(--gradient); }
.project-copy h2 { margin: 0 0 24px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.06em; }
.project-copy .meta { display: flex; gap: 12px; margin-bottom: 20px; }
.tag { padding: 8px 13px; border-radius: 99px; background: #edf1ff; color: var(--blue); font-size: .82rem; font-weight: 700; }
.location { color: var(--muted); padding: 8px 0; font-size: .86rem; }
.project-copy .btn { margin-top: 12px; }

.about-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; padding: 72px; border-radius: 36px; color: white; background: var(--gradient); }
.about-card .eyebrow { color: white; opacity: .75; }
.about-card p { margin: 0 0 20px; color: rgba(255,255,255,.88); font-size: 1.08rem; line-height: 1.75; }

.work { background: var(--soft); }
.work-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.work-list { display: grid; gap: 16px; margin-top: 32px; }
.work-list div { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.work-list b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--gradient); }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 18px 50px rgba(16,27,56,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cfd5e2; border-radius: 14px; padding: 15px 16px; background: white; color: var(--ink); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(81,112,255,.11); }
.field textarea { min-height: 140px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 20px; border: 0; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.site-footer { padding: 68px 0 30px; color: rgba(255,255,255,.82); background: var(--gradient); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: white; font-weight: 700; font-size: 1.2rem; letter-spacing: .16em; }
.footer-brand img { width: 52px; height: 52px; }
.footer-slogan { margin: 18px 0 0; }
.footer-col h3 { margin: 0 0 18px; color: white; font-size: .86rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-col a { display: block; width: fit-content; margin: 0 0 12px; }
.footer-col a:hover { color: white; }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); font-size: .82rem; }

.project-hero { padding: 160px 0 76px; color: white; background: var(--gradient); }
.project-hero h1 { max-width: 900px; margin: 20px 0 24px; font-size: clamp(3.4rem, 7vw, 6.5rem); line-height: .94; letter-spacing: -.065em; }
.project-hero p { max-width: 700px; color: rgba(255,255,255,.74); font-size: 1.15rem; line-height: 1.7; }
.detail-main { padding: 68px 0 112px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 64px; align-items: start; }
.detail-image { width: 100%; max-height: 620px; object-fit: cover; object-position: center 24%; border-radius: var(--radius); }
.story h2 { margin: 64px 0 18px; font-size: 2.2rem; letter-spacing: -.04em; }
.story p, .story li { color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.story ul { padding-left: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 32px 0; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.stat strong { display: block; margin-bottom: 5px; font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: .86rem; }
.budget { width: 100%; border-collapse: collapse; margin-top: 24px; }
.budget th, .budget td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.budget th:last-child, .budget td:last-child { text-align: right; white-space: nowrap; }
.budget tfoot { font-weight: 700; }
.timeline { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.timeline div { padding: 20px; border-radius: 16px; background: var(--soft); }
.timeline b { display: block; color: var(--blue); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline strong { display: block; margin: 7px 0; }
.support-card { position: sticky; top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.support-card h2 { margin: 0 0 8px; font-size: 2rem; }
.support-card p { color: var(--muted); line-height: 1.65; }
.support-card .btn { width: 100%; margin-top: 22px; }
.support-button-pending { cursor: not-allowed; opacity: .58; transform: none !important; }
.support-card .funding { padding: 14px 0 0; }
.budget-note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; color: #42506c; background: #f2f5fa; font-size: .85rem; line-height: 1.55; }

.project-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background: white;
}
.project-page .brand { color: #111111; }
.project-page .brand img { width: 48px; height: 48px; border-radius: 50%; }
.project-page .btn-outline { color: #111111; border-color: #111111; background: white; backdrop-filter: none; }
.project-page .btn-outline:hover { color: white; border-color: var(--blue); background: var(--blue); }
.project-intro { padding: 46px 0 22px; background: white; }
.project-intro h1 { margin: 0; color: #111111; font-size: clamp(2.7rem, 4.6vw, 4.2rem); line-height: .96; letter-spacing: -.06em; white-space: nowrap; }
.project-page .detail-main { padding: 18px 0 96px; }
.project-page .detail-image { max-height: 520px; }
.project-page .support-card { top: 20px; }
.project-page .site-footer { background: var(--gradient); }
.report-link { display: block; width: fit-content; margin: 18px auto 0; color: var(--muted); font-size: .86rem; text-decoration: underline; text-underline-offset: 4px; }
.report-link:hover { color: #111111; }
.email-page { min-height: 100vh; display: grid; place-items: center; padding: 100px 20px; background: var(--soft); }
.email-card { width: min(560px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); text-align: center; }
.email-card h1 { margin: 12px 0; font-size: clamp(2.2rem, 6vw, 3.5rem); letter-spacing: -.05em; }
.email-card p { color: var(--muted); line-height: 1.7; }
.email-options { display: grid; gap: 12px; margin-top: 28px; }
.email-options .btn { width: 100%; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 145px 0 80px; }
  .hero-grid, .project-layout, .about-card, .work-layout, .detail-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.6rem, 15vw, 5.4rem); }
  .hero-card { min-height: 440px; max-width: 560px; width: 100%; }
  .project-layout, .work-layout { gap: 44px; }
  .about-card { gap: 30px; padding: 46px 34px; }
  .support-card { position: static; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 78px 0; }
  .brand span { display: none; }
  .site-header { padding: 18px 0; }
  .hero { padding-top: 125px; }
  .hero h1 { font-size: 3.65rem; }
  .hero-card { min-height: 380px; }
  .project-media img { height: 420px; }
  .project-copy h2 { font-size: 3rem; }
  .about-card { padding: 36px 25px; border-radius: 24px; }
  .form-card { padding: 24px 18px; }
  .form-grid, .stat-grid, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 38px; }
  .detail-main { padding-top: 36px; }
  .project-intro { padding: 34px 0 16px; }
  .project-intro h1 { font-size: 2.7rem; white-space: normal; }
  .project-page .detail-main { padding-top: 12px; }
  .budget { font-size: .86rem; }
  .budget th, .budget td { padding: 12px 6px; }
}

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