/* Community Makers — DESIGN.md: teal on paper, night surfaces, Instrument Serif + Manrope, 1 px lines, radius 4, no shadows. */
:root {
  --paper: #F7F6F2; --white: #FFFFFF; --ink: #16211F; --muted: #5B6663; --line: #DDD9D1; --line-2: #ECE9E2;
  --teal: #346C73; --teal-deep: #2A585E; --teal-soft: #E6EEEF; --night: #1E3B40; --night-2: #163034; --green: #7CC68D; --sand: #E9E4D8;
  --wait: #8A5A12; --wait-bg: #FBF1E2; --ok: #2E6A4B; --ok-bg: #E6F2EA; --bad: #A3191F; --bad-bg: #FBEAEA;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --r: 4px; --wrap: 1280px; --gut: 24px; --sec: 80px;
  --ease-out: cubic-bezier(.2, .7, .2, 1); --t-fast: 180ms; --t-med: 260ms;
}
@media (min-width: 900px) { :root { --gut: 40px; --sec: 128px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--teal-deep); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, .h1 { font: 400 clamp(44px, 6.5vw, 92px)/1 var(--serif); letter-spacing: -.02em; }
h2, .h2 { font: 400 clamp(34px, 4.4vw, 60px)/1.05 var(--serif); letter-spacing: -.015em; }
h3, .h3 { font: 600 22px/1.25 var(--sans); letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: inherit; }
p { margin: 0 0 1em; max-width: 65ch; }
h1 + p, h2 + p, h2 + .lead, h1 + .lead { margin-top: 20px; }
.split h2 + p { margin-top: 20px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); }
.lab { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lab::before { content: ""; width: 24px; height: 1px; background: var(--teal); }
.on-night .lab { color: #B7C7C9; } .on-night .lab::before { background: var(--green); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.on-night { background: var(--night); color: #F4F2EC; }
.on-night .muted, .on-night .lead { color: #B7C7C9; }
.on-night a { color: #fff; }
.on-white { background: var(--white); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 16px; }

/* buttons: default · hover · focus-visible · active · disabled */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--p { background: var(--teal); color: #fff; }
.btn--p:hover { background: var(--teal-deep); color: #fff; }
.btn--s { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--s:hover { background: var(--ink); color: #fff; }
.on-night .btn--p, .btn--w, .on-night a.btn--w, .on-night a.btn--p { background: #fff; color: var(--night); }
.on-night .btn--p:hover, .btn--w:hover, .on-night a.btn--w:hover { background: var(--sand); color: var(--night); }
.on-night .btn--s { color: #fff; border-color: rgba(255,255,255,.55); }
.on-night .btn--s:hover { background: #fff; color: var(--night); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn .i { width: 18px; height: 18px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link .i { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.link:hover .i { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; animation: ring var(--t-fast) var(--ease-out); }
.on-night :focus-visible { outline-color: #fff; }
@keyframes ring { from { outline-offset: 0; } }

/* header */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color var(--t-med), border-color var(--t-med); border-bottom: 1px solid transparent; }
.hd__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.hd__logo { display: block; width: 168px; }
.hd__logo img { width: 100%; }
.hd__logo .lo-d { display: none; }
.hd nav { display: none; }
.hd.is-solid, .hd.is-light { background: rgba(247, 246, 242, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.hd.is-solid .lo-w, .hd.is-light .lo-w { display: none; } .hd.is-solid .lo-d, .hd.is-light .lo-d { display: block; }
.hd__burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; color: #fff; cursor: pointer; border-radius: var(--r); }
.hd.is-solid .hd__burger, .hd.is-light .hd__burger { color: var(--ink); }
.hd__burger .i { width: 26px; height: 26px; }
@media (min-width: 1000px) {
  .hd nav { display: flex; align-items: center; gap: 4px; }
  .hd nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: var(--r); }
  .hd nav a:hover { background: rgba(255,255,255,.12); }
  .hd nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .hd.is-solid nav a, .hd.is-light nav a { color: var(--ink); } .hd.is-solid nav a:hover, .hd.is-light nav a:hover { background: var(--line-2); }
  .hd nav .btn { margin-left: 12px; min-height: 44px; padding: 0 18px; font-size: 14px; background: #fff; color: var(--night); }
  .hd.is-solid nav .btn, .hd.is-light nav .btn { background: var(--teal); color: #fff; }
  .hd__burger { display: none; }
}
.menu { position: fixed; inset: 0; z-index: 70; background: var(--night); color: #fff; padding: 24px var(--gut); display: flex; flex-direction: column; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.menu__top img { width: 168px; }
.menu__close { width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; color: #fff; cursor: pointer; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; }
.menu__close .i { width: 26px; height: 26px; }
.menu nav { display: flex; flex-direction: column; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.15); }
.menu nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; color: #fff; text-decoration: none; font: 400 28px/1.1 var(--serif); border-bottom: 1px solid rgba(255,255,255,.15); }
.menu nav a .i { color: #B7C7C9; }
.menu .btn { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,59,64,.45) 0%, rgba(30,59,64,.25) 35%, rgba(30,59,64,.88) 100%), linear-gradient(90deg, rgba(30,59,64,.55) 0%, rgba(30,59,64,.15) 55%, rgba(30,59,64,0) 100%); }
.hero__in { position: relative; padding: 140px 0 40px; }
.hero h1 { max-width: 13ch; }
.hero .lead { color: #DCE6E6; max-width: 46ch; margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__bar { display: none; flex-wrap: wrap; gap: 8px 28px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); font-size: 14px; color: #DCE6E6; }
.hero__bar span { display: inline-flex; align-items: center; gap: 8px; }
.hero__bar .i { width: 16px; height: 16px; color: var(--green); }
.hero--sub { min-height: 70svh; }
.hero .btn--s { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--s:hover { background: #fff; color: var(--night); }
.hero--sub .hero__in { padding-bottom: 56px; }
@media (min-width: 700px) { .hero__bar { display: flex; } }
@media (min-width: 900px) { .hero__in { padding-bottom: 64px; } .hero--sub { min-height: 62svh; } }

/* split rows */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split--rev > :first-child { order: 2; } }
.split--h { gap: 16px; align-items: start; }
@media (min-width: 900px) { .split--h { gap: 80px; } }
.ph { border-radius: var(--r); overflow: hidden; background: var(--sand); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--sq { aspect-ratio: 1; } .ph--p { aspect-ratio: 4 / 5; } .ph--l { aspect-ratio: 3 / 2; } .ph--w { aspect-ratio: 16 / 9; }

/* manifest */
.mani { font: 400 clamp(28px, 3.6vw, 48px)/1.15 var(--serif); letter-spacing: -.015em; max-width: 22ch; }
.mani em { color: var(--teal); }
.on-night .mani em { color: #fff; }

/* lines list (three legs / process / values) */
.rows { border-top: 1px solid var(--ink); }
.on-night .rows { border-top-color: rgba(255,255,255,.35); }
.row { display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.on-night .row { border-bottom-color: rgba(255,255,255,.15); }
.row__no { font: 400 18px/1 var(--serif); color: var(--teal); }
.on-night .row__no { color: var(--green); }
.row h3 { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: -.01em; }
.row p { color: var(--muted); margin: 0; }
.on-night .row p { color: #B7C7C9; }
.row .link { align-self: start; }
@media (min-width: 900px) { .row { grid-template-columns: 64px 1fr 1.2fr auto; gap: 32px; align-items: start; padding: 36px 0; } .row--3 { grid-template-columns: 64px 1fr 1.6fr; } .row--2 { grid-template-columns: 64px 1fr; } }
a.row:hover h3 { color: var(--teal); }
.on-night a.row:hover h3 { color: var(--green); }

/* legs with photo */
.legs { display: grid; gap: 24px; }
@media (min-width: 900px) { .legs { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.leg { display: block; color: inherit; text-decoration: none; }
.leg .ph { margin-bottom: 20px; transition: transform var(--t-med) var(--ease-out); }
.leg .ph img { transition: transform 600ms var(--ease-out); }
.leg:hover .ph img { transform: scale(1.03); }
.leg h3 { font: 400 32px/1.1 var(--serif); margin-bottom: 8px; }
@media (max-width: 899px) { .leg .ph--p, .pr .ph { aspect-ratio: 4 / 3; } }
.leg p { color: var(--muted); margin-bottom: 12px; }

/* values grid (forside) */
.vals { display: grid; gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
@media (min-width: 700px) { .vals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.val { background: var(--night); padding: 28px 24px; }
.val b { display: block; font: 400 15px/1 var(--serif); color: var(--green); margin-bottom: 16px; }
.val h3 { font: 400 26px/1.15 var(--serif); margin-bottom: 10px; }
.val p { color: #B7C7C9; font-size: 16px; margin: 0; }
.val--q { display: flex; align-items: flex-end; }
.val--q p { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); color: #fff; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
/* process */
.steps { display: grid; gap: 24px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.step { border-top: 2px solid var(--teal); padding-top: 16px; }
.on-night .step { border-top-color: var(--green); }
.step b { display: block; font: 400 40px/1 var(--serif); color: var(--teal); margin-bottom: 12px; }
.on-night .step b { color: var(--green); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }
.on-night .step p { color: #B7C7C9; }

/* projects */
.proj { display: grid; gap: 32px; }
@media (min-width: 700px) { .proj { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; } .proj .pr:nth-child(2) { margin-top: 64px; } .proj .pr:nth-child(3) .ph { aspect-ratio: 4 / 5; } .proj .pr:nth-child(1) .ph { aspect-ratio: 3 / 4; } }
.pr { display: block; color: inherit; text-decoration: none; }
.pr .ph { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.pr .ph img { transition: transform 600ms var(--ease-out); }
.pr:hover .ph img { transform: scale(1.03); }
.pr__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pr h3 { font: 400 28px/1.1 var(--serif); }
.pr p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: var(--r); font: 600 13px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; background: var(--teal-soft); color: var(--teal); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.on-night .chip { background: rgba(255,255,255,.12); color: #DCE6E6; } .on-night .chip::before { background: var(--green); }

/* partners */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logos a, .logos div { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 1; background: var(--white); padding: 16px; min-width: 0; }
@media (min-width: 700px) { .logos a, .logos div { padding: 24px; } }
.logos img { max-height: 44px; width: auto; max-width: min(150px, 100%); opacity: .9; }
.logos a:hover img { opacity: 1; }
.logos__txt { flex-direction: column; gap: 8px; text-align: center; font: 600 13px/1.3 var(--sans); color: var(--teal); }
.logos__txt .i { width: 26px; height: 26px; }
.trust { display: grid; gap: 24px; margin-top: 40px; }
.trust div { display: flex; gap: 16px; align-items: flex-start; }
.trust .i { width: 28px; height: 28px; color: var(--teal); margin-top: 2px; }
.trust p { margin: 0; color: var(--muted); }
.trust b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* CTA band */
.band { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.band .ph { aspect-ratio: 4 / 3; }
.band--txt { grid-template-columns: 1fr; }
@media (min-width: 900px) { .band--txt { grid-template-columns: 1.2fr 1fr; } .band--txt .steps { grid-template-columns: 1fr 1fr; } }

/* contact */
.ct { display: grid; gap: 40px; }
@media (min-width: 900px) { .ct { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.ct__card { display: grid; gap: 20px; }
.ct__line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ct__line:first-child { border-top: 1px solid var(--ink); }
.ct__line .i { color: var(--teal); margin-top: 3px; }
.ct__line b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ct__line a { font-weight: 500; }
.ct__line .cp { margin-left: auto; }
.cp { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r); font: 600 13px/1 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast); }
.cp:hover { border-color: var(--ink); } .cp:active { transform: scale(.97); }
.cp .i { width: 16px; height: 16px; }
.cp.is-done { border-color: var(--ok); color: var(--ok); }
.person { display: flex; gap: 20px; align-items: center; }
.person .ph { width: 96px; height: 96px; flex: none; border-radius: var(--r); }
.person b { display: block; font-size: 18px; }
.person span { color: var(--muted); font-size: 15px; }

/* forms: visible label · default · focus · error · disabled */
.form { display: grid; gap: 18px; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 600; font-size: 15px; }
.f label small { font-weight: 400; color: var(--muted); }
.f input, .f textarea, .f select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #C9C4BA; border-radius: var(--r); background: var(--white); font: inherit; color: var(--ink); transition: border-color var(--t-fast); }
.f textarea { min-height: 140px; resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 0; }
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"] { border-color: var(--bad); }
.f .err { display: none; color: var(--bad); font-size: 14px; }
.f.is-bad .err { display: block; }
.form__row { display: grid; gap: 18px; } @media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.form__status.is-ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form__status.is-bad { display: block; background: var(--bad-bg); color: var(--bad); }
.form__status.is-wait { display: block; background: var(--line-2); color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
::placeholder { color: var(--muted); opacity: 1; }
.map { position: relative; aspect-ratio: 16 / 10; background: var(--sand); border-radius: var(--r); overflow: hidden; display: grid; place-items: center; text-align: center; padding: 24px; background-image: radial-gradient(circle at 50% 28%, rgba(52,108,115,.35) 0 7px, transparent 8px), linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 100% 100%, 32px 32px, 32px 32px; }
.map b { display: block; font: 400 22px/1.2 var(--serif); margin-bottom: 4px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

/* footer */
.ft { background: var(--night); color: #DCE6E6; padding: 64px 0 32px; }
.ft__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ft__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.ft img { width: 190px; margin-bottom: 20px; }
.ft p { font-size: 15px; color: #B7C7C9; }
.ft h4 { font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #B7C7C9; margin-bottom: 14px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ft ul li { display: flex; align-items: center; min-height: 40px; }
.ft a { color: #fff; text-decoration: none; }
.ft ul a { display: inline-flex; align-items: center; min-height: 44px; }
.ft a:hover { text-decoration: underline; }
.ft__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: #B7C7C9; }
.ft__bot a { color: #B7C7C9; }
.ft .cc-fod { width: min(var(--wrap), 100% - 2 * var(--gut)); margin: 10px auto 0; font-size: 14px; color: #B7C7C9; text-align: left; line-height: 2; }
.ft .cc-fod a { color: #B7C7C9; text-decoration: underline; text-underline-offset: 3px; }

/* draft bar + 404 */
.draft { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 48px 8px 16px; }
.draft button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: #fff; cursor: pointer; }
.e404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gut) 60px; }

/* motion (DESIGN-HACKS §1 — exactly five) */
.card { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
