/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:root {
  --black: #000;
  --ink: #111;
  --gray-900: #1a1a1a;
  --gray-700: #444;
  --gray-500: #666;
  --gray-400: #999;
  --gray-200: #e6e6e6;
  --gray-100: #f4f4f2;
  --accent: #0B1F33; /* deep corporate navy */
  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1em; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 18px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--gray-200);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  transition: color .25s ease;
}
.nav__logo img {
  height: 34px;
  width: auto;
  display: block;
  /* invert SVG (currentColor driven) via filter fallback — but logo uses currentColor so this just matches brand */
}
/* Since SVG uses currentColor, we swap color on nav. But <img> doesn't inherit currentColor — we use a filter. */
.nav__logo img { filter: brightness(0) invert(1); } /* white on dark hero */
.nav.is-scrolled .nav__logo img { filter: none; } /* black on light bg */

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  transition: color .25s ease;
}
.nav.is-scrolled .nav__links a { color: var(--gray-700); }
.nav__links a:hover { color: var(--ink); }
.nav.is-scrolled .nav__links a:hover { color: var(--black); }

/* mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 5px auto;
  transition: background .2s ease;
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

.mobile-menu {
  display: none;
  padding: 16px var(--pad) 24px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--primary:hover { background: transparent; color: var(--ink); }
.hero .btn--primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}
.hero .btn--primary:hover { background: transparent; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.85);
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,51,0.55) 0%, rgba(11,31,51,0.75) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 900px;
}
.hero__title {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 620px;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--gray-200);
}
.section--alt { background: var(--gray-100); border-top: 0; }
.section--contact { background: var(--ink); color: #fff; border-top: 0; }
.section--contact h2, .section--contact .eyebrow, .section--contact p { color: #fff; }
.section--contact .eyebrow { color: rgba(255,255,255,0.6); }
.section--contact .contact__copy { color: rgba(255,255,255,0.8); }

.section__head {
  margin-bottom: clamp(40px, 6vw, 70px);
  max-width: 720px;
}
.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
}
.section__title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.15;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--approach { align-items: start; gap: clamp(40px, 6vw, 80px); }
.grid--contact { gap: clamp(40px, 6vw, 80px); align-items: start; }

/* ---------- Services ---------- */
.service {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.service__num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 22px;
}
.service h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 500;
}
.service p { font-size: 15px; color: var(--gray-700); margin: 0; }

/* ---------- Approach ---------- */
.approach__copy p { font-size: 18px; color: var(--gray-700); }
.approach__copy p + p { margin-top: 1em; }

/* ---------- Work / Cards ---------- */
.card {
  display: block;
  color: var(--ink);
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: grayscale(25%);
  margin-bottom: 22px;
  transition: filter .3s ease;
}
.card:hover .card__img { filter: grayscale(0%); }
.card__img--1 { background-image: url('https://images.unsplash.com/photo-1448630360428-65456885c650?auto=format&fit=crop&w=1200&q=80'); }
.card__img--2 { background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1200&q=80'); }
.card__img--3 { background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=80'); }
.card__meta {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.card__title {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
  font-weight: 500;
}
.card__desc { font-size: 15px; color: var(--gray-700); margin: 0; }

/* ---------- Contact ---------- */
.contact__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.contact__list li {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 15px;
}
.contact__list li > span:first-child {
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  flex-shrink: 0;
}
.contact__list a,
.contact__list .contact__val {
  color: #fff;
  text-align: right;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
.contact__list a:hover { color: rgba(255,255,255,0.75); }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font: inherit;
  padding: 10px 0;
  outline: none;
  transition: border-color .2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-bottom-color: #fff; }
.form .btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--ink); border-color: #fff; }
.form .btn:hover { background: transparent; color: #fff; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form__status { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; min-height: 1em; }
.form__status.is-ok { color: #7cd992; }
.form__status.is-err { color: #ff8a8a; }

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.footer__brand { display: inline-flex; align-items: center; }
.footer__brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1); /* white logo on dark footer */
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--approach, .grid--contact { gap: 32px; }
  .hero { min-height: 88vh; }
  .hero__inner { padding-top: 110px; }
  .section { padding: 80px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
