:root {
  --hm-black: #000000;
  --hm-ink: #0a0a0a;
  --hm-orange: #ff4800;
  --hm-orange-hover: #ff5e1f;
  --hm-white: #ffffff;
  --hm-muted: #b3b3b3;
  --hm-card: #141414;
  --hm-line: #2a2a2a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 8.5rem; }

body.site {
  margin: 0;
  background: var(--hm-black);
  color: var(--hm-white);
  font-family: Manrope, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-announce {
  background: linear-gradient(90deg, #ff4800 0%, #ff5e1f 45%, #e03f00 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.site-announce__inner {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem 1rem;
  flex-wrap: wrap;
  padding: .55rem 0;
  text-align: center;
}

.site-announce__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: .15rem .55rem;
  border-radius: .4rem;
  background: rgba(0, 0, 0, .22);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-announce__text {
  margin: 0;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
}

.site-announce__text strong {
  font-weight: 800;
}

.site-announce__sep {
  opacity: .7;
  margin: 0 .15rem;
}

.site-announce__cta {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: .25rem .75rem;
  border-radius: .5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}

.site-announce__cta:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.site-top {
  position: relative;
  background:
    linear-gradient(180deg, rgba(18, 10, 6, .96) 0%, rgba(0, 0, 0, .94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 72, 0, .22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.site-top__glow {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(420px 80px at 12% 0%, rgba(255, 72, 0, .18), transparent 70%),
    radial-gradient(360px 70px at 88% 0%, rgba(255, 72, 0, .1), transparent 70%);
}

.site-top__inner {
  position: relative;
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--hm-white);
  position: relative;
  z-index: 22;
}

.site-logo__mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .7rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff5e1f, #ff4800 55%, #cc3a00);
  box-shadow:
    0 8px 18px rgba(255, 72, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}

.site-logo__mark svg {
  width: 1.15rem;
  height: 1.15rem;
}

.site-logo__text {
  display: grid;
  gap: .05rem;
  line-height: 1.1;
}

.site-logo__text strong {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.18rem;
}

.site-logo__text small {
  color: var(--hm-muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: .35rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.45rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #cfcfcf;
  font-size: .9rem;
  font-weight: 600;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

.site-nav__logout {
  margin: 0;
  display: inline-flex;
}

.site-nav__link--button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.site-footer__logout {
  margin: 0;
  display: inline;
}

.site-footer__logout-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #cfcfcf;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.site-footer__logout-btn:hover {
  color: var(--hm-orange, #ff4800);
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 72, 0, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 72, 0, .28);
}

.site-nav__link.is-active {
  color: #fff;
  background: rgba(255, 72, 0, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 72, 0, .4);
}

.site-nav__link:hover .site-nav__icon,
.site-nav__link.is-active .site-nav__icon {
  color: var(--hm-orange);
}

.site-nav__icon {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: #9a9a9a;
  transition: color .15s ease;
}

.site-nav__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-nav__label {
  white-space: nowrap;
}

.site-nav-toggle {
  display: none;
  position: relative;
  z-index: 22;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 72, 0, .35);
  border-radius: .8rem;
  background: rgba(255, 72, 0, .1);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .28rem;
  transition: background .15s ease, border-color .15s ease;
}

.site-nav-toggle:hover {
  background: rgba(255, 72, 0, .18);
  border-color: rgba(255, 72, 0, .55);
}

.site-nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: .65rem 1.15rem;
  border-radius: .75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.site-btn:hover { transform: translateY(-1px); }

.site-btn--primary {
  background: var(--hm-orange);
  color: var(--hm-white);
}

.site-btn--primary:hover {
  background: var(--hm-orange-hover);
  color: var(--hm-white);
}

.site-btn--ghost {
  background: transparent;
  color: var(--hm-white);
  border-color: #3a3a3a;
}

.site-btn--ghost:hover {
  border-color: #fff;
}

.site-btn--lg {
  min-height: 3.1rem;
  padding-inline: 1.4rem;
}

.site-hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(760px 340px at 88% 8%, rgba(255, 72, 0, .26), transparent 58%),
    radial-gradient(520px 280px at 0% 100%, rgba(255, 72, 0, .08), transparent 55%),
    var(--hm-black);
}

.site-hero--portfolio {
  padding: 4rem 0 3.25rem;
  overflow: hidden;
}

.site-hero__layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.75rem;
  align-items: center;
}

.site-eyebrow {
  margin: 0 0 .85rem;
  color: var(--hm-orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-hero__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5.8vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  animation: site-fade-up .7s ease both;
}

.site-hero__title em {
  font-style: italic;
  color: var(--hm-orange);
}

.site-hero__lead {
  margin: 1.2rem 0 0;
  color: var(--hm-muted);
  font-size: 1.08rem;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: site-fade-up .7s ease .08s both;
}

.site-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.7rem;
  animation: site-fade-up .7s ease .16s both;
}

.site-hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  gap: 1rem;
}

.site-hero-cover {
  position: relative;
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1.25;
  border-radius: 1.15rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .4),
    0 0 0 4px rgba(255, 255, 255, .1);
  transform: rotate(1.5deg);
  animation: site-cover-in .8s ease .12s both;
  transition: transform .2s ease, box-shadow .2s ease;
}

.site-hero-cover:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, .48),
    0 0 0 4px rgba(255, 72, 0, .35);
}

.site-hero-cover img,
.site-hero-cover__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-hero-cover__fallback {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  background: linear-gradient(160deg, #ff4800, #1a1a1a);
}

.site-hero-caption {
  width: min(100%, 360px);
  display: grid;
  gap: .2rem;
  text-align: center;
  animation: site-fade-up .7s ease .2s both;
}

.site-hero-caption__tag {
  justify-self: center;
  margin-bottom: .25rem;
  padding: .2rem .55rem;
  border-radius: .45rem;
  background: rgba(255, 72, 0, .16);
  color: var(--hm-orange);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-hero-caption__niche {
  color: var(--hm-muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.site-hero-caption strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.site-hero-caption span:last-child {
  color: var(--hm-muted);
  font-size: .9rem;
}

.site-section {
  padding: 4.5rem 0;
  background: #0a0a0a;
}

.site-section--dark {
  background: var(--hm-black);
  border-block: 1px solid var(--hm-line);
}

.site-about {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.site-about__text {
  margin: 1rem 0 0;
  color: #d6d6d6;
  font-size: 1.05rem;
  max-width: 40rem;
  line-height: 1.6;
}

.site-about__text--muted {
  color: var(--hm-muted);
  font-size: 1rem;
}

.site-about__panel {
  display: grid;
  gap: .75rem;
  align-content: center;
}

.site-about__stat {
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  border-radius: .9rem;
  padding: 1rem 1.1rem;
}

.site-about__stat strong {
  display: block;
  color: var(--hm-orange);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.site-about__stat span {
  color: #eee;
  font-weight: 700;
  font-size: 1.02rem;
}

.site-about .site-h2,
.site-about__divider .site-h2 {
  max-width: none;
  white-space: normal;
}

.site-about__divider {
  margin-bottom: 1.75rem;
}

.site-h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  font-weight: 400;
  color: var(--hm-white);
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-h2--light { color: #fff; }

.site-lead {
  margin: .95rem 0 0;
  color: var(--hm-muted);
  max-width: none;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.site-feature {
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  border-radius: 1rem;
  padding: 1.35rem 1.3rem 1.45rem;
  transition: border-color .2s ease, transform .2s ease;
}

.site-feature:hover {
  border-color: rgba(255, 72, 0, .45);
  transform: translateY(-2px);
}

.site-feature__n {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--hm-orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.site-feature h3 {
  margin: 0;
  font-size: 1.08rem;
}

.site-feature p {
  margin: .55rem 0 0;
  color: var(--hm-muted);
  font-size: .94rem;
}

.site-portfolio {
  padding-top: 4rem;
}

.site-portfolio__head {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-portfolio__count {
  margin: 0;
  color: var(--hm-muted);
  font-size: .9rem;
}

.site-portfolio__count strong {
  color: var(--hm-orange);
  font-size: 1.2rem;
  margin-right: .2rem;
}

.site-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.35rem;
}

.site-filter {
  appearance: none;
  border: 1px solid #333;
  background: #141414;
  color: #cfcfcf;
  border-radius: .7rem;
  min-height: 2.35rem;
  padding: .4rem .9rem;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.site-filter:hover {
  border-color: rgba(255, 72, 0, .45);
  color: #fff;
}

.site-filter.is-active {
  background: rgba(255, 72, 0, .16);
  border-color: rgba(255, 72, 0, .55);
  color: #fff;
}

.site-demo.is-hidden,
.is-hidden {
  display: none !important;
}

.site-demos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.site-demo {
  text-decoration: none;
  background: var(--hm-card);
  border: 1px solid var(--hm-line);
  border-radius: 1.05rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.site-demo:hover {
  border-color: var(--hm-orange);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.site-demo__media {
  position: relative;
  overflow: hidden;
}

.site-demo img,
.site-demo__fallback {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
  background: #1c1c1c;
  transition: transform .35s ease;
}

.site-demo:hover img {
  transform: scale(1.04);
}

.site-demo__fallback {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: #ddd;
  font-weight: 700;
  background: linear-gradient(160deg, #2a2a2a, #111);
}

.site-demo__body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: grid;
  gap: .35rem;
  flex: 1;
}

.site-demo__niche {
  color: var(--hm-orange);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-demo__body strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.site-demo__sub {
  color: var(--hm-muted);
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-demo__cta {
  margin-top: .45rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
}

.site-demo:hover .site-demo__cta {
  color: var(--hm-orange);
}

.site-empty {
  margin-top: .5rem;
  padding: 1.6rem;
  border: 1px dashed #3a3a3a;
  border-radius: .9rem;
  color: var(--hm-muted);
}

.site-footer {
  padding: 2.25rem 0 1.75rem;
  border-top: 1px solid var(--hm-line);
  background: var(--hm-black);
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.site-footer__brand strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: .4rem;
}

.site-footer__brand p {
  margin: 0;
  max-width: 28rem;
  color: var(--hm-muted);
  font-size: .9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.15rem;
}

.site-footer__links a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: var(--hm-orange);
}

.back-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  background: var(--hm-orange);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 72, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--hm-orange-hover);
  color: #fff;
}

.back-top svg {
  width: 1.2rem;
  height: 1.2rem;
}

@keyframes site-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes site-cover-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(1.5deg) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(1.5deg) scale(1);
  }
}

@media (max-width: 960px) {
  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    z-index: 21;
    padding: 5rem 1.15rem 1.5rem;
    background:
      radial-gradient(500px 160px at 50% 0%, rgba(255, 72, 0, .16), transparent 65%),
      rgba(0, 0, 0, .97);
    border-bottom: 1px solid rgba(255, 72, 0, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    padding: .55rem;
    border-radius: 1rem;
    background: rgba(20, 20, 20, .9);
    border: 1px solid rgba(255, 255, 255, .08);
  }

  .site-nav__link {
    min-height: 3rem;
    padding: .75rem .95rem;
    border-radius: .8rem;
    color: #ddd;
  }

  .site-nav__link:hover {
    background: rgba(255, 72, 0, .14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 72, 0, .28);
  }

  .site-logo__text small {
    display: none;
  }

  body.site-nav-open {
    overflow: hidden;
  }

  .site-hero__layout,
  .site-features,
  .site-about {
    grid-template-columns: 1fr;
  }

  .site-demos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-hero__stage {
    order: 0;
  }

  .site-hero-cover {
    width: min(100%, 280px);
    transform: none;
    animation: site-fade-up .7s ease both;
  }

  .site-hero-cover:hover {
    transform: translateY(-3px);
  }

  .site-h2 {
    max-width: none;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .site-announce__text {
    font-size: .82rem;
    max-width: 36rem;
  }

  .site-announce__cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .site-demos {
    grid-template-columns: 1fr;
  }

  .site-hero__lead,
  .site-lead,
  .site-h2 {
    white-space: normal;
  }
}
