:root {
  color-scheme: light;
  --ink: #102027;
  --ink-soft: #42545c;
  --paper: #fffaf1;
  --shell: #f6e6cf;
  --foam: #e7fbf7;
  --teal: #006c78;
  --teal-deep: #003f49;
  --coral: #df4f31;
  --coral-deep: #ad331f;
  --sun: #f2b84b;
  --white: #ffffff;
  --line: rgba(16, 32, 39, 0.16);
  --shadow: 0 22px 60px rgba(16, 32, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav--scrolled {
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 8px 32px rgba(16, 32, 39, 0.08);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.crab-mark {
  position: relative;
  width: 38px;
  height: 30px;
  flex: 0 0 auto;
  border: 3px solid currentColor;
  border-top-width: 5px;
  border-radius: 18px 18px 12px 12px;
}

.crab-mark::before,
.crab-mark::after {
  position: absolute;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
}

.crab-mark::before {
  left: -12px;
}

.crab-mark::after {
  right: -12px;
}

.crab-mark span {
  position: absolute;
  top: -13px;
  width: 5px;
  height: 9px;
  background: currentColor;
  border-radius: 999px;
}

.crab-mark span:first-child {
  left: 9px;
}

.crab-mark span:last-child {
  right: 9px;
}

.section-mark {
  color: var(--coral);
  transform: scale(0.7);
  transform-origin: center;
}

.brand-mark {
  transform: scale(0.82);
  transform-origin: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.92rem;
  font-weight: 750;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

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

.hero {
  --hero-parallax: 0px;
  position: relative;
  display: grid;
  min-height: 84svh;
  align-items: end;
  padding: 112px clamp(18px, 6vw, 78px) 44px;
  overflow: hidden;
  color: var(--white);
  background: var(--teal-deep);
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("/assets/crab-hero.jpg");
  background-position: 82% calc(34% + var(--hero-parallax));
  background-repeat: no-repeat;
  background-size: auto calc(100% + 300px);
  will-change: background-position;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(90deg, rgba(7, 35, 41, 0.84) 0%, rgba(7, 35, 41, 0.52) 35%, rgba(7, 35, 41, 0.08) 72%),
    linear-gradient(0deg, rgba(255, 250, 241, 0.82) 0, rgba(255, 250, 241, 0) 130px);
  pointer-events: none;
  content: "";
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
  padding-bottom: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe1c6;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.9rem, 9vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  width: min(650px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  width: min(690px, 100%);
  margin-top: 34px;
}

.link-button,
.contact-button {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.link-button:hover,
.link-button:focus-visible,
.contact-button:hover,
.contact-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.link-button span:first-child,
.contact-button span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow: hidden;
}

.link-button strong,
.contact-button strong {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.link-button small,
.contact-button small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.link-arrow {
  flex: 0 0 auto;
  font-weight: 900;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 64px);
  bottom: 28px;
  display: flex;
  width: min(390px, calc(100% - 36px));
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 63, 73, 0.46);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero__badge img {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  object-fit: cover;
}

.hero__badge div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hero__badge span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stats-band div {
  min-height: 132px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--teal-deep);
  color: var(--white);
}

.stats-band strong {
  display: block;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.stats-band span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-transform: uppercase;
}

.stats-band small {
  display: block;
  width: min(230px, 100%);
  margin-top: 8px;
  color: rgba(255, 225, 198, 0.9);
  font-size: 0.85rem;
  font-weight: 800;
}

.section {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 6vw, 78px);
}

.section__heading {
  width: min(850px, 100%);
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title-row h2 {
  min-width: 0;
}

.section-title-row--light .section-mark {
  color: var(--sun);
}

.section__heading p:not(.eyebrow) {
  width: min(670px, 100%);
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

.achievement-card,
.experience-card {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 39, 0.08);
}

.achievement-card {
  display: grid;
  align-content: end;
  gap: 14px;
  overflow: hidden;
}

.achievement-card::before {
  position: absolute;
  top: -40px;
  right: -34px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(223, 79, 49, 0.14);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-38deg);
  content: "";
}

.claw-notch {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 44px;
  height: 30px;
  border: 10px solid var(--coral);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.achievement-card p,
.experience-card p {
  margin: 0;
  color: var(--ink-soft);
}

.section--reef {
  background:
    linear-gradient(180deg, rgba(231, 251, 247, 0.88), rgba(255, 250, 241, 0.9)),
    repeating-linear-gradient(90deg, rgba(0, 108, 120, 0.08) 0 1px, transparent 1px 88px);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.experience-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.experience-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-card__meta span {
  border: 1px solid rgba(0, 108, 120, 0.22);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.companies-section {
  background: var(--shell);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.company-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(16, 32, 39, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 39, 0.08);
}

.company-card--current {
  border-color: rgba(223, 79, 49, 0.42);
  box-shadow: 0 16px 42px rgba(173, 51, 31, 0.14);
}

.company-card__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-card__topline strong {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.72rem;
}

.company-card__role {
  color: var(--coral-deep);
  font-weight: 900;
}

.company-card p {
  margin: 0;
  color: var(--ink-soft);
}

.company-card__highlights {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.company-card__highlights li::marker {
  color: var(--coral);
}

.company-card a {
  align-self: end;
  color: var(--coral-deep);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.skills-section {
  background: var(--paper);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 16px;
  align-items: start;
}

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

.skill-card,
.education-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 32, 39, 0.08);
}

.skill-card {
  display: grid;
  gap: 16px;
}

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-card li {
  border: 1px solid rgba(0, 108, 120, 0.18);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(231, 251, 247, 0.62);
  color: var(--teal-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.education-card {
  position: sticky;
  top: 92px;
}

.education-card p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 86px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  min-height: 96px;
  align-items: center;
  padding: 22px;
  background: var(--white);
}

.timeline span {
  color: var(--coral);
  font-weight: 950;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(58px, 9vw, 112px) clamp(18px, 6vw, 78px);
  background: var(--ink);
  color: var(--white);
}

.contact-section h2 {
  max-width: 11ch;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 78px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

@media (max-width: 980px) {
  .hero {
    min-height: 80svh;
  }

  .hero::before {
    background-position: 76% calc(36% + var(--hero-parallax));
    background-size: auto calc(100% + 260px);
  }

  .hero__actions,
  .achievement-grid,
  .experience-grid,
  .company-grid,
  .skills-layout,
  .skills-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .experience-card,
  .achievement-card {
    min-height: 220px;
  }

  .hero__badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 20px;
  }

  .education-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-nav {
    min-height: 64px;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 76svh;
    padding: 92px 16px 28px;
  }

  .hero::before {
    background-position: 70% calc(36% + var(--hero-parallax));
    background-size: auto calc(100% + 220px);
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(7, 35, 41, 0.86), rgba(7, 35, 41, 0.38)),
      linear-gradient(0deg, rgba(255, 250, 241, 0.82) 0, rgba(255, 250, 241, 0) 120px);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .lede {
    font-size: 1rem;
  }

  .hero__actions,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .link-button,
  .contact-button {
    min-height: 60px;
  }

  .section,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 16px;
    padding-left: 16px;
  }
}
