:root {
  color-scheme: light dark;
  --background: #eeede8;
  --surface: #fff;
  --text: #171715;
  --muted: #59574f;
  --border: #dedcd4;
  --accent: #3443d6;
  --indigo: #3b4cf0;
  --lime: #d6fa56;
  --coral: #ff785f;
  --ink: #111119;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101012;
    --surface: #1d1d20;
    --text: #f6f4ee;
    --muted: #b7b3aa;
    --border: #36363b;
    --accent: #acb7ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.6 system-ui, "Hiragino Sans", "Yu Gothic", sans-serif;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-shell {
  max-width: 72rem;
  margin-inline: auto;
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
  padding-inline: max(clamp(.875rem, 3.5vw, 2rem), env(safe-area-inset-left, 0px))
    max(clamp(.875rem, 3.5vw, 2rem), env(safe-area-inset-right, 0px));
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.25rem;
  min-height: 5rem;
  padding-block: .65rem;
}

.brand, .site-nav {
  display: flex;
  align-items: center;
}

.brand {
  min-height: 2.75rem;
  gap: .65rem;
  font-weight: 700;
}

.brand img {
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.site-nav {
  flex-wrap: wrap;
  column-gap: clamp(.75rem, 2.5vw, 1.6rem);
  font-size: .9rem;
  font-weight: 600;
}

.site-nav a {
  display: grid;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.625rem, 1.6vw, 1rem);
}

.tile {
  min-width: 0;
  padding: clamp(1.125rem, 3vw, 1.875rem);
  border: 1px solid transparent;
  border-radius: clamp(1.375rem, 3vw, 1.875rem);
  overflow-wrap: anywhere;
}

.tile h2, .tile p {
  margin: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-column: span 7;
  align-content: end;
  min-height: clamp(25rem, 46vw, 30rem);
  overflow: hidden;
  background: radial-gradient(ellipse at 55% 8%, #24264e, #111327 56%, var(--ink) 90%);
  color: #fff;
}

.hero-sticker {
  position: absolute;
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%) var(--sticker-motion, rotate(var(--sticker-angle)));
  filter: drop-shadow(0 .35rem .65rem rgb(0 0 0 / 35%));
}

.hero-sticker--macbook {
  --sticker-angle: -9deg;
  top: 30%;
  left: 23%;
  width: min(31%, 13rem);
}

.hero-sticker--bicycle {
  --sticker-angle: -5deg;
  top: 46%;
  left: 55%;
  width: min(44%, 17rem);
}

.hero-sticker--photographer {
  --sticker-angle: 7deg;
  top: 28%;
  left: 78%;
  width: min(33%, 13.5rem);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgb(17 17 25 / 28%) 58%, var(--ink) 88%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-motion {
  position: absolute;
  right: clamp(.875rem, 2.5vw, 1.5rem);
  bottom: clamp(.875rem, 2.5vw, 1.5rem);
  z-index: 2;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 50%;
  background: #222337;
  color: #fff;
  cursor: pointer;
}

.hero-motion:hover {
  background: #353656;
}

.hero-motion:focus-visible {
  outline: 3px solid #b5bfff;
  outline-offset: 3px;
}

.hero-motion::before {
  width: .68rem;
  height: .8rem;
  box-sizing: border-box;
  border-inline: 3px solid currentColor;
  content: "";
}

.hero[data-paused] .hero-motion::before {
  width: 0;
  height: 0;
  margin-left: .15rem;
  border: .42rem solid transparent;
  border-left: .64rem solid currentColor;
  border-right: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero[data-motion-ready] .hero-motion {
    display: grid;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 820;
  letter-spacing: -.07em;
  line-height: .91;
}

.hero p {
  margin-top: 1rem;
  color: #e2e2ec;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.profile, .social {
  border-color: var(--border);
  background: var(--surface);
}

.profile {
  display: flex;
  grid-column: span 5;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.profile h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  letter-spacing: -.065em;
  line-height: 1.05;
}

.profile-facts {
  width: 100%;
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: minmax(4.25rem, max-content) minmax(0, 1fr);
  gap: .75rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--border);
}

.profile-facts dt, .profile-facts dd {
  margin: 0;
}

.profile-facts dt {
  padding-top: .1rem;
  color: var(--muted);
  font-size: .875rem;
}

.profile-facts dd {
  font-weight: 550;
}

.pill {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 650;
}

.pill:hover {
  border-color: currentColor;
}

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

.feature, .contact {
  display: flex;
  min-height: 10.75rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}

.feature h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  letter-spacing: -.06em;
  line-height: 1.05;
}

.feature h2 + p {
  margin-top: .55rem;
  font-size: .9rem;
}

.feature-label {
  font-size: .875rem;
  font-weight: 650;
}

.activities {
  grid-column: span 6;
  background: var(--indigo);
  color: #fff;
}

.research, .apps {
  grid-column: span 3;
}

.research {
  background: var(--lime);
  color: #1c230a;
}

.apps {
  background: var(--coral);
  color: #2b150f;
}

.social {
  grid-column: span 8;
}

.social h2, .contact h2 {
  font-size: 1.5rem;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.social h2 {
  margin-bottom: .75rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  padding-left: .4rem;
}

.social-icon {
  display: grid;
  width: 1.625rem;
  height: 1.625rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
}

.social-icon img {
  display: block;
  filter: invert(1);
}

.github { background: #24292f; }
.linkedin { background: #0a66c2; }
.x, .threads { background: #181818; }
.instagram { background: linear-gradient(135deg, #d45a22, #b62268 55%, #7836a6); }
.youtube { background: #cf1919; }
.facebook { background: #0866ff; }

.contact {
  grid-column: span 4;
  border-color: var(--border);
  background: var(--text);
  color: var(--background);
}

.contact-action {
  font-weight: 700;
}

.contact .contact-address {
  margin-top: .2rem;
  font-size: .875rem;
}

.feature:hover h2, .contact:hover .contact-action {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .13em;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature, .contact {
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .feature:hover, .contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 14%);
  }
}

.site-footer {
  padding-block: 1.6rem;
  color: var(--muted);
  font-size: .8125rem;
  text-align: center;
}

@media (max-width: 54rem) {
  .home-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero, .profile, .activities, .social, .contact {
    grid-column: span 6;
  }

  .contact {
    min-height: 8rem;
  }
}

@media (max-width: 34rem) {
  .site-header {
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: clamp(22rem, 84vw, 25rem);
  }

  .feature {
    min-height: 9rem;
  }
}
