:root {
  color-scheme: light;
  --ink: #1e251f;
  --muted: #5f6b63;
  --wallpaper: #dbe6dc;
  --line: rgba(44, 60, 48, .12);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 22px;
  display: flex;
  justify-content: center;
  background: linear-gradient(120deg, #e8eae5, #e9eaf0, #e5e9e1);
  background-size: 180% 180%;
  animation: surround-drift 32s ease-in-out infinite alternate;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #264e3b; outline-offset: 3px; }
.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  height: min(850px, calc(100dvh - 44px));
  min-height: 590px;
  overflow: hidden;
  border: 8px solid #252b27;
  border-radius: 52px;
  background: linear-gradient(155deg, #eef2df 0%, #d4e3d9 53%, #dfe4ef 100%);
  box-shadow: 0 28px 70px rgba(29, 39, 32, .2);
}
.phone > * { position: relative; z-index: 1; }
.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 50%;
  width: 93px;
  height: 25px;
  border-radius: 16px;
  background: #252b27;
  transform: translateX(-50%);
}
.phone::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(245, 225, 196, .75), transparent 36%),
    radial-gradient(circle at 78% 34%, rgba(188, 216, 202, .85), transparent 42%),
    radial-gradient(circle at 30% 84%, rgba(205, 211, 238, .8), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(235, 209, 222, .65), transparent 38%);
  animation: wallpaper-drift 28s ease-in-out infinite alternate;
}
@keyframes wallpaper-drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); filter: hue-rotate(-8deg); }
  to { transform: translate3d(5%, 3%, 0) scale(1.08); filter: hue-rotate(12deg); }
}
@keyframes surround-drift {
  from { background-position: 0% 40%; }
  to { background-position: 100% 60%; }
}
.status-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 8px 62px 0 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.status-icons { display: flex; align-items: center; gap: 5px; }
.signal { font-size: 10px; letter-spacing: -3px; padding-right: 2px; }
.wifi { font-size: 13px; }
.battery { width: 19px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; padding: 1px; }
.battery::before { content: ""; display: block; width: 12px; height: 5px; border-radius: 1px; background: currentColor; }
.language-switch { position: absolute; z-index: 6; top: 12px; right: 20px; }
.language-switch summary { display: grid; place-items: center; width: 30px; height: 27px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; list-style: none; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary:hover, .language-switch[open] summary { background: rgba(255,255,255,.55); }
.language-menu { position: absolute; top: 32px; right: 0; display: grid; min-width: 138px; padding: 5px; border: 1px solid rgba(44,60,48,.13); border-radius: 13px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(25,43,32,.13); backdrop-filter: blur(18px); }
.language-menu button { padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.language-menu button:hover, .language-menu button[aria-current="true"] { background: rgba(95,125,100,.14); }
.phone-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.phone-content::-webkit-scrollbar { display: none; }
.home-content { display: flex; flex-direction: column; padding: 20px 23px 10px; }
.profile-widget {
  padding: 15px 20px 14px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 6px 20px rgba(43, 68, 48, .05);
}
.widget-label, .section-label { margin: 0 0 8px; color: #536554; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.profile-widget h1 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.055em; line-height: 1.06; }
.profile-widget p:last-child { margin: 10px 0 0; color: #4e5d51; font-size: 12px; line-height: 1.4; }
.app-heading { margin: 20px 1px 14px; color: #3f5345; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 4px; }
.app { min-width: 0; text-align: center; text-decoration: none; font-size: 10px; font-weight: 500; }
.app img {
  display: block;
  width: clamp(52px, 14vw, 62px);
  height: clamp(52px, 14vw, 62px);
  margin: 0 auto 6px;
  object-fit: cover;
  border-radius: 21%;
  box-shadow: 0 5px 12px rgba(24, 40, 28, .15);
  transition: filter .18s ease;
}
.app:hover img, .app:focus-visible img { filter: brightness(.88); }
.app span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal-link { align-self: center; margin: 24px 0 4px; color: #58665e; font-size: 10px; text-decoration: none; }
.legal-link:hover { text-decoration: underline; }
.dock {
  display: grid;
  flex: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 12px 5px;
  padding: 11px 4px 9px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 22px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 8px 24px rgba(25, 43, 32, .08);
  backdrop-filter: blur(18px);
}
.dock a { min-width: 0; text-align: center; text-decoration: none; font-size: 9px; }
.dock-icon {
  display: grid;
  place-items: center;
  width: clamp(52px, 14vw, 62px);
  height: clamp(52px, 14vw, 62px);
  margin: 0 auto 5px;
  border-radius: 21%;
  color: white;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.06em;
  transition: filter .18s ease;
}
.dock a:hover .dock-icon, .dock a:focus-visible .dock-icon { filter: brightness(.88); }
.home-indicator { flex: none; width: 112px; height: 4px; margin: 8px auto 8px; border-radius: 4px; background: #27322b; }
.app-toolbar { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 22px; }
.app-toolbar a { color: #31634c; font-size: 14px; font-weight: 600; text-decoration: none; }
.app-toolbar .back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 10px 0 0;
  border-radius: 12px;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
.back-button::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-left: 5px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
}
.app-toolbar .back-button:hover, .app-toolbar .back-button:focus-visible { background: rgba(49, 99, 76, .09); }
.app-toolbar .back-button:active { background: rgba(49, 99, 76, .17); }
.app-toolbar span { font-size: 14px; font-weight: 700; }
.app-toolbar .toolbar-action { font-size: 13px; }
.app-content { padding: 20px 22px 32px; }
.app-content h1 { margin: 0 0 23px; font-size: 38px; font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.about-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.about-header h1 { margin: 0; font-size: clamp(30px, 9vw, 38px); }
.about-portrait { display: block; flex: none; width: 76px; height: 76px; border-radius: 18px; object-fit: cover; }
.app-card {
  margin-bottom: 12px;
  padding: 19px 18px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 20px;
  background: rgba(255,255,255,.65);
}
.app-card h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.025em; }
.app-card p { margin: 0; color: #4f5c53; font-size: 14px; line-height: 1.5; }
.app-card p + p { margin-top: 10px; }
.app-card .meta { color: #56705e; font-size: 12px; font-weight: 650; }
.app-card a { color: #276244; text-underline-offset: 3px; }
.screen-note { margin: -10px 0 20px; color: #516158; font-size: 13px; line-height: 1.5; }
.experience-heading { margin: 23px 0 11px; color: #3f5345; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.experience-list { display: grid; gap: 9px; }
.experience-list .app-card { margin: 0; }
.app-card.engagement { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 13px; padding: 12px; }
.engagement .engagement-company { margin: 0 0 2px; color: #527261; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.engagement h3 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.03em; line-height: 1.15; }
.engagement .meta { margin: 0; font-size: 11px; }
.engagement .engagement-description { margin-top: 7px; font-size: 12px; line-height: 1.4; }
.engagement-art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(145deg, var(--tile-start), var(--tile-end)); box-shadow: 0 4px 10px rgba(30, 45, 36, .12); }
.engagement-art svg { width: 42px; height: 42px; }
.engagement-art.logo-art { padding: 7px; background: #fff; }
.engagement-art.logo-art img { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: contain; }
.engagement-art.logo-art.edge-art { padding: 0; }
.engagement-art.logo-art.edge-art img { border-radius: inherit; object-fit: cover; }
.engagement-art.logo-art.doerner-art { padding: 2px; }
.engagement-art.logo-art.trumpf-art { padding: 3px; }
.theme-sage { --tile-start: #8fb5a4; --tile-end: #4a806a; }
.theme-coral { --tile-start: #e7a590; --tile-end: #c77e6d; }
.theme-blue { --tile-start: #91b7cd; --tile-end: #527f9a; }
.theme-amber { --tile-start: #e4be78; --tile-end: #b98349; }
.theme-violet { --tile-start: #b9abd2; --tile-end: #8674aa; }
.theme-sky { --tile-start: #98c6d3; --tile-end: #5f9eae; }
.theme-slate { --tile-start: #8eaaae; --tile-end: #58737b; }
.theme-terracotta { --tile-start: #d6a088; --tile-end: #aa6f5b; }
.theme-teal { --tile-start: #8bc9bc; --tile-end: #4c9689; }
.theme-indigo { --tile-start: #9caacc; --tile-end: #62769f; }
.theme-rose { --tile-start: #d8a9b7; --tile-end: #a76f82; }
.theme-navy { --tile-start: #8196b3; --tile-end: #3e587e; }
.theme-mint { --tile-start: #a6c9a5; --tile-end: #699673; }
.theme-purple { --tile-start: #b7a0c9; --tile-end: #8066a1; }
.theme-gold { --tile-start: #d6bb7d; --tile-end: #aa854d; }
.cv-list .app-card h2 { font-size: 15px; }
.cv-list .app-card p { font-size: 12px; }
.print-button {
  padding: 0;
  border: 0;
  background: none;
  color: #31634c;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.legal-content h1 { margin: 0 0 22px; font-size: 34px; letter-spacing: -.05em; line-height: 1.1; }
.legal-content h2 { margin: 23px 0 7px; font-size: 16px; }
.legal-content p { margin: 0 0 12px; color: #4f5c53; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  body { display: block; width: 100%; height: 100dvh; min-height: 0; overflow: hidden; padding: 0; background: var(--wallpaper); }
  .phone { position: fixed; inset: 0; width: 100%; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .phone::before, .status-bar, .home-indicator { display: none; }
  .language-switch { top: max(9px, env(safe-area-inset-top)); right: 18px; }
  .home-content { padding: max(48px, calc(env(safe-area-inset-top) + 38px)) 22px 10px; }
  .app-toolbar { min-height: 52px; margin-top: max(38px, calc(env(safe-area-inset-top) + 30px)); }
  .dock { margin-bottom: max(10px, env(safe-area-inset-bottom)); }
  .app img, .dock-icon { width: clamp(50px, 15vw, 62px); height: clamp(50px, 15vw, 62px); }
}
@media (max-width: 360px) {
  .home-content { padding-inline: 15px; }
  .dock { margin-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  body, .phone::after { animation: none; }
}
@media print {
  body { display: block; padding: 0; background: white; }
  .phone { position: static; width: 100%; height: auto; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: white; box-shadow: none; }
  .phone::before, .phone::after, .status-bar, .language-switch, .app-toolbar, .home-indicator, .print-button { display: none; }
  .phone-content { overflow: visible; }
  .app-content { padding: 0; }
  .app-content h1 { font-size: 30px; }
  .app-card { break-inside: avoid; padding: 8px 0; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; background: white; }
  .app-card h2 { margin-bottom: 3px; }
  .app-card p { font-size: 11px; }
  .cv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
}
