:root {
  --ink: #14283f;
  --paper: #f3f7fb;
  --white: #fff;
  --blue: #1769aa;
  --blue-light: #a9d2f2;
  --muted: #586b80;
  --line: #d3e0ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section, main { scroll-margin-top: 82px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 40, 63, 0.12);
  background: rgba(243, 247, 251, 0.96);
  backdrop-filter: blur(10px);
  animation: slide-down 600ms ease-out both;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 25px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 6px 16px rgba(23, 105, 170, 0.25); }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.19em;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }

.hero {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px max(20px, calc((100% - 1120px) / 2));
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 31, 52, 0.9) 0%, rgba(12, 31, 52, 0.68) 48%, rgba(12, 31, 52, 0.22) 100%),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.hero-eyebrow {
  margin: 0 0 18px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: rise-in 700ms 100ms ease-out both;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  animation: rise-in 700ms 220ms ease-out both;
}

.hero-sub {
  max-width: 580px;
  margin: 26px 0 32px;
  font-size: 18px;
  color: #e6f0f8;
  animation: rise-in 700ms 340ms ease-out both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.btn-primary { color: var(--white); background: var(--blue); }
.btn-primary:hover, .btn-primary:focus-visible {
  background: #0e4f86;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.hero .btn { animation: rise-in 700ms 460ms ease-out both; }

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 44px;
}

.section-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-lede {
  grid-column: 1;
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  height: 390px;
  perspective: 1100px;
  border-radius: 14px;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.work-card-toggle {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: inherit;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card.is-flipped .work-card-toggle { transform: rotateY(180deg); }

.work-card-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: inherit;
  backface-visibility: hidden;
}

.work-card-front { background: #dce8f2; }
.work-card-front::after {
  position: absolute;
  inset: 50% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(12, 31, 52, 0.72));
  pointer-events: none;
}

.work-card-front img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 400ms ease;
}

.work-card:hover .work-card-front img { transform: scale(1.035); }

.work-flip-hint {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 20px;
  color: var(--white);
  background: rgba(12, 31, 52, 0.55);
  font-size: 11px;
  line-height: 1.4;
}

.work-card-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: var(--white);
  transform: rotateY(180deg);
}

.work-card-toggle:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.work-card:hover,
.work-card:focus-within,
.js .work-card.is-visible:hover,
.js .work-card.is-visible:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(20, 40, 63, 0.14);
}
.work-card:nth-child(2),
.about-points li:nth-child(2) { transition-delay: 100ms; }
.work-card:nth-child(3),
.about-points li:nth-child(3) { transition-delay: 200ms; }
.work-card:nth-child(4) { transition-delay: 300ms; }
.work-title { display: block; margin: 0 0 10px; font-size: 24px; }
.work-desc { display: block; margin: 0; color: var(--muted); }

.section-about {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: #142d49;
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
}

.about-copy { max-width: 650px; font-size: 18px; }
.about-copy p { margin-top: 0; }
.about-cta { color: var(--blue-light); font-weight: 800; }

.about-points { margin: 0; padding: 0; list-style: none; }
.about-points li {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.about-points strong { color: var(--blue-light); }
.about-points span { color: #c2d5e7; }

.contact-box {
  min-height: 260px;
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
}

.tower-btn {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: var(--blue-light);
  cursor: pointer;
  transition: background-color 200ms ease;
}

.tower-btn:hover, .tower-btn:focus-visible { background: #c7e2f6; }
.tower-icon { width: 72px; height: 115px; }
.tower-icon img,
.tower-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 250ms ease;
}
.tower-btn:hover .tower-icon img,
.tower-btn:focus-visible .tower-icon img,
.tower-btn:hover .tower-icon svg,
.tower-btn:focus-visible .tower-icon svg { transform: translateY(-5px) scale(1.04); }
.tower-hint { margin-top: 10px; font-size: 12px; font-weight: 800; }

.contact-reveal {
  align-self: center;
  padding: 36px;
  border-radius: 12px;
  background: var(--paper);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.contact-reveal.is-open { opacity: 1; transform: translateY(0); }

.reveal-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.reveal-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.reveal-value {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.reveal-value:hover, .reveal-value:focus-visible { color: var(--blue); }
.reveal-note { margin: 20px 0 0; color: var(--muted); }

.site-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .work-card:nth-child(2),
.js .about-points li:nth-child(2) { transition-delay: 100ms; }
.js .work-card:nth-child(3),
.js .about-points li:nth-child(3) { transition-delay: 200ms; }
.js .work-card:nth-child(4) { transition-delay: 300ms; }

@media (max-width: 760px) {
  .nav { height: 72px; }
  section { scroll-margin-top: 72px; }
  .brand-name { font-size: 14px; }
  .nav-links { gap: 8px; }
  .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
  }
  .hero { min-height: 540px; }
  .section { padding: 72px 0; }
  .work-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 30px; }
  .work-card { height: 350px; }
  .contact-box { grid-template-columns: 1fr; }
  .tower-btn {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .reveal-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav { width: calc(100% - 28px); }
  .brand-mark { width: 38px; height: 38px; }
  .nav-links a:first-child { display: none; }
  .contact-reveal { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header,
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero .btn {
    animation: none;
  }
  .js .reveal,
  .contact-reveal,
  .brand-mark,
  .btn,
  .work-card,
  .work-card-toggle,
  .work-card-front img,
  .tower-btn,
  .tower-icon img,
  .tower-icon svg {
    transition: none;
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}