@font-face {
  font-family: Manrope;
  src: url("./manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f8fd;
  --ink: #122542;
  --muted: #4a5d76;
  --blue: #1d5fd4;
  --line: #d4e0ee;
  --blue-soft: #a9ddff;
  --content: 1240px;
  --type: "Manrope", "Avenir Next", system-ui, sans-serif;
  --display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.6 var(--type);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1972ed; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
section[id], article[id], main[id] { scroll-margin-top: 24px; }
.shell { width: min(var(--content), 100% - clamp(32px, 8vw, 112px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  transform: translateY(-160%);
  padding: .65rem 1rem;
  background: white;
  border: 2px solid var(--blue);
  border-radius: .5rem;
}
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #e4efff;
  border-radius: 13px;
}
.brand-icon img { width: 26px; }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type strong {
  font: 700 1.65rem/.98 var(--display);
  letter-spacing: -.08em;
}
.brand-type span {
  margin-top: 5px;
  color: #4b5e76;
  font-size: .67rem;
  font-weight: 750;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
.site-nav a, .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #263f5d;
  font-size: .9rem;
  font-weight: 750;
  transition: color 160ms ease;
}
.site-nav a:hover, .footer-link:hover { color: var(--blue); }

.hero-inner {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(20px, 2.3vw, 34px);
  min-height: clamp(540px, 44vw, 638px);
  border-radius: clamp(24px, 3.2vw, 38px);
  padding: clamp(35px, 5.3vw, 77px);
  padding-inline-end: clamp(24px, 2.7vw, 42px);
  background:
    radial-gradient(ellipse at 82% 48%, #124379 0%, #102e54 25%, #0b1e39 51%, #081326 79%);
  color: #f5faff;
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #d3e8ff;
  font-size: .85rem;
  font-weight: 750;
  letter-spacing: .082em;
  text-transform: uppercase;
}
.hero-kicker > span {
  width: 14px;
  height: 14px;
  border: 1px solid #64b4ff;
  border-radius: 50%;
  background: radial-gradient(circle, #c5ecff 0 22%, transparent 25%);
}
.hero h1 {
  width: max-content;
  max-width: 100%;
  margin-top: .27em;
  font: 700 clamp(2.9rem, 5.55vw, 5rem)/1.01 var(--display);
  letter-spacing: -.065em;
}
.hero h1 em { color: #9bd1ff; font-style: normal; }
.hero-description {
  max-width: 33ch;
  margin-top: clamp(1.25rem, 2.3vw, 2rem);
  color: #d4e5fa;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.65;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: fit-content;
  min-height: 52px;
  padding: 10px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--blue-soft);
  box-shadow: 0 4px 18px #64c4ff33;
  color: #092c4a;
}
.button-primary:hover { background: #ceebff; box-shadow: 0 7px 24px #64c4ff48; }
.button-outline { border-color: #76ade2; color: #ebf5ff; }
.button-outline:hover { background: #ebf5ff; border-color: #ebf5ff; color: #102642; }

.hero-inner :focus-visible, .about-panel :focus-visible { outline-color: var(--blue-soft); }

.projects { padding-top: clamp(72px, 8vw, 118px); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(23px, 3vw, 36px);
}
.section-heading h2, .about h2 {
  font: 700 clamp(2.75rem, 5vw, 4.7rem)/1 var(--display);
  letter-spacing: -.08em;
}
.section-heading h2 > span { color: var(--blue); }
.project-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.project-nav a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.project-nav a:hover { color: #154ea9; border-color: #759fda; background: #eaf3ff; }
.project-nav img { width: 18px; height: 18px; object-fit: contain; }

.project {
  position: relative;
  padding: clamp(7px, 1vw, 12px);
  border: 1px solid #dce6f1;
  border-radius: clamp(22px, 2.9vw, 36px);
  background: #ffffff;
}
.project + .project { margin-top: clamp(37px, 7vw, 92px); }
.legacy-project-anchor { position: absolute; inset: 0 auto auto 0; scroll-margin-top: 24px; }
.project-art {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  min-width: 0;
  aspect-ratio: 2.1;
  border-radius: clamp(15px, 2vw, 25px);
  background: var(--stage);
}
.project-integra { --stage: #a9d0ff; --wordmark: #1f140d; }
.project-nexus { --stage: #d1ddff; --wordmark: #1e1b36; }
.project-obra { --stage: #c3e7f2; --wordmark: #0f1b2d; }
.project-caption {
  position: absolute;
  top: clamp(17px, 2.25vw, 32px);
  left: clamp(16px, 2.25vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #152c501c;
  border-radius: 999px;
  background: #f9fcffdd;
  color: #2d4767;
  font-size: .75rem;
  font-weight: 750;
  pointer-events: none;
}
.project-caption span { width: 6px; height: 6px; border-radius: 50%; background: #2d70cf; }
.project-info {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(145px, 13%);
  align-items: center;
  column-gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(22px, 3.35vw, 45px) clamp(14px, 3vw, 37px) clamp(20px, 3vw, 37px);
}
.project-category {
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .052em;
  text-transform: uppercase;
}
.project h3 {
  font: 700 clamp(2.5rem, 4.65vw, 4.1rem)/1 var(--display);
  letter-spacing: -.074em;
}
.project .project-wordmark {
  display: flex;
  align-items: center;
  gap: .26em;
  color: var(--wordmark);
  font-family: var(--type);
  font-size: clamp(2rem, 4.15vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.065em;
}
.project-wordmark img { width: .92em; flex: none; }
.project-status {
  display: inline-block;
  margin-top: .75rem;
  padding: .17rem .58rem;
  border-radius: 6px;
  background: #e6eefc;
  color: #304b75;
  font-size: .8rem;
  font-weight: 750;
}
.project-details { grid-column: 1 / -1; }
.project-details summary {
  position: absolute;
  right: clamp(14px, 3vw, 37px);
  top: clamp(32px, 4.5vw, 65px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  width: fit-content;
  min-height: 48px;
  padding: .45rem .55rem .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease;
}
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary:hover { border-color: #84afe7; background: #eef5ff; }
.details-icon {
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e6f0ff;
  color: #1d5bbd;
}
.details-icon::before, .details-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  top: calc(50% - 1px);
  left: calc(50% - 5px);
  background: currentColor;
  border-radius: 2px;
}
.details-icon::after { transform: rotate(90deg); transition: transform 200ms ease; }
.project-details[open] .details-icon::after { transform: rotate(0); }
.project-details ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 32px);
  padding: 1.1rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.project-details li { display: grid; align-content: start; gap: .35rem; }
.project-details li strong { font-weight: 800; }
.project-details li span { color: var(--muted); }
.project-feature-note { margin-top: 1.25rem; color: var(--muted); font-size: .89rem; }

.about { padding-top: clamp(65px, 8.5vw, 118px); }
.about-panel {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 353px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 78px);
  border-radius: clamp(24px, 3.2vw, 38px);
  background: radial-gradient(ellipse at 90% 60%, #123f76, #102949 55%, #0b1b32);
  color: #f5faff;
}
.about-copy { position: relative; z-index: 1; }
.about h2 > span { color: #9bd1ff; }
.about-copy p { max-width: 42ch; margin-top: 1.2rem; color: #d5e5fa; }
.about-copy .button { margin-top: 1.4rem; }
.about-mark {
  position: absolute;
  right: -2%;
  top: 50%;
  width: min(53%, 606px);
  transform: translateY(-49%) rotate(-14deg);
  opacity: .40;
}
.about-mark img { width: 100%; filter: brightness(1.75) saturate(.82); }

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px clamp(18px, 4vw, 52px);
  min-height: 123px;
  padding-block: 28px;
}
.site-footer .brand { justify-self: start; }
.footer-nav { display: flex; flex-wrap: wrap; justify-self: end; column-gap: clamp(14px, 2.5vw, 30px); }
.footer-copyright {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .87rem;
  text-align: center;
}

@media (max-width: 920px) {
  .hero-inner { min-height: 520px; }
  .project-info { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); row-gap: 16px; }
  .project-details summary { position: static; }
  .project-details ul { margin-top: 1rem; }
}

@media (max-width: 860px) {
  .hero h1 { font-size: clamp(3.1rem, 7.6vw, 5rem); }
}
@media (max-width: 650px) {
  .site-header { min-height: 72px; gap: 11px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .77rem; }
  .brand { gap: 7px; }
  .brand-icon { width: 37px; height: 37px; border-radius: 11px; }
  .brand-icon img { width: 24px; }
  .brand-type strong { font-size: 1.42rem; }
  .brand-type span { font-size: .6rem; }

  .hero-inner {
    display: block;
    min-height: 0;
    padding: 34px 23px 0;
    background: radial-gradient(ellipse at 55% 80%, #144681 4%, #112e53 33%, #0c1f3a 67%, #081326);
  }
  .hero h1 { font-size: clamp(2.75rem, 10.25vw, 4.4rem); }
  .hero-kicker { font-size: .73rem; }
  .hero-description { max-width: 32ch; }
  .projects { padding-top: 61px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .project-nav a { padding-inline: 10px; font-size: .79rem; }
  .project-art { aspect-ratio: 1.27; }
  .project-caption { font-size: .68rem; }
  .project-info { grid-template-columns: minmax(0, 1fr); row-gap: 13px; }
  .project-details ul { grid-template-columns: minmax(0, 1fr); }
  .about-panel { min-height: 330px; }
  .about-mark { right: -17%; width: 83%; top: 72%; opacity: .20; }
  .site-footer {
    min-height: 115px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }
  .footer-nav { justify-self: start; }
  .footer-link { font-size: .83rem; }
}
@media (max-width: 345px) {
  .site-nav { gap: 9px; }
  .site-nav a { font-size: .71rem; }
  .hero-inner { padding-inline: 18px; }
  .hero h1 { font-size: 2.65rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: reveal-copy 650ms both cubic-bezier(.18,.7,.2,1); }
  .hero-copy > :nth-child(2) { animation-delay: 75ms; }
  .hero-copy > :nth-child(3) { animation-delay: 155ms; }
  .hero-copy > :nth-child(4) { animation-delay: 220ms; }
  .reveal-done { animation: reveal-section 670ms both cubic-bezier(.18,.7,.2,1); }
  .reveal-done .showcase-phone {
    animation: reveal-device 830ms 80ms both cubic-bezier(.18,.7,.2,1);
  }
  @keyframes reveal-copy { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes reveal-section { from { opacity: .65; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes reveal-device { from { opacity: .65; translate: 0 16%; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
