:root {
  --bg: #0d1110;
  --bg-2: #101715;
  --surface: #161d1b;
  --surface-2: #1e2623;
  --text: #f0f5f1;
  --muted: #aab7b1;
  --quiet: #788680;
  --line: #2c3834;
  --accent: #d8ff6d;
  --accent-2: #77d7c7;
  --accent-3: #e7b15f;
  --danger: #ff7676;
  --glass: rgba(22, 31, 29, 0.58);
  --glass-strong: rgba(24, 35, 32, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  --chrome-surface: #16201c;
  --chrome-tint: rgba(16, 25, 22, 0.82);
  --chrome-edge: rgba(229, 255, 240, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shadow-glass: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --snap-offset: 0px;
  --sticky-offset: 112px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--snap-offset);
}

body {
  margin: 0;
  background:
    linear-gradient(118deg, rgba(119, 215, 199, 0.14), transparent 30%),
    linear-gradient(245deg, rgba(216, 255, 109, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(16, 23, 21, 0.94), rgba(13, 17, 16, 1) 46%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 58%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 255, 255, 0.045) 18% 18.35%, transparent 18.35% 42%),
    linear-gradient(74deg, transparent 0 54%, rgba(119, 215, 199, 0.055) 54% 54.55%, transparent 54.55% 100%),
    linear-gradient(150deg, transparent 0 72%, rgba(216, 255, 109, 0.045) 72% 72.35%, transparent 72.35% 100%);
  opacity: 0.88;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

ion-icon {
  display: block;
  flex: 0 0 auto;
}

::selection {
  background: var(--accent);
  color: #111510;
}

:focus-visible {
  outline: 3px solid rgba(216, 255, 109, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--accent);
  color: #111510;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 10px;
  border: 1px solid var(--chrome-edge);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(207, 255, 228, 0.13), transparent 34%, rgba(119, 215, 199, 0.07)),
    var(--chrome-surface);
  box-shadow:
    inset 0 1px 0 rgba(245, 255, 248, 0.2),
    inset 0 -1px 0 rgba(119, 215, 199, 0.13),
    0 12px 36px rgba(0, 0, 0, 0.32);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background:
      linear-gradient(135deg, rgba(207, 255, 228, 0.16), transparent 34%, rgba(119, 215, 199, 0.08)),
      var(--chrome-tint);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
  }
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 20px auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(231, 255, 241, 0.62) 28%, rgba(119, 215, 199, 0.22) 70%, transparent);
}

.site-header > * {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(150deg, #eefec4, var(--accent) 52%, #a6e6be);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64), 0 3px 12px rgba(216, 255, 109, 0.14);
  color: #111510;
  font-weight: 800;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  color: #d5e1db;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-links a {
  padding: 0 clamp(8px, 1.4vw, 14px);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.header-actions a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.is-active {
  color: #111510;
  background: linear-gradient(155deg, #edfbd2, #c7f3a0 58%, #b5e9d3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(151, 229, 169, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions a {
  width: 42px;
  border: 1px solid rgba(232, 255, 242, 0.15);
  background: linear-gradient(160deg, rgba(245, 255, 249, 0.12), rgba(245, 255, 249, 0.035));
  font-size: 20px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.snap-section {
  scroll-margin-top: var(--snap-offset);
}

.hero {
  display: grid;
  grid-template-areas:
    "copy"
    "card"
    "proof";
  gap: 28px;
  min-height: calc(100vh - 86px);
  align-items: center;
  padding-top: 48px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
ul {
  margin: 0;
}

h1 {
  max-width: 880px;
  color: var(--text);
  font-size: 39px;
  line-height: 1.04;
  font-weight: 800;
}

h2 {
  color: var(--text);
  font-size: 31px;
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 720px;
  margin-top: 22px;
  font-size: 18px;
  color: #cad5cf;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #bcffea);
  color: #111510;
  box-shadow: 0 18px 46px rgba(216, 255, 109, 0.18);
}

.btn.secondary {
  border: 1px solid var(--glass-edge);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.btn.secondary:hover {
  border-color: rgba(119, 215, 199, 0.6);
}

.proof-grid {
  grid-area: proof;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.proof-grid div,
.work-card,
.timeline-item,
.skill-panel,
.education-panel,
.contact,
.profile-summary,
.company-row a,
.brand-grid a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    var(--glass);
  box-shadow: var(--shadow-glass);
}

.proof-grid div {
  padding: 18px;
}

.proof-grid dt {
  color: var(--accent-2);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.proof-grid dd {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-card {
  grid-area: card;
  display: grid;
  gap: 14px;
  align-content: end;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 109, 0.2);
  border-radius: 8px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(10px) saturate(120%);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 56%;
  transform: scale(1.14);
}

.profile-summary {
  padding: 20px;
}

.profile-summary p:last-child {
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}

.profile-label,
.card-kicker,
.company {
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-label {
  margin-bottom: 8px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 520px;
}

.section-heading h2 + p {
  margin-top: 14px;
}

.logos {
  position: relative;
}

.logos::before,
.split::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 255, 109, 0.34), transparent);
}

.company-row,
.brand-grid {
  display: grid;
  gap: 12px;
}

.company-row {
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}

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

.company-row a,
.brand-grid a {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.company-row a:hover,
.brand-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 255, 109, 0.44);
  background:
    linear-gradient(135deg, rgba(216, 255, 109, 0.08), transparent 52%),
    rgba(30, 38, 35, 0.68);
}

.company-row img {
  max-height: 48px;
  width: auto;
}

.brand-grid img {
  max-height: 58px;
  width: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.work-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.work-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(119, 215, 199, 0.38);
}

.app-card {
  --app-glow: rgba(119, 215, 199, 0.16);
  grid-template-rows: auto auto 1fr auto;
  border-color: var(--chrome-edge);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 10% 0%, var(--app-glow), transparent 54%),
    linear-gradient(150deg, rgba(245, 255, 249, 0.055), transparent 52%),
    #171f1c;
  box-shadow: inset 0 1px 0 rgba(245, 255, 249, 0.12), 0 14px 36px rgba(0, 0, 0, 0.21);
}

.app-card:nth-child(2) {
  --app-glow: rgba(184, 171, 255, 0.17);
}

.app-card:nth-child(3) {
  --app-glow: rgba(231, 177, 95, 0.16);
}

.app-card:nth-child(4) {
  --app-glow: rgba(255, 143, 171, 0.15);
}

.app-card:nth-child(5) {
  --app-glow: rgba(120, 180, 255, 0.16);
}

.site-card {
  grid-template-rows: auto auto auto 1fr auto;
}

.btn.app-link {
  justify-self: start;
  max-width: 100%;
  padding-inline: 14px;
  border-radius: 100px;
  background: linear-gradient(155deg, rgba(244, 255, 248, 0.12), rgba(244, 255, 248, 0.045));
  box-shadow: inset 0 1px 0 rgba(245, 255, 249, 0.1);
  font-size: 14px;
}

.app-icon {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(119, 215, 199, 0.12);
  color: var(--accent-2);
  font-size: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #dce5df;
  font-size: 13px;
  font-weight: 700;
}

.tag-list.large li {
  min-height: 36px;
  font-size: 14px;
}

.split {
  position: relative;
  display: grid;
  gap: 28px;
}

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

.timeline-item {
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.timeline-item span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item .company {
  margin: 8px 0 12px;
}

.skill-panel,
.education-panel {
  padding: 24px;
}

.skill-panel {
  display: grid;
  gap: 28px;
}

.skill-group {
  display: grid;
  gap: 12px;
}

.education-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.education-panel article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.education-panel h3 {
  margin-bottom: 8px;
}

.contact {
  display: grid;
  gap: 18px;
  margin-block-start: clamp(20px, 4vw, 44px);
  padding: clamp(20px, 3.5vw, 36px);
  scroll-margin-block-start: var(--sticky-offset);
  border-color: rgba(216, 255, 109, 0.16);
  background:
    linear-gradient(120deg, rgba(216, 255, 109, 0.08), transparent 55%),
    var(--glass);
}

.contact h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.contact p {
  max-width: 48ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contact-actions .btn {
  width: auto;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 14px;
}

.hero-name {
  color: var(--accent);
}

@supports (background-clip: text) {
  .hero-name {
    background: linear-gradient(105deg, var(--accent) 12%, #bbf7b1 52%, var(--accent-2) 95%);
    background-clip: text;
    color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .hero-copy > *,
  .hero-card,
  .proof-grid > div {
    animation: float-in 850ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--enter-delay, 0ms) backwards;
  }

  .site-header { --enter-y: -30px; }
  .hero-copy > * { --enter-x: calc(-1 * clamp(28px, 6vw, 76px)); }
  .hero-copy .eyebrow { --enter-delay: 75ms; }
  .hero-copy h1 { --enter-delay: 145ms; }
  .hero-copy .hero-text { --enter-delay: 215ms; }
  .hero-copy .hero-actions { --enter-delay: 280ms; }

  .hero-card {
    --enter-x: clamp(32px, 7vw, 88px);
    --enter-y: 20px;
    --enter-delay: 140ms;
  }

  .proof-grid > div { --enter-delay: 315ms; }
  .proof-grid > div:nth-child(2) { --enter-delay: 380ms; }
  .proof-grid > div:nth-child(3) { --enter-delay: 445ms; }

  .site-header:focus-within,
  .hero-actions:focus-within {
    animation: none;
  }

  .portrait img {
    animation: portrait-settle 1050ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg, transparent 28%, rgba(217, 255, 186, 0.24) 51%, transparent 72%);
    animation: portrait-sweep 920ms ease-out 180ms;
  }

  @keyframes float-in {
    from {
      opacity: 0;
      translate: var(--enter-x, 0px) var(--enter-y, 30px);
      scale: 0.97;
    }
    to {
      opacity: 1;
      translate: 0 0;
      scale: 1;
    }
  }

  @keyframes portrait-settle {
    from { transform: scale(1.25); }
  }

  @keyframes portrait-sweep {
    0% { transform: translateX(-100%); opacity: 0; }
    30%, 66% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .company-row img,
  .brand-grid img,
  .work-card .card-icon {
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .company-row a:hover img,
  .brand-grid a:hover img {
    transform: scale(1.10);
  }

  .work-card:hover .card-icon {
    transform: translateY(-3px) rotate(-8deg);
  }
}

.site-footer {
  padding: 34px 0 48px;
  color: var(--quiet);
  font-size: 14px;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 38px;
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
    grid-template-areas:
      "copy card"
      "proof card";
    gap: 28px 32px;
  }
}

@media (min-width: 640px) and (max-width: 759px) {
  .site-header {
    gap: 8px;
  }

  .nav-links {
    gap: 3px;
  }

  /* Six nav links overflow the header at this width with the default padding. */
  .nav-links a {
    padding: 0 5px;
    font-size: 13px;
  }
}

@media (min-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }

  body {
    overscroll-behavior-y: contain;
  }

  .section {
    padding: 92px 0;
  }

  .snap-section {
    min-height: calc(100vh - var(--snap-offset));
    scroll-snap-align: start;
    display: grid;
    align-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    grid-template-areas:
      "copy card"
      "proof card";
    gap: 32px 52px;
  }

  h1 {
    font-size: 58px;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 54px;
  }

  .split.reversed {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .sticky-heading {
    position: sticky;
    top: var(--sticky-offset);
    align-self: start;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .contact-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 6px;
    width: min(100% - 20px, 1160px);
    margin-top: 10px;
  }

  .header-actions a {
    width: 38px;
    min-height: 38px;
  }

  .brand {
    width: 38px;
    height: 38px;
  }

  main,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: 37px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--chrome-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
