/* Kinetic portfolio: transform and opacity carry the motion. */
:root { --motion-ease: cubic-bezier(.16, 1, .3, 1); }
html { scroll-padding-top: 105px; }
body { overflow-x: clip; }
.site-header {
  position: sticky; top: 0; width: 100%; max-width: none; min-height: 84px;
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2));
  background: var(--paper); color: var(--ink); border-bottom-color: var(--line);
  transition: min-height .4s var(--ease), background .4s, box-shadow .4s;
}
.site-header.is-scrolled { min-height: 68px; background: #f7f8f5f5; box-shadow: 0 8px 30px #0000000d; backdrop-filter: blur(16px); }
.site-header .brand-dot, .site-header .status-dot { color: var(--green); }
.site-header .status-dot { background: var(--green); }
.header-availability { color: var(--muted); }
.desktop-nav a::after { background: var(--green); }
.language-switch a { color: var(--muted); }
.language-switch a[aria-current] { color: var(--ink); }
.site-header :focus-visible, .hero-motion :focus-visible { outline-color: var(--green); }
.about-section :focus-visible, .contact-section :focus-visible { outline-color: var(--acid); }
.reading-progress { position: fixed; z-index: 80; height: 3px; top: 0; left: 0; width: 100%; pointer-events: none; }
.reading-progress > span { display: block; height: 100%; background: var(--acid); transform: scaleX(var(--reading, 0)); transform-origin: left; }
.motion-toggle {
  position: fixed; bottom: 20px; right: 20px; z-index: 40; display: flex; align-items: center; gap: .6rem;
  min-height: 40px; padding: 8px 13px; border: 1px solid #72786655; border-radius: 40px;
  background: #f7f8f5ed; color: var(--ink); font-size: .75rem; box-shadow: 0 3px 15px #00000009;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:disabled { cursor: default; opacity: .75; }
.motion-off { scroll-behavior: auto; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
.motion-symbol { display: block; width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-toggle[aria-pressed="false"] .motion-symbol { border: 0; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
/* A personal, light opening. The work retains its scroll choreography. */
.hero-motion { padding: 0; background: var(--paper); color: var(--ink); position: relative; overflow: clip; }
.hero-motion .hero-stage { position: relative; }
.hero-motion .hero-topline { padding-top: 28px; color: var(--muted); }
.hero-composition { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8%; align-items: center; padding: clamp(3.5rem, 6.5vw, 6.5rem) 0; min-height: 545px; }
.hero-copy { min-width: 0; }
.hero-motion .hero-title { font-size: clamp(4rem, 7.4vw, 7.8rem); font-weight: 500; line-height: 1.03; letter-spacing: -.07em; }
.hero-title-line { display: block; padding-bottom: .15em; margin-bottom: -.15em; }
.hero-title-line > span { display: block; }
.hero-title-serif { font-family: var(--serif); color: var(--green); font-weight: 400; font-style: italic; font-size: 1.1em; letter-spacing: -.035em; padding-right: .07em; }
.hero-period { font-style: normal; }
.hero-personal-intro { color: var(--muted); max-width: 43ch; font-size: 1.025rem; line-height: 1.7; margin-top: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-top: 2rem; }
.hero-cv { display: flex; align-items: center; gap: .75rem; min-height: 44px; font-size: .875rem; }
.hero-cv svg { width: 16px; height: 16px; transition: transform .3s; }
.hero-cv:hover svg { transform: translate(3px, -3px); }
.hero-note-card { width: 100%; max-width: 430px; justify-self: end; background: var(--white); border: 1px solid #dfe3d9; border-radius: 16px; padding: 27px 28px 0; box-shadow: 0 8px 35px #27301f06; }
.hero-note-author { display: flex; align-items: center; gap: .8rem; }
.hero-note-author > img { width: 46px; height: 46px; object-fit: cover; object-position: center 28%; filter: grayscale(1); border-radius: 50%; }
.hero-note-author > div { display: flex; flex-direction: column; gap: .1rem; }
.hero-note-author strong { font-size: .875rem; font-weight: 600; letter-spacing: -.015em; }
.hero-note-author > div > span { color: var(--muted); font-size: .75rem; }
.note-asterisk { color: var(--green); font-size: 1.6rem; line-height: 1; margin-left: auto; }
.hero-note-body { padding-block: 1.5rem 1.6rem; font-size: .975rem; line-height: 1.65; letter-spacing: -.01em; }
.hero-note-body p + p { margin-top: 1rem; }
.hero-note-body .hero-note-signoff { color: var(--green); font-family: var(--serif); font-size: 1.4rem; font-style: italic; line-height: 1.3; margin-top: 1.25rem; }
.hero-note-footer { display: flex; justify-content: space-between; align-items: center; gap: .7rem; border-top: 1px solid #e7eae2; padding: 1rem 0; color: var(--muted); font-size: .75rem; }
.note-language { white-space: nowrap; letter-spacing: .02em; font-size: .75rem; }
.hero-footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); padding-block: 1.25rem; color: var(--muted); }
.hero-scroll { display: flex; align-items: center; gap: 1.2rem; color: var(--muted); }
.scroll-disc { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; }
.scroll-disc svg { width: 17px; height: 17px; }

/* Entrance and hover motion. Scroll transforms use separate properties. */
@keyframes hero-word { from { transform: translate3d(0, 110%, 0) rotate(3deg); opacity: 0; } to { transform: translate3d(0,0,0) rotate(0); opacity: 1; } }
@keyframes scroll-cue { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(5px); } }
.motion-on .hero-title-line { overflow: clip; }
.motion-on .hero-title-line > span { animation: hero-word 1.2s var(--motion-ease) both; }
.motion-on .hero-title-line:nth-child(2) > span { animation-delay: .14s; }
.motion-on .hero-personal-intro, .motion-on .hero-actions, .motion-on .hero-note-card { animation: arrive 1.1s var(--motion-ease) both; }
.motion-on .hero-personal-intro { animation-delay: .2s; }
.motion-on .hero-actions { animation-delay: .3s; }
.motion-on .hero-note-card { animation-delay: .25s; }
.motion-on .scroll-disc svg { animation: scroll-cue 2.2s ease-in-out infinite; }
.motion-on.hero-offscreen .hero-motion *, .motion-on.hero-offscreen .hero-motion *::before { animation-play-state: paused !important; }
.motion-on.page-inactive *, .motion-on.page-inactive *::before { animation-play-state: paused !important; }
.motion-on [data-magnetic] { translate: var(--magnet-x, 0px) var(--magnet-y, 0px); transition: translate .4s var(--ease), background .25s, transform .35s; }
.motion-on .project-open { translate: var(--follow-x, 0px) var(--follow-y, 0px); transition: translate .25s var(--ease), background .25s, transform .35s; }
.motion-on .project-visual { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .55s var(--ease); }

/* Scroll choreography */
.motion-on .hero-note-card { translate: 0 var(--note-parallax, 0px); }
.motion-on .hero-title-line:first-child { translate: var(--title-drift, 0px) 0; }
.motion-on .hero-title-line:nth-child(2) { translate: var(--title-drift-reverse, 0px) 0; }
.motion-on .ourflow-visual .screen-left { translate: var(--fan-left, 0px) var(--fan-side-y, 0px); rotate: var(--fan-left-r, 0deg); }
.motion-on .ourflow-visual .screen-right { translate: var(--fan-right, 0px) var(--fan-side-y, 0px); rotate: var(--fan-right-r, 0deg); }
.motion-on .ourflow-visual .screen-center { translate: 0 var(--fan-center-y, 0px); scale: var(--fan-scale, 1); }
.motion-on .project-visual .browser-frame { translate: 0 var(--project-parallax, 0px); }
.motion-on .project-visual .vetra-phone { translate: 0 var(--phone-parallax, 0px); }
.motion-on .portrait-image > img { scale: 1.1; translate: 0 var(--portrait-parallax, 0px); }
.motion-on .timeline::before { content: ''; position: absolute; width: 2px; height: 100%; left: -1px; top: 0; background: var(--green); transform-origin: top; transform: scaleY(var(--timeline-progress, 0)); }
.timeline { position: relative; }
.motion-on .timeline-item::before { transition: background .4s, box-shadow .4s; }
.motion-on .timeline-item.is-passed::before { background: var(--green); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px #b6c3a4; }
.motion-on .contact-heading h2 { translate: 0 var(--contact-lift, 0px); }
.motion-on .contact-circle { rotate: var(--contact-rotation, 0deg); }
.motion-on .now-product > img { rotate: var(--now-rotation, 0deg); }
/* Sections wait out of sight until their entrance runs, so scrolling never
   shows them at rest first. motion.js owns the attribute, so a page without
   it, or with motion off, keeps everything visible. */
.motion-on [data-reveal="pending"] { opacity: 0; }
.motion-word-wrap { display: inline-block; overflow: clip; vertical-align: top; padding: 0 .08em .16em 0; margin-right: -.08em; margin-bottom: -.16em; }
.motion-word { display: inline-block; }
html[lang="de"] .hero-motion .hero-title { font-size: clamp(3.5rem, 6.3vw, 6.8rem); }
html[lang="de"] .hero-motion .hero-title-serif { font-size: 1.15em; }
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .motion-on .journey-intro { position: sticky; top: 130px; align-self: start; }
}
@media (max-width: 1100px) {
  .hero-composition { gap: 5%; grid-template-columns: 1.25fr 1fr; }
  .hero-note-card { padding: 22px 22px 0; }
  .hero-note-body { font-size: .95rem; }
  .hero-note-footer { flex-wrap: wrap; }
}
@media (max-width: 850px) {
  .hero-composition { grid-template-columns: 1fr; gap: 2.7rem; min-height: 0; padding-block: 3.5rem; }
  .hero-motion .hero-title { font-size: clamp(3.8rem, 10vw, 6.5rem); }
  html[lang="de"] .hero-motion .hero-title { font-size: clamp(3.5rem, 8.7vw, 5.8rem); }
  .hero-note-card { justify-self: start; max-width: 520px; }
  .hero-personal-intro { max-width: 48ch; }
}
@media (max-width: 780px) {
  html { scroll-padding-top: 96px; }
  .site-header, .site-header.is-scrolled { min-height: 72px; }
  .menu-toggle { border-color: var(--line); }
  .menu-toggle > span { background: var(--ink); }
  .mobile-menu { left: 0; width: 100%; background: var(--paper); color: var(--ink); border-color: var(--line); }
  .mobile-menu > a { border-color: var(--line); }
  .mobile-menu > a > .eyebrow { color: var(--muted); }
  .hero-motion .hero-topline { padding-top: 22px; }
  .hero-footer { gap: 1rem; }
  .hero-footer > .eyebrow { font-size: .75rem; }
  .hero-scroll { gap: .7rem; }
  .hero-scroll > .eyebrow { font-size: .75rem; }
  .scroll-disc { flex-shrink: 0; }
  .motion-toggle { bottom: 12px; right: 12px; }
}
@media (max-width: 520px) {
  .hero-composition { padding: 2.7rem 0; gap: 2.3rem; }
  .hero-motion .hero-title { font-size: 12vw; }
  html[lang="de"] .hero-motion .hero-title { font-size: 10.3vw; }
  .hero-personal-intro { font-size: 1rem; margin-top: 1.7rem; }
  .hero-actions { gap: 1.2rem; margin-top: 1.6rem; }
  .hero-actions .button { gap: 1.1rem; padding-left: 19px; font-size: .85rem; }
  .hero-cv { font-size: .8rem; gap: .5rem; }
  .hero-note-card { padding: 21px 21px 0; border-radius: 13px; }
  .hero-note-body { padding-block: 1.3rem; }
  .hero-note-body .hero-note-signoff { font-size: 1.35rem; }
  .hero-footer > .eyebrow { max-width: 23ch; }
  .hero-scroll > .eyebrow { display: none; }
  .motion-toggle { padding: 8px 10px; }
  .motion-toggle .motion-label { max-width: 11ch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title-line { overflow: visible; }
}
@media print {
  .motion-toggle, .reading-progress, .hero-footer { display: none !important; }
  .hero-composition { display: block; min-height: 0; }
  .hero-motion .hero-title, html[lang="de"] .hero-motion .hero-title { font-size: 48pt; }
  .hero-note-card { margin-top: 2rem; }
}
