/* =========================================================
   Mohammad Hossein Heydari — Base styles
   Design tokens, reset, typography, and core components.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #080A0D;
  --bg-2: #101318;
  --card: #14191F;
  --card-hover: #181E26;
  --accent: #A3E635;
  --accent-soft: rgba(163, 230, 53, 0.12);
  --accent-2: #7DD3FC;
  --text: #F5F7FA;
  --muted: #929BA8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --container: min(1240px, calc(100% - 2 * var(--gutter)));
  --nav-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Subtle engineering-grid backdrop, faded toward the bottom */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  opacity: 0.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Shared typography blocks ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section__title {
  margin-top: 20px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 16ch;
}

.section__header {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-2);
  transition: color 0.3s, border-color 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    translate 0.6s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B0F05;
}

.btn--primary:hover {
  background: #B9F25E;
  border-color: #B9F25E;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.nav.is-scrolled {
  background: rgba(8, 10, 13, 0.86);
  border-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__inner {
  width: var(--container);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
}

.nav__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.nav__pill {
  position: relative;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(20, 25, 31, 0.7);
}

.nav__links {
  position: relative;
  display: flex;
  gap: 2px;
}

.nav__links a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}

/* Sliding pill behind the active link */
.nav__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: 999px;
  background: var(--card-hover);
  border: 1px solid var(--border-strong);
  opacity: 0;
  transition:
    transform 0.6s var(--ease-out),
    width 0.6s var(--ease-out),
    opacity 0.3s;
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}

.nav__toggle span:first-child {
  top: 17px;
}

.nav__toggle span:last-child {
  top: 25px;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__links li + li {
  border-top: 1px solid var(--border);
}

.mobile-menu__links a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mobile-menu__foot a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 110px;
  overflow: hidden;
}

/* Soft ambient light: two radial washes, no blur filters */
.hero__ambient {
  position: absolute;
  inset: -10% -10% auto auto;
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  background:
    radial-gradient(closest-side, rgba(163, 230, 53, 0.10), transparent 70%),
    radial-gradient(closest-side, rgba(125, 211, 252, 0.06), transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.85rem;
  color: var(--muted);
}

.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.4s var(--ease-out) infinite;
}

.hero__name {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--text);
}

.hero__name span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__title .line > span {
  display: inline-block;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__intro {
  max-width: 52ch;
  margin-top: 28px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
}

.socials a svg {
  width: 18px;
  height: 18px;
}

.socials a:hover {
  color: var(--accent-2);
}

/* Hero visual: terminal concept */
.hero__visual {
  will-change: transform;
}

.terminal {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
}

.terminal__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.terminal__bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.terminal__bar em {
  position: absolute;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  color: var(--muted);
}

.terminal__body {
  min-height: 330px;
  padding: 24px 26px 28px;
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 1.1vw, 0.86rem);
  line-height: 1.95;
  color: var(--text);
}

.terminal__line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal__line + .terminal__line {
  margin-top: 2px;
}

.t-prompt,
.t-get {
  color: var(--accent);
}

.t-post {
  color: var(--accent-2);
}

.t-ok {
  color: var(--accent);
}

.t-info {
  color: var(--accent-2);
}

.t-dim {
  color: var(--muted);
}

.terminal__cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  margin-inline: auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.scroll-cue:hover {
  color: var(--text);
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 56px;
  background: var(--border);
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: drip 2.2s var(--ease-in-out) infinite;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(48px, 8vw, 128px);
}

.about__head {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  align-self: start;
}

.about__statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.9vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about__statement span {
  color: var(--accent);
}

.principles {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
}

.principle {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.principle__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  padding-top: 4px;
}

.principle h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.principle p {
  color: var(--muted);
  max-width: 58ch;
}

.about__interests {
  margin-top: 48px;
  display: grid;
  gap: 18px;
}

/* ---------- Stack (compact, brand-logo chips) ---------- */
.stack__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.stack__group {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stack__cat {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  color: var(--text);
  transition:
    border-color 0.4s var(--ease-out),
    background-color 0.4s var(--ease-out),
    color 0.4s,
    translate 0.5s var(--ease-out);
}

.chip:hover {
  border-color: color-mix(in srgb, var(--brand, var(--accent)) 55%, transparent);
  background: color-mix(in srgb, var(--brand, var(--accent)) 10%, var(--card));
  translate: 0 -2px;
}

/* Simple Icons monochrome glyph, tinted with the brand colour via mask */
.chip__logo {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--brand, var(--text));
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: transform 0.5s var(--ease-out);
}

.chip:hover .chip__logo {
  transform: scale(1.15);
}

.chips--sm .chip {
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.chips--sm .chip:hover {
  color: var(--text);
}

/* ---------- Projects (compact card grid) ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 14px 14px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  transition:
    border-color 0.5s var(--ease-out),
    box-shadow 0.6s var(--ease-out),
    background-color 0.5s var(--ease-out);
}

.project-card:hover {
  border-color: rgba(163, 230, 53, 0.35);
  background: var(--card-hover);
  box-shadow: 0 0 44px -14px rgba(163, 230, 53, 0.4);
}

.project-card__num {
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-2);
}

.project-card__media {
  overflow: hidden;
  border-radius: 12px;
}

.project-card__name {
  padding: 0 6px;
  font-size: 1.25rem;
}

.project-card__desc {
  padding: 0 6px;
  font-size: 0.92rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .chips {
  padding: 0 6px;
  margin-top: auto;
}

.project-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 6px 0;
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.3s;
}

.project-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.5s var(--ease-out);
}

.project-card__link:hover {
  color: var(--accent);
}

.project-card__link:hover svg {
  transform: translate(2px, -2px);
}

/* CSS-only previews: small, abstract, no stock imagery */
.pv {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
  transition: transform 0.9s var(--ease-out);
}

.project-card:hover .pv {
  transform: scale(1.05);
}

.pv i {
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

/* Shop: a minimal API response panel */
.pv--shop {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pv__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.pv__method {
  color: var(--accent);
}

.pv__path {
  color: var(--muted);
}

.pv__status {
  margin-left: auto;
  color: var(--accent);
}

.pv__rows {
  display: grid;
  gap: 6px;
}

.pv__rows i {
  height: 14px;
}

.pv__rows i:first-child {
  background: var(--accent-soft);
  border-color: rgba(163, 230, 53, 0.3);
}

.pv__rows--short {
  grid-template-columns: 1fr 1fr;
}

.pv__rows--short i {
  height: 10px;
}

/* Property: listing dashboard */
.pv--property {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
}

.pv__hero {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(125, 211, 252, 0.03));
  border: 1px solid rgba(125, 211, 252, 0.25);
}

.pv__side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.pv__side i {
  height: 18px;
}

.pv__side i:first-child {
  background: var(--accent-soft);
  border-color: rgba(163, 230, 53, 0.3);
}

/* Reservation: time-slot grid */
.pv--reservation {
  display: flex;
  align-items: center;
}

.pv__slots {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pv__slots i {
  height: 26px;
}

.pv__slots i.is-booked {
  background: rgba(125, 211, 252, 0.14);
  border-color: rgba(125, 211, 252, 0.35);
}

.pv__slots i:nth-child(3) {
  background: var(--accent-soft);
  border-color: rgba(163, 230, 53, 0.35);
}

/* ---------- Focus ---------- */
.focus__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.focus__item {
  position: relative;
  padding: 36px 32px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.5s var(--ease-out);
}

.focus__item:hover {
  background: var(--bg-2);
}

.focus__item:hover .focus__num {
  color: var(--accent);
}

.focus__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  transition: color 0.4s;
}

.focus__item h3 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.focus__item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Journey ---------- */
.journey__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.journey__head {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}

.journey__note {
  margin-top: 24px;
  max-width: 40ch;
  color: var(--muted);
}

.timeline {
  position: relative;
  padding-left: 44px;
}

.timeline__track {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}

.timeline__progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform-origin: top;
  transform: scaleY(0);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 6px;
  width: 13px;
  height: 13px;
  margin-left: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: background-color 0.5s, border-color 0.5s;
}

.timeline__item:hover::before {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.timeline__item h3 {
  margin-top: 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.timeline__item p:last-child {
  margin-top: 10px;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Contact ---------- */
.contact {
  padding-bottom: clamp(88px, 10vw, 140px);
}

.contact__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.contact__title span {
  color: var(--muted);
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 2.8rem);
  font-weight: 500;
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.7s var(--ease-out);
  word-break: break-word;
}

.contact__email:hover {
  background-size: 100% 1px;
}

.contact__email svg {
  width: clamp(22px, 2.6vw, 34px);
  height: clamp(22px, 2.6vw, 34px);
  flex-shrink: 0;
  transition: transform 0.6s var(--ease-out);
}

.contact__email:hover svg {
  transform: translate(4px, -4px);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 44px;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__title {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-self: center;
}

.footer__social a,
.footer__meta a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
}

.footer__social a:hover,
.footer__meta a:hover {
  color: var(--accent);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-out);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* ---------- Custom cursor (desktop, fine pointer only) ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), opacity 0.3s, background-color 0.3s;
  will-change: transform;
  mix-blend-mode: normal;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-hover {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(163, 230, 53, 0.18);
  border: 1px solid var(--accent);
}

.has-cursor,
.has-cursor * {
  cursor: none !important;
}

.project-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.04);
}
.project-card__media {
    width: 100%;
    aspect-ratio: 2.88 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card:hover .project-card__image {
    transform: scale(1.04);
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-modal img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.close-image {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__lang {
    font-size: 20px;
    text-decoration: none;
}