/* ============================================================
   AHSAN FAROOQ — PERSONAL PORTFOLIO
   Institutional / editorial minimal design system
   ============================================================ */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
blockquote,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
input,
textarea {
  font: inherit;
}

/* ---------- TOKENS ---------- */
:root {
  --font-primary:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-signature: "Alex Brush", cursive;

  --color-black: #0b0b0c;
  --color-black-deep: #050506;
  --color-white: #ffffff;
  --color-offwhite: #f7f5f1;
  --color-offwhite-b: #f0ebe2;

  --color-gold: #b7975c;
  --color-gold-light: #d9c29b;

  --color-text-dark: #17171a;
  --color-text-light: #f7f5f1;

  --container-max: 1240px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-py: clamp(72px, 11vw, 152px);
  --section-py-tight: clamp(48px, 7vw, 96px);

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* Surfaces (light mode = default editorial rhythm) */
:root[data-theme="light"] {
  --surface-1-bg: var(--color-offwhite);
  --surface-1-text: var(--color-text-dark);
  --surface-1b-bg: var(--color-offwhite-b);
  --surface-1b-text: var(--color-text-dark);
  --surface-2-bg: var(--color-black);
  --surface-2-text: var(--color-text-light);
}
/* Dark mode = whole reading experience deepens to charcoal/black */
:root[data-theme="dark"] {
  --surface-1-bg: #131315;
  --surface-1-text: var(--color-text-light);
  --surface-1b-bg: var(--color-black-deep);
  --surface-1b-text: var(--color-text-light);
  --surface-2-bg: var(--color-black-deep);
  --surface-2-text: var(--color-text-light);
}

.surface-1 {
  background: var(--surface-1-bg);
  color: var(--surface-1-text);
}
.surface-1b {
  background: var(--surface-1b-bg);
  color: var(--surface-1b-text);
}
.surface-2 {
  background: var(--surface-2-bg);
  color: var(--surface-2-text);
}

html,
body {
  background: var(--color-offwhite);
  overflow-x: hidden;
}
body {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease);
}

:focus-visible {
  outline: 1.5px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-py);
}
.section--tight {
  padding-block: var(--section-py-tight);
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.eyebrow--gold {
  color: var(--color-gold-light);
}
.eyebrow--center {
  display: block;
  text-align: center;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.section-title--sm {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
}

.section-lede {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 380px;
  opacity: 0.72;
}
.section-lede--center {
  max-width: 560px;
  margin-inline: auto;
}

.rule {
  display: block;
  width: 56px;
  height: 1px;
  margin-block: 28px;
  background: currentColor;
  opacity: 0.25;
}
.rule--gold {
  background: var(--color-gold);
  opacity: 0.9;
}
.rule--center {
  margin-inline: auto;
}

.signature {
  font-family: var(--font-signature);
  font-size: 2.6rem;
  color: var(--color-gold-light);
  margin-top: 30px;
  font-weight: 400;
}
.signature--center {
  text-align: center;
  margin-top: 34px;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
}
.icon svg,
svg.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--gold {
  color: var(--color-gold);
}

/* ---------- REVEAL (progressive enhancement — visible by default) ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-offwhite);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.logo:hover .logo-mark {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-company {
  display: none;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.62);
}
@media (min-width: 560px) {
  .logo-company {
    display: block;
  }
}

.nav-primary {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav-primary a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.72);
  position: relative;
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-primary a:hover {
  color: var(--color-offwhite);
}
.nav-primary a:hover::after {
  transform: scaleX(1);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 245, 241, 0.85);
  position: relative;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}
.icon-moon-i {
  display: none;
  position: absolute;
}
.icon-sun-i {
  display: block;
}
[data-theme="dark"] .icon-sun-i {
  display: none;
}
[data-theme="dark"] .icon-moon-i {
  display: block;
  position: static;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--color-offwhite);
  position: relative;
}
.icon-close-i {
  display: none;
  position: absolute;
}
.menu-toggle[aria-expanded="true"] .icon-menu-i {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close-i {
  display: block;
  position: static;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-mobile a {
  padding: 16px var(--gutter);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-mobile.is-open {
  display: flex;
}

/* ============================================================
   HERO – text left + dark layered image right
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #050506;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 48%);
  min-height: 68vh;
  max-width: 1400px;
  margin-inline: auto;
}

/* ---------- LEFT SIDE (mostly blank + text) ---------- */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 9vw, 120px) clamp(32px, 5vw, 80px);
  max-width: 560px;
}

.hero-headline {
  font-size: clamp(2.5rem, 4.8vw, 4.1rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 0;
}

.headline-word {
  white-space: nowrap;
}

.hero-sub {
  max-width: 420px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(247, 245, 241, 0.7);
  margin-top: 28px;
}

.hero .signature {
  margin-top: 36px;
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

/* ---------- RIGHT SIDE – dark layered picture ---------- */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
    120% 90% at 70% 20%,
    #201f22 0%,
    #0b0b0c 55%,
    #050506 100%
  );
}

/* the actual photo – right aligned */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  transition: transform 0.8s ease;
}

.hero-visual:hover .hero-photo {
  transform: scale(1.08);
}

/* dark atmospheric layers */
.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-layer--1 {
  background: linear-gradient(
    to left,
    transparent 0%,
    rgba(5, 5, 6, 0.55) 70%,
    rgba(5, 5, 6, 0.92) 100%
  );
  z-index: 2;
}

.hero-layer--2 {
  background: linear-gradient(to top, rgba(5, 5, 6, 0.75) 0%, transparent 45%);
  z-index: 3;
}

.hero-layer--3 {
  background: radial-gradient(
    ellipse at 70% 40%,
    transparent 0%,
    rgba(5, 5, 6, 0.45) 100%
  );
  z-index: 4;
}

/* ---------- bottom panel ---------- */
.hero-panel {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 60px);
}

.hero-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-panel-item:first-child {
  border-left: none;
  padding-left: 0;
}

.hero-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 3px;
}

.hero-panel-text {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(247, 245, 241, 0.58);
  line-height: 1.5;
}

/* ============================================================
   THE FIRM
   ============================================================ */
.firm-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.firm-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.firm-mark {
  color: var(--color-gold);
  flex-shrink: 0;
}
.firm-mark svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.35;
}
.firm-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  max-width: 620px;
  opacity: 0.78;
  margin-top: 6px;
}
.firm-points {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.firm-point-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 6px;
}
.firm-point-value {
  font-size: 0.98rem;
  font-weight: 500;
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.approach-statement {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  margin-block: 18px 14px;
  color: var(--color-gold);
}

/* ============================================================
   TIMELINE (Journey)
   ============================================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: currentColor;
  opacity: 0.15;
}
.timeline-item {
  position: relative;
  padding-left: 42px;
  padding-bottom: 52px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-text-dark);
  opacity: 0.35;
}
.timeline-dot--gold {
  background: var(--color-gold);
  opacity: 1;
  width: 13px;
  height: 13px;
  left: -1px;
  top: 5px;
  box-shadow: 0 0 0 5px rgba(183, 151, 92, 0.16);
}
.timeline-item-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 8px;
}
.timeline-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}
.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}
.timeline-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.68;
  max-width: 480px;
}
.timeline-item--now .timeline-title {
  color: var(--color-gold);
}

.timeline-close {
  margin-top: 56px;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================================
   MARKETS
   ============================================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.market-card {
  background: var(--surface-1b-bg);
  padding: 36px 20px;
  text-align: center;
  transition: background 0.3s var(--ease);
}
.market-card:hover {
  background: var(--color-black);
  color: var(--color-offwhite);
}
.market-card:hover .market-icon {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}
.market-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.85;
  margin-bottom: 20px;
  color: var(--color-text-dark);
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.market-icon--code {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.market-name {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.market-freq {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  opacity: 0.85;
}

.market-secondary {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.market-secondary-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}
.market-secondary-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.market-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  padding: 9px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  opacity: 0.75;
}
.market-chip-code {
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--color-gold);
}
.market-secondary-freq {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ============================================================
   APPROACH — principles
   ============================================================ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
}
.principle {
  text-align: center;
  padding: 0 20px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.principle:first-child {
  border-left: none;
}
.principle-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.principle-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.principle-text {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.68;
  line-height: 1.7;
  max-width: 260px;
  margin-inline: auto;
}

.approach-close {
  text-align: center;
  margin-top: 76px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============================================================
   TECHNOLOGY (dark cluster)
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.tech-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(247, 245, 241, 0.68);
  max-width: 440px;
  margin-bottom: 30px;
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 32px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(247, 245, 241, 0.85);
}

.dashboard-mock {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.dashboard-mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dashboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.dashboard-mock-title {
  margin-left: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.5);
}
.dashboard-mock-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.dashboard-panel {
  background: #111113;
  padding: 22px;
}
.dashboard-panel--donut {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.dashboard-panel-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.4);
  margin-bottom: 18px;
}
.donut {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin-inline: auto;
  background: conic-gradient(
    var(--color-gold) 0 35%,
    rgba(247, 245, 241, 0.5) 35% 58%,
    rgba(247, 245, 241, 0.24) 58% 82%,
    rgba(247, 245, 241, 0.1) 82% 100%
  );
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: #111113;
}
.donut-legend {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donut-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: rgba(247, 245, 241, 0.55);
}
.donut-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 245, 241, 0.4);
  display: block;
}
.donut-legend span:nth-child(1) i {
  background: var(--color-gold);
}

.dashboard-line {
  width: 100%;
  height: 64px;
  color: var(--color-gold-light);
  margin-top: 8px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 64px;
  margin-top: 8px;
}
.bars span {
  flex: 1;
  background: rgba(247, 245, 241, 0.28);
  height: var(--h);
  border-radius: 2px 2px 0 0;
}
.bars span:nth-child(4) {
  background: var(--color-gold);
}

/* ============================================================
   FOUNDATION (Section 05, sits below tech cluster)
   ============================================================ */
.foundation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foundation-edu {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(247, 245, 241, 0.6);
  margin-top: 8px;
}
.foundation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.foundation-tags span {
  font-size: 0.76rem;
  font-weight: 400;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(247, 245, 241, 0.75);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.exp-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.exp-role h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.exp-period {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.exp-desc {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.7;
  max-width: 560px;
  align-self: center;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
#philosophy .container {
  max-width: 900px;
  text-align: center;
}
.philosophy-quote {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}
.philosophy-triplet {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-gold);
  margin-bottom: 30px;
}
.philosophy-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  max-width: 620px;
  margin-inline: auto;
  opacity: 0.72;
}
.values-grid {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
.value {
  display: flex;
  align-items: center;
  gap: 14px;
}
.value p {
  font-size: 0.86rem;
  font-weight: 400;
}

/* ============================================================
   CURRENT ROLE
   ============================================================ */
.current-role-inner {
  text-align: center;
  max-width: 720px;
}
.current-role-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.current-role-sub {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 22px;
}
.current-role-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(247, 245, 241, 0.68);
  max-width: 460px;
  margin-inline: auto;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  opacity: 0.75;
  max-width: 480px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  text-align: center;
  max-width: 640px;
}
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 16px 30px;
  border: 1px solid rgba(183, 151, 92, 0.55);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-gold-light);
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.contact-cta:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-black);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.footer-legal {
  padding-bottom: 40px;
}
.footer-legal p {
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.45;
  max-width: 760px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 48px;
  flex-wrap: wrap;
}
.footer-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-role {
  font-size: 0.78rem;
  font-weight: 300;
  opacity: 0.55;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
  transition:
    opacity 0.25s var(--ease),
    color 0.25s var(--ease);
}
.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold);
}
.footer-copy {
  font-size: 0.78rem;
  opacity: 0.5;
}
.footer-col:last-child {
  text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-visual {
    min-height: 420px;
    max-height: 520px;
    order: -1;
  }
  .market-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-mock {
    max-width: 480px;
  }
  .foundation-grid {
    grid-template-columns: 1fr;
  }
  .firm-grid {
    grid-template-columns: 1fr;
  }
  .firm-mark {
    display: none;
  }
  .foundation-tags {
    justify-content: flex-start;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .nav-primary {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }

  .hero-copy {
    padding: 48px 22px 40px;
  }
  .hero-headline {
    font-size: clamp(2.1rem, 8.5vw, 2.6rem);
  }
  .hero-sub {
    font-size: 0.95rem;
    margin-top: 22px;
  }
  .hero-visual {
    min-height: 320px;
    max-height: 400px;
  }

  .hero-panel-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel-item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
  }
  .hero-panel-item:first-child {
    border-top: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-lede {
    max-width: 100%;
  }

  .timeline-item {
    padding-left: 30px;
    padding-bottom: 40px;
  }
  .timeline-title {
    font-size: 1.05rem;
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-secondary-freq {
    margin-left: 0;
    width: 100%;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .principle {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 32px;
  }
  .principle:first-child {
    border-top: none;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .dashboard-mock-body {
    grid-template-columns: 1fr;
  }
  .dashboard-panel--donut {
    grid-row: auto;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-col:last-child {
    text-align: left;
  }
  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .hero-visual {
    min-height: 260px;
    max-height: 320px;
  }
  .hero-copy {
    padding: 40px 18px 34px;
  }
  .hero-headline {
    font-size: clamp(1.9rem, 9.5vw, 2.3rem);
  }
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }
  .market-card {
    padding: 26px 14px;
  }
  .current-role-title {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }
  .philosophy-quote {
    font-size: clamp(1.7rem, 8.5vw, 2.2rem);
  }
}
