:root {
  --bg: #101114;
  --panel: #18191e;
  --panel-2: #202228;
  --text: #f0eee8;
  --muted: #9b9b98;
  --line: rgba(255,255,255,.12);
  --accent: #d7a84b;
  --accent-2: #557b68;
  --shadow: 0 28px 90px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 30%),
    linear-gradient(135deg, var(--bg), #090a0d 62%);
  color: var(--text);
  font-family: Inter, sans-serif;
}

.grain-overlay {
  position: fixed;
  inset: -80px;
  z-index: 999;
  pointer-events: none;
  opacity: .14;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 64%, rgba(255,255,255,.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 82%, rgba(0,0,0,.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 62% 18%, rgba(0,0,0,.75) 0 1px, transparent 1.5px);
  background-size: 92px 92px, 76px 76px, 118px 118px, 64px 64px;
  animation: grain-shift .55s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-18px, 12px, 0); }
  40% { transform: translate3d(14px, -20px, 0); }
  60% { transform: translate3d(-8px, -12px, 0); }
  80% { transform: translate3d(22px, 8px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

body[data-category="pr"] { --accent: #d85f4a; --accent-2: #394d61; --bg: #141111; }
body[data-category="digital"] { --accent: #5ca7a0; --accent-2: #38445c; --bg: #0d1214; }
body[data-category="btl"] { --accent: #e0b65a; --accent-2: #6b5844; --bg: #15120e; }
body[data-category="prod"] { --accent: #b774c8; --accent-2: #453d5c; --bg: #121018; }
body[data-category="creative"] { --accent: #d7a84b; --accent-2: #557b68; --bg: #101114; }
body[data-category="smm"] { --accent: #87b965; --accent-2: #46594a; --bg: #101410; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(10,10,12,.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 22px; font-size: 13px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.hover-duplicate {
  position: relative;
  overflow: hidden;
}

.hover-duplicate .hover-line {
  display: block;
  transition: transform .55s cubic-bezier(.16, 1, .35, 1);
}

.hover-duplicate .hover-line.clone {
  position: absolute;
  inset: 0;
  transform: translateY(115%);
}

.hover-duplicate:hover .hover-line.main,
.hover-duplicate:focus-visible .hover-line.main {
  transform: translateY(-115%);
}

.hover-duplicate:hover .hover-line.clone,
.hover-duplicate:focus-visible .hover-line.clone {
  transform: translateY(0);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  align-items: center;
  gap: 52px;
}

.eyebrow, .section-head span, .contact-copy span, .tool-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }
h1 {
  max-width: 620px;
  margin-top: 16px;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(42px, 6vw, 84px);
  line-height: .9;
  letter-spacing: 0;
}

.hero-copy p, .section-head h2, .contact-copy p {
  color: var(--muted);
}

.hero-copy p {
  max-width: 620px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
}
.btn.primary { background: var(--accent); color: #101010; border-color: var(--accent); }
.btn.ghost { background: rgba(255,255,255,.04); }

.hero-logo-stage {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 16 / 6;
  min-height: 170px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 30%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    color-mix(in srgb, var(--panel) 76%, #050608);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: crosshair;
}

.hero-logo-stage::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  pointer-events: none;
}

.hero-logo-stage:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
}

.hero-claim {
  max-width: 580px;
}

.showreel {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 58%, #111), #09090c),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.04) 18px 19px);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.showreel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 34%, transparent), transparent 28%),
    linear-gradient(160deg, rgba(255,255,255,.08), transparent 42%);
  opacity: .72;
  transition: opacity .25s;
}

.hero-distortion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-distortion-source {
  position: absolute;
  inset: 14%;
  z-index: 1;
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: invert(1);
  opacity: .18;
  pointer-events: none;
  transition: opacity .25s, transform .45s cubic-bezier(.16, 1, .35, 1);
}

.hero-logo-stage:hover .hero-distortion-source {
  opacity: .32;
  transform: scale(1.025);
}

.showreel-frame {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 24px;
}
.showreel-frame span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.showreel-frame strong { margin-top: 8px; font-size: 28px; line-height: 1; }

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.section-head h2 {
  max-width: 760px;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}
.row-head {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.category-shell, .tool-layout, .contacts-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 18px;
}

.category-slider, .tool-tabs, .case-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-button, .filter-button, .tool-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}
.category-button.active, .filter-button.active, .tool-tab.active {
  color: #101010;
  background: var(--accent);
  border-color: var(--accent);
}

.category-card, .tool-panel, .tool-result, .contact-form, .case-detail {
  background: color-mix(in srgb, var(--panel) 88%, var(--accent-2));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 320px;
  padding: 28px;
}
.category-index { color: var(--accent); font-weight: 800; }
.category-card h3 { margin-top: 56px; font-size: 46px; line-height: 1; }
.category-card p { margin-top: 14px; color: var(--muted); line-height: 1.55; }
.capability-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.capability-list span, .tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 12px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.case-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 32%, var(--panel)), #121318);
  cursor: pointer;
}
.case-card h3 { font-size: 24px; line-height: 1; }
.case-card p { color: var(--muted); line-height: 1.45; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.case-detail {
  margin-top: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  position: relative;
}
.case-detail[hidden] { display: none; }
.close-detail {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.case-detail-copy h3 { margin-top: 16px; font-size: 34px; }
.case-detail-copy p { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.case-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.case-frame {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.tools-section .section-head { margin-bottom: 22px; }
.tool-layout {
  grid-template-columns: 180px minmax(0, .9fr) minmax(280px, 1fr);
}
.tool-tabs { flex-direction: column; }
.tool-panel, .tool-result, .contact-form {
  padding: 20px;
}
.tool-panel {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 12px;
  font: inherit;
}
.tool-result { min-height: 360px; }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
}
.result-head button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--accent);
  color: #101010;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
}
pre {
  white-space: pre-wrap;
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  font-family: Inter, sans-serif;
}

.contacts-section {
  align-items: start;
  padding-bottom: 110px;
}
.contact-copy h2 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: .95;
}
.contact-copy p { margin-top: 18px; line-height: 1.55; max-width: 520px; }
.contact-form { display: grid; gap: 12px; }

@media (max-width: 900px) {
  .topbar { height: auto; min-height: 68px; align-items: flex-start; padding-block: 16px; }
  .nav { display: none; }
  .hero, .category-shell, .tool-layout, .contacts-section, .case-detail {
    grid-template-columns: 1fr;
  }
  .case-grid { grid-template-columns: 1fr; }
  .row-head { grid-template-columns: 1fr; }
  .tool-tabs { flex-direction: row; }
  .hero-logo-stage {
    min-height: 130px;
    aspect-ratio: 16 / 7;
  }
}
