/*
Theme Name: Kamran Hassan
Theme URI: https://kamranhassan.com/
Author: Aimsparkk
Author URI: https://kamranhassan.com/
Description: A premium personal brand WordPress theme for Kamran Hassan, founder of Aimsparkk.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kamranhassan
*/

:root {
  color-scheme: light;
  --black: #070808;
  --charcoal: #111416;
  --graphite: #1d2327;
  --paper: #f3efe7;
  --paper-strong: #fbf8f2;
  --ink: #101010;
  --muted: #69635c;
  --white: #ffffff;
  --line: rgba(17, 20, 22, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --teal: #15b8a6;
  --teal-dark: #0c766d;
  --amber: #f0ad3d;
  --red: #d24a3b;
  --shadow: 0 24px 80px rgba(7, 8, 8, 0.22);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 24px;
  transition:
    background 220ms ease,
    padding 220ms ease;
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(7, 8, 8, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-dark);
}

.nav-shell {
  width: min(var(--max), calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-initials {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.94rem;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
}

.site-menu .nav-cta {
  margin-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: image-set(
    url("assets/kamran-hassan-hero.webp") type("image/webp"),
    url("assets/kamran-hassan-hero.png") type("image/png")
  );
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.94) 0%, rgba(7, 8, 8, 0.82) 34%, rgba(7, 8, 8, 0.34) 68%, rgba(7, 8, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 8, 8, 0.74) 0%, rgba(7, 8, 8, 0) 40%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  min-height: 86svh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 120px 0 74px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 6.4rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.24rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--teal);
  color: #031a18;
  box-shadow: 0 14px 40px rgba(21, 184, 166, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #2ad5c4;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.button-secondary.light {
  border-color: rgba(255, 255, 255, 0.34);
}

.proof-band {
  background: var(--charcoal);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.proof-track {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.proof-item {
  min-height: 132px;
  padding: 28px 24px;
  border-left: 1px solid var(--line-dark);
}

.proof-item:last-child {
  border-right: 1px solid var(--line-dark);
}

.proof-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--paper-strong);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.proof-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.identity-section,
.expertise-section,
.growth-section {
  padding: 104px 0;
}

.identity-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 68px;
  align-items: start;
}

.section-heading h2,
.work-header h2,
.growth-panel h2,
.contact-shell h2 {
  margin-bottom: 0;
  font-size: 3.2rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading.wide {
  max-width: 850px;
  margin-bottom: 42px;
}

.identity-copy {
  display: grid;
  gap: 22px;
  color: #3c3935;
  font-size: 1.12rem;
}

.identity-copy p {
  margin: 0;
}

.expertise-section {
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 286px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 18px 54px rgba(17, 20, 22, 0.06);
}

.service-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 42px;
  color: var(--teal-dark);
  stroke-width: 1.7;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
}

.service-card p,
.work-card p,
.growth-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-section {
  padding: 110px 0;
  background: var(--charcoal);
  color: var(--white);
}

.work-header {
  max-width: 780px;
  margin-bottom: 44px;
}

.work-header h2 {
  color: var(--paper-strong);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.work-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    #15191c;
}

.work-card.large {
  grid-row: span 2;
  min-height: 536px;
  background:
    linear-gradient(135deg, rgba(21, 184, 166, 0.18), rgba(210, 74, 59, 0.08)),
    #15191c;
}

.work-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(240, 173, 61, 0.12);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}

.work-card h3 {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--paper-strong);
  font-size: 2rem;
  line-height: 1.12;
}

.work-card:not(.large) h3 {
  font-size: 1.45rem;
}

.work-card p {
  color: rgba(255, 255, 255, 0.64);
}

.growth-section {
  background: #e9e2d6;
}

.growth-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.growth-panel p {
  margin-top: 24px;
  font-size: 1.08rem;
}

.keyword-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.keyword-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 20, 22, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  color: #2f2c28;
  font-weight: 750;
}

.internal-link-section {
  padding: 96px 0;
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
}

.internal-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.internal-link-card {
  position: relative;
  min-height: 148px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 18px 54px rgba(17, 20, 22, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.internal-link-card:hover,
.internal-link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(21, 184, 166, 0.42);
  box-shadow: 0 22px 64px rgba(17, 20, 22, 0.11);
  outline: none;
}

.internal-link-card span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.internal-link-card strong {
  max-width: 82%;
  font-size: 1.22rem;
  line-height: 1.18;
}

.internal-link-card svg {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 22px;
  height: 22px;
  color: var(--red);
}

.subpage-main {
  background: var(--paper);
}

.subpage-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 130px 0 84px;
  background: var(--black);
  color: var(--white);
}

.subpage-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.95), rgba(7, 8, 8, 0.72) 52%, rgba(7, 8, 8, 0.28)),
    image-set(
      url("assets/kamran-hassan-hero.webp") type("image/webp"),
      url("assets/kamran-hassan-hero.png") type("image/png")
    );
  background-size: cover;
  background-position: center right;
  filter: saturate(0.82);
}

.subpage-hero-shell {
  position: relative;
  z-index: 1;
}

.subpage-hero h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: 4.6rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.subpage-lede {
  max-width: 720px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.18rem;
}

.subpage-proof {
  background: var(--charcoal);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.subpage-section {
  padding: 96px 0;
  background: var(--paper);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.detail-card {
  min-height: 244px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.detail-card h2 {
  margin-bottom: 16px;
  font-size: 1.44rem;
  line-height: 1.12;
}

.detail-card p,
.story-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.story-stack {
  display: grid;
  border-top: 1px solid var(--line);
}

.story-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 44px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.story-row h2 {
  margin-bottom: 0;
  font-size: 1.72rem;
}

.faq-panel {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.faq-panel .section-heading {
  margin-bottom: 28px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.faq-item {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 18px 54px rgba(17, 20, 22, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.18;
  font-weight: 850;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--red);
  transition: transform 180ms ease;
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 18px 0 0;
  color: var(--muted);
}

.proof-showcase {
  margin-top: 64px;
}

.proof-showcase .section-heading {
  margin-bottom: 28px;
}

.proof-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.proof-showcase-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.proof-showcase-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--charcoal);
}

.proof-showcase-card div {
  padding: 22px;
}

.proof-showcase-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font: 700 0.72rem/1 var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-showcase-card h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  line-height: 1.16;
}

.proof-showcase-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  background: var(--black);
  color: var(--white);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.95), rgba(7, 8, 8, 0.74)),
    image-set(
      url("assets/kamran-hassan-hero.webp") type("image/webp"),
      url("assets/kamran-hassan-hero.png") type("image/png")
    );
  background-size: cover;
  background-position: center right;
  opacity: 0.86;
  filter: saturate(0.72);
}

.contact-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.contact-shell h2 {
  margin-bottom: 30px;
  color: var(--paper-strong);
}

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid var(--line-dark);
}

.footer-shell {
  width: min(var(--max), calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-shell p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  outline: none;
}

.footer-top {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--white);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  h1 {
    font-size: 5.1rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .internal-link-grid,
  .detail-grid,
  .faq-grid,
  .proof-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-item:nth-child(3) {
    border-right: 1px solid var(--line-dark);
  }
}

@media (max-width: 820px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    padding: 14px 0;
  }

  .nav-shell,
  .section-shell,
  .proof-track,
  .footer-shell {
    width: min(100% - 32px, var(--max));
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-menu {
    position: fixed;
    inset: 74px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: rgba(7, 8, 8, 0.94);
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    justify-content: space-between;
  }

  .site-menu .nav-cta {
    margin-left: 0;
  }

  .hero,
  .hero-shell {
    min-height: 82svh;
  }

  .hero-media {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 8, 8, 0.94) 0%, rgba(7, 8, 8, 0.78) 66%, rgba(7, 8, 8, 0.42) 100%),
      linear-gradient(0deg, rgba(7, 8, 8, 0.82) 0%, rgba(7, 8, 8, 0) 46%);
  }

  .hero-shell {
    width: min(100% - 32px, var(--max));
    padding-top: 112px;
  }

  h1 {
    font-size: 4.1rem;
    line-height: 0.98;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .proof-track,
  .identity-grid,
  .growth-grid,
  .work-grid,
  .proof-showcase-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: 112px;
    border-right: 1px solid var(--line-dark);
  }

  .identity-section,
  .expertise-section,
  .growth-section,
  .work-section,
  .contact-section {
    padding: 74px 0;
  }

  .identity-grid,
  .growth-grid {
    gap: 28px;
  }

  .section-heading h2,
  .work-header h2,
  .growth-panel h2,
  .contact-shell h2,
  .subpage-hero h1 {
    font-size: 2.34rem;
  }

  .story-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .proof-showcase {
    margin-top: 46px;
  }

  .work-card.large {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .hero,
  .hero-shell {
    min-height: 78svh;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-track,
  .service-grid,
  .internal-link-grid,
  .faq-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .subpage-hero {
    min-height: 590px;
    padding-top: 116px;
  }

  .subpage-lede {
    font-size: 1.05rem;
  }

  .footer-shell {
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card {
    min-height: 240px;
  }

  .service-card svg {
    margin-bottom: 28px;
  }

  .work-card,
  .work-card.large {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
