/* ==========================================================
   Anas Zayed — Portfolio
   Dark Futuristic · Neon Purple & Magenta
   ========================================================== */

@font-face {
  font-family: "29LT Bukra";
  src: url("../fonts/Bukra-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "29LT Bukra";
  src: url("../fonts/Bukra-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08091B;
  --navy: #11152F;
  --deep: #32105D;
  --electric: #782BFF;
  --violet: #A44CFF;
  --magenta: #F000A8;
  --cyan: #00BFFF;
  --white: #FFFFFF;
  --lav: #B8A9D9;

  --line: rgba(164, 76, 255, .22);
  --line-strong: rgba(164, 76, 255, .6);
  --radius: 16px;
  --wrap: 1240px;
  --header-h: 68px;
  --font: "29LT Bukra", "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

/* ambient neon light at the edges of every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 100% 0%, rgba(120, 43, 255, .20), transparent 60%),
    radial-gradient(55vmax 40vmax at 0% 100%, rgba(240, 0, 168, .14), transparent 60%),
    radial-gradient(45vmax 32vmax at 0% 0%, rgba(50, 16, 93, .55), transparent 65%);
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(8, 9, 27, .78), rgba(8, 9, 27, 0)) no-repeat;
  background-origin: border-box;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 27, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  direction: ltr;
  margin-left: auto;
}
.brand::before {
  content: "";
  width: 11px; height: 11px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(240, 0, 168, .7);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--lav);
  font-size: .98rem;
  font-weight: 700;
  transition: color .2s;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 14px 2px 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, var(--violet), var(--magenta));
  box-shadow: 0 0 10px rgba(164, 76, 255, .9);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: 0 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--electric), #8d3bff);
  color: var(--white);
  box-shadow:
    inset 0 0 0 1px rgba(164, 76, 255, .55),
    0 10px 34px -8px rgba(120, 43, 255, .8),
    0 0 24px rgba(120, 43, 255, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(200, 140, 255, .7),
    0 14px 44px -8px rgba(120, 43, 255, .95),
    0 0 34px rgba(164, 76, 255, .55);
}
.btn-ghost {
  background: rgba(17, 21, 47, .5);
  border-color: rgba(184, 169, 217, .45);
  color: var(--white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--violet);
  box-shadow: 0 0 26px rgba(164, 76, 255, .4);
  transform: translateY(-2px);
}
.head-wa { min-height: 42px; padding: 0 1.2rem; font-size: .95rem; }

/* floating WhatsApp (phones only) */
.fab {
  position: fixed;
  left: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  width: 56px; height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--magenta));
  color: var(--white);
  box-shadow: 0 10px 30px -6px rgba(240, 0, 168, .6), 0 0 22px rgba(120, 43, 255, .55);
}
.fab svg { width: 26px; height: 26px; }
body.no-scroll .fab { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(640px, min(100svh, 920px));
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  display: block;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0, rgba(8, 9, 27, 0) 36%),
    linear-gradient(to left, rgba(8, 9, 27, .82) 0, rgba(8, 9, 27, .4) 42%, rgba(8, 9, 27, 0) 72%);
}
.hero-inner { padding-block: calc(var(--header-h) + 36px) 84px; }
.hero-copy { max-width: 580px; }

.kicker {
  display: block;
  direction: ltr;
  text-align: right;
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--lav);
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.005em;
}
.hero h1 span { display: block; }
.h1-b {
  color: var(--violet);
  text-shadow: 0 0 38px rgba(120, 43, 255, .75), 0 0 80px rgba(240, 0, 168, .25);
}
.hero .sub {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .94);
}
.hero .desc {
  margin-top: 1rem;
  max-width: 34em;
  color: var(--lav);
  font-size: 1.1rem;
  line-height: 2;
}
.actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* one orchestrated entrance, nothing else moves on its own */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

/* ---------- Home tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-block: 28px 20px;
}
.tile {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--navy), var(--deep));
  text-decoration: none;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.tile:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px -24px rgba(120, 43, 255, .7);
  transform: translateY(-4px);
}
.tile-media { position: absolute; inset: 0; z-index: -2; display: flex; gap: 6px; }
.tile-media.col { flex-direction: column; }
.tile-media img {
  flex: 1 1 0;
  min-width: 0; min-height: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-media.ph {
  background:
    radial-gradient(80% 70% at 85% 10%, rgba(120, 43, 255, .45), transparent 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(240, 0, 168, .3), transparent 60%),
    linear-gradient(145deg, var(--navy), var(--deep));
}
.tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 9, 27, .94) 0, rgba(8, 9, 27, .55) 30%, rgba(8, 9, 27, 0) 62%);
}
.tile-label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.6rem;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.3;
}
.tile-go {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(17, 21, 47, .6);
  box-shadow: 0 0 20px rgba(120, 43, 255, .35);
  transition: background .3s, box-shadow .3s;
}
.tile:hover .tile-go { background: var(--electric); box-shadow: 0 0 28px rgba(164, 76, 255, .8); }
.tile-go svg { width: 20px; height: 20px; }

/* ---------- Sub pages ---------- */
.page-head { padding: calc(var(--header-h) + 52px) 0 26px; }
.page-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
}
.page-head p { margin-top: .6rem; color: var(--lav); font-size: 1.05rem; }

/* magazines grid */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 38px 24px;
  padding-block: 10px 10px;
}
.mag {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}
.mag-stack { position: relative; }
.mag-stack.multi::before,
.mag-stack.multi::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--navy);
  transition: transform .35s;
}
.mag-stack.multi::before { transform: translate(-7px, -6px); opacity: .85; z-index: 0; }
.mag-stack.multi::after  { transform: translate(-14px, -12px); opacity: .5; z-index: -1; }
.mag-cover {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 3 / 4;           /* كل أغلفة المجلات بنفس المقاس */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .9);
  transition: transform .35s, border-color .3s, box-shadow .3s;
}
.mag-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mag:hover .mag-cover, .mag:focus-visible .mag-cover {
  transform: translateY(-6px);
  border-color: var(--violet);
  box-shadow: 0 26px 56px -18px rgba(120, 43, 255, .65);
}
.mag:hover .mag-stack.multi::before { transform: translate(-9px, -12px); }
.mag:hover .mag-stack.multi::after  { transform: translate(-18px, -22px); }
.mag-meta { display: block; margin-top: 16px; }
.mag-title { display: block; font-size: 1.02rem; line-height: 1.5; }
.mag-count { display: block; margin-top: 2px; font-size: .95rem; color: var(--lav); }

/* stores */
.proj { margin-top: 54px; }
.proj:first-of-type { margin-top: 14px; }
.proj-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 18px; }
.proj-head h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.4; }
.proj-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, var(--line-strong), transparent);
}
.shots { display: grid; gap: 16px; }
.shots + .shots { margin-top: 16px; }
/* الصور بمقاساتها الحقيقية، متراصة في أعمدة بدون فراغات */
.shots.small, .shots.posts { display: block; column-width: 230px; column-gap: 16px; }
.shots.small .shot, .shots.posts .shot { margin-bottom: 16px; break-inside: avoid; -webkit-column-break-inside: avoid; }
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  cursor: zoom-in;
  transition: border-color .3s, box-shadow .3s;
}
.shot img { display: block; width: 100%; height: auto; }
.shot:hover, .shot:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px -20px rgba(120, 43, 255, .7);
}

.empty {
  margin-top: 20px;
  padding: 80px 20px;
  text-align: center;
  color: var(--lav);
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(17, 21, 47, .35);
}

/* ---------- CTA + footer ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 84px;
  padding: 54px 24px;
  text-align: center;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(50, 16, 93, .6), rgba(17, 21, 47, .75));
}
.cta::before {
  content: "";
  position: absolute; z-index: -1;
  width: 420px; height: 420px;
  inset: auto auto -260px -120px;
  background: radial-gradient(closest-side, rgba(240, 0, 168, .35), transparent);
}
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.4; }
.cta .btn { margin-top: 1.6rem; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--lav);
  font-size: .9rem;
}
.foot .en { direction: ltr; }

/* ---------- Viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background:
    radial-gradient(60vmax 40vmax at 100% 0%, rgba(120, 43, 255, .14), transparent 60%),
    radial-gradient(55vmax 40vmax at 0% 100%, rgba(240, 0, 168, .10), transparent 60%),
    #050612;
}
.viewer.open { display: flex; }
.v-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
}
.v-info { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.v-title { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-count { color: var(--lav); font-size: .92rem; direction: ltr; unicode-bidi: isolate; flex: none; }
.v-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(17, 21, 47, .75);
  cursor: pointer;
  transition: background .25s, box-shadow .25s, opacity .25s;
}
.v-btn:hover:not(:disabled) { background: var(--electric); box-shadow: 0 0 24px rgba(164, 76, 255, .7); }
.v-btn:disabled { opacity: .28; cursor: default; }
.v-btn svg { width: 22px; height: 22px; }
.v-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-img {
  display: block;
  flex: none;
  max-width: none;
  transform-origin: center center;
  will-change: transform;
  -webkit-user-drag: none;
  background: var(--navy);
  box-shadow: 0 30px 80px -30px rgba(120, 43, 255, .45);
}
.v-img.smooth { transition: transform .24s cubic-bezier(.2, .7, .2, 1); }
.v-stage.zoomed { cursor: grab; }
.v-stage.zoomed:active { cursor: grabbing; }
.v-stage:not(.zoomed) { cursor: zoom-in; }
.v-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 52px; height: 52px; }
.v-prev { right: 14px; }
.v-next { left: 14px; }
.v-hint {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  translate: -50% 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(17, 21, 47, .88);
  border: 1px solid var(--line);
  color: var(--lav);
  font-size: .9rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
  z-index: 3;
}
.v-hint.show { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
  :root { --header-h: 60px; }
  .wrap { padding-inline: 18px; }
  .head-wa { display: none; }
  .fab { display: flex; }
  .nav { gap: 0; }
  .nav a { padding: 8px 10px; font-size: .95rem; }
  .brand { font-size: 1.12rem; }

  .hero { align-items: flex-end; min-height: max(620px, min(100svh, 860px)); }
  .hero-bg img { object-position: 22% 15%; }
  .hero-shade {
    background:
      linear-gradient(to top, var(--bg) 0, rgba(8, 9, 27, .93) 40%, rgba(8, 9, 27, .25) 72%, rgba(8, 9, 27, .4) 100%);
  }
  .hero-inner { padding-block: 0 46px; }
  .hero .desc { font-size: .98rem; line-height: 1.9; }
  .actions .btn { flex: 1 1 100%; }

  .page-head { padding-top: calc(var(--header-h) + 34px); }
  .mag-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .shots.small, .shots.posts { column-width: auto; column-count: 2; column-gap: 12px; }
  .shots.small .shot, .shots.posts .shot { margin-bottom: 12px; }
  .shots { gap: 12px; }
  .proj { margin-top: 42px; }
  .cta { margin-top: 64px; padding: 42px 20px; border-radius: 22px; }
  .foot { padding-inline: 18px; }

  .v-nav { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: none; width: 50px; height: 50px; }
  .v-prev { right: 18px; }
  .v-next { left: 18px; }
  .v-hint { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
  .nav a { padding: 8px 7px; font-size: .9rem; }
  .brand::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- About + services ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding-block: 70px 0;
  align-items: start;
}
.about h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
.about-me p { color: var(--lav); font-size: 1.08rem; line-height: 2; max-width: 34em; }
.tools { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools li {
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 21, 47, .6);
  font-size: .92rem;
  letter-spacing: .02em;
}
.services ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  position: relative;
  padding: 16px 30px 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  line-height: 1.6;
}
.services li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 9px; height: 9px;
  margin-top: -4px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(240, 0, 168, .6);
}
.services li { padding-inline: 26px 0; }
.foot { flex-wrap: wrap; align-items: center; }
.foot-mail { direction: ltr; color: var(--lav); text-decoration: none; transition: color .2s; }
.foot-mail:hover { color: var(--white); text-decoration: underline; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
}
@media (max-width: 700px) {
  .foot { flex-direction: column; align-items: flex-start; gap: .4rem; }
}


/* ---------- Offers page: two sections ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.subnav a {
  padding: 7px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 21, 47, .6);
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s, box-shadow .25s;
}
.subnav a:hover { background: var(--electric); box-shadow: 0 0 22px rgba(164, 76, 255, .6); }
.offer-sec { margin-top: 46px; }
.offer-sec:first-of-type { margin-top: 10px; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
}
.sec-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, var(--line-strong), transparent);
}
.sec-lead { margin: .35rem 0 1.5rem; color: var(--lav); }
#posts-list .proj:first-child { margin-top: 0; }

@media (max-width: 700px) {
  .offer-sec { margin-top: 38px; }

  /* phone: name on one line, job title under it — smaller and bold */
  .kicker { line-height: 1.5; }
  .k-name { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: .16em; color: var(--white); }
  .k-sep { display: none; }
  .k-role { display: block; margin-top: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--lav); }
}

/* ---------- Header on phones: brand never wraps ---------- */
.brand { white-space: nowrap; flex: none; }
@media (max-width: 700px) {
  .bar { gap: 6px; }
  .brand { font-size: 1.05rem; letter-spacing: .01em; gap: 8px; }
  .nav a { padding: 8px 7px; font-size: .9rem; }
  .nav a[aria-current="page"]::after { inset: auto 7px 2px 7px; }
}
@media (max-width: 360px) {
  .brand { font-size: .98rem; }
  .nav a { padding: 8px 5px; font-size: .86rem; }
}


/* ---------- Phone fixes: no duplicated name, header never overlaps the hero ---------- */
@media (max-width: 700px) {
  /* the brand in the header already shows the name, so hide the repeat above the title */
  .k-name { display: none; }
  .kicker { margin-bottom: 1rem; }
  /* keep the hero text below the fixed header even when the text is tall */
  .hero-inner { padding-block: calc(var(--header-h) + 24px) 46px; }
}

/* narrow phones: brand on its own row, links under it, nothing can overlap */
@media (max-width: 420px) {
  :root { --header-h: 92px; }
  .bar { flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px 0; padding-block: 6px; }
  .brand { flex: 1 1 100%; justify-content: center; margin: 0; }
  .nav { flex: 1 1 100%; justify-content: center; gap: 10px; }
  .nav a { padding: 6px 10px; font-size: .92rem; }
  .nav a[aria-current="page"]::after { inset: auto 10px 0 10px; }
  .site-header { background: linear-gradient(to bottom, rgba(8, 9, 27, .92), rgba(8, 9, 27, .55)) no-repeat; }
}
