:root {
  --sky-1: #7fd8ff;
  --sky-2: #2ea8ff;
  --sky-3: #1273e6;
  --yellow: #ffd21f;
  --yellow-2: #ffb800;
  --brown: #5a2d12;
  --white: #ffffff;
  --ink: #0b3a74;
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%) fixed;
  background-color: var(--sky-2);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------- 3D chunky text (like the HIM logo) ---------- */
.title,
.h2,
.nav-logo,
.footer-logo {
  font-family: "Lilita One", "Nunito", sans-serif;
  color: var(--yellow);
  letter-spacing: 0.02em;
  -webkit-text-stroke: 3px var(--brown);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 var(--brown),
    0 4px 0 var(--brown),
    0 6px 0 var(--brown),
    0 8px 0 #3d1d0b,
    0 14px 20px rgba(0, 40, 100, 0.35);
}

/* ---------- panels ---------- */
.panel {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 0 rgba(8, 60, 140, 0.45),
    0 20px 40px rgba(0, 40, 110, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(30, 140, 240, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}
.nav-logo {
  font-size: 34px;
  text-decoration: none;
  -webkit-text-stroke: 2px var(--brown);
  text-shadow: 0 2px 0 var(--brown), 0 4px 0 var(--brown);
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.2); }
.nav-x {
  background: var(--white);
  color: var(--ink) !important;
  font-size: 18px !important;
  box-shadow: 0 4px 0 rgba(8, 60, 140, 0.5);
}
.nav-x:hover { background: #eaf6ff !important; }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 8vw, 100px);
}
.hero-art { transform: rotate(-2deg); animation: bob 5s ease-in-out infinite; }
.hero-art img { width: 100%; }

@keyframes bob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}

.title {
  font-size: clamp(96px, 16vw, 200px);
  line-height: 0.95;
  -webkit-text-stroke: 5px var(--brown);
  text-shadow:
    0 3px 0 var(--brown),
    0 6px 0 var(--brown),
    0 9px 0 var(--brown),
    0 12px 0 #3d1d0b,
    0 22px 30px rgba(0, 40, 100, 0.4);
}
.tagline {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  margin-top: 18px;
  text-shadow: 0 3px 0 rgba(8, 60, 140, 0.45);
}
.tagline b { color: var(--yellow); }
.sub {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 800;
  margin-top: 10px;
  opacity: 0.95;
  max-width: 440px;
  text-shadow: 0 2px 0 rgba(8, 60, 140, 0.35);
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(8, 60, 140, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.ca-label {
  flex: none;
  background: var(--yellow);
  color: var(--brown);
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 14px;
}
.ca-value {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
}

.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

.btn {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 3px solid var(--brown);
  border-radius: 20px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
  min-width: 190px;
  text-align: center;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--brown); }

.btn-yellow {
  background: linear-gradient(180deg, #ffe45c 0%, var(--yellow) 45%, var(--yellow-2) 100%);
  color: var(--brown);
  box-shadow: 0 6px 0 var(--brown), 0 14px 24px rgba(0, 40, 100, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.6);
}
.btn-yellow.copied { background: linear-gradient(180deg, #8ff08a, #3fcf4f); }

.btn-white {
  background: linear-gradient(180deg, #ffffff 0%, #e4f3ff 100%);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--brown), 0 14px 24px rgba(0, 40, 100, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  scroll-margin-top: 70px;
}
.about-art { transform: rotate(2deg); }
.about-art img { width: 100%; }
.about-text {
  padding: clamp(28px, 4vw, 48px);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 0 rgba(8, 60, 140, 0.4);
}
.about-text p + p { margin-top: 18px; }
.h2 { font-size: clamp(56px, 8vw, 96px); line-height: 1; margin-bottom: 22px; }
.h2.center { text-align: center; font-size: clamp(38px, 6vw, 72px); }
.quote {
  display: inline-block;
  margin-top: 6px;
  background: var(--white);
  color: var(--ink);
  text-shadow: none;
  padding: 4px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(8, 60, 140, 0.45);
  transform: rotate(-1.5deg);
}
.big { font-size: 1.4em; }
.big b { color: var(--yellow); -webkit-text-stroke: 1.5px var(--brown); paint-order: stroke fill; }

/* ---------- gallery ---------- */
.gallery-wrap { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); scroll-margin-top: 60px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 36px;
}
.shot {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.shot:nth-child(odd) { transform: rotate(-1deg); }
.shot:nth-child(even) { transform: rotate(1deg); }
.shot:hover { transform: rotate(0) translateY(-6px); }
.shot.wide { grid-column: 1 / -1; }
.shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.15);
}
.shot figcaption {
  padding: 12px 16px 14px;
  font-weight: 900;
  font-size: 17px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(8, 60, 140, 0.4);
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 40px 16px 56px;
}
.footer-logo { font-size: clamp(64px, 12vw, 120px); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .sub { margin-left: auto; margin-right: auto; }
  .buttons { justify-content: center; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .about-art { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .nav-links a:not(.nav-x) { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .btn { flex: 1 1 100%; min-width: 0; }
  .title { -webkit-text-stroke: 4px var(--brown); }
  .ca-box { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
}
