:root {
  --canvas: #fffdf8;
  --ink: #171717;
  --muted: #68645e;
  --coral: #ff4d3d;
  --coral-soft: #ffd9d4;
  --coral-panel: #ff705f;
  --blue: #3157ff;
  --blue-soft: #dce3ff;
  --paper: #f3f0e9;
  --card: #ffffff;
  --border: #d9d5cc;
  --shadow: 0 16px 40px rgba(23, 23, 23, 0.08);
  --header: rgba(255, 253, 248, 0.86);
  --max: 1240px;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
}

:root[data-theme="dark"] {
  --canvas: #121212;
  --ink: #f7f4ed;
  --muted: #aaa69e;
  --coral: #ff6557;
  --coral-soft: #4a2421;
  --coral-panel: #ff705f;
  --blue: #7892ff;
  --blue-soft: #252e50;
  --paper: #1d1d1d;
  --card: #191919;
  --border: #343434;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  --header: rgba(18, 18, 18, 0.86);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 36rem);
}

.physics-playground {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
}

.physics-playground.is-active {
  opacity: 1;
}

.physics-surprise {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  justify-items: end;
  max-width: min(320px, calc(100vw - 36px));
}

.physics-trigger {
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 5px 6px 0 var(--coral);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.physics-trigger:hover {
  box-shadow: 3px 4px 0 var(--coral);
  transform: translate(2px, 2px) rotate(-1deg);
}

.physics-message {
  position: relative;
  padding: 18px 42px 18px 20px;
  border: 1px solid var(--ink);
  border-radius: 20px 20px 5px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 7px 8px 0 var(--coral);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.physics-message::after {
  position: absolute;
  right: 16px;
  bottom: -11px;
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.physics-message p {
  margin: 0;
}

.physics-message__close {
  position: absolute;
  top: 7px;
  right: 9px;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.physics-message__close:hover {
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: var(--coral);
  color: #171717;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.brand__home {
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  color: #171717;
  cursor: pointer;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 18%, transparent),
    0 0 14px color-mix(in srgb, var(--coral) 42%, transparent);
  animation: brand-halo 2.5s ease-in-out infinite;
}

@keyframes brand-halo {
  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 18%, transparent),
      0 0 14px color-mix(in srgb, var(--coral) 42%, transparent);
  }

  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--coral) 26%, transparent),
      0 0 25px color-mix(in srgb, var(--coral) 58%, transparent);
  }
}

.brand__letter,
.brand__moomin {
  grid-area: 1 / 1;
  transition: opacity 160ms ease, transform 180ms ease;
}

.brand__moomin {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.7) rotate(-8deg);
}

.brand__mark.is-moomin .brand__letter {
  opacity: 0;
  transform: scale(0.7) rotate(8deg);
}

.brand__mark.is-moomin .brand__moomin {
  opacity: 1;
  transform: scale(1);
}

.brand__mark.is-moomin {
  animation: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.theme-toggle {
  position: relative;
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 66px;
  height: 36px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(23, 23, 23, 0.14);
  content: "";
  transition: transform 180ms ease;
}

:root[data-theme="dark"] .theme-toggle::before {
  transform: translateX(30px);
}

.theme-toggle span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 0.96rem;
}

main,
.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  min-height: min(790px, calc(100vh - 76px));
  padding: clamp(72px, 10vw, 140px) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

h1 {
  max-width: 850px;
  font-size: clamp(4.1rem, 9.4vw, 8.6rem);
}

h2 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

h1 em,
h2 em {
  color: var(--coral);
  font-weight: 500;
}

.hero__intro {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 51px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button--primary {
  background: var(--coral);
  color: #171717;
  box-shadow: 0 7px 0 color-mix(in srgb, var(--ink) 90%, transparent);
}

.button--primary:hover {
  box-shadow: 0 9px 0 color-mix(in srgb, var(--ink) 90%, transparent);
}

.text-link {
  font-weight: 700;
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: min(100%, 390px);
  margin-right: 12px;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 14px 14px 0 var(--coral);
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  border: 7px solid color-mix(in srgb, var(--canvas) 65%, transparent);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idea-note {
  position: relative;
  justify-self: end;
  width: min(100%, 330px);
  padding: 46px 34px 38px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  background: #ffd84d;
  color: #171717;
  box-shadow: 14px 18px 0 var(--blue);
  transform: rotate(2.5deg);
}

.hero__visual .idea-note {
  position: relative;
  z-index: 2;
  width: 235px;
  margin: 24px 0 0;
  padding: 28px 24px 24px;
  box-shadow: 9px 11px 0 var(--blue);
  transform: rotate(3deg);
}

.hero__visual .idea-note__label {
  margin-bottom: 20px !important;
}

.hero__visual .idea-note__big {
  font-size: clamp(4.2rem, 7vw, 5.7rem);
}

.hero__visual .idea-note__fine {
  margin-top: 18px !important;
  padding-top: 13px;
}

.idea-note__tape {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 96px;
  height: 29px;
  background: rgba(255, 255, 255, 0.64);
  transform: translateX(-50%) rotate(-3deg);
}

.idea-note p {
  margin: 0;
}

.idea-note__label {
  margin-bottom: 30px !important;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.idea-note__big {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(5.4rem, 9vw, 7.6rem);
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.idea-note__fine {
  margin-top: 27px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 23, 23, 0.3);
  font-size: 0.87rem;
}

.project-section,
.about-section,
.wins-section {
  padding: clamp(84px, 10vw, 145px) 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.5fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.filter-button {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.filter-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.repo-status {
  min-height: 25px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--ink) 34%, var(--border));
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.project-card__cover {
  position: relative;
  display: flex;
  min-height: 200px;
  padding: 24px;
  overflow: hidden;
  align-items: flex-end;
  color: #171717;
  isolation: isolate;
}

.project-card--tall .project-card__cover,
.project-card--medium .project-card__cover {
  min-height: 280px;
}

.project-card__cover::before,
.project-card__cover::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.cover--coral {
  background: #ff705f;
}

.cover--coral::before {
  top: -60px;
  right: -55px;
  width: 190px;
  height: 190px;
  border: 2px solid #171717;
  border-radius: 50%;
  box-shadow: 0 0 0 22px #ff9b8f, 0 0 0 24px #171717;
}

.cover--coffee {
  background: #c9b7ff;
}

.cover--coffee::before {
  top: -76px;
  right: -12px;
  width: 220px;
  height: 220px;
  border: 3px solid #171717;
  border-radius: 42px;
  background: #fffdf8;
  box-shadow:
    0 0 0 22px #ff705f,
    0 0 0 25px #171717,
    0 0 0 47px #ffd84d,
    0 0 0 50px #171717;
  transform: rotate(14deg);
}

.cover--coffee::after {
  top: 118px;
  right: 238px;
  width: 30px;
  height: 30px;
  border: 3px solid #171717;
  border-radius: 50%;
  background: #3157ff;
  box-shadow: 42px -38px 0 -10px #171717;
}

.cover--blue {
  background: #7892ff;
}

.cover--blue::before {
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 30px, rgba(255, 255, 255, 0.34) 30px 32px);
}

.cover--yellow {
  background: #ffd84d;
}

.cover--yellow::before {
  top: 28px;
  right: 28px;
  width: 94px;
  height: 94px;
  border: 2px solid #171717;
  transform: rotate(12deg);
}

.cover--mint {
  background: #a6e8c1;
}

.cover--mint::before {
  top: -30px;
  right: -10px;
  width: 150px;
  height: 200px;
  border-radius: 50%;
  background: #f7f4ed;
  transform: rotate(28deg);
}

.cover--lilac {
  background: #c9b7ff;
}

.cover--lilac::before {
  top: 30px;
  right: 20px;
  width: 130px;
  height: 130px;
  border: 18px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.cover--paper {
  background: #eee9df;
}

.cover--paper::before {
  inset: 0;
  background-image: linear-gradient(rgba(23, 23, 23, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cover--ink {
  background: #252525;
  color: #fffdf8;
}

.cover--ink::before {
  top: -70px;
  right: -40px;
  width: 190px;
  height: 190px;
  border: 34px solid #ff6557;
  border-radius: 50%;
}

.project-card__monogram {
  position: relative;
  max-width: 85%;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__description {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.project-card__insight {
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.35;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
}

.project-card__tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: auto;
  padding-top: 21px;
}

.project-card__links a {
  font-size: 0.84rem;
  font-weight: 700;
}

.project-card__links a:first-child {
  color: var(--blue);
}

.empty-state,
.noscript-card {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.about-intro {
  position: sticky;
  top: 118px;
}

.about-intro > p:last-child {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.thought-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.thought-card {
  min-height: 285px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.thought-card__number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.thought-card h3 {
  max-width: 300px;
  margin: 45px 0 14px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.85rem;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.thought-card p {
  margin: 0;
  font-size: 0.92rem;
}

.thought-card--coral {
  border-color: transparent;
  background: var(--coral-panel);
  color: #171717;
}

.thought-card--blue {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

:root[data-theme="dark"] .thought-card--blue {
  color: #171717;
}

.thought-card--ink {
  border-color: transparent;
  background: var(--ink);
  color: var(--canvas);
}

.thought-card--paper {
  background: var(--paper);
}

.section-heading--wins {
  grid-template-columns: 1fr;
  margin-bottom: 38px;
}

.wins-section {
  padding-bottom: 0;
}

.wins-list {
  border-top: 1px solid var(--border);
}

.win {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 27px 10px;
  border-bottom: 1px solid var(--border);
  transition: padding 160ms ease, background-color 160ms ease;
}

.win:hover {
  padding-right: 22px;
  padding-left: 22px;
  background: var(--paper);
}

.win__index {
  color: var(--coral);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
}

.win h3 {
  margin: 0 0 5px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.28rem, 2.2vw, 1.78rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.win p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.closing {
  margin: clamp(80px, 10vw, 140px) 0 48px;
  padding: clamp(50px, 7vw, 90px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--coral-panel);
  color: #171717;
}

.closing .eyebrow {
  color: rgba(23, 23, 23, 0.68);
}

.closing h2 {
  max-width: 950px;
}

.closing h2 em {
  color: #fffdf8;
}

.closing > p:not(.eyebrow) {
  max-width: 660px;
  margin: 30px 0 0;
  font-size: 1.08rem;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button--dark {
  background: #171717;
  color: #fffdf8;
}

.button--paper {
  border-color: rgba(23, 23, 23, 0.35);
  background: transparent;
  color: #171717;
}

.button--paper:hover {
  background: rgba(255, 255, 255, 0.24);
}

.site-footer {
  display: grid;
  grid-template-columns: 0.6fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual {
    justify-self: center;
    width: min(76vw, 390px);
    margin: 0;
  }

  .idea-note {
    justify-self: start;
    margin-left: 8vw;
  }

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

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  main,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .physics-surprise {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    max-width: min(285px, calc(100vw - 28px));
  }

  .physics-message {
    font-size: 0.98rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .hero {
    gap: 62px;
    padding: 70px 0 92px;
  }

  h1 {
    font-size: clamp(3.55rem, 17vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.75rem, 13vw, 4.3rem);
  }

  .idea-note {
    width: calc(100% - 24px);
    margin-left: 0;
  }

  .hero__visual {
    width: min(82vw, 350px);
    margin: 0;
  }

  .hero__visual .idea-note {
    width: min(220px, 67vw);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .project-card--tall .project-card__cover,
  .project-card--medium .project-card__cover {
    min-height: 235px;
  }

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

  .thought-card {
    min-height: 250px;
  }

  .win {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 15px;
  }

  .closing {
    margin-bottom: 28px;
    padding: 42px 25px;
  }

  .closing__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (hover: none) {
  .project-card:hover,
  .button:hover {
    transform: none;
  }
}

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