:root {
  --color-bg: #eaf7ff;
  --color-bg-grid: rgba(54, 86, 108, 0.045);
  --color-surface: #fbfdff;
  --color-surface-raised: #f8fbff;
  --color-surface-warm: #f1e6d0;
  --color-text: #151515;
  --color-text-soft: #383631;
  --color-muted: #667986;
  --color-accent: #b9a27e;
  --color-accent-strong: #7d6f58;
  --color-border: #d8c8a8;
  --color-border-soft: rgba(185, 162, 126, 0.56);
  --color-hover: rgba(185, 162, 126, 0.18);
  --color-focus: #151515;
  --color-disabled: rgba(102, 121, 134, 0.48);
  --color-paper: #fffef9;
  --shadow-soft: 0 18px 46px rgba(54, 86, 108, 0.12);
  --shadow-lift: 0 24px 60px rgba(54, 86, 108, 0.16);
  --radius-card: 8px;
  --radius-control: 999px;
  --space-page: min(1180px, calc(100% - 40px));
  --font-body: 14px;
  --font-label: 11px;
  --font-body-large: 15.5px;
  --space-section-y: 48px;
  --space-card: 14px;
  --grid-gap: 18px;
  --display-font: Raleway, "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  --mono-font: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--color-bg-grid) 1px, transparent 1px),
    linear-gradient(180deg, rgba(54, 86, 108, 0.035) 1px, transparent 1px),
    var(--color-bg);
  background-size: 44px 44px;
  color: var(--color-text);
  font-family: var(--mono-font);
  font-size: var(--font-body);
  line-height: 1.5;
}

body::selection {
  background: var(--color-surface-warm);
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 24px 30px 16px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.12);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 3px;
  text-transform: uppercase;
}

.brand-name {
  font-family: var(--display-font);
  font-weight: 700;
}

.brand-status {
  color: var(--color-muted);
  font-size: var(--font-label);
  text-transform: none;
}

.brand-status::before {
  content: "-> ";
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 20px;
  color: var(--color-muted);
  text-transform: uppercase;
}

.top-nav a,
.top-nav .nav-disabled,
.footer a,
.link-list a {
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.top-nav a:hover,
.footer a:hover,
.link-list a:hover {
  border-color: currentColor;
  color: var(--color-text);
}

.top-nav .nav-disabled {
  color: var(--color-disabled);
  cursor: not-allowed;
}

main {
  width: var(--space-page);
  margin: 0 auto;
}

.intro {
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 34px 0 28px;
}

.intro-kicker,
.section-label,
.role-label {
  color: var(--color-muted);
  font-size: var(--font-label);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.69fr) minmax(220px, 0.31fr);
  gap: 32px;
  align-items: center;
}

.intro-copy {
  display: grid;
  gap: 16px;
}

.intro h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(30px, 3.75vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.intro h1 strong {
  font-weight: 700;
}

.intro-photo-slot {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-warm);
  box-shadow: var(--shadow-soft);
}

.intro-photo-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.intro-grid p {
  max-width: 690px;
  margin: 0;
  color: var(--color-text-soft);
  font-size: var(--font-body-large);
}

.link-list {
  display: grid;
  gap: 7px;
  min-width: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow-wrap: anywhere;
}

.link-list span {
  color: var(--color-accent);
}

.link-list .link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--color-text);
}

.link-list .link-label img {
  width: 1em;
  height: 1em;
  object-fit: contain;
  border-radius: 2px;
}

.work-section,
.about-section {
  border-top: 1px solid var(--color-border);
}

.work-section {
  padding: var(--space-section-y) 0 84px;
}

.section-heading {
  display: grid;
  gap: 9px;
  max-width: 720px;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(31px, 4.1vw, 50px);
  font-weight: 700;
  line-height: 0.98;
}

.section-heading p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: var(--font-body-large);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.filter-button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--color-paper) 72%, transparent);
  color: var(--color-muted);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.filter-button:hover {
  transform: translateY(-1px);
  border-color: var(--color-text);
  color: var(--color-text);
}

.filter-button.is-active {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-surface);
}

.filter-button:disabled {
  border-color: var(--color-disabled);
  color: var(--color-disabled);
  cursor: not-allowed;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding-top: 24px;
}

.work-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-width: 0;
  padding: var(--space-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  color: var(--color-text);
  box-shadow: 0 10px 34px rgba(54, 86, 108, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lift);
}

.work-card[hidden] {
  display: none;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9.5;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  background: var(--card-color, var(--color-bg));
  box-shadow: var(--shadow-soft);
}

.tone-cool {
  --card-color: var(--color-bg);
  --browser-color: var(--color-surface-warm);
}

.tone-warm {
  --card-color: var(--color-surface-warm);
  --browser-color: var(--color-surface-warm);
}

.media-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.96);
  transform: scale(var(--image-scale, 1));
  transform-origin: var(--image-origin, center);
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.work-card:hover .media-frame img {
  transform: scale(var(--image-hover-scale, 1.018));
  filter: saturate(1.05);
}

.browser-mockup {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 34px 1fr;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--browser-color, var(--color-surface-warm));
  box-shadow: none;
}

.browser-topbar {
  display: grid;
  grid-template-columns: 8px 8px 8px 1fr;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(185, 162, 126, 0.42);
  background: var(--browser-color, var(--color-surface-warm));
}

.browser-topbar span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-control);
  background: rgba(21, 21, 21, 0.34);
}

.browser-address {
  min-width: 0;
  margin-left: 6px;
  padding: 3px 9px;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-accent-strong);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-screen {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--screen-color, var(--color-paper));
}

.browser-screen img {
  object-fit: var(--image-fit, cover);
  object-position: var(--image-position, center);
}

.logo-card {
  position: absolute;
  inset: 16px;
  display: block;
  padding: 0;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  background: var(--color-surface-raised);
  box-shadow: 0 16px 36px rgba(54, 86, 108, 0.14);
}

.logo-mark {
  position: absolute;
  inset: 34px 34px 58px;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.logo-mark img {
  width: min(86%, 315px);
  height: auto;
  max-height: 270px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  transform: var(--logo-transform, none);
}

.brand-atlassian {
  --logo-transform: scale(1.18);
}

.brand-atlassian .logo-mark img {
  width: min(98%, 375px);
  max-height: 250px;
}

.brand-slack .logo-card {
  background: var(--color-surface);
}

.brand-slack .logo-mark img {
  width: min(52%, 190px);
  max-height: 190px;
}

.media-widget {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  border: 1px solid rgba(185, 162, 126, 0.75);
  border-radius: var(--radius-card);
  background: var(--color-surface-warm);
  color: var(--color-text);
  font-family: Courier, "Courier New", monospace;
  font-size: 9px;
  line-height: 1.25;
  text-align: right;
  box-shadow: 0 10px 24px rgba(54, 86, 108, 0.12);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  color: var(--color-muted);
  font-size: var(--font-label);
  text-transform: uppercase;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
}

.work-card h3 {
  margin: 4px 0 0;
  font-family: var(--display-font);
  font-size: clamp(21px, 2.35vw, 27px);
  font-weight: 700;
  line-height: 1.02;
}

.work-card h3 a:hover {
  color: var(--color-accent-strong);
}

.card-summary {
  margin: 10px 0 0;
  color: var(--color-text-soft);
  font-size: 13.5px;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 0;
  color: var(--color-accent-strong);
  font-size: var(--font-label);
}

.tag + .tag::before {
  content: "/";
  margin-right: 6px;
  color: var(--color-border);
}

.resource-link {
  flex: 0 0 auto;
  width: fit-content;
  color: var(--color-accent-strong);
  font-size: var(--font-label);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(185, 162, 126, 0.65);
}

.resource-link:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: 56px 0 74px;
}

.hobbies-section {
  padding: 0 0 74px;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 0;
}

.hobby-card {
  display: grid;
  gap: 14px;
  padding: var(--space-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  box-shadow: 0 10px 34px rgba(54, 86, 108, 0.08);
}

.hobby-photo-slot {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-warm);
  color: var(--color-accent-strong);
  font-size: var(--font-label);
  text-transform: uppercase;
}

.hobby-photo-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-saxophone img {
  object-position: center 34%;
}

.photo-squash img {
  object-position: center;
}

.photo-poker img {
  object-position: center;
}

.hobby-card h3 {
  margin: 4px 0 7px;
  font-family: var(--display-font);
  font-size: 21px;
  line-height: 1.05;
}

.hobby-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 0;
  color: var(--color-text-soft);
  font-size: 12px;
  list-style: none;
}

.hobby-card li {
  position: relative;
  padding-left: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hobby-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent-strong);
}

.about-copy {
  display: grid;
  gap: 16px;
  color: var(--color-text-soft);
  font-size: var(--font-body-large);
}

.about-copy p {
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: var(--space-page);
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.muted {
  color: var(--color-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.has-passed {
  opacity: 0.78;
  transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }
}

@media (max-width: 940px) {
  .intro-grid,
  .about-section {
    grid-template-columns: 1fr;
  }

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

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

  .link-list {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .site-header {
    position: static;
    display: grid;
    min-height: auto;
    padding: 20px;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 9px 16px;
  }

  main,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .intro {
    min-height: auto;
    padding: 50px 0 46px;
  }

  .intro-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .intro-photo-slot {
    width: min(64vw, 220px);
    justify-self: start;
  }

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

  .work-section,
  .about-section {
    padding-block: 46px;
  }

  .hobbies-section {
    padding: 0 0 46px;
  }

  .media-frame {
    aspect-ratio: 16 / 11;
  }

  .card-title-row,
  .card-footer,
  .footer {
    display: grid;
  }

  .resource-link {
    width: fit-content;
  }
}
