:root {
  color-scheme: light;
  --paper: #f5f5f5;
  --ink: #050505;
  --muted: #777772;
  --line: rgba(5, 5, 5, 0.14);
  --gutter: clamp(16px, 3.7vw, 56px);
  --font: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

.section-shell {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 var(--gutter);
  background: var(--paper);
}

.wordmark {
  width: fit-content;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.075em;
}

.header-role,
.eyebrow,
.section-count,
.project-year,
.visual-index,
.visual-note,
.stat p,
.scroll-cue,
.footer-bottom {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.header-role {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.header-role span {
  padding: 0 5px;
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-self: end;
}

.header-local-time {
  min-width: 9ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: end;
  padding: 10px 0 10px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-icon i {
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 500ms;
}

.menu-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  pointer-events: none;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.menu-backdrop-text {
  position: fixed;
  z-index: 31;
  top: 50%;
  left: 0;
  color: #fff;
  font-size: clamp(24px, calc((100vw - max(340px, min(40vw, 480px)) - 24px) / 14.2), 150px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  transform: translate3d(150px, -50%, 0);
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 500ms;
}

body.menu-open .menu-backdrop-text {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 50ms, opacity 700ms cubic-bezier(0.16, 1, 0.3, 1) 50ms, visibility 0s;
}

.menu-panel {
  position: fixed;
  z-index: 31;
  inset: 0 0 0 auto;
  display: flex;
  width: min(40vw, 480px);
  min-width: 340px;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px 24px 24px;
  background: #f5f5f5;
  color: #050505;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 500ms;
}

body.menu-open .menu-panel {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.menu-close {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  align-self: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.menu-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.menu-navigation {
  margin-top: 16px;
}

.menu-label {
  margin: 0;
  color: #777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.menu-links {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.menu-links a {
  width: fit-content;
  font-size: clamp(28px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.18;
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-divider {
  width: calc(100% + 48px);
  height: 1px;
  flex: none;
  margin: 41px -24px 44px;
  border: 0;
  background: rgba(5, 5, 5, 0.12);
}

.menu-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.menu-socials {
  margin-top: 24px;
}

.menu-social-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.menu-social-links a {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  transition: opacity 180ms ease;
}

.menu-social-links a:hover {
  opacity: 0.55;
}

.menu-social-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.menu-social-links .menu-social-dot {
  fill: currentColor;
  stroke: none;
}

.menu-divider-bottom {
  margin-top: auto;
  margin-bottom: 53px;
}

.menu-status {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

.menu-status span {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #3ddc5b;
}

.menu-navigation > .menu-label,
.menu-links a,
.menu-email,
.menu-socials,
.menu-status {
  opacity: 0;
  transform: translateY(12px);
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.menu-open .menu-navigation > .menu-label,
body.menu-open .menu-links a,
body.menu-open .menu-email,
body.menu-open .menu-socials,
body.menu-open .menu-status {
  opacity: 1;
  transform: translateY(0);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.menu-open .menu-navigation > .menu-label {
  transition-delay: 150ms;
}

body.menu-open .menu-links a:nth-child(1) {
  transition-delay: 190ms;
}

body.menu-open .menu-links a:nth-child(2) {
  transition-delay: 230ms;
}

body.menu-open .menu-links a:nth-child(3) {
  transition-delay: 270ms;
}

body.menu-open .menu-links a:nth-child(4) {
  transition-delay: 310ms;
}

body.menu-open .menu-email {
  transition-delay: 350ms;
}

body.menu-open .menu-socials {
  transition-delay: 390ms;
}

body.menu-open .menu-status {
  transition-delay: 430ms;
}

.menu-panel .menu-links a:hover {
  opacity: 0.62;
  transform: translate(4px, 0);
  transition: opacity 180ms ease, transform 180ms ease;
  transition-delay: 0s;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(780px, calc(100svh - 58px));
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding-top: 20px;
  padding-bottom: 34px;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
}

.hero-title {
  width: 100%;
  margin: auto 0;
  overflow: hidden;
  font-size: clamp(94px, 20vw, 288px);
  font-weight: 600;
  letter-spacing: -0.105em;
  line-height: 0.83;
}

.title-track {
  display: flex;
  width: max-content;
  animation: title-marquee 24s linear infinite;
}

.title-word {
  display: block;
  flex: none;
  padding-right: 0.14em;
  white-space: nowrap;
}

.title-dash {
  letter-spacing: -0.09em;
}

.hero:hover .title-track {
  animation-play-state: paused;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.52fr);
  gap: 48px;
  align-items: end;
}

.hero-skills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-skill {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #050505;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-skill-bars {
  display: inline-flex;
  flex: none;
  gap: 2px;
  align-items: center;
}

.hero-skill-bars span {
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: #c4c4c4;
}

.hero-skill[data-level="1"] .hero-skill-bars span:nth-child(-n + 1),
.hero-skill[data-level="2"] .hero-skill-bars span:nth-child(-n + 2),
.hero-skill[data-level="3"] .hero-skill-bars span:nth-child(-n + 3) {
  background: #050505;
}

.hero-intro {
  max-width: 430px;
  margin: 0;
  color: #555550;
  font-size: 14px;
  line-height: 1.65;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 120px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.scroll-cue-arrow {
  color: var(--ink);
  font-size: 20px;
  transition: transform 180ms ease;
}

.scroll-cue:hover .scroll-cue-arrow {
  transform: translateY(4px);
}

.projects {
  padding-top: clamp(90px, 13vw, 190px);
  padding-bottom: clamp(84px, 10vw, 144px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2,
.about-label h2 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 88px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.95;
}

.heading-period {
  color: var(--muted);
}

.section-count {
  margin: 0 0 5px;
  color: var(--muted);
}

.section-count span {
  padding: 0 5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: clamp(54px, 7vw, 100px);
}

.project-card {
  display: block;
  min-width: 0;
}

.project-visual {
  position: relative;
  display: grid;
  min-height: clamp(270px, 39vw, 570px);
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  transition: border-radius 350ms ease;
}

.project-card:hover .project-visual {
  border-radius: 4px;
}

.visual-index,
.visual-note {
  position: absolute;
  z-index: 3;
  left: 20px;
  color: currentColor;
}

.visual-index {
  top: 18px;
}

.visual-note {
  bottom: 18px;
}

.visual-action {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.project-card:hover .visual-action {
  transform: rotate(45deg);
  color: var(--ink);
  background: var(--paper);
}

.visual-word {
  z-index: 2;
  font-weight: 700;
  letter-spacing: -0.095em;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .visual-word {
  transform: scale(1.045);
}

.visual-volten {
  color: #f0ede6;
  background:
    linear-gradient(130deg, transparent 0 38%, rgba(233, 66, 49, 0.82) 38.2% 51%, transparent 51.2%),
    linear-gradient(18deg, #171719 0 40%, #303035 40.2% 60%, #131315 60.2%);
}

.visual-volten::before,
.visual-volten::after {
  position: absolute;
  z-index: 1;
  width: 66%;
  height: 36%;
  content: "";
  background: linear-gradient(135deg, #e5e1d8, #999890);
  box-shadow: 14px 22px 35px rgba(0, 0, 0, 0.3);
  transform: rotate(-9deg);
}

.visual-volten::before {
  top: 22%;
  left: 18%;
}

.visual-volten::after {
  right: -8%;
  bottom: 12%;
  width: 48%;
  height: 25%;
  background: linear-gradient(120deg, #222226, #57575b);
  transform: rotate(13deg);
}

.visual-word-volten {
  z-index: 2;
  color: #111;
  font-size: clamp(55px, 9vw, 130px);
  transform: rotate(-9deg);
}

.visual-morgentelmen {
  color: #eee8dc;
  background: radial-gradient(ellipse at 50% 45%, #424139 0, #292822 31%, #141411 72%);
}

.watch-face {
  position: absolute;
  width: 34%;
  aspect-ratio: 0.78;
  border: 12px solid #777060;
  border-radius: 48%;
  background: linear-gradient(145deg, #e8e1cf, #9e967f 45%, #d8d0bd);
  box-shadow: 0 0 0 3px #28261f, 0 24px 65px rgba(0, 0, 0, 0.48);
  transform: rotate(18deg);
}

.watch-face::before,
.watch-face::after {
  position: absolute;
  left: 50%;
  content: "";
  background: #302f29;
  transform-origin: 50% 100%;
}

.watch-face::before {
  top: 21%;
  width: 2px;
  height: 30%;
  transform: rotate(26deg);
}

.watch-face::after {
  top: 20%;
  width: 2px;
  height: 36%;
  transform: rotate(150deg);
}

.watch-face span {
  position: absolute;
  top: 49%;
  left: 49%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #302f29;
}

.visual-word-morgen {
  position: absolute;
  bottom: 25%;
  font-size: clamp(26px, 4.3vw, 62px);
  letter-spacing: -0.08em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.visual-lunar {
  color: #3b1d1b;
  background:
    radial-gradient(circle at 80% 25%, rgba(255, 245, 214, 0.72) 0 9%, transparent 9.2%),
    linear-gradient(145deg, #efa58c, #f8c9a9 48%, #edaa88);
}

.cookie-shape {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border: 12px solid #a6573d;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 23%, #65342d 0 3%, transparent 3.5%),
    radial-gradient(circle at 65% 35%, #65342d 0 4%, transparent 4.5%),
    radial-gradient(circle at 38% 66%, #65342d 0 4%, transparent 4.5%),
    radial-gradient(circle at 72% 72%, #65342d 0 3%, transparent 3.5%),
    #d78a5d;
  box-shadow: 0 16px 50px rgba(81, 40, 32, 0.22);
  transform: rotate(-13deg);
}

.cookie-shape i {
  position: absolute;
  width: 9%;
  height: 12%;
  border-radius: 50%;
  background: #60342b;
}

.cookie-shape i:nth-child(1) { top: 13%; left: 49%; }
.cookie-shape i:nth-child(2) { top: 44%; left: 17%; }
.cookie-shape i:nth-child(3) { top: 75%; left: 49%; }
.cookie-shape i:nth-child(4) { top: 35%; right: 16%; }
.cookie-shape i:nth-child(5) { right: 27%; bottom: 14%; }

.visual-word-lunar {
  position: absolute;
  left: 12%;
  font-size: clamp(54px, 8vw, 116px);
  line-height: 0.72;
}

.visual-codax {
  color: #e7ecea;
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(97, 225, 177, 0.14) 43.2% 43.6%, transparent 43.8%),
    radial-gradient(ellipse at 70% 67%, #23443f 0, #182a28 28%, #131716 70%);
}

.codax-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 16%;
  opacity: 0.4;
  transform: skewY(-18deg);
}

.codax-lines i {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #80e4be, transparent);
}

.codax-lines i:nth-child(2) { width: 72%; margin-left: 15%; }
.codax-lines i:nth-child(3) { width: 88%; margin-left: 4%; }
.codax-lines i:nth-child(4) { width: 58%; margin-left: 26%; }

.visual-word-codax {
  font-family: monospace;
  font-size: clamp(64px, 12vw, 170px);
  letter-spacing: -0.09em;
}

.visual-word-codax span {
  color: #79e1b7;
}

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 17px;
}

.project-caption h3 {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.07em;
}

.project-caption p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-year {
  color: var(--muted);
  text-align: right;
}

.project-description {
  max-width: 560px;
  margin: 14px 0 0;
  color: #5f5f5a;
  font-size: 13px;
  line-height: 1.7;
}

.about {
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: clamp(90px, 12vw, 170px);
  border-top: 1px solid var(--line);
}

.service-marquee {
  position: relative;
  width: calc(100% + var(--gutter) * 2);
  height: 280px;
  margin: 0 calc(var(--gutter) * -1) clamp(80px, 11vw, 160px);
  overflow: hidden;
  touch-action: pan-y;
}

.service-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-tag-list + .service-tag-list {
  display: none;
}

.service-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 14px 24px;
  border-radius: 40px;
  background: #e6e6e6;
  color: #050505;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  visibility: hidden;
  cursor: grab;
  transform-origin: center;
}

.service-marquee.is-active .service-tag {
  visibility: visible;
}

.service-marquee.is-dragging .service-tag {
  cursor: grabbing;
}

@media (max-width: 809px) {
  .service-marquee {
    height: 52px;
  }

  .service-track {
    position: relative;
    inset: auto;
    display: flex;
    width: max-content;
    height: 100%;
    animation: services-marquee 30s linear infinite;
    will-change: transform;
  }

  .service-tag-list,
  .service-tag-list + .service-tag-list {
    position: relative;
    display: flex;
    width: max-content;
    height: 100%;
    flex: none;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
  }

  .service-tag {
    position: static;
    flex: none;
    padding: 10px 16px;
    border: 0;
    font-size: 16px;
    visibility: visible;
    cursor: default;
    transform: none;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(28px, 6vw, 88px);
}

.about-label .eyebrow {
  margin-bottom: 18px;
}

.about-label h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.about-copy {
  max-width: 650px;
}

.about-copy p {
  margin: 0;
  color: #5f5f5a;
  font-size: 15px;
  line-height: 1.85;
}

.about-copy .about-lead {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
}

.text-link span,
.contact-details span,
.footer-connect span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.contact-details a:hover span,
.footer-connect a:hover span {
  transform: translate(2px, -2px);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 30px;
  padding-top: 2px;
}

.stat {
  position: relative;
  width: fit-content;
}

.stat-number,
.stat-plus {
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.stat-plus {
  color: var(--muted);
}

.stat p {
  margin: 9px 0 0;
  color: var(--muted);
}

.contact {
  padding-top: clamp(55px, 8vw, 115px);
  padding-bottom: clamp(55px, 8vw, 115px);
  border-top: 1px solid var(--line);
}

.contact > .eyebrow {
  margin-bottom: 20px;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.contact-copy {
  font-size: clamp(40px, 9.2vw, 132px);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.95;
  transition: letter-spacing 250ms ease;
}

.contact-link:hover .contact-copy {
  letter-spacing: -0.105em;
}

.contact-arrow {
  flex: none;
  padding-bottom: 3px;
  font-size: clamp(32px, 5vw, 66px);
  transition: transform 220ms ease;
}

.contact-link:hover .contact-arrow {
  transform: translate(7px, -7px);
}

.contact-details {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.contact-details a {
  display: inline-flex;
  gap: 8px;
}

.site-footer {
  padding-top: 36px;
  padding-bottom: 18px;
  background: #eaeae8;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: clamp(52px, 8vw, 110px);
}

.footer-wordmark {
  display: inline-block;
  font-size: 18px;
}

.footer-intro p {
  margin: 16px 0 0;
  color: #5f5f5a;
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav,
.footer-connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-nav .eyebrow,
.footer-connect .eyebrow {
  margin: 0 0 5px;
}

.footer-nav a,
.footer-connect a {
  font-size: 14px;
  transition: opacity 180ms ease;
}

.footer-nav a:hover,
.footer-connect a:hover {
  opacity: 0.55;
}

.footer-connect a {
  display: inline-flex;
  gap: 7px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--ink);
}

@property --cursor-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.custom-cursor-dot,
.custom-cursor-pill {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  will-change: transform;
  transition:
    opacity 180ms ease,
    --cursor-scale 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-cursor-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  --cursor-scale: 1;
  transform:
    translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0)
    translate(-50%, -50%)
    scale(var(--cursor-scale));
}

.custom-cursor-pill {
  display: inline-flex;
  height: 40px;
  align-items: center;
  padding: 0 20px;
  border-radius: 40px;
  background: #fff;
  color: #000;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  --cursor-scale: 0.6;
  transform:
    translate3d(var(--cursor-x, -100px), var(--cursor-y, -100px), 0)
    translate(-50%, -50%)
    scale(var(--cursor-scale));
  transition:
    opacity 180ms ease,
    --cursor-scale 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.custom-cursor-visible .custom-cursor-dot {
  opacity: 1;
}

body.custom-cursor-view .custom-cursor-dot {
  opacity: 0;
  --cursor-scale: 0;
}

body.custom-cursor-view .custom-cursor-pill {
  opacity: 1;
  --cursor-scale: 1;
}

body.custom-cursor-hover:not(.custom-cursor-view) .custom-cursor-dot {
  --cursor-scale: 2;
}

body.custom-cursor-over-physics .custom-cursor-dot,
body.custom-cursor-over-physics .custom-cursor-pill {
  opacity: 0;
  --cursor-scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor-dot,
  .custom-cursor-pill {
    transition:
      opacity 80ms linear,
      --cursor-scale 0s;
  }
}

@keyframes title-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes services-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: min(20vw, 288px);
  }

  .project-grid {
    column-gap: 18px;
  }
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 0.8fr 1.4fr;
  }

  .stats {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    grid-template-columns: 1fr 1fr;
    min-height: 50px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-local-time {
    display: none;
  }

  .header-role {
    display: none;
  }

  .hero {
    min-height: min(720px, calc(100svh - 50px));
    padding-top: 16px;
    padding-bottom: 30px;
  }

  .hero-topline .eyebrow {
    font-size: 9px;
  }

  .hero-topline .eyebrow:last-child {
    text-align: right;
  }

  .hero-title {
    margin: auto 0 40px;
    font-size: clamp(76px, 19vw, 120px);
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .hero-intro {
    max-width: 360px;
    font-size: 13px;
  }

  .scroll-cue {
    right: var(--gutter);
    bottom: auto;
    top: 47%;
  }

  .scroll-cue > span:first-child {
    display: none;
  }

  .projects {
    padding-top: 86px;
    padding-bottom: 90px;
  }

  .section-heading {
    align-items: end;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(40px, 10vw, 58px);
  }

  .section-heading .eyebrow {
    font-size: 10px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    row-gap: 46px;
  }

  .project-visual {
    min-height: min(118vw, 440px);
  }

  .visual-word-volten {
    font-size: clamp(68px, 19vw, 112px);
  }

  .visual-word-morgen {
    font-size: clamp(35px, 9vw, 52px);
  }

  .visual-word-lunar {
    font-size: clamp(66px, 19vw, 108px);
  }

  .visual-word-codax {
    font-size: clamp(75px, 22vw, 126px);
  }

  .project-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .project-year {
    text-align: left;
  }

  .project-description {
    margin-top: 10px;
    font-size: 12px;
  }

  .about {
    padding-bottom: 86px;
  }

  .service-marquee {
    margin-bottom: 76px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-label h2 {
    font-size: 43px;
  }

  .about-copy .about-lead {
    font-size: 19px;
  }

  .about-copy p {
    font-size: 13px;
  }

  .stats {
    grid-column: auto;
    gap: 20px;
    margin-top: 12px;
  }

  .stat-number,
  .stat-plus {
    font-size: 48px;
  }

  .contact-copy {
    font-size: clamp(37px, 10vw, 55px);
  }

  .contact-details {
    font-size: 11px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .menu-panel {
    width: 100%;
    min-width: 0;
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 700px) {
  .menu-backdrop-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-backdrop,
  .menu-backdrop-text,
  .menu-panel {
    transition-delay: 0s !important;
  }

  .menu-panel {
    transform: translate3d(0, 0, 0);
  }

  .menu-backdrop-text {
    transform: translate3d(0, -50%, 0);
  }

  .menu-navigation > .menu-label,
  .menu-links a,
  .menu-email,
  .menu-socials,
  .menu-status {
    transform: none;
    transition-delay: 0s !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PHASE 1 — FOUNDATION
   Additive only: no declaration above this line was modified.
   New tokens, layout utility, buttons, brand mark, focus states, dark band
   and a screen-reader utility. These classes are consumed from Phase 2.
   ========================================================================== */

/* --- Tokens ---------------------------------------------------------------
   Cobalt is a UI accent only. Never set small cobalt text on --ink: contrast
   there is 3.5:1, which is only valid for large text and non-text elements.
   On --paper it reaches 5.4:1 and is safe for body-size text.
   -------------------------------------------------------------------------- */
:root {
  --accent: #2b4cff;
  --accent-strong: #1e3bd6;
  --accent-ink: #ffffff;
  --accent-wash: rgba(43, 76, 255, 0.08);

  --surface-raised: #ffffff;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;

  --focus-width: 2px;
  --focus-offset: 3px;
  --focus-color: var(--accent);
  --focus-color-ink: var(--paper);
}

/* --- Layout --------------------------------------------------------------- */
/* The existing full-width gutter system (.section-shell + --gutter) stays
   authoritative. No container max-width is introduced. */

/* --- Buttons --------------------------------------------------------------
   Pill shape echoes the existing service tags. Sizes are touch-safe:
   default 44px, compact 40px.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-fast) ease;
}

.btn:hover {
  border-color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.btn--sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 12px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* --- Brand mark -----------------------------------------------------------
   Markup (Phase 2):
   <span class="brand-mark" aria-hidden="true"><i></i>… nine squares</span>
   with exactly one <i class="is-accent">.
   -------------------------------------------------------------------------- */
.brand-mark {
  display: inline-grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 2px;
  flex: none;
}

.brand-mark i {
  display: block;
  background: currentColor;
}

.brand-mark i.is-accent {
  background: var(--accent);
}

/* --- Focus states ---------------------------------------------------------
   The only Phase 1 rule that affects existing elements: it replaces the
   default browser outline with a visible accent ring. Layout, colours, menu
   animation and project visuals are untouched.
   -------------------------------------------------------------------------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* --- Dark band ------------------------------------------------------------
   Used for the contact block. Text stays paper; cobalt is never used as
   small type on ink. Focus rings switch to paper for contrast.
   -------------------------------------------------------------------------- */
.band-ink {
  background: var(--ink);
  color: var(--paper);
}

.band-ink .eyebrow,
.band-ink .section-count {
  color: rgba(245, 245, 245, 0.62);
}

.band-ink :where(a, button):focus-visible {
  outline-color: var(--focus-color-ink);
}

.band-ink .btn {
  border-color: rgba(245, 245, 245, 0.28);
  color: var(--paper);
}

.band-ink .btn:hover {
  border-color: var(--paper);
}

/* --- Utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PHASE 3 — LAYOUT & COMPONENTS
   Styling for the sections added in Phase 2. Additive apart from one value on
   .about-content. Project visuals, the burger menu design and every existing
   animation are untouched.
   ========================================================================== */

/* --- Skip link ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transform: translateY(calc(-100% - 16px));
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --- Hero ----------------------------------------------------------------- */
.hero-statement {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-bottom {
  margin-top: clamp(24px, 3.5vw, 44px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* --- Services ------------------------------------------------------------- */
.services {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
}

.services-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-item {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}

.service-index,
.process-index {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.service-item h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

/* --- Process -------------------------------------------------------------- */
.process {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.process-step h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.process-step p {
  max-width: 34ch;
  margin: 0;
  color: #5f5f5a;
  font-size: 13px;
  line-height: 1.7;
}

/* --- Metrics -------------------------------------------------------------- */
.metrics {
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

/* --- Brand mark inside the wordmark --------------------------------------- */
.wordmark {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

/* --- Contact band --------------------------------------------------------- */
.band-ink .contact-link {
  border-bottom-color: var(--paper);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: clamp(20px, 2.4vw, 30px);
}

.contact-links,
.footer-connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* --- Link buttons (Phase 4 contract) --------------------------------------
   Phase 4 renders, from SITE_LINKS:
     <a class="btn btn--sm link-btn" href="…" target="_blank"
        rel="noopener noreferrer">
       <svg aria-hidden="true">…</svg><span>GitHub</span>
     </a>
   Empty values are not rendered at all. On the dark band the Phase 1
   .band-ink .btn rules already supply the paper border and text colour.
   -------------------------------------------------------------------------- */
.link-btn {
  gap: 8px;
  padding-right: 18px;
  padding-left: 16px;
}

.link-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Menu: fifth link stagger ---------------------------------------------
   Continues the existing 40ms pattern (190, 230, 270, 310, 350).
   -------------------------------------------------------------------------- */
body.menu-open .menu-links a:nth-child(5) {
  transition-delay: 350ms;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-statement {
    font-size: clamp(22px, 7vw, 30px);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    gap: 8px;
  }
}

/* ==========================================================================
   PHASE 5 — CASE STUDIES
   Compact project pages. Reuses .project-visual and its existing artwork
   classes; no new artwork, colours or content.
   ========================================================================== */

.case-study {
  padding-top: clamp(18px, 2.4vw, 32px);
  padding-bottom: clamp(64px, 9vw, 128px);
}

.case-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  transition: color 180ms ease, border-color 180ms ease;
}

.case-back:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.case-header {
  margin-top: clamp(26px, 4vw, 54px);
}

.case-header h1 {
  margin: 8px 0 0;
  font-size: clamp(40px, 8vw, 112px);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.case-category {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  color: var(--muted);
  font-size: 13px;
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(22px, 3vw, 40px);
  padding-top: clamp(22px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.case-grid .project-visual {
  min-height: clamp(300px, 37vw, 520px);
}

.case-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.case-lead {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.45;
}

.case-highlights {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(20px, 2.6vw, 32px);
  border-top: 1px solid var(--line);
}

.case-highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-highlight {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.case-highlight-index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.case-highlight h3 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(36px, 5vw, 64px);
}

.case-study [hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-grid .project-visual {
    min-height: clamp(280px, 52vw, 460px);
  }

  .case-highlight-list {
    grid-template-columns: 1fr;
  }
}
