:root {
  --bg-main: #171717;
  --bg-surface: #242424;
  --bg-elevated: #1e1e1e;
  --bg-soft: #2c2c2c;
  --text-main: #f5f2eb;
  --text-muted: rgba(245, 242, 235, 0.76);
  --text-dark: #181818;
  --line-soft: rgba(255, 255, 255, 0.14);
  --accent: #d3a13a;
  --accent-soft: rgba(211, 161, 58, 0.16);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-card: 28px;
  --radius-button: 999px;
  --content-width: 1680px;
  --section-space: 82px;
  --nav-height: 92px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

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

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

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

body {
  margin: 0;
  font-family: "GothicA1", sans-serif;
  background:
    radial-gradient(circle at top, rgba(211, 161, 58, 0.08), transparent 28%),
    var(--bg-main);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

main {
  min-height: 100vh;
}

.hero,
.about,
.projects,
.contact {
  padding: var(--section-space) 14px;
}

.hero {
  min-height: 100vh;
  padding-top: 126px;
  padding-bottom: 18px;
  background: linear-gradient(90deg, #151515 0 48%, #dfddd7 48% 100%);
}

.hero__frame,
.about__grid,
.projects__header,
.gallery,
.contact__wrapper {
  width: min(calc(100% - 24px), var(--content-width));
  margin: 0 auto;
}

.hero__frame {
  min-height: calc(100vh - 144px);
}

.hero__nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), var(--content-width));
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(34, 34, 34, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  z-index: 40;
}

.hero__brand {
  flex: 0 0 auto;
}

.hero__brand img {
  width: clamp(72px, 6vw, 98px);
  height: auto;
}

.hero__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.hero__menu-toggle img {
  width: 42px;
  height: 42px;
}

.hero__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.hero__menu a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.hero__menu a:hover,
.hero__menu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
  min-height: calc(100vh - 144px);
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 58px 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), #151515;
}

.hero__eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__copy h1,
.about__card h2,
.projects h2,
.contact h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero__copy h1 {
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__lead {
  max-width: 520px;
  margin: 28px 0 30px;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero__chips span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__button,
.about__button,
.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: linear-gradient(180deg, #252525, #161616);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.hero__button:hover,
.about__button:hover,
.contact__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.hero__button--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.hero__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    transparent 35%
  );
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__quick-links {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(44, 44, 44, 0.92);
  backdrop-filter: blur(10px);
}

.hero__quick-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--text-main);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hero__quick-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero__quick-links svg {
  width: 28px;
  height: 28px;
}

.about {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--bg-surface);
}

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

.about__card,
.contact__card {
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow: var(--shadow-soft);
}

.about__card h2,
.projects h2,
.contact h2 {
  margin-bottom: 26px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
}

.about__card h3 {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.12;
}

.about__card p,
.projects__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.65vw, 1.35rem);
  line-height: 1.7;
}

.about__list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about__list li {
  position: relative;
  margin-top: 14px;
  padding-left: 24px;
  color: var(--text-muted);
}

.about__list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.about__button {
  margin-top: 32px;
}

.projects {
  background: var(--bg-main);
}

.projects__header {
  margin-bottom: 26px;
}

.projects__intro {
  max-width: 760px;
  margin-top: 18px;
}

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

.gallery__item {
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 0.74;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.contact {
  padding-bottom: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--bg-surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.contact__form {
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow: var(--shadow-soft);
}

.contact__field {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.contact__field span {
  font-size: 1rem;
  font-weight: 600;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 14px 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--text-main);
  outline: none;
  resize: vertical;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-bottom-color: var(--accent);
}

.contact__card {
  gap: 28px;
  background:
    radial-gradient(circle at top, rgba(211, 161, 58, 0.08), transparent 26%),
    var(--bg-elevated);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--text-main);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
}

.contact__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact__icon svg {
  width: 24px;
  height: 24px;
}

.footer {
  margin-top: 56px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: #141414;
  overflow: hidden;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line-soft);
}

.footer__logo {
  width: clamp(78px, 7vw, 104px);
  height: auto;
}

.footer__name,
.footer__copy {
  font-weight: 600;
}

.footer__name {
  font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.footer__copy {
  padding: 22px 32px 26px;
  color: var(--text-muted);
  font-size: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.modal__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1020px);
  max-height: 88vh;
  padding: 18px;
}

.modal__image {
  width: 100%;
  max-height: calc(88vh - 36px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
}

.modal__close {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.92);
  color: var(--text-main);
  font-size: 1.8rem;
  line-height: 1;
}

@media (min-width: 1400px) {
  .hero,
  .about,
  .projects,
  .contact {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero__content {
    grid-template-columns: minmax(360px, 0.86fr) minmax(620px, 1.14fr);
  }
}

@media (max-width: 1100px) {
  .hero {
    background: #dfddd7;
  }

  .hero__content,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    position: relative;
    min-height: auto;
  }

  .hero__copy {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    width: min(44vw, 360px);
    padding: 34px 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    background: rgba(68, 68, 68, 0.82);
    backdrop-filter: blur(8px);
  }

  .hero__media {
    min-height: 860px;
    border-radius: 36px;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 98px;
  }

  .hero,
  .about,
  .projects,
  .contact {
    padding: 68px 18px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 18px;
  }

  .hero__nav {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    min-height: auto;
    padding: 18px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero__menu-toggle {
    display: inline-flex;
  }

  .hero__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    display: grid;
    gap: 8px;
    min-width: 220px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(33, 33, 33, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      padding 0.22s ease;
  }

  .hero__nav.is-open .hero__menu {
    padding: 14px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .hero__menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .hero__content {
    min-height: calc(100vh - 114px);
    border-radius: 24px;
    box-shadow: none;
  }

  .hero__copy {
    top: 0;
    left: 0;
    width: min(76vw, 250px);
    max-width: calc(100% - 12px);
    padding: 22px 16px 18px;
    border-radius: 0 0 24px 0;
  }

  .hero__copy h1 {
    font-size: clamp(1.65rem, 6.2vw, 2.55rem);
    line-height: 1.02;
  }

  .hero__lead {
    max-width: 185px;
    margin: 14px 0 16px;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .hero__chips {
    display: none;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__button,
  .hero__button--ghost {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    font-size: 0.82rem;
  }

  .hero__button--ghost {
    display: none;
  }

  .hero__media {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero__eyebrow {
    margin-bottom: 10px;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .about__card,
  .contact__form,
  .contact__card {
    padding: 28px 22px;
  }

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

  .contact__item {
    align-items: flex-start;
  }

  .footer__brand,
  .footer__copy {
    padding-left: 22px;
    padding-right: 22px;
  }

  .footer__brand {
    flex-wrap: wrap;
  }

  .hero__quick-links {
    right: 10px;
    bottom: 12px;
    padding: 8px;
  }
}

@media (max-width: 420px) {
  .hero__copy {
    width: min(74vw, 226px);
    padding: 18px 14px 16px;
  }

  .hero__copy h1 {
    font-size: clamp(1.42rem, 5.8vw, 2rem);
  }

  .hero__lead {
    max-width: 160px;
    font-size: 0.74rem;
  }

  .hero__button {
    max-width: 150px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
