@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SF-Pro-Display-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SF-Pro-Display-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SF-Pro-Display-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SF-Pro-Display-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SF-Pro-Display-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8f8f8;
  --surface: #fbfbfb;
  --text: #171717;
  --muted: #6f6f6f;
  --nav-muted: #606060;
  --brand-muted: #747474;
  --line: #d8d8d8;
  --purple: #583973;
  --yellow: #ffd75a;
  --pink: #dc1b9a;
  --page-x: clamp(24px, 7.25vw, 140px);
  --shadow: 0 26px 68px rgba(23, 23, 23, 0.12);
  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 var(--page-x);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 251, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand {
  font-weight: 500;
}

.brand .top-link,
.main-nav a {
  position: relative;
  color: var(--text);
}

.main-nav a {
  color: var(--nav-muted);
}

.main-nav a:not(.active):not(.linkedin) {
  font-weight: 300;
}

.main-nav a::before {
  display: block;
  height: 0;
  overflow: hidden;
  content: attr(data-label);
  font-weight: 600;
  visibility: hidden;
}

.brand span:last-child {
  color: var(--brand-muted);
  pointer-events: none;
}

.main-nav {
  gap: clamp(28px, 3.2vw, 46px);
}

.project-meta h3 {
  color: var(--purple);
}

.main-nav a.active {
  color: var(--purple);
  font-weight: 600;
}

.linkedin {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 2px;
  color: #fff !important;
  background: #1177a9;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 7px auto;
  background: var(--text);
  transform-origin: center;
  transition: transform 180ms ease, opacity 140ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(420px, 0.78fr);
  gap: clamp(40px, 4.8vw, 78px);
  align-items: center;
  padding: clamp(58px, 5vw, 80px) var(--page-x) clamp(58px, 7vw, 94px);
}

.hero-copy {
  position: relative;
  min-width: 0;
}

.hero-copy::before {
  position: absolute;
  inset: -72px -56px -92px -96px;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(23, 23, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.025) 1px, transparent 1px);
  background-position: 0 0, 0 0, 12px 12px, 12px 12px;
  background-size: 28px 28px, 28px 28px, 112px 112px, 112px 112px;
  content: "";
  mask-image: radial-gradient(ellipse at 42% 52%, #000 0%, rgba(0, 0, 0, 0.9) 44%, transparent 82%);
  opacity: 0.72;
  pointer-events: none;
  animation: hero-fade 700ms ease both;
}

.tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(130px, 10vw, 210px);
  width: 100%;
  margin-bottom: 34px;
}

.tag {
  --tag-y: 0px;
  position: relative;
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(var(--tag-y));
  animation: hero-tag-in 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  white-space: nowrap;
}

.tag::after {
  position: absolute;
  right: -31px;
  bottom: -25px;
  width: 31px;
  height: 31px;
  background: url("assets/arrow.png") center / contain no-repeat;
  content: "";
  transform: rotate(270deg);
}

.tag-pink::after {
  right: auto;
  left: -29px;
  transform: rotate(0deg);
}

.tag-yellow {
  border-bottom-right-radius: 0;
}

.tag-pink {
  color: #fff;
  background: var(--pink);
  border-bottom-left-radius: 0;
  --tag-y: -14px;
  animation-delay: 90ms;
}

.tag-yellow {
  background: var(--yellow);
  margin-left: clamp(-118px, -6vw, -58px);
}

h1 {
  max-width: 1060px;
  margin: 0;
  color: var(--text);
  font-size: clamp(64px, 4.2vw, 80px);
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise-in 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

h1 span {
  display: block;
}

.hero-line-intro,
.hero-line-product,
.hero-line-design {
  display: block;
}

.hero-intro-moi,
.hero-intro-name,
.hero-looking-main,
.hero-looking-rest,
.hero-year-desktop {
  display: inline;
}

.hero-year-mobile {
  display: none;
}

.hero-line-product {
  white-space: nowrap;
}

h1 .wave {
  display: inline-block;
  margin-inline: -0.08em;
  transform-origin: 72% 72%;
  animation: wave 2.7s ease-in-out infinite;
}

h1 em {
  margin-right: 0.24em;
  font-family: "Great Vibes", cursive;
  font-size: clamp(72px, 4.75vw, 90px);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.hero-meta {
  max-width: 760px;
  margin: 28px 0 0 6px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  animation: hero-rise-in 680ms cubic-bezier(0.2, 0.8, 0.2, 1) 340ms both;
}

.hero-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  margin: 24px 0 0 6px;
  padding: 0 10px 0 16px;
  border: 1px solid rgba(88, 57, 115, 0.18);
  border-radius: 9px;
  color: var(--purple);
  background: rgba(251, 251, 251, 0.66);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.04);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px);
  animation: hero-rise-in 680ms cubic-bezier(0.2, 0.8, 0.2, 1) 420ms both;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.hero-cta-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(88, 57, 115, 0.16);
  border-radius: 6px;
  color: var(--purple);
  background: rgba(88, 57, 115, 0.035);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-cta-icon svg {
  width: 12px;
  height: 12px;
  overflow: visible;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-cta-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-cta:hover {
  border-color: rgba(88, 57, 115, 0.34);
  color: var(--text);
  background: rgba(251, 251, 251, 0.92);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.07);
  transform: translateY(-1px);
}

.hero-cta:hover .hero-cta-icon {
  border-color: rgba(23, 23, 23, 0.18);
  color: var(--text);
  background: rgba(23, 23, 23, 0.035);
  transform: translateY(-1px);
}

.hero-cta:hover .hero-cta-icon svg {
  transform: translate(1.5px, -1.5px);
}

.featured {
  align-self: start;
  min-width: 0;
  padding-top: 0;
}

.featured-image,
.selected-grid a,
.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d9d9d9;
}

.featured-image,
.selected-grid a,
.project-media {
  --cursor-x: 50%;
  --cursor-y: 50%;
}

.featured-image::before,
.selected-grid a::before,
.project-media::before {
  position: absolute;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 1;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 218, 74, 0.52) 0 13%, transparent 32%),
    radial-gradient(circle at 58% 58%, rgba(220, 27, 154, 0.42) 0 18%, transparent 42%),
    radial-gradient(circle at 40% 62%, rgba(0, 143, 120, 0.32) 0 18%, transparent 48%);
  content: "";
  filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 180ms ease, transform 180ms ease;
}

.featured-image::after,
.selected-grid a::after,
.project-media::after {
  position: absolute;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 4;
  padding: 8px 11px;
  border: 1px solid rgba(23, 23, 23, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(251, 251, 251, 0.94);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.16);
  content: "Read case study";
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.featured-image.is-cursor-active,
.selected-grid a.is-cursor-active,
.project-media.is-cursor-active {
  cursor: none;
}

.featured-image.is-cursor-active::before,
.selected-grid a.is-cursor-active::before,
.project-media.is-cursor-active::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.featured-image.is-cursor-active::after,
.selected-grid a.is-cursor-active::after,
.project-media.is-cursor-active::after {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.featured-image {
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise-in 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 280ms both;
}

.media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.5 / 1;
  padding: clamp(16px, 2.4vw, 34px);
}

.media-preview-shavikki {
  background: #eef5f0;
}

.media-preview-savings {
  background: #f3f0f6;
}

.media-preview-dashboard {
  background: #f2f4ee;
}

.media-preview-filternews {
  background: #eef6f2;
}

.media-preview-video {
  overflow: hidden;
}

.media-preview-flowmark {
  background: #eef4f1;
}

.selected-grid a {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise-in 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.selected-grid .selected-project:first-child a {
  animation-delay: 420ms;
}

.selected-grid .selected-project:last-child a {
  animation-delay: 500ms;
}

.featured-image img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.media-preview img {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 18px 46px rgba(23, 23, 23, 0.1);
}

.media-preview video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 18px 46px rgba(23, 23, 23, 0.1);
}

.featured-image img,
.selected-grid img,
.selected-grid video,
.project-media video {
  transition: transform 220ms ease, filter 220ms ease;
}

.featured-image.is-cursor-active img {
  filter: saturate(1.04);
  transform: scale(1.015);
}

.selected-grid a.is-cursor-active img,
.selected-grid a.is-cursor-active video,
.media-preview.is-cursor-active img,
.media-preview.is-cursor-active video {
  filter: none;
  transform: none;
}

.selected-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.selected-project {
  min-width: 0;
}

.selected-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(251, 251, 251, 0.2), rgba(251, 251, 251, 0.94)),
    #eef5f0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.selected-cover-filternews {
  background:
    linear-gradient(180deg, rgba(251, 251, 251, 0.14), rgba(251, 251, 251, 0.94)),
    #eef6f2;
}

.selected-cover-flowmark {
  background:
    linear-gradient(180deg, rgba(251, 251, 251, 0.16), rgba(251, 251, 251, 0.94)),
    #eef4f1;
}

.selected-cover-kicker {
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(251, 251, 251, 0.56);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.selected-cover-title {
  color: var(--purple);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.03;
}

.selected-cover-description {
  max-width: 24ch;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 300;
  line-height: 1.18;
}

.selected-grid .selected-cover {
  gap: 5px;
  padding: 18px;
}

.selected-grid .selected-cover-kicker {
  padding: 5px 8px;
  font-size: 12px;
}

.selected-grid .selected-cover-title {
  font-size: 22px;
}

.selected-grid .selected-cover-description {
  max-width: 20ch;
  font-size: 14px;
}

.featured-image.is-cursor-active .selected-cover,
.selected-grid a.is-cursor-active .selected-cover {
  opacity: 0;
  transform: scale(1.015);
}

.selected-grid img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.selected-grid .media-preview img {
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.selected-grid .media-preview video {
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.featured p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  animation: hero-rise-in 640ms cubic-bezier(0.2, 0.8, 0.2, 1) 580ms both;
}

.featured .eyebrow {
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-section {
  padding: clamp(96px, 10vw, 170px) var(--page-x) clamp(76px, 9vw, 140px);
}

.section-heading {
  max-width: 1500px;
  margin-bottom: clamp(56px, 7vw, 104px);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(54px, 6vw, 88px) clamp(42px, 4vw, 62px);
  max-width: 1500px;
  margin: 0 auto;
}

.project-card {
  min-width: 0;
}

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.project-media {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-media-video {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2.6vw, 38px);
  background:
    linear-gradient(135deg, rgba(88, 57, 115, 0.16), rgba(17, 119, 169, 0.1)),
    #f3f0f7;
}

.project-media-video-filter {
  background:
    linear-gradient(135deg, rgba(0, 143, 120, 0.14), rgba(255, 215, 90, 0.16)),
    #f1f6f3;
}

.project-media-automotive {
  display: grid;
  overflow: hidden;
  place-items: center;
  padding: clamp(18px, 2.6vw, 38px);
  background:
    linear-gradient(135deg, rgba(0, 143, 120, 0.14), rgba(255, 215, 90, 0.14)),
    #e8f2ee;
}

.project-media-courttap {
  display: grid;
  overflow: hidden;
  place-items: center;
  padding: clamp(18px, 2.6vw, 38px);
  background:
    linear-gradient(135deg, rgba(216, 240, 107, 0.24), rgba(0, 143, 120, 0.12)),
    #f2f7f0;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.project-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-video video {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 6px;
  object-fit: contain;
  object-position: center center;
  box-shadow: 0 18px 46px rgba(23, 23, 23, 0.1);
  transform: none;
}

.mobile-preview-image {
  display: none;
}

.automotive-preview {
  grid-area: 1 / 1;
  display: block;
  width: min(88%, 960px) !important;
  height: auto !important;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(23, 23, 23, 0.1);
  object-fit: contain !important;
}

.project-media-automotive picture img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-media-automotive > img,
.project-media-courttap > img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 18px 46px rgba(23, 23, 23, 0.1);
}

.automotive-preview-after {
  opacity: 0;
}

.project-media-automotive:hover .automotive-preview-before,
.project-media-automotive.is-cursor-active .automotive-preview-before,
.project-media-automotive:focus-visible .automotive-preview-before {
  opacity: 0;
}

.project-media-automotive:hover .automotive-preview-after,
.project-media-automotive.is-cursor-active .automotive-preview-after,
.project-media-automotive:focus-visible .automotive-preview-after {
  opacity: 1;
}

.project-media.placeholder {
  background: #d9d9d9;
}

.case-card-tools {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(251, 251, 251, 0.82);
  box-shadow: 0 12px 34px rgba(23, 23, 23, 0.1);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.case-card-tool {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(23, 23, 23, 0.82);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.case-card-tool + .case-card-tool {
  border-left: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 0;
  padding-left: 10px;
}

.case-card-tool svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.case-card-tool .tool-icon-fill {
  fill: currentColor;
  stroke: none;
}

.selected-grid .case-card-tools {
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px;
}

.selected-grid .case-card-tool {
  min-height: 23px;
  padding: 0 7px;
  font-size: 12px;
}

.selected-grid .case-card-tool svg {
  width: 13px;
  height: 13px;
}

.featured-image .case-card-tools,
.selected-grid .case-card-tools {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.featured-image.is-cursor-active .case-card-tools,
.selected-grid a.is-cursor-active .case-card-tools {
  opacity: 1;
  transform: translateY(0);
}

.project-media:hover {
  box-shadow: var(--shadow);
  transform: none;
}

.project-media-video:hover {
  transform: none;
}

.project-media-automotive:hover,
.project-media.placeholder:hover {
  transform: none;
}

.project-media.is-cursor-active img,
.project-media.is-cursor-active video {
  filter: none;
  transform: none;
}

.project-media-video.is-cursor-active video {
  filter: none;
  transform: none;
}

.project-media-automotive.is-cursor-active img,
.project-media.placeholder.is-cursor-active img {
  filter: none;
  transform: none;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(18px, 2.3vw, 48px);
  align-items: baseline;
  padding-top: 26px;
  font-size: 24px;
  line-height: 1.2;
}

.project-meta h3 {
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: 500;
}

.project-meta span,
.project-meta time {
  color: var(--muted);
  font-weight: 300;
  white-space: nowrap;
}

.page-hero {
  padding: clamp(54px, 6vw, 96px) var(--page-x) clamp(58px, 7vw, 98px);
}

.page-hero h1 {
  max-width: 1080px;
  line-height: 1.2;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.about-hero-copy {
  min-width: 0;
}

.about-portrait {
  position: relative;
  margin: 0;
}

.about-portrait::before {
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border: 1px solid rgba(88, 57, 115, 0.16);
  background:
    linear-gradient(rgba(23, 23, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #d8d2c8;
  box-shadow: var(--shadow);
}

.case-hero {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(54px, 6vw, 96px) var(--page-x) clamp(46px, 6vw, 82px);
}

.case-hero h1 {
  max-width: 1080px;
  line-height: 1.2;
}

.case-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.case-back::before {
  margin-right: 8px;
  content: "←";
}

.case-image {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin-top: clamp(38px, 5vw, 72px);
  aspect-ratio: 1.96 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #d9d9d9;
  box-shadow: var(--shadow);
}

.case-media-shell {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}

.case-video {
  display: block;
  width: 100%;
  height: calc(100% + 28px);
  object-fit: cover;
  object-position: center center;
  transform: translateY(-14px);
}

.case-video-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 11px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(251, 251, 251, 0.88);
  box-shadow: 0 14px 36px rgba(23, 23, 23, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.case-video-toggle-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
}

.case-video-toggle-icon::before,
.case-video-toggle-icon::after {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 4px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.case-video-toggle-icon::before {
  left: 2px;
}

.case-video-toggle-icon::after {
  right: 2px;
}

.case-video-toggle.is-paused .case-video-toggle-icon::before {
  top: 0;
  bottom: 0;
  left: 3px;
  width: 0;
  height: 0;
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  border-left: 9px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.case-video-toggle.is-paused .case-video-toggle-icon::after {
  display: none;
}

.case-image-placeholder {
  box-shadow: none;
}

.case-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.65fr);
  gap: clamp(28px, 4vw, 72px);
  width: 100%;
  max-width: 1180px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 8px;
  background: var(--surface);
  scroll-margin-top: 96px;
}

.case-facts > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.case-facts h2 {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.case-facts p {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.42;
}

.case-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.case-role-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(88, 57, 115, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--purple);
  background: rgba(88, 57, 115, 0.045);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.case-facts .case-read-time {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.2;
}

.case-read-time svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.case-impact {
  width: 100%;
  max-width: 1180px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 8px;
  background: var(--surface);
}

.case-impact > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--purple);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.case-impact > h2::before {
  width: 21px;
  height: 21px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23008f78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l2 2 4-4'/%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 18.5z'/%3E%3Cpath d='M8 7h8'/%3E%3C/svg%3E");
  content: "";
}

.case-impact > h2::after {
  display: none;
}

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

.impact-grid article {
  min-width: 0;
  padding: 22px 20px;
  border: 2px solid #008f78;
  border-radius: 7px;
  background: rgba(251, 251, 251, 0.62);
}

.impact-grid h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.impact-grid p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.42;
}

.case-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 940px);
  gap: clamp(58px, 6vw, 104px);
  align-items: start;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(24px, 2.5vw, 48px) clamp(86px, 10vw, 152px);
}

.case-timeline {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px 22px 26px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 14px;
  background: rgba(251, 251, 251, 0.94);
  box-shadow: 0 22px 58px rgba(23, 23, 23, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.show-case-timeline .case-timeline {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.case-timeline p {
  margin: 0 0 20px;
  color: #4b6661;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-timeline nav {
  display: grid;
  gap: 7px;
}

.case-timeline a {
  display: flex;
  min-height: 33px;
  align-items: center;
  border-radius: 8px;
  color: #4b6661;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.case-timeline a:not(.timeline-child) {
  padding: 0 10px;
}

.case-timeline a.active {
  position: relative;
  color: #005f54;
  background: #e6f4f1;
}

.case-timeline a.active:not(.timeline-child)::before,
.case-timeline a.parent-active::before {
  width: 6px;
  height: 6px;
  margin: 0 10px 0 0;
  border-radius: 999px;
  background: #008f78;
  content: "";
}

.case-timeline a.parent-active {
  position: relative;
  color: #005f54;
}

.timeline-child {
  position: relative;
  display: none !important;
  margin-left: 10px;
  padding-left: 24px;
  color: #5f7772 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.timeline-child.is-child-group-open {
  display: flex !important;
}

.timeline-child::before {
  position: absolute;
  left: 0;
  top: -7px;
  bottom: -7px;
  width: 1px;
  background: #d4e5e1;
  content: "";
}

.case-content {
  min-width: 0;
}

.case-section {
  scroll-margin-top: 96px;
  padding-bottom: clamp(46px, 5vw, 76px);
}

.case-section h2 {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.case-section h3 {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.case-section p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.44;
}

.case-section p + p {
  margin-top: 16px;
}

.case-section-figure {
  margin: 28px 0 30px;
}

.case-section-figure-narrow {
  max-width: 360px;
}

.case-section-figure figcaption {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.case-image-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
}

.case-image-zoom img,
.case-image-lightbox img {
  width: 100%;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(23, 23, 23, 0.08);
}

.case-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  border: 0;
  background: rgba(248, 248, 248, 0.64);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.case-image-lightbox[hidden] {
  display: none;
}

.case-image-lightbox-frame {
  position: relative;
  width: min(1180px, calc(100vw - 72px));
  cursor: default;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  animation: lightbox-preview-in 180ms ease forwards;
}

.case-image-lightbox-frame img {
  display: block;
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
}

.case-image-lightbox-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(251, 251, 251, 0.9);
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.14);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

@keyframes lightbox-preview-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.case-section ul,
.case-section ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 24px;
}

.case-section li {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.44;
}

.case-section strong {
  color: var(--text);
  font-weight: 500;
}

.case-callout {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid #008f78;
  border-radius: 0 8px 8px 0;
  background: var(--surface);
}

.case-subsection {
  padding-bottom: clamp(30px, 4vw, 54px);
}

.more-cases {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--page-x) clamp(92px, 10vw, 150px);
}

.more-cases h2 {
  margin: 0 0 30px;
  color: var(--text);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.08;
}

.more-cases-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.more-case-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(148px, 0.2fr) auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  min-height: 116px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, transform 160ms ease;
}

.more-case-row:hover {
  color: var(--purple);
  transform: translateX(4px);
}

.more-case-media {
  display: block;
  overflow: hidden;
  width: 132px;
  aspect-ratio: 1.55 / 1;
  background: #d9d9d9;
}

.more-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.more-case-row:hover .more-case-media img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.more-case-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.more-case-title {
  display: block;
  color: var(--purple);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
}

.more-case-meta,
.more-case-description {
  display: block;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

.more-case-arrow {
  color: var(--purple);
  font-size: 26px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-intro {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}

.content-section,
.blog-hub {
  padding: 0 var(--page-x) clamp(86px, 10vw, 152px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px);
}

.about-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(12px, 2vw, 34px);
}

.about-snapshot h2 {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 1.12;
}

.learning-sticker {
  width: min(360px, 100%);
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: #fff2a8;
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.08);
  transform: rotate(-1.4deg);
}

.learning-sticker span {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.learning-sticker p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.32;
}

.snapshot-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.snapshot-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.snapshot-list h3 {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.snapshot-list p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
}

.about-personal {
  padding-top: clamp(20px, 3vw, 50px);
}

.about-personal-inner {
  display: grid;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 8px;
  background: #f1eee8;
}

.about-personal-inner > p:not(.eyebrow) {
  margin: 0;
  color: var(--text);
  font-size: clamp(21px, 1.65vw, 28px);
  font-weight: 400;
  line-height: 1.36;
}

.about-personal .eyebrow {
  margin-bottom: 2px;
  font-size: 14px;
}

.about-offscreen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.about-offscreen p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.about-offscreen span {
  color: var(--purple);
  font-weight: 600;
}

.about-offscreen svg {
  width: 100%;
  max-width: 260px;
  justify-self: end;
  overflow: visible;
}

.about-offscreen path {
  fill: none;
  stroke: rgba(23, 23, 23, 0.86);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.about-contact {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.about-contact h2 {
  margin: 0 auto;
  max-width: 820px;
  color: var(--text);
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 400;
  line-height: 1.12;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.contact-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 999px;
  color: var(--purple);
  background: rgba(251, 251, 251, 0.72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-actions a:hover {
  border-color: rgba(23, 23, 23, 0.28);
  background: var(--surface);
  transform: translateY(-1px);
}


.text-block {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.text-block span,
.post-row span,
.post-row time {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.text-block h2 {
  margin: 18px 0 14px;
  color: var(--purple);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.text-block p,
.post-row p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.44;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: rgba(88, 57, 115, 0.28);
  color: var(--purple);
  background: rgba(88, 57, 115, 0.045);
}

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

.post-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.post-row {
  border-bottom: 1px solid var(--line);
}

.post-row a {
  display: grid;
  grid-template-columns: minmax(96px, 0.16fr) minmax(136px, 0.18fr) minmax(0, 0.38fr) minmax(0, 0.28fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: baseline;
  padding: 28px 0;
}

.post-row h2 {
  margin: 0;
  color: var(--purple);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.site-footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 180px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.back-to-top {
  position: absolute;
  right: var(--page-x);
  bottom: 34px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.back-to-top::after {
  display: inline-block;
  margin-left: 8px;
  content: "↑";
  transform: translateY(-1px);
}

.project-companion {
  position: fixed;
  right: 28px;
  bottom: 64px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.companion-trigger,
.companion-panel {
  pointer-events: auto;
}

.companion-trigger {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(251, 251, 251, 0.88);
  box-shadow: 0 18px 48px rgba(23, 23, 23, 0.14);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.project-companion.is-open .companion-trigger {
  display: none;
}

.companion-trigger-icon,
.companion-header-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(88, 57, 115, 0.2);
  border-radius: 999px;
  background: #fbfbfb url("assets/companion-dog-avatar.png") center 42% / 118% 118% no-repeat;
  box-shadow:
    inset 0 0 0 2px rgba(251, 251, 251, 0.8),
    0 7px 18px rgba(88, 57, 115, 0.18);
}

.companion-trigger-icon::before,
.companion-trigger-icon::after,
.companion-header-icon::before,
.companion-header-icon::after {
  position: absolute;
  display: block;
  opacity: 0;
  pointer-events: none;
  content: "";
}

.companion-trigger-icon::before,
.companion-trigger-icon::after {
  display: none;
}

.companion-header-icon::before {
  left: -8px;
  top: -9px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--pink);
  border-left: 2px solid var(--pink);
  transform: rotate(24deg) scale(0.72);
  --scratch-rotation: 24deg;
}

.companion-header-icon::after {
  right: -8px;
  top: -8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--pink);
  transform: scale(0.6);
  --scratch-rotation: 0deg;
}

.companion-header-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  cursor: pointer;
  overflow: visible;
}

.companion-header-icon.is-petted {
  background-image: url("assets/companion-dog-avatar-petted.png");
  animation: companion-pet 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.companion-header-icon.is-petted::before,
.companion-header-icon.is-petted::after {
  animation: companion-scratch-lines 420ms ease both;
}

.companion-header-icon.show-pet-bubble + div::before {
  position: absolute;
  left: 0;
  top: -28px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(251, 251, 251, 0.96);
  box-shadow: 0 10px 26px rgba(23, 23, 23, 0.12);
  content: "thanks for the scratches :)";
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  animation: companion-speech 1800ms ease both;
}

.companion-panel {
  width: min(380px, calc(100vw - 40px));
  max-height: min(650px, calc(100vh - 112px));
  overflow: visible;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(251, 251, 251, 0.94);
  box-shadow: 0 28px 80px rgba(23, 23, 23, 0.18);
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.companion-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.companion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.14);
}

.companion-header > div {
  position: relative;
  flex: 1;
  min-width: 0;
}

.companion-header p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.companion-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.companion-close {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  padding: 0 0 2px;
}

.companion-messages {
  display: grid;
  max-height: 320px;
  gap: 10px;
  overflow-y: auto;
  padding: 18px 20px 20px;
}

.companion-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.42;
}

.companion-message.bot {
  justify-self: start;
  border-bottom-left-radius: 4px;
  color: var(--text);
  background: #fff;
}

.companion-message.user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  color: #fff;
  background: var(--purple);
}

.companion-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(23, 23, 23, 0.14);
  background: rgba(251, 251, 251, 0.72);
}

.companion-prompt {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.companion-prompt:hover {
  border-color: rgba(23, 23, 23, 0.28);
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

@keyframes wave {
  0%,
  58%,
  100% {
    transform: rotate(0);
  }
  8% {
    transform: rotate(16deg);
  }
  18% {
    transform: rotate(-8deg);
  }
  28% {
    transform: rotate(12deg);
  }
  38% {
    transform: rotate(-4deg);
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.72;
  }
}

@keyframes hero-rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-tag-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--tag-y) + 10px));
  }
  to {
    opacity: 1;
    transform: translateY(var(--tag-y));
  }
}

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

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .featured-image.is-cursor-active,
  .selected-grid a.is-cursor-active,
  .project-media.is-cursor-active {
    cursor: pointer;
  }

  .featured-image::before,
  .selected-grid a::before,
  .project-media::before,
  .featured-image::after,
  .selected-grid a::after,
  .project-media::after {
    display: none;
  }

  .featured-image .case-card-tools,
  .selected-grid .case-card-tools,
  .project-media .case-card-tools {
    opacity: 1;
    transform: none;
  }

  .featured-image .case-card-tools,
  .selected-grid .case-card-tools {
    opacity: 0;
  }

  .project-media-video video,
  .media-preview-video video {
    display: none;
  }

  .project-media-video .mobile-preview-image,
  .media-preview-video .mobile-preview-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 6px;
    object-fit: contain;
    object-position: center center;
    box-shadow: 0 18px 46px rgba(23, 23, 23, 0.1);
  }

  .project-media-automotive .automotive-preview-before {
    opacity: 0;
  }

  .project-media-automotive .automotive-preview-after {
    opacity: 1;
  }
}

@keyframes companion-pet {
  0% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-9deg) scale(1.08);
  }
  55% {
    transform: rotate(7deg) scale(1.04);
  }
  80% {
    transform: rotate(-3deg) scale(1.02);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}

@keyframes companion-scratch-lines {
  0% {
    opacity: 0;
    transform: translateY(2px) rotate(var(--scratch-rotation, 0deg)) scale(0.45);
  }
  24% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translateY(-7px) rotate(var(--scratch-rotation, 0deg)) scale(1);
  }
}

@keyframes companion-speech {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
  14%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

@media (max-width: 1240px) {
  :root {
    --page-x: 28px;
  }

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

  .tag-row {
    justify-content: flex-start;
    gap: 26px;
  }

  .tag-yellow {
    margin-left: 0;
  }

  .featured {
    width: min(780px, 100%);
  }
}

@media (max-width: 760px) {
  :root {
    --page-x: 20px;
  }

  .site-header {
    position: sticky;
    min-height: 68px;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 8px;
    font-size: 13px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    display: grid;
    width: min(330px, calc(100vw - 32px));
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(23, 23, 23, 0.1);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 22px 60px rgba(23, 23, 23, 0.14);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
    letter-spacing: 0;
    text-align: center;
  }

  .main-nav a::before {
    display: none;
  }

  .main-nav .linkedin {
    display: inline-grid;
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 12px 14px;
    padding: 0;
    place-items: center;
    border-radius: 2px;
    color: #fff !important;
    background: #1177a9;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    justify-self: center;
  }

  .hero {
    gap: 58px;
    padding-top: 58px;
    padding-bottom: 54px;
  }

  .hero-cta {
    margin-top: 26px;
  }

  .hero-copy::before {
    inset: -48px -20px -72px -20px;
  }

  .tag-row,
  .selected-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .tag-row {
    display: grid;
    justify-items: start;
    row-gap: 20px;
    margin-bottom: 34px;
  }

  .tag::after {
    display: none;
  }

  .tag-yellow {
    margin-left: 0;
  }

  .tag-pink {
    justify-self: start;
    max-width: calc(100vw - (var(--page-x) * 2) - 18px);
    margin-left: clamp(72px, 19vw, 94px);
    margin-right: 0;
  }

  h1 {
    font-size: clamp(48px, 14vw, 64px);
  }

  .hero-intro-moi,
  .hero-intro-name,
  .hero-looking-main,
  .hero-looking-rest {
    display: block;
  }

  .hero-year-desktop {
    display: none;
  }

  .hero-year-mobile {
    display: inline;
  }

  .hero-line-product {
    white-space: normal;
  }

  .hero-looking-rest,
  .hero-line-design {
    white-space: nowrap;
  }

  h1 em {
    font-size: clamp(58px, 16vw, 74px);
  }

  .project-meta {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding-top: 18px;
  }

  .project-meta h3 {
    grid-column: 1 / -1;
  }

  .page-hero {
    padding-top: 58px;
    padding-bottom: 54px;
  }

  .page-intro {
    font-size: 19px;
  }

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

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

  .about-portrait {
    width: min(360px, 100%);
  }

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

  .learning-sticker {
    transform: rotate(-0.6deg);
  }

  .about-personal-inner {
    padding: 28px 22px;
  }

  .about-personal-inner > p:not(.eyebrow) {
    font-size: 20px;
  }

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

  .about-offscreen svg {
    max-width: 220px;
    justify-self: start;
  }

  .case-layout {
    display: block;
    padding-bottom: 84px;
  }

  .case-facts {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-facts h2 {
    font-size: 22px;
  }

  .case-facts p {
    font-size: 18px;
  }

  .case-role-tags span {
    min-height: 31px;
    font-size: 14px;
  }

  .case-impact {
    padding: 20px;
  }

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

  .case-timeline {
    display: none;
  }

  .post-row a {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 24px 0;
  }

  .more-case-row {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
  }

  .more-case-media {
    width: 82px;
    grid-row: 1 / span 2;
  }

  .more-case-content {
    grid-column: 2;
  }

  .more-case-meta {
    grid-column: 2;
    font-size: 15px;
  }

  .more-case-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .post-row h2 {
    font-size: 24px;
  }

  .project-meta span,
  .project-meta time {
    white-space: normal;
  }

  .project-meta time {
    justify-self: end;
  }

  .project-companion {
    right: 16px;
    bottom: 28px;
    left: 16px;
  }

  .companion-trigger {
    width: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 0;
  }

  .companion-trigger > span:not(.companion-trigger-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .companion-panel {
    width: 100%;
    max-height: min(620px, calc(100vh - 96px));
  }

  .companion-messages {
    max-height: 300px;
  }

  .site-footer {
    min-height: 168px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0 var(--page-x) 34px;
    text-align: center;
  }

  .back-to-top {
    display: none;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 12px;
  }

  .hero {
    padding-top: 48px;
  }
}
