/* DizonDevelops: black base, ultraviolet and signal red. Unbounded for display, Hanken Grotesk for text. */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #000000;
  --panel: #0b0710;
  --line: rgba(255, 255, 255, 0.1);
  --bone: #f1eef6;
  --haze: #a39cb3;
  --violet: #8b3dff;
  --violet-solid: #7a2cf0;
  --violet-soft: #b58cff;
  --red: #ff2d55;
  --red-solid: #d91a45;
  --grad: linear-gradient(100deg, #8b3dff 0%, #ff2d55 100%);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: none; gap: 2rem; margin-left: auto; margin-right: 1rem; }
.nav a { text-decoration: none; color: var(--haze); font-weight: 500; font-size: 0.98rem; position: relative; padding: 0.3rem 0; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 760px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem; border: 0; border-radius: 999px;
  font: 650 1rem/1 var(--text); color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(100deg, var(--violet-solid), var(--red-solid), var(--violet-solid));
  background-size: 200% 100%; background-position: 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: background-position 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s, box-shadow 0.3s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 44px -10px rgba(255, 45, 85, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14) inset; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-small { min-height: 42px; padding: 0 1.2rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; color: var(--bone); }
.btn-ghost:hover { background: rgba(139, 61, 255, 0.14); box-shadow: 0 0 0 1px var(--violet-soft) inset; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55vw 55vh at 88% 22%, rgba(139, 61, 255, 0.38), transparent 70%),
    radial-gradient(40vw 40vh at 96% 82%, rgba(255, 45, 85, 0.28), transparent 70%),
    #000;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0) 85%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 28%);
}
.hero-inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.15rem, 7.2vw, 6rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 12em; }
.hero h1 .line { display: block; text-wrap: balance; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: 0.05s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.14s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.23s; }
@keyframes rise { to { transform: translateY(0); } }
.lede { margin-top: 1.75rem; max-width: 34em; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(241, 238, 246, 0.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.live-row { margin-top: clamp(2.5rem, 7vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.live-label { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--haze); font-size: 0.95rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); } }
.live-row ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.35rem; }
.live-row a { text-decoration: none; color: rgba(241, 238, 246, 0.88); font-weight: 550; transition: color 0.2s; }
.live-row a:hover { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 4px; }

/* Sections */
.section { padding-block: clamp(4.5rem, 11vw, 8.5rem); position: relative; }
.section-head { max-width: 40rem; }
.section-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 4.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.025em; }
.section-head p { margin-top: 1.1rem; color: var(--haze); font-size: 1.12rem; max-width: 32em; }

/* Work */
.work-stack { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.work-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--panel);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; isolation: isolate;
  box-shadow: 0 -28px 60px -24px #000; transition: border-color 0.3s;
}
.work-item:nth-child(1) { --i: 0; }
.work-item:nth-child(2) { --i: 1; }
.work-item:nth-child(3) { --i: 2; }
.work-item:nth-child(4) { --i: 3; }
.work-item:nth-child(5) { --i: 4; }
.work-item:nth-child(6) { --i: 5; }
.work-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(540px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 61, 255, 0.22), rgba(255, 45, 85, 0.08) 42%, transparent 70%);
}
.work-item:hover { border-color: rgba(181, 140, 255, 0.4); }
.work-item:hover::before { opacity: 1; }
@media (min-width: 960px) {
  .work-stack { gap: 2.5rem; }
  .work-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; position: sticky; top: calc(var(--header-h) + 16px + var(--i) * 18px); min-height: 480px; }
}
.work-copy h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.work-what { margin-top: 0.6rem; font-size: 1.12rem; color: rgba(241, 238, 246, 0.92); }
.work-facts { display: grid; gap: 1rem; margin: 1.5rem 0 1.75rem; }
.work-facts dt { color: var(--violet-soft); font-weight: 650; font-size: 0.95rem; }
.work-facts dd { color: rgba(241, 238, 246, 0.82); line-height: 1.55; }
@media (min-width: 560px) { .work-facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; } }
.work-link { display: inline-block; font-weight: 650; text-decoration: none; padding-bottom: 3px; background: var(--grad) left bottom / 100% 2px no-repeat; transition: background-size 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s; }
.work-link:hover { background-size: 100% 100%; color: #fff; padding-inline: 0.2rem; margin-inline: -0.2rem; }

.work-shot {
  display: block; text-decoration: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #05030a;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.35s;
}
.work-item:hover .work-shot { box-shadow: 0 30px 80px -24px rgba(139, 61, 255, 0.5); }
.shot-bar { display: block; padding: 0.55rem 0.9rem; font-size: 0.82rem; color: var(--haze); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.work-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.beacon { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(139, 61, 255, 0.28), transparent 65%); }
.beacon i { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255, 45, 85, 0.7); opacity: 0; animation: ping 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.beacon i:nth-child(2) { animation-delay: 1.2s; border-color: rgba(181, 140, 255, 0.7); }
.beacon i:nth-child(3) { animation-delay: 2.4s; }
.beacon b { width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 28px 6px rgba(255, 45, 85, 0.55); }
@keyframes ping { 0% { transform: scale(0.15); opacity: 0.95; } 100% { transform: scale(2.6); opacity: 0; } }

/* Services */
.svc-list { margin-top: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head {
  position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 0.25rem 1rem;
  padding: 1.5rem 0; background: none; border: 0; color: var(--bone); text-align: left; cursor: pointer; font: inherit;
}
.svc-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); width: fit-content; }
.svc-hint { grid-column: 1; color: var(--haze); font-size: 1rem; }
.svc-icon { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 28px; height: 28px; justify-self: end; }
.svc-icon::before, .svc-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: var(--bone); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s; }
.svc-icon::after { transform: rotate(90deg); }
.svc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.svc:hover .svc-head::after, .svc.is-open .svc-head::after { transform: scaleX(1); }
.svc:hover .svc-name, .svc.is-open .svc-name { transform: translateX(0.5rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.svc.is-open .svc-icon::after { transform: rotate(0deg); }
.svc.is-open .svc-icon::before, .svc.is-open .svc-icon::after { background: var(--red); }
.svc-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.45s; }
.svc.is-open .svc-body { grid-template-rows: 1fr; visibility: visible; }
.svc-body > div { overflow: hidden; min-height: 0; }
.svc-body p { max-width: 38rem; color: rgba(241, 238, 246, 0.82); font-size: 1.1rem; margin-bottom: 1rem; }
.svc-ex { display: inline-block; margin-bottom: 1.9rem; color: var(--violet-soft); font-weight: 650; text-underline-offset: 5px; transition: color 0.2s; }
.svc-ex:hover { color: var(--red); }
@media (min-width: 820px) {
  .svc-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 36px; padding: 1.9rem 0; }
  .svc-hint { grid-column: 2; }
  .svc-icon { grid-column: 3; grid-row: 1; }
}

/* Process */
.process-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5rem; }
  .process-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.steps { display: grid; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2.75rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 22px; top: 52px; bottom: 4px; width: 1px; background: var(--line); }
.step:last-child::before { display: none; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--display); font-size: 0.95rem; color: var(--haze); transition: background-color 0.5s, color 0.5s, box-shadow 0.5s, border-color 0.5s; }
.step.is-on .step-n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 28px rgba(255, 45, 85, 0.45); }
.step h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; margin-top: 0.4rem; }
.step p { margin-top: 0.5rem; color: var(--haze); max-width: 30em; }

/* Contact */
.contact { background: radial-gradient(900px 500px at 85% 0%, rgba(139, 61, 255, 0.16), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(255, 45, 85, 0.1), transparent 70%); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; align-items: start; } }
.form-wrap { padding: clamp(1.25rem, 3vw, 2.25rem); background: rgba(11, 7, 16, 0.85); border: 1px solid var(--line); border-radius: 22px; }
#contact-form { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { #contact-form { grid-template-columns: 1fr 1fr; } .field-wide, .form-actions { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; font: inherit; color: var(--bone);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b58cff' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(181, 140, 255, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.field [aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { color: #ff7d95; font-weight: 550; min-height: 1.5em; }
.form-done { padding: 1rem 0.25rem; }
.form-done h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; width: fit-content; }
.form-done p { margin-top: 0.75rem; color: rgba(241, 238, 246, 0.85); font-size: 1.12rem; }
.form-done:focus { outline: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
.footer-row { display: grid; gap: 1.25rem; }
.footer-brand { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.footer-copy, .footer-fine { color: var(--haze); max-width: 34em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { text-decoration: none; color: var(--bone); font-weight: 550; }
.footer-nav a:hover { color: var(--violet-soft); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 820px) { .footer-row { grid-template-columns: 1fr auto; align-items: end; } .footer-fine { grid-column: 1 / -1; } }

/* Small screens: the field sits behind a stronger scrim so text stays readable */
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0.35) 100%); }
  .hero { min-height: 92svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line > span { transform: none; }
  .work-item { position: relative !important; top: auto !important; }
  .work-shot { transform: none !important; }
}
