:root {
  --ink: #151922;
  --muted: #5f6878;
  --paper: #f7f4ee;
  --white: #ffffff;
  --red: #b22234;
  --teal: #087f8c;
  --gold: #d6a642;
  --green: #466f58;
  --line: rgba(21, 25, 34, 0.12);
  --shadow: 0 24px 70px rgba(28, 34, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(247, 244, 238, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #333b49;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(48px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(178, 34, 52, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(8, 127, 140, 0.1), transparent 38%),
    var(--paper);
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 620px;
  color: #485263;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 25, 34, 0.16);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.portrait-panel {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(21, 25, 34, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 22%, rgba(214, 166, 66, 0.45), transparent 28%),
    linear-gradient(145deg, #fffdf8, #e8eef0 48%, #d7e9e8);
  box-shadow: var(--shadow);
}

.portrait-panel::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(21, 25, 34, 0.15);
  border-radius: 8px;
}

.portrait-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  opacity: 0.62;
}

.portrait-grid span {
  border-right: 1px solid rgba(21, 25, 34, 0.09);
  border-bottom: 1px solid rgba(21, 25, 34, 0.09);
}

.profile-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.profile-core {
  display: grid;
  width: min(42vw, 230px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(21, 25, 34, 0.94), rgba(70, 111, 88, 0.9)),
    var(--ink);
  box-shadow: 0 22px 56px rgba(21, 25, 34, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
}

.signal {
  position: absolute;
  padding: 10px 13px;
  border: 1px solid rgba(21, 25, 34, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(21, 25, 34, 0.12);
  color: #243042;
  font-size: 0.86rem;
  font-weight: 850;
}

.signal-one {
  top: 18%;
  right: 12%;
}

.signal-two {
  left: 10%;
  bottom: 24%;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(21, 25, 34, 0.08);
}

.impact-strip div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.impact-strip div:last-child {
  border-right: 0;
}

.impact-strip strong {
  display: block;
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1;
}

.impact-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 36px;
}

.intro-band,
.skills-band {
  background: var(--white);
}

.focus-grid,
.case-grid,
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-grid article,
.case-grid article,
.education-card,
.timeline-content,
.skill-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(21, 25, 34, 0.08);
}

.focus-grid article,
.case-grid article,
.skill-column {
  padding: 24px;
}

.icon,
.case-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.focus-grid p,
.case-grid p,
.timeline-content p,
.education-card p,
.skill-column p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
}

.date {
  padding-top: 24px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
}

.timeline-content {
  padding: 24px;
}

.timeline-item.featured .timeline-content {
  border-color: rgba(178, 34, 52, 0.28);
  background: linear-gradient(135deg, rgba(178, 34, 52, 0.08), rgba(255, 255, 255, 0.86));
}

.location {
  margin-bottom: 16px;
  font-size: 0.94rem;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: #485263;
}

li + li {
  margin-top: 8px;
}

.education-band {
  background:
    linear-gradient(180deg, rgba(21, 25, 34, 0.94), rgba(21, 25, 34, 0.9)),
    var(--ink);
  color: var(--white);
}

.education-band .eyebrow {
  color: #92dce5;
}

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

.education-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
}

.education-card p {
  margin-bottom: 10px;
  font-weight: 750;
}

.education-card span {
  color: var(--muted);
}

.logo-frame {
  display: grid;
  min-height: 132px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f7;
}

.logo-frame.kcl {
  background: #d71920;
}

.logo-frame.kcl img {
  width: 112px;
}

.logo-frame.nmims img {
  width: 128px;
}

.selected-work {
  background: #eef5f4;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: 999px;
  background: #f6fbfb;
  color: #24414a;
  font-size: 0.88rem;
  font-weight: 750;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(178, 34, 52, 0.82), rgba(8, 127, 140, 0.82)),
    var(--ink);
}

.contact h2 {
  max-width: 860px;
}

.contact .eyebrow {
  color: #ffe08a;
}

.contact .button {
  border-color: rgba(255, 255, 255, 0.52);
}

.contact .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: #d9dde5;
  background: var(--ink);
  font-size: 0.92rem;
}

footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-panel {
    min-height: 400px;
  }

  .focus-grid,
  .case-grid,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .date {
    padding-top: 0;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    max-width: 14ch;
    font-size: clamp(2.55rem, 11.8vw, 3.6rem);
    line-height: 1.05;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-text {
    max-width: 34rem;
  }

  .portrait-panel {
    min-height: 340px;
  }

  .profile-core {
    width: min(58vw, 210px);
    font-size: 3.8rem;
  }

  .signal {
    font-size: 0.78rem;
  }

  .impact-strip {
    grid-template-columns: 1fr;
  }

  .impact-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .impact-strip div:last-child {
    border-bottom: 0;
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .logo-frame {
    min-height: 118px;
  }

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

  .button {
    width: 100%;
  }
}
