/* ==========================================================================
   Shahzad Ali — Portfolio
   Modern, clean rebuild (static HTML/CSS/JS)
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Design tokens                                                              */
/* -------------------------------------------------------------------------- */
:root {
  --ink:        #0e0e11;
  --ink-soft:   #16161b;
  --ink-2:      #1d1d24;
  --paper:      #ffffff;
  --paper-2:    #f5f4f1;
  --paper-3:    #ecebe6;
  --line:       #e4e2db;
  --line-dark:  rgba(255, 255, 255, 0.10);

  --text:       #1a1a1f;
  --text-soft:  #5c5c66;
  --text-mute:  #8a8a93;
  --on-dark:    #f3f2ee;
  --on-dark-soft: #a7a7ad;

  --accent:     #7f6f5b;
  --accent-2:   #a8957c;
  --accent-ink: #ffffff;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;

  --maxw:       1180px;
  --gutter:     clamp(20px, 5vw, 64px);

  --shadow-sm:  0 2px 10px rgba(16, 16, 20, 0.06);
  --shadow:     0 18px 50px -20px rgba(16, 16, 20, 0.28);
  --shadow-lg:  0 40px 90px -35px rgba(16, 16, 20, 0.45);

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Reset & base                                                               */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

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

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

.section {
  padding-block: clamp(64px, 9vw, 130px);
  position: relative;
}

.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.dark {
  background: var(--ink);
  color: var(--on-dark);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--on-dark); }

.muted-bg { background: var(--paper-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin-top: 16px;
}
.section-head p {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 1.02rem;
}
.dark .section-head p { color: var(--on-dark-soft); }

.lead { font-size: 1.1rem; color: var(--text-soft); }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
  --_bg: var(--ink);
  --_fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 28px;
  border-radius: 100px;
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translateX(4px); }

.btn--accent { --_bg: var(--accent); --_fg: var(--accent-ink); }
.btn--light  { --_bg: var(--paper); --_fg: var(--ink); }
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--text);
  border-color: var(--line);
}
.dark .btn--ghost { --_fg: var(--on-dark); border-color: var(--line-dark); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.dark .btn--ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* circle-style CTA (mirrors the original "download cv / learn more" dots) */
.link-dot {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.link-dot .dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.link-dot .dot svg { width: 15px; height: 15px; }
.link-dot:hover { color: var(--accent); }
.link-dot:hover .dot { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* -------------------------------------------------------------------------- */
/* Header / nav                                                               */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
}
.brand .mark span { color: var(--accent); }
.brand-logo {
  display: block;
  height: 46px;
  aspect-ratio: 1 / 1;
  background-color: var(--accent);
  -webkit-mask: url(../img/logo-sa.png) center / contain no-repeat;
          mask: url(../img/logo-sa.png) center / contain no-repeat;
}
.footer-brand .brand-logo { height: 58px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text-soft);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--paper-2); }

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

/* the in-list CTA is only for the mobile dropdown; hide it on desktop */
.nav-links > .btn { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding-block: clamp(70px, 10vw, 120px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(168, 149, 124, 0.20), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(127, 111, 91, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-copy .hero-hi {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  color: var(--on-dark);
  letter-spacing: -0.03em;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .tagline {
  margin-top: 24px;
  max-width: 440px;
  color: var(--on-dark-soft);
  font-size: 1.12rem;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}
.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 400px;
}
.hero-media .photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #2a2a33, #111116);
  box-shadow: var(--shadow-lg);
  position: relative;
  filter: grayscale(0.15);
}
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .badge {
  position: absolute;
  left: -22px;
  bottom: 30px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-media .badge strong { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1; }
.hero-media .badge small { color: var(--text-mute); font-size: 0.75rem; }
.hero-media .badge .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}

/* fallback avatar when no photo is supplied */
.avatar-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6rem);
  color: rgba(255,255,255,0.14);
  letter-spacing: -0.04em;
}

/* -------------------------------------------------------------------------- */
/* Marquee / tech strip                                                       */
/* -------------------------------------------------------------------------- */
.ticker {
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  padding-block: 14px;
  border-block: 1px solid rgba(0,0,0,0.12);
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 40px; }
.ticker-track span::after { content: "✦"; opacity: 0.6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------- */
/* About intro                                                                */
/* -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about-grid .about-body p + p { margin-top: 18px; }
.about-stats-inline {
  display: flex;
  gap: 36px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.about-stats-inline .n {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.about-stats-inline .l { color: var(--text-mute); font-size: 0.85rem; margin-top: 6px; }

/* -------------------------------------------------------------------------- */
/* Service / feature cards                                                    */
/* -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.dark .card {
  background: var(--ink-soft);
  border-color: var(--line-dark);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card .num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--paper-3);
  line-height: 1;
  margin-bottom: 18px;
}
.dark .card .num { color: var(--ink-2); }
.card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }
.dark .card p { color: var(--on-dark-soft); }
.card .card-foot { margin-top: 26px; }

/* -------------------------------------------------------------------------- */
/* Stats band                                                                 */
/* -------------------------------------------------------------------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
}
.stat .n em { font-style: normal; color: var(--accent); }
.stat .l { color: var(--on-dark-soft); margin-top: 10px; font-size: 0.95rem; }

/* -------------------------------------------------------------------------- */
/* Portfolio list                                                             */
/* -------------------------------------------------------------------------- */
.folio-layout {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(20px, 2.5vw, 40px);
  align-items: start;
}
.folio-list { border-top: 1px solid var(--line-dark); }
.dark .folio-list { border-top-color: var(--line-dark); }
.folio-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 20px;
  border-bottom: 1px solid var(--line-dark);
  cursor: pointer;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.folio-item .idx { font-family: var(--font-display); color: var(--text-mute); font-size: 0.95rem; }
.folio-item h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); transition: color 0.3s var(--ease); }
.folio-item .arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0.35;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
}
.folio-item:hover { background: var(--accent); padding-inline: 32px; }
.folio-item:hover .idx,
.folio-item:hover h3 { color: var(--accent-ink); }
.folio-item:hover .arrow { opacity: 1; color: var(--accent-ink); transform: rotate(-45deg); }
.folio-item .tags { color: var(--text-mute); font-size: 0.85rem; margin-top: 4px; }
.folio-item:hover .tags { color: rgba(255,255,255,0.78); }

.folio-aside .sticky {
  position: sticky; top: 100px;
  max-width: 320px;
}
.folio-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-soft));
  aspect-ratio: 4 / 5;
  max-width: 300px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
}

/* -------------------------------------------------------------------------- */
/* Timeline (experience / education / awards)                                 */
/* -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 0 16px 18px;
  border-bottom: 1px solid var(--line);
}
.dark .data-table thead th { border-color: var(--line-dark); }
.data-table td {
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.dark .data-table td { border-color: var(--line-dark); }
.data-table tr { transition: background 0.3s var(--ease); }
.data-table tbody tr:hover { background: var(--paper-2); }
.dark .data-table tbody tr:hover { background: var(--ink-soft); }
.data-table .co { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.data-table .co small { display: block; color: var(--accent); font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; margin-top: 3px; }
.data-table .yr { white-space: nowrap; color: var(--text-soft); font-weight: 600; }
.dark .data-table .yr { color: var(--on-dark-soft); }
.data-table .pos { color: var(--text-soft); }
.dark .data-table .pos { color: var(--on-dark-soft); }

/* two-column entry list (education / awards) */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.entry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.dark .entry { background: var(--ink-soft); border-color: var(--line-dark); }
.entry:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.entry .year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.entry h3 { font-size: 1.25rem; }
.entry .sub { color: var(--text-soft); font-weight: 500; margin-top: 6px; }
.dark .entry .sub { color: var(--on-dark-soft); }
.entry p { color: var(--text-soft); font-size: 0.95rem; margin-top: 12px; }
.dark .entry p { color: var(--on-dark-soft); }
.entry .ext { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.85rem; color: var(--accent); }
.entry .ext:hover { color: var(--accent-2); }

/* -------------------------------------------------------------------------- */
/* Skills                                                                      */
/* -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.skill { margin-bottom: 26px; }
.skill:last-child { margin-bottom: 0; }
.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.skill-top .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skill-top .pct { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.skill-bar {
  height: 8px;
  border-radius: 100px;
  background: var(--line-dark);
  overflow: hidden;
}
.dark .skill-bar { background: var(--ink-2); }
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s var(--ease);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.25s var(--ease);
}
.dark .chip { border-color: var(--line-dark); color: var(--on-dark-soft); }
.chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }

/* -------------------------------------------------------------------------- */
/* Logos strip                                                                */
/* -------------------------------------------------------------------------- */
.logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 56px) 18px;
}
.logos .logo {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark-soft);
  opacity: 0.75;
  transition: all 0.3s var(--ease);
}
.logos .logo:hover { opacity: 1; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* -------------------------------------------------------------------------- */
/* Blog                                                                        */
/* -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.dark .post { background: var(--ink-soft); border-color: var(--line-dark); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--ink-2), var(--ink));
  position: relative;
  display: grid;
  place-items: center;
  color: var(--on-dark-soft);
  overflow: hidden;
}
.post-thumb .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
}
.post-thumb svg { width: 54px; height: 54px; opacity: 0.4; }
.post-body { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.78rem; color: var(--text-mute); letter-spacing: 0.04em; margin-bottom: 12px; }
.post-body h3 { font-size: 1.22rem; line-height: 1.25; }
.post-body h3 a:hover { color: var(--accent); }
.post-body p { color: var(--text-soft); font-size: 0.95rem; margin-top: 12px; flex: 1; }
.dark .post-body p { color: var(--on-dark-soft); }
.post-body .read { margin-top: 22px; }

/* -------------------------------------------------------------------------- */
/* Testimonials                                                               */
/* -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 30px);
}
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
}
.dark .quote { background: var(--ink-soft); border-color: var(--line-dark); }
.quote .mark { font-family: var(--font-display); font-size: 3.4rem; line-height: 0.6; color: var(--accent); height: 30px; }
.quote p { color: var(--text-soft); margin: 18px 0 24px; }
.dark .quote p { color: var(--on-dark-soft); }
.quote .who { display: flex; align-items: center; gap: 14px; }
.quote .who .pic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  flex: none;
}
.quote .who strong { display: block; font-family: var(--font-display); }
.quote .who small { color: var(--text-mute); }

/* -------------------------------------------------------------------------- */
/* Why-me split                                                               */
/* -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.split .why-body p + p { margin-top: 18px; }
.signature {
  font-family: "Space Grotesk", cursive;
  font-size: 1.6rem;
  font-style: italic;
  margin-top: 28px;
  color: var(--text);
}
.dark .signature { color: var(--on-dark); }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #2a2a33, #111116);
  box-shadow: var(--shadow);
  position: relative;
  filter: grayscale(0.2);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------------- */
/* Contact                                                                     */
/* -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
}
.contact-info .info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dark .contact-info .info-row { border-color: var(--line-dark); }
.contact-info .info-row .ico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--paper-2); color: var(--ink);
  display: grid; place-items: center;
}
.dark .contact-info .info-row .ico { background: var(--ink-soft); color: var(--accent); }
.contact-info .info-row .l { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-info .info-row .v { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}
.dark .form { background: var(--ink-soft); border-color: var(--line-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; position: relative; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.dark .field label { color: var(--on-dark-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.dark .field input,
.dark .field textarea { background: var(--ink); border-color: var(--line-dark); color: var(--on-dark); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.dark .field input:focus,
.dark .field textarea:focus { background: var(--ink-2); }
.field textarea { min-height: 140px; resize: vertical; }
.form .consent { font-size: 0.82rem; color: var(--text-mute); margin: 8px 0 22px; }
.form .consent a { color: var(--accent); }
.form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 600; }
.form-status.ok { color: #1f9d55; }

/* download cv banner */
.cv-banner {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
}
.cv-banner h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cv-banner p { color: var(--on-dark-soft); max-width: 460px; }

/* -------------------------------------------------------------------------- */
/* CTA band                                                                    */
/* -------------------------------------------------------------------------- */
.cta {
  text-align: center;
  display: grid;
  place-items: center;
  gap: 24px;
}
.cta h2 {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  max-width: 16ch;
}
.cta .accent-word { color: var(--accent); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-top: clamp(56px, 7vw, 90px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 50px);
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { color: var(--on-dark); margin-bottom: 18px; }
.footer-brand .brand .mark { background: var(--paper); color: var(--ink); }
.footer-brand p { max-width: 300px; font-size: 0.95rem; }
.footer-col h4 {
  color: var(--on-dark);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.93rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 28px;
  font-size: 0.85rem;
}
.footer-bottom .loc { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  color: var(--on-dark-soft);
  transition: all 0.3s var(--ease);
}
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

/* -------------------------------------------------------------------------- */
/* Page hero (interior pages)                                                 */
/* -------------------------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(60px, 8vw, 110px) clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(55% 60% at 80% 20%, rgba(168,149,124,0.18), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--on-dark); margin-top: 14px; }
.page-hero p { color: var(--on-dark-soft); max-width: 560px; margin-top: 18px; font-size: 1.05rem; }
.crumbs { font-size: 0.85rem; color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--accent); }

/* -------------------------------------------------------------------------- */
/* Article (single blog post)                                                 */
/* -------------------------------------------------------------------------- */
.article { max-width: 760px; margin-inline: auto; }
.article-figure {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.article-figure img { width: 100%; display: block; }
.article p,
.article li { color: var(--text-soft); font-size: 1.07rem; line-height: 1.78; }
.article p { margin-top: 18px; }
.article p.lead { font-size: 1.2rem; color: var(--text); margin-top: 0; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 44px; }
.article h3 { font-size: 1.25rem; margin-top: 30px; }
.article ul { margin-top: 16px; padding-left: 1.25em; list-style: disc; }
.article li { margin-top: 8px; }
.article li::marker { color: var(--accent); }
.article .post-tags { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }

/* -------------------------------------------------------------------------- */
/* Scroll reveal                                                              */
/* -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------- */
/* Image wiring (real photos / logos)                                         */
/* -------------------------------------------------------------------------- */
/* hero + why-me portraits: fill their rounded frames */
.hero-media .photo img,
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* testimonial avatars */
.quote .who .pic { overflow: hidden; padding: 0; }
.quote .who .pic img { width: 100%; height: 100%; object-fit: cover; }

/* handwritten signature */
.signature-img { margin-top: 26px; width: 210px; max-width: 62%; height: auto; }
.dark .signature-img { filter: invert(1) brightness(1.4); }

/* logo wall — logos sit directly on the dark band (no cards) */
.logos .logo {
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0.9;
  padding: 8px;
  min-height: 84px;
}
.logos .logo img { max-height: 58px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.logos .logo:hover {
  opacity: 1;
  color: inherit;
  transform: translateY(-3px);
  box-shadow: none;
  border-color: transparent;
}

/* blog thumbnails */
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* portfolio preview image + caption overlay */
.folio-figure { position: relative; overflow: hidden; }
.folio-figure .figure-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.folio-figure:hover .figure-img { transform: scale(1.03); }
.folio-figure .figure-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  margin: 0;
  padding: 44px 22px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

/* -------------------------------------------------------------------------- */
/* Portfolio — load-more + project detail overlay                             */
/* -------------------------------------------------------------------------- */
.folio-item.is-hidden { display: none; }
.folio-item[data-project] { cursor: pointer; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:hover { transform: none; box-shadow: none; }

.project-detail {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5%);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.project-detail.open { opacity: 1; visibility: visible; transform: none; }
body.pd-lock { overflow: hidden; }

.pd-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 0;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  border-radius: 100px;
  padding: 10px 20px 10px 15px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pd-back svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.pd-back:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pd-back:hover svg { transform: translateX(-4px); }

.pd-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pd-content {
  max-width: 920px;
  padding-block: clamp(32px, 5vw, 60px) clamp(56px, 8vw, 110px);
}
.pd-content .eyebrow { margin-bottom: 16px; }
.pd-content h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.pd-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--accent); font-weight: 600; }
.pd-link[hidden] { display: none; }
.pd-link:hover { color: var(--accent-2); }
.pd-link::after { content: "\2197"; }
.pd-body { margin-top: 26px; }
.pd-body p { color: var(--on-dark-soft); font-size: 1.06rem; }
.pd-body p + p { margin-top: 16px; }
.pd-hero {
  margin: 36px 0 0;
  max-width: 580px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-soft);
}
.pd-hero img { width: 100%; display: block; max-height: 360px; object-fit: cover; object-position: top; }
.pd-gallery {
  margin-top: 18px;
  max-width: 580px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pd-gallery img {
  width: 100%;
  display: block;
  height: 150px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
  background: var(--ink-soft);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .container,
  .about-grid,
  .skills-grid,
  .folio-layout,
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: start; max-width: 340px; order: -1; }
  .folio-aside { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .nav-links.open { display: flex; transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-links .btn { display: inline-flex; justify-content: center; margin-top: 10px; }

  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .dark .data-table tr { border-color: var(--line-dark); }
  .data-table td { border: none; padding: 4px 0; }
  .data-table .yr { color: var(--accent); }
}

@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .about-stats-inline { gap: 24px; }
  .hero-media .badge { left: 0; }
}

/* -------------------------------------------------------------------------- */
/* Founder / company components                                               */
/* -------------------------------------------------------------------------- */
.creds { background: var(--paper-2); border-block: 1px solid var(--line); }
.creds-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 36px;
  padding-block: 22px;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.creds-row strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 8px;
}

.card-logo { height: 52px; width: auto; margin-bottom: 22px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card p a { color: var(--accent); font-weight: 600; }

.stats-band--3 { grid-template-columns: repeat(3, 1fr); }
.link-dot--plain { text-transform: none; letter-spacing: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.dark .link-dot { color: var(--on-dark); }
.dark .link-dot:hover { color: var(--accent-2); }

.quotes--single { grid-template-columns: 1fr; max-width: 860px; }
.quotes--single .quote p { font-size: 1.12rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-row--start { justify-content: flex-start; }

.page-hero-logo { height: 64px; width: auto; margin-top: 22px; }

/* WaqtPer showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.showcase-mark { height: 56px; width: auto; margin-bottom: 22px; }
.showcase-copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 16px 0 20px; }
.showcase-copy > p { color: var(--on-dark-soft); }
.ticks { display: grid; gap: 12px; margin: 24px 0; }
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--on-dark-soft);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 12px; border-radius: 50%;
  background: #FDC616; /* WaqtPer brand yellow */
}
.ticks strong { color: var(--on-dark); font-weight: 600; }
.showcase-status {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--on-dark) !important;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 26px;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
  align-items: start;
}
.phones img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.phones img:nth-child(2) { margin-top: 40px; }

/* Leadership principles */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.principle {
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 28px);
}
.principle h3 { font-size: 1.1rem; margin-bottom: 10px; }
.principle p { color: var(--on-dark-soft); font-size: 0.93rem; }

/* Press kit */
.bio-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
  max-width: 900px;
}
.bio-box h3 { font-size: 1.2rem; margin-bottom: 14px; }
.bio-box p { color: var(--text-soft); margin-bottom: 26px; }

@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stats-band--3 { grid-template-columns: 1fr; gap: 28px; }
  .creds-row { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .phones img:nth-child(2) { margin-top: 20px; }
}
