:root {
  /* Main colors: change these if you want a different site palette later. */
  --ink: #f4f2ec;
  --muted: #a6a39a;
  --bg: #090909;
  --panel: #141411;
  --line: rgba(244, 242, 236, 0.15);
  --accent: #d8ff3e;
  --blue: #89a7ff;
  --red: #ff5a4f;
  --silver: #d7d6ce;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 78% 16%, rgba(216, 255, 62, 0.13), transparent 20rem),
    linear-gradient(135deg, #090909 0%, #10100e 47%, #050505 100%);
}

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

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

.grain {
  /* Subtle texture overlay for the dark showroom feeling. */
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.site-header {
  /* Top navigation bar. */
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.74);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.filters,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
}

.nav {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  /* Hero section: the first big screen visitors see. */
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(46px, 7vw, 86px) clamp(18px, 4vw, 56px) clamp(34px, 6vw, 62px);
}

.hero-copy {
  max-width: 760px;
  padding-bottom: clamp(10px, 3vw, 32px);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10.5ch;
  margin-bottom: 22px;
  font-size: clamp(58px, 8.8vw, 126px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
}

.button {
  min-height: 48px;
  padding: 15px 24px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button.secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: #111;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.86);
  transform: scale(1.015);
}

.hero-media::after {
  position: absolute;
  inset: auto 18px 18px;
  content: "DENYS STUDIO / GRAPHIC DESIGN";
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.hero-media::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(244, 242, 236, 0.18);
  pointer-events: none;
}

.ticker {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 16px clamp(18px, 4vw, 56px);
  border-block: 1px solid var(--line);
}

.ticker span {
  flex: 1 0 max-content;
  min-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: clamp(62px, 10vw, 130px) clamp(18px, 4vw, 56px);
}

.services {
  /* Focus/services band below the About section. */
  padding: 0 clamp(18px, 4vw, 56px) clamp(44px, 7vw, 86px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-list span {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 7vw, 92px);
}

.intro h2,
.contact h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(34px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p:not(.section-label) {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-note {
  max-width: 420px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.9;
}

.filters {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: var(--bg);
}

.work-grid {
  /* Project card layout. */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.project {
  display: grid;
  grid-column: span 2;
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: opacity 240ms ease, transform 240ms ease, border-color 240ms ease;
}

.project.is-hidden {
  display: none;
}

.project.is-fading {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.project:hover {
  border-color: rgba(244, 242, 236, 0.32);
  transform: translateY(-6px);
}

.project.tall {
  grid-row: span 2;
  min-height: 680px;
}

.project.wide {
  grid-column: span 4;
  min-height: 460px;
}

.project-art {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.project-art img {
  height: 100%;
  object-fit: cover;
}

.project-art::before,
.project-art::after {
  position: absolute;
  content: "";
}

.project-art span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: rgba(244, 242, 236, 0.8);
  font-size: clamp(54px, 8vw, 120px);
  font-weight: 800;
  line-height: 0.8;
}

.project-art small {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid rgba(244, 242, 236, 0.22);
  background: rgba(9, 9, 9, 0.58);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.art-identity {
  background:
    linear-gradient(90deg, rgba(216, 255, 62, 0.9) 0 18%, transparent 18% 100%),
    linear-gradient(#222 1px, transparent 1px),
    linear-gradient(90deg, #222 1px, transparent 1px),
    #0d0d0c;
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.art-identity::before {
  inset: 16% 12% 16% 28%;
  border: 1px solid var(--silver);
}

.art-identity::after {
  width: 36%;
  aspect-ratio: 1;
  left: 36%;
  top: 28%;
  background: var(--ink);
  mix-blend-mode: difference;
}

.art-poster {
  background: linear-gradient(145deg, #f4f2ec 0 42%, #0e0e0d 42% 100%);
}

.art-poster::before {
  inset: 13% 18%;
  border: 16px solid #090909;
}

.art-poster::after {
  inset: 22% 28% 28% 25%;
  background: var(--red);
}

.art-digital {
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(137, 167, 255, 0.9) 35% 52%, transparent 52%),
    radial-gradient(circle at 70% 36%, var(--accent), transparent 8rem),
    #10100f;
}

.art-digital::before {
  inset: 18%;
  border: 1px solid rgba(244, 242, 236, 0.45);
  transform: rotate(-8deg);
}

.art-pack {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(216, 255, 62, 0.95) 48% 50%, transparent 50%),
    repeating-linear-gradient(90deg, #111 0 34px, #1f1f1b 34px 35px);
}

.art-pack::before {
  left: 8%;
  top: 18%;
  width: 34%;
  height: 52%;
  background: var(--ink);
}

.art-pack::after {
  right: 8%;
  bottom: 16%;
  width: 36%;
  height: 46%;
  border: 1px solid var(--silver);
}

.art-type {
  background: #d7d6ce;
}

.art-type::before {
  inset: 10% 14%;
  background:
    linear-gradient(#090909 0 0) 0 0 / 100% 18% no-repeat,
    linear-gradient(#090909 0 0) 0 38% / 82% 18% no-repeat,
    linear-gradient(#090909 0 0) 0 76% / 62% 18% no-repeat;
}

.art-type::after {
  right: 12%;
  top: 14%;
  width: 22%;
  height: 72%;
  background: var(--accent);
}

.art-motion {
  background:
    conic-gradient(from 180deg at 50% 50%, var(--accent), #10100f, var(--blue), var(--accent));
}

.art-motion::before {
  inset: 16%;
  background: #090909;
}

.art-motion::after {
  inset: 28%;
  border: 1px solid var(--ink);
}

.project-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.project-info div {
  max-width: 420px;
}

.project-info h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.project-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-info div p {
  max-width: 310px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.project-info > p {
  flex: 0 0 auto;
  text-align: right;
}

.contact {
  /* Final contact section. */
  margin: clamp(40px, 8vw, 90px) clamp(18px, 4vw, 56px);
  padding: clamp(34px, 7vw, 76px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--accent);
  font-size: clamp(24px, 5vw, 58px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .site-header,
  .section-heading,
  .project-info,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  h1 {
    max-width: 8ch;
  }

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

  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .project,
  .project.tall,
  .project.wide {
    grid-column: span 1;
    min-height: 430px;
  }

  .project-art {
    min-height: 330px;
  }

  .project-info p {
    text-align: left;
  }

  .project-info > p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  .hero-media {
    aspect-ratio: 4 / 5;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}
