:root { color-scheme: dark; --paper: #30373a; --ink: #ece5d8; --line: #ece5d840; --focus: #b9e1eb; --gutter-hover: #45433c; --gutter: clamp(20px, 4vw, 64px); }
* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; }
body { margin: 0; height: 100svh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: 90px minmax(0, 1fr) 90px; background: var(--paper); color: var(--ink); font-family: "EB Garamond", Georgia, serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
header { height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font: 19px "Cinzel", Georgia, serif; letter-spacing: -.04em; }
.wordmark small { display: block; margin-top: 5px; font: 10px Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
nav { display: flex; gap: 32px; font: 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: .09em; }
nav sup { margin-left: 8px; }
nav a:hover, .bottom a:hover { text-decoration: underline; text-underline-offset: 5px; }
.card-track { display: grid; align-self: center; align-items: center; justify-items: center; min-height: 0; width: 100%; max-height: 100%; overflow: hidden; overscroll-behavior: none; padding: 8px 0 16px; touch-action: pan-y; }
.card { grid-area: 1 / 1; width: min(86vw, 780px, calc(120svh - 300px)); width: min(86vw, 780px, calc(120dvh - 300px)); min-width: 0; display: flex; flex-direction: column; transform: translateX(94%) scale(.82); opacity: 1; z-index: 1; cursor: pointer; transition: transform .65s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.card.is-previous { transform: translateX(-94%) scale(.82); }
.card.is-next { transform: translateX(94%) scale(.82); }
.card.is-active { transform: translateX(0) scale(1); opacity: 1; z-index: 2; cursor: auto; }
.tab { width: max-content; max-width: 100%; padding: 13px 24px 11px; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 16px 0 0; font: 10px Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; position: relative; top: 1px; z-index: 1; }
.surface { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 24px clamp(22px, 3vw, 48px) 18px; min-height: 0; height: auto; aspect-ratio: 6 / 5; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; box-shadow: 3px 8px 24px #10191d30; }
.surface > * { flex-shrink: 0; }
.intro, .project { --ink: #302f28; --line: #302f2840; --focus: #766047; color: var(--ink); color-scheme: light; }
.intro { --card: #b8b5b0; --ink: #292827; --line: #29282740; font-family: "Open Sans", Arial, sans-serif; }
.intro .meta, .intro h1, .intro h2, .intro em { font-family: inherit; }
.project { --card: #c5bdac; }
.about { --card: #dedbd2; }
.meta, .bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 10px Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.meta { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.intro-content { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-block: 24px; }
.intro-heading { min-width: 0; }
.intro-heading h1 { margin-bottom: 0; font-size: clamp(26px, 2.8vw, 38px); }
.intro-heading h1 em { display: block; }
.intro .surface { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-block: 18px 20px; }
.intro .intro-image { flex: none; min-height: 0; width: 100%; height: calc(100% - 10px); justify-self: center; align-self: center; aspect-ratio: auto; }
.intro .intro-image { background: transparent; }
.intro .intro-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; transform: none; }
.intro-profile { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, .85fr); align-content: start; align-items: start; column-gap: 28px; row-gap: 10px; padding-top: 40px; }
.intro-skills { grid-column: 2; grid-row: 1; min-width: 0; align-self: start; margin-top: -12px; }
.intro-skills-title { margin: -2px 0 8px; font: 400 clamp(11px, 1.15vw, 12px)/1.3 "Open Sans", Arial, sans-serif; }
.intro-profile .skill-logos { flex-direction: row; flex-wrap: wrap; padding: 0; }
.intro-profile .skill-logos { gap: 6px; }
.intro-profile .skill-logo { width: 28px; height: 28px; }
.intro-profile .skill-logo img { width: 18px; height: 18px; }
.intro-contact { margin: 10px 0 0; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.intro-contact-title { margin: 0 0 6px; position: relative; top: 4px; font-size: 12px; line-height: 1.3; font-weight: 400; }
.intro-contact a { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; transition: background .2s; }
.intro-contact a:hover { background: #302f2810; }
.intro-contact svg { display: block; width: 18px; height: 18px; }
.intro-bio { grid-column: 1; grid-row: 1; margin: -12px 0 0; max-width: none; font-size: clamp(11px, 1.15vw, 12px); line-height: 1.3; text-align: left; }
.intro-bio p { margin: 0; }
.intro-bio p + p { margin-top: .7em; }
.skill-logos { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 0 16px; }
.skill-logo { display: grid; place-items: center; width: 34px; height: 34px; background: var(--paper); border: 1px solid #ece5d840; border-radius: 4px; }
.skill-logos img { display: block; width: 22px; height: 22px; object-fit: contain; }
.eyebrow { margin: 0 0 16px; font: 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 24px; font: 400 clamp(42px, 5.6vw, 88px)/1.04 "Cinzel", Georgia, serif; letter-spacing: -.055em; }
em { font-family: "EB Garamond", Georgia, serif; font-weight: 400; }
.intro-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.intro-bottom p { margin-bottom: 0; font-size: 14px; line-height: 1.35; }
.intro-bottom .round { width: 44px; height: 44px; }
.round { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 32px; flex-shrink: 0; transition: background .2s, transform .2s; }
.round:hover { background: #dedbd2; transform: translateX(4px); }
.project-image { display: block; flex: 1; min-height: 160px; overflow: hidden; position: relative; margin-top: 10px; background: #77786e; }
.project-image img { width: 100%; height: 132%; position: absolute; inset: 0; object-fit: cover; object-position: center top; transform-origin: center top; transition: transform .6s; }
.project-image:hover img { transform: scale(1.035); }
.intro .intro-image:hover img { transform: none; }
.project a.project-image { cursor: pointer; }
.project a.project-image img { transition: transform .6s, filter .25s; }
.project.is-active a.project-image:hover img,
.project.is-active a.project-image:focus-visible img { filter: blur(5px); }
.project a.project-image::after {
  content: "Click to see more";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 0;
  color: var(--card);
  font: 400 clamp(15px, 1.8vw, 20px)/1.5 "EB Garamond", Georgia, serif;
  letter-spacing: .09em;
  text-align: center;
  text-shadow: 0 1px 8px #0008;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 6px));
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
#projekt-03 a.project-image::after,
#projekt-04 a.project-image::after { color: var(--ink); }
#projekt-02 a.project-image::after { color: #08759b; text-shadow: 0 1px 6px #ffffff80; }
.project.is-active a.project-image:hover::after,
.project.is-active a.project-image:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}
@media (hover: none) {
  .project.is-active a.project-image::after { opacity: 1; transform: translate(-50%, -50%); }
}
.project-text { --card: #ddd2c2; }
#projekt-03 { --focus: #ece5d8; --card: #202323; --ink: #ece5d8; --line: #ece5d840; color: var(--ink); color-scheme: dark; }
#projekt-03 { font-family: "Rajdhani", Arial, sans-serif; font-weight: 500; }
#projekt-03 .tab, #projekt-03 .meta, #projekt-03 .project-details dt { font-family: inherit; }
#projekt-03 .description h2 { font-family: "Orbitron", Arial, sans-serif; font-weight: 500; letter-spacing: .02em; }
#projekt-03 .project-image { background: #30373a; }
#projekt-02 { --focus: #2e98bd; --card: #d5eef4; --ink: #10191d; --line: #10191d40; color: var(--ink); }
#projekt-02 { font-family: "Roboto Condensed", Arial, sans-serif; }
#projekt-02 .tab, #projekt-02 .meta, #projekt-02 .description h2, #projekt-02 .project-details dt { font-family: inherit; }
#projekt-02 .description h2 { font-weight: 700; letter-spacing: -.02em; }
#projekt-02 .project-image { background: #b9e1eb; }
#projekt-02 .project-image img { width: auto; height: 200%; left: 50%; right: auto; object-fit: contain; object-position: center top; padding: 0; transform: translateX(-50%); transform-origin: center top; }
#projekt-02 .project-image:hover img { transform: translateX(-50%) scale(1.035); }
.project-space { flex: 1; min-height: 160px; margin-top: 10px; }
.project-image span { position: absolute; right: 14px; bottom: 14px; background: var(--paper); padding: 12px 16px; font: 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.description { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 25px 0; }
.description .eyebrow { margin-bottom: 7px; }
#projekt .eyebrow { white-space: nowrap; }
.description h2 { font: 400 clamp(32px, 4vw, 60px)/1.1 "Cinzel", Georgia, serif; letter-spacing: -.05em; margin: 0; }
.description > p { font-size: 19px; line-height: 1.35; max-width: 33ch; margin: 0; }
.project-details div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
.about-content { margin-block: auto; padding-block: 28px; }
.about-content h2 { font: 400 clamp(40px, 5vw, 76px)/1.05 "Cinzel", Georgia, serif; letter-spacing: -.045em; margin-bottom: 22px; }
.about-copy { max-width: 49ch; font-size: 21px; line-height: 1.4; }
dl { margin: 28px 0 0; } dl div { display: flex; gap: 22px; border-top: 1px solid var(--line); padding: 10px 0; align-items: center; } dt { font: 10px Arial, sans-serif; } dd { margin: 0; font-size: 19px; }
.project .surface { display: grid; grid-template-rows: auto minmax(140px, 1fr) auto; padding-block: 18px 8px; }
.project .project-image { min-height: 0; }
.project .surface { grid-template-rows: auto auto minmax(0, 1fr); }
.project .project-image { width: 100%; aspect-ratio: 2 / 1; align-self: start; }
.project .project-image img { height: 100%; object-position: center; }
.project .description { grid-template-columns: minmax(0, .85fr) minmax(0, 1.8fr); align-items: end; gap: 28px; margin: 0; padding-block: 28px 0; }
#projekt .description { padding-top: 8px; }
.project .description h2 { font-size: clamp(26px, 2.4vw, 34px); overflow-wrap: anywhere; }
#projekt .description h2 { font-size: clamp(22px, 2vw, 28px); white-space: nowrap; position: relative; top: -5px; }
#projekt-02 .description h2 { font-size: clamp(18px, 1.8vw, 24px); margin-top: 18px; white-space: nowrap; position: relative; top: -5px; }
#projekt-03 .description h2 { font-size: clamp(22px, 2vw, 28px); white-space: nowrap; position: relative; top: -5px; }
.project .description > div { align-self: start; }
.project .description > p { align-self: center; text-align: left; max-width: none; font-size: 14px; line-height: 1.25; }
.project .project-details { margin-top: 10px; }
.project .project-details div { padding-block: 5px; gap: 10px; }
.project .project-details dd { font-size: 14px; line-height: 1.2; }
#projekt .project-details, #projekt-02 .project-details { position: relative; top: -5px; }
#projekt .project-details div { grid-template-columns: 60px minmax(0, 1fr); padding-block: 4px; gap: 8px; }
#projekt .project-details dt { font-size: 9px; }
#projekt .project-details dd { font-size: 12px; }
#projekt-02 .description { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.35fr); gap: 20px; transform: translateY(-12px); }
#projekt-02 .project-details div { grid-template-columns: 52px minmax(0, 1fr); padding-block: 3px; gap: 6px; align-items: start; }
#projekt-02 .project-details dt { font-size: 9px; line-height: 1.3; }
#projekt-02 .project-details dd { min-width: 0; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
#projekt-03 .project-details { position: relative; top: -5px; }
#projekt-03 .project-details div { grid-template-columns: 52px minmax(0, 1fr); padding-block: 3px; gap: 6px; align-items: start; }
#projekt-03 .project-details dt { font-size: 9px; line-height: 1.3; }
#projekt-03 .project-details dd { min-width: 0; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.project .bottom { padding-top: 12px; }
footer { padding: 14px var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; font: 10px Arial, sans-serif; letter-spacing: .06em; }
footer .indicator { justify-self: center; }
footer .controls { justify-self: end; }
footer p { margin: 0; } .indicator { display: flex; align-items: center; gap: 12px; } .line { display: block; width: 100px; height: 1px; background: var(--line); } #progress { display: block; width: 33.333%; height: 2px; background: var(--ink); }
.controls { display: flex; gap: 8px; } .controls button { border: 1px solid var(--line); border-radius: 50%; background: transparent; width: 36px; height: 36px; cursor: pointer; font-size: 20px; } .controls button:hover:not(:disabled) { background: var(--gutter-hover); } .controls button:disabled { opacity: .3; cursor: default; }
@media (max-width: 700px) {
  header { height: 90px; } .wordmark { font-size: 16px; } nav { gap: 18px; font-size: 10px; } nav sup { display: none; }
  .surface { padding: 20px; }
  .meta { font-size: 8px; letter-spacing: .04em; } .tab { font-size: 9px; padding-inline: 18px; }
  h1 { font-size: clamp(36px, 8.8vw, 60px); } .intro-bottom { align-items: center; } .intro-bottom br { display: none; } .round { width: 44px; height: 44px; }
  .intro-content { grid-template-columns: 1fr; gap: 16px; padding-block: 20px; }
  .intro-heading h1 { font-size: clamp(26px, 7vw, 38px); }
  .intro-profile { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .intro-bio { grid-column: 1; grid-row: 1; margin-top: -12px; }
  .intro-skills { grid-column: 1; grid-row: 2; align-self: start; }
  .description { grid-template-columns: 1fr; gap: 14px; padding-block: 20px; } .description > p { font-size: 18px; }
  .project .description, #projekt-02 .description { grid-template-columns: 1fr; gap: 16px; }
  .project .description > p { font-size: 14px; }
  .project .project-details { margin-top: 12px; }
  .about-content h2 { font-size: 36px; } .about-copy { font-size: 19px; } .bottom { font-size: 8px; }
  footer p { max-width: 120px; line-height: 1.6; } .line { width: 40px; } footer { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { html, body { height: auto; overflow: visible; display: block; } .card-track { display: block; overflow: visible; max-height: none; } .card { width: 100%; transform: none !important; opacity: 1; break-inside: avoid; margin-bottom: 24px; } .surface { height: auto; min-height: 650px; overflow: visible; } footer { display: none; } }

#projekt-04 { --focus: #ead384; --card: #2d4f45; --ink: #ead384; --line: #ead38440; color: var(--ink); font-family: "Favorit", Arial, sans-serif; }
#projekt-04 .project-image { background: #2d4f45; }
#projekt-04 .project-image img { object-fit: cover; object-position: center top; transform: none; transform-origin: center top; }
#projekt-04 .project-image:hover img { transform: scale(1.035); }
#projekt-04 .description { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.35fr); gap: 20px; }
#projekt-04 .description h2 { font-size: clamp(14px, 2.5vw, 22px); white-space: nowrap; overflow-wrap: normal; }
#projekt-04 .project-details div { grid-template-columns: 52px minmax(0, 1fr); padding-block: 3px; gap: 6px; align-items: start; }
#projekt-04 .project-details dt { font-size: 9px; line-height: 1.3; }
#projekt-04 .project-details dd { min-width: 0; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  #projekt-04 .description { grid-template-columns: 1fr; gap: 16px; }
}

#projekt-04 .meta, #projekt-04 .description h2, #projekt-04 .project-details dt { font-family: inherit; }

@media (min-width: 701px) {
  .project .description, #projekt-02 .description, #projekt-04 .description { row-gap: 10px; align-items: start; }
  .project .description > div { display: contents; }
  .project .project-heading { grid-column: 1; grid-row: 1; }
  .project .description .project-details { grid-column: 1; grid-row: 2; margin-top: 0; position: static; }
  #projekt .project-details, #projekt-02 .project-details, #projekt-03 .project-details, #projekt-04 .project-details { margin-top: 0; position: static; top: auto; }
  .project .description > p { grid-column: 2; grid-row: 2; align-self: start; margin-top: -3px; }
}
