:root {
  --bg: #ffffff;
  --ink: #0f0d0b;
  --muted: rgba(79, 79, 79, 0.7);
  --soft: rgba(235, 235, 235, 0.82);
  --line: rgba(15, 13, 11, 0.14);
  --footer: #0b0b0a;
  --page-gutter: 48px;
  --pad: 48px;
}

* {
  box-sizing: border-box;
}

img,
video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

html {
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  cursor: none;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overscroll-behavior-x: none;
}

.smooth-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

body.smooth-enabled {
  overflow-y: scroll;
}

body.smooth-enabled .smooth-content {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  will-change: transform;
}

a,
button {
  color: inherit;
  cursor: none;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  appearance: none;
  border: 0;
}

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

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.72);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.cursor-dot.is-hovering {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.72);
}

.floating-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  width: calc(100vw - var(--page-gutter) * 2);
  pointer-events: none;
  transform: translateX(-50%);
}

.pill-nav,
.language-switcher {
  background: var(--soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(22px);
}

.pill-nav {
  display: flex;
  align-items: center;
  height: 42px;
  gap: 18px;
  padding: 0 26px;
  border-radius: 6px;
  pointer-events: auto;
}

.pill-nav a,
.language-switcher button {
  color: rgba(15, 13, 11, 0.5);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease,
    background-color 180ms ease;
}

.pill-nav a:hover,
.pill-nav a.is-active,
.language-switcher button:hover,
.language-switcher button.is-active {
  color: var(--ink);
}

.pill-nav span {
  width: 1px;
  height: 16px;
  background: rgba(15, 13, 11, 0.18);
}

.language-switcher {
  display: flex;
  width: 94px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  pointer-events: auto;
}

.language-switcher button {
  padding: 0;
  background: transparent;
}

.language-switcher span {
  width: 1px;
  height: 13px;
  background: rgba(15, 13, 11, 0.18);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: calc(100vw - var(--page-gutter) * 2);
  margin: 0 auto;
}

.page-shell::before {
  position: absolute;
  top: 0;
  right: calc(var(--page-gutter) * -1);
  bottom: 0;
  left: calc(var(--page-gutter) * -1);
  z-index: -1;
  background: var(--bg);
  content: "";
}

.hero {
  display: flex;
  min-height: 433px;
  align-items: flex-end;
  padding-bottom: 48px;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.22;
}

.work-grid {
  column-count: 2;
  column-gap: 16px;
}

.project-tile {
  display: grid;
  gap: 12px;
  break-inside: avoid;
  margin: 0 0 28px;
  min-width: 0;
}

.project-visual {
  position: relative;
  display: grid;
  aspect-ratio: 448 / 247;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  background: #ededed;
  isolation: isolate;
}

.project-tile:first-child .project-visual {
  aspect-ratio: 904 / 535;
}

.project-tile:nth-child(2n) .project-visual {
  aspect-ratio: 448 / 247;
}

.project-tile:nth-child(3n) .project-visual {
  aspect-ratio: 448 / 245;
}

.project-tile:nth-child(4n) .project-visual {
  aspect-ratio: 448 / 247;
}

.project-tile:nth-child(5n) .project-visual {
  aspect-ratio: 448 / 300;
}

.project-tile:nth-child(6n) .project-visual {
  aspect-ratio: 448 / 235;
}

.project-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 18, 18, 0.02);
  content: "";
  transition: background-color 220ms ease, backdrop-filter 220ms ease;
}

.project-visual > *:not(.view-project) {
  transition: filter 280ms ease, transform 280ms ease;
}

.project-tile:hover .project-visual::before {
  background: rgba(20, 18, 15, 0.17);
  backdrop-filter: blur(8px);
}

.project-tile:hover .project-visual > *:not(.view-project) {
  filter: blur(7px);
  transform: scale(1.035);
}

.view-project {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 132px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: rgba(120, 105, 90, 0.42);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(8px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-tile:hover .view-project {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.project-caption p {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  white-space: nowrap;
}

.project-caption p:last-child {
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  flex-shrink: 0;
  text-align: right;
}

.visual-serveo {
  background: #ff6b2b;
}

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

.visual-maters {
  background:
    radial-gradient(circle at 52% 45%, rgba(255, 255, 255, 0.32), transparent 18%),
    radial-gradient(circle at 20% 20%, #9ab382, transparent 24%),
    radial-gradient(circle at 70% 26%, #45673d, transparent 36%),
    linear-gradient(135deg, #bfd0d1, #8cae84);
}

.living-logo {
  color: #fff;
  font-size: 4.75rem;
  font-weight: 500;
  line-height: 1;
}

.visual-campaigns {
  background: #020202;
}

.visual-cipher {
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    #cfcfcf;
  background-size: 8px 8px;
}

.cap-mark {
  width: 61%;
  height: 72%;
  border-radius: 50% 50% 44% 44%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(ellipse at 50% 90%, rgba(0, 0, 0, 0.42), transparent 38%),
    #2b2b2b;
  box-shadow: inset 0 9px 18px rgba(255, 255, 255, 0.08);
}

.visual-grain {
  align-items: end;
  padding: 26px 40px 0;
  background: #d0cece;
}

.noise-screen {
  position: relative;
  width: 88%;
  aspect-ratio: 388 / 220;
  overflow: hidden;
  border: 12px solid #070707;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: #101010;
}

.noise-screen span {
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #e158d0 0 2px, transparent 3px);
  background-size: 13px 13px;
  opacity: 0.95;
}

.noise-screen span:nth-child(1) {
  right: -3%;
  bottom: -18%;
}

.noise-screen span:nth-child(2) {
  right: 16%;
  bottom: -30%;
  background-image: radial-gradient(circle, #6348ff 0 2px, transparent 3px);
}

.noise-screen span:nth-child(3) {
  right: -18%;
  bottom: -4%;
  background-image: radial-gradient(circle, #ff7c55 0 2px, transparent 3px);
}

.visual-opus {
  background: #d9e1e5;
}

.motion-wave {
  width: 120%;
  height: 120%;
  background:
    radial-gradient(ellipse at 20% 70%, #083e98 0 18%, transparent 39%),
    radial-gradient(ellipse at 70% 35%, #ffe996 0 9%, transparent 32%),
    radial-gradient(ellipse at 58% 70%, #2d87d3 0 12%, transparent 44%),
    linear-gradient(135deg, #f4eaa1, #0f43a0 48%, #fcf4b0);
  filter: saturate(1.15);
}

.visual-semantic {
  background: #e3e0dc;
}

.semantic-grid {
  width: 78%;
  height: 70%;
  border: 1px solid rgba(15, 13, 11, 0.5);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(15, 13, 11, 0.08) 32% 33%, transparent 33%),
    linear-gradient(transparent 0 48%, rgba(15, 13, 11, 0.1) 48% 49%, transparent 49%),
    radial-gradient(circle at 30% 50%, #0f0d0b 0 9%, transparent 9.5%),
    radial-gradient(circle at 70% 50%, #9b6f42 0 12%, transparent 12.5%),
    #f7f5ef;
}

.info-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding-top: 165px;
}

.info-section h2,
.contact-section h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.about-content {
  display: grid;
  gap: 22px;
}

.body-copy,
.two-list li,
.contact-section p,
.arrow-link {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.38;
}

.body-copy {
  max-width: 440px;
  margin: 0;
}

.more-toggle {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.38;
  transition: color 180ms ease, transform 180ms ease;
}

.more-toggle::before {
  content: "↳ ";
}

.more-toggle:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.resume-panel {
  display: grid;
  gap: 18px;
  max-width: 620px;
  padding-top: 4px;
}

.resume-panel[hidden] {
  display: none;
}

.resume-item {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.resume-date,
.resume-title {
  margin: 0;
}

.resume-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 21px;
  white-space: nowrap;
}

.resume-title {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.38;
}

.arrow-link {
  display: block;
  width: max-content;
  transition: color 180ms ease, transform 180ms ease;
}

.arrow-link::before {
  content: "↳ ";
}

.arrow-link:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.list-section {
  padding-top: 122px;
}

.two-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.two-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr) minmax(0, 0.5fr);
  padding: 132px 0 100px;
}

.contact-section-compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.contact-section p {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  min-height: 270px;
  padding: 74px var(--page-gutter) 0;
  background: var(--footer);
  color: #fff;
}

.footer-reveal-spacer {
  height: var(--footer-reveal-height, 270px);
  pointer-events: none;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.footer-bar p,
.footer-bar a {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-transform: uppercase;
}

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

.footer-marquee {
  overflow: hidden;
  width: 100%;
  user-select: none;
}

.footer-marquee-track {
  display: flex;
  width: max-content;
  animation: footer-marquee 38s linear infinite;
  will-change: transform;
}

.footer-marquee-set {
  display: flex;
}

.footer-marquee-set span {
  padding-right: 0.22em;
  color: #fff;
  font-size: 8.625rem;
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes footer-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

  .footer-marquee-track {
    animation: none !important;
  }
}

@media (max-width: 809.98px) {
  :root {
    --page-gutter: 16px;
  }

  body {
    cursor: auto;
    touch-action: pan-y;
  }

  a,
  button {
    cursor: pointer;
  }

  .cursor-dot {
    display: none;
  }

  .floating-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    top: 16px;
  }

  .page-shell {
    width: calc(100vw - var(--page-gutter) * 2);
  }

  .pill-nav {
    height: 40px;
    gap: 10px;
    overflow: auto;
    padding: 0 16px;
    scrollbar-width: none;
  }

  .pill-nav::-webkit-scrollbar {
    display: none;
  }

  .pill-nav a,
  .language-switcher button {
    font-size: 14px;
  }

  .pill-nav span {
    height: 13px;
  }

  .language-switcher {
    width: 78px;
  }

  .hero {
    min-height: 420px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .work-grid {
    column-count: 1;
  }

  .info-section,
  .contact-section {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .contact-section {
    padding-bottom: 76px;
  }

  .body-copy,
  .two-list li,
  .arrow-link,
  .more-toggle,
  .resume-title {
    font-size: 1.125rem;
  }

  .resume-item {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
  }

  .two-list {
    grid-template-columns: 1fr;
  }

  .project-caption {
    align-items: start;
  }

  .project-caption p {
    font-size: 13px;
  }

  .living-logo {
    font-size: 3.75rem;
  }

  .footer-bar {
    display: grid;
  }

  .site-footer {
    min-height: 250px;
    padding: 56px 16px 0;
  }

  .footer-reveal-spacer {
    height: var(--footer-reveal-height, 250px);
  }

  .footer-marquee-set span {
    font-size: 4.5rem;
  }
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }

  .cursor-dot {
    display: none;
  }
}
