/* =========================================================
   Rinas Vision — Portfolio
   Palette: Creme #EEE4DA · Sand #D8C4AC · Dusty Pink #C8A49F · Dark Burgundy #400E13
   ========================================================= */

:root {
  --cream: #EEE4DA;
  --cream-soft: #F6F0E9;
  --sand: #D8C4AC;
  --pink: #C8A49F;
  --burgundy: #400E13;
  --burgundy-soft: #5a1c22;

  --ink: var(--burgundy);
  --ink-muted: rgba(64, 14, 19, 0.66);
  --ink-faint: rgba(64, 14, 19, 0.42);
  --line: rgba(64, 14, 19, 0.14);
  --line-strong: rgba(64, 14, 19, 0.26);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 20px rgba(64, 14, 19, 0.08);
  --shadow-md: 0 18px 45px rgba(64, 14, 19, 0.14);
  --shadow-lg: 0 30px 70px rgba(64, 14, 19, 0.20);

  --header-h: 50px;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: var(--pink); color: var(--burgundy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--burgundy);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--pink);
  vertical-align: middle;
  margin-right: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-desc,
.lead { color: var(--ink-muted); font-size: 1.05rem; text-align: justify; }

/* Justification smoothing: allow hyphenation + prettier line breaks
   so justified text doesn't open big gaps between words. */
.section-desc,
.lead,
.hero-text,
.about-content > p,
.project-body p,
.post p {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 12 5 4;
  text-wrap: pretty;
  text-justify: inter-word;
}

/* Words that must never be split across lines */
.nowrap {
  white-space: nowrap;
  hyphens: none;
  -webkit-hyphens: none;
}

.section { padding: clamp(46px, 6vw, 78px) 0; }

.section-head {
  max-width: 620px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--burgundy-soft); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--burgundy);
  margin-top: 4px;
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: #4D0E13;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(238, 228, 218, 0.18);
  background: #4D0E13;
  box-shadow: none;
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
}
.brand-mark {
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--burgundy);
  color: var(--cream);
  padding: 4px 9px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.brand-text {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.brand-logo {
  height: 26px;
  width: auto;
  border-radius: 6px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(238, 228, 218, 0.74);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-link:hover { color: var(--cream); background: rgba(238, 228, 218, 0.1); }
.nav-link.is-active { color: var(--cream); background: rgba(238, 228, 218, 0.14); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(238, 228, 218, 0.4);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--burgundy));
  transition: width 0.1s linear;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
  background-color: var(--cream);
  background-image:
    linear-gradient(
      105deg,
      rgba(238, 228, 218, 0.68) 0%,
      rgba(238, 228, 218, 0.45) 38%,
      rgba(238, 228, 218, 0.12) 72%,
      rgba(238, 228, 218, 0) 100%
    ),
    url("../assets/rinashome.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--burgundy-soft);
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.32em;
  background: var(--pink);
  opacity: 0.5;
  z-index: -1;
  border-radius: 4px;
}
.hero-title, .hero-text { position: relative; }

.hero-text { color: var(--ink-muted); font-size: 1.1rem; max-width: 42ch; margin-bottom: 34px; text-align: justify; }
.hero-text strong { color: var(--burgundy); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  margin: 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    90deg,
    rgba(64, 14, 19, 0) 0%,
    var(--burgundy) 50%,
    rgba(64, 14, 19, 0) 100%
  ) 1;
  padding-top: 26px;
}
.hero-stats .stat dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 4px;
}
.hero-stats .stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--burgundy);
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: min(330px, 82%);
  aspect-ratio: 1 / 1;
  margin: 0;
  animation: logoFloat 9s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

/* Hero floating labels */
.hero-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-label {
  position: absolute;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--burgundy-soft);
  background: rgba(238, 228, 218, 0.5);
  border: 1px solid rgba(64, 14, 19, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(64, 14, 19, 0.06);
  will-change: transform, translate, opacity;
  animation: drift 60s ease-in-out infinite;
}

/* Positions — arranged by Fatima-Zahra (tag placement editor) */
.hero-label.l1 { top: 62px; left: -34px; animation-duration: 18s, 20s; animation-delay: -2s, -4s; }
.hero-label.l2 { top: -81px; left: 104px; animation-duration: 22s, 24s; animation-delay: -7s, -9s; }
.hero-label.l3 { top: -1px; left: -145px; animation-duration: 20s, 22s; animation-delay: -11s, -13s; }
.hero-label.l4 { top: 155px; left: 47px; animation-duration: 24s, 27s; animation-delay: -9s, -12s; }
.hero-label.l5 { top: 345px; left: -23px; animation-duration: 19s, 23s; animation-delay: -5s, -8s; }
.hero-label.l6 { top: 281px; left: 231px; animation-duration: 26s, 29s; animation-delay: -13s, -15s; }
.hero-label.l7 { top: 87px; left: 283px; animation-duration: 21s, 25s; animation-delay: -17s, -21s; }
.hero-label.l8 { top: 231px; left: -162px; animation-duration: 23s, 31s; animation-delay: -19s, -23s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-10px, -8px, 0); }
  50%  { transform: translate3d(6px, -12px, 0); }
  75%  { transform: translate3d(10px, 6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes driftSmall {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-4px, -3px, 0); }
  50%  { transform: translate3d(3px, -5px, 0); }
  75%  { transform: translate3d(4px, 3px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding-bottom: clamp(32px, 4vw, 48px); }
.about-grid {
  display: block;
}
.about-content { max-width: 720px; }
.about-content .lead { margin-bottom: 18px; }
.about-content > p { color: var(--ink-muted); margin-bottom: 22px; text-align: justify; }

.about-points {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
  display: grid;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: inset 0 0 0 4px var(--cream);
}

.skills-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.skills-card h3 { font-size: 1.25rem; margin-bottom: 22px; }
.skill-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.skill-groups > li { display: grid; gap: 10px; }
.skill-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(216, 196, 172, 0.6);
  color: var(--burgundy);
  border: 1px solid var(--line);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--burgundy-soft);
}
.availability .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #6f8f5f;
  box-shadow: 0 0 0 4px rgba(111, 143, 95, 0.22);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 50% { box-shadow: 0 0 0 8px rgba(111, 143, 95, 0.05); } }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { background: var(--cream-soft); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  overflow: hidden;
}
.project-thumb.project-slider {
  padding: 0;
}
.project-thumb.thumb-img {
  padding: 0;
}
.project-thumb.thumb-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-thumb:not(.project-slider)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.thumb-2 { background: linear-gradient(135deg, #5a3b2e, #8a6a4f); }
.thumb-3 { background: linear-gradient(135deg, #7a2a30, #C8A49F); }
.thumb-4 { background: linear-gradient(135deg, #8a6a4f, #D8C4AC); }
.thumb-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(238, 228, 218, 0.22);
  border: 1px solid rgba(238, 228, 218, 0.4);
  backdrop-filter: blur(4px);
}
.thumb-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  max-width: 12ch;
}
.slider-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.slider-image.active {
  opacity: 1;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}
.slider-btn.prev {
  left: 10px;
}
.slider-btn.next {
  right: 10px;
}
.project-thumb .thumb-tag,
.project-thumb .thumb-title {
  position: absolute;
  z-index: 3;
}
.project-thumb .thumb-tag {
  top: 24px;
  left: 24px;
}
.project-thumb .thumb-title {
  bottom: 24px;
  left: 24px;
}
.project-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.project-body p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 18px; text-align: left; }
.project-tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0; margin: 0 0 20px;
}
.project-tags li {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--burgundy-soft);
}
.project-body .link-arrow { margin-top: auto; }

/* =========================================================
   TOOLS
   ========================================================= */
.tools { background: var(--cream); padding-top: clamp(14px, 2vw, 24px); }
.tools-category { margin-bottom: clamp(36px, 5vw, 56px); }
.tools-category:last-child { margin-bottom: 0; }
.category-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--burgundy);
  margin-bottom: 28px;
}
.category-num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(216, 196, 172, 0.5);
  border: 1px solid var(--line);
}
.tools-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    var(--cream) 12%,
    var(--cream) 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    var(--cream) 12%,
    var(--cream) 88%,
    transparent 100%
  );
}
.tools-inner {
  display: flex;
  width: max-content;
  animation: toolsScroll 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.tools-track:hover .tools-inner { animation-play-state: paused; }
.tool-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  min-width: 140px;
  margin-right: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(64, 14, 19, 0.12);
  box-shadow: 0 8px 24px rgba(64, 14, 19, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(64, 14, 19, 0.18);
  border-color: rgba(64, 14, 19, 0.2);
}
.tool-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.tool-card:not(:has(img)) {
  padding: 20px 28px;
  min-width: 130px;
  justify-content: center;
}
.tool-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--burgundy);
  white-space: nowrap;
}
@keyframes toolsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tools-inner { animation: none; }
}

@media (max-width: 720px) {
  .tools-track {
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      var(--cream) 8%,
      var(--cream) 92%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      var(--cream) 8%,
      var(--cream) 92%,
      transparent 100%
    );
  }
  .tool-card { min-width: 96px; padding: 18px 22px; }
  .tool-card img { width: 34px; height: 34px; }
  .tool-name { font-size: 0.8rem; }
}

/* =========================================================
   BLOG
   ========================================================= */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter:hover { background: rgba(216, 196, 172, 0.5); }
.filter.is-active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post {
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.post.is-hidden { display: none; }

.post-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.post-top time {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.72rem;
}
.post-cat {
  display: inline-block;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 13px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: var(--font-body);
}
/* WEBSITES — soft blue */
.post-cat[data-cat="websites"],
.post[data-category="websites"] .post-cat {
  color: #4a7396;
  background: #e3edf5;
}
/* AI AUTOMATION — soft sage green */
.post-cat[data-cat="ai-automation"],
.post[data-category="ai-automation"] .post-cat {
  color: #4c6b52;
  background: #e4ede5;
}
/* BRANDING — soft lavender */
.post-cat[data-cat="branding"],
.post[data-category="branding"] .post-cat {
  color: #7a6394;
  background: #eae5f2;
}
.post h3 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 8px; }
.post h3 a { transition: color 0.3s var(--ease); }
.post h3 a:hover { color: var(--burgundy-soft); }
.post p { color: var(--ink-muted); font-size: 0.88rem; line-height: 1.55; margin-bottom: 0; text-align: left; }
.blog-desc { font-size: 0.92rem; }
.projects-desc { font-size: 0.92rem; }
/* Keep the projects intro on a single line on desktop */
.projects-head { max-width: 720px; }
.projects-head .projects-desc { text-align: left; }
@media (max-width: 820px) and (min-width: 721px) {
  .projects-head .projects-desc { font-size: 0.88rem; }
}
.tools-desc { font-size: 0.92rem; }
.post-more { margin-top: auto; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }

/* Blog card slider */
.post-slider .post-slides { flex: 1; }
.post-slide { display: none; }
.post-slide.active {
  display: block;
  animation: postFade 0.45s var(--ease);
}
@keyframes postFade {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
.post-navs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.post-nav {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--burgundy);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.post-nav:hover { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.post-dots { display: inline-flex; gap: 6px; }
.post-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.3s var(--ease);
}
.post-dot.active { background: var(--burgundy); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--cream-soft); }
.contact-inner { display: flex; justify-content: center; }
.contact-card {
  width: 100%;
  max-width: 680px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  box-shadow: var(--shadow-sm);
}
.contact-card .eyebrow::before { display: none; }
.contact-card .section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 14px; }
.contact-card .section-desc { margin-inline: auto; max-width: 42ch; font-size: 0.95rem; text-align: center; }

.contact-form {
  width: 100%;
  margin-top: 28px;
  text-align: left;
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(64, 14, 19, 0.34); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(200, 164, 159, 0.22);
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit { justify-self: center; margin-top: 4px; }
.form-submit[disabled] { opacity: 0.6; cursor: wait; }
.form-status {
  margin: -4px 0 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  text-align: center;
  color: var(--burgundy);
}
.form-status.is-error { color: #a3323c; }
.contact-note { margin-top: 16px; font-size: 0.85rem; color: var(--ink-faint); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 9px;
  border: 1px solid rgba(64, 14, 19, 0.16);
  border-radius: 100px;
  color: var(--burgundy);
  text-align: left;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-link:hover {
  background: rgba(200, 164, 159, 0.18);
  border-color: rgba(64, 14, 19, 0.28);
  transform: translateY(-2px);
}
.contact-link-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(64, 14, 19, 0.08);
  flex-shrink: 0;
}
.contact-link-icon svg { display: block; }
.contact-link-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-bottom: 1px;
}
.contact-link-value { display: block; font-size: 0.82rem; font-weight: 600; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 55%,
    rgba(200, 164, 159, 0.3) 80%,
    rgba(64, 14, 19, 0.14) 100%
  );
  color: var(--burgundy);
  padding: clamp(16px, 2.2vw, 24px) 0 26px;
  text-align: center;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(64, 14, 19, 0) 0%,
    var(--burgundy) 50%,
    rgba(64, 14, 19, 0) 100%
  );
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo { height: 58px; width: auto; }
.footer-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  letter-spacing: 0.01em;
  background: linear-gradient(
    90deg,
    #5a1c22 0%,
    #5a1c22 38%,
    #c08b90 50%,
    #5a1c22 62%,
    #5a1c22 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: footerTaglineShimmer 6s ease-in-out infinite;
}
@keyframes footerTaglineShimmer {
  0% { background-position: 100% 0; }
  55% { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #400e13 0%, #7c3a3f 50%, #400e13 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--burgundy);
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.4s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--burgundy-soft); transform: translateY(-3px); }

/* =========================================================
   CASE STUDY PAGES
   ========================================================= */
.case-page { background: var(--cream); }
.case-hero {
  padding: calc(var(--header-h) + 24px) 0 14px;
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.case-back:hover { color: var(--burgundy); transform: translateX(-5px); }
.case-figure {
  margin: 0 auto;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.case-figure img { width: 100%; height: auto; }
.case-body { padding: 0 0 16px; }
.case-cta {
  padding: 18px 0 90px;
  text-align: center;
}
.case-cta .section-title { font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin-bottom: 8px; }
.case-cta .section-desc { font-size: 0.92rem; max-width: 480px; margin: 0 auto 22px; text-align: center; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero {
    background-image:
      linear-gradient(
        rgba(238, 228, 218, 0.74) 0%,
        rgba(238, 228, 218, 0.84) 100%
      ),
      url("../assets/rinashome.jpg");
    background-position: center;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; width: 100%; margin: 0 auto; min-height: 440px; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-link { padding: 13px 16px; font-size: 1rem; color: var(--ink-muted); }
  .nav-link:hover { color: var(--burgundy); }
  .nav-link.is-active { color: var(--burgundy); background: rgba(200, 164, 159, 0.28); }

  .blog-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-visual { min-height: 270px; }
  .hero-photo { width: 270px; max-width: 100%; }
  .hero-label { font-size: 0.62rem; padding: 6px 11px; letter-spacing: 0.05em; animation-name: driftSmall; }
  /* Mobile: the floating tags are hidden — remove the empty visual box so no gap is left */
  .hero-labels { display: none; }
  .hero-visual { display: none; }
  .hero-label.l1 { top: 40px; left: 12px; right: auto; bottom: auto; }
  .hero-label.l2 { top: 4px; right: 8px; left: auto; bottom: auto; }
  .hero-label.l3 { top: 16px; left: 100px; right: auto; bottom: auto; }
  .hero-label.l4 { top: 168px; right: -23px; left: auto; bottom: auto; }
  .hero-label.l5 { top: 150px; left: -24px; right: auto; bottom: auto; }
  .hero-label.l6 { bottom: 20px; left: 92px; right: auto; top: auto; }
  .hero-label.l7 { top: 70px; right: -14px; left: auto; bottom: auto; }
  .hero-label.l8 { top: 82px; left: -16px; right: auto; bottom: auto; }
  .footer-inner { gap: 10px; }

  /* Mobile keeps the same justified rhythm as desktop.
     Hyphenation is loosened a little so narrow lines don't open big word gaps. */
  .hero-text,
  .section-desc,
  .lead,
  .about-content > p { text-align: justify; hyphenate-limit-chars: 8 4 3; }
}

@media (max-width: 460px) {
  .brand-text { display: none; }
  .email-btn { flex-direction: column; padding: 22px; border-radius: var(--radius); }
  .email-text { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   TAG PLACEMENT EDITOR  (open index.html?tags=edit)
   ========================================================= */
.tag-edit .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

.tag-edit .hero-photo {
  animation: none !important;
  outline: 1px dashed rgba(64, 14, 19, 0.24);
  outline-offset: 4px;
  border-radius: 6px;
  background-image:
    linear-gradient(to right, rgba(64, 14, 19, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(64, 14, 19, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.tag-edit .hero-label {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  animation: none !important;
  outline: none;
}
.tag-edit .hero-label.is-active {
  cursor: grabbing;
  z-index: 6;
  box-shadow: 0 0 0 2px var(--burgundy), 0 12px 26px rgba(64, 14, 19, 0.18);
}
.tag-edit .hero-label:focus-visible {
  box-shadow: 0 0 0 2px var(--burgundy);
}

.tag-editor {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  width: min(330px, calc(100vw - 32px));
  max-height: min(72vh, 660px);
  overflow: auto;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(246, 240, 233, 0.97);
  color: var(--burgundy);
  border: 1px solid rgba(64, 14, 19, 0.18);
  box-shadow: 0 20px 50px rgba(64, 14, 19, 0.24);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
}
.tag-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.tag-editor__head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.tag-editor__x {
  padding: 0 4px !important;
  border: 0 !important;
  background: none !important;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink-muted);
}
.tag-editor__x:hover { color: var(--burgundy); background: none !important; }
.tag-editor__meta {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tag-editor__hint {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-align: left;
}
.tag-editor__list {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
}
.tag-editor__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(64, 14, 19, 0.12);
  font-size: 0.76rem;
}
.tag-editor__list b { font-weight: 600; }
.tag-editor__list span {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tag-editor__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag-editor button {
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 100px;
  padding: 8px 14px;
  border: 1px solid rgba(64, 14, 19, 0.24);
  background: transparent;
  color: var(--burgundy);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.tag-editor button:hover { background: rgba(64, 14, 19, 0.07); }
.tag-editor button[data-act="copy"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}
.tag-editor button[data-act="copy"]:hover { background: var(--burgundy-soft); }
.tag-editor__fb {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: #4c6b52;
  text-align: left;
}
.tag-editor details { margin-top: 6px; }
.tag-editor summary {
  cursor: pointer;
  font-size: 0.74rem;
  color: var(--ink-muted);
}
.tag-editor textarea {
  width: 100%;
  min-height: 110px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(64, 14, 19, 0.2);
  background: #fffdfa;
  color: var(--burgundy);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

@media (max-width: 520px) {
  .tag-editor {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 48vh;
    padding: 12px 14px 14px;
  }
}
