/* =========================================================
   Hamza Tariq — portfolio
   Deep ink + champagne. Instrument Serif / Manrope.
   ========================================================= */

:root {
  --void: #0a0910;
  --ink: #0f0e17;
  --panel: #16141f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #efece6;
  --muted: #9992a6;
  --gold: #e4ce9b;
  --gold-2: #c9ad74;
  --violet: #6f5bd6;
  --bad: #e77c72;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --secy: clamp(5rem, 13vw, 11rem);
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 1.1em;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--void);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--void);
  padding: 0.8rem 1.1rem;
}
.skip:focus {
  left: 0;
}

/* ---------------- loader ---------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--void);
  display: grid;
  place-content: center;
  gap: 1.5rem;
  transition:
    transform 1s var(--ease),
    opacity 0.6s ease 0.35s;
}
.loader.is-done {
  transform: translateY(-101%);
  opacity: 0;
  pointer-events: none;
}
.loader__inner {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-family: var(--serif);
}
.loader__label {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}
.loader__count {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--gold);
}
.loader__bar {
  height: 1px;
  width: min(60vw, 320px);
  background: var(--line-2);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

/* ---------------- ambient ---------------- */
.grain {
  position: fixed;
  inset: -200%;
  z-index: 120;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -3%);
  }
  60% {
    transform: translate(-2%, -2%);
  }
  80% {
    transform: translate(3%, 3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 130;
}
.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--gold));
}

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--line-2);
  transition:
    opacity 0.3s ease,
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    margin 0.3s var(--ease),
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.cursor.is-big {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: rgba(228, 206, 155, 0.12);
  border-color: var(--gold);
}
.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--gold);
}
body.has-cursor .cursor,
body.has-cursor .cursor-dot {
  opacity: 1;
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

/* ---------------- nav ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  transition:
    background-color 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease,
    transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 9, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden {
  transform: translateY(-110%);
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__markGlyph {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.nav__markName {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-current {
  color: var(--text);
}
.nav__links a:hover::after,
.nav__links a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}
.nav__cta:hover {
  border-color: var(--gold);
  background: rgba(228, 206, 155, 0.07);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

.nav__burger {
  width: 40px;
  height: 34px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
}
.nav__burger i {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease);
}
.nav__burger[aria-expanded="true"] i:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] i:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--ink);
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease);
}
.drawer.is-open {
  clip-path: inset(0 0 0 0);
}
.drawer a {
  font-family: var(--serif);
  font-size: clamp(2rem, 10vw, 3.2rem);
  padding: 0.25rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s var(--ease),
    color 0.3s ease;
}
.drawer.is-open a {
  opacity: 1;
  transform: none;
}
.drawer.is-open a:nth-child(1) {
  transition-delay: 0.22s;
}
.drawer.is-open a:nth-child(2) {
  transition-delay: 0.29s;
}
.drawer.is-open a:nth-child(3) {
  transition-delay: 0.36s;
}
.drawer.is-open a:nth-child(4) {
  transition-delay: 0.43s;
}
.drawer.is-open a:nth-child(5) {
  transition-delay: 0.5s;
  color: var(--gold);
}

@media (min-width: 900px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }
  .nav__burger,
  .drawer {
    display: none;
  }
}

/* ---------------- shared ---------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.sec {
  padding: var(--secy) var(--pad);
  position: relative;
}
.sec__head {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.sec__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  max-width: 18ch;
}

/* reveal primitives, driven by JS */
[data-rise] {
  opacity: 0;
  transform: translateY(26px);
}
[data-rise].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.word i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
}
.is-in .word i {
  transform: none;
  transition: transform 0.95s var(--ease);
  transition-delay: var(--wd, 0ms);
}

/* ---------------- buttons ---------------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--void);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  overflow: hidden;
  transition:
    color 0.4s var(--ease),
    transform 0.35s var(--ease);
}
.btn__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  border-radius: inherit;
}
.btn:hover .btn__fill {
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  color: var(--void);
  border-color: var(--gold);
}
.btn--ghost .btn__label {
  position: relative;
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  border-radius: inherit;
}
.btn--ghost:hover::before {
  transform: translateY(0);
}
.btn[disabled] {
  opacity: 0.55;
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad) 2.5rem;
  overflow: hidden;
}
.hero__aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 46rem;
  height: 46rem;
  margin: -23rem 0 0 -23rem;
  background: radial-gradient(
    circle,
    rgba(111, 91, 214, 0.22),
    transparent 62%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.has-cursor .hero__aura {
  opacity: 1;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__orb--a {
  width: 38vw;
  height: 38vw;
  min-width: 320px;
  min-height: 320px;
  right: -6vw;
  top: 6vh;
  background: rgba(201, 173, 116, 0.16);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__orb--b {
  width: 30vw;
  height: 30vw;
  min-width: 260px;
  min-height: 260px;
  left: -8vw;
  bottom: -6vh;
  background: rgba(111, 91, 214, 0.18);
  animation: drift 27s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-6%, 8%) scale(1.18);
  }
}

.hero__inner {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.hero__kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8.4vw, 7rem);
  line-height: 1.02;
  margin-bottom: 2rem;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line__in {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.15s var(--ease) forwards;
}
.hero__title .line:nth-child(1) .line__in {
  animation-delay: 0.15s;
}
.hero__title .line:nth-child(2) .line__in {
  animation-delay: 0.27s;
}
.hero__title .line:nth-child(3) .line__in {
  animation-delay: 0.39s;
}
@keyframes lineUp {
  to {
    transform: none;
  }
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__foot {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: clamp(3rem, 8vh, 6rem) auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.scrollcue {
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  position: relative;
}
.scrollcue i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  background: var(--gold);
  border-radius: 2px;
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero__stats {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin: 0;
  flex-wrap: wrap;
}
.hero__stats dt {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero__stats dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
}
.hero__stats .unit {
  color: var(--gold);
}

/* ---------------- marquee ---------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.marquee__track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__track span {
  white-space: nowrap;
}
.dotsep {
  color: var(--gold);
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------- projects ---------------- */
.projects {
  border-top: 1px solid var(--line);
}
.proj {
  position: relative;
  display: grid;
  align-items: center;
  gap: 0.4rem 2rem;
  grid-template-columns: auto 1fr;
  padding: clamp(1.6rem, 3.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.proj::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(228, 206, 155, 0.07),
    transparent 65%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.proj:hover::before {
  transform: scaleX(1);
}
.proj__idx {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  align-self: start;
  padding-top: 0.5rem;
}
.proj__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.05;
  transition:
    transform 0.5s var(--ease),
    color 0.4s ease;
}
.proj:hover .proj__title {
  transform: translateX(12px);
  color: var(--gold);
}
.proj__desc {
  color: var(--muted);
  max-width: 52ch;
  margin: 0.5rem 0 0;
  font-size: 0.97rem;
}
.proj__tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  grid-column: 2;
  margin-top: 0.9rem;
}
.proj__tags li {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}
.proj__result {
  grid-column: 2;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
}
.proj__arrow {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  margin-top: -0.7rem;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0;
  transform: translate(-10px, 10px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.proj:hover .proj__arrow {
  opacity: 1;
  transform: none;
}

@media (min-width: 860px) {
  .proj {
    grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr) auto;
    padding-right: 3.5rem;
  }
  .proj__tags,
  .proj__result {
    grid-column: auto;
    margin-top: 0;
  }
  .proj__result {
    justify-self: end;
  }
}

/* cursor-following preview */
.preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 300px;
  height: 210px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9) rotate(-3deg);
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.preview.is-on {
  opacity: 1;
  transform: scale(1) rotate(-2deg);
}
.preview__chrome {
  display: flex;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
.preview__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
}
.preview__art {
  height: calc(100% - 28px);
  background-size: cover;
  background-position: center;
}
.preview__art[data-art="a"] {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(135deg, #1b1930, #2b2447 60%, #3a2f4f);
}
.preview__art[data-art="b"] {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(228, 206, 155, 0.09) 0 2px,
      transparent 2px 26px
    ),
    linear-gradient(160deg, #16202a, #1d3140 70%, #254452);
}
.preview__art[data-art="c"] {
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(228, 206, 155, 0.3),
      transparent 45%
    ),
    linear-gradient(200deg, #241a1f, #3a2630 60%, #4b2f38);
}

/* ---------------- craft cards ---------------- */
.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  transform-style: preserve-3d;
  transition:
    border-color 0.4s ease,
    transform 0.35s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
}
.card__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: 0;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 46ch;
}

/* ---------------- process ---------------- */
.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  background: var(--void);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: background-color 0.45s ease;
}
.step:hover {
  background: var(--panel);
}
.step__n {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------------- about ---------------- */
.about__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 920px) {
  .about__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 7vw, 6rem);
  }
}
.portrait {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 60% 25%,
      rgba(228, 206, 155, 0.16),
      transparent 55%
    ),
    linear-gradient(170deg, #1a1824, #0f0e17);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__where {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.about__text p {
  color: var(--muted);
  max-width: 56ch;
}
.about__text .sec__title {
  margin-bottom: 1.5rem;
}
.quote {
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
}
.quote p {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--text);
}
.quote cite {
  font-style: normal;
  font-size: 0.83rem;
  color: var(--muted);
}

/* ---------------- contact ---------------- */
.contact {
  text-align: center;
  overflow: hidden;
}
.contact__glow {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 52rem;
  height: 52rem;
  margin-left: -26rem;
  background: radial-gradient(
    circle,
    rgba(228, 206, 155, 0.12),
    transparent 62%
  );
  pointer-events: none;
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1.02;
  margin-bottom: 1.2rem;
}
.contact__lede {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 3rem;
}

.form {
  display: grid;
  gap: 1.4rem 1.2rem;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
@media (min-width: 640px) {
  .form {
    grid-template-columns: 1fr 1fr;
  }
  .field--wide,
  .form__actions {
    grid-column: 1 / -1;
  }
}
.field {
  position: relative;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 1.5rem 0 0.6rem;
  border-radius: 0;
  transition: border-color 0.4s ease;
}
.field select {
  padding-top: 1.5rem;
  color: var(--text);
}
.field select option {
  background: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field label {
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-size: 0.97rem;
  color: var(--muted);
  pointer-events: none;
  transition:
    transform 0.35s var(--ease),
    font-size 0.35s var(--ease),
    color 0.35s ease;
  transform-origin: left top;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.label--static {
  transform: translateY(-1.45rem) scale(0.78);
  color: var(--gold);
}
.label--static {
  top: 1.5rem;
}
.field.is-bad input,
.field.is-bad textarea {
  border-bottom-color: var(--bad);
}
.err {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  color: var(--bad);
  min-height: 1em;
}
.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.form__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.form__status.is-ok {
  color: var(--gold);
}
.form__status.is-bad {
  color: var(--bad);
}

.contact__mail {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 0.15rem;
  transition:
    color 0.35s ease,
    border-color 0.35s ease;
}
.contact__mail:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------------- footer ---------------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--muted);
}
.footer p {
  margin: 0;
}
.footer ul {
  display: flex;
  gap: 1.5rem;
}
.footer a:hover {
  color: var(--gold);
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-rise] {
    opacity: 1 !important;
    transform: none !important;
  }
  .word i,
  .hero__title .line__in {
    transform: none !important;
  }
  .cursor,
  .cursor-dot,
  .preview,
  .grain {
    display: none !important;
  }
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: auto;
  }
}

/* =========================================================
   NovaStack Technologies — sales-site layer
   Keeps the original premium visual system and adds company-specific UI.
   ========================================================= */
.hero__stats dd {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}
.hero__stats > div {
  min-width: 150px;
}

.card__list {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.card__list li::before {
  content: "↳";
  color: var(--gold);
  margin-right: 0.55rem;
}

.casework {
  position: relative;
}
.casework__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.case {
  background: var(--bg, #0a0910);
  padding: 2rem;
  min-height: 270px;
  display: flex;
  flex-direction: column;
}
.case__label {
  font: 0.68rem/1 var(--mono, "JetBrains Mono", monospace);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.case h3 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.04em;
}
.case p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}
.case__meta {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.case__meta span,
.about__pillars span {
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.section-note {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.about__portrait {
  align-self: start;
}
.portrait--brand {
  min-height: 390px;
  border: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(228, 206, 155, 0.16),
      transparent 38%
    ),
    linear-gradient(145deg, #14121d, #090810);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.portrait--brand::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(228, 206, 155, 0.25);
  border-radius: 50%;
}
.portrait--brand span {
  font: clamp(4.5rem, 8vw, 7rem)/1 var(--serif, "Instrument Serif", serif);
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.portrait--brand small {
  margin-top: 1rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.65rem;
  position: relative;
  z-index: 1;
}
.about__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.contact__split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.contact__intro {
  display: grid;
  gap: 1.2rem;
}
.contact__callout {
  border: 1px solid var(--line);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.015);
}
.contact__callout-label {
  color: var(--gold);
  font: 0.68rem/1 var(--mono, "JetBrains Mono", monospace);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.contact__callout h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  margin: 1rem 0 0.7rem;
}
.contact__callout p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.contact__availability {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
  margin: 0;
}
.form {
  margin-top: 0;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .casework__grid,
  .contact__split {
    grid-template-columns: 1fr;
  }
  .contact__split {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero__stats > div {
    min-width: 0;
  }
  .case {
    min-height: auto;
  }
  .portrait--brand {
    min-height: 280px;
  }
  .contact__callout {
    padding: 1.5rem;
  }
}
