@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-Thin.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-ThinItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-ExtraLight.ttf") format("truetype");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-ExtraLightItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-LightItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-MediumItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-SemiBoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-ExtraBoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Tomorrow";
  src: url("fonts/Tomorrow-BlackItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

:root {
  --outer: #17293a;
  --navy: #0f2233;
  --panel: #364756;
  --line: #364755;
  --muted: #4c6679;
  --red: #e50046;
  --white: #f7f7f8;
  --space: 60px;
  color-scheme: dark;
  font-family: "Tomorrow", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--outer);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--outer);
  color: var(--white);
}

body.lightbox-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.plain-link,
.plain-link:link,
.plain-link:visited,
.plain-link:hover,
.plain-link:active {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
    box-shadow: none;
}

.image-link {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 0;
    text-decoration: none;
}

    .image-link img {
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
    }

.site-shell {
  width: min(100%, 1804px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  border-inline: 2px solid var(--line);
  background: var(--navy);
}

.site-header {
  border-top: 14px solid var(--red);
  border-bottom: 2px solid var(--line);
}

.brand-row {
  min-height: 176px;
  padding: 38px var(--space) 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}

.brand-logo {
  display: block;
  width: min(470px, 58vw);
  height: auto;
}

.version {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

.section-bar {
  min-height: 66px;
  margin: 0;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  background: var(--panel);
  color: var(--white);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.intro-content,
.portfolio-content {
  padding: var(--space);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space);
  align-items: stretch;
}

.info-panel {
  min-width: 0;
  min-height: 315px;
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  border-top: 5px solid var(--red);
  background: var(--panel);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.22;
}

.info-panel p {
  margin: 0 0 1.2em;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.info-panel--contact .email-button {
  width: max-content;
  min-width: 272px;
  min-height: 56px;
  margin-top: auto;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25em;
  border: 2px solid var(--red);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.info-panel--contact .email-button:hover,
.info-panel--contact .email-button:focus-visible {
  background: var(--red);
  color: #fff;
}

.divider {
  display: block;
  width: min(255px, 38vw);
  height: 6px;
  margin: var(--space) auto 32px;
}

.portfolio-content {
  padding-top: var(--space);
  padding-bottom: 54px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space);
  align-items: stretch;
}

.portfolio-card {
    min-width: 0;
    min-height: 500px;
    margin: 0;
    padding: 2px;
    display: block;
    border: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
    background: var(--line);
    color: var(--white);
    text-align: left;
    cursor: pointer;
    
}

.portfolio-bg {
    background-image: url(bg_card.png);
    background-size: contain;
}

.portfolio-card__inner {
  min-height: 496px;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 33px), calc(100% - 33px) 100%, 0 100%);
  background: var(--navy);
  transition: background-color 180ms ease;
}

.portfolio-card:hover .portfolio-card__inner,
.portfolio-card:focus-visible .portfolio-card__inner {
  background: #172f43;
}

.portfolio-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

.portfolio-card__image {
  width: 100%;
  aspect-ratio: 20 / 7;
  display: block;
  object-fit: cover;
}

.portfolio-card__body {
  min-height: 0;
  padding: 24px 42px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card__category,
.project-category {
  display: block;
  color: var(--red);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.portfolio-card__category b,
.project-category b {
  color: var(--white);
}

.portfolio-card__title {
  margin-top: 30px;
  display: block;
  font-size: clamp(2.5rem, 3.1vw, 3.55rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.portfolio-card__description {
  max-width: 330px;
  margin-top: 18px;
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.16;
}

.portfolio-card__arrow {
  width: 34px;
  height: auto;
  margin: auto 0 0 auto;
  display: block;
  transition: transform 190ms ease;
}

.portfolio-card:hover .portfolio-card__arrow,
.portfolio-card:focus-visible .portfolio-card__arrow {
  transform: translateX(12px);
}

.divider--portfolio {
  margin-top: var(--space);
  margin-bottom: 100px;
}

.text-page__content {
  min-height: calc(100vh - 256px);
  padding: var(--space);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
}

.text-page__content p {
  width: 100%;
  margin: 0 0 1.5em;
}

.text-page__content p:last-child {
  margin-bottom: 0;
}

.back-button {
  width: fit-content;
  min-height: 50px;
  margin-top: 60px;
  padding: 0 28px;
  border: 2px solid var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.back-button__icon {
  width: 22px;
  height: auto;
  display: block;
  transform: rotate(180deg);
  transition: filter 160ms ease, transform 160ms ease;
}

.back-button:hover,
.back-button:focus-visible {
  background: var(--red);
}

.back-button:hover .back-button__icon,
.back-button:focus-visible .back-button__icon {
  filter: brightness(0) invert(1);
  transform: rotate(180deg) translateX(5px);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35em;
  font-size: 1.3rem;
  font-weight: 300;
}

.legal-links a {
  text-decoration: none;
  transition: color 160ms ease;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--red);
}

.social-links {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--red);
  transform: translateY(-2px);
}

.social-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(13%) saturate(921%) hue-rotate(164deg) brightness(92%) contrast(87%);
  transition: filter 160ms ease;
}

.social-links a:hover .social-icon,
.social-links a:focus-visible .social-icon {
  filter: brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(6860%) hue-rotate(337deg) brightness(91%) contrast(116%);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.lightbox__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 19, .86);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  min-height: 100vh;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 60px rgba(0, 0, 0, .45);
  outline: none;
  transform: translateY(18px);
  transition: transform 220ms ease;
}

.lightbox.is-open .lightbox__dialog {
  transform: translateY(0);
}

.lightbox__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 20 / 7;
}

.lightbox__hero > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  padding: 4px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: #ff145a;
  transform: scale(1.06);
}

.lightbox__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.lightbox__close svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.project-detail {
  padding: 60px;
}

.project-intro {
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  row-gap: 30px;
}

.project-heading {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.project-category {
  margin: 0;
  font-size: 1rem;
}

.project-heading h2 {
  margin: 38px 0 0;
  font-size: clamp(3.3rem, 6.7vw, 4.25rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.project-description {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.18;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
}

.project-gallery__column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  background: #f4f4f4;
}

.project-end-line {
  width: 100%;
  height: 2px;
  margin-top: 60px;
  background: var(--red);
}

@media (max-width: 1200px) {
  .intro-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .info-panel {
    min-height: 0;
  }

  .info-panel--contact .email-button {
    margin-top: 20px;
  }

  .portfolio-card,
  .portfolio-card__inner {
    min-height: 0;
  }

  .portfolio-card__title {
    font-size: clamp(2.7rem, 7vw, 4.4rem);
  }

  .portfolio-card__body {
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  :root {
    --space: 30px;
  }

  .site-header {
    border-top-width: 9px;
  }

  .brand-row {
    min-height: 124px;
    padding-block: 26px;
    gap: 20px;
  }

  .brand-logo {
    width: min(68vw, 360px);
  }

  .version {
    font-size: .82rem;
  }

  .section-bar {
    min-height: 58px;
    font-size: 1.2rem;
  }

  .info-panel {
    padding: 24px 22px 27px;
    font-size: 1rem;
  }

  .info-panel--contact .email-button {
    width: 100%;
    min-width: 0;
  }

  .portfolio-card__body {
    min-height: 275px;
    padding: 24px 28px 28px;
  }

  .portfolio-card__description {
    font-size: 1rem;
  }

  .divider--portfolio {
    margin-bottom: 70px;
  }

  .legal-links {
    font-size: 1rem;
  }

  .social-links {
    gap: 12px;
  }

  .social-links a {
    width: 34px;
    height: 34px;
  }

  .project-detail {
    padding: 40px 20px 60px;
  }

  .project-intro {
    margin-bottom: 30px;
    grid-template-columns: 1fr;
  }

  .project-heading h2 {
    margin-top: 24px;
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .project-description {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    margin: 0;
    font-size: 1rem;
  }

  .project-gallery {
    gap: 30px;
  }

  .project-gallery__column {
    gap: 30px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    width: 66vw;
  }

  .version {
    font-size: .72rem;
    letter-spacing: .04em;
  }

  .portfolio-card__title {
    font-size: 2.45rem;
  }

  .portfolio-card__body {
    min-height: 260px;
  }

  .project-gallery {
    gap: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
