/* DDP Management: pine teal, padi green and emas gold; Bricolage Grotesque headlines, Figtree text */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url(/assets/fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url(/assets/fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url(/assets/fonts/figtree-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url(/assets/fonts/figtree-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url(/assets/fonts/figtree-latin-700-normal.woff2) format('woff2'); }

:root {
  --pine: #0c4a45; --pine-2: #0a3c38; --padi: #2fb36b; --emas: #f4b63f; --emas-2: #e5a21f;
  --mint: #f3faf7; --ink: #13302c; --muted: #4d625e; --line: #d8e9e2; --white: #fff;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif; --text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--text); font-size: 17.5px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: var(--pine); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--emas); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 60; background: #fff; padding: .5rem 1rem; }
.small { font-size: .85rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: .95rem; padding: .6rem 1.15rem;
       border-radius: 12px; border: 2px solid var(--pine); background: var(--pine); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--pine-2); }
.btn.big { padding: .85rem 1.45rem; font-size: 1.02rem; }
.btn.gold { background: var(--emas); border-color: var(--emas); color: var(--ink); box-shadow: 0 4px 0 var(--emas-2); }
.btn.gold:hover { background: #f7c35d; }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.ghost:hover { background: rgba(12,74,69,.06); }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--pine); }
.brand small { font-size: .74rem; color: var(--muted); margin-top: .2rem; font-weight: 600; }
.brand.light b { color: #fff; } .brand.light small { color: #a9cfc7; }
nav#nav { display: flex; align-items: center; gap: 1.3rem; }
nav#nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav#nav > a:not(.btn):hover { color: var(--padi); }
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang button { font: inherit; font-weight: 700; font-size: .8rem; padding: .3rem .6rem; border: 0; background: #fff; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed=true] { background: var(--pine); color: #fff; }
.menu { display: none; font: inherit; font-weight: 700; background: none; border: 2px solid var(--line); border-radius: 10px; padding: .4rem .9rem; cursor: pointer; }

/* hero slideshow */
.hero { background: linear-gradient(180deg, var(--mint), #fff); position: relative; overflow: hidden; }
.slides { position: relative; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.slide.active { opacity: 1; visibility: visible; }
.slide-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.slide-h { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; color: var(--pine); max-width: 13ch; }
.slide-p { font-size: 1.15rem; color: var(--muted); margin: 1.2rem 0 1.8rem; max-width: 42ch; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.scene { width: 100%; height: auto; display: block; overflow: visible; }
.controls { display: flex; align-items: center; gap: .6rem; padding-bottom: 1.6rem; }
.ctl { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.ctl svg { width: 20px; height: 20px; fill: none; stroke: var(--pine); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ctl:hover { border-color: var(--pine); }
#pause .i-play { display: none; } #pause[aria-pressed=true] .i-play { display: block; fill: var(--pine); } #pause[aria-pressed=true] .i-pause { display: none; }
.dots { display: flex; gap: .45rem; }
.dot { width: 12px; height: 12px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.dot.on { width: 34px; background: var(--padi); }

/* scene animation: plays each time a slide becomes active */
.scene * { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .slide.active .walker { animation: walkin 1.1s cubic-bezier(.2,.75,.25,1) var(--d) both; }
  .slide.active .pop { animation: pop .5s cubic-bezier(.3,1.6,.5,1) var(--d) both; transform-origin: center; }
  .slide.active .bounce { animation: pop .7s cubic-bezier(.3,1.9,.5,1) var(--d) both; transform-origin: center; }
  .slide.active .grow { animation: grow .8s cubic-bezier(.2,.8,.2,1) var(--d) both; transform-origin: bottom; }
  .slide.active .draw { stroke-dasharray: 600; animation: draw 1.2s ease-out var(--d) both; }
  .slide.active .drop { animation: drop .55s cubic-bezier(.5,0,.5,1.4) var(--d) both; }
  .slide.active .float { animation: rise .7s ease-out var(--d) both, bob 2.6s ease-in-out calc(var(--d) + .7s) infinite; }
  .slide.active .fill { animation: fillx .5s ease-out var(--d) both; transform-origin: left; }
  .slide.active .tick { stroke-dasharray: 40; animation: draw2 .45s ease-out var(--d) both; }
  .slide.active .confetti { animation: confetti 1.6s ease-in var(--d) both; }
  .slide.active .flow { stroke-dasharray: 6 8; animation: show .4s ease-out var(--d) both, flow 1s linear var(--d) infinite; }
  .slide.active .fly { animation: fly .9s cubic-bezier(.5,0,.3,1) var(--d) both; }
  .slide.active .press { animation: press .4s ease-in-out var(--d) both; transform-origin: center; }
  .slide.active .wave-arm { animation: wave 1.2s ease-in-out 1.4s 3; transform-origin: 0% 100%; }
}
.flow { fill: none; stroke: var(--padi); stroke-width: 3; stroke-linecap: round; opacity: .7; }
@keyframes walkin { from { transform: translateX(var(--from)); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes draw2 { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes drop { from { transform: translateY(-260px); opacity: 0; } 20% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fillx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes confetti { from { transform: translate(0, -30px) rotate(0); opacity: 0; } 10% { opacity: 1; } to { transform: translate(var(--x), 320px) rotate(540deg); opacity: 0; } }
@keyframes show { from { opacity: 0; } to { opacity: .7; } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes fly { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(0, -10px) scale(1); } 85% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(.7); opacity: 0; } }
@keyframes press { 50% { transform: scale(.88); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .slide { transition: none; } }

/* mission statement */
.mission { background: var(--pine); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.mission p { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 30ch; margin: 0; }

/* sections */
.band { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.band.soft { background: var(--mint); }
.head { max-width: 660px; margin-bottom: 2.8rem; }
.head h2, .band h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; color: var(--pine); }
.head p { margin: 1rem 0 0; color: var(--muted); font-size: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.feature { padding: 2rem; border-radius: 24px; background: var(--mint); border: 2px solid var(--line); }
.feature[data-f=f3], .feature[data-f=f6] { background: #fff6e2; border-color: #f5ddaa; }
.badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--pine); margin-bottom: 1.2rem; }
.feature[data-f=f3] .badge, .feature[data-f=f6] .badge { background: var(--emas); }
.ico { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature[data-f=f3] .ico, .feature[data-f=f6] .ico { stroke: var(--ink); }
.feature h3 { font-size: 1.35rem; font-weight: 800; color: var(--pine); margin-bottom: .6rem; }
.feature p { color: var(--muted); margin: 0; }
.also { margin-top: 2.5rem; }
.also h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: .9rem; }
.also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.also li { padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-weight: 600; font-size: .93rem; }

/* dividend estimator */
.band.dark { background: radial-gradient(800px 400px at 90% 10%, rgba(244,182,63,.18), transparent 60%), var(--pine); color: #fff; }
.band.dark h2 { color: #fff; }
.div-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lede { color: #c6e2db; font-size: 1.1rem; margin: 1rem 0 2rem; max-width: 46ch; }
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc-in label { color: #c6e2db; font-weight: 600; font-size: .9rem; display: flex; justify-content: space-between; align-items: baseline; }
.calc-in input[type=text] { font: inherit; font-weight: 700; font-size: 1.1rem; padding: .65rem .8rem; border-radius: 12px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; width: 100%; }
.calc-in input[type=text]:focus { outline: none; border-color: var(--emas); }
output { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--emas); }
input[type=range] { width: 100%; accent-color: var(--emas); height: 32px; margin-top: .3rem; }
.calc-out { background: #fff; color: var(--ink); border-radius: 26px; padding: 2rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.calc-out .big span, .small-out span { display: block; color: var(--muted); font-weight: 600; font-size: .95rem; }
.calc-out .big b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--pine); line-height: 1.1; margin-top: .2rem; }
.small-out { margin-top: 1rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.small-out b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--padi); }
.compare { margin-top: 1.5rem; }
.compare h3 { font-size: 1rem; margin-bottom: .7rem; }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; align-items: end; height: 150px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; cursor: pointer; border: 0; background: none; font: inherit; padding: 0; }
.bar-col i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: #cfe9de; transition: height .4s cubic-bezier(.2,.8,.2,1); }
.bar-col.cur i { background: var(--emas); }
.bar-col span { font-weight: 700; font-size: .85rem; }
.bar-col small { font-size: .72rem; color: var(--muted); }
.note { font-size: .85rem; color: var(--muted); margin: 1.2rem 0 0; }

/* steps: a real sequence */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: s; position: relative; padding-top: 4rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
                    font-family: var(--display); font-weight: 800; font-size: 1.5rem; background: var(--emas); color: var(--ink); }
.steps li::after { content: ''; position: absolute; top: 26px; left: 64px; right: -1rem; border-top: 3px dotted var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; color: var(--pine); margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; }

/* who */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.person-card { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; background: #fff; border-radius: 24px; padding: 1.4rem; border: 2px solid var(--line); }
.avatar { width: 96px; height: 150px; }
.person-card h3 { font-size: 1.3rem; color: var(--pine); margin-bottom: .4rem; }
.person-card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* case */
.case { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.case-label { font-weight: 700; color: var(--padi); margin-bottom: .6rem; }
.case h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.case p { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .8rem 0 .8rem 2.4rem; border-bottom: 2px solid var(--line); font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .75rem; width: 26px; height: 26px; border-radius: 50%; background: var(--padi); }
.ticks li::after { content: ''; position: absolute; left: 8px; top: 1.1rem; width: 10px; height: 5px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }

/* contact */
.contact { background: var(--mint); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact p { color: var(--muted); max-width: 44ch; margin-top: 1rem; }
.reach { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 2rem 0 0; }
.reach dt { color: var(--muted); } .reach dd { margin: 0; font-weight: 700; }
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: #fff; padding: 2rem; border-radius: 26px; border: 2px solid var(--line); }
.field { display: flex; flex-direction: column; gap: .35rem; } .wide { grid-column: 1 / -1; }
.enquiry label { font-weight: 600; font-size: .9rem; }
.enquiry input, .enquiry textarea { font: inherit; padding: .7rem .85rem; border: 2px solid var(--line); border-radius: 12px; background: #fbfefd; color: var(--ink); }
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-color: var(--padi); background: #fff; }
.err { grid-column: 1 / -1; margin: 0; color: #b4321d; font-weight: 600; }
.enquiry .small { margin-top: .7rem; }

.foot { background: var(--pine-2); color: #a9cfc7; padding: 3rem 0 2.5rem; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 2fr auto; gap: 2rem; align-items: center; }
.foot p { margin: .8rem 0 0; }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.foot nav a { color: #e4f3ef; text-decoration: none; } .foot nav a:hover { text-decoration: underline; }
.copy { margin: 0 !important; }

@media (max-width: 1020px) {
  .slide-grid, .div-grid, .case, .contact-grid { grid-template-columns: 1fr; }
  .slide-art { max-width: 620px; width: 100%; justify-self: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; }
  .who { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .menu { display: block; }
  nav#nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
            background: #fff; border-bottom: 1px solid var(--line); padding: .5rem clamp(1.1rem, 4vw, 2rem) 1rem; }
  nav#nav.open { display: flex; }
  nav#nav > a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--mint); }
  .lang { margin: .8rem 0; align-self: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .features, .calc-in, .enquiry { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature, .calc-out, .enquiry { padding: 1.4rem; }
  .slide { padding-top: 1.6rem; }
}
