/* =============================================
   KATERYNA LEVONIUK — PORTFOLIO v3
   Dark · Metalab-inspired · Accent #cbd7f6
   ============================================= */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0A0A0A;
  --bg-1:       #111111;
  --bg-2:       #161616;
  --bg-3:       #1e1e1e;
  --line:       rgba(255,255,255,0.07);
  --line-md:    rgba(255,255,255,0.13);

  --text:       #F2F0EC;
  --text-2:     rgba(242,240,236,0.78);
  --text-3:     rgba(242,240,236,0.62);

  --accent:     #cbd7f6;
  --accent-rgb: 203,215,246;
  --accent-dim: rgba(203,215,246,0.10);
  --accent-mid: rgba(203,215,246,0.30);

  --font-d:  "Bricolage Grotesque", sans-serif;
  --font-b:  "Inter", sans-serif;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h:   64px;
  --w:       1160px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }
strong { font-weight: 500; color: var(--text); }

.container {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 48px;
}

/* =============================================
   CURSOR — accent dot; ring with a label over cards
   ============================================= */
.cursor {
  width: 14px; height: 14px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(10,10,10,.7); /* dark ring keeps it visible on same-colour images */
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.2s;
  will-change: left, top;
}

.cursor-follower {
  width: 112px; height: 112px;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(10,10,10,.45);
  background: rgba(10,10,10,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.25s;
  will-change: left, top;
}
.cursor-label {
  font-family: var(--font-b); font-size: 18px; font-weight: 400;
  color: #fff; letter-spacing: 0.01em;
}

body.cursor-link .cursor   { width: 40px; height: 40px; }
body.cursor-hover .cursor  { opacity: 0; }
body.cursor-hover .cursor-follower { opacity: 1; transform: translate(-50%, -50%) scale(1); }
body.cursor-dragging .cursor-follower { transform: translate(-50%, -50%) scale(.85); }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(48px, calc((100% - var(--w)) / 2 + 48px)); height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--line);
}

.nav-logo {
  font-family: var(--font-d);
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 40px; }

.nav-links a {
  font-size: 13px; color: var(--text-2);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links .nav-cta { color: var(--accent); font-weight: 500; }
.nav-links .nav-cta::after { background: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) 48px 88px;
  max-width: var(--w); margin: 0 auto;
  position: relative;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-md); padding: 8px 16px;
  border-radius: 100px; width: fit-content; margin-bottom: 44px;
}

.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.hero-headline {
  font-family: var(--font-d);
  display: flex; flex-direction: column;
  margin-bottom: 40px;
}

.hero-line {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.018em;
  display: block;
}

.hero-line--dim { color: var(--text-2); font-weight: 600; }

.hero-morph { color: var(--accent); }

.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; padding: 13px 26px; border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--text); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line-md); padding: 12px 26px;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent-mid); color: var(--text); }

/* =============================================
   MARQUEE
   ============================================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; background: var(--bg-1);
}

.marquee-inner {
  display: inline-flex; gap: 28px;
  animation: marqueeScroll 32s linear infinite;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}

.sep { color: var(--accent); opacity: 0.4; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 120px 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); display: block;
}

.section-head-note { font-size: 12px; color: var(--text-3); }

/* =============================================
   PROJECTS
   ============================================= */
.work { padding-top: 100px; padding-bottom: 0; }

.projects { margin-top: 0; }

.project {
  border-top: 1px solid var(--line);
  transition: background 0.4s;
}
.project:hover { background: var(--bg-1); }
.project:last-child { border-bottom: 1px solid var(--line); }

.project-link-wrap {
  display: block;
  padding: 60px 48px;
  max-width: var(--w); margin: 0 auto;
}

/* ---- placeholders ---- */

.project-info {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--line-md);
  padding: 5px 12px; border-radius: 100px;
  transition: color 0.3s, border-color 0.3s;
}
.project:hover .tag { color: var(--accent); border-color: var(--accent-dim); }

.project-title {
  font-family: var(--font-d);
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 14px;
  transition: color 0.2s;
}

.project-desc {
  font-size: 15px; color: var(--text-2); line-height: 1.75; max-width: 580px;
}

/* =============================================
   ABOUT
   ============================================= */
.about { border-top: 1px solid var(--line); }

.about-headline {
  font-family: var(--font-d);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.018em; margin-bottom: 52px;
}
.about-headline em { font-style: normal; color: var(--accent); }

.about-stats { display: flex; gap: 48px; padding-top: 40px; border-top: 1px solid var(--line); }

.stat-n {
  display: block; font-family: var(--font-d); font-size: 42px; font-weight: 800;
  color: var(--accent); letter-spacing: -0.018em; line-height: 1; margin-bottom: 6px;
}
.stat-l { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }

.about-links {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line);
}

.about-link { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0.04em; transition: color 0.2s; }
.about-link:hover { color: var(--accent); }

/* =============================================
   SKILLS
   ============================================= */
.skills { border-top: 1px solid var(--line); }
.skills .section-label { margin-bottom: 48px; }

/* =============================================
   EXPERIENCE
   ============================================= */
.experience { border-top: 1px solid var(--line); }
.experience .section-label { margin-bottom: 48px; }

/* =============================================
   TESTIMONIAL
   ============================================= */

blockquote {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300; line-height: 1.6;
  color: var(--text-2); letter-spacing: -0.01em;
  margin-bottom: 28px;
  font-style: italic;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { border-top: 1px solid var(--line); padding-bottom: 140px; }

.contact .section-label { margin-bottom: 28px; }

.contact-headline {
  font-family: var(--font-d);
  font-size: clamp(48px, 7.5vw, 104px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.025em; margin-bottom: 28px;
}
.contact-headline em { font-style: normal; color: var(--accent); }

.contact-sub {
  font-size: 17px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 56px; max-width: 520px;
}

.contact-social { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-social a { font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; transition: color 0.2s; }
.contact-social a:hover { color: var(--text); }

/* =============================================
   FOOTER
   ============================================= */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-name { font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-3); }
.footer-copy { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }

/* =============================================

/* =============================================
   HERO — UPDATED ELEMENTS
   ============================================= */
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 36px;
}

/* =============================================
   VALUE PROP STRIP
   ============================================= */

/* =============================================
   PROJECT OUTCOME BADGE
   ============================================= */

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .container { padding: 0 32px; }
  .nav { padding: 0 32px; }
  .hero { padding: calc(var(--nav-h) + 32px) 32px 80px; }
  .project-link-wrap { padding: 48px 32px; }

  .about-stats { gap: 32px; }

  .project-info { flex-direction: column; gap: 16px; }
  
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .container, .nav { padding: 0 24px; }

  .nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; color: var(--text); }
  .nav-links .nav-cta { font-size: 22px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

  .hero { padding: calc(var(--nav-h) + 24px) 24px 72px; justify-content: flex-end; }

  .section { padding: 80px 0; }
  .project-link-wrap { padding: 40px 24px; }

  .about-stats { flex-direction: column; gap: 24px; }
  .section-head { flex-direction: column; gap: 8px; }

  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  .nav-toggle { cursor: pointer; }
  blockquote { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
  .marquee-inner { animation: none; }
  
  .hero-tag-dot { animation: none; }
}

/* ---- NEW COMPONENT RESPONSIVE ---- */

@media (max-width: 640px) {
  
  .hero-sub { font-size: 15px; }
}

/* =============================================
   VALUE STRIP
   ============================================= */

/* =============================================
   TESTIMONIALS SLIDER
   ============================================= */
.testimonials { border-top: 1px solid var(--line); }
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.testi-score { display: flex; align-items: center; gap: 16px; }
.testi-score-num { font-family: var(--font-d); font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.testi-score-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); max-width: 170px; line-height: 1.4; }
.testi-stars { color: var(--accent); letter-spacing: 3px; font-size: 14px; }

.slider-wrap {
  position: relative;
  overflow: hidden;
}

.slider {
  display: flex;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.slide {
  position: relative;
  min-width: 100%;
  padding: 72px 80px 56px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(var(--accent-rgb), .08), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
}
.slide::before {
  content: "“";
  position: absolute; top: 8px; right: 56px;
  font-family: var(--font-d); font-size: 240px; font-weight: 800; line-height: 1;
  color: rgba(var(--accent-rgb), .12);
  pointer-events: none;
}

.slide blockquote {
  position: relative;
  font-family: var(--font-d);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 900px;
  font-style: normal;
  text-wrap: pretty;
}

.slide-foot { display: flex; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.slide-author { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.slide-src { font-size: 13px; color: var(--text-2); }
.slide-src span { color: var(--accent); letter-spacing: 2px; margin-left: 4px; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}
.slider-btns { display: flex; gap: 12px; }

.slider-btn {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-md);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.slider-btn:hover {
  border-color: var(--accent);
  color: var(--bg);
  background: var(--accent);
}

.slider-dots {
  display: flex; gap: 8px; align-items: center;
}

.slider-dot {
  width: 24px; height: 3px;
  border-radius: 3px;
  background: var(--line-md);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  width: 48px;
}

/* =============================================
   HERO SUB TEXT
   ============================================= */
.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.contact-left .section-label { margin-bottom: 28px; }

.contact-headline {
  font-family: var(--font-d);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.025em; margin-bottom: 24px;
}
.contact-headline em { font-style: normal; color: var(--accent); }

.contact-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 40px; max-width: 440px;
}

.contact-social {
  display: flex; flex-direction: column; gap: 12px;
}

.contact-social a {
  font-size: 14px; color: var(--text-3);
  letter-spacing: 0.02em; transition: color 0.2s;
  display: inline-block;
}
.contact-social a:hover { color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-md);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: text;
}

.form-field select { cursor: pointer; }

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-3);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-mid);
  background: var(--bg-3);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 4px;
}

.form-submit:hover { background: var(--text); transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }

.form-success {
  display: none;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  padding: 12px;
  border: 1px solid var(--accent-mid);
  border-radius: 6px;
  background: var(--accent-dim);
}

.form-success.visible { display: block; }

/* =============================================
   CASE STUDY PAGES
   ============================================= */
.case-study {
  padding-top: var(--nav-h);
}

.cs-back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 32px;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.cs-back:hover { color: var(--accent); }

.cs-meta-item {
  padding: 20px 40px 20px 0;
  margin-right: 40px;
  border-right: 1px solid var(--line);
}

.cs-meta-item:last-child { border-right: none; }

.cs-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.cs-meta-value {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

/* Hero image */
.cs-hero-img { padding: 48px 0; }

/* Sections */
.cs-section { padding: 80px 0; border-top: 1px solid var(--line); }

.cs-two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}

.cs-col-label .section-label { margin-top: 6px; }

.cs-col-content h2 {
  font-family: var(--font-d);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  margin-top: 32px;
}

.cs-col-content h2:first-child { margin-top: 0; }

.cs-col-content p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Image blocks */
.cs-img-row { padding: 0 0 48px; }

.cs-img-grid {
  display: grid;
  gap: 16px;
}
.cs-img-grid--2 { grid-template-columns: 1fr 1fr; }

/* Outcome stats */

/* Project nav */
.cs-nav-projects {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.cs-nav-projects .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-nav-back,
.cs-nav-next {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.cs-nav-back:hover,
.cs-nav-next:hover { color: var(--accent); }

/* crop 20% from bottom */

/* =============================================
   RESPONSIVE ADDITIONS
   ============================================= */
@media (max-width: 960px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .cs-two-col { grid-template-columns: 1fr; gap: 32px; }
  
  .cs-meta-item { border-right: none; padding: 16px 0; border-bottom: 1px solid var(--line); margin-right: 0; }
  
  .cs-nav-projects .container { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 640px) {
  .slide { padding: 40px 24px 28px; gap: 32px; border-radius: 18px; }
  .slide::before { font-size: 160px; right: 16px; top: 0; }
  .testi-score-num { font-size: 44px; }
  .slider-dot { width: 16px; }
  .slider-dot.active { width: 32px; }
  .contact-sub { max-width: 100%; }
  .cs-img-grid--2 { grid-template-columns: 1fr; }

}

/* =============================================
   CASE STUDY SYSTEM — hero + chapters
   Modelled on the Podcast App case study. Each page sets
   --cs-accent (and optionally --cs-hero-bg) on :root.
   ============================================= */
.case-study { --cs-accent: var(--accent); --cs-hero-bg: #0B1736; }

/* HERO */
.cs-hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 48px) 48px 72px;
  position: relative; overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
}
.cs-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--cs-hero-bg) 0%, var(--bg) 55%);
}
.cs-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .14; }
.cs-hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.cs-hero-inner { position: relative; z-index: 2; max-width: calc(var(--w) - 96px); margin: 0 auto; width: 100%; }
.cs-hero .cs-back { display: block; width: fit-content; margin-bottom: 32px; }
.cs-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid rgba(255,255,255,.1);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 36px;
}
.cs-hero-dot { width: 6px; height: 6px; background: var(--cs-accent); border-radius: 50%; animation: pulse 1.8s ease-in-out infinite; }
.cs-hero-title {
  font-family: var(--font-d); font-size: clamp(52px, 9vw, 128px);
  font-weight: 800; line-height: .92; letter-spacing: -0.025em; margin-bottom: 32px;
}
.cs-hero-title span { color: var(--cs-accent); }
.cs-hero-lede {
  font-family: var(--font-d); font-size: clamp(22px, 2.6vw, 34px); font-weight: 700;
  line-height: 1.2; letter-spacing: -.02em; color: var(--text); max-width: 760px; margin-bottom: 20px;
}
.cs-hero--mockup .cs-hero-lede { max-width: 54%; }
.cs-hero-sub { font-size: 17px; color: var(--text-2); line-height: 1.7; max-width: 560px; margin-bottom: 40px; }
.cs-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.cs-hero-pills .tag:first-child { color: var(--cs-accent); border-color: var(--cs-accent); }
.cs-hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cs-hero-meta .cs-meta-item { padding: 20px 24px 20px 0; margin: 0; border: none; }

.cs-hero-mockup {
  position: absolute; right: 48px; bottom: 0; z-index: 3;
  width: 40%; max-width: 560px; height: auto;
  border-radius: 20px; border: 1px solid var(--line);
  transform: translateY(20px) rotate(3deg); transition: transform .6s var(--ease);
}
.cs-hero-mockup:hover { transform: translateY(8px) rotate(1deg); }
.cs-hero-mockup--wide { width: 38%; max-width: 600px; bottom: 48px; transform: rotate(-3deg); box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.cs-hero-mockup--wide:hover { transform: translateY(-8px) rotate(-1deg); }
.cs-hero--mockup .cs-hero-sub,
.cs-hero--mockup .cs-hero-pills { max-width: 52%; }
.cs-hero--mockup .cs-hero-meta { margin-right: 44%; grid-template-columns: repeat(2, 1fr); }

/* CHAPTERS — label row, big title, readable body */
.cs-section { padding: 120px 0 80px; }
.cs-two-col { display: block; }
.cs-col-label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cs-chapter { display: flex; align-items: center; gap: 12px; margin: 0; }
.cs-chapter-num {
  font-family: var(--font-d); font-size: 11px; font-weight: 700;
  color: var(--cs-accent); letter-spacing: .14em; text-transform: uppercase;
}
.cs-chapter-line { width: 24px; height: 1px; background: var(--cs-accent); opacity: .5; flex: none; }
.cs-col-label .section-label { color: var(--cs-accent); margin: 0; letter-spacing: .14em; }
.cs-col-content > h2:first-child,
.cs-col-content > h2:first-of-type {
  font-family: var(--font-d); font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -0.018em; line-height: 1.02;
  margin: 0 0 28px; max-width: 900px;
}
.cs-col-content h2 {
  font-family: var(--font-d); font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  margin: 56px 0 16px;
}
.cs-col-content > p { font-size: 17px; line-height: 1.8; max-width: 680px; }
.cs-col-content > p.cs-caption { font-size: 12px; line-height: 1.6; }

/* PULL QUOTE */
.cs-pull { border-left: 2px solid var(--cs-accent); padding: 4px 0 4px 24px; margin: 40px 0; }
.cs-pull p {
  font-family: var(--font-d); font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--text); margin: 0;
}

@media (max-width: 900px) {
  .cs-hero { padding: calc(var(--nav-h) + 32px) 24px 56px; }
  .cs-hero-mockup { display: none; }
  .cs-hero--mockup .cs-hero-lede,
  .cs-hero--mockup .cs-hero-sub,
  .cs-hero--mockup .cs-hero-pills { max-width: none; }
  .cs-hero--mockup .cs-hero-meta { margin-right: 0; }
  .cs-hero-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-section { padding: 80px 0 56px; }
}

/* =============================================
   SKILLS + EXPERIENCE — cards and timeline
   ============================================= */
.block-head { margin-bottom: 56px; }
.block-head .section-label { margin-bottom: 16px; }

.block-title {
  font-family: var(--font-d); font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; letter-spacing: -0.018em; line-height: 1.02;
}
.block-title em { font-style: normal; color: var(--accent); }

.skill-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card {
  display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px 28px 28px;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.skill-card:hover { border-color: var(--accent-mid); background: var(--bg-2); transform: translateY(-4px); }
.skill-card-num { font-family: var(--font-d); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: 40px; }
.skill-card h3 { font-family: var(--font-d); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 14px; }
.skill-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.skill-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.skill-card-tags span {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--line-md);
  padding: 5px 10px; border-radius: 100px;
}
.skill-card:hover .skill-card-tags span { color: var(--accent); border-color: var(--accent-mid); }
.skill-card--tools .skill-card-tags { margin-top: 0; }
.skill-card-tags--tools span { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 6px 12px; }

/* timeline */
.xp { position: relative; padding-left: 40px; }
.xp::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-md); }
.xp-item { position: relative; padding: 0 0 56px; }
.xp-item:last-child { padding-bottom: 0; }
.xp-item::before {
  content: ""; position: absolute; left: -40px; top: 4px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.xp-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-dim); }
.xp-period {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--line-md); border-radius: 100px; padding: 5px 12px; margin-bottom: 16px;
}
.xp-item h3 { font-family: var(--font-d); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.018em; line-height: 1.1; margin-bottom: 6px; }
.xp-company { font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.xp-desc { font-size: 15px; color: var(--text-2); line-height: 1.75; max-width: 680px; }
.xp-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.xp-highlights li {
  font-size: 13px; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px;
}
.xp-highlights b { font-family: var(--font-d); font-size: 18px; font-weight: 800; color: var(--text); margin-right: 4px; }

@media (max-width: 960px) {
  .skill-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .skill-cards { grid-template-columns: 1fr; }
  .block-head { margin-bottom: 36px; }
  
  .skill-card-num { margin-bottom: 24px; }
  .xp { padding-left: 28px; }
  .xp-item::before { left: -28px; }
  .xp::before { left: 6px; }
}

/* =============================================
   CASE OUTRO — closing CTA, same type and buttons on every case;
   colour comes from the case's --cs-accent
   ============================================= */
.cs-outro { padding: 140px 0; text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.04) 0%, transparent 70%); }
.cs-outro-title { font-family: var(--font-d); font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -0.025em; line-height: 1; color: var(--text); margin-bottom: 24px; text-wrap: balance; }
.cs-outro-title em { font-style: normal; color: var(--cs-accent); }
.cs-outro-text { font-size: 18px; color: var(--text-2); line-height: 1.7; max-width: 520px; margin: 0 auto 48px; }
.cs-outro-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 100px; font-family: var(--font-d); font-size: 14px; font-weight: 700; background: var(--cs-accent); color: var(--cs-accent-ink, #0A0A0A); border: 1px solid var(--cs-accent); transition: transform .15s, filter .2s, border-color .2s, color .2s; }
.cs-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cs-btn--ghost { background: none; border-color: var(--line-md); color: var(--text-2); font-family: var(--font-b); font-weight: 400; }
.cs-btn--ghost:hover { border-color: var(--cs-accent); color: var(--cs-accent); filter: none; }

@media (max-width: 640px) { .cs-outro { padding: 100px 0; } }

/* =============================================
   BREATHING ROOM — more space and easier reading on every page
   ============================================= */
.section { padding: 160px 0; }
.cs-section { padding: 128px 0 96px; }
.cs-col-label { margin-bottom: 28px; }
.cs-col-content > h2:first-child,
.cs-col-content > h2:first-of-type { margin-bottom: 36px; }
.cs-col-content h2 { margin: 72px 0 20px; }
.cs-col-content > p { font-size: 18px; line-height: 1.75; max-width: 640px; margin-bottom: 1.3em; }
.cs-col-content > p:last-child { margin-bottom: 0; }
.cs-hero-sub { line-height: 1.75; }
@media (max-width: 900px) {
  .section { padding: 104px 0; }
  .cs-section { padding: 80px 0 56px; }
  .cs-col-content h2 { margin-top: 56px; }
}
@media (max-width: 640px) {
  .cs-col-content > p { font-size: 17px; }
}

/* LOGO — monogram + name lockup */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--accent); color: #0A0A0A; display: inline-flex; align-items: center; justify-content: center; font-family: "Bricolage Grotesque", sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -0.04em; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: "Bricolage Grotesque", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--text, #F2F0EC); }
.logo-role { font-family: "Inter", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,240,236,.6); margin-top: 3px; }
@media (max-width: 640px) { .logo-role { display: none; } }

/* testimonials: each card is as tall as its own quote */
.slider { align-items: flex-start; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), height .45s cubic-bezier(0.16, 1, 0.3, 1); }
@media (max-width: 640px) {
  .slide { gap: 28px; }
  .slide blockquote { font-size: 19px; line-height: 1.45; }
  .slide::before { font-size: 120px; right: 12px; }
}

/* mobile menu: the blurred nav is the containing block for the fixed
   overlay, so give it an explicit height instead of bottom: 0 */
@media (max-width: 640px) {
  .nav-links { bottom: auto; height: calc(100svh - var(--nav-h)); background: #0A0A0A; }
}

/* legal links */
.footer-legal { color: inherit; border-bottom: 1px solid var(--line-md); transition: color .2s, border-color .2s; }
.footer-legal:hover { color: var(--text); border-color: var(--text-3); }
.form-consent { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: 4px; }
.form-consent a { color: var(--text-2); border-bottom: 1px solid var(--line-md); }
.form-consent a:hover { color: var(--text); }
