
@font-face {
  font-family: "Vazirmatn Operator Mono";
  src: url("../vazirmatn-operator_mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body,
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:root {
  --bg: #0a0c0f;
  --bg-elevated: #12151a;
  --bg-elevated-a: rgba(18, 21, 26, 0.4);
  --bg-elevated-2: #1a1e25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #edf0f2;
  --text-muted: #98a1ac;
  --text-faint: #5c6570;
  --gold: #dea404;
  --gold-bright: #f6c744;
  --gold-dim: rgba(222, 164, 4, 0.14);
  --gold-line: rgba(222, 164, 4, 0.22);
  --gold-faint: rgba(222, 164, 4, 0.06);
  --nav-bg: rgba(10, 12, 15, 0.72);
  --overlay-bg: rgba(8, 9, 11, 0.98);
  --on-accent: #17130a;

  --grad: linear-gradient(135deg, #ffd23f 0%, #dea404 45%, #ff6a3d 100%);
  --grad-soft: linear-gradient(
    135deg,
    rgba(255, 210, 63, 0.16),
    rgba(222, 164, 4, 0.1) 45%,
    rgba(255, 106, 61, 0.16) 100%
  );
  --grad-line: linear-gradient(
    135deg,
    rgba(255, 210, 63, 0.4),
    rgba(255, 106, 61, 0.4)
  );
  --grad-border: linear-gradient(
    120deg,
    #ffd23f,
    #dea404,
    #ff6a3d,
    #f6c744,
    #ffd23f
  );
  --elev-fill: linear-gradient(
    var(--bg-elevated-a),
    var(--bg-elevated-a)
  );

  --font-display: "Vazirmatn Operator Mono", "Vazirmatn", sans-serif;
  --font-body: "Vazirmatn Operator Mono", "Vazirmatn", sans-serif;
  --font-mono: "Vazirmatn Operator Mono", "Vazirmatn", monospace;

  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 120px;
  --space-8: 190px;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

html.lang-fa body {
  direction: rtl;
}
html.lang-fa [data-fa] {
  font-family: var(--font-display);
}
html.lang-fa .eyebrow,
html.lang-fa .layer-group-title,
html.lang-fa .section-divider-label {
  letter-spacing: 0;
}
html.lang-fa [dir="ltr"],
html.lang-fa .keep-ltr {
  direction: ltr;
  unicode-bidi: embed;
}

html.lang-fa .hero-terminal {
  direction: ltr;
  text-align: left;
}

html.lang-fa .timeline {
  border-left: none;
  border-right: 1px solid var(--border-strong);
  padding-left: 0;
  padding-right: var(--space-5);
}
html.lang-fa .tl-node::before {
  left: auto;
  right: calc(-1 * var(--space-5) - 5px);
}

html.lang-fa .btn-primary svg,
html.lang-fa .contact-row-arrow svg {
  transform: scaleX(-1);
}

html.lang-fa .contact-row {
  transition: padding-right 0.25s var(--ease);
}
html.lang-fa a.contact-row:hover {
  padding-left: 4px;
  padding-right: 10px;
}
html.lang-fa a.contact-row:hover .contact-row-arrow {
  transform: translateX(-3px);
}

p {
  text-align: justify;
  text-justify: inter-word;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes flagshipBorderShift {
  0% {
    background-position: 0% 20%;
  }
  100% {
    background-position: 100% 80%;
  }
}

.layers-panel,
.flagship,
.work-card,
.contact-panel {
  animation: flagshipBorderShift 5s linear infinite alternate;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: var(--space-5);
  background:
    linear-gradient(
      160deg,
      rgba(222, 164, 4, 0.07),
      rgba(222, 164, 4, 0.01) 60%
    ),
    rgba(10, 12, 15, 0.82);
  background-size: 220% 220%;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.layers-panel {
  padding: 0;
}
@media (prefers-reduced-motion: reduce) {
  .work-card,
  .flagship,
  .layers-panel,
  .contact-panel {
    animation: none !important;
  }
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#iranMap {
  width: 100%;
  height: 100%;
}
#iranMap .iran-outline {
  fill: var(--gold-faint);
  stroke: url(#irGrad);
  stroke-width: 2.2;
  opacity: 0.4;
}
#iranMap .yazd-marker {
  opacity: 1;
}
#iranMap .yazd-label {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  fill: var(--gold-bright);
  letter-spacing: 0.08em;
}
#iranMap .yazd-dot {
  fill: var(--gold-bright);
}
#iranMap .yazd-ping {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  transform-origin: center;
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% {
    r: 6;
    opacity: 0.95;
  }
  100% {
    r: 30;
    opacity: 0;
  }
}
#plexus {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}
@media (prefers-reduced-motion: reduce) {
  #plexus {
    opacity: 0.09;
  }
  #iranMap .yazd-ping {
    animation: none;
    opacity: 0.4;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.section {
  padding-block: clamp(50px, 0vw, 96px);
  position: relative;
  scroll-margin-top: 84px;
}
.section#about {
  padding-block: clamp(50px, 0vw, 130px);
}
.section-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem);
  font-weight: 600;
  max-width: 20ch;
  margin-bottom: var(--space-4);
}
.lede {
  color: var(--text-muted);
  font-size: 1.05rem;

}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--on-accent);
  padding: 10px 16px;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(222, 164, 4, 0.55);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn svg {
  width: 15px;
  height: 15px;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.brand img {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  border: 1px solid var(--gold-line);
  background: var(--gold-faint);
  border-radius: 999px;
  padding: 7px 13px;
  line-height: 1;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.lang-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.lang-toggle-mobile {
  margin-top: var(--space-2);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
}

.hero {
  min-height: 118svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 0px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  left: clamp(12px, 3vw, 56px);
  bottom: clamp(56px, 9vh, 110px);
  width: 40%;
  max-width: 420px;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-rotator {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: var(--space-5);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.hero-rotator-word {
  color: var(--gold);
  position: relative;
  display: inline-block;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.hero-rotator-word.swap {
  opacity: 0;
  transform: translateY(6px);
}

.hero-copy {
  padding-top: var(--space-4);
  padding-bottom: var(--space-6);
  max-width: 640px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.hero-title {
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.hero-title .last {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  color: var(--text-muted);
  font-weight: 500;
  max-width: 30ch;
  margin-bottom: var(--space-5);
}
.hero-desc {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: var(--space-6);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.hero-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.hero-loc svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.hero-fade-in > * {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) forwards;
}
.hero-fade-in > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-fade-in > .hero-title {
  opacity: 1;
  transform: none;
  animation: none;
}
.hero-fade-in > *:nth-child(3) {
  animation-delay: 0.56s;
}
.hero-fade-in > *:nth-child(4) {
  animation-delay: 0.7s;
}
.hero-fade-in > *:nth-child(5) {
  animation-delay: 0.84s;
}
.hero-fade-in > *:nth-child(6) {
  animation-delay: 0.98s;
}
.hero-fade-in > *:nth-child(7) {
  animation-delay: 1.12s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(42px);
  animation: titleRhythm 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.18) forwards;
}
.title-line-1 {
  animation-delay: 0.16s;
}
.title-line-2 {
  animation-delay: 0.36s;
}
@keyframes titleRhythm {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade-in > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .title-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-terminal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .term-body > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .term-cursor {
    animation: none;
  }
}

.hero-terminal {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background:
    linear-gradient(
      160deg,
      rgba(222, 164, 4, 0.07),
      rgba(222, 164, 4, 0.01) 60%
    ),
    rgba(10, 12, 15, 0.82);
  background-size: 220% 220%;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation:
    flagshipBorderShift 5s linear infinite alternate,
    heroTermIn 1s var(--ease) forwards;
  animation-delay: 0s, 0.5s;
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.65);
}
@keyframes heroTermIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.term-dot-r {
  background: #ff5f57;
}
.term-dot-y {
  background: #febc2e;
}
.term-dot-g {
  background: #28c840;
}
.term-title {
  margin-left: 8px;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.term-body {
  padding: 22px 20px 28px;
}
.term-line {
  color: var(--text-muted);
  margin: 0 0 4px;
}
.term-prompt {
  color: var(--gold);
  margin-right: 8px;
}
.term-out {
  color: var(--text);
  margin: 0 0 16px;
  padding-left: 16px;
}
.term-out-strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.term-out:last-child {
  margin-bottom: 0;
}
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 5px;
  vertical-align: -2px;
  background: var(--gold);
  animation: termBlink 1s steps(1) infinite;
}
@keyframes termBlink {
  50% {
    opacity: 0;
  }
}
.term-body > * {
  opacity: 0;
  transform: translateY(8px);
  animation: termLineIn 0.5s var(--ease) forwards;
}
.term-body > *:nth-child(1) {
  animation-delay: 0.85s;
}
.term-body > *:nth-child(2) {
  animation-delay: 0.95s;
}
.term-body > *:nth-child(3) {
  animation-delay: 1.1s;
}
.term-body > *:nth-child(4) {
  animation-delay: 1.2s;
}
.term-body > *:nth-child(5) {
  animation-delay: 1.35s;
}
.term-body > *:nth-child(6) {
  animation-delay: 1.45s;
}
.term-body > *:nth-child(7) {
  animation-delay: 1.6s;
}
.term-body > *:nth-child(8) {
  animation-delay: 1.7s;
}
.term-body > *:nth-child(9) {
  animation-delay: 1.85s;
}
@keyframes termLineIn {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .hero {
    padding-top: 96px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-terminal {
    margin-top: var(--space-4);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  z-index: 1;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: pulseLine 2.2s ease-in-out infinite;
}
@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .line {
    animation: none;
    opacity: 0.6;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  max-width: 54ch;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
  max-width: 480px;
}
.stat {
  position: relative;
  border-top: 1px solid var(--border-strong);
  padding-top: 14px;
}
.stat::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.stat-num {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3vw, 2.85rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(222, 164, 4, 0.22));
}
.stat-num::after {
  content: "+";
  font-size: 0.42em;
  margin-left: 2px;
  margin-top: 2px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.layers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.layers-head .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.layer-group {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.layer-group:last-child {
  border-bottom: none;
}
.layer-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.layer-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    border-color 0.2s;
}
.layer-item:hover {
  border-color: var(--gold);
}
.layer-item .toggle {
  width: 15px;
  height: 15px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.layer-item .toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.layer-item .toggle.brand svg {
  fill: currentColor;
  stroke: none;
}
.layer-item:hover .toggle {
  color: var(--gold-bright);
}
.layers-panel.is-visible .layer-item {
  opacity: 1;
  transform: none;
}

.timeline {
  border-left: 1px solid var(--border-strong);
  padding-left: var(--space-5);
  position: relative;
}
.tl-node {
  position: relative;
  padding-bottom: var(--space-6);
}
.tl-node:last-child {
  padding-bottom: 0;
}
.tl-node::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-5) - 5px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
}
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.tl-role {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 600;
}
.tl-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 10px;
  border-radius: 999px;
}
.tl-org {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  max-width: 60ch;
}
.tl-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.tl-product {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tl-product:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.tl-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tl-module {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  padding: 4px 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
}
.tl-node--edu .tl-role {
  font-size: 1.05rem;
}
.tl-node--edu .tl-org {
  margin-bottom: 0;
}

.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.flagship-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.flagship h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 10px;
}
.flagship p {
  color: var(--text-muted);

  margin-bottom: var(--space-4);
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}
.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-muted);
}
.flagship-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.flagship-foot svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  grid-auto-flow: dense;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 620px) {
  .personal-grid {
    grid-template-columns: 1fr;
  }
}

.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-6);
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-line),
    transparent
  );
}
.section-divider-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.work-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 0H64M0 32H64M0 64H64M0 0V64M32 0V64M64 0V64' stroke='%23dea404' stroke-width='0.6' fill='none'/%3E%3Ccircle cx='32' cy='32' r='1.5' fill='%23dea404'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 64px 64px;
  opacity: 0.07;
  animation: workCardDrift 24s linear infinite;
}
.work-card > * {
  position: relative;
  z-index: 1;
}
@keyframes workCardDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-64px, -64px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-card::before {
    animation: none;
  }
}

.work-card--featured {
  grid-column: span 2;
}
.work-card--featured .role-badge {
  background: var(--gold);
  color: var(--on-accent);
  font-weight: 700;
}
.work-card--featured h4 {
  font-size: 1.2rem;
}
@media (max-width: 620px) {
  .work-card--featured {
    grid-column: span 1;
  }
}
.work-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.work-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0px;
}
.work-card-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: all 0.2s;
}
.work-card:hover .work-card-link {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(45deg);
}
.work-card-link svg {
  width: 14px;
  height: 14px;
}
.work-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}
.pkg-install {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
  background: var(--gold-dim);
  padding: 7px 11px;
  border-radius: 6px;
  width: fit-content;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}
.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.work-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}
.work-card-footer .work-card-tags {
  flex: 1;
  min-width: 0;
}
.work-card-footer .flagship-foot {
  flex: 1;
  min-width: 0;
}
.work-card-media {
  position: relative;
  width: 110px;
  height: 64px;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  isolation: isolate;
}
.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s var(--ease),
    filter 0.45s var(--ease);
}
.work-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    185deg,
    transparent 35%,
    rgba(6, 7, 9, 0.75) 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.work-card-media:hover img {
  transform: scale(1.06);
  filter: brightness(0.55) saturate(1.05);
}
.work-card-media:hover::after {
  opacity: 1;
}
.work-card-media:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.work-card-media-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 12, 15, 0.75);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--gold-bright);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.work-card-media:hover .work-card-media-badge,
.work-card-media:focus-visible .work-card-media-badge {
  opacity: 1;
  transform: translateY(0);
}
.work-card-media-badge svg {
  width: 10px;
  height: 10px;
}
.work-card-media-count {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 12, 15, 0.6);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 480px) {
  .work-card-footer {
    flex-wrap: wrap;
  }
  .work-card-media {
    width: 90px;
    height: 56px;
  }
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0s linear 0.3s;
}
.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 9, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gallery-modal-inner {
  position: relative;
  width: min(1080px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease),
    opacity 0.35s var(--ease);
}
.gallery-modal.is-open .gallery-modal-inner {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition:
    transform 0.4s var(--ease) 0.05s,
    opacity 0.35s var(--ease) 0.05s;
}
.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.gallery-modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.gallery-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: all 0.2s;
  color: var(--text-muted);
}
.gallery-close-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: rotate(90deg);
}
.gallery-close-btn svg {
  width: 16px;
  height: 16px;
}
.gallery-viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--bg-elevated);

  direction: ltr;
}
.gallery-track {
  display: flex;
  transition: transform 0.5s var(--ease);
  touch-action: pan-y;
  direction: ltr;
}
.gallery-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--bg-elevated-2);
}
.gallery-slide img {
  max-width: 100%;
  max-height: 550px;

}
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 15, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
  z-index: 2;
}
.gallery-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(10, 12, 15, 0.85);
}
.gallery-nav-prev {
  left: 14px;
}
.gallery-nav-next {
  right: 14px;
}
.gallery-nav-btn svg {
  width: 18px;
  height: 18px;
}
.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 12, 15, 0.65);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  z-index: 2;
  backdrop-filter: blur(6px);
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  direction: ltr;
}
.gallery-thumbs::-webkit-scrollbar {
  height: 5px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.gallery-thumb {
  flex: none;
  width: 76px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: all 0.2s var(--ease);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb:hover {
  opacity: 0.85;
}
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}
@media (max-width: 620px) {
  .gallery-nav-btn {
    width: 36px;
    height: 36px;
  }
  .gallery-thumb {
    width: 60px;
    height: 42px;
  }
}

.contact-panel {
  padding: var(--space-6) var(--space-5);
  margin-bottom: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.contact-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  max-width: 14ch;
  margin-bottom: var(--space-4);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s var(--ease);
}
a.contact-row:hover {
  padding-left: 10px;
  border-color: var(--gold-line);
}
.contact-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-row-left svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
}
.contact-row-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.contact-row-value {
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.contact-row-arrow {
  color: var(--text-faint);
  transition:
    transform 0.25s,
    color 0.25s;
}
a.contact-row:hover .contact-row-arrow {
  color: var(--gold);
  transform: translateX(3px);
}
.contact-row-arrow svg {
  width: 15px;
  height: 15px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-brand img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-row {
    max-width: none;
  }
}
@media (max-width: 620px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-loc {
    flex-wrap: wrap;
  }
  .contact-row {
    flex-wrap: wrap;
  }
}
