:root {
  --navy: #152A4E;
  --navy-deep: #0E1830;
  --accent: #2DD4BF;
  --accent-dark: #0A6E6A;
  --bg: #F7F6F2;
  --white: #FFFFFF;
  --gray: #5B6472;
  --light-on-navy: #C7CEDA;
  --footer-gray: #8B94A6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* Nav */
header.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(21,42,78,0.1);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.link { font-size: 15px; font-weight: 500; }
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: #0B1C36; }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn-outline-navy { border: 1px solid var(--navy); color: var(--navy); background: transparent; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 100px 40px;
}
.hero .ghost { position: absolute; top: -140px; right: -90px; opacity: 0.08; pointer-events: none; }
.hero-inner { max-width: 720px; position: relative; }
.hero-inner .mono { color: var(--accent); display: block; margin-bottom: 20px; }
.hero-inner h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; color: #fff; margin: 0 0 20px; }
.hero-inner p { font-size: 18px; line-height: 1.6; color: var(--light-on-navy); margin: 0 0 32px; max-width: 600px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 15px 28px; font-size: 15px; }

/* Section */
section { padding: 100px 40px; }
.section-head { max-width: 680px; margin: 0 auto 56px; }
.section-head .mono { color: var(--accent-dark); display: block; margin-bottom: 14px; }
.section-head h2 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--gray); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1280px; margin: 0 auto; }

.card {
  border: 1px solid rgba(21,42,78,0.1);
  border-radius: 18px;
  padding: 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: rgba(21,42,78,0.08);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 18px; margin: 0; }
.card p { font-size: 14px; line-height: 1.6; color: var(--gray); margin: 0; }

.work-card { background: var(--white); border: 1px solid rgba(21,42,78,0.12); }
.work-card .tag { font-size: 12px; letter-spacing: 0.14em; color: var(--accent-dark); }
.work-card h3 { font-size: 20px; }
.work-card a.visit { font-size: 14px; font-weight: 600; margin-top: 4px; }

#services { background: var(--white); }
#work { background: var(--bg); }

/* Contact */
#contact {
  background: var(--navy);
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
}
#contact .contact-left { flex: 1 1 360px; }
#contact .section-head { margin: 0 0 32px; max-width: none; }
#contact .section-head h2 { color: #fff; }
#contact .section-head p { color: var(--light-on-navy); }
.contact-rows { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-rows a { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 16px; font-weight: 500; }
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}

.contact-form {
  flex: 1 1 360px;
  max-width: 460px;
  background: var(--bg);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(21,42,78,0.2);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  font-family: inherit;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .hp { position: absolute; left: -9999px; top: -9999px; }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.ok { color: #0A6E6A; }
.form-status.err { color: #B0432F; }

/* Footer */
footer {
  padding: 48px 40px 28px;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand span { color: #fff; font-size: 15px; font-weight: 700; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--footer-gray); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #8299BB;
}
.footer-col a.contact-link { display: flex; align-items: center; gap: 10px; color: #C7CEDA; font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom span { color: var(--footer-gray); font-size: 13px; }

@media (max-width: 860px) {
  header.site-nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a.link { display: none; }
  .hero { padding: 64px 20px; }
  .hero-inner h1 { font-size: 34px; }
  section { padding: 64px 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  #contact { padding: 64px 20px; flex-direction: column; }
  .contact-form { max-width: none; width: 100%; }
  footer { padding: 40px 20px 24px; align-items: stretch; }
  .footer-top { flex-direction: column; gap: 28px; }
}
