/* Blockfinance AG — design 2: one flowing page. No external resources, no scripts, no cookies. */
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans/JosefinSans-VariableFont_wght.ttf") format("truetype"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans/JosefinSans-Italic-VariableFont_wght.ttf") format("truetype"); font-weight: 100 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3/SourceSans3VF-Roman.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3/SourceSans3VF-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --green: #34bc85; --green-ink: #1f8a5f; --teal: #0f5156; --teal-deep: #0a3a3e;
  --bg: #f6f9f7; --bg-2: #e9f0ec; --surface: #ffffff; --line: #d3dfd9; --muted: #56655f;
  --text: #14201e; --heading: #0f5156; --link: #0f5156; --accent: var(--green); --accent-text: var(--green-ink);
  --band-bg: #0f5156; --band-bg-2: #0a3a3e; --band-text: #e8f1ee; --band-muted: #a7c1bb;
  --focus: #ff9900; --radius: 6px;
  --display: "Josefin Sans", "Trebuchet MS", "Gill Sans", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; font-weight: 300; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
strong { font-weight: 600; }
p, ul, ol, dl { margin: 0 0 1rem; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.prose { max-width: 60ch; }
.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 54rem); margin-inline: auto; }

/* eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--accent); }
.band .eyebrow { color: var(--green); }

/* draft ribbon + header */
.draft { background: var(--teal-deep); color: #ffd28a; font-family: var(--display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: .45rem 1rem .35rem; }
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; flex-wrap: wrap; }
.brand img { height: 2.4rem; width: auto; display: block; }
.brand .logo-dark { display: none; }
nav.main { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
nav.main a { font-family: var(--display); font-weight: 600; font-size: .88rem; letter-spacing: .06em; text-decoration: none; color: var(--text); padding: .4rem 0 .25rem; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--accent); }
.lang { display: inline-flex; gap: .5rem; padding-left: 1rem; margin-left: .3rem; border-left: 1px solid var(--line); }
.lang a, .lang strong { font-family: var(--display); font-size: .82rem; letter-spacing: .08em; text-decoration: none; }
.lang strong { color: var(--accent-text); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--band-bg) 0%, var(--band-bg-2) 100%); color: var(--band-text); padding: 5.5rem 0 0; }
.hero .wm { position: absolute; right: -8%; top: -10%; width: 62vw; max-width: 900px; opacity: 1; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; padding-bottom: 4rem; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: 7fr 5fr; } }
.hero h1 { color: #ffffff; }
.hero .lead { color: var(--band-text); }
.hero-art { justify-self: center; width: min(100%, 20rem); }
.hero-art svg { width: 100%; height: auto; display: block; }
.lattice .sq { fill: var(--green); opacity: 0; animation: bf-in .5s ease-out forwards; }
.lattice .ln { stroke: var(--green); stroke-width: 13; stroke-linecap: square; fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: bf-draw 1.4s ease-in-out forwards; animation-delay: .9s; }
.lattice .sq:nth-of-type(1){animation-delay:0s}.lattice .sq:nth-of-type(2){animation-delay:.1s}.lattice .sq:nth-of-type(3){animation-delay:.2s}.lattice .sq:nth-of-type(4){animation-delay:.3s}.lattice .sq:nth-of-type(5){animation-delay:.4s}.lattice .sq:nth-of-type(6){animation-delay:.5s}.lattice .sq:nth-of-type(7){animation-delay:.6s}.lattice .sq:nth-of-type(8){animation-delay:.7s}.lattice .sq:nth-of-type(9){animation-delay:.8s}
@keyframes bf-in { to { opacity: 1; } }
@keyframes bf-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .lattice .sq, .lattice .ln { animation: none; opacity: 1; stroke-dashoffset: 0; } }
.hero .horizon { display: block; width: 100%; height: auto; margin: 0; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn { display: inline-block; font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; padding: .9rem 1.4rem .7rem; border-radius: 3px; text-decoration: none; border: 1.5px solid var(--green); color: #ffffff; }
.btn.primary { background: var(--green); color: #062b1c; }
.btn:hover { background: var(--green); color: #062b1c; }
.on-paper .btn { color: var(--heading); }

/* statement */
.statement { padding: 5rem 0 3rem; }
.statement p.big { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1.25; color: var(--heading); max-width: 30ch; margin: 0 0 1.5rem; text-wrap: balance; }
.statement .cols { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 62rem; }
.statement .cols p { margin: 0; padding-top: 1rem; border-top: 2px solid var(--accent); }
.statement .cols b { font-family: var(--display); font-weight: 600; display: block; color: var(--heading); margin-bottom: .3rem; }

/* flowing rows */
.row { display: grid; gap: 2.5rem 4rem; align-items: center; grid-template-columns: 1fr; padding: 3.5rem 0; }
@media (min-width: 60rem) { .row { grid-template-columns: 1fr 1fr; } .row.flip > .pic { order: 2; } }
.row .pic img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 50px -24px rgba(10, 58, 62, .45); }
.row .txt p { max-width: 54ch; }
.row .points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .4rem; }
.row .points li { padding-left: 1.3rem; position: relative; }
.row .points li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--accent); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* band */
.band { background: var(--band-bg); color: var(--band-text); padding: 5rem 0; position: relative; overflow: hidden; }
.band h2, .band h3, .band b { color: #ffffff; }
.band a { color: #a8ebd0; }
.band .muted { color: var(--band-muted); }
.band .wm { position: absolute; left: -12%; bottom: -30%; width: 46vw; max-width: 700px; pointer-events: none; }
.facts { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2.5rem; position: relative; }
.facts > div { padding: 1.2rem 1.6rem 1.2rem 0; border-top: 1px solid rgba(255,255,255,.22); }
.facts b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: .3rem; }
.facts p { margin: 0; color: var(--band-muted); font-size: .97rem; }

/* group */
.places { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2rem; }
.places > div { position: relative; padding-top: 1.4rem; }
.places > div::before { content: ""; position: absolute; top: 0; left: 0; width: 1.2rem; height: 1.2rem; background: var(--accent); }
.places > div:first-child::before { background: var(--teal); }
.places .place { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--heading); margin: 0 0 .1rem; }
.places .country { color: var(--muted); font-family: var(--display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .6rem; }
.places p { margin: 0; }

/* contact band */
.contact { background: var(--bg-2); padding: 5rem 0; }
.contact .big { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem); color: var(--heading); margin: 0 0 1.5rem; }
.contact .big a { text-decoration: none; border-bottom: 2px solid var(--accent); }
.contact .grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.contact address { font-style: normal; }
.contact b { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .4rem; }

/* footer */
footer.site { padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
footer.site .line { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
footer.site a { margin-right: 1.2rem; }

/* section spacing on paper */
section.on-paper { padding: 2rem 0; }
section.on-paper + section.on-paper { border-top: 1px solid var(--line); }

/* press & legal pages (reference pages keep a quieter, tabular layout) */
.page { padding: 4.5rem 0 3rem; }
.page h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); }
section.ref { padding: 3rem 0; border-top: 1px solid var(--line); }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 5fr 7fr; } }
.grid { display: grid; gap: 1.5rem; } .grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card { padding: 0 0 1rem; border-top: 2px solid var(--accent); } .card h3 { margin-top: .8rem; }
ul.checks { list-style: none; padding: 0; } ul.checks li { padding-left: 1.3rem; position: relative; margin-bottom: .45rem; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--accent); }
.rule-list { columns: 2; column-gap: 2.5rem; } @media (max-width: 40rem) { .rule-list { columns: 1; } }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.swatches { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.swatch { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch .chip { height: 5.5rem; } .swatch .meta { padding: .9rem 1rem; font-size: .92rem; }
.swatch .meta b { font-family: var(--display); display: block; margin-bottom: .25rem; color: var(--heading); } .swatch .meta span { display: block; color: var(--muted); }
.band .swatch { background: rgba(255,255,255,.06); } .band .swatch .meta b { color: var(--band-text); } .band .swatch .meta span { color: var(--band-muted); }
.logo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.logo-box { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.logo-box .show { padding: 2rem; display: grid; place-items: center; min-height: 9rem; }
.logo-box .show.on-light { background: #fff; } .logo-box .show.on-dark { background: #0f5156; } .logo-box .show.on-black { background: #111; }
.logo-box .show img { max-height: 4.5rem; width: auto; }
.logo-box .dl { padding: .7rem 1rem; font-size: .9rem; border-top: 1px solid var(--line); display: flex; gap: 1rem; flex-wrap: wrap; }
.type-sample { border-radius: var(--radius); background: var(--surface); padding: 1.5rem; border: 1px solid var(--line); }
.type-sample .display { font-family: var(--display); font-size: 2.2rem; line-height: 1.1; color: var(--heading); margin-bottom: .5rem; font-weight: 600; }
.type-sample .display.light { font-weight: 300; } .type-sample .body { font-family: var(--body); }
figure { margin: 0; } figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.legal-page h1 { font-size: 1.6rem; font-weight: 600; }
.legal-page h2 { font-size: 1.6rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-weight: 600; }
.legal-page h3 { font-size: 1.15rem; margin: 1.5rem 0 .3rem; font-weight: 600; }
.legal-page address { font-style: normal; }
.legal-page dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: .75rem 0; }
.legal-page dt { color: var(--muted); } .legal-page dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .legal-page dl { grid-template-columns: 1fr; gap: 0; } .legal-page dd { margin-bottom: .5rem; } }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.gate .box img { height: 3rem; width: auto; margin-bottom: 2rem; } .gate a.btn { margin-right: .75rem; margin-bottom: .75rem; color: var(--heading); }
@media (max-width: 60rem) { .hero .wm { display: none; } .hero { padding-top: 3.5rem; } .hero .wrap { padding-bottom: 2.5rem; } }
.pics3 { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; }
.pics3 img:first-child { grid-column: 1 / -1; }
.row .pics3 img { box-shadow: 0 12px 30px -18px rgba(10, 58, 62, .4); }
.row .txt .btn { color: var(--heading); }
.on-paper .row .btn:hover { color: #062b1c; }

/* brand colour swatches (press page) — classes so the strict CSP needs no inline styles */
.chip-green { background: #34bc85; }
.chip-teal { background: #0f5156; }
.chip-black { background: #000; }
.chip-white { background: #fff; border-bottom: 1px solid #cfdbd5; }
.foot-note { margin-top: .8rem; }
.pad-y { padding: 3rem 0; }
.gate h1.lead { font-size: 1.3rem; font-weight: 400; margin: 0; }
.gate a.btn.fill { background: var(--accent, #34bc85); border-color: var(--accent, #34bc85); color: #06281c; }
