/* Dergham Al-Alami. Clear Suit profile. */

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #14181d;
  --navy: #1c3144;
  --paper: #f3f6f8;
  --mist: #e5edf2;
  --white: #ffffff;
  --lapis: #1e4f86;
  --lapis-deep: #14365e;
  --muted: #4d5963;
  --line: rgba(20, 24, 29, 0.12);
  --header-h: 4.25rem;
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(30, 79, 134, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, #eef3f6 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--lapis-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--lapis);
}

:focus-visible {
  outline: 2px solid var(--lapis);
  outline-offset: 3px;
}

::selection {
  background: var(--lapis);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--lapis-deep);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  z-index: 30;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(243, 246, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--lapis);
}

.nav-toggle {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--lapis-deep);
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--ink);
  padding: 0.5rem 0.95rem;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--lapis-deep);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 34rem);
  min-height: 34rem;
  background: #12171d;
  color: #f4f7f8;
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
  object-position: 46% 18%;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 4rem) max(1.25rem, calc((100vw - 70rem) / 2));
  background:
    radial-gradient(520px 280px at 0% 0%, rgba(30, 79, 134, 0.38), transparent 70%),
    #12171d;
}

.hero-copy > * {
  max-width: 36rem;
}

.cred-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 247, 248, 0.82);
}

.cred-row span:not(:last-child)::after {
  content: "·";
  margin-left: 0.9rem;
  color: rgba(244, 247, 248, 0.45);
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.7rem, 4.8vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-brand span {
  display: block;
}

.hero-place {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #d5e4f2;
}

.hero h2 {
  margin: 0 0 1rem;
  max-width: 28rem;
  font-family: Outfit, sans-serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  color: rgba(244, 247, 248, 0.96);
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  color: rgba(228, 234, 238, 0.88);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-resume {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.hero-resume a {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  font-family: Outfit, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--lapis);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--lapis-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.section .btn-secondary,
.connect-band .btn-secondary,
.contact-actions .btn-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.section .btn-secondary:hover,
.connect-band .btn-secondary:hover,
.contact-actions .btn-secondary:hover {
  color: var(--lapis-deep);
  border-color: var(--lapis);
  background: var(--white);
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 5.25rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-flush-top {
  padding-top: 0;
}

.section-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lapis);
}

.section h2,
.page-hero h1 {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-note {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.profile-grid,
.contact-panel,
.connect-inner {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.profile-grid p,
.prose p {
  margin: 0 0 1rem;
  color: var(--navy);
}

.profile-grid p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.meta-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.meta-list strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lapis);
}

.meta-list span,
.meta-list a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.why-list em {
  display: block;
  margin-bottom: 0.35rem;
  font-family: Fraunces, Georgia, serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.why-list p {
  margin: 0;
  color: var(--navy);
}

.timeline {
  display: grid;
  gap: 0;
}

.role {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 1rem 2rem;
  padding: 1.6rem 0 1.6rem 1.15rem;
  border-left: 2px solid var(--mist);
  position: relative;
}

.role::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.95rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lapis);
}

.role-featured {
  border-left-color: var(--lapis);
}

.role-when {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.role h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.role-org {
  margin: 0.2rem 0 0.75rem;
  color: var(--lapis-deep);
  font-weight: 600;
}

.role ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--navy);
}

.role li + li {
  margin-top: 0.45rem;
}

.edu-grid {
  display: grid;
  gap: 0;
}

.edu-item {
  position: relative;
  padding: 0.2rem 0 1.15rem 1.15rem;
  border-left: 2px solid var(--mist);
}

.edu-item + .edu-item {
  margin-top: 0.35rem;
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lapis);
}

.edu-item h3 {
  margin: 0 0 0.25rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.edu-item .role-org {
  margin-bottom: 0.55rem;
}

.edu-item p {
  margin: 0;
  color: var(--navy);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.skill-groups h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lapis);
}

.skill-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--navy);
}

.skill-groups li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.connect-band {
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.connect-band .section {
  border-top: none;
}

.connect-inner h2 {
  margin: 0 0 0.75rem;
}

.connect-inner p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: var(--navy);
}

.page-hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.page-hero p {
  max-width: 38rem;
  color: var(--navy);
  font-size: 1.08rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-actions .btn {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--lapis-deep);
}

.js .reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .hero-copy .reveal-brand,
.js .hero-copy .reveal-line,
.js .hero-copy .reveal-cta {
  opacity: 0;
  transform: translateY(0.85rem);
  animation: rise 0.9s var(--ease) forwards;
}

.js .hero-copy .reveal-line {
  animation-delay: 0.1s;
}

.js .hero-copy .reveal-cta {
  animation-delay: 0.2s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .hero-copy .reveal-brand,
  .js .hero-copy .reveal-line,
  .js .hero-copy .reveal-cta {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .wordmark {
    font-size: 1.05rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1rem 1rem;
    background: rgba(243, 246, 248, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.65rem;
    text-align: center;
    border-bottom: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 11.5rem auto;
    min-height: 0;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
    object-position: 50% 18%;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    padding: 1.5rem 1.15rem 2rem;
  }

  .hero-copy > * {
    max-width: none;
  }

  .profile-grid,
  .contact-panel,
  .connect-inner,
  .why-list,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .role {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 520px) {
  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .cta-row,
  .hero-resume,
  .connect-band,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: 0;
    display: block;
    color: black;
    background: white;
  }

  .hero::after {
    display: none;
  }

  .hero-photo {
    position: static;
    width: 2.4in;
    height: 3in;
    object-fit: cover;
    object-position: center 15%;
    margin-bottom: 1rem;
  }

  .hero-brand,
  .hero h2,
  .hero-lead,
  .hero-place,
  .cred-row {
    color: black;
  }

  .section,
  .page-hero {
    width: auto;
    padding: 1rem 0;
  }

  .js .reveal,
  .js .hero-copy .reveal-brand,
  .js .hero-copy .reveal-line,
  .js .hero-copy .reveal-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }

  a {
    color: black;
    text-decoration: none;
  }
}
