﻿:root {
  --paper: #f7f4ed;
  --ink: #102235;
  --muted: #64645f;
  --line: rgba(22, 23, 22, 0.14);
  --teal: #1f6863;
  --amber: #b27639;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

main [tabindex="-1"]:focus {
  outline: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 237, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: transparent;
  font-size: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark::before,
.brand-mark::after {
  font-size: 0.98rem;
  line-height: 1;
}

.brand-mark::before {
  color: var(--paper);
  content: "M";
}

.brand-mark::after {
  color: var(--amber);
  content: "F";
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding-bottom: 8px;
  transition: color 180ms ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--amber);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.header-actions {
  gap: clamp(16px, 3vw, 34px);
}

.language-switch {
  gap: 8px;
  padding-left: clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--line);
}

.floating-language-switch {
  display: none;
}

.language-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: transform 180ms ease;
}

.language-link:hover,
.language-link:focus-visible {
  transform: translateY(-2px);
}

.language-link.is-active::after {
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 2px;
  background: var(--amber);
  content: "";
}

.flag {
  display: block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 34, 53, 0.16);
}

.flag-de {
  background: linear-gradient(to bottom, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}

.flag-us {
  background:
    linear-gradient(#3c3b6e 0 0) 0 0 / 40% 54% no-repeat,
    repeating-linear-gradient(to bottom, #b22234 0 7.69%, #fff 7.69% 15.38%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav a:focus-visible::after,
.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--amber);
}

@media (hover: hover) {
  .nav a:hover,
  .site-footer a:hover {
    color: var(--amber);
  }

  .nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 140px clamp(20px, 5vw, 72px) 72px;
  background: #111;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 12, 12, 0.82), rgba(10, 12, 12, 0.42) 48%, rgba(10, 12, 12, 0.12)),
    linear-gradient(0deg, rgba(10, 12, 12, 0.7), transparent 54%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7.5vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 > span {
  display: block;
  margin-left: -0.04em;
}

.hero-domain {
  display: inline-block;
  margin-left: 0.16em;
  color: var(--amber);
  font-size: 0.24em;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  vertical-align: baseline;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 42px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
  transform: translateY(-2px);
}

.intro,
.skills,
.projects,
.contact {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.intro {
  align-items: start;
}

.intro-copy {
  margin-top: calc(0.78rem * 1.5 + 34px);
}

.intro p:not(.section-kicker) {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.2vw, 1.18rem);
}

.project-details p {
  color: var(--muted);
  font-size: 1rem;
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.intro-copy p {
  margin: 0;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.section-heading {
  display: grid;
  margin-bottom: 34px;
}

.section-heading.align-right {
  justify-items: end;
  text-align: right;
}

.section-heading.align-left {
  justify-items: start;
  text-align: left;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-layout {
  display: grid;
  gap: clamp(22px, 4vw, 38px);
}

.skill-block {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.skill-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.2;
}

.skills-tags {
  justify-content: flex-start;
  max-width: none;
  margin-left: 0;
}

.skills-tags-core span {
  min-height: 52px;
  padding: 12px 18px;
  border-color: rgba(178, 118, 57, 0.36);
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 800;
  background: rgba(178, 118, 57, 0.06);
}

.skills-tags-systems span {
  align-items: center;
  min-height: 0;
  height: 16px;
  padding: 0 5px;
  border-color: rgba(16, 34, 53, 0.08);
  background: rgba(16, 34, 53, 0.025);
  color: rgba(100, 100, 95, 0.88);
  font-size: 0.5rem;
  font-weight: 560;
  line-height: 1;
}

.skills-tags-systems {
  gap: 8px;
}

.skill-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 28px);
}

.skill-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-columns li {
  position: relative;
  padding: 7px 0 7px 14px;
  border-bottom: 1px solid rgba(16, 34, 53, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.skill-columns li::before {
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(16, 34, 53, 0.16);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tag-list span:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
  transform: translateY(-2px);
}

.tag-list.skills-tags-systems span {
  min-height: 0;
  height: auto;
  padding: 5px 10px;
  border-color: rgba(16, 34, 53, 0.14);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.25;
}

.tag-list.skills-tags-systems span:hover {
  background: transparent;
  border-color: rgba(16, 34, 53, 0.22);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(16, 34, 53, 0.06);
  transform: translateY(-1px);
}

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

.project-item {
  display: grid;
  grid-template-columns: 48px minmax(280px, 1fr);
  gap: 12px clamp(12px, 2vw, 24px);
  align-items: start;
  padding: clamp(18px, 2.5vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}

.project-item-main {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(280px, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}

.project-number {
  color: var(--amber);
  font-weight: 800;
}

.project-item h3 {
  margin: 0;
  font-size: clamp(1.22rem, 2.4vw, 1.8rem);
  line-height: 1.08;
}

.project-title-row {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(220px, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
  align-items: start;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(16, 34, 53, 0.14);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-details {
  grid-column: 2;
  color: var(--muted);
}

.project-details p {
  margin: 4px 0 0;
  max-width: 100%;
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-link::after {
  margin-left: 8px;
  color: var(--amber);
  content: ">";
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--amber);
}

.project-link:hover::after,
.project-link:focus-visible::after {
  color: var(--ink);
}

.case-study-page {
  background: var(--paper);
}

.case-study-hero {
  padding: 150px clamp(20px, 5vw, 72px) clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}

.case-study-hero-inner {
  width: min(980px, 100%);
}

.case-study-hero h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 6.4rem);
}

.case-study-copy {
  width: min(760px, 100%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.case-study-content {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 110px);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.case-study-meta {
  display: grid;
  align-content: start;
  gap: 20px;
  color: var(--muted);
}

.case-study-meta a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.case-study-meta a::before {
  margin-right: 8px;
  color: var(--amber);
  content: "<";
}

.case-study-meta a:hover,
.case-study-meta a:focus-visible {
  color: var(--amber);
}

.case-study-meta a:hover::before,
.case-study-meta a:focus-visible::before {
  color: var(--ink);
}

.case-study-body {
  display: grid;
  gap: 34px;
}

.case-study-body section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.case-study-body h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.case-study-body p,
.case-study-body li {
  color: var(--muted);
  font-size: 1.02rem;
}

.case-study-body ul {
  margin: 0;
  padding-left: 20px;
}

.case-study-body li + li {
  margin-top: 10px;
}

.contact {
  background: var(--ink);
  color: var(--paper);
}

.contact-content {
  display: grid;
  gap: 22px;
  align-self: start;
  justify-items: start;
  margin-top: clamp(44px, 4vw, 64px);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--amber);
  color: rgba(247, 244, 237, 0.86);
  font-size: 1.08rem;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  color: var(--amber);
  transform: translateX(2px);
}

.contact-action-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
  filter: none;
  opacity: 1;
  object-fit: contain;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.92rem;
}

.scroll-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 18px 40px rgba(16, 34, 53, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--amber);
  color: var(--paper);
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .site-header {
    position: fixed;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    gap: 10px;
    padding: 12px clamp(14px, 4vw, 20px);
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    font-size: 0.94rem;
  }

  .nav a {
    padding-bottom: 6px;
  }

  .header-actions {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 12px;
  }

  .site-header .language-switch {
    display: none;
  }

  .language-link {
    width: 28px;
    height: 28px;
  }

  .flag {
    width: 19px;
    height: 13px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 142px;
  }

  .scroll-top {
    right: 16px;
    bottom: 68px;
    z-index: 60;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .floating-language-switch {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(247, 244, 237, 0.9);
    box-shadow: 0 10px 26px rgba(16, 34, 53, 0.16);
    backdrop-filter: blur(14px);
  }

  .intro,
  .contact,
  .case-study-content {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    margin-top: 0;
  }

  .skills-tags {
    gap: 6px;
  }

  .skills-tags span {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.78rem;
  }

  .skill-block {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 20px;
  }

  .skills-tags-core span {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 0.84rem;
    line-height: 1.18;
  }

  .skill-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tag-list.skills-tags-systems span,
  .skill-columns li {
    font-size: 0.82rem;
  }

  .section-heading.align-right,
  .section-heading.align-left {
    justify-items: start;
    text-align: left;
  }

  .project-item {
    display: flex;
    flex-direction: column;
  }

  .project-item-main,
  .project-title-row {
    display: contents;
  }

  .project-number {
    order: 1;
  }

  .project-title-row h3 {
    order: 2;
  }

  .project-details {
    display: contents;
    grid-column: auto;
  }

  .project-details p {
    order: 3;
  }

  .project-tags {
    order: 4;
    padding-top: 2px;
  }

  .project-link {
    order: 5;
  }

  .contact-content {
    width: 100%;
    margin-top: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}



