@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --navy: #111827;
  --ink: #172b40;
  --white: #ffffff;
  --muted: #647588;
  --line: #c8d4df;
  --blue: #e6eef5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* Header */
.site-header {
  height: 78px;
  padding: 0 clamp(22px, 6vw, 90px);
  display: flex;
  align-items: center;
  gap: 34px;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-logo img { width: 140px; display: block; }
.site-nav {
  display: flex;
  gap: 27px;
  margin-left: auto;
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  color: #b8c8d7;
}
.site-nav a, .header-cta, .site-footer a { transition: .25s; }
.site-nav a:hover, .header-cta:hover { color: #fff; transform: translateY(-2px); }
.header-cta {
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  border: 1px solid #7895ae;
  padding: 12px 14px;
}
.menu-toggle { display: none; background: none; color: #fff; border: 0; font-size: 22px; }

/* Hero */
.hero {
  min-height: calc(100vh - 78px);
  padding: clamp(80px, 13vw, 160px) clamp(22px, 10vw, 150px) 80px;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.eyebrow, small {
  font: 10px 'DM Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9db9d0;
}
.hero h1, h2 { font-weight: 500; letter-spacing: -.1em; line-height: .88; margin: 35px 0 0; }
.hero h1 { font-size: clamp(68px, 12vw, 160px); }
em { font-style: normal; color: #9db9d0; }
.hero-copy { max-width: 380px; color: #b8c8d7; line-height: 1.7; margin: 32px 0; }
.hero-orbit {
  width: min(45vw, 560px);
  height: min(45vw, 560px);
  border: 1px solid #55748f;
  border-radius: 50%;
  position: absolute;
  right: -10%;
  top: 15%;
  box-shadow: 0 0 0 32px #29405455, 0 0 0 64px #29405433;
  animation: float 10s ease-in-out infinite alternate;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 15px 19px;
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
  transition: .25s;
  cursor: pointer;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 22px #12263d22; }
.button-light { background: #fff; color: var(--ink); }
.button-dark { background: var(--navy); color: #fff; }

/* Sections */
.section, .internship {
  padding: clamp(70px, 9vw, 140px) clamp(22px, 9vw, 140px);
  border-top: 1px solid var(--line);
}
.studio, .contact {
  background: #fff;
  background-image:
    linear-gradient(#527c9f0c 1px, transparent 1px),
    linear-gradient(90deg, #527c9f0c 1px, transparent 1px);
  background-size: 56px 56px;
}
.services, .internship { background: var(--navy); color: #fff; border-color: var(--navy); }
.technology { background: var(--blue); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: start; }
.section h2, .internship h2 { font-size: clamp(54px, 7vw, 100px); margin: 0; }
.large-copy { font-size: 22px; line-height: 1.4; color: var(--ink); }
.split p { line-height: 1.7; color: var(--muted); max-width: 460px; }
.services .split p, .internship .split p { color: #b8c8d7; }
.text-link { font: 10px 'DM Mono', monospace; text-transform: uppercase; }

/* Grids */
.service-grid, .tech-grid, .module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
}
.service-grid article, .tech-grid div, .tech-tile, .module-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .3s;
}
.services article, .internship article { border-color: #ffffff33; background: #ffffff09; }
.service-grid article:hover, .module-grid article:hover {
  transform: translateY(-7px);
  background: #ffffff16;
  border-color: #9db9d0;
}
.service-grid h3, .module-grid h3 { font-size: 24px; font-weight: 500; letter-spacing: -.06em; margin: 20px 0 8px; }
.service-grid p, .module-grid p { color: #b8c8d7; font-size: 14px; line-height: 1.5; margin: 0; }
.service-grid b { align-self: flex-end; }
.tech-grid div, .tech-tile { min-height: 145px; }
.tech-tile { background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.tech-tile.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tech-tile.is-active strong { color: #fff; }
.tech-grid strong { font-size: 24px; font-weight: 500; letter-spacing: -.06em; }
.tech-grid div:hover, .tech-tile:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 12px 24px #172b4014; }
.module-grid { margin-bottom: 36px; }
.tech-detail { margin-top: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.tech-detail h3 { font-size: 32px; font-weight: 500; letter-spacing: -.06em; margin: 14px 0 8px; }
.tech-detail p { margin: 0; color: var(--muted); line-height: 1.7; max-width: 560px; }

/* Contact */
.contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-details a { padding: 10px 13px; background: #edf3f7; border: 1px solid #b8cad9; transition: .25s; }
.contact-details a:hover { transform: translateX(7px); background: #d8e6ef; }
.contact form { display: grid; gap: 18px; }
.contact label { font: 10px 'DM Mono', monospace; text-transform: uppercase; color: var(--muted); }
input, textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  background: transparent;
  outline: 0;
}
.contact input:focus, .contact textarea:focus { border-color: var(--navy); }

/* Footer */
.site-footer {
  min-height: 110px;
  padding: 26px clamp(22px, 6vw, 90px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  color: #aebdca;
  font-size: 12px;
}
.site-footer > a { color: #fff; letter-spacing: .16em; font-weight: 700; }
.site-footer > a:hover { color: #9db9d0; letter-spacing: .24em; }

@keyframes float {
  from { transform: translate(0); }
  to { transform: translate(-20px, 18px) rotate(8deg); }
}

/* Mobile */
@media (max-width: 760px) {
  .site-header { height: 68px; }
  .site-logo img { width: 118px; }
  .menu-toggle { display: block; order: 3; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 20px 22px;
    flex-direction: column;
    background: var(--navy);
    border-top: 1px solid #ffffff22;
  }
  .site-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .hero { min-height: calc(100vh - 68px); padding-top: 82px; }
  .hero h1 { font-size: clamp(64px, 18vw, 100px); }
  .hero-orbit { width: 360px; height: 360px; right: -220px; top: 32%; }
  .split, .service-grid, .tech-grid, .module-grid { grid-template-columns: 1fr; gap: 18px; }
  .section, .internship { padding: 70px 22px; }
  .service-grid, .tech-grid, .module-grid { margin-top: 38px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Technology tile description */
.tile-desc { display: block; margin: 12px 0 14px; font-size: 13px; line-height: 1.6; font-weight: 400; letter-spacing: 0; color: #b8c8d7; }
.tile-desc em { display: block; margin-bottom: 6px; font: 10px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #9db9d0; }

/* Form status */
.form-status { margin: 0; min-height: 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-status.is-success { color: #1f7a4d; font-weight: 600; }
.form-status.is-error { color: #b42318; }
.button:disabled { opacity: .6; cursor: wait; }

/* Keep active tile navy + white on hover (2 colors only) */
.tech-tile.is-active:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 12px 24px #172b4014; }

/* Internship eyebrow */
.internship .eyebrow { margin: 0 0 20px; }

/* Internship application modal */
.apply-modal { border: 1px solid var(--line); padding: 0; width: min(640px, calc(100% - 32px)); max-height: 90vh; overflow: auto; background: #fff; color: var(--ink); }
.apply-modal::backdrop { background: #111827cc; }
.apply-inner { padding: 36px; }
.apply-inner h3 { font-size: 32px; font-weight: 500; letter-spacing: -.06em; margin: 14px 0 8px; }
.apply-note { margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.apply-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; }
.apply-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.apply-form .full { grid-column: 1 / -1; }
.apply-form label { font: 10px 'DM Mono', monospace; text-transform: uppercase; color: var(--muted); }
.apply-form input, .apply-form select { font: 14px Manrope, Arial, sans-serif; text-transform: none; color: var(--ink); }
select { display: block; width: 100%; margin-top: 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; background: transparent; outline: 0; }
.apply-form input:focus, .apply-form select:focus { border-color: var(--navy); }
@media (max-width: 760px) {
  .apply-inner { padding: 28px 22px; }
  .apply-form { grid-template-columns: 1fr; }
}

/* Footer logo */
.site-footer .footer-logo { display: block; }
.site-footer .footer-logo:hover { letter-spacing: normal; opacity: .85; }
.footer-logo img { width: 140px; display: block; }
@media (max-width: 760px) { .footer-logo img { width: 118px; } }
