@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600&display=swap");

:root {
  --ink: #102331;
  --ink-muted: #526574;
  --paper: #f7f9fa;
  --paper-blue: #edf3f6;
  --portal-blue: #7ba9c7;
  --portal-blue-deep: #52758e;
  --portal-orange: #e3a35d;
  --white: #ffffff;
  --line: rgba(16, 35, 49, 0.13);
  --shadow: 0 18px 50px rgba(37, 61, 77, 0.12);
  --radius: 1.4rem;
  --header-height: 4.7rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--portal-orange);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    backdrop-filter 200ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(74, 101, 121, 0.86);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1120px, calc(100% - 2rem));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav-mark__ring {
  width: 1.05rem;
  aspect-ratio: 1;
  border: 3px solid var(--white);
  border-right-color: var(--portal-orange);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: clamp(0.9rem, 3vw, 2.2rem);
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: min(830px, 100svh);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #829fb2 0%, #637f94 52%, #4d6d84 100%);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 9rem;
  background: linear-gradient(to top, rgba(38, 64, 82, 0.2), transparent);
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero-shape--ring {
  width: clamp(18rem, 37vw, 35rem);
  aspect-ratio: 1;
  top: 14%;
  right: -10%;
  border: clamp(2rem, 5vw, 5rem) solid rgba(255, 255, 255, 0.08);
  border-left-color: rgba(227, 163, 93, 0.16);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.hero-shape--square {
  width: clamp(9rem, 18vw, 15rem);
  aspect-ratio: 1;
  left: 7%;
  bottom: 8%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(22deg);
}

.hero-shape--line {
  width: 30rem;
  height: 1px;
  top: 22%;
  left: -10rem;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-42deg);
}

.hero__content {
  width: min(980px, calc(100% - 2rem));
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: var(--portal-blue-deep);
}

.hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.9rem, 12vw, 8.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero__intro {
  max-width: 36rem;
  margin: 1.8rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.contact-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.scroll-cue {
  width: fit-content;
  margin: 3.4rem auto 0;
  display: flex;
  gap: 0.4rem;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  animation: drift 1.8s ease-in-out infinite;
}

.portfolio-section,
.about-section {
  padding: clamp(5.5rem, 11vw, 9rem) 0;
}

.portfolio-section--tinted {
  background: var(--paper-blue);
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 3rem;
  align-items: end;
}

.section-heading h2,
.about-copy h2,
.dialog-content h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-heading > p {
  margin: 0;
  color: var(--ink-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  grid-column: span 4;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 0 rgba(16, 35, 49, 0.02);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card:hover {
  border-color: rgba(82, 117, 142, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.project-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe8ed;
}

.project-card__image::after {
  content: "View project";
  position: absolute;
  inset: auto 1rem 1rem auto;
  padding: 0.45rem 0.7rem;
  border-radius: 100px;
  background: rgba(16, 35, 49, 0.76);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.project-card:hover .project-card__image::after,
.project-card:focus-visible .project-card__image::after {
  opacity: 1;
  transform: translateY(0);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-card__body {
  display: block;
  flex: 1;
  padding: 1.35rem 1.35rem 1.55rem;
}

.project-card__number {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--portal-blue-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-card__title {
  display: block;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.project-card p {
  margin: 0.6rem 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.about-section {
  overflow: hidden;
  background: #183443;
  color: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 1.8rem;
}

.about-copy [data-about-copy] {
  color: rgba(255, 255, 255, 0.72);
}

.about-copy [data-about-copy] p + p {
  margin-top: 1.1rem;
}

.text-link {
  width: fit-content;
  margin-top: 2rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  text-decoration-color: var(--portal-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.about-gallery figure {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.about-gallery figure:first-child {
  grid-row: span 2;
  min-height: 32rem;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(16, 35, 49, 0.76));
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.7rem;
}

footer {
  min-height: 7rem;
  padding: 1.5rem max(1rem, calc((100% - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #102734;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.project-dialog {
  width: min(960px, calc(100% - 2rem));
  max-height: min(880px, calc(100dvh - 2rem));
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 1.6rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(12, 28, 38, 0.32);
}

.project-dialog::backdrop {
  background: rgba(10, 28, 39, 0.72);
  backdrop-filter: blur(7px);
}

.dialog-content {
  padding: clamp(2rem, 6vw, 4.5rem);
}

.dialog-content h2 {
  max-width: 13ch;
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 1rem;
  float: right;
  width: 2.8rem;
  aspect-ratio: 1;
  margin: 1rem 1rem -3.8rem 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.dialog-close:hover {
  background: var(--white);
}

.dialog-close svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.dialog-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dialog-tags span {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.dialog-description {
  max-width: 50rem;
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

.dialog-description p + p {
  margin-top: 1rem;
}

.dialog-media {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dialog-media figure {
  overflow: hidden;
  margin: 0;
  border-radius: 1rem;
  background: #dfe8ed;
}

.dialog-media figure:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

.dialog-media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

.dialog-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1d27;
  object-fit: contain;
}

.dialog-media figcaption {
  padding: 0.7rem 0.9rem;
  background: var(--white);
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.dialog-downloads {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.dialog-downloads .eyebrow {
  margin-bottom: 0.35rem;
}

.dialog-downloads h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

.download-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.download-card {
  min-width: 0;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--white);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.download-card:hover {
  border-color: rgba(82, 117, 142, 0.48);
  box-shadow: 0 10px 28px rgba(37, 61, 77, 0.1);
  transform: translateY(-2px);
}

.download-card svg {
  width: 1.4rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--portal-blue-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.download-card span {
  min-width: 0;
  display: grid;
}

.download-card strong {
  overflow-wrap: anywhere;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.download-card small {
  color: var(--ink-muted);
  font-size: 0.7rem;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 820px) {
  .section-heading,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.2rem;
  }

  .section-heading > p {
    max-width: 38rem;
  }

  .project-card {
    grid-column: span 6;
  }

  .about-layout {
    gap: 3rem;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 4.2rem;
  }

  .nav-shell {
    width: min(100% - 1.25rem, 1120px);
  }

  .nav-mark [data-nav-name] {
    display: none;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.74rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 19vw, 5.2rem);
  }

  .contact-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-link {
    justify-content: center;
  }

  .portfolio-section,
  .about-section {
    padding: 5rem 0;
  }

  .project-card {
    grid-column: 1 / -1;
  }

  .about-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .about-gallery figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 25rem;
  }

  .dialog-media {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .dialog-media figure:first-child:nth-last-child(odd) {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



