:root {
  --green-dark: #0B413B;
  --blue: #3D77B6;
  --burgundy: #6B2137;
  --blue-light: #A3BEF5;
  --green-light: #C7CE6D;
  --orange: #F58D36;
  --cream: #FBEFD9;
  --pink: #FCAFE3;
  --tool-track: #F1DFC0;

  --font: "Inter", Arial, Helvetica, sans-serif;
  --screen-max: 430px;
  --page-pad: clamp(24px, 7.8cqw, 32px);
  --ease: cubic-bezier(.22,.8,.22,1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #1d1d1d;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: #111;
  background: #1d1d1d;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.story {
  width: min(100%, var(--screen-max));
  margin-inline: auto;
  overflow: clip;
  container-type: inline-size;
  background: var(--cream);
}

.screen {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.section-pad {
  padding-inline: var(--page-pad);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.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;
}

/* Exact divider asset supplied from the Figma design.
   Keeping it as the SVG gives a closer match than approximating the wave in CSS. */
.wave {
  position: absolute;
  z-index: 20;
  left: 0;
  width: 100%;
  height: clamp(34px, 10.4cqw, 42px);
  background: url("assets/Ribon.svg") center / 120% 104% no-repeat;
  pointer-events: none;
}

/* ----------------------------------
   HERO
---------------------------------- */
.hero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) clamp(118px, 30cqw, 132px);
  background: var(--cream);
  color: var(--blue);
}

.hero__blue {
  position: relative;
  min-height: calc(100svh - clamp(118px, 30cqw, 132px));
  background: var(--blue-light);
  overflow: hidden;
}

.hero__ribbon {
  position: absolute;
  z-index: 1;
  left: 0;
  top: clamp(42px, 12cqw, 64px);
  width: 100%;
  height: auto;
  pointer-events: none;
  transform-origin: 42% 40%;
}

.hero__heading {
  position: absolute;
  z-index: 3;
  top: clamp(54px, 14cqw, 72px);
  right: clamp(24px, 7cqw, 30px);
  text-align: right;
}

.hero h1 {
  font-size: clamp(31px, 8.7cqw, 37px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--blue);
}

.hero__copy {
  position: absolute;
  z-index: 3;
  left: clamp(31px, 8cqw, 36px);
  bottom: clamp(59px, 15cqw, 74px);
  font-size: clamp(23px, 6.25cqw, 27px);
  line-height: 1.26;
  letter-spacing: -0.025em;
  color: var(--blue);
}

.wave--hero {
  bottom: calc(clamp(118px, 30cqw, 132px) - 17px);
}

.hero__cta {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
  color: var(--burgundy);
  background: var(--cream);
  text-decoration: none;
  font-size: clamp(25px, 6.6cqw, 29px);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: gap .25s var(--ease), background-color .25s var(--ease);
}

.hero__cta-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateY(-5px);
  transition: .25s var(--ease);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  gap: 16px;
}

.hero__cta:hover .hero__cta-arrow,
.hero__cta:focus-visible .hero__cta-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------
   ABOUT
---------------------------------- */
.about {
  background: var(--cream);
  color: #111;
  min-height: 100svh;
}

.about__content {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(46px, 12cqw, 58px);
  padding-bottom: 0;
}

.about__intro {
  position: relative;
  z-index: 8;
}

.eyebrow {
  font-size: clamp(27px, 7cqw, 30px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--burgundy);
}

.about h2,
.data h2 {
  margin-top: 3px;
  font-size: clamp(31px, 8.2cqw, 35px);
  line-height: 1;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: -0.02em;
}

.about__copy {
  margin-top: clamp(18px, 5cqw, 24px);
  font-size: clamp(20px, 5.45cqw, 23px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.about__visual {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(61svh, 540px);
}

.about__lines {
  position: absolute;
  z-index: 0;

  top: -8%;

  width: 110%;
  height: 112%;

  object-fit: cover;
  object-position: center;

  opacity: 1;
  pointer-events: none;
}

.about__portrait {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1px;
  width: min(100%);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.02));
}

.skill-card {
  position: absolute;
  z-index: 5;

  min-width: 100px;
  max-width: 145px;

  padding: 7px 14px 8px;

  border-radius: 10px;
  color: #111;
  text-align: center;
  line-height: 1.03;
  cursor: pointer;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), padding .26s var(--ease);
}

.skill-card span,
.skill-card strong {
  display: block;
  font-size: clamp(17px, 4.8cqw, 20px);
  font-weight: 400;
}

.skill-card small {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 11px;
  line-height: 1.25;
  transition: max-height .28s var(--ease), opacity .2s ease, margin-top .28s var(--ease);
}

.skill-card[aria-expanded="true"] {
  padding-bottom: 12px;
  transform: scale(1.04) rotate(0deg);
  box-shadow: 0 8px 22px rgba(107,33,55,.13);
}

.skill-card[aria-expanded="true"] small {
  max-height: 48px;
  margin-top: 8px;
  opacity: 1;
}

.skill-card--design {
  left: 7%;
  top: 49%;
  background: var(--green-light);
  transform: rotate(-1deg);
}

.skill-card--develop {
  right: 15%;
  top: 1%;
  background: var(--pink);
  transform: rotate(.5deg);
}

.skill-card--data {
  right: 7%;
  top: 72%;
  min-width: 125px;
  background: var(--orange);
  transform: rotate(-.5deg);
}

.wave--about {
  bottom: -16px;
}

/* ----------------------------------
   DATA PORTRAIT
---------------------------------- */
.data {
  background: var(--cream);
  color: #111;
  min-height: 100svh;
}

.data__content {
  min-height: 100svh;
  padding-top: clamp(44px, 11cqw, 56px);
  padding-bottom: clamp(54px, 14cqw, 68px);
}


.data__intro,
.tools,
.enjoy {
  position: relative;
  z-index: 3;
}

.data__intro > p:last-child {
  margin-top: clamp(15px, 4cqw, 20px);
  font-size: clamp(20px, 5.35cqw, 23px);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.tools {
  margin-top: clamp(27px, 6.8cqw, 34px);
}

.tools h3,
.enjoy h3 {
  font-size: clamp(18px, 4.7cqw, 20px);
  line-height: 1;
  font-weight: 700;
  color: var(--burgundy);
}

.tool {
  margin-top: clamp(13px, 3.6cqw, 17px);
}

.tool__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-right: 12px;
  font-size: clamp(14px, 3.75cqw, 16px);
  line-height: 1;
}

.tool__wave {
  width: calc(100% - 4px);
  height: 28px;
  margin-top: 3px;
  overflow: visible;
}

.tool__track,
.tool__fill {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool__track {
  stroke: var(--tool-track);
  opacity: .7;
}

.tool__fill {
  stroke: var(--tool-color);

  /* Startzustand: keine farbige Linie sichtbar */
  stroke-dasharray: 0 100;

  transition: stroke-dasharray 1.15s var(--ease);
}


.enjoy {
  margin-top: clamp(26px, 6cqw, 34px);
}


.patches {
  position: relative;
  height: 30.5%;
  min-height: 280px;
  margin-top: 3.5%;
  padding-bottom: 3.5%;

}

.patch {
  position: absolute;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .28s var(--ease), filter .28s var(--ease);
}

.patch:hover,
.patch:focus-visible {
  transform: scale(1.06) rotate(2deg);
  filter: drop-shadow(0 5px 8px rgba(107,33,55,.12));
}

.patch--prototype {
  left: 0;
  top: 0;
  width: clamp(132px, 39.55cqw, 159px);
}

.patch--illustrating {
  right: 8%;
  top: 17px;
  width: clamp(94px, 27.6cqw, 111px);
}

.patch--motion {
  left: 3%;
  bottom: 2px;
  width: clamp(68px, 20.1cqw, 81px);
}

.patch--dataviz {
  left: 32%;
  bottom: -2px;
  width: clamp(113px, 33.6cqw, 135px);
}

.patch--coding {
  right: 1%;
  bottom: 45px;
  width: clamp(62px, 18.4cqw, 74px);
}

.wave--data {
  bottom: -17px;
  filter: hue-rotate(69deg) saturate(.64) brightness(1.25);
  /* Fallback color is still the supplied ribbon image; the next section covers it in green. */
}

/* We need the data divider in lime instead of burgundy.
   This overlay uses the exact same wave silhouette via CSS mask. */
.data::after {
  content: "";

  position: absolute;
  z-index: 21;

  left: 0;
  bottom: 0;

  width: 100%;
  height: clamp(35px, 10.4cqw, 42px);

  background: var(--green-light);

  -webkit-mask: url("assets/Ribon.svg") center / 120% 104% no-repeat;
  mask: url("assets/Ribon.svg") center / 120% 104% no-repeat;

  pointer-events: none;
}

.data::before {
  content: "";

  position: absolute;
  z-index: 20;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 18px;

  background: var(--green-light);

  pointer-events: none;
}

.data .wave--data {
  display: none;
}

/* ----------------------------------
   CONTACT
---------------------------------- */
.contact {
  background: var(--green-light);
  color: var(--green-dark);
  min-height: 100svh;
}

.contact__content {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 50px);
  padding-top: clamp(48px, 12cqw, 58px);
  padding-bottom: 76px;
}

.contact__kicker {
  font-size: clamp(29px, 7.6cqw, 33px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.contact h2 {
  margin-top: 1px;
  font-size: clamp(30px, 7.8cqw, 34px);
  line-height: 1;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.contact__talk {
  margin-top: clamp(16px, 4cqw, 20px);
  font-size: clamp(22px, 5.8cqw, 25px);
}

.contact__links {
  display: grid;
  gap: clamp(13px, 3.3cqw, 15px);
  margin-top: clamp(38px, 9cqw, 45px);
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(48px, 12.7cqw, 54px);
  padding: 0 clamp(18px, 5cqw, 22px);
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(21px, 5.4cqw, 24px);
  letter-spacing: -0.02em;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.contact-link span {
  font-size: 1.35em;
  line-height: 1;
  transition: transform .22s var(--ease);
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateX(3px);
  box-shadow: 0 7px 20px rgba(11,65,59,.12);
}

.contact-link:hover span,
.contact-link:focus-visible span {
  transform: translateX(4px);
}

.contact-link--light {
  color: #111;
  background: var(--cream);
}

.contact-link--dark {
  color: var(--cream);
  background: var(--burgundy);
}

.contact__ribbon {
  position: absolute;
  left: 0;
  top: 57%;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.contact__name {
  position: absolute;
  left: var(--page-pad);
  bottom: clamp(81px, 20cqw, 94px);
  z-index: 4;
}

.contact__name p,
.contact__name h3 {
  color: var(--green-dark);
  line-height: .98;
}

.contact__name p {
  font-size: clamp(27px, 7cqw, 30px);
  font-weight: 400;
}

.contact__name h3 {
  margin-top: 4px;
  font-size: clamp(30px, 7.5cqw, 33px);
  font-weight: 700;
}

.contact__name span {
  display: block;
  margin-top: 12px;
  font-size: clamp(14px, 3.8cqw, 16px);
  color: #111;
}

.wave--contact {
  bottom: 30px;
}

.contact__footer {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: var(--burgundy);
}

/* ----------------------------------
   SCROLL STORY ANIMATIONS
---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .72s var(--ease),
    transform .72s var(--ease);
}

.reveal--right {
  transform: translateX(18px);
}

.reveal--up {
  transform: translate(-50%, 22px);
}

.reveal--scale {
  transform: scale(.965);
}

.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.about__portrait.is-visible {
  transform: translateX(-50%);
}

/* The skill cards need to keep their small design rotations after reveal. */
.skill-card--design.is-visible { transform: rotate(-1deg); }
.skill-card--develop.is-visible { transform: rotate(.5deg); }
.skill-card--data.is-visible { transform: rotate(-.5deg); }

.skill-card--design[aria-expanded="true"],
.skill-card--develop[aria-expanded="true"],
.skill-card--data[aria-expanded="true"] {
  transform: scale(1.04) rotate(0deg);
}

@keyframes gentle-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

.hero__ribbon.is-visible,
.contact__ribbon.is-visible {
  animation: gentle-float 6s ease-in-out infinite;
}

.patch:nth-child(odd) {
  animation: gentle-float 5.5s ease-in-out infinite;
}

.patch:nth-child(even) {
  animation: gentle-float 6.8s ease-in-out infinite reverse;
}

/* ----------------------------------
   SMALL PHONES
---------------------------------- */
@media (max-width: 370px) {
  :root {
    --page-pad: 24px;
  }

  .hero__copy {
    font-size: 21px;
  }

  .about__copy {
    font-size: 18px;
  }

  .skill-card--design { left: 5%; }
  .skill-card--develop { right: 11%; }
  .skill-card--data { right: 4%; }

  .contact__links {
    margin-top: 30px;
    gap: 10px;
  }
}

/* ----------------------------------
   DESKTOP PREVIEW
   The experience intentionally stays phone-shaped because it is a QR/mobile project.
---------------------------------- */
@media (min-width: 700px) {
  html,
  body {
    background: var(--cream);
  }

  body {
    padding-block: 28px;
  }

  /* Phone-shaped card framed by a burgundy line on the cream page.
     The extra width keeps the inner content at exactly --screen-max. */
  .story {
    width: calc(var(--screen-max) + 12px);
    border: 6px solid var(--burgundy);
    border-radius: 46px;
    box-shadow: 0 24px 60px rgba(214, 160, 90, .22);
  }

  .screen {
    min-height: 866px;
  }

  .hero__blue,
  .about__content,
  .data__content,
  .contact__content {
    min-height: 866px;
  }

  .hero {
    min-height: 866px;
    grid-template-rows: 734px 132px;
  }

  .hero__blue {
    min-height: 734px;
  }

  .about__visual {
    height: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .about__portrait.reveal {
    transform: translateX(-50%);
  }


}
/* Give the intro copy more breathing room above the wave on phones. */
@media (max-width: 699px) {
  .hero__copy {
    bottom: clamp(80px, 21cqw, 94px);
  }
}

/* Keep the composition fluid within the card, even on short viewports.
   The width-based floor keeps the intro copy below the ribbon's "a" loop on
   phones with a short visible viewport (e.g. iPhone 14 in Safari). */
.hero__blue {
  min-height: max(calc(100svh - clamp(118px, 30cqw, 132px)), 172cqw);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__visual {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 1 0 auto;
  min-height: clamp(400px, 125cqw, 540px);
  height: auto;
  margin-inline: calc(-1 * var(--page-pad));
}

.patches {
  height: auto;
  min-height: 0;
  aspect-ratio: 1.2;
}

.contact__content {
  display: flex;
  flex-direction: column;
  padding-bottom: max(94px, env(safe-area-inset-bottom));
}

.contact__intro,
.contact__links {
  position: relative;
  z-index: 4;
}

.contact__name {
  position: relative;
  left: auto;
  bottom: auto;
  top: 24px;
  margin-top: auto;
  padding-top: clamp(100px, 26cqw, 112px);
}

.contact__ribbon {
  top: auto;
  bottom: 130px;
}

.contact-link {
  gap: 12px;
  padding-block: 10px;
}

@media (max-width: 370px) {
  .design-break {
    display: none;
  }

  .skill-card {
    min-width: 88px;
    max-width: 130px;
    padding-inline: 10px;
  }

  .skill-card--data {
    min-width: 112px;
  }
}

@media (min-width: 700px) {
  .hero__blue {
    min-height: 734px;
  }

  .about__visual {
    height: auto;
  }

  .contact__name {
    top: 0;
  }
}
/* Overscan decorative ribbons so their ends stay outside the card,
   including during the reveal scale animation. */
.hero__ribbon,
.contact__ribbon {
  left: -10%;
  width: 120%;
  max-width: none;
}
.tool__counter {
  min-width: 4ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--burgundy);
}