/* Melhems — direction A "Clear Sky": paper, ink, electric blue, one lime band */

:root {
  --paper: #F6F4EE;
  --ink: #17191C;
  --blue: #1D4CFF;
  --blue-deep: #1540E0;
  --lime: #D9F27A;
  --slate: #6B7280;
  --white: #FFFFFF;
  --rule: #E4E1D8;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px;
}
.eyebrow .dash, .eyebrow .slash { color: var(--blue); margin: 0 2px; }
h1 { font-weight: 600; letter-spacing: -0.035em; font-size: clamp(46px, 5.7vw, 84px); line-height: 0.98; }
.nowrap { white-space: nowrap; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h2 { font-weight: 600; letter-spacing: -0.03em; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; max-width: 20ch; }
h3 { font-weight: 600; letter-spacing: -0.02em; font-size: 24px; line-height: 1.2; }
.lede { color: var(--slate); font-size: 18px; max-width: 52ch; }

/* ---------- layout ---------- */
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding: 120px 0; }
.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-white { background: var(--white); }
.section-lime { background: var(--lime); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue .eyebrow { color: rgba(255,255,255,0.85); }
.section-blue .eyebrow .dash { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}
.btn .arrow { transition: transform 0.35s var(--ease); font-weight: 500; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); box-shadow: 0 12px 30px rgba(29, 76, 255, 0.28); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000; box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 18px 24px 0; pointer-events: none; }
.nav {
  pointer-events: auto; width: min(1240px, 100%); margin-inline: auto; height: 68px; padding: 0 12px 0 26px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px; box-shadow: 0 1px 0 rgba(23,25,28,0.06), 0 10px 30px rgba(23,25,28,0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: box-shadow 0.4s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(23,25,28,0.08), 0 16px 44px rgba(23,25,28,0.16); }
.brand img { display: block; }
.brand img[width="132"] { width: 132px; height: auto; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-weight: 500; font-size: 15.5px; position: relative; padding: 6px 0; color: var(--ink); transition: color 0.25s ease; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 46px; padding: 0 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  pointer-events: auto; display: none; flex-direction: column; gap: 4px; margin: 10px auto 0; width: min(1240px, 100%);
  background: var(--white); border-radius: 24px; padding: 14px 22px 22px; box-shadow: 0 16px 44px rgba(23,25,28,0.16);
}
.mobile-menu a { padding: 12px 0; font-weight: 500; font-size: 17px; border-bottom: 1px solid var(--rule); }
.mobile-menu .btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
.mobile-menu.is-open { display: flex; }

/* ---------- hero ---------- */
.hero { padding: 148px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { padding-right: 12px; }
.hero-sub { margin-top: 28px; color: var(--slate); font-size: 19px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-item { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.hero-item:nth-child(1) { animation-delay: 0.05s; }
.hero-item:nth-child(2) { animation-delay: 0.15s; }
.hero-item:nth-child(3) { animation-delay: 0.3s; }
.hero-item:nth-child(4) { animation-delay: 0.42s; }
.hero-visual { animation-delay: 0.25s; position: relative; }
@keyframes rise { to { opacity: 1; transform: none; } }

.photo-card { border-radius: var(--radius); overflow: hidden; background: var(--rule); }
.photo-card img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.hero-visual .photo-card { box-shadow: 0 30px 70px rgba(23,25,28,0.14); }
.hero-visual .photo-card img { aspect-ratio: 4 / 4.6; }

.activity { position: absolute; right: -28px; top: 14%; width: min(340px, 78%); height: 180px; }
.act {
  position: absolute; left: 0; right: 0; display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center;
  background: var(--white); border-radius: 18px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(23,25,28,0.16);
  opacity: 0; transform: translateY(18px) scale(0.97); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.act.is-a { opacity: 1; transform: translate(0, 0) scale(1); top: 0; pointer-events: auto; }
.act.is-b { opacity: 1; transform: translate(26px, 0) scale(1); top: 98px; pointer-events: auto; }
.act.is-out { opacity: 0; transform: translateY(-14px) scale(0.97); }
.act-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.act-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act-blue { background: rgba(29,76,255,0.1); color: var(--blue); }
.act-lime { background: var(--lime); color: var(--ink); }
.act-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-text b { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.act-text small { font-size: 12.5px; color: var(--slate); line-height: 1.35; }
.act-tick { width: 20px; height: 20px; border-radius: 50%; background: #E3F6E6; color: #1E7A3A; font-size: 12px; display: grid; place-items: center; font-weight: 700; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { padding: 18px 34px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; position: relative; }
.marquee-track li::before { content: ''; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); transform: translateY(-50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px 30px 34px; border: 1.5px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.3s ease, box-shadow 0.5s ease, opacity 0.8s var(--ease) var(--d, 0ms);
}
.card.is-in:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 20px 50px rgba(23,25,28,0.08); }
.card .eyebrow { margin-bottom: 26px; }
.icon { display: block; width: 44px; height: 44px; color: var(--blue); margin-bottom: 36px; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 12px; font-size: 26px; }
.card p { color: var(--slate); font-size: 16px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 56px; }
.step { padding: 0 40px 0 0; }
.step + .step { padding-left: 40px; border-left: 1.5px solid rgba(23,25,28,0.35); }
.step-num { display: block; font-weight: 300; font-size: clamp(88px, 9vw, 132px); line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 28px; }
.step h3 { margin-bottom: 12px; font-size: 26px; }
.step p { font-size: 16.5px; color: rgba(23,25,28,0.78); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-text .lede { margin-top: 22px; margin-bottom: 36px; }
.photo-card-sm img { aspect-ratio: 4 / 3; }
.why-list { padding-top: 12px; }
.why-item { padding: 30px 0 30px 28px; border-top: 1.5px solid var(--rule); position: relative; }
.why-item:last-child { border-bottom: 1.5px solid var(--rule); }
.why-item::before { content: ''; position: absolute; left: 0; top: 40px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.why-item h3 { font-size: 24px; margin-bottom: 6px; }
.why-item p { color: var(--slate); font-size: 16px; }

/* ---------- reach ---------- */
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 500; font-size: 15px; transition: background-color 0.25s ease, color 0.25s ease; }
.chips li:hover { background: var(--ink); color: var(--white); }
.reach-line { margin-top: 26px; color: var(--slate); font-size: 16px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-text h2 { color: var(--white); }
.contact-text p { margin-top: 24px; font-size: 18px; color: rgba(255,255,255,0.85); max-width: 44ch; }
.contact-text a { color: var(--white); font-weight: 600; border-bottom: 1.5px solid rgba(255,255,255,0.5); }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 36px; box-shadow: 0 30px 70px rgba(0,0,0,0.18); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--rule); border-radius: 14px; padding: 13px 16px; font: inherit; font-size: 15.5px;
  background: var(--white); color: var(--ink); outline: none; resize: vertical; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #A0A5AE; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,76,255,0.12); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #D9442B; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--slate); text-align: center; }
.form-note.is-error { color: #B9361F; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 56px 0 36px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand img { width: 140px; height: auto; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-weight: 500; font-size: 15px; color: rgba(246,244,238,0.85); transition: color 0.25s ease; }
.footer-links a:hover { color: var(--lime); }
.footer-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(246,244,238,0.14); font-size: 13.5px; color: rgba(246,244,238,0.6); }
.footer-legal a { color: rgba(246,244,238,0.85); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step, .step + .step { padding: 0; border-left: 0; }
  .step + .step { padding-top: 40px; border-top: 1.5px solid rgba(23,25,28,0.35); }
  .step-num { font-size: 72px; margin-bottom: 16px; }
}
@media (max-width: 880px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav { height: 60px; padding: 0 8px 0 20px; }
  .nav-wrap { padding: 12px 16px 0; }
  .container { width: min(1240px, 100% - 40px); }
  .section { padding: 80px 0; }
  .hero { padding: 108px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-visual { margin-top: 8px; }
  .activity { right: 0; top: auto; bottom: -18px; width: min(320px, 92%); height: 150px; left: 50%; transform: translateX(-50%); }
  .act.is-b { transform: translate(14px, 0); top: 80px; }
  .act { padding: 12px 14px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 26px 24px 28px; }
  .why-grid, .reach, .contact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 18px 24px; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(40px, 12.5vw, 54px); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .activity { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-item, .reveal, .card { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .act { transition: none; }
}
