

/* Style — v2
----------------------------------------------------------------------------- */


/* Shader canvas
----------------------------------------------------------------------------- */

#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


/* Section cover
----------------------------------------------------------------------------- */

.section.cover {
  position: fixed;
  width: 100%;
  min-height: 100vh;
  transform: translateY(-15vh);
  opacity: 0;
  transition: transform 1.5s cubic-bezier(0.33, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.33, 0, 0.2, 1) 0.25s;
  pointer-events: none;
  display: none;
}
.section.cover > .content {
  grid-column: 1 / -1;
  display: flex;
}
.section.cover h1 {
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 40px;
  animation: welcome 1.5s ease-in-out;
}
@keyframes welcome {
  0% { opacity: 0; }
  5% { opacity: 0; }
  100% { opacity: 1; }
}
body.is--loading {
  overflow: hidden;
  pointer-events: none;
}
body.is--loading .app-header,
body.is--loading .app-nav,
body.is--loading .app-aside .options .option,
body.is--loading .app-aside .mode-switcher {
  transition: opacity 1s cubic-bezier(0.33, 0, 0.2, 1) 0.75s;
}
body.is--loading .app-main {
  position: relative;
  transform: none;
  transition: transform 1.5s cubic-bezier(0.33, 0, 0.2, 1);
}
body.is--loading .section.cover {
  display: grid;
}
body.cover--is--visible .app-main {
  transform: translateY(115vh);
}
body.cover--is--visible .section.cover {
  transform: translateY(-115vh);
  opacity: 1;
}
body.cover--is--visible .app-header,
body.cover--is--visible .app-nav,
body.cover--is--visible .app-aside .options .option,
body.cover--is--visible .app-aside .mode-switcher {
  opacity: 0;
}


/* App header
----------------------------------------------------------------------------- */

.app-header {
  position: fixed;
  width: 100%;
  padding: 0 var(--grid--app-margin);
  z-index: 100;
  -webkit-user-select: none;
  user-select: none;
}
.app-header > .content {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-header .brand {
  padding: 12px 0;
}
.app-header .brand:hover {
  cursor: default;
}
.app-header .brand h3 {
  margin-left: var(--font--margin-left);
  font-size: var(--font--size-medium);
  line-height: 1;
}
.app-header .brand h3 span:nth-child(n+2) {
  margin-left: -0.02em;
  opacity: 0;
  transition: margin-left 0.3s ease-in, opacity 0.3s ease-in;
}
.app-header .brand:hover h3 span:nth-child(n+2) {
  margin-left: 0;
  opacity: 1;
  transition: margin-left 0.3s ease-out, opacity 0.3s ease-out;
}

.app-header .brand:hover h3 span:nth-child(2)  { transition-delay: 0.00s; }
.app-header .brand:hover h3 span:nth-child(3)  { transition-delay: 0.01s; }
.app-header .brand:hover h3 span:nth-child(4)  { transition-delay: 0.02s; }
.app-header .brand:hover h3 span:nth-child(5)  { transition-delay: 0.03s; }
.app-header .brand:hover h3 span:nth-child(6)  { transition-delay: 0.04s; }
.app-header .brand:hover h3 span:nth-child(7)  { transition-delay: 0.05s; }
.app-header .brand:hover h3 span:nth-child(8)  { transition-delay: 0.06s; }
.app-header .brand:hover h3 span:nth-child(9)  { transition-delay: 0.07s; }
.app-header .brand:hover h3 span:nth-child(10) { transition-delay: 0.08s; }
.app-header .brand:hover h3 span:nth-child(11) { transition-delay: 0.09s; }
.app-header .brand:hover h3 span:nth-child(12) { transition-delay: 0.10s; }
.app-header .brand:hover h3 span:nth-child(13) { transition-delay: 0.11s; }
.app-header .brand:hover h3 span:nth-child(14) { transition-delay: 0.12s; }
.app-header .brand:hover h3 span:nth-child(15) { transition-delay: 0.13s; }

.app-header .brand h3 span:nth-child(2)  { transition-delay: 0.13s; }
.app-header .brand h3 span:nth-child(3)  { transition-delay: 0.12s; }
.app-header .brand h3 span:nth-child(4)  { transition-delay: 0.11s; }
.app-header .brand h3 span:nth-child(5)  { transition-delay: 0.10s; }
.app-header .brand h3 span:nth-child(6)  { transition-delay: 0.09s; }
.app-header .brand h3 span:nth-child(7)  { transition-delay: 0.08s; }
.app-header .brand h3 span:nth-child(8)  { transition-delay: 0.07s; }
.app-header .brand h3 span:nth-child(9)  { transition-delay: 0.06s; }
.app-header .brand h3 span:nth-child(10) { transition-delay: 0.05s; }
.app-header .brand h3 span:nth-child(11) { transition-delay: 0.04s; }
.app-header .brand h3 span:nth-child(12) { transition-delay: 0.03s; }
.app-header .brand h3 span:nth-child(13) { transition-delay: 0.02s; }
.app-header .brand h3 span:nth-child(14) { transition-delay: 0.01s; }
.app-header .brand h3 span:nth-child(15) { transition-delay: 0.00s; }

.app-header .actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-header .contact {
  display: flex;
  padding: 12px 0;
  font-size: var(--font--size-medium);
  line-height: 1;
  cursor: pointer;
}
.app-header .navigation {
  display: none;
  padding: 12px;
  margin-right: -12px;
  border-radius: 24px;
}
.app-header .navigation:hover {
  cursor: pointer;
}
.app-header .navigation .icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-header .navigation .line {
  position: absolute;
}
.app-header .navigation .line .content {
  width: 24px;
  height: 2px;
  background-color: var(--color--foreground--100);
}
.app-header .navigation .line:nth-child(1) {
  transform: rotate(0);
  transition: transform 0.1s ease-in;
}
.app-header .navigation .line:nth-child(2) {
  transform: rotate(0);
  transition: transform 0.1s ease-in;
}
.app-header .navigation .line:nth-child(1) .content {
  transform: translateY(-4px);
  transition: transform 0.1s ease-out 0.1s;
}
.app-header .navigation .line:nth-child(2) .content {
  transform: translateY(4px);
  transition: transform 0.1s ease-out 0.1s;
}
body.mobile-nav--is--visible .app-header .navigation .line:nth-child(1)  {
  transform: rotate(45deg);
  transition: transform 0.1s ease-out 0.1s;
}
body.mobile-nav--is--visible .app-header .navigation .line:nth-child(2)  {
  transform: rotate(-45deg);
  transition: transform 0.1s ease-out 0.1s;
}
body.mobile-nav--is--visible .app-header .navigation .line:nth-child(1) .content  {
  transform: translateY(0);
  transition: transform 0.1s ease-in;
}
body.mobile-nav--is--visible .app-header .navigation .line:nth-child(2) .content  {
  transform: translateY(0);
  transition: transform 0.1s ease-in;
}


/* App nav
----------------------------------------------------------------------------- */

.app-nav {
  position: fixed;
  top: var(--grid--app-xheight);
  left: var(--grid--app-margin);
  z-index: 100;
  -webkit-user-select: none;
  user-select: none;
}
.app-nav .content:hover {
  cursor: pointer;
}
.app-nav .item {
  font-size: var(--font--size-regular);
  padding: 1px 0;
  color: var(--color--foreground--33);
}
.app-nav .item:hover {
  color: var(--color--foreground--100);
  cursor: pointer;
}
.app-nav .item.is--active {
  color: var(--color--foreground--100);
}


/* App aside — mode switcher + grid toggle
----------------------------------------------------------------------------- */

.app-aside {
  position: fixed;
  left: calc(var(--grid--app-margin) - 12px);
  bottom: calc(var(--grid--app-margin) - 12px);
  z-index: 100;
}
.app-aside .options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Mode switcher */
.mode-switcher {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--color--foreground--5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 4px;
}
.mode-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: var(--color--foreground--33);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.mode-btn:hover {
  color: var(--color--foreground--100);
  background-color: var(--color--foreground--5);
}
.mode-btn.is--active {
  color: var(--color--foreground--100);
  background-color: var(--color--foreground--10);
}
.mode-btn svg {
  width: 16px;
  height: 16px;
}

/* Grid toggle */
.app-aside .option.grid-toggle {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background-color: var(--color--foreground--5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.app-aside .option.grid-toggle:hover {
  cursor: pointer;
  background-color: var(--color--foreground--15);
}
.app-aside .option.grid-toggle:active {
  background-color: var(--color--foreground--20);
}
.app-aside .option.grid-toggle .content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.app-aside .option.grid-toggle svg path {
  fill: var(--color--foreground--100);
}


/* App main
----------------------------------------------------------------------------- */

.app-main a {
  border-bottom: 1px solid var(--color--foreground--25);
}
.app-main a:hover {
  border-bottom-color: var(--color--foreground--100);
  cursor: pointer;
}


/* Sections
----------------------------------------------------------------------------- */

.section {
  padding: 0 var(--grid--app-margin);
  display: grid;
  grid-template-columns: var(--grid--app-columns);
  gap: var(--grid--app-gutter);
}
.section > .content {
  grid-column: 5 / -1;
}
.section h1 {
  margin-left: var(--font--margin-left);
  font-size: var(--font--size-huge);
  line-height: 0.975;
  letter-spacing: -0.02em;
  text-transform: var(--mode--heading-transform, none);
}
.section h2 {
  margin-left: var(--font--margin-left);
  font-size: var(--font--size-large);
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.section h3 {
  font-size: var(--font--size-regular);
  line-height: var(--font--size-regular-line-height);
  color: var(--color--foreground--50);
}


/* Section intro
----------------------------------------------------------------------------- */

.section.intro > .content {
  padding: calc(var(--grid--app-xheight) - 11px) 0 80px 0;
  position: relative;
}
.section.intro .text {
  min-height: calc(1em * 0.975 * 4);
  display: none;
}
.section.intro .text.is--visible {
  display: block;
}
.section h1 a {
  border-bottom: 2px solid var(--color--foreground--25);
  display: inline-block;
  line-height: 0.88;
}


/* Section work — hero tiles + dense mosaic
----------------------------------------------------------------------------- */

.section.work {
  padding: 0 var(--grid--app-margin);
  display: block;
}
.section.work > .content {
  padding: 220px 0 20px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

/* Work heading */
.work-heading {
  grid-column: 1 / -1;
  padding-bottom: 32px;
}
.work-heading h1 {
  margin-left: var(--font--margin-left);
  font-size: var(--font--size-huge);
  line-height: 0.975;
  letter-spacing: -0.02em;
}

/* Hero tiles row */
.hero-tiles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.hero-tile {
  position: relative;
  overflow: hidden;
  border: var(--mode--tile-border);
  border-radius: var(--mode--tile-radius);
  text-decoration: none;
  display: block;
}
.hero-tile:hover {
  border-bottom-color: transparent;
}
.hero-tile__canvas {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
}
.hero-tile__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
}
.hero-tile__title {
  font-size: var(--font--size-large);
  line-height: 1;
  letter-spacing: -0.01em;
  color: inherit;
  margin-left: 0;
}
.hero-tile__subtitle {
  font-size: var(--font--size-small);
  color: var(--color--foreground--50);
  margin-top: 4px;
}

/* Hideaway — neon glow + CRT scanlines */
.hero-tile--hideaway {
  background: #0a0a0a;
}
.hero-tile--hideaway .hero-tile__title {
  color: #ff00ff;
  text-shadow:
    0 0 5px #ff00ff,
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 40px #ff00ff;
  animation: hideaway-glow 3s ease-in-out infinite;
}
.hero-tile--hideaway .hero-tile__subtitle {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
}
.hero-tile--hideaway .hero-tile__canvas {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255, 0, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(to right, rgba(26, 26, 46, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 46, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-color: #0a0a0a;
}
.hero-tile--hideaway .hero-tile__scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  animation: scanline-scroll 0.5s linear infinite;
  z-index: 1;
}
@keyframes hideaway-glow {
  0%, 100% {
    text-shadow:
      0 0 5px #ff00ff,
      0 0 10px #ff00ff,
      0 0 20px #ff00ff,
      0 0 40px #ff00ff;
  }
  50% {
    text-shadow:
      0 0 10px #ff00ff,
      0 0 20px #ff00ff,
      0 0 40px #ff00ff,
      0 0 80px #ff00ff;
  }
}
@keyframes scanline-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

/* Crestborne — Three.js canvas renders into this */
.hero-tile--crestborne {
  background: #080e1a;
}
.hero-tile--crestborne .hero-tile__canvas {
  background: #080e1a;
}
.hero-tile--crestborne .hero-tile__title {
  color: #a3b5a8;
  text-shadow: 0 0 15px rgba(138, 158, 143, 0.4);
}
.hero-tile--crestborne .hero-tile__subtitle {
  color: rgba(163, 181, 168, 0.6);
}
.hero-tile--crestborne canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Psyche — portal glow */
.hero-tile--psyche {
  background: #0a0a14;
}
.hero-tile--psyche .hero-tile__canvas {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
  background-color: #0a0a14;
}
.hero-tile--psyche .hero-tile__title {
  color: #e2e8f0;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}
.hero-tile--psyche .hero-tile__subtitle {
  color: rgba(226, 232, 240, 0.5);
}
.hero-tile--psyche::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.1);
  animation: psyche-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-tile--psyche::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  height: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.08);
  animation: psyche-pulse 4s ease-in-out infinite 1s;
  pointer-events: none;
  z-index: 1;
}
@keyframes psyche-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Hero tile clickable cursor */
.hero-tile {
  cursor: pointer;
}

/* Mosaic tiles — linked with hover metadata */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--mode--tile-radius);
  border: var(--mode--tile-border);
  text-decoration: none;
  display: block;
  color: inherit;
}
.tile:hover {
  border-bottom-color: transparent;
}
.tile-image {
  width: 100%;
  padding-bottom: 66%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.33, 0, 0.2, 1);
}
.tile:hover .tile-image {
  transform: scale(1.05);
}

/* Tile hover metadata */
.tile-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  display: flex;
  align-items: baseline;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tile:hover .tile-meta {
  opacity: 1;
  transform: translateY(0);
}
.tile-meta__name {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}
.tile-meta__type {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.tile-meta__badge {
  font-size: 9px;
  color: #14b8a6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: auto;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(20, 184, 166, 0.15);
  transition: background 0.2s ease;
}
.tile-meta__badge:hover {
  background: rgba(20, 184, 166, 0.3);
}

/* Case study indicator on mosaic tiles */
.tile.has-casestudy::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #14b8a6;
  box-shadow: 0 0 6px rgba(20, 184, 166, 0.6);
  z-index: 2;
}
.tile.has-casestudy::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  border: 1.5px solid rgba(20, 184, 166, 0.5);
  z-index: 2;
  animation: sonar-ping 3s ease-out infinite;
  pointer-events: none;
}
@keyframes sonar-ping {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}


/* Section ideas
----------------------------------------------------------------------------- */

.section.ideas > .content {
  padding: 160px 0 80px 0;
}
.ideas-heading {
  margin-bottom: 40px;
}
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grid--app-gutter);
}
.idea-card {
  display: block;
  padding: 28px 24px;
  border: 1px solid var(--color--foreground--10);
  border-radius: var(--mode--tile-radius, 0);
  background: var(--mode--surface, transparent);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.idea-card:hover {
  border-color: var(--color--foreground--25);
  background: var(--mode--surface-hover, transparent);
}
.idea-card__date {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color--foreground--33);
  margin-bottom: 10px;
}
.idea-card__title {
  font-size: var(--font--size-medium, 18px);
  font-weight: var(--mode--font-weight, 400);
  line-height: 1.3;
  margin-bottom: 8px;
}
.idea-card__excerpt {
  font-size: var(--font--size-small, 13px);
  line-height: 1.55;
  color: var(--color--foreground--50);
}


/* Section about
----------------------------------------------------------------------------- */

.section.about > .content {
  padding: 220px 0 80px 0;
  display: grid;
  grid-template-columns: var(--grid--app-columns-2);
  gap: var(--grid--app-gutter);
}

/* Charioteer SVG — decorative symbol above biography */
.charioteer {
  grid-column: 2 / -1;
  max-width: 320px;
  color: var(--mode--fg);
  opacity: 0.12;
  filter: drop-shadow(0 0 15px rgba(200, 149, 108, 0.08));
  transition: opacity 0.6s ease, filter 0.6s ease, color 0.3s ease;
  margin-bottom: -40px;
}
.charioteer:hover {
  opacity: 0.25;
  filter: drop-shadow(0 0 25px rgba(200, 149, 108, 0.15));
}
.charioteer svg {
  width: 100%;
  height: auto;
}

.section.about .biography,
.section.about .colophon {
  grid-column: 2 / -1;
}
.section.about h2 {
  padding-top: 0;
  padding-bottom: 0.14em;
}
.section.about .colophon h2 {
  padding-top: 40px;
}
.section.about p {
  padding-top: 20px;
}
.section.about .biography p {
  padding-top: 10px;
}
.section.about p span.description,
.section.about p span.copyright {
  font-size: var(--font--size-small);
}


/* Contact overlay
----------------------------------------------------------------------------- */

.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.contact--is--visible .contact-overlay {
  pointer-events: auto;
  opacity: 1;
}
.contact-overlay__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mode--overlay-bg, rgba(0, 0, 0, 0.96));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.contact-overlay__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--grid--app-margin);
}
.contact-overlay__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--color--foreground--50);
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.contact-overlay__close:hover {
  color: var(--color--foreground--100);
  background-color: var(--color--foreground--5);
}

.contact-overlay__inner {
  max-width: 600px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
body.contact--is--visible .contact-overlay__inner {
  transform: translateY(0);
}
.contact-overlay__status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}
.contact-overlay__status .look {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-top: 0;
}
.contact-overlay__status h3 {
  color: var(--color--foreground--50);
}

.contact-overlay__heading {
  font-size: var(--font--size-huge);
  line-height: 0.975;
  letter-spacing: -0.02em;
  margin-left: var(--font--margin-left);
}
.contact-overlay__links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-overlay__link {
  font-size: var(--font--size-medium);
  color: var(--color--foreground--100);
  border-bottom: 1px solid var(--color--foreground--25);
  padding: 8px 0;
  display: inline-block;
  transition: border-color 0.2s ease;
  text-decoration: none;
}
.contact-overlay__link:hover {
  border-bottom-color: var(--color--foreground--100);
}

/* Look / pulse dot */
.look {
  position: absolute;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  margin-left: -32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.look .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--color--foreground--100);
}
.look .radius {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--color--foreground--0);
  animation: pulse 3s cubic-bezier(0.1, 0.5, 0.6, 1) infinite;
}
@keyframes pulse {
  0% {
    background-color: var(--color--foreground--25);
    transform: scale(1, 1)
  }
  66.666% {
    background-color: var(--color--foreground--0);
    transform: scale(4, 4)
  }
  100% {
  }
}


/* Case study panel
----------------------------------------------------------------------------- */

.casestudy-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}
body.casestudy--is--visible .casestudy-panel {
  display: block;
}
.casestudy-panel__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mode--overlay-bg, rgba(0, 0, 0, 0.96));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.casestudy-panel__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--grid--app-margin);
  overflow-y: auto;
}
.casestudy-panel__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--color--foreground--50);
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  transition: color 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}
.casestudy-panel__close:hover {
  color: var(--color--foreground--100);
  background-color: var(--color--foreground--5);
}

/* Individual case study */
.casestudy {
  max-width: 640px;
  display: none;
}
.casestudy.is--visible {
  display: block;
}
.casestudy__header {
  margin-bottom: 40px;
}
.casestudy__title {
  font-size: var(--font--size-huge);
  line-height: 0.975;
  letter-spacing: -0.02em;
  margin-left: var(--font--margin-left);
}
.casestudy__type {
  font-size: var(--font--size-regular);
  color: var(--color--foreground--50);
  margin-top: 8px;
}
.casestudy__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.casestudy__section h3 {
  font-size: var(--font--size-regular);
  color: var(--color--foreground--50);
  margin-bottom: 8px;
}
.casestudy__section p {
  font-size: var(--font--size-regular);
  line-height: 1.6;
  color: var(--color--foreground--100);
}
.casestudy__link {
  display: inline-block;
  margin-top: 40px;
  font-size: var(--font--size-medium);
  color: var(--color--foreground--100);
  border-bottom: 1px solid var(--color--foreground--25);
  padding: 8px 0;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.casestudy__link:hover {
  border-bottom-color: var(--color--foreground--100);
}


/* Blog post page
----------------------------------------------------------------------------- */

.section.post > .content {
  max-width: 640px;
  padding: calc(var(--grid--app-xheight) + 40px) var(--grid--app-margin) 120px;
}
.post__back {
  display: inline-block;
  font-size: var(--font--size-small, 13px);
  color: var(--color--foreground--33);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}
.post__back:hover {
  color: var(--color--foreground--100);
}
.post__date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color--foreground--33);
  margin-bottom: 12px;
}
.post__title {
  font-size: var(--font--size-huge);
  line-height: 0.975;
  letter-spacing: -0.02em;
  margin-left: var(--font--margin-left);
  margin-bottom: 48px;
}
.post__body p {
  font-size: var(--font--size-regular);
  line-height: 1.7;
  color: var(--color--foreground--100);
  margin-bottom: 1.4em;
}
.post__body h2 {
  font-size: var(--font--size-medium, 18px);
  font-weight: var(--mode--font-weight, 400);
  margin-top: 2.4em;
  margin-bottom: 0.8em;
}
.post__body code {
  font-family: var(--font--family-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--color--foreground--5);
}


/* Mono text styling */
.mono {
  font-family: var(--font--family-mono);
  font-size: 0.85em;
}


/* General
----------------------------------------------------------------------------- */

::selection {
  background-color: var(--color--foreground--10);
}
