/* =========================================================
   shaigiantech.com — fresh styles
   Aesthetic: dark · neon · editorial display serif
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg:           #0d0d0d;
  --bg-elev:     #161616;
  --bg-card:     #131313;
  --line:        #232323;
  --text:        #f4f4f0;
  --text-muted:  #8a8a82;   /* WCAG AA on --bg */
  --text-soft:   #b8b8b0;
  --neon:        #ccff00;
  --neon-dim:    #aacc00;
  --neon-glow:   rgba(204, 255, 0, 0.55);
  --status:      #38e070;

  /* Type */
  --f-display: "Fraunces", "Frank Ruhl Libre", Georgia, serif;
  --f-display-he: "Frank Ruhl Libre", "Fraunces", Georgia, serif;
  --f-sans:    "IBM Plex Sans", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --page-x: clamp(1.25rem, 4vw, 3.5rem);
  --max-w: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hebrew uses different display serif */
html[lang="he"] {
  --f-display: var(--f-display-he);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 4px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--neon);
  color: var(--bg);
  padding: var(--s-3) var(--s-5);
  font-family: var(--f-mono);
  font-size: 13px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* Reduce motion if requested */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--page-x);
  z-index: 100;
  background: transparent;
  transition: background 0.25s var(--ease), backdrop-filter 0.25s var(--ease), border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 13, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__left, .nav__right {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav__name {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.nav__links {
  display: flex;
  gap: var(--s-5);
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  position: relative;
  padding: var(--s-1) 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--neon);
  transition: width 0.2s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { width: 100%; }

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text);
}
.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 0 var(--status);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 224, 112, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(56, 224, 112, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 224, 112, 0); }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1) var(--s-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-toggle__option {
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}
.lang-toggle__option.is-active { color: var(--text); }
.lang-toggle__divider { color: var(--text-muted); }
.lang-toggle:hover { border-color: var(--neon-dim); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: var(--s-10) var(--page-x) var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0 0 var(--s-5);
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.7s var(--ease-out) 0.1s forwards;
}

.hero__headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-5);
  color: var(--text);
}
.hero__headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(8px);
  animation: word-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.25s + var(--i, 0) * 0.12s);
  margin-right: 0.18em;
}
html[dir="rtl"] .hero__headline .word {
  margin-right: 0;
  margin-left: 0.18em;
}
.hero__headline .word--accent em {
  font-style: italic;
  color: var(--neon);
  font-family: var(--f-display);
  font-weight: 700;
  text-shadow: 0 0 40px rgba(204, 255, 0, 0.25);
}
@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--text-soft);
  margin: 0 0 var(--s-7);
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.7s var(--ease-out) 0.85s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.7s var(--ease-out) 1s forwards;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.9rem 1.4rem;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--neon);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--neon-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--neon-glow);
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: var(--s-6);
  left: var(--page-x);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  opacity: 0;
  animation: rise 0.7s var(--ease-out) 1.3s forwards;
}
html[dir="rtl"] .scroll-indicator { left: auto; right: var(--page-x); }
.scroll-indicator__arrow {
  display: inline-block;
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
.scroll-indicator:hover { color: var(--text); }

/* ---------- Sections (shared) ---------- */
.section {
  padding: var(--s-10) var(--page-x);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.section__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.section__num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.section__title em {
  font-style: italic;
  color: var(--neon);
}
.section__title--display {
  font-size: clamp(3rem, 8vw, 7rem);
}
.section__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8) var(--s-6);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.work-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease);
}
.work-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-card__image-link {
  border-color: var(--text-muted);
}
.work-card:hover .work-card__image-link img {
  transform: scale(1.03);
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.work-card__date { color: var(--text-soft); }
.work-card__status--live { color: var(--status); }
.work-card__status--request { color: var(--neon); }
.work-card__ship {
  color: var(--text-muted);
  padding-left: var(--s-3);
  border-left: 1px solid var(--line);
}
html[dir="rtl"] .work-card__ship {
  padding-left: 0;
  padding-right: var(--s-3);
  border-left: 0;
  border-right: 1px solid var(--line);
}

.work-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}
.work-card__title a {
  transition: color 0.2s var(--ease);
}
.work-card:hover .work-card__title a { color: var(--neon); }

.work-card__desc {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.work-card__tags li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Request-card subtle hint */
.work-card--request .work-card__status--request {
  position: relative;
}

/* CSS placeholder for cards without screenshot */
.work-card__placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.placeholder-receipt {
  width: 58%;
  background: var(--bg);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #222;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.6);
}
.placeholder-line {
  height: 8px;
  background: #2a2a2a;
  border-radius: 2px;
  width: 80%;
}
.placeholder-line--wide { width: 100%; }
.placeholder-line--short { width: 50%; }
.placeholder-line--accent {
  width: 40%;
  background: var(--neon);
  height: 10px;
}

/* =========================================================
   APP MOCKUPS (CSS-only stand-ins for screenshots)
   ========================================================= */

.mockup {
  width: 100%;
  height: 100%;
  padding: clamp(0.75rem, 1.6vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
  font-family: var(--f-mono);
  background:
    linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: var(--text-soft);
  overflow: hidden;
  position: relative;
}
.mockup__chrome {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid #222;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a2a;
}
.mockup__title {
  margin-left: var(--s-2);
  color: var(--text-soft);
  text-transform: uppercase;
}
.mockup__meta {
  margin-left: auto;
  color: var(--text-muted);
}
html[dir="rtl"] .mockup { direction: ltr; } /* mockup contents stay LTR */

/* ===== BotScan: dashboard with stat row + rows ===== */
.mockup--botscan .mockup__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.stat {
  background: #131313;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  padding: var(--s-3) var(--s-3);
}
.stat__n {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  color: var(--text);
  line-height: 1;
}
.stat__n--accent { color: var(--neon); }
.stat__l {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}
.mockup__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 10px;
  background: #131313;
  border: 1px solid #1c1c1c;
  border-radius: 3px;
  font-size: 11px;
}
.row__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.row__dot--good { background: var(--status); }
.row__dot--warn { background: var(--neon); box-shadow: 0 0 6px var(--neon-glow); }
.row__name { color: var(--text-soft); flex: 1; font-size: 11px; }
.row__meta { color: var(--text-muted); font-size: 10px; }

/* ===== Call Center: active call + queue ===== */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--status);
  margin-right: 6px;
  animation: pulse 2s infinite;
}
.active-call {
  background: #131313;
  border: 1px solid var(--neon-dim);
  border-radius: 4px;
  padding: var(--s-3) var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.caller-name {
  font-family: var(--f-display);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--text);
}
.caller-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
}
.pulse-ring {
  position: relative;
  width: 24px; height: 24px;
}
.pulse-ring span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--neon);
  border-radius: 50%;
  opacity: 0;
  animation: ring 1.8s var(--ease-out) infinite;
}
.pulse-ring span:nth-child(2) { animation-delay: 0.6s; }
.pulse-ring span:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring {
  0%   { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===== AutoTweet: tweet preview cards ===== */
.tweet {
  background: #131313;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tweet--dim { opacity: 0.55; }
.tweet__head {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tweet__line {
  height: 7px;
  background: #2a2a2a;
  border-radius: 2px;
  width: 80%;
}
.tweet__line--wide { width: 100%; }
.tweet__line--short { width: 55%; background: var(--neon); height: 8px; }

/* ===== Nellachka: kanban ===== */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  flex: 1;
}
.col {
  background: #131313;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  padding: var(--s-2) var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.col__head {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid #1f1f1f;
  margin-bottom: 4px;
}
.task {
  height: 20px;
  background: #1c1c1c;
  border-radius: 3px;
  position: relative;
}
.task::before {
  content: "";
  position: absolute;
  inset: 6px 10px auto 10px;
  height: 6px;
  background: #2a2a2a;
  border-radius: 2px;
}
.task--active {
  background: #1c1c1c;
  border: 1px solid var(--neon);
  box-shadow: 0 0 12px -2px var(--neon-glow);
}
.task--active::before { background: var(--neon); }
.task--done { opacity: 0.4; }
.task--done::before { background: var(--status); }
.task--ghost { opacity: 0.3; }

/* ===== Portrait placeholder ===== */
.portrait-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(204,255,0,0.08), transparent 60%),
    linear-gradient(135deg, #1a1a1a, #0d0d0d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
}
.portrait-placeholder__initials {
  font-family: var(--f-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}
.portrait-placeholder__initials em {
  font-style: italic;
  color: var(--neon);
}
.portrait-placeholder__caption {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* "More" card */
.work-card--more .work-card__image-link {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(204,255,0,0.06), transparent 60%),
    var(--bg-card);
}
.work-card__more-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.work-card__more-num {
  font-family: var(--f-display);
  font-size: 5rem;
  font-style: italic;
  color: var(--neon);
  line-height: 1;
}
.work-card__more-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-8);
  align-items: start;
}
.about__portrait {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  aspect-ratio: 4 / 5;
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__bio {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 var(--s-5);
  letter-spacing: -0.005em;
}
.about__bio em {
  font-style: italic;
  color: var(--neon);
}
.about__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.about__meta div { margin: 0; }
.about__meta dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: var(--s-1);
}
.about__meta dd {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

/* ---------- Contact ---------- */
.section--contact .section__head {
  margin-bottom: var(--s-7);
}

.contact-list {
  border-top: 1px solid var(--line);
}
.contact-row {
  border-bottom: 1px solid var(--line);
}
.contact-row a {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  font-family: var(--f-mono);
  transition: padding 0.3s var(--ease-out), color 0.2s var(--ease);
}
.contact-row a:hover {
  padding-left: var(--s-4);
  color: var(--neon);
}
html[dir="rtl"] .contact-row a:hover {
  padding-left: 0;
  padding-right: var(--s-4);
}
.contact-row__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.contact-row__value {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.contact-row:hover .contact-row__value {
  font-style: italic;
  color: var(--neon);
}
.contact-row__arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out), color 0.2s var(--ease);
  display: inline-block;
}
.contact-row:hover .contact-row__arrow {
  transform: translateX(8px);
  color: var(--neon);
}
html[dir="rtl"] .contact-row__arrow {
  transform: scaleX(-1);
}
html[dir="rtl"] .contact-row:hover .contact-row__arrow {
  transform: scaleX(-1) translateX(8px); /* under scaleX, +X visually moves left */
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-6) var(--page-x);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .nav__links { gap: var(--s-4); }
  .nav__name { display: none; }

  .work-grid {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }

  .about {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .about__portrait { max-width: 380px; }

  .contact-row a {
    grid-template-columns: 140px 1fr auto;
    padding: var(--s-5) 0;
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav {
    padding: var(--s-3) var(--page-x);
  }
  .nav__links { display: none; }
  .nav__left { gap: var(--s-3); }
  .nav__right { gap: var(--s-3); }

  .hero {
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
    min-height: 100svh;
  }
  .hero__headline {
    font-size: clamp(3rem, 16vw, 6rem);
    letter-spacing: -0.02em;
  }
  .hero__sub { font-size: 1rem; }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }

  .section { padding: var(--s-8) var(--page-x); }
  .section__head {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--s-3);
  }
  .section__meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .section__title { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .section__title--display { font-size: clamp(2.5rem, 12vw, 4.5rem); }

  .about__meta {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .contact-row a {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--s-2) var(--s-3);
    padding: var(--s-5) 0;
  }
  .contact-row__label { grid-column: 1; grid-row: 1; }
  .contact-row__arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .contact-row__value { grid-column: 1; grid-row: 2; }

  .footer {
    flex-direction: column;
    gap: var(--s-2);
    text-align: center;
    padding: var(--s-5) var(--page-x);
  }
}

/* Very small (≤ 380px) — extra mobile clamp */
@media (max-width: 380px) {
  .hero__headline { font-size: 2.75rem; }
  .section__title { font-size: 2rem; }
}
