:root {
  color-scheme: light;
  --ink: #141c34;
  --subtle: #47516a;
  --navy: #101b54;
  --lime: #b5fc55;
  --line: #dce3ef;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(100% - 3rem, 1160px); margin-inline: auto; }
.top { background: #fff; }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.top-inner { min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-size: .92rem; font-weight: 750; }
.brand img { border-radius: 5px; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
nav a { text-decoration: none; font-weight: 650; font-size: .92rem; }
nav a:hover, .footer-inner a:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.1rem;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 750;
  transition: background .18s ease, color .18s ease;
}
.top-contact, .primary { background: var(--lime); color: #102000; }
.top-contact:hover, .primary:hover { background: #d1ff8f; }
.secondary { border-color: #929cc9; color: #fff; }
.secondary:hover { background: #ffffff22; }
.outline { border-color: #98a5c5; color: var(--navy); }
.outline:hover { background: #e7ecf8; }
:focus-visible { outline: 3px solid #286ce1; outline-offset: 4px; }
.hero :focus-visible, footer :focus-visible { outline-color: var(--lime); }
.hero {
  color: white;
  background: radial-gradient(ellipse at 92% 10%, #2b3d9c, transparent 59%), linear-gradient(125deg, #10183c 12%, #172760 75%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: center;
  padding-block: clamp(3rem, 6.4vw, 5.6rem);
}
.eyebrow { color: #e5f3ff; text-transform: uppercase; letter-spacing: .11em; font-size: .875rem; font-weight: 700; margin-bottom: 1rem; }
h1 { font-size: clamp(2.65rem, 5.2vw, 4.75rem); letter-spacing: -.062em; line-height: .99; font-weight: 850; }
h1 em { display: block; color: var(--lime); font-style: normal; }
.hero-copy { max-width: 45ch; margin-top: 1.35rem; color: #e0e7ff; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.hero-photo { position: relative; border: 1px solid #ffffff55; padding: .5rem; border-radius: 16px; background: #ffffff11; box-shadow: 0 24px 55px #080f35a0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; object-position: center; border-radius: 10px; }
.hero-photo figcaption { padding: .7rem .55rem .3rem; display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; font-size: .875rem; }
.hero-photo figcaption span { color: #e0e7ff; }
.hero-photo figcaption a { color: #dcf9bb; text-underline-offset: .23em; }
.services, .work-inner, .contact { padding-block: clamp(3rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.05em; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fe;
}
.service-card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.service-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: .45rem; padding: 1.1rem; }
.service-card h3 { font-size: 1.22rem; line-height: 1.2; }
.service-card p, .work-intro p, .contact p, address { color: var(--subtle); }
.service-card a { margin-top: auto; padding-top: .65rem; color: #1f357b; font-size: .92rem; font-weight: 750; text-underline-offset: .25em; }
.service-card a:hover { color: #2d5d0d; }
.image-note { margin-top: .8rem; color: var(--subtle); font-size: .875rem; }
.work { background: #eef2fc; border-block: 1px solid #e1e7f5; }
.work-inner { display: grid; grid-template-columns: .83fr 1fr; align-items: center; gap: 2rem; }
.work-intro p { margin: .8rem 0 1.25rem; max-width: 32ch; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.video-grid h3 { font-size: 1rem; line-height: 1.35; margin-top: .6rem; }
.video-open { display: block; padding: 0; border: 0; width: 100%; position: relative; overflow: hidden; border-radius: 12px; background: var(--navy); }
.video-open img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 60%; transition: transform .2s ease; }
.video-open:hover img { transform: scale(1.035); }
.play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); background: var(--lime); width: 49px; height: 49px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 18px #0008; }
.play::after { content: ""; border-left: 12px solid #102000; border-block: 8px solid transparent; margin-left: 3px; }
.contact { display: flex; justify-content: space-between; gap: 1.6rem; align-items: center; }
address { margin: .9rem 0 .35rem; font-style: normal; }
.contact-links { display: grid; justify-items: start; gap: .7rem; max-width: 32ch; }
footer { color: #fff; background: #10183c; padding-block: 1.45rem 4.8rem; }
.footer-inner { flex-wrap: wrap; }
.footer-inner a { color: #dcf9bb; text-underline-offset: .2em; }
.floating { position: fixed; z-index: 1; display: inline-flex; gap: .45rem; align-items: center; right: 1.1rem; bottom: max(1rem, env(safe-area-inset-bottom)); background: var(--lime); color: #102000; padding: .64rem .95rem; border-radius: 30px; box-shadow: 0 3px 18px #182e3850; border: 1px solid #3e6515; text-decoration: none; font-weight: 800; }
.floating:hover { background: #d1ff8f; }
dialog { width: min(100% - 1.5rem, 480px); max-height: calc(100dvh - 1.5rem); padding: 1rem; border: 0; border-radius: 14px; color: white; background: #10183c; }
dialog::backdrop { background: #080d26de; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
.dialog-head h2 { font-size: 1.2rem; letter-spacing: normal; }
.close { width: 42px; height: 42px; border: 1px solid #dce3ef; border-radius: 7px; background: transparent; color: white; font-size: 1.65rem; line-height: 1; }
dialog video { display: block; width: 100%; max-height: calc(100dvh - 7rem); }
@media (max-width: 860px) {
  .brand span { display: none; }
  .hero-inner { gap: 1.6rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner { flex-wrap: wrap; min-height: auto; padding-block: .75rem 0; gap: 0; }
  .brand span { display: inline; }
  nav { order: 1; width: 100%; justify-content: space-between; gap: .5rem; margin-top: .65rem; border-top: 1px solid var(--line); }
  nav a { padding-block: .7rem; }
  .top-contact { min-height: 41px; padding-inline: .65rem; }
  .hero-inner, .work-inner { grid-template-columns: 1fr; }
  .service-grid { gap: .75rem; }
  .contact { flex-direction: column; align-items: stretch; }
  .contact-links { justify-items: start; }
}
@media (max-width: 440px) { .service-grid { grid-template-columns: 1fr; } }
@media (max-width: 365px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
