@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #111614;
  --ink-soft: #202825;
  --paper: #f3f1eb;
  --white: #fff;
  --sage: #c9d85e;
  --sage-dark: #a9bc36;
  --muted: #66706c;
  --line: rgba(17, 22, 20, .14);
  --ease: cubic-bezier(.2,.75,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sage-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  background: var(--sage);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #d8e873; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { border-color: rgba(255,255,255,.5); background: transparent; color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.arrow { font-size: 20px; line-height: 1; transition: transform .25s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; font-family: "Manrope", sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--sage);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -.08em;
}
.brand small { display: block; margin-top: 1px; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.nav-links { display: flex; align-items: center; gap: clamp(24px, 3vw, 46px); font-size: 14px; }
.nav-links > a:not(.nav-cta) { position: relative; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--sage); transition: width .25s; }
.nav-links > a:hover::after { width: 100%; }
.nav-cta { padding: 12px 18px; border: 1px solid rgba(255,255,255,.45); }
.menu-btn { display: none; border: 0; background: transparent; color: white; font-size: 25px; cursor: pointer; }

.hero {
  position: relative;
  min-height: 860px;
  height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: #c9dce8 url("assets/bem-hero-daylight.png") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,23,31,.68) 0%, rgba(12,23,31,.48) 38%, rgba(12,23,31,.02) 74%),
    rgba(160, 190, 208, .06);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(transparent, rgba(5,12,18,.25)); }
.hero-content { position: relative; z-index: 2; max-width: 790px; padding-top: 70px; }
.hero .eyebrow { color: rgba(255,255,255,.68); }
.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(58px, 7.7vw, 112px);
  line-height: .94;
  letter-spacing: -.067em;
  font-weight: 500;
}
.hero h1 em { color: var(--sage); font-style: normal; }
.hero-copy { max-width: 560px; margin-bottom: 38px; color: rgba(255,255,255,.75); font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100% - 1320px) / 2));
  bottom: 44px;
  display: flex;
  gap: 48px;
}
.hero-meta div { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35); }
.hero-meta strong { display: block; margin-bottom: 4px; font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 500; }
.hero-meta span { color: rgba(255,255,255,.6); font-size: 12px; }

.intro { padding: 128px 0; }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10vw; align-items: end; }
.intro h2 { margin-bottom: 0; }
.intro-copy { padding-bottom: 7px; }
.intro-copy .lead { margin-bottom: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 600; }

.worlds { padding: 0 0 140px; }
.worlds-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.world-card {
  position: relative;
  min-height: 420px;
  padding: 42px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), background .35s;
}
.world-card:hover { transform: translateY(-5px); background: #f8f8f4; }
.world-card.dark { background: var(--ink); color: var(--white); }
.world-card.dark:hover { background: var(--ink-soft); }
.world-number { color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.world-card.dark .world-number { color: rgba(255,255,255,.45); }
.world-icon {
  position: absolute;
  top: 38px;
  right: 38px;
  width: 72px;
  height: 72px;
  color: var(--sage-dark);
}
.world-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.25; }
.world-card h3 { margin: 160px 0 18px; font-size: clamp(31px, 3.4vw, 48px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.world-card p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.65; }
.world-card.dark p { color: rgba(255,255,255,.6); }
.world-card .plus { position: absolute; right: 36px; bottom: 32px; font-size: 29px; font-weight: 300; }

.finder { background: var(--white); padding: 120px 0; }
.finder-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: end; margin-bottom: 70px; }
.finder-head h2 { margin-bottom: 0; }
.finder-head .lead { margin-bottom: 8px; }
.finder-panel { display: grid; grid-template-columns: 330px 1fr; min-height: 480px; border: 1px solid var(--line); }
.finder-tabs { padding: 22px; background: #e9e8e1; }
.finder-tab {
  width: 100%;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.finder-tab.active { background: var(--ink); color: var(--white); padding-left: 24px; }
.finder-tab span { opacity: .6; }
.finder-content { padding: clamp(42px, 7vw, 92px); display: flex; flex-direction: column; justify-content: center; }
.finder-content h3 { max-width: 680px; margin-bottom: 24px; font-size: clamp(38px, 4.5vw, 62px); line-height: 1.03; letter-spacing: -.055em; font-weight: 500; }
.finder-content p { max-width: 630px; margin-bottom: 34px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.finder-content .btn { align-self: flex-start; }

.process { padding: 140px 0; background: var(--ink); color: var(--white); }
.process-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 80px; }
.process-head h2 { max-width: 760px; margin-bottom: 0; }
.process-head p { max-width: 350px; margin: 0 0 9px; color: rgba(255,255,255,.55); line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.step { position: relative; min-height: 275px; padding: 30px 28px 0 0; border-right: 1px solid rgba(255,255,255,.18); }
.step:not(:first-child) { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 72px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--sage); font-size: 12px; }
.step h3 { margin-bottom: 12px; font-size: 21px; font-weight: 500; }
.step p { margin: 0; color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.6; }

.about { padding: 140px 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 11vw; }
.about-statement { font-family: "Manrope", sans-serif; font-size: clamp(36px, 4vw, 60px); line-height: 1.08; letter-spacing: -.05em; }
.about-statement span { color: var(--sage-dark); }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 64px; border-top: 1px solid var(--line); }
.fact { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.fact strong { display: block; margin-bottom: 6px; font-family: "Manrope", sans-serif; font-size: 30px; font-weight: 500; }
.fact span { color: var(--muted); font-size: 13px; }

.contact { margin-bottom: 28px; }
.contact-box {
  position: relative;
  padding: clamp(52px, 8vw, 110px);
  overflow: hidden;
  background: var(--sage);
}
.contact-box::after { content: "BEM"; position: absolute; right: -25px; bottom: -82px; color: rgba(17,22,20,.08); font-family: "Manrope", sans-serif; font-size: clamp(190px, 30vw, 430px); font-weight: 700; letter-spacing: -.1em; line-height: .8; }
.contact-content { position: relative; z-index: 1; max-width: 800px; }
.contact h2 { margin-bottom: 24px; }
.contact .lead { max-width: 640px; margin-bottom: 38px; color: rgba(17,22,20,.7); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

footer { background: var(--ink); color: var(--white); padding: 72px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 60px; padding-bottom: 70px; }
footer .brand { margin-bottom: 24px; }
.footer-about { max-width: 320px; color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.6; }
.footer-col h4 { margin: 5px 0 22px; color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.footer-col a, .footer-col p { display: block; margin: 0 0 12px; color: rgba(255,255,255,.76); font-size: 14px; }
.footer-col a:hover { color: var(--sage); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.38); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .wrap { width: min(100% - 40px, 1320px); }
  .nav-links { position: fixed; inset: 0; z-index: -1; padding: 130px 30px 40px; background: var(--ink); flex-direction: column; align-items: flex-start; transform: translateY(-100%); transition: transform .4s var(--ease); font-size: 28px; }
  .nav-links.open { transform: translateY(0); }
  .menu-btn { display: block; z-index: 2; }
  .hero { min-height: 760px; }
  .hero-meta { display: none; }
  .intro-grid, .finder-head, .about-grid { grid-template-columns: 1fr; gap: 46px; }
  .worlds-grid { grid-template-columns: 1fr; }
  .finder-panel { grid-template-columns: 260px 1fr; }
  .process-head { display: block; }
  .process-head p { margin-top: 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step { border-bottom: 1px solid rgba(255,255,255,.18); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 30px); }
  .nav { height: 76px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: 720px; height: 100svh; background-position: 62% center; }
  .hero::before { background: rgba(12,23,31,.42); }
  .hero h1 { font-size: clamp(50px, 16vw, 76px); }
  .hero-copy { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .intro, .process, .about { padding: 90px 0; }
  .worlds { padding-bottom: 90px; }
  .world-card { min-height: 370px; padding: 28px; }
  .world-card h3 { margin-top: 150px; }
  .world-icon { top: 28px; right: 28px; width: 58px; height: 58px; }
  .finder { padding: 90px 0; }
  .finder-panel { grid-template-columns: 1fr; }
  .finder-tabs { display: flex; overflow-x: auto; padding: 10px; }
  .finder-tab { min-width: 155px; border-bottom: 0; border-right: 1px solid var(--line); }
  .finder-tab span { display: none; }
  .finder-content { min-height: 420px; padding: 36px 26px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { min-height: auto; padding: 30px 0 34px; border-right: 0; }
  .step-num { margin-bottom: 34px; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact-box { padding: 56px 26px; }
  .contact-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; }
}
