/* Base — start */
:root {
  --ground: #eef0f2;
  --panel: #ffffff;
  --text: #20252b;
  --muted: #68727c;
  --line: #d9dee3;
  --display: "Unbounded", sans-serif;
  --body: "Manrope", sans-serif;
  --gutter: clamp(14px, 2.1vw, 32px);
  --pad: clamp(24px, 3vw, 48px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #d5f1ff;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
p {
  color: var(--muted);
}
h3 {
  font: 400 clamp(18px, 1.65vw, 25px)/1.35 var(--display);
}
.site-shell {
  max-width: 1800px;
  margin: auto;
  padding: var(--gutter);
}
.panel {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}
.section,
.footer {
  margin-top: var(--gutter);
}
.section {
  padding: var(--pad);
}
.section-title {
  font: 700 clamp(28px, 3.9vw, 60px)/1.13 var(--display);
  letter-spacing: -0.055em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading .section-title {
  margin: 0;
}
.caption {
  font-size: 14px;
  max-width: 260px;
  text-align: right;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--text);
  border-radius: 5px;
  background: var(--text);
  color: #142123;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #d9e7ed;
  border-color: #d9e7ed;
  transform: translateY(-2px);
}
.button--outline {
  background: transparent;
  color: var(--text);
}
.button--outline:hover {
  background: var(--text);
  color: var(--panel);
}
.button--small {
  min-height: 38px;
  padding: 8px 22px;
  border-radius: 24px;
}
.brand {
  font-size: 13px;
  letter-spacing: 0.09em;
  font-weight: 800;
  white-space: nowrap;
}
.brand span {
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-left: 10px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 99;
  background: white;
  color: #172425;
  padding: 12px;
}
.skip-link:focus {
  top: 16px;
}
.circle-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #7b939e;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  transition: background 0.2s;
}
.circle-button:hover:not(:disabled) {
  background: #354d57;
}
.text-link {
  background: none;
  border: 0;
  border-bottom: 1px solid #82969c;
  padding: 4px 0;
  font-size: 14px;
  white-space: nowrap;
}
.text-link:hover {
  color: #c8e7f6;
}
/* Base — end */
/* Hero and header — start */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  height: calc(100svh - var(--gutter) * 2);
  max-height: 1200px;
  display: flex;
  flex-direction: column;
  padding: 26px var(--pad) 38px;
  background: #101b20;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(3, 12, 16, 0.42),
    transparent 36%,
    transparent 60%,
    rgba(3, 12, 16, 0.91)
  );
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
}
.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.navigation > a:not(.button):hover {
  color: #b7d3e0;
}
.menu-toggle {
  display: none;
}
.hero h1 {
  font: 800 clamp(42px, 8.5vw, 151px)/1.03 var(--display);
  letter-spacing: -0.077em;
  white-space: nowrap;
  margin-top: 32px;
  align-self: center;
}
.hero__bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.hero__bottom h2 {
  font: 400 clamp(21px, 2.1vw, 34px)/1.23 var(--display);
  letter-spacing: -0.04em;
}
.hero__bottom p {
  margin-top: 12px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.hero__actions .button {
  padding-inline: 19px;
}
/* Hero and header — end */
/* Services — start */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.services__grid > article + article {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.services__grid h3 {
  margin-bottom: 12px;
}
.services__grid > article > p {
  margin-bottom: 20px;
}
.service {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}
.service summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
  transition:
    padding 0.2s,
    background 0.2s;
}
.service summary::-webkit-details-marker {
  display: none;
}
.service summary:hover {
  padding-inline: 10px;
  background: #203337;
}
.service summary span {
  transition: transform 0.25s;
}
.service[open] summary span {
  transform: rotate(180deg);
}
.service__body {
  padding: 2px 0 22px;
  font-size: 15px;
}
.service__body a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid var(--muted);
}
.services__image {
  margin-top: 26px;
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
}
.services__image--short {
  height: 188px;
}
/* Services — end */
/* Projects slider — start */
.slider__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar {
  display: none;
}
.project-card {
  flex: 0 0 calc((100% - 28px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}
.project-image {
  padding: 0;
  width: 100%;
  display: block;
  background: #25363b;
  border: 1px solid #647c86;
  border-radius: 4px;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s;
}
.project-image:hover img {
  transform: scale(1.025);
}
.project-card__caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 18px;
}
.project-card__caption h3 {
  font: 600 20px/1.4 var(--body);
}
.project-card__caption p {
  font-size: 14px;
  margin-top: 5px;
}
.slider__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.slider__status {
  color: var(--muted);
  font-size: 14px;
}
.slider__arrows {
  display: flex;
  gap: 12px;
}
.detail-dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  max-width: min(760px, calc(100% - 32px));
  width: 760px;
  max-height: 88svh;
  overscroll-behavior: contain;
}
.detail-dialog::backdrop {
  background: rgba(0, 9, 13, 0.8);
  backdrop-filter: blur(7px);
}
.dialog-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: 20px;
  background: var(--panel);
}
.detail-image {
  width: 100%;
  max-height: 40vh;
  object-fit: cover;
  object-position: top;
  margin-bottom: 24px;
}
.detail-dialog h2 {
  font: 500 26px/1.3 var(--display);
  margin-bottom: 16px;
}
.detail-description {
  margin-bottom: 24px;
}
/* Projects slider — end */
/* About — start */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
}
.about p + p {
  margin-top: 18px;
}
.about__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 62%;
  margin-top: 24px;
  border-radius: 3px;
}
.about__skills {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.about__skills ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.about__skills li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
/* About — end */
/* Process — start */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.process__grid article {
  padding: 0 28px;
}
.process__grid article:first-child {
  padding-left: 0;
}
.process__grid article + article {
  border-left: 1px solid var(--line);
}
.process__grid h3 {
  font-family: var(--body);
  font-weight: 600;
  margin-bottom: 12px;
}
/* Process — end */
/* Contact — start */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact .section-title {
  font-size: clamp(27px, 3.6vw, 56px);
}
.contact > div > p {
  max-width: 430px;
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  background: #142123;
  border: 1px solid #657d87;
  border-radius: 4px;
  padding: 12px 15px;
  font-size: 16px;
  line-height: 1.4;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a9b2;
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}
.form-status {
  font-size: 14px;
  min-height: 22px;
}
.form-status[data-state="error"] {
  color: #ffbeb8;
}
.form-status[data-state="success"] {
  color: #c4ebdc;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Contact — end */
/* Footer — start */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  gap: 24px;
}
.footer nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
/* Footer — end */
/* Responsive and motion — start */
@media (min-width: 1800px) {
  .hero h1 {
    font-size: 151px;
  }
}
@media (max-width: 1100px) {
  .hero__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .hero {
    min-height: 680px;
  }
  .hero__bottom h2 {
    font-size: 26px;
  }
  .navigation {
    gap: 18px;
  }
  .project-card__caption {
    flex-direction: column;
    gap: 10px;
  }
  .services__image {
    height: 300px;
  }
  .services__image--short {
    height: 138px;
  }
}
@media (max-width: 760px) {
  .hero {
    min-height: 640px;
    max-height: 960px;
    padding: 20px;
    overflow: visible;
  }
  .hero__image,
  .hero:after {
    border-radius: 12px;
  }
  .hero__image {
    object-position: center;
  }
  .hero h1 {
    white-space: normal;
    font-size: clamp(44px, 10.5vw, 80px);
    line-height: 1.03;
    text-align: left;
    align-self: flex-start;
    max-width: 100%;
    overflow-wrap: normal;
    margin-top: 30px;
  }
  .header {
    min-height: 40px;
  }
  .brand {
    font-size: 11px;
  }
  .brand span {
    letter-spacing: 0.12em;
    margin-left: 6px;
  }
  .menu-toggle {
    display: block;
    background: transparent;
    border: 1px solid #93aab4;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 14px;
  }
  .navigation {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    z-index: 5;
    padding: 24px;
    background: #152427;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px #06101580;
  }
  .navigation.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }
  .navigation a {
    padding: 8px;
  }
  .hero__bottom h2 {
    font-size: 20px;
  }
  .hero__bottom p {
    font-size: 14px;
    max-width: 280px;
  }
  .hero__actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .hero__actions .button {
    font-size: 12px;
    padding: 12px;
    gap: 10px;
    min-height: 46px;
  }
  .section-title {
    font-size: 30px;
    margin-bottom: 24px;
  }
  .services__grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services__grid > article + article,
  .about__skills {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }
  .services__image,
  .services__image--short {
    height: 240px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .caption {
    text-align: left;
  }
  .project-card {
    flex-basis: 100%;
  }
  .project-image img {
    aspect-ratio: 4/3;
  }
  .process__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process__grid article,
  .process__grid article:first-child {
    padding: 0;
  }
  .process__grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .contact .section-title {
    font-size: 29px;
  }
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer nav {
    gap: 22px;
  }
  .detail-dialog {
    padding: 22px;
  }
  .detail-dialog h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Responsive and motion — end */

/* Light design — start */
.panel {
  border: 1px solid #e0e4e8;
  border-radius: 16px;
}
.button {
  background: #20252b;
  border-color: #20252b;
  color: #fff;
}
.button:hover {
  background: #3c4955;
  border-color: #3c4955;
  color: #fff;
}
.button--outline {
  background: transparent;
  border-color: #b5bec6;
  color: #20252b;
}
.button--outline:hover {
  background: #e8edf1;
  border-color: #a5b1ba;
  color: #20252b;
}
.hero {
  background: linear-gradient(135deg, #fff 25%, #f0f3f6);
  padding-bottom: 30px;
  min-height: 760px;
}
.hero:after {
  display: none;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 142px);
  font-weight: 700;
  letter-spacing: -0.075em;
  margin-top: 22px;
}
.hero__gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
  min-height: 0;
  padding: 25px 5% 32px;
  perspective: 1600px;
}
.hero__gallery img {
  width: 46%;
  height: min(32vh, 330px);
  object-fit: cover;
  object-position: top;
  border: 1px solid #d1d8dd;
  border-radius: 9px;
  box-shadow: 0 18px 30px #22374718;
}
.hero__gallery img:first-child {
  transform: rotate(-4deg) rotateY(8deg) translateY(9px);
}
.hero__gallery img:last-child {
  transform: rotate(4deg) rotateY(-8deg) translateY(-9px);
}
.hero__bottom {
  margin-top: 0;
}
.hero__bottom h2 {
  font-size: clamp(20px, 1.85vw, 29px);
}
.hero__bottom p {
  font-size: 15px;
}
.navigation > a:not(.button):hover,
.text-link:hover {
  color: #2e6390;
}
.services__image,
.services__image--short {
  border: 1px solid #d9dee3;
}
.service summary:hover {
  background: #f0f3f5;
}
.project-image {
  border-color: #d2d9df;
  background: #f2f4f6;
}
.circle-button {
  border-color: #b7c2ca;
}
.circle-button:hover:not(:disabled) {
  background: #e7edf2;
}
.detail-dialog::backdrop {
  background: #1d2d3d70;
}
.contact {
  background: #e2e8ed;
  border-color: #d6dfe5;
}
.contact-form input,
.contact-form textarea {
  background: #fff;
  border-color: #bac6ce;
  color: #20252b;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #78858f;
}
.form-status[data-state="error"] {
  color: #a82727;
}
.form-status[data-state="success"] {
  color: #176642;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline-color: #386f9a;
}
@media (min-width: 1800px) {
  .hero h1 {
    font-size: 142px;
  }
}
@media (max-width: 1100px) {
  .hero__gallery {
    padding: 22px 2%;
  }
  .hero__gallery img {
    height: 240px;
  }
  .hero__bottom {
    gap: 16px;
  }
  .hero__bottom h2 {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  .hero {
    min-height: 740px;
    padding: 20px;
    height: auto;
    min-height: calc(100svh - var(--gutter) * 2);
  }
  .hero h1 {
    font-size: clamp(36px, 9vw, 64px);
    white-space: normal;
    max-width: 100%;
    margin-top: 34px;
  }
  .hero__gallery {
    padding: 35px 0;
    gap: 12px;
    min-height: 235px;
    flex: 0 0 auto;
  }
  .hero__gallery img {
    width: 47%;
    height: 185px;
    box-shadow: 0 10px 20px #22374718;
  }
  .hero__bottom {
    margin-top: auto;
    padding-top: 12px;
  }
  .hero__bottom h2 {
    font-size: 18px;
  }
  .hero__bottom p {
    font-size: 14px;
  }
  .navigation {
    background: #fff;
    box-shadow: 0 14px 36px #31495d20;
  }
  .hero__actions {
    flex-wrap: wrap;
  }
  .hero__actions .button {
    font-size: 12px;
  }
  .contact .section-title {
    font-size: clamp(24px, 6.5vw, 32px);
  }
}
/* Light design — end */

/* Motion and interaction — start */
@media (prefers-reduced-motion: no-preference) {
  .hero__gallery img {
    transition: translate 450ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .button > span {
    transition: translate 220ms ease;
  }
  .service__body {
    animation: detail-enter 260ms ease-out;
  }
  .detail-dialog[open] {
    animation: dialog-enter 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .detail-dialog[open]::backdrop {
    animation: backdrop-enter 180ms ease-out;
  }
  .navigation.is-open {
    animation: detail-enter 200ms ease-out;
  }
  @media (hover: hover) and (pointer: fine) {
    .hero__gallery img:hover {
      translate: 0 -7px;
    }
    .button:hover > span {
      translate: 2px -2px;
    }
  }
  @keyframes detail-enter {
    from {
      opacity: 0;
      translate: 0 6px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
  @keyframes dialog-enter {
    from {
      opacity: 0;
      translate: 0 12px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
  @keyframes backdrop-enter {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
/* Motion and interaction — end */
