/* ═══════════════════════════════════════════════════════════════
   sections.css — FlutterGini Portfolio
   Sections: Services · Projects · Skills · Philosophy ·
             Experience · Reviews · Subscription · CTA · Footer

   STRUCTURE:
   1.  Shared section wrapper
   2.  Services / What I Do
   3.  Projects — base rules
   4.  Projects — GitHub Showcase grid (top 3)
   5.  Projects — Case Study grid (bottom 4)  ← ALL FIXES HERE
   6.  Skills (dark)
   7.  Philosophy
   8.  Experience / Timeline
   9.  Reviews / Testimonials
   10. Subscription
   11. CTA (dark)
   12. Footer
   13. Responsive overrides
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   1. SHARED SECTION WRAPPER
═══════════════════════════════════════════════════════════════ */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════════
   2. SERVICES / WHAT I DO
═══════════════════════════════════════════════════════════════ */
.services-section {
  background: linear-gradient(160deg, var(--white) 0%, var(--parchment) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

/* Sticky left column */
.services-sticky {
  position: sticky;
  top: 84px;
}

/* 2×2 grid of service cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);       /* gap colour between cards */
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-card);
}

.service-card {
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  padding: 2rem 1.75rem;
  transition: background .25s;
  position: relative;
  overflow: hidden;
}

/* Teal→gold reveal bar on hover */
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover {
  background: linear-gradient(160deg, var(--teal-ll), #e8f5f2);
}
.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 {
  font-family: var(--f-h);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
  color: var(--ink);
}
.service-card p {
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════
   3. PROJECTS — BASE RULES
   These apply to BOTH showcase cards and case-study cards.
   Card-specific overrides come in sections 4 & 5 below.
═══════════════════════════════════════════════════════════════ */
.projects-section {
  background: var(--cream);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Shared tag styles */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: .9rem;
}
.tag {
  padding: 4px 11px;
  border-radius: 100px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* Tag colour variants */
.tag-dark   { background: #f0ebe2;          color: var(--ink3);    border-color: #d8d0c0; }
.tag-blue   { background: #e0f0ff;          color: #0d5a99;        border-color: #b0d4f0; }
.tag-teal   { background: var(--teal-ll);   color: var(--teal-d);  border-color: var(--teal-l); }
.tag-fire   { background: #fff3e0;          color: #b54a00;        border-color: #f5d0a0; }
.tag-purple { background: #f3ecff;          color: #6b20b0;        border-color: #d8b8f8; }
.tag-green  { background: #edfff5;          color: #0a6630;        border-color: #a0e8c0; }

/* Shared project link buttons */
.project-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: .77rem;
  font-weight: 700;
  transition: all .2s var(--spring);
  border: 1px solid;
  box-shadow: var(--sh-btn);
}
.project-link:hover  { transform: translateY(-2px); box-shadow: var(--sh-btn-hover); }
.project-link:active { transform: translateY(0);    box-shadow: var(--sh-pressed); }

/* Dark (GitHub) button */
.link-dark {
  background: linear-gradient(160deg, var(--ink2), var(--ink));
  color: #fff;
  border-color: var(--ink);
  border-bottom-color: rgba(0,0,0,.4);
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
/* Ghost (secondary) button */
.link-ghost {
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  color: var(--ink3);
  border-color: var(--border);
  border-bottom-color: var(--border2);
}

/* Group divider between showcase grid and case-study grid */
.proj-group-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3.5rem 0 1.75rem;
}
.proj-group-label span {
  font-family: var(--f-m);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--subtle);
  white-space: nowrap;
}
.proj-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}


/* ═══════════════════════════════════════════════════════════════
   4. PROJECTS — GITHUB SHOWCASE GRID (top 3 cards)
   3-column equal grid. Uses .showcase-card, .showcase-visual,
   .showcase-phone, .gh-badge, .showcase-body classes.
═══════════════════════════════════════════════════════════════ */
.projects-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Card shell */
.showcase-card {
  background: linear-gradient(160deg, var(--parchment) 0%, var(--cream2) 100%);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s var(--spring), border-color .3s;
  position: relative;
}
.showcase-card:hover {
  box-shadow: var(--sh-card-hover);
  transform: translateY(-5px);
  border-color: var(--teal);
}

/* Coloured visual header area */
.showcase-visual {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Fade bleed at bottom of visual into card body */
.showcase-visual::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 48px;
  pointer-events: none;
}

/* Background colours per repo */
.vis-job     { background: linear-gradient(145deg, #dff0ff, #b8d8ff, #92c2ff); }
.vis-netflix { background: linear-gradient(145deg, #ffe5e5, #ffbaba, #ff8c8c); }
.vis-cook    { background: linear-gradient(145deg, #d8f5ee, #a5e8d5, #72d9bc); }

/* Matching bleed colour per background */
.vis-job::after     { background: linear-gradient(to bottom, transparent, #f3f8ff); }
.vis-netflix::after { background: linear-gradient(to bottom, transparent, #fff5f5); }
.vis-cook::after    { background: linear-gradient(to bottom, transparent, #f0faf6); }

/* Phone mockup inside showcase visual */
.showcase-phone {
  width: 60px;
  height: 106px;
  background: linear-gradient(160deg, var(--parchment), var(--white));
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.sp-notch  { width: 20px; height: 3px; background: var(--border); border-radius: 2px; margin: 6px auto 3px; flex-shrink: 0; }
.sp-screen { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.sp-home   { width: 14px; height: 3px; background: var(--border); border-radius: 2px; margin: 3px auto 6px; flex-shrink: 0; }

/* "Open Source" frosted badge top-right of card */
.gh-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(26,18,8,.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 100px;
  font-family: var(--f-m);
  font-size: .57rem;
  color: rgba(255,255,255,.82);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gh-badge svg { color: rgba(255,255,255,.55); }

/* Showcase card body */
.showcase-body {
  padding: 1.2rem 1.4rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.showcase-category {
  font-family: var(--f-m);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .4rem;
}
.showcase-card h3 {
  font-family: var(--f-h);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
  color: var(--ink);
  line-height: 1.25;
}
.showcase-desc {
  font-size: .835rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 1rem;
  flex: 1;
}

/* Teal highlight callout box */
.showcase-highlight {
  background: var(--teal-ll);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: .55rem .85rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--teal-d);
  margin-bottom: .9rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  line-height: 1.5;
}

.showcase-tags  { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1rem; }
.showcase-links { display: flex; gap: 8px; margin-top: auto; }


/* ═══════════════════════════════════════════════════════════════
   5. PROJECTS — CASE STUDY GRID (bottom 4 cards)
   Equal 2×2 grid. Uses .project-card, .project-visual,
   .phone-mock, .project-body, .project-category classes.

   FIXES APPLIED IN THIS BLOCK:
   ① .project-card:first-child .phone-mock — reset to same size
      as other cards (was 106×185px, caused giant phone on card 01)
   ② .project-card:first-child .mock-screen — reset font-size
   ③ .project-visual height reduced to 130px (cards less tall)
   ④ .project-visual .phone-mock — compact 52×90px
   ⑤ .project-body padding tightened
   ⑥ h3 font-size reduced to 1rem
   ⑦ .project-desc font-size + margin reduced
   ⑧ .project-highlight padding reduced
═══════════════════════════════════════════════════════════════ */

/* 2-column equal grid — overrides old span-2 first-child rule */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ① Reset first-child grid span — all 4 cards equal width */
.projects-grid .project-card:first-child {
  grid-column: span 1;
  flex-direction: column;
}

/* ① Reset first-child visual — same as other cards */
.projects-grid .project-card:first-child .project-visual {
  width: 100%;
  min-height: auto;
}

/* Card shell — skeuomorphic with shimmer top bar */
.project-card {
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  background: linear-gradient(170deg, var(--parchment) 0%, var(--cream2) 100%);
  box-shadow: var(--sh-card);
  transition: box-shadow .3s, transform .3s var(--spring), border-color .3s;
}
.project-card:hover {
  box-shadow: var(--sh-card-hover);
  transform: translateY(-5px);
  border-color: var(--teal);
}

/* Animated teal→gold shimmer accent bar at top of each card */
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  z-index: 2;
}

/* Shared visual background colours (reused from base rules) */
.vis-blue   { background: linear-gradient(145deg, #dff0ff, #c4e0ff, #afd4ff); }
.vis-teal   { background: linear-gradient(145deg, #d8f5ee, #bfeee3, #a5e4d6); }
.vis-gold   { background: linear-gradient(145deg, #fef0d8, #faddb0, #f5cb8a); }
.vis-purple { background: linear-gradient(145deg, #ede0ff, #d8c0ff, #c2a0ff); }

/* ③ Visual area — compact height */
.project-visual {
  height: 130px;           /* was 168px — reduced for compact cards */
  width: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ghost project number watermark (bottom-right of visual) */
.project-visual::before {
  content: attr(data-num);
  position: absolute;
  bottom: -18px; right: 16px;
  font-family: var(--f-h);
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -.06em;
  color: var(--ink);
  opacity: .04;           /* very subtle — decorative only */
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* ① ② ④ Phone mockup — uniform size for ALL 4 cards
   Previously .project-card:first-child .phone-mock was 106×185px
   which made card 01 look broken. Now all 4 are identical. */
.project-visual .phone-mock {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 90px;
  border-radius: 12px;
  display: flex;              /* ← ADD */
  flex-direction: column;     /* ← ADD */
  align-items: center;        /* ← ADD */
  justify-content: center;    /* ← ADD */
}

/* ① ② Emoji inside phone */
.project-visual .mock-screen {
  font-size: 4.4rem;
  display: flex;              /* ← ADD */
  align-items: center;        /* ← ADD */
  justify-content: center;    /* ← ADD */
  line-height: 1;             /* ← ADD — prevents vertical offset */
}

/* ① Reset first-child phone — same as all others (explicit override) */
.projects-grid .project-card:first-child .phone-mock {
  width: 52px;
  height: 90px;
  border-radius: 12px;
}
.projects-grid .project-card:first-child .mock-screen {
  font-size: 4.4rem;
}

/* ⑤ Card body — tighter padding */
.project-body {
  padding: 1rem 1.2rem 1.2rem;   /* was 1.4rem 1.5rem 1.5rem */
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card:first-child .project-body {
  padding: 1rem 1.2rem 1.2rem;   /* same — no special first-child padding */
  justify-content: flex-start;
}

/* Category label with teal→gold line prefix */
.project-category {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-m);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .4rem;
}
.project-category::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ⑥ Heading — smaller for compact cards */
.project-card h3 {
  font-family: var(--f-h);
  font-size: 1rem;              /* was 1.15rem */
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .35rem;
  color: var(--ink);
  line-height: 1.25;
}
/* ⑥ Reset first-child heading — no special large size */
.project-card:first-child h3 {
  font-size: 1rem;
}

/* ⑦ Description — tighter */
.project-desc {
  font-size: .8rem;             /* was .84rem */
  color: var(--muted);
  line-height: 1.65;            /* was 1.72 */
  margin-bottom: .7rem;         /* was .9rem */
  flex: 1;
}

/* ⑧ Highlight callout — tighter padding */
.project-highlight {
  background: var(--teal-ll);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: .4rem .75rem;        /* was .55rem .85rem */
  font-size: .72rem;            /* was .76rem */
  font-weight: 600;
  color: var(--teal-d);
  margin-bottom: .75rem;        /* was .9rem */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   6. SKILLS (dark background section)
═══════════════════════════════════════════════════════════════ */
.skills-section {
  background: linear-gradient(160deg, var(--ink2) 0%, #2a1e0e 100%);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Override text colours for dark background */
.skills-section .eyebrow      { color: rgba(200,150,42,.9); }
.skills-section .section-title { color: #fff; }
.skills-section .section-desc  { color: rgba(255,255,255,.42); }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

/* ── Skill bars (left column) ── */
.skill-bars { display: flex; flex-direction: column; gap: 1.5rem; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.skill-name {
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.85);
}
.skill-icon { font-size: 1rem; }
.skill-pct  { font-family: var(--f-m); font-size: .72rem; color: rgba(255,255,255,.35); }

.skill-track {
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.3);
}
.skill-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.3s var(--ease);  /* animated by JS on scroll */
}

/* Skill bar gradient colours */
.fill-teal-1 { background: linear-gradient(90deg, var(--teal), #1aae96); }
.fill-teal-2 { background: linear-gradient(90deg, var(--teal), #00dcc0); }
.fill-purple { background: linear-gradient(90deg, #a78bfa, #c4b5fd); }
.fill-gold   { background: linear-gradient(90deg, var(--gold), #e8b030); }
.fill-green  { background: linear-gradient(90deg, #34d399, #6ee7b7); }

/* ── Tools grid (right column) ── */
.tools-label {
  font-family: var(--f-m);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 1rem;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tool-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: .9rem .4rem;
  text-align: center;
  transition: all .2s var(--spring);
}
.tool-item:hover {
  background: rgba(13,122,107,.12);
  border-color: rgba(13,122,107,.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.tool-icon { font-size: 1.35rem; margin-bottom: .3rem; }
.tool-name { font-family: var(--f-m); font-size: .6rem; color: rgba(255,255,255,.4); }


/* ═══════════════════════════════════════════════════════════════
   7. PHILOSOPHY
═══════════════════════════════════════════════════════════════ */
.philosophy-section {
  background: linear-gradient(160deg, var(--white), var(--parchment));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

/* Blockquote card */
.blockquote-card {
  position: relative;
  padding: 2.75rem;
  background: linear-gradient(160deg, var(--cream2), var(--cream3));
  border-radius: 20px;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  box-shadow: var(--sh-card);
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: .55;
  color: var(--teal);
  opacity: .12;
  position: absolute; top: 1.5rem; left: 2rem;
  pointer-events: none;
}
.quote-text {
  font-family: var(--f-h);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink2);
  font-weight: 400;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.quote-text em { font-style: normal; font-weight: 700; color: var(--teal); }
.quote-author {
  margin-top: 1.25rem;
  font-family: var(--f-m);
  font-size: .78rem;
  color: var(--teal);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* 2×2 value pills */
.value-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.value-pill {
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  border-radius: 14px;
  padding: 1.3rem 1.1rem;
  box-shadow: var(--sh-raised);
  transition: all .2s var(--spring);
}
.value-pill:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--sh-card); }
.value-pill-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.value-pill h4 {
  font-family: var(--f-h);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .28rem;
  color: var(--ink);
}
.value-pill p { font-size: .77rem; color: var(--muted); line-height: 1.62; }


/* ═══════════════════════════════════════════════════════════════
   8. EXPERIENCE / TIMELINE
═══════════════════════════════════════════════════════════════ */
.experience-section { background: var(--cream); }

.experience-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.experience-sticky { position: sticky; top: 82px; }

/* Timeline column */
.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 1.4rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-spine { display: flex; flex-direction: column; align-items: center; }
.timeline-dot-wrap { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.timeline-dot {
  width: 11px; height: 11px;
  background: var(--border);
  border: 2px solid var(--cream);
  border-radius: 50%;
  outline: 2px solid var(--border);
}
/* Active dot (current role) pulses */
.timeline-dot.active {
  background: var(--teal);
  outline-color: rgba(13,122,107,.2);
  box-shadow: 0 0 0 5px rgba(13,122,107,.08);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(13,122,107,.10); }
  50%      { box-shadow: 0 0 0 9px rgba(13,122,107,.04); }
}

.timeline-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin: 3px 0;
  min-height: 1.8rem;
}

.timeline-card {
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  box-shadow: var(--sh-raised);
  transition: all .25s;
}
.timeline-item:hover .timeline-card { border-color: var(--teal); box-shadow: var(--sh-card); }

.timeline-period {
  font-family: var(--f-m);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .35rem;
}
.timeline-role {
  font-family: var(--f-h);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .18rem;
  color: var(--ink);
}
.timeline-company { font-size: .83rem; color: var(--muted); font-weight: 400; margin-bottom: .85rem; }

.timeline-bullets { display: flex; flex-direction: column; gap: .35rem; }
.timeline-bullets li {
  font-size: .845rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}
.timeline-bullets li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--teal);
  font-size: .7rem;
  top: 3px;
}


/* ═══════════════════════════════════════════════════════════════
   9. REVIEWS / TESTIMONIALS
═══════════════════════════════════════════════════════════════ */
.reviews-section {
  background: linear-gradient(160deg, var(--white), var(--parchment));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Slider container with fade-out mask on edges */
.reviews-track-outer {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.reviews-track {
  display: flex;
  gap: 1.25rem;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Individual review card */
.review-card {
  flex-shrink: 0;
  width: clamp(280px, 32vw, 340px);
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--sh-card);
}
.review-stars { display: flex; gap: 3px; margin-bottom: .8rem; }
.review-star  { color: var(--gold); font-size: .9rem; }
.review-text  {
  font-family: var(--f-h);
  font-size: .875rem;
  color: var(--ink3);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: .65rem; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-d));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-h); font-weight: 800; font-size: .85rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13,122,107,.25), inset 0 1px 0 rgba(255,255,255,.15);
}
.review-name { font-size: .82rem; font-weight: 600; color: var(--ink); }
.review-role { font-size: .72rem; color: var(--muted); }


/* ═══════════════════════════════════════════════════════════════
   10. SUBSCRIPTION SECTION
═══════════════════════════════════════════════════════════════ */
.subscription-section {
  background: linear-gradient(160deg, var(--cream3) 0%, var(--cream2) 50%, var(--parchment) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

/* Rotating conic gradient decorative bg */
.subscription-section::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 55%, rgba(13,122,107,.05) 70%, transparent 80%);
  animation: gspin 28s linear infinite;
  pointer-events: none;
}

/* Subtle ruled-lines texture */
.subscription-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 31px,
    rgba(13,122,107,.03) 31px, rgba(13,122,107,.03) 32px
  );
  pointer-events: none;
}

.subscription-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.subscription-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--teal-ll), var(--teal-l));
  border: 1px solid rgba(13,122,107,.2);
  border-radius: 100px; padding: 6px 16px;
  font-family: var(--f-m); font-size: .68rem; color: var(--teal-d);
  margin-bottom: 1.25rem; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(13,122,107,.12);
}
.subscription-inner h2 {
  font-family: var(--f-h);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: .75rem;
}
.subscription-inner h2 em { font-style: normal; color: var(--teal); }
.subscription-inner p { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }

.subscription-form {
  display: flex; gap: .75rem;
  max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}

/* Email input */
.sub-input {
  flex: 1; min-width: 220px;
  padding: .9rem 1.2rem;
  background: linear-gradient(160deg, var(--parchment), var(--white));
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  border-radius: 10px;
  font-family: var(--f-b); font-size: .9rem; color: var(--ink);
  box-shadow: var(--sh-inset); outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.sub-input-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sub-error {
  font-size: .73rem;
  color: #c0392b;
  margin-top: .35rem;
  font-family: var(--f-m);
  text-align: left;
}

.sub-input::placeholder { color: var(--subtle); }
.sub-input:focus {
  border-color: var(--teal);
  box-shadow: var(--sh-inset), 0 0 0 3px rgba(13,122,107,.1);
}

/* Subscribe button */
.sub-btn {
  padding: .9rem 1.75rem;
  background: linear-gradient(160deg, var(--teal), var(--teal-d));
  color: #fff;
  border: 1px solid var(--teal-d);
  border-bottom: 2px solid rgba(0,0,0,.25);
  border-radius: 10px;
  font-family: var(--f-b); font-weight: 700; font-size: .9rem;
  box-shadow: var(--sh-btn); cursor: pointer;
  transition: all .2s var(--ease);
  text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.sub-btn:hover  { transform: translateY(-1px); box-shadow: var(--sh-btn-hover); }
.sub-btn:active { transform: translateY(0); box-shadow: var(--sh-pressed); border-bottom-width: 1px; }

.sub-note { font-size: .75rem; color: var(--subtle); margin-top: .9rem; font-family: var(--f-m); }

/* Success state (shown via JS after submit) */
.sub-success {
  display: none;
  background: linear-gradient(135deg, var(--teal-ll), var(--teal-l));
  border: 1px solid rgba(13,122,107,.2);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  color: var(--teal-d);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--sh-card);
}


/* ═══════════════════════════════════════════════════════════════
   11. CTA SECTION (dark background)
═══════════════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(160deg, var(--ink2) 0%, #1e1408 100%);
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* Decorative spinning conic rings */
.cta-bg-ring-1 {
  position: absolute; top: -180px; right: -180px;
  width: 600px; height: 600px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 50%, rgba(13,122,107,.06) 65%, transparent 75%);
  animation: gspin 22s linear infinite; pointer-events: none;
}
.cta-bg-ring-2 {
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 55%, rgba(200,150,42,.04) 70%, transparent 80%);
  animation: gspin 32s linear infinite reverse; pointer-events: none;
}

.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

.cta-eyebrow {
  font-family: var(--f-m); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(200,150,42,.8); margin-bottom: 1rem;
}
.cta-title {
  font-family: var(--f-h);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.08;
  color: #fff; margin-bottom: 1.1rem;
}
.cta-title em { font-style: normal; color: var(--teal); }
.cta-subtitle { font-size: 1rem; color: rgba(255,255,255,.42); margin-bottom: 2.8rem; line-height: 1.7; }
.cta-buttons  { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* WhatsApp CTA button */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .9rem 2.1rem;
  background: #25d366; color: #fff;
  border: 1px solid #1daa52; border-bottom: 2px solid rgba(0,0,0,.2);
  border-radius: 10px; font-weight: 700; font-size: .9rem;
  box-shadow: 0 4px 18px rgba(37,211,102,.25), var(--sh-btn);
  transition: all .22s var(--spring);
  text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.btn-whatsapp:hover  { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.35), var(--sh-btn-hover); }
.btn-whatsapp:active { transform: translateY(0); box-shadow: var(--sh-pressed); border-bottom-width: 1px; }

/* Email ghost button */
.btn-mail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .9rem 1.9rem;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.14); border-radius: 10px;
  color: #fff; font-weight: 600; font-size: .9rem;
  transition: all .2s var(--ease);
}
.btn-mail:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* Trust strip below CTA buttons */
.cta-trust { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.cta-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; color: rgba(255,255,255,.3); font-family: var(--f-m);
}
.cta-trust-item svg { color: var(--teal); opacity: .7; }


/* ═══════════════════════════════════════════════════════════════
   12. FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(90deg, #0a0804, #0d0b06);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.25); font-family: var(--f-m); }
.footer-copy strong { color: rgba(200,150,42,.7); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .76rem; color: rgba(255,255,255,.25);
  font-family: var(--f-m); transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.6); }


/* ═══════════════════════════════════════════════════════════════
   13. RESPONSIVE OVERRIDES
   Stacked on top of all rules above — mobile first adjustments
═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  /* Showcase grid: 3 col → 2 col */
  .projects-showcase   { grid-template-columns: 1fr 1fr; }

  /* Services: 2-col layout → single column */
  .services-layout     { grid-template-columns: 1fr; }
  .services-sticky     { position: static; }

  /* Skills: 2-col → single column */
  .skills-layout       { grid-template-columns: 1fr; gap: 2rem; }

  /* Philosophy: 2-col → single column */
  .philosophy-layout   { grid-template-columns: 1fr; }

  /* Experience: 2-col → single column */
  .experience-layout   { grid-template-columns: 1fr; }
  .experience-sticky   { position: static; }
}

/* ── Mobile (≤700px) ── */
@media (max-width: 700px) {
  /* Case study grid: 2-col → single column */
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-card:first-child { grid-column: span 1; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  /* Showcase grid: 2-col → single column */
  .projects-showcase { grid-template-columns: 1fr; }

  /* Group labels: tighter margin */
  .proj-group-label  { margin: 2rem 0 1.25rem; }

  /* Service cards: 2-col → single column */
  .service-cards { grid-template-columns: 1fr; }

  /* Value pills: 2-col → single column */
  .value-pills { grid-template-columns: 1fr; }

  /* Tools grid: 4-col → 3-col */
  .tools-grid { grid-template-columns: repeat(3, 1fr); }

  /* Reviews: remove fade mask on very small screens */
  .reviews-track-outer { mask-image: none; }

  /* CTA buttons: stack vertically */
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons a { justify-content: center; }

  /* Footer: stack vertically */
  .site-footer .footer-inner { flex-direction: column; text-align: center; gap: .75rem; }
  .footer-links { justify-content: center; }
}



/*
STACK
*/

/* ═══════════════════════════════════════════════════════════════
   STACK CAROUSEL — FULLY RESPONSIVE FIXED CSS
   Drop this block at the bottom of sections.css,
   replacing the old STACK CAROUSEL block entirely.
═══════════════════════════════════════════════════════════════ */

/* ── Outer wrapper: projects-grid reset ── */
/* FIX: was display:flex + justify-content:center which squeezed the layout */
.projects-grid {
  display: block;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

/* ── 2-column layout ── */
/* FIX: changed from display:flex to display:flex with proper responsive handling */
.stack-layout {
  display: flex;
  flex-direction: row;       /* desktop: side by side */
  gap: 3rem;
  align-items: flex-start;   /* FIX: was center, causes jump on height change */
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Left column: stack stage ── */
/* FIX: removed fixed width:420px — now fluid with min/max */
.stack-stage {
  position: relative;
  flex: 1 1 auto;            /* FIX: grow/shrink instead of fixed width */
  min-width: 0;              /* FIX: allows shrinking below content size */
  max-width: 420px;          /* keeps desktop cap */
}

/* Stack container clips exiting cards */
.stack-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
}

/* Each card absolutely stacked */
.stack-container .project-card {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  will-change: transform, opacity;
  transition:
    transform  .5s  cubic-bezier(.34,1.15,.64,1),
    opacity    .38s ease,
    box-shadow .3s  ease;
  grid-column: unset !important;
  flex-direction: column !important;
  isolation: isolate;
}

/* Top card elevated shadow */
.stack-container .project-card[data-stack-pos="0"] {
  box-shadow:
    0 20px 50px rgba(0,0,0,.16),
    0 6px  16px rgba(0,0,0,.09),
    0 1px  0   rgba(255,255,255,.9) inset;
}

/* Back cards — depth via opacity + scale only. Zero filter. */
.stack-container .project-card[data-stack-pos="1"],
.stack-container .project-card[data-stack-pos="2"],
.stack-container .project-card[data-stack-pos="3"] {
  filter: none;
}

/* ── Right column: info panel ── */
/* FIX: removed fixed width:300px — now fluid */
.stack-panel {
  position: sticky;
  top: 84px;
  flex: 0 0 260px;           /* FIX: flex-shrink:0, fixed flex-basis instead of width */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Ghost number */
.stack-num {
  font-family: var(--f-h);
  font-size: 5.5rem;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--ink);
  opacity: .07;
  margin-bottom: -.75rem;
  user-select: none;
}

/* Active category */
.stack-active-cat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-m);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
}
.stack-active-cat::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Active title */
.stack-active-title {
  font-family: var(--f-h);
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);  /* FIX: added clamp so it shrinks on tablet */
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.15;
}

/* Progress bar */
.stack-progress-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.stack-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  transition: width .5s var(--ease);
}

/* Controls row */
.stack-controls {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: nowrap;
}

.stack-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border2);
  background: linear-gradient(160deg, var(--parchment), var(--cream2));
  color: var(--ink3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-raised);
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s var(--spring);
}
.stack-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
.stack-btn:active {
  transform: translateY(0);
  box-shadow: var(--sh-pressed);
}

/* Dots */
.stack-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.stack-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border2);
  cursor: pointer;
  transition: all .25s var(--ease);
  padding: 0;
}
.stack-dot.active {
  background: var(--teal);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(13,122,107,.15);
}

/* Counter — no wrapping */
.stack-counter {
  font-family: var(--f-m);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hint */
.stack-hint {
  font-family: var(--f-m);
  font-size: .65rem;
  color: var(--subtle);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: .7;
}
.stack-hint svg { opacity: .5; }


/* ════════════════════════════════════════════
   RESPONSIVE OVERRIDES
════════════════════════════════════════════ */

/* ── Tablet: ≤960px — stack vertically ── */
@media (max-width: 960px) {
  .stack-layout {
    flex-direction: column;   /* FIX: was setting grid-template-columns on a flex container (no-op) */
    gap: 1.5rem;
    max-width: 100%;
  }

  /* Stage takes full width */
  .stack-stage {
    max-width: 100%;          /* FIX: remove the 420px cap so card fills container */
    width: 100%;
  }

  /* Panel becomes horizontal strip below card */
  .stack-panel {
    position: static;          /* FIX: sticky makes no sense stacked vertically */
    flex: none;
    width: 100%;
    flex-direction: column;
    gap: .75rem;
  }

  /* Hide decorative elements to save space */
  .stack-num        { display: none; }
  .stack-active-cat { display: none; }
  .stack-hint       { display: none; }

  /* Title stays but smaller */
  .stack-active-title {
    font-size: 1.15rem;
  }

  /* Progress bar full width */
  .stack-progress-wrap {
    width: 100%;
  }

  /* Controls: spread out nicely */
  .stack-controls {
    gap: .6rem;
  }
}

/* ── Mobile: ≤600px ── */
@media (max-width: 600px) {
  .stack-layout {
    gap: 1rem;
    padding: 0;               /* FIX: remove any inherited padding that causes horizontal scroll */
  }

  .stack-btn {
    width: 36px;
    height: 36px;
  }

  /* Tighten dots */
  .stack-dot {
    width: 6px;
    height: 6px;
  }
  .stack-dot.active {
    width: 18px;
  }

  /* Counter smaller on mobile */
  .stack-counter {
    font-size: .65rem;
  }
}

/* ── Very small: ≤380px ── */
@media (max-width: 380px) {
  .stack-active-title {
    font-size: 1rem;
  }

  .stack-controls {
    gap: .4rem;
  }

  .stack-btn {
    width: 32px;
    height: 32px;
  }
}