:root {
  --bg: #070708;
  --bg-2: #111013;
  --panel: #17161b;
  --text: #f3ebdf;
  --muted: #c6bbab;
  --beige: #dbc4a4;
  --beige-2: #f0ddc3;
  --accent: #b49773;
  --line: rgba(232, 208, 176, 0.18);
  --line-mid: rgba(191, 162, 126, 0.35);
  --radius: 20px;
  --brush-mask-vertical: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 560'%3E%3Cpath fill='%23000' d='M35 8c-10 71-14 166-11 258 2 87 11 185 18 286h34c3-89-1-173-7-255-8-102-9-196 2-289z'/%3E%3Cpath fill='%23000' d='M77 0c7 74 12 162 13 245 1 96-7 197-5 314h26c10-97 14-194 13-295-1-88-8-178-18-264z'/%3E%3Cpath fill='%23000' d='M120 16c4 73 2 152-1 233-3 98-10 192-7 307h14c9-94 15-188 16-282 1-87-3-170-8-258z'/%3E%3C/svg%3E");
  --brush-mask-swipe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 210'%3E%3Cpath fill='%23000' d='M12 75c108-37 230-49 352-45 136 5 260 24 384 49l-6 66c-114 32-237 50-376 52-135 2-251-13-360-42z'/%3E%3Cpath fill='%23000' d='M24 63c-10 18-15 41-15 61 0 23 7 41 17 56l10-4c-7-17-9-33-9-50 0-19 4-37 10-56z'/%3E%3Cpath fill='%23000' d='M736 71c11 18 15 40 14 61-1 24-7 44-18 58l-11-6c9-16 12-34 12-52 0-19-3-35-10-57z'/%3E%3C/svg%3E");
  --brush-mask-scratch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 220'%3E%3Cpath fill='%23000' d='M20 132c57-58 127-100 205-114l26 4c-89 38-157 88-214 162z'/%3E%3Cpath fill='%23000' d='M58 171c73-66 154-109 256-129l10 11c-103 21-196 73-260 137z'/%3E%3Cpath fill='%23000' d='M8 111c40-41 92-76 167-98l13 6C114 50 64 86 19 126z'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(219, 196, 164, 0.14), transparent 40%),
    radial-gradient(circle at 82% 18%, rgba(180, 151, 115, 0.2), transparent 36%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.12) 0 0.5px, transparent 0.8px);
  background-size: 6px 6px, 8px 8px;
}

.glow {
  position: fixed;
  width: 40vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

.glow-left {
  left: -18vmax;
  top: -10vmax;
  background: radial-gradient(circle, rgba(219, 196, 164, 0.2), transparent 70%);
}

.glow-right {
  right: -14vmax;
  bottom: -18vmax;
  background: radial-gradient(circle, rgba(70, 57, 45, 0.34), transparent 65%);
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--beige), var(--beige-2));
  color: #2a1d13;
  font-family: 'Rock Salt', cursive;
  font-size: 0.95rem;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.nav {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-weight: 600;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(219, 196, 164, 0.12);
  transform: translateY(-1px);
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-metal {
  color: #1b140f;
  background: linear-gradient(145deg, var(--beige-2), #b9a082);
}

.btn-gold {
  color: #25170d;
  background: linear-gradient(145deg, var(--beige), #f0ddc3);
}

.btn-outline {
  color: var(--text);
  background: rgba(16, 18, 24, 0.5);
}

.panel,
.panel-soft {
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.panel > *,
.panel-soft > * {
  position: relative;
  z-index: 1;
}

.panel::before,
.panel-soft::before {
  content: '';
  position: absolute;
  width: 58px;
  top: 12px;
  bottom: 16px;
  left: 8px;
  pointer-events: none;
  background: rgba(226, 204, 170, 0.34);
  -webkit-mask: var(--brush-mask-vertical) center / 100% 100% no-repeat;
  mask: var(--brush-mask-vertical) center / 100% 100% no-repeat;
  opacity: 0.68;
  z-index: 0;
}

.panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(160deg, rgba(25, 24, 28, 0.95), rgba(14, 13, 16, 0.95));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.panel-soft {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.18));
}

.panel::after,
.panel-soft::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 8%;
  bottom: 10px;
  height: 32px;
  pointer-events: none;
  background: rgba(214, 190, 154, 0.28);
  -webkit-mask: var(--brush-mask-swipe) center / 100% 100% no-repeat;
  mask: var(--brush-mask-swipe) center / 100% 100% no-repeat;
  opacity: 0.64;
  transform: rotate(-1.5deg);
  z-index: 0;
}

.hero {
  margin-top: 1.2rem;
  padding: clamp(1.1rem, 2.8vw, 2rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.kicker {
  margin: 0;
  color: var(--beige);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
}

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

.hero-copy p {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.hero-character {
  padding: 1rem;
}

.character-stage {
  min-height: 380px;
  border-radius: 14px;
  position: relative;
  background:
    radial-gradient(circle at 50% 15%, rgba(219, 196, 164, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(15, 14, 18, 0.35), rgba(7, 7, 8, 0.9));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.character-stage::before {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  top: 14%;
  height: 44px;
  pointer-events: none;
  background: rgba(226, 204, 170, 0.26);
  -webkit-mask: var(--brush-mask-swipe) center / 100% 100% no-repeat;
  mask: var(--brush-mask-swipe) center / 100% 100% no-repeat;
  opacity: 0.58;
  transform: rotate(-7deg);
}

.character-label {
  font-family: 'Rock Salt', cursive;
  color: var(--beige-2);
  margin-bottom: 0.5rem;
}

.character-note {
  color: var(--muted);
  margin: 0;
}

.style-grid,
.links-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.card a {
  color: var(--beige-2);
  text-decoration: none;
  font-weight: 700;
}

.portfolio {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.portfolio-head,
.switcher-wrap {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.portfolio-head p:last-child {
  color: var(--muted);
  max-width: 72ch;
}

.switcher {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(14, 17, 24, 0.8);
  margin-bottom: 1rem;
}

.switch {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.switch.active {
  background: linear-gradient(145deg, var(--beige), var(--beige-2));
  color: #2a170b;
}

.works {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.works.active {
  display: grid;
}

.work {
  overflow: hidden;
  border-radius: 16px;
}

.thumb {
  min-height: 140px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  position: relative;
}

.thumb::after {
  content: '';
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 8px;
  height: 26px;
  background: rgba(244, 230, 208, 0.46);
  -webkit-mask: var(--brush-mask-scratch) center / 100% 100% no-repeat;
  mask: var(--brush-mask-scratch) center / 100% 100% no-repeat;
  transform: rotate(-4deg);
  opacity: 0.85;
}

.thumb-a {
  background: linear-gradient(145deg, #1c1a18, #735e48);
}
.thumb-b {
  background: linear-gradient(145deg, #2c2925, #a88d69);
}
.thumb-c {
  background: linear-gradient(145deg, #181716, #5f513d);
}
.thumb-d {
  background: linear-gradient(145deg, #111114, #60584b);
}
.thumb-e {
  background: linear-gradient(145deg, #2a2520, #ab906d);
}
.thumb-f {
  background: linear-gradient(145deg, #141418, #746754);
}

.work h3,
.work p {
  padding-inline: 1rem;
}

.work h3 {
  margin-top: 0.8rem;
}

.work p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.action-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer {
  margin-top: 1.8rem;
  padding: 0.6rem 0 1.4rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 940px) {
  .topbar {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .style-grid,
  .links-grid,
  .works {
    grid-template-columns: 1fr;
  }

  .character-stage {
    min-height: 260px;
  }
}
