:root {
  --ink: #102019;
  --muted: #5f6b64;
  --forest: #10291f;
  --forest-2: #174b35;
  --leaf: #2c8b58;
  --lime: #c9ff4a;
  --mint: #e9f8ef;
  --cream: #f8faf5;
  --line: #dce5de;
  --white: #fff;
  --shadow: 0 20px 60px rgba(16, 41, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: white; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }
.topnote { background: var(--lime); color: #17311f; text-align: center; padding: 8px 16px; font-weight: 700; font-size: .88rem; }

header { position: sticky; top: 0; z-index: 40; background: rgba(248, 250, 245, .93); border-bottom: 1px solid rgba(16, 32, 25, .08); backdrop-filter: blur(16px); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; background: var(--forest); color: var(--lime); box-shadow: 0 8px 20px rgba(16, 41, 31, .18); font-family: "Manrope", sans-serif; font-weight: 800; }
.logo-copy { line-height: 1.08; }
.logo-copy > span { color: var(--leaf); }
.logo-copy small { display: block; color: var(--muted); font-size: .68rem; font-weight: 600; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 25px; font-weight: 650; font-size: .93rem; }
.nav-links a:hover, .nav-links .is-active { color: var(--leaf); }
.nav-links .is-active { position: relative; }
.nav-links .is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--leaf); }
.nav-cta, .btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 750; border: 1px solid transparent; cursor: pointer; transition: .22s ease; }
.nav-cta { color: white !important; background: var(--forest); box-shadow: 0 10px 24px rgba(16, 41, 31, .17); }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--forest-2); transform: translateY(-2px); }
.btn-lime { color: var(--forest); background: var(--lime); }
.btn-lime:hover { background: #d7ff78; transform: translateY(-2px); }
.btn-ghost { color: white; border-color: rgba(255, 255, 255, .3); background: transparent; }
.btn-ghost:hover { color: var(--forest); background: white; transform: translateY(-2px); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mint); color: var(--forest); font-weight: 800; cursor: pointer; }

.portfolio-hero { position: relative; overflow: hidden; padding: 102px 0 96px; background: radial-gradient(circle at 81% 12%, rgba(201, 255, 74, .23), transparent 27%), var(--forest); color: white; }
.portfolio-hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, transparent, #000 55%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 310px; gap: 88px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--leaf); font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.portfolio-hero .eyebrow, .portfolio-cta .eyebrow { color: var(--lime); }
.portfolio-hero h1 { max-width: 840px; margin: 20px 0 24px; font-size: clamp(3rem, 6.5vw, 6.2rem); line-height: .97; letter-spacing: -.07em; }
.portfolio-hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p { max-width: 690px; margin: 0; color: #bed1c6; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero-proof { position: relative; padding: 26px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px 26px 26px 8px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px); }
.hero-proof strong { display: block; color: var(--lime); font-family: "Manrope", sans-serif; font-size: 6.8rem; line-height: .82; letter-spacing: -.1em; }
.hero-proof > span { display: block; margin-top: 16px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.16rem; }
.hero-proof p { margin: 14px 0 0; color: #afc3b7; font-size: .9rem; }
.hero-orbit { position: absolute; right: -112px; bottom: -175px; width: 430px; height: 430px; border: 56px solid rgba(201, 255, 74, .16); border-radius: 50%; }

.portfolio { padding: 104px 0 118px; background: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 64px; margin-bottom: 52px; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(2.25rem, 4.5vw, 4.25rem); line-height: 1.03; letter-spacing: -.06em; }
.section-head > p { max-width: 430px; margin: 0 0 7px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 24px; }
.project-card { display: block; min-width: 0; }
.project-card--wide { grid-column: 1 / -1; }
.browser-frame { position: relative; overflow: hidden; border: 1px solid #cfd9d2; border-radius: 18px; background: white; box-shadow: 0 16px 44px rgba(16, 41, 31, .09); transition: transform .3s ease, box-shadow .3s ease; }
.browser-bar { height: 42px; display: grid; grid-template-columns: 70px 1fr 30px; align-items: center; gap: 10px; padding: 0 13px; border-bottom: 1px solid #e0e7e2; background: #f1f4f2; color: #657168; font-size: .77rem; font-weight: 700; }
.browser-bar > span:nth-child(2) { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.browser-bar b { color: var(--leaf); font-size: 1rem; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #bec9c1; }
.browser-dots i:first-child { background: #ff826f; }
.browser-dots i:nth-child(2) { background: #ffd36a; }
.browser-dots i:nth-child(3) { background: #78ce8c; }
.project-shot { aspect-ratio: 16 / 9; overflow: hidden; background: #dfe6e1; }
.project-card--wide .project-shot { aspect-ratio: 2 / 1; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.visit-pill { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--lime); color: var(--forest); box-shadow: 0 12px 28px rgba(0,0,0,.2); font-size: .82rem; font-weight: 800; opacity: 0; transform: translateY(9px); transition: .25s ease; }
.project-meta { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 19px 3px 0; }
.project-type { color: var(--leaf); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-meta h3 { margin: 7px 0 0; font-size: clamp(1.15rem, 2vw, 1.52rem); line-height: 1.23; letter-spacing: -.035em; }
.project-number { flex: 0 0 auto; color: #a9b5ad; font-family: "Manrope", sans-serif; font-size: .82rem; font-weight: 800; }
.project-card:hover .browser-frame { transform: translateY(-7px); box-shadow: 0 27px 65px rgba(16, 41, 31, .17); }
.project-card:hover .project-shot img { transform: scale(1.025); }
.project-card:hover .visit-pill { opacity: 1; transform: translateY(0); }
.project-card:focus-visible { outline: 3px solid var(--leaf); outline-offset: 8px; border-radius: 18px; }

.style-note { padding: 92px 0; border-top: 1px solid var(--line); background: var(--mint); }
.style-note-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.style-note h2 { margin: 13px 0 0; font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.06em; }
.style-note p { margin: 0 0 19px; color: #486056; font-size: 1.08rem; }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--forest-2); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.portfolio-cta { padding: 86px 0; background: var(--forest); color: white; }
.cta-box { display: flex; align-items: end; justify-content: space-between; gap: 70px; }
.portfolio-cta h2 { max-width: 800px; margin: 13px 0 14px; font-size: clamp(2.4rem, 4.8vw, 4.45rem); line-height: 1.02; letter-spacing: -.065em; }
.portfolio-cta p { max-width: 680px; margin: 0; color: #b8cbbf; font-size: 1.05rem; }
.cta-actions { display: flex; flex: 0 0 auto; flex-direction: column; min-width: 235px; gap: 10px; }

.contact-modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 24px; }
.contact-modal.is-open { display: grid; }
.contact-backdrop { position: absolute; inset: 0; background: rgba(4, 18, 12, .76); backdrop-filter: blur(8px); }
.contact-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: 360px minmax(0, 1fr); width: min(980px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: auto; border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px; background: white; box-shadow: 0 32px 100px rgba(0, 0, 0, .38); }
.contact-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d8e2db; border-radius: 50%; background: white; color: var(--ink); font-size: 1.55rem; line-height: 1; cursor: pointer; transition: .2s ease; }
.contact-close:hover { transform: rotate(7deg); background: var(--mint); }
.contact-aside { display: flex; flex-direction: column; padding: 42px 36px 34px; overflow: hidden; background: radial-gradient(circle at 100% 10%, rgba(201,255,74,.22), transparent 30%), var(--forest); color: white; }
.contact-kicker { color: var(--lime); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-aside h2 { margin: 14px 0 16px; font-size: 2.25rem; line-height: 1.04; letter-spacing: -.055em; }
.contact-aside > p { margin: 0; color: #b9ccc0; }
.contact-benefits { display: grid; gap: 10px; margin: 28px 0; color: #e1ebe5; font-size: .9rem; font-weight: 650; }
.contact-benefits span::first-letter { color: var(--lime); }
.contact-direct { display: grid; gap: 5px; margin-top: auto; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.15); }
.contact-direct span { color: #97aea1; font-size: .78rem; }
.contact-direct a { width: fit-content; color: white; font-family: "Manrope", sans-serif; font-weight: 800; }
.contact-direct a:first-of-type { color: var(--lime); font-size: 1.35rem; }
.contact-form-wrap { padding: 38px 42px 34px; }
.contact-form-head { display: flex; flex-direction: column; gap: 2px; margin: 1px 55px 24px 0; }
.contact-form-head span { color: var(--leaf); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-form-head strong { font-family: "Manrope", sans-serif; font-size: 1.65rem; letter-spacing: -.035em; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.contact-field { display: grid; gap: 6px; }
.contact-field--full, .contact-consent, .contact-submit, .contact-status { grid-column: 1 / -1; }
.contact-field label { font-size: .86rem; font-weight: 750; }
.contact-field input, .contact-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfdad2; border-radius: 12px; background: #fbfcfa; color: var(--ink); font: inherit; outline: none; transition: .18s ease; }
.contact-field textarea { min-height: 112px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--leaf); background: white; box-shadow: 0 0 0 3px rgba(44, 139, 88, .15); }
.contact-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .78rem; line-height: 1.42; }
.contact-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--leaf); }
.contact-consent a { color: var(--leaf); text-decoration: underline; text-underline-offset: 2px; }
.contact-submit { display: flex; align-items: center; gap: 15px; }
.btn-contact { flex: 0 0 auto; min-height: 50px; color: white; background: var(--forest); }
.btn-contact:hover { background: var(--forest-2); transform: translateY(-2px); }
.btn-contact:disabled { cursor: wait; opacity: .68; transform: none; }
.contact-submit small { color: var(--muted); line-height: 1.35; }
.contact-status { display: none; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.contact-status.show { display: block; }
.contact-status.success { border: 1px solid #bce1c6; background: #e5f7e9; color: #165b31; }
.contact-status.error { border: 1px solid #f0c6c0; background: #fff0ee; color: #8a2e25; }
.contact-status a { text-decoration: underline; }
.contact-form.is-submitted > *:not(.contact-status) { display: none; }
body.contact-open { overflow: hidden; }

footer { padding: 44px 0 22px; background: #0b1e16; color: white; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; align-items: start; padding-bottom: 38px; }
.footer-logo .logo-copy > span { color: var(--lime); }
.footer-copy { max-width: 400px; margin-top: 15px; color: #9db0a5; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px 30px; color: #c5d0ca; }
.footer-links a:hover { color: var(--lime); }
.copyright { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #83978c; font-size: .85rem; }

@media (max-width: 1020px) {
  .nav-links { position: fixed; inset: 109px 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .nav-links .is-active::after { display: none; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .menu-btn { display: grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr 250px; gap: 46px; }
  .project-card--wide .project-shot { aspect-ratio: 16 / 9; }
  .contact-dialog { grid-template-columns: 300px minmax(0, 1fr); }
  .contact-aside { padding: 38px 28px 30px; }
  .contact-aside h2 { font-size: 1.9rem; }
  .contact-form-wrap { padding: 34px 34px 30px; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .topnote { font-size: .78rem; }
  .nav { height: 68px; }
  .logo-copy small { display: none; }
  .nav-links { top: 98px; }
  .portfolio-hero { padding: 70px 0 65px; }
  .hero-grid { grid-template-columns: 1fr; }
  .portfolio-hero h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .hero-copy > p { font-size: 1.03rem; }
  .hero-proof { max-width: 420px; }
  .portfolio { padding: 76px 0 86px; }
  .section-head { display: block; margin-bottom: 38px; }
  .section-head > p { margin-top: 17px; }
  .project-grid { grid-template-columns: 1fr; gap: 42px; }
  .project-card--wide { grid-column: auto; }
  .project-card--wide .project-shot { aspect-ratio: 16 / 9; }
  .visit-pill { opacity: 1; transform: none; right: 12px; bottom: 12px; padding: 8px 11px; }
  .style-note { padding: 72px 0; }
  .style-note-grid { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-cta { padding: 72px 0; }
  .cta-box, .footer-grid, .copyright { flex-direction: column; align-items: stretch; }
  .cta-actions { min-width: 0; margin-top: 28px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .contact-modal { padding: 10px; align-items: end; }
  .contact-dialog { grid-template-columns: 1fr; width: 100%; max-height: calc(100dvh - 20px); border-radius: 24px 24px 14px 14px; }
  .contact-aside { padding: 28px 24px 23px; }
  .contact-aside h2 { max-width: 290px; margin: 10px 48px 9px 0; font-size: 1.7rem; }
  .contact-aside > p { font-size: .92rem; }
  .contact-benefits { grid-template-columns: 1fr 1fr; margin: 18px 0 0; font-size: .78rem; }
  .contact-benefits span:last-child { display: none; }
  .contact-direct { grid-template-columns: auto auto; align-items: center; margin-top: 20px; padding-top: 17px; }
  .contact-direct span { grid-column: 1 / -1; }
  .contact-direct a:first-of-type { font-size: 1.1rem; }
  .contact-form-wrap { padding: 25px 24px 28px; }
  .contact-form-head { margin-bottom: 17px; }
  .contact-form { gap: 13px; }
  .contact-submit { align-items: stretch; flex-direction: column; }
  .btn-contact { width: 100%; }
}

@media (max-width: 430px) {
  .hero-actions .btn { width: 100%; }
  .browser-frame { border-radius: 13px; }
  .browser-bar { height: 37px; grid-template-columns: 55px 1fr 22px; padding-inline: 10px; }
  .visit-pill { font-size: .74rem; }
  .footer-links { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-field, .contact-field--full, .contact-consent, .contact-submit, .contact-status { grid-column: 1; }
  .contact-field textarea { min-height: 100px; }
  .contact-direct { gap: 4px 14px; }
}

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