@font-face {
  font-family: "BD Colonius";
  src: url("assets/BDColonius-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --black: #000;
  --raised: #111115;
  --text: #f7f7fa;
  --muted: #b4b4be;
  --line: #37373f;
  --lime: #c8ff3d;
  --cyan: #0be1fe;
  --magenta: #f526a8;
  --cobalt: #125cf3;
  --violet: #a244ea;
  --display: "BD Colonius", Arial, sans-serif;
  --body: "Outfit", "Avenir Next", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); font: 16px/1.55 var(--body); }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
h1 { font-size: clamp(4rem, 7.8vw, 8.1rem); }
h2 { font-size: clamp(3rem, 5.8vw, 6rem); }
p { margin: 0; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 12px; padding: 8px 16px; background: var(--black); transform: translateY(-160%); z-index: 3; }
.skip:focus { transform: translateY(0); }
.header { border-bottom: 1px solid var(--line); }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav-links a, .home { text-decoration: none; }
.nav-links a:hover, .text-link:hover { color: var(--lime); }
.home { display: inline-flex; align-items: center; gap: 12px; font-size: .87rem; font-weight: 600; letter-spacing: .095em; }
.home img { display: block; width: 25px; height: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 21px; border: 1px solid transparent; border-radius: 99px; font-weight: 600; text-decoration: none; text-align: center; }
.button.primary { background: var(--lime); color: var(--black); }
.button.primary:hover { background: #d8ff76; }
.button.secondary { background: var(--black); color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--cyan); }

.hero { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 5%; min-height: min(620px, 78svh); padding-block: 68px 88px; }
.hero p { max-width: 43ch; margin-top: 25px; font-size: clamp(1.08rem, 1.65vw, 1.34rem); color: var(--muted); }
.hero .button { margin-top: 28px; }
.hero-logo { justify-self: center; width: min(100%, 385px); display: block; }

.circle-section { border-block: 1px solid var(--line); }
.circle-layout { position: relative; min-height: clamp(370px, 44vw, 570px); display: grid; align-items: center; isolation: isolate; }
.circle-controls { position: relative; z-index: 1; align-self: end; margin-bottom: clamp(26px, 4vw, 55px); display: flex; gap: 8px; flex-wrap: wrap; width: fit-content; }
.circle-controls button { min-height: 40px; font-size: .9rem; }
.circle-art { position: absolute; inset: 0; overflow: clip; touch-action: pan-y; }
.circle-art.is-interactive { cursor: pointer; }
.circle-composition { position: absolute; inset: 0; translate: var(--pointer-x, 0px) var(--pointer-y, 0px); transition: translate .45s ease-out; }
.circle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  background: var(--color);
  border-radius: 50%;
  opacity: .94;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: drift var(--time) ease-in-out infinite alternate;
  animation-play-state: paused;
  transition: left .8s ease, top .8s ease;
}
.circle-layout[data-moving="true"] .circle { animation-play-state: running; }
.circle-layout[data-remixed="true"] .circle { left: var(--remix-x); top: var(--remix-y); }
.circle.cobalt { --color: var(--cobalt); --size: clamp(190px, 31vw, 440px); --x: 31%; --y: 49%; --remix-x: 35%; --remix-y: 43%; --time: 23s; }
.circle.magenta { --color: var(--magenta); --size: clamp(160px, 24vw, 350px); --x: 56%; --y: 34%; --remix-x: 50%; --remix-y: 56%; --time: 28s; }
.circle.violet { --color: var(--violet); --size: clamp(145px, 21vw, 305px); --x: 72%; --y: 56%; --remix-x: 77%; --remix-y: 44%; --time: 20s; }
.circle.cyan { --color: var(--cyan); --size: clamp(48px, 8vw, 120px); --x: 43%; --y: 67%; --remix-x: 60%; --remix-y: 26%; --time: 25s; }
.circle.lime { --color: var(--lime); --size: clamp(34px, 5vw, 76px); --x: 85%; --y: 30%; --remix-x: 18%; --remix-y: 58%; --time: 27s; }
@keyframes drift {
  from { transform: translate(-50%, -50%); }
  to { transform: translate(-35%, -62%); }
}

.section { padding-block: clamp(60px, 8vw, 117px); }
.section + .section { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(30px, 7vw, 110px); }
.section-intro { margin-top: 18px; max-width: 36ch; font-size: 1.1rem; color: var(--muted); }
.services { border-top: 1px solid var(--line); }
.services details { border-bottom: 1px solid var(--line); }
.services summary { list-style: none; display: grid; align-items: center; grid-template-columns: 12px 1fr 28px; gap: 14px; padding: 22px 6px; font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.7rem); cursor: pointer; }
.services summary::-webkit-details-marker { display: none; }
.services summary::after { content: "+"; font-size: 1.25em; font-weight: 400; }
.services details[open] summary::after { content: "−"; }
.service-dot { display: block; width: 10px; aspect-ratio: 1; border-radius: 50%; background: var(--dot); }
.service-copy { padding: 0 25px 26px 32px; color: var(--muted); }
.service-copy p + p { margin-top: 10px; }
.service-copy ul { margin: 12px 0 0; padding-left: 20px; }
.service-copy li + li { margin-top: 5px; }
.feature { background: var(--raised); }
.feature .split { align-items: center; }
.feature figure { margin: 0; }
.feature video { display: block; width: 100%; max-height: 515px; background: var(--black); border: 1px solid var(--line); border-radius: 22px; }
.feature figcaption, .small-note { margin-top: 13px; color: var(--muted); font-size: .9rem; }
.feature .section-intro { max-width: 46ch; }
.project-facts { display: grid; gap: 12px; margin: 26px 0 0; }
.project-facts div { padding-top: 10px; border-top: 1px solid var(--line); }
.project-facts dt { color: var(--cyan); font-weight: 600; }
.project-facts dd { margin: 4px 0 0; color: var(--muted); }
.case-links { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 30px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.case-links a { text-underline-offset: 4px; }
.feature .case-title { font-size: clamp(2.8rem, 4.3vw, 4.7rem); }
.case-action { margin-top: 18px; }
.product-status { margin-bottom: 14px; color: var(--lime); font-size: .92rem; }
.product-title { font-size: clamp(2.8rem, 6vw, 6.5rem); }
.tracker-demo { min-width: 0; margin: 0; padding: 0; border: 0; }
.tracker-demo legend { padding: 0; margin-bottom: 12px; color: var(--muted); font-size: .92rem; }
.tracker-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; padding: clamp(14px, 2.5vw, 30px); border: 1px solid var(--line); background: var(--black); border-radius: 22px; }
.tracker-demo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tracker-demo label { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 99px; text-align: center; font-size: .86rem; line-height: 1.2; cursor: pointer; }
.tracker-demo label:hover { border-color: var(--cyan); }
.tracker-demo input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: 3px; }
.tracker-demo input:checked + label { border-color: var(--cyan); color: var(--cyan); font-weight: 600; }
.tracker-record { grid-column: 1 / -1; padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); }
.tracker-record h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.25; }
.tracker-company { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.tracker-state { display: none; min-height: 138px; }
.tracker-state .project-facts { margin-top: 14px; }
#tracker-prepare:checked ~ .tracker-record .prepare,
#tracker-submit:checked ~ .tracker-record .submit,
#tracker-follow:checked ~ .tracker-record .follow { display: block; }
.workflow-steps { margin: 0; padding: 0; list-style: none; counter-reset: workflow; }
.workflow-steps details { border-top: 1px solid var(--line); padding: 14px 0; }
.workflow-steps li { counter-increment: workflow; }
.workflow-steps summary { cursor: pointer; font-weight: 600; }
.workflow-steps summary::marker { color: var(--cyan); }
.workflow-steps summary::before { content: counter(workflow) '. '; color: var(--cyan); }
.workflow-steps p { color: var(--muted); margin: 8px 0 0; }
.examples { margin-top: 40px; }
.examples h3 { font: 400 clamp(2rem, 3.4vw, 3.1rem)/1.1 var(--display); margin: 0 0 17px; }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.example-card { min-width: 0; border-top: 2px solid var(--accent); padding: 15px 5px 0; }
.example-card h4 { margin: 0 0 7px; font-size: 1.13rem; }
.example-card p { color: var(--muted); }
.estimate { display: grid; gap: 14px; }
.estimate-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.estimate-table caption { text-align: left; color: var(--muted); margin-bottom: 12px; }
.estimate-table th, .estimate-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.estimate-table th:first-child { padding-left: 0; }
.estimate-table thead th { color: var(--cyan); vertical-align: bottom; }
.estimate-table th[scope="row"] { font-weight: 500; }
.estimate input, .estimate select { width: 100%; min-width: 0; padding: 7px; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 7px; }
.estimate-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; align-items: center; }
.estimate-range input { padding-inline: 4px; appearance: textfield; }
.estimate-range input::-webkit-inner-spin-button { appearance: none; }
.estimate-results { margin: 0; padding: 14px 17px; border-left: 2px solid var(--lime); background: var(--raised); }
.estimate .small-note { margin: 0; }
.estimate details { border-top: 1px solid var(--line); padding-top: 10px; }
.estimate details summary { cursor: pointer; font-weight: 600; }
.estimate details .estimate-table { margin-top: 16px; }
.estimate details .estimate-results { margin-top: 14px; }
.estimate details .small-note { margin-top: 12px; }
.budget-mode { margin: 12px 0 0; padding: 0; border: 0; }
.budget-mode label { display: block; }
.budget-mode input { width: auto; }
.learn-copy { border-top: 1px solid var(--line); }
.learn-copy details { padding: 13px 0; border-bottom: 1px solid var(--line); }
.learn-copy summary { font-weight: 600; cursor: pointer; }
.learn-copy details p { margin: 10px 0 3px; color: var(--muted); }
.about { background: var(--raised); }
.about .split { align-items: center; }
.about .section-intro { max-width: 46ch; margin-bottom: 18px; }
.about-portrait { display: block; width: min(100%, 360px); height: auto; justify-self: center; border-radius: 18px; }
.text-link { text-underline-offset: 5px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; padding: 11px 14px; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 10px; }
.form textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.preview-message { min-height: 1.55em; color: var(--cyan); }
.footer { border-top: 1px solid var(--line); padding-block: 22px; font-size: .87rem; color: var(--muted); }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 52px 42px; gap: 36px; }
  .hero-logo { justify-self: start; margin-left: 3px; width: clamp(148px, 37vw, 215px); }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .example-grid { grid-template-columns: 1fr; }
  .nav { min-height: 65px; }
  .nav-links { gap: 16px; font-size: .92rem; }
  .circle.cobalt { --x: 33%; }
  .circle.violet { --x: 76%; }
}

@media (max-width: 390px) {
  .nav { flex-wrap: wrap; column-gap: 8px; row-gap: 5px; padding-block: 10px; }
  .home { letter-spacing: .04em; gap: 8px; }
  .nav-links { gap: 8px; font-size: .86rem; }
  .form-row { grid-template-columns: 1fr; }
  .estimate-table th, .estimate-table td { padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circle { animation: none; transition: none; }
  .circle-composition { translate: none; transition: none; }
}
