/* Alan Alami. Signal Lattice executive profile. */

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/sora-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/sora-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/sora-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Newsreader;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/newsreader-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #101820;
  --steel: #243447;
  --fog: #e7eef4;
  --fog-deep: #d5e0e8;
  --paper: #f4f8fb;
  --signal: #0e7c86;
  --signal-deep: #0a5c63;
  --copper: #b06a3a;
  --white: #ffffff;
  --muted: #5a6570;
  --line: rgba(16, 24, 32, 0.12);
  --header-h: 4rem;
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(14, 124, 134, 0.04) 0%, transparent 42%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 22px,
      rgba(16, 24, 32, 0.025) 22px,
      rgba(16, 24, 32, 0.025) 23px
    ),
    radial-gradient(900px 480px at 100% 0%, rgba(176, 106, 58, 0.07), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--fog) 55%, var(--fog-deep) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--signal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--signal);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-family: Sora, sans-serif;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(244, 248, 251, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--signal-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: Sora, sans-serif;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  font-family: Sora, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--signal-deep);
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--ink);
  padding: 0.45rem 0.9rem;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--signal-deep);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #0f161c;
  background-image:
    linear-gradient(105deg, rgba(16, 24, 32, 0.92) 0%, rgba(16, 24, 32, 0.62) 46%, rgba(16, 24, 32, 0.18) 100%),
    linear-gradient(180deg, rgba(16, 24, 32, 0.08) 0%, rgba(16, 24, 32, 0.58) 100%),
    url("../assets/images/alan-alami.jpg");
  background-size: cover;
  background-position: 68% 18%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0;
}

.hero-copy > * {
  max-width: 36rem;
}

.cred-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  font-family: Sora, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231, 238, 244, 0.78);
}

.cred-row span:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  opacity: 0.55;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero h2 {
  margin: 0 0 1rem;
  font-family: Newsreader, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.35;
  color: rgba(244, 248, 251, 0.95);
  max-width: 32rem;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: rgba(231, 238, 244, 0.82);
  font-size: 1.05rem;
  max-width: 30rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Sora, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.2rem;
  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(--signal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--signal-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.section .btn-secondary,
.connect-band .btn-secondary,
.contact-actions .btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.section .btn-secondary:hover,
.connect-band .btn-secondary:hover,
.contact-actions .btn-secondary:hover {
  border-color: var(--signal);
  color: var(--signal-deep);
  background: var(--white);
}

/* Sections */
.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section.section-flush-top {
  padding-top: 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.65rem;
  font-family: Sora, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-deep);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.profile-grid p {
  margin: 0 0 1rem;
  color: var(--steel);
}

.profile-grid 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.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.meta-list strong {
  font-family: Sora, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-list span {
  color: var(--ink);
}

/* Impact */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
}

.impact-item {
  padding-top: 1rem;
  border-top: 3px solid var(--signal);
}

.impact-item strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.impact-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* Experience timeline */
.timeline {
  display: grid;
  gap: 0;
}

.role {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.role:last-child {
  border-bottom: 1px solid var(--line);
}

.role-when {
  margin: 0.25rem 0 0;
  font-family: Sora, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.role h3 {
  margin: 0 0 0.25rem;
  font-family: Sora, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.role-org {
  margin: 0 0 0.75rem;
  color: var(--signal-deep);
  font-weight: 600;
}

.role p {
  margin: 0 0 0.75rem;
  color: var(--steel);
}

.role p:last-child {
  margin-bottom: 0;
}

.role-note {
  margin: 0 0 0.85rem !important;
  font-size: 0.95rem;
  color: var(--muted) !important;
  font-style: italic;
}

.role ul {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--steel);
}

.role li {
  margin-bottom: 0.45rem;
}

.role li:last-child {
  margin-bottom: 0;
}

.role-featured {
  padding-top: 2rem;
}

.pillar {
  margin-top: 1.25rem;
}

.pillar h4 {
  margin: 0 0 0.5rem;
  font-family: Sora, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-deep);
}

.formative {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.formative h3 {
  margin: 0 0 0.75rem;
  font-family: Sora, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.formative ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--steel);
}

.formative li {
  margin-bottom: 0.4rem;
}

/* Capabilities */
.cap-groups {
  display: grid;
  gap: 1.75rem;
}

.cap-group h3 {
  margin: 0 0 0.75rem;
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  font-family: Sora, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
}

/* Credentials / why */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.cred-block h3,
.why-item h3 {
  margin: 0 0 0.5rem;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.cred-block p,
.cred-block ul,
.why-item p {
  margin: 0;
  color: var(--steel);
}

.cred-block ul {
  padding-left: 1.15rem;
}

.cred-block li {
  margin-bottom: 0.35rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}

.why-item {
  padding-top: 1rem;
  border-top: 2px solid rgba(14, 124, 134, 0.35);
}

/* Connect / page hero */
.page-hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1rem;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.connect-band {
  background:
    linear-gradient(120deg, rgba(14, 124, 134, 0.1), rgba(176, 106, 58, 0.08)),
    var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.connect-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.connect-inner h2 {
  margin: 0 0 0.75rem;
  font-family: Sora, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.connect-inner p {
  margin: 0 0 1.25rem;
  color: var(--steel);
  max-width: 32rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-panel h2 {
  margin: 0 0 0.75rem;
  font-family: Sora, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.contact-panel > div > p {
  margin: 0 0 1.25rem;
  color: var(--steel);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-actions .btn {
  width: 100%;
}

.site-footer {
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: Sora, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--signal-deep);
}

.footer-inner p {
  margin: 0;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy .reveal-brand,
.hero-copy .reveal-line,
.hero-copy .reveal-cta {
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) forwards;
}

.hero-copy .reveal-line {
  animation-delay: 0.12s;
}

.hero-copy .reveal-cta {
  animation-delay: 0.24s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-copy .reveal-brand,
  .hero-copy .reveal-line,
  .hero-copy .reveal-cta {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-grid,
  .two-col,
  .why-grid,
  .connect-inner,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .role {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(244, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: none;
  }

  .hero {
    min-height: min(92svh, 44rem);
    align-items: flex-end;
    background-position: 55% 12%;
    background-image:
      linear-gradient(180deg, rgba(16, 24, 32, 0.25) 0%, rgba(16, 24, 32, 0.55) 42%, rgba(16, 24, 32, 0.92) 100%),
      url("../assets/images/alan-alami.jpg");
  }

  .hero-copy > * {
    max-width: none;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}
