/* ==========================================================================
   Sayed Mehrab Sattar — mehrabsattar.com
   Static portfolio stylesheet. No build step; plain CSS custom properties.

   COLOR THEMES
   ------------
   Active:     Palette 1 — light blue #A4D8FF + charcoal #35393C
   Alternate:  Palette 2 — deep navy #012641 + magenta #EE005A

   The two color themes are colors-only :root blocks below. To switch, comment
   out the active block and uncomment the other. Shared tokens (fonts, layout,
   shadows) live in their own block and are never touched.
   ========================================================================== */

/* Shared tokens — theme-independent (type, layout, shadows). Always active. */
:root {
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,28,34,.06), 0 4px 14px rgba(20,28,34,.05);
  --shadow-md: 0 8px 30px rgba(20,28,34,.10);
  --shadow-lg: 0 18px 50px rgba(20,28,34,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ===== ACTIVE THEME — Palette 1: light blue #A4D8FF + charcoal #35393C =====
   Colors only. To switch palettes, comment this block out and uncomment the
   "Palette 2" block below. Nothing else needs to change. */
:root {
  --brand:        #35393C;   /* charcoal — headings, primary                */
  --accent:       #A4D8FF;   /* light blue — fills, underlines, dark-bg pops */
  --ink:          #24282b;   /* body text                                   */
  --ink-soft:     #5b6469;   /* muted text                                  */
  --line:         #e5e7e8;   /* hairline borders                            */
  --bg:           #ffffff;
  --bg-soft:      #f4f6f7;
  --bg-brand:     #35393C;   /* dark section background                     */
  --on-brand:     #eef1f2;
  --on-brand-mut: #a7b0b4;
  --accent-ink:   #24282b;   /* text on light-blue fills (charcoal)         */
  --brand-tint:   #eceef0;
  --accent-tint:  #eaf5ff;   /* faint light-blue wash                       */
  --accent-strong:#2C6EA8;   /* darker shade of the blue — legible accent   */
                             /* text/icons on light backgrounds             */
}

/* ===== ALTERNATE THEME — Palette 2: navy #012641 + magenta #EE005A =========
   To use, comment out the Palette 1 block above and uncomment this one.
:root {
  --brand:        #012641;
  --accent:       #EE005A;
  --ink:          #0d1b26;
  --ink-soft:     #4a5a67;
  --line:         #e3e8ec;
  --bg:           #ffffff;
  --bg-soft:      #f5f8fa;
  --bg-brand:     #012641;
  --on-brand:     #eaf3fa;
  --on-brand-mut: #9fbdd2;
  --accent-ink:   #ffffff;
  --brand-tint:   #e7eef4;
  --accent-tint:  #ffe6ef;
  --accent-strong:#EE005A;
}
   ========================================================================= */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }

.section-eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  max-width: 22ch;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  padding: .82em 1.4em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--brand);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--on-brand); border-color: rgba(255,255,255,.28); box-shadow:none; }
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.08); color:#fff; }

.btn svg { width: 1.05em; height: 1.05em; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(20,28,34,.05); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--brand);
  display: inline-flex; align-items: baseline; gap: .1em;
}
.brand .dot { color: var(--accent-strong); }
.brand:hover { color: var(--brand); }

.nav-menu { display: flex; align-items: center; gap: 2.2rem; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .22s var(--ease);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: .9rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -8px;
  color: var(--brand);
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: grid; gap: 0;
    padding: 8px var(--gutter) 20px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .3s var(--ease);
  }
  .nav-menu.is-open { clip-path: inset(0 0 0 0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 2px; }
  .nav-links a::after { display: none; }
  .nav-cta { padding-top: 16px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 132px) 0 clamp(52px, 8vw, 92px); }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 620px; height: 620px; right: -180px; top: -220px;
  background: radial-gradient(circle at center, var(--accent-tint), transparent 66%);
  border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; left: -220px; bottom: -260px;
  background: radial-gradient(circle at center, var(--brand-tint), transparent 68%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .82rem; font-weight: 500;
  color: var(--brand);
  background: var(--bg); border: 1px solid var(--line);
  padding: .45em .9em; border-radius: 999px; box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.hero-pill .ping { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent-strong) 45%, transparent);} 70%{box-shadow:0 0 0 8px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  letter-spacing: -0.03em;
  margin-bottom: .35em;
}
.hero h1 .accent { color: var(--accent-strong); }
.hero-role {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.hero-pitch { font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.hero-card {
  background: var(--bg-brand);
  color: var(--on-brand);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content:""; position:absolute; right:-40px; top:-40px; width:160px; height:160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
}
.hero-card h2 {
  color: #fff; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; opacity: .8; margin-bottom: 1.2rem;
}
.hero-stats { display: grid; gap: 1.15rem; }
.hero-stats .stat { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.05rem; }
.hero-stats .stat:first-child { border-top: 0; padding-top: 0; }
.hero-stats .num { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: #fff; line-height: 1; }
.hero-stats .num .accent { color: var(--accent); }
.hero-stats .lbl { font-size: .9rem; color: var(--on-brand-mut); margin-top: .3rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
}

/* ==========================================================================
   Marquee / trusted logos strip (text-based)
   ========================================================================== */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.logos .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.4rem; padding-block: 22px; }
.logos .label { font-family: var(--font-head); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.logos ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; padding: 0; }
.logos li { font-family: var(--font-head); font-weight: 600; color: var(--brand); opacity: .72; font-size: .96rem; }

/* ==========================================================================
   Stats band (Results at a glance)
   ========================================================================== */
.stats-band { background: var(--bg-brand); color: var(--on-brand); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
.stat-card .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: #fff;
}
.stat-card .num .accent { color: var(--accent); }
.stat-card .lbl { color: var(--on-brand-mut); margin-top: .6rem; font-size: .98rem; }
.stats-band .section-eyebrow { color: var(--accent); }
.stats-band .section-title { color: #fff; margin-bottom: 2.4rem; }
@media (max-width: 720px){ .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-grid .lead-col p { font-size: 1.12rem; }
.about-grid .lead-col p:first-of-type { font-size: 1.28rem; color: var(--ink); }
.principles { display: grid; gap: 1rem; margin-top: .5rem; }
.principle {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.principle:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.principle .ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-strong);
}
.principle .ic svg { width: 20px; height: 20px; }
.principle h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.principle p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
@media (max-width: 820px){ .about-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Skills / expertise
   ========================================================================== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 26px); }
.skill-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.skill-card .kicker { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent-strong); line-height: 1; }
.skill-card h3 { margin: .9rem 0 .6rem; font-size: 1.22rem; }
.skill-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  font-family: var(--font-head); font-size: .78rem; font-weight: 500;
  color: var(--brand); background: var(--brand-tint);
  padding: .3em .7em; border-radius: 999px;
}
@media (max-width: 860px){ .skills-grid { grid-template-columns: 1fr; } }

/* Experience timeline */
.xp { margin-top: clamp(40px, 6vw, 64px); }
.xp-title { font-size: 1.3rem; margin-bottom: 1.6rem; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 1.8rem 1.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-strong); box-shadow: 0 0 0 4px var(--bg-soft);
}
.tl-item .when { font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--accent-strong); text-transform: uppercase; }
.tl-item h4 { font-size: 1.1rem; margin: .25rem 0 .1rem; }
.tl-item .org { color: var(--ink-soft); font-size: .96rem; }

/* ==========================================================================
   Portfolio grid
   ========================================================================== */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 30px); }
.case-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
  color: var(--ink);
  height: 100%;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.case-card__top {
  padding: 1.5rem 1.6rem .2rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.case-card__cat { font-family: var(--font-head); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.case-card__role {
  flex: none; font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  color: var(--accent-strong); background: var(--accent-tint);
  padding: .3em .65em; border-radius: 999px; white-space: nowrap;
}
.case-card__body { padding: .3rem 1.6rem 1.4rem; flex: 1 1 auto; }
.case-card__body h3 { font-size: 1.28rem; margin-bottom: .5rem; letter-spacing: -0.02em; }
.case-card__body p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.case-card__metrics {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  padding: 0 1.6rem 1.3rem;
}
.case-card__metric .m { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--brand); line-height: 1; }
.case-card__metric .m .accent { color: var(--accent-strong); }
.case-card__metric .k { font-size: .78rem; color: var(--ink-soft); margin-top: .2rem; }
.case-card__foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--brand);
}
.case-card__foot .arrow { transition: transform .22s var(--ease); }
.case-card:hover .case-card__foot { color: var(--accent-strong); }
.case-card:hover .case-card__foot .arrow { transform: translateX(5px); }
@media (max-width: 760px){ .work-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.5vw, 26px); }
.quote {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--font-head); font-size: 4rem; line-height: 1;
  color: var(--accent); opacity: .22; position: absolute; top: 12px; right: 22px;
}
.quote .stars { color: var(--accent-strong); letter-spacing: 2px; margin-bottom: .8rem; font-size: .95rem; }
.quote p { font-size: 1.04rem; color: var(--ink); }
.quote .who { font-family: var(--font-head); font-size: .9rem; color: var(--ink-soft); font-weight: 500; margin-top: .4rem; }
@media (max-width: 760px){ .quotes-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--bg-brand); color: var(--on-brand); position: relative; overflow: hidden; }
.contact::before {
  content:""; position:absolute; z-index:0; width:520px; height:520px; right:-160px; top:-200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 66%);
}
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.contact .section-lead { color: var(--on-brand-mut); font-size: 1.12rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.contact-links { display: grid; gap: .9rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: var(--on-brand);
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.contact-link:hover { background: rgba(255,255,255,.1); transform: translateX(4px); color: #fff; border-color: rgba(255,255,255,.25); }
.contact-link .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.contact-link .ic svg { width: 20px; height: 20px; }
.contact-link .t { font-family: var(--font-head); font-weight: 600; color: #fff; line-height: 1.2; }
.contact-link .s { font-size: .88rem; color: var(--on-brand-mut); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-grid .muted { color: var(--ink-soft); font-size: .92rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--brand);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Case study (project) pages
   ========================================================================== */
.cs-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--font-head); font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.4rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb .sep { opacity: .5; }

.cs-cat { font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.cs-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .5rem 0 .5rem; max-width: 20ch; }
.cs-sub { color: var(--ink-soft); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.cs-role-line { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.cs-role-line .chip { font-family: var(--font-head); font-size: .82rem; font-weight: 500; color: var(--brand); background: var(--bg); border: 1px solid var(--line); padding: .4em .85em; border-radius: 999px; }

.cs-metrics { background: var(--bg-brand); color: var(--on-brand); }
.cs-metrics .metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 34px); }
.cs-metrics .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; line-height: 1; }
.cs-metrics .num .accent { color: var(--accent); }
.cs-metrics .lbl { color: var(--on-brand-mut); margin-top: .5rem; font-size: .94rem; }
@media (max-width: 720px){ .cs-metrics .metrics-row { grid-template-columns: repeat(2,1fr); } }

.cs-body { padding: clamp(48px, 7vw, 88px) 0; }
.cs-layout { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); max-width: 760px; margin-inline: auto; }
.cs-block h2 {
  font-size: 1.5rem; margin-bottom: .7rem;
  display: flex; align-items: center; gap: .7rem;
}
.cs-block h2::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-strong); flex: none;
}
.cs-block p { font-size: 1.08rem; color: var(--ink); }
.cs-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.cs-block li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: 1.06rem; }
.cs-block li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong);
}
.cs-block li strong { color: var(--brand); }

.cs-figure { margin: 0; }
.cs-figure img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background:#fff; }
.cs-figure figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .7rem; text-align: center; font-family: var(--font-head); }

.cs-callout {
  background: var(--brand-tint); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem; font-size: 1.08rem; color: var(--brand);
}
.cs-callout strong { color: var(--brand); }

.cs-nav { border-top: 1px solid var(--line); padding: clamp(32px,5vw,56px) 0; background: var(--bg-soft); }
.cs-nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cs-nav .back { font-family: var(--font-head); font-weight: 600; color: var(--brand); display: inline-flex; align-items:center; gap:.5rem; }
.cs-nav .back:hover { color: var(--accent-strong); }

/* Prev/next between case studies */
.cs-pager { display: flex; gap: 1rem; }
.cs-pager a { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .4rem; }
.cs-pager a:hover { color: var(--accent-strong); }

/* ==========================================================================
   Utilities
   ========================================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
