/* Global design tokens and base styles */
:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --slate: #475569;
  --slate-light: #94a3b8;
  --line: #e2e8f0;
  --wash: #f8fafc;
  --cyan: #06b6d4;
  --pink: #ff69b4;
  --pink-strong: #d81b78;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

* {
  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;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

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

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

main:focus {
  outline: 0;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--pink);
  border-radius: 8px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Header and navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
}

.brand,
.site-nav,
.menu-toggle,
h2,
h3,
.text-logo,
.resource-card,
.contact-item small,
.contact-item strong {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: var(--pink-strong);
  border: 2px solid var(--pink-strong);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  color: #64748b;
  font-size: 16px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 28px 0;
  border-radius: 4px;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  content: "";
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--navy);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Shared page layout and section backgrounds */
.wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 80px, 1080px);
  margin: 0 auto;
}

.section,
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(88px, 12vw, 144px) 0;
}

.hero {
  display: flex;
  align-items: center;
  padding-top: 144px;
}

.section-light {
  background: var(--wash);
}

.section-white {
  background: var(--white);
}

#boards {
  padding-bottom: clamp(52px, 7vw, 84px);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.divider-pink::before,
.divider-blue::before {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 8px;
  content: "";
}

.divider-pink::before {
  background: var(--pink);
}

.divider-blue::before {
  background: var(--cyan);
}

.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle, var(--cyan) 1px, transparent 1px);
  background-size: 24px 24px;
}

.subtle-pattern {
  position: absolute;
  inset: auto 0 0 0;
  height: 260px;
  opacity: 0.04;
  background-image: radial-gradient(circle, var(--navy) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

/* Decorative background accents */
.hero-accent,
.contact-accent {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.24;
  pointer-events: none;
}

.hero-accent {
  top: 16%;
  right: -120px;
  bottom: auto;
  background: var(--cyan);
  opacity: 0.2;
}

.hero-accent-two {
  top: -72px;
  left: -84px;
  width: 280px;
  height: 280px;
  background: var(--pink);
  opacity: 0.13;
}

.hero-accent-three {
  top: 46%;
  left: 42%;
  bottom: auto;
  width: 300px;
  height: 300px;
  background: var(--cyan);
  opacity: 0.13;
}

.hero-accent-four {
  left: 8%;
  bottom: 10%;
  width: 340px;
  height: 340px;
  background: var(--pink);
  opacity: 0.2;
}

.hero-accent-five {
  right: 10%;
  bottom: 34%;
  width: 280px;
  height: 280px;
  background: var(--pink);
  opacity: 0.16;
}

.hero-accent-six {
  left: 36%;
  bottom: 0;
  width: 280px;
  height: 280px;
  background: var(--cyan);
  opacity: 0.14;
}

.hero-accent-seven {
  top: auto;
  right: 34%;
  bottom: 18%;
  width: 220px;
  height: 220px;
  background: var(--pink);
  opacity: 0.12;
}

.contact-accent-one {
  top: -80px;
  left: -80px;
  background: var(--cyan);
}

.contact-accent-two {
  right: -80px;
  bottom: -80px;
  background: var(--pink);
}

.contact-accent-three {
  left: 18%;
  bottom: 18%;
  width: 240px;
  height: 240px;
  background: var(--pink);
  opacity: 0.14;
}

.contact-accent-four {
  top: 34%;
  right: 22%;
  width: 210px;
  height: 210px;
  background: var(--cyan);
  opacity: 0.11;
}

.contact-accent-five {
  left: 44%;
  top: 14%;
  width: 190px;
  height: 190px;
  background: var(--pink);
  opacity: 0.1;
}

.contact-accent-six {
  right: 8%;
  bottom: 22%;
  width: 180px;
  height: 180px;
  background: var(--cyan);
  opacity: 0.09;
}

@keyframes accent-drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  33% {
    transform: translate3d(-54px, 34px, 0) scale(1.06);
  }

  66% {
    transform: translate3d(32px, -42px, 0) scale(0.97);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes accent-drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  33% {
    transform: translate3d(48px, -44px, 0) scale(0.94);
  }

  66% {
    transform: translate3d(-36px, 28px, 0) scale(1.08);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes accent-drift-c {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  33% {
    transform: translate3d(42px, 56px, 0) scale(1.1);
  }

  66% {
    transform: translate3d(-38px, -24px, 0) scale(0.96);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (min-width: 900px) {
  .hero-accent,
  .contact-accent {
    will-change: transform;
  }

  .hero-accent,
  .contact-accent-one,
  .contact-accent-four {
    animation: accent-drift-a 8.1s ease-in-out infinite;
  }

  .hero-accent-two,
  .hero-accent-five,
  .contact-accent-two,
  .contact-accent-five {
    animation: accent-drift-b 9.7s ease-in-out infinite;
  }

  .hero-accent-three,
  .hero-accent-four,
  .hero-accent-six,
  .hero-accent-seven,
  .contact-accent-three,
  .contact-accent-six {
    animation: accent-drift-c 11.3s ease-in-out infinite;
  }
}

/* Hero section */
.hero-grid,
.contact-grid {
  display: grid;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(330px, 435px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
}

.hero-grid .portrait {
  justify-self: start;
}

@media (min-width: 1180px) {
  .hero-grid .portrait {
    transform: translateX(-14px);
  }
}

.portrait {
  width: min(100%, 520px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-copy h1 {
  max-width: 590px;
  margin: 0 0 40px;
  color: var(--white);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(29px, 3.95vw, 50px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(44px, 7vh, 76px);
  z-index: 4;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  color: rgba(255, 105, 180, 0.28);
  border: 2px solid currentColor;
  border-radius: 12px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  transform: translateX(-50%);
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.hero-scroll i {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--pink);
  background: rgba(255, 105, 180, 0.14);
  transform: translate(-50%, 4px);
}

.hero-copy strong {
  color: var(--cyan);
  font-weight: 700;
}

.rule {
  width: 128px;
  height: 4px;
  border-radius: 999px;
  background: var(--pink);
}

.hero .rule {
  width: 192px;
}

/* Shared section introductions and divider rules */
.section-intro {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-intro h2 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-light .section-intro h2,
.section-white .section-intro h2 {
  font-weight: 850;
}

.section-dark .section-intro h2 {
  color: var(--white);
}

.section-intro p,
.section-note {
  max-width: 60ch;
  color: var(--slate);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.55;
}

.section-intro p {
  margin: 0 auto 28px;
}

.section-note {
  max-width: 58ch;
  margin: 48px auto 0;
  text-align: center;
}

.section-note a {
  position: relative;
  display: inline-block;
  margin-inline: 2px;
  padding: 0 1px 3px;
  color: rgba(216, 27, 120, 0.72);
  font-weight: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.section-note a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  content: "";
  background-image: repeating-linear-gradient(to right, currentColor 0 2px, transparent 2px 6px);
  background-size: 6px 1px;
  opacity: 0.45;
  transform: scaleX(1);
  transform-origin: left;
  transition: height 180ms ease, opacity 180ms ease, background-size 180ms ease;
}

.section-note a:hover,
.section-note a:focus-visible {
  color: var(--pink-strong);
}

.section-note a:hover::after,
.section-note a:focus-visible::after {
  height: 2px;
  background-image: linear-gradient(to right, currentColor, currentColor);
  background-size: 100% 2px;
  opacity: 1;
}

.section-dark .section-intro p {
  color: var(--slate-light);
}

.section-intro .rule {
  margin: 0 auto;
}

/* What I Do section */
.service-list {
  display: grid;
}

.service {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.service:first-child {
  padding-top: 0;
  border-top: 0;
}

.service img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--line);
}

.service h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
}

.service p {
  margin: 0;
  color: var(--slate);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
}

/* Who I've Helped logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.logo-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.text-logo {
  color: var(--navy);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.logo-ebay img,
.logo-nikon img {
  transform: scale(1.15);
}

.logo-fastly img {
  transform: scale(0.99);
}

.logo-sunrun img {
  transform: scale(1.17);
  filter: invert(1);
}

.logo-genentech img {
  transform: scale(1.2);
}

.logo-murex img {
  filter: grayscale(1) contrast(1.35) brightness(0.85);
  transform: scale(1.2);
}

.logo-pwc img {
  transform: scale(2.025);
}

.logo-ns1 img {
  transform: scale(1.15);
}

.logo-pacfcu img {
  transform: scale(1.8);
}

.logo-roseryan img {
  transform: scale(1.08);
}

.logo-santa-clara img {
  transform: scale(0.81);
}

.logo-shopping img {
  transform: scale(1.2);
}

.logo-shutterfly img {
  transform: translateY(5px);
}

.logo-technicolor img {
  transform: scale(1.16);
}

.logo-torani img {
  filter: grayscale(1);
  transform: scale(1.16);
}

.logo-second-life img {
  transform: scale(0.89);
}

.logo-california img {
  transform: scale(0.855);
}

.logo-pge img,
.logo-vodafone img {
  transform: scale(0.77);
}

.logo-opendns img {
  transform: scale(1.05);
}

.logo-slac img {
  transform: scale(1.08);
}

/* Speaking section */
.talk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.talk-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--wash);
  border: 2px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.talk-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 4px solid var(--cyan);
  transition: transform 220ms ease, filter 220ms ease;
}

.talk-card:hover,
.talk-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.talk-card:hover img,
.talk-card:focus-visible img {
  filter: saturate(1.12);
}

.talk-card span {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 48px;
  height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pink-strong);
  border-radius: 8px;
  background: var(--pink-strong);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.talk-card h3 {
  margin: 0;
  padding: 18px 30px 22px 20px;
  color: var(--navy);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.talk-card h3 em {
  display: inline-block;
  margin-top: 4px;
  color: var(--slate);
  font-size: 0.94em;
  font-weight: 500;
}

/* Boards and Resume sections */
.board-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.board-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  max-width: none;
  align-items: stretch;
}

.credentials {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 30px 32px 34px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 180ms ease, transform 180ms ease;
}

.credentials:hover,
.credentials:focus-within {
  background: var(--white);
  transform: translateY(-2px);
}

.credentials h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.2;
}

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

.credential-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.credential-list a:hover,
.credential-list a:focus-visible {
  background: var(--pink-strong);
  border-color: var(--pink-strong);
  color: var(--white);
  transform: translateY(-1px);
}

.board-grid article {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 28px 32px 28px 36px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 180ms ease, transform 180ms ease;
}

.board-grid article:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.board-column,
.board-stack {
  display: grid;
  gap: 24px;
}

.board-grid span {
  display: block;
  margin: 0 0 12px;
  color: #64748b;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.board-grid h3 {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 4px solid var(--cyan);
  color: var(--navy);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.25;
  letter-spacing: 0;
}

.board-grid p {
  max-width: 76ch;
  margin: 0;
  color: var(--slate);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(19px, 1.85vw, 22px);
  font-weight: 400;
  line-height: 1.5;
}

.board-grid p + p {
  margin-top: 14px;
}

/* Resource cards, icons, and contact cards */
.resource-card,
.contact-item {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 104px;
  padding: 24px;
  border-radius: 8px;
}

.resource-card {
  border: 2px solid var(--line);
  color: var(--navy);
  font-size: clamp(17px, 1.7vw, 20px);
  transition: background 180ms ease, transform 180ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: rgba(6, 182, 212, 0.1);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25px;
}

.pink .icon,
.icon.pink {
  background-color: rgba(255, 105, 180, 0.12);
}

.document {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
}

.user {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff69b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.image {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E");
}

.linkedin {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff69b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6Z'/%3E%3Crect width='4' height='12' x='2' y='9'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

.mail {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a2 2 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.phone {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff69b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 3.16 8.81 19.79 19.79 0 0 1 .09 0.18 2 2 0 0 1 2.08-2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L6.05 5.91a16 16 0 0 0 6.04 6.04l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92Z' transform='translate(1 1)'/%3E%3C/svg%3E");
}

.location {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Contact section */
.contact-grid {
  grid-template-columns: 1fr minmax(280px, 435px);
  gap: clamp(32px, 4vw, 48px);
  max-width: 864px;
  margin: 0 auto;
}

.contact-grid .portrait {
  justify-self: end;
  width: min(100%, 435px);
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  position: relative;
  color: var(--white);
  transition: background 180ms ease, transform 180ms ease;
}

a.contact-item:hover,
.contact-button:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.contact-button {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-item:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.contact-item small,
.contact-item strong {
  display: block;
}

.contact-item small {
  margin-bottom: 4px;
  color: var(--slate-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--white);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.25;
  white-space: nowrap;
}

.location-copy {
  position: relative;
  flex: 1;
  text-align: left;
}

.copy-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  padding: 4px 10px;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.38);
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, calc(-50% + 4px));
  transition: opacity 420ms ease, transform 420ms ease;
  white-space: nowrap;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Responsive layout: first collapse for hero, services, logos, and talks */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-grid .portrait {
    justify-self: center;
    width: min(67vw, 368px);
  }

  .hero-copy {
    max-width: 640px;
    text-align: center;
  }

  .hero .rule {
    margin: 0 auto;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    align-items: start;
  }

  .service {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
    align-content: start;
    align-self: start;
    padding: 0;
    border-top: 0;
  }

  .service img,
  .service > div {
    align-self: start;
    width: 100%;
    margin: 0;
  }

  .service h3 {
    font-size: clamp(26px, 3.4vw, 34px);
  }

  .service p {
    font-size: clamp(18px, 2.2vw, 21px);
    line-height: calc(1.5em - 1pt);
  }

  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

}

/* Responsive layout: logo grid refinement */
@media (max-width: 840px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive layout: navigation becomes a hamburger menu */
@media (max-width: 900px) {
  .site-header {
    min-height: 72px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 20px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
  }

  .site-nav.is-open {
    display: grid;
    gap: 0;
  }

  .site-nav a {
    padding: 12px 0 12px 16px;
  }

  .site-nav a::after {
    top: 12px;
    bottom: 12px;
    left: 0;
    right: auto;
    width: 3px;
    height: auto;
    border-radius: 999px;
    transform: scaleY(0);
    transform-origin: center;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a.is-active::after {
    transform: scaleY(1);
  }
}

/* Responsive layout: phone/tablet single-column content */
@media (max-width: 760px) {
  .section,
  .hero {
    min-height: auto;
    padding: 88px 0;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-grid .portrait {
    width: min(62vw, 300px);
    justify-self: center;
  }

  .hero-copy h1 {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(27px, 3.95vw, 30px);
  }

  .hero-scroll {
    display: none;
  }

  .section-intro {
    margin-bottom: 48px;
  }

  .logo-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .service {
    gap: 20px;
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .service:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .service img {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .service h3 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .service p {
    max-width: 34rem;
    margin: 0;
    font-size: clamp(18px, 5vw, 21px);
  }

  .resource-card,
  .contact-item {
    gap: 16px;
    padding: 18px;
  }

  .contact-item {
    min-height: 86px;
  }
}

/* Responsive layout: boards collapse */
@media (max-width: 820px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive layout: contact tightens before stacking */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(190px, 300px);
    gap: clamp(24px, 4vw, 40px);
  }

  .contact-grid .portrait {
    width: min(100%, 300px);
  }

  .contact-list {
    gap: 0;
  }
}

/* Responsive layout: contact stacks */
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }

  .contact-grid .portrait {
    grid-row: 1;
    justify-self: center;
    width: min(64vw, 320px);
  }

  .contact-list {
    grid-row: 2;
    width: min(100%, 440px);
    gap: 0;
  }

  .contact-section {
    min-height: 100vh;
    padding-bottom: 120px;
  }
}

/* Responsive layout: small phone grids */
@media (max-width: 560px) {
  .talk-grid,
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive layout: narrow phone final adjustments */
@media (max-width: 440px) {
  .wrap {
    width: min(100% - 48px, 1080px);
  }

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

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-grid .portrait {
    width: min(68vw, 260px);
  }

  .contact-grid .portrait {
    justify-self: center;
    width: min(58vw, 220px);
  }

  .contact-list {
    width: min(100%, 390px);
    gap: 0;
  }

  .contact-item {
    min-height: 78px;
    padding: 16px;
  }

  .section-intro h2 {
    font-size: 40px;
  }
}
