:root {
  --ink: #1f1f1f;
  --night: #1d1d2a;
  --paper: #ffffff;
  --orange: #cd5a24;
  --orange-70: rgba(205, 90, 36, 0.7);
  --night-90: rgba(29, 29, 42, 0.9);
  --muted: rgba(0, 0, 0, 0.4);
  --panel: rgba(242, 242, 242, 0.82);
  --border: #07030d;
  --shadow: 6px 7px 0 rgba(0, 0, 0, 0.24);
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 42px;
  padding: 0 5.3vw;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  width: clamp(180px, 17vw, 235px);
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(25px, 5vw, 78px);
}

.home-button {
  order: 2;
  margin-left: clamp(8px, 2vw, 28px);
  padding: 8px 20px;
  border-radius: 12px;
  color: #fff;
  background: var(--night);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  font-size: 1.25rem;
  font-weight: 800;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-trigger span:first-child {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-arrow {
  width: 18px;
  color: var(--orange);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateX(10px) rotate(0deg);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.dropdown-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  min-width: 185px;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(7, 3, 13, 0.15);
  border-radius: 16px;
  visibility: hidden;
  background: var(--panel);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  backdrop-filter: blur(10px);
}

.dropdown-panel a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  color: var(--orange);
  transform: translateX(4px);
}

.nav-item:hover .nav-trigger span:first-child,
.nav-item:focus-within .nav-trigger span:first-child,
.nav-item.is-open .nav-trigger span:first-child {
  color: var(--orange);
  transform: translateX(-7px);
}

.nav-item:hover .nav-arrow,
.nav-item:focus-within .nav-arrow,
.nav-item.is-open .nav-arrow {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.nav-item:hover .dropdown-panel,
.nav-item:focus-within .dropdown-panel,
.nav-item.is-open .dropdown-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  padding-bottom: 5%;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-left: 2px solid var(--border);
  isolation: isolate;
}

.decorative-type {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: 5.7vw;
  display: grid;
  color: rgba(0, 0, 0, 0.075);
  font-size: clamp(9rem, 21vw, 20rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.82;
  pointer-events: none;
  text-align: right;
}

.hero-content {
  width: min(810px, 68vw);
  margin-left: clamp(52px, 8.8vw, 126px);
  padding-top: 32px;
}

.hero h1 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.hero h1 span {
  color: var(--orange-70);
}

.intro-copy {
  margin-top: 38px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.7;
}

.intro-copy p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  margin-top: 48px;
}

.pressable {
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    filter 170ms ease;
}

.pressable:hover,
.pressable:focus-visible {
  transform: translate(-2px, -2px) scale(1.025);
  filter: saturate(1.08);
}

.pressable:active {
  transform: translate(4px, 4px) scale(0.99);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.22);
}

.project-button {
  position: relative;
  display: inline-flex;
  min-width: min(500px, 72vw);
  min-height: 72px;
  align-items: center;
  padding: 13px 52px 13px 36px;
  border-radius: 11px 0 0 11px;
  color: #fff;
  background: var(--night-90);
  box-shadow: var(--shadow);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.project-button-point {
  position: absolute;
  top: 0;
  right: -44px;
  width: 46px;
  height: 100%;
  background: var(--night-90);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.gallery-button {
  display: inline-flex;
  min-height: 74px;
  align-items: center;
  padding: 14px 32px;
  border-radius: 11px;
  color: #fff;
  background: var(--orange-70);
  box-shadow: var(--shadow);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 500;
}

.social-links {
  position: absolute;
  top: 20%;
  right: clamp(42px, 8vw, 116px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.social-links a {
  display: grid;
  width: clamp(42px, 4vw, 58px);
  aspect-ratio: 1;
  place-items: center;
  transition: transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: scale(1.14);
}

.social-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.placeholder-section {
  display: grid;
  min-height: 55vh;
  place-items: center;
  padding: 80px 24px;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-left: 2px solid var(--border);
  background: #f5f3f0;
  text-align: center;
}

.placeholder-section:nth-child(odd) {
  background: #fff;
}

.placeholder-section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 6rem);
}

.placeholder-section a {
  margin-top: 20px;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  margin-left: auto;
  padding: 9px;
  border: 2px solid var(--night);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--night);
}

@media (max-width: 1100px) {
  .site-header {
    padding-inline: 28px;
  }

  .main-nav {
    gap: 24px;
  }

  .hero-content {
    width: min(720px, 70vw);
    margin-left: 7vw;
  }

  .social-links {
    right: 5vw;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .home-button {
    order: -1;
    margin: 0 0 8px;
    text-align: center;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 6px;
  }

  .nav-arrow {
    opacity: 1;
  }

  .dropdown-panel {
    position: static;
    display: none;
    margin-bottom: 8px;
    padding: 16px;
    transform: none;
  }

  .nav-item:hover .dropdown-panel,
  .nav-item:focus-within .dropdown-panel {
    display: none;
  }

  .nav-item.is-open .dropdown-panel {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-bottom: 72px;
  }

  .decorative-type {
    top: 70px;
    right: 6vw;
    font-size: clamp(8rem, 31vw, 14rem);
  }

  .hero-content {
    width: auto;
    margin: 0;
    padding: 68px 28px 0;
  }

  .hero h1 {
    max-width: 690px;
  }

  .intro-copy {
    max-width: 610px;
  }

  .project-button {
    min-width: min(500px, calc(100vw - 104px));
  }

  .social-links {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin: 56px 28px 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand {
    width: 178px;
  }

  .hero-content {
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .intro-copy {
    font-size: 1rem;
  }

  .project-button {
    min-width: calc(100vw - 84px);
    padding-left: 24px;
    font-size: 1.65rem;
  }

  .gallery-button {
    min-height: 64px;
    padding-inline: 24px;
  }

  .social-links {
    margin-inline: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
