:root {
  --ink: #0a0d0b;
  --ink-soft: #111612;
  --paper: #f5f6f1;
  --paper-2: #ecefe6;
  --white: #ffffff;
  --green: #7cab49;
  --green-bright: #94c85b;
  --green-dark: #4f742f;
  --muted: #5f675f;
  --line: rgba(10, 13, 11, .12);
  --radius: 18px;
  --shadow: 0 22px 60px rgba(15, 25, 17, .10);
  --shell: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; color: var(--ink); background: var(--white); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(3, 6, 4, .76), transparent);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(7, 10, 8, .94); box-shadow: 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: .16em; width: max-content; color: var(--white); font-size: 36px; font-weight: 300; line-height: 1; letter-spacing: .18em; }
.brand-e { width: .78em; height: .72em; display: flex; flex-direction: column; justify-content: space-between; margin-inline: .03em .06em; }
.brand-e i { display: block; height: .12em; background: var(--green-bright); }
.brand-e i:nth-child(2) { width: 82%; }

.main-nav { display: flex; align-items: center; gap: 52px; }
.main-nav a { position: relative; padding: 30px 0 26px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 2px; background: var(--green-bright); transition: right .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.is-active { color: var(--green-bright); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-active::after { right: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 28px; border: 1px solid rgba(148,200,91,.66); border-radius: 999px; color: var(--green-bright); font-weight: 650; letter-spacing: .02em; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover, .button:focus-visible { color: var(--ink); background: var(--green-bright); border-color: var(--green-bright); transform: translateY(-2px); }
.button-small { justify-self: end; min-height: 44px; padding-inline: 24px; font-size: 14px; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 650px; display: grid; place-items: center; overflow: hidden; color: var(--white); background: radial-gradient(circle at 50% 35%, #151d16 0, #090d0a 40%, #030504 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, transparent 0 30%, rgba(0,0,0,.35) 76%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding: 135px 0 72px; text-align: center; }
.hero-logo { display: inline-flex; align-items: center; justify-content: center; gap: .13em; color: #fbfcfa; font-size: clamp(90px, 11vw, 170px); font-weight: 250; line-height: .84; letter-spacing: .12em; text-shadow: 0 0 45px rgba(255,255,255,.03); }
.hero-e { width: .78em; height: .69em; display: flex; flex-direction: column; justify-content: space-between; margin-inline: .02em .04em; }
.hero-e i { height: .115em; display: block; background: linear-gradient(90deg, var(--green-dark), var(--green-bright)); box-shadow: 0 0 24px rgba(124,171,73,.12); }
.hero-e i:nth-child(2) { width: 82%; }
.hero-tagline { margin: 36px 0 12px; font-size: clamp(28px, 3vw, 44px); font-weight: 450; letter-spacing: -.035em; }
.hero-tagline strong { color: var(--green-bright); font-weight: 550; }
.hero-copy { margin: 0 auto 30px; color: rgba(255,255,255,.68); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.65; }
.hero-button { min-width: 270px; }
.hero-waves { position: absolute; width: min(62vw, 900px); overflow: visible; fill: none; pointer-events: none; will-change: transform; }
.hero-waves-left { left: -3%; bottom: -5%; width: min(32vw, 480px); animation: wave-drift-left 13s ease-in-out infinite alternate; }
.hero-waves-main { left: 50%; top: 104px; width: min(96vw, 1400px); height: 245px; animation: wave-drift-main 15s ease-in-out infinite alternate; }
.wave-line { stroke: rgba(124,171,73,.16); stroke-width: 1; }
.wave-tracer { stroke: rgba(166,229,98,.9); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 190 810; filter: drop-shadow(0 0 7px rgba(143,211,76,.55)); animation: wave-travel 7.5s linear infinite; }
.wave-tracer:nth-of-type(5) { animation-duration: 9.5s; animation-delay: -3s; }
.wave-tracer:nth-of-type(6) { animation-duration: 11.5s; animation-delay: -7s; }

@keyframes wave-travel {
  from { stroke-dashoffset: 0; opacity: .38; }
  45% { opacity: .9; }
  to { stroke-dashoffset: -1000; opacity: .38; }
}
@keyframes wave-drift-left {
  from { transform: translate3d(-12px, 5px, 0) rotate(-.7deg); }
  to { transform: translate3d(24px, -10px, 0) rotate(1.2deg); }
}
@keyframes wave-drift-main {
  from { transform: translate3d(calc(-50% - 12px), -3px, 0) scaleX(-1); }
  to { transform: translate3d(calc(-50% + 18px), 5px, 0) scaleX(-1); }
}

.projects-section { padding: 94px 0 68px; background: var(--paper); }
.section-heading { margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h1, .about-intro h2, .contact-band h2 { margin: 0; font-size: clamp(30px, 3vw, 48px); line-height: 1.08; letter-spacing: -.045em; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #eef0ea; box-shadow: 0 6px 18px rgba(14,22,16,.04); isolation: isolate; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
a.project-card:hover, a.project-card:focus-visible { transform: translateY(-8px); border-color: rgba(79,116,47,.35); box-shadow: var(--shadow); }
.project-card > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.project-card:hover > img, a.project-card:focus-visible > img { transform: scale(1.035); }
.card-wash { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(247,248,244,.99) 0%, rgba(247,248,244,.95) 38%, rgba(247,248,244,.45) 66%, rgba(247,248,244,.06) 100%); }
.card-content { min-height: 470px; width: 66%; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 20px 22px 24px; }
.project-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 48px; color: var(--green-dark); border: 1px solid rgba(79,116,47,.32); border-radius: 12px; background: rgba(255,255,255,.38); }
.project-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.project-card h2 { margin: 0 0 2px; font-size: clamp(24px, 2vw, 31px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.project-card h2 em { color: var(--green-dark); font-style: normal; }
.project-tagline { margin: 0 0 18px; font-size: 16px; font-weight: 700; }
.project-card .card-content > p:not(.project-tagline) { margin: 0; color: #2e352f; font-size: 14px; line-height: 1.55; }
.project-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; color: var(--green-dark); font-size: 14px; font-weight: 750; }
.project-link b { font-size: 20px; font-weight: 450; transition: transform .2s ease; }
a.project-card:hover .project-link b { transform: translateX(5px); }
.status-badge { position: absolute; top: 27px; right: 24px; padding: 5px 9px; color: #415a2e; background: rgba(230,239,218,.9); border: 1px solid rgba(79,116,47,.24); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.project-card-soon { cursor: default; }

.values-section { padding: 56px 0 90px; background: var(--white); border-top: 1px solid var(--line); }
.about-intro { max-width: 880px; margin-bottom: 58px; }
.about-intro > p:last-child { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.value { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 32px 28px; }
.value + .value { border-left: 1px solid var(--line); }
.value-icon { color: var(--green-dark); }
.value-icon svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin: 0 0 7px; font-size: 16px; }
.value p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.contact-band { padding: 72px 0; color: var(--white); background: linear-gradient(110deg, #151d16, #080b09 65%); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-band .eyebrow { color: var(--green-bright); }
.button-light { color: var(--ink); background: var(--green-bright); border-color: var(--green-bright); }
.button-light:hover, .button-light:focus-visible { color: var(--white); background: transparent; }

.site-footer { color: rgba(255,255,255,.72); background: #070a08; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 64px; padding: 62px 0 50px; }
.footer-brand p { margin: 16px 0 0; color: rgba(255,255,255,.54); }
.footer-grid h2 { margin: 0 0 16px; color: var(--green-bright); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 14px; }
.footer-grid a { transition: color .2s ease; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--green-bright); }
.footer-bottom { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: 12px; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-waves { animation: none; }
  .hero-waves-main { transform: translateX(-50%) scaleX(-1); }
  .wave-tracer { display: none; }
}

@media (max-width: 1180px) {
  .main-nav { gap: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .card-content { min-height: 410px; }
  .card-content { width: 54%; padding: 28px; }
  .project-icon { margin-bottom: 36px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .value:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 840px) {
  body.menu-open .site-header { height: 100dvh; background: rgba(5,8,6,.99); backdrop-filter: none; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .brand { font-size: 30px; }
  .header-cta { display: none; }
  .menu-toggle { position: relative; z-index: 3; width: 44px; height: 44px; display: grid; align-content: center; gap: 7px; padding: 0 10px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; }
  .menu-toggle span:not(.sr-only) { height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 90px 32px 42px; background: rgba(5,8,6,.98); visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a { width: 100%; max-width: 420px; padding: 14px 0; font-size: 22px; text-align: center; }
  .main-nav a::after { bottom: 7px; }
  .hero { min-height: 600px; }
  .hero-inner { padding-top: 110px; }
  .hero-logo { font-size: clamp(68px, 20vw, 120px); }
  .hero-waves-main { top: 112px; width: 120vw; height: 210px; opacity: .7; }
  .hero-waves-left { left: -16%; bottom: -1%; width: 65vw; opacity: .62; }
  .desktop-break { display: none; }
  .projects-section { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .hero { min-height: 570px; }
  .hero-logo { font-size: 64px; letter-spacing: .08em; }
  .hero-tagline { margin-top: 28px; font-size: 28px; }
  .hero-copy { max-width: 330px; }
  .hero-button { width: 100%; min-width: 0; }
  .projects-section { padding: 64px 0 48px; }
  .project-card { min-height: 520px; }
  .project-card > img { height: 48%; top: auto; object-position: 68% center; }
  .card-wash { background: linear-gradient(180deg, rgba(247,248,244,1) 0%, rgba(247,248,244,1) 58%, rgba(247,248,244,.55) 80%, rgba(247,248,244,.1) 100%); }
  .card-content { width: 100%; min-height: 520px; padding: 22px; }
  .project-icon { margin-bottom: 28px; }
  .project-card .card-content > p:not(.project-tagline) { max-width: 94%; }
  .values-section { padding: 50px 0 64px; }
  .about-intro { margin-bottom: 38px; }
  .about-intro > p:last-child { font-size: 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .value { padding: 26px 8px; }
  .contact-band-inner { align-items: flex-start; flex-direction: column; }
  .button-light { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 20px; }
}
