/* Dimitrios Kostopoulos: cartoon portfolio.
   Layout and look live here; scrollcraft.css/js are the scroll engine. */

@font-face {
  font-family: "Reenie Beanie";
  src: url("assets/fonts/reenie-beanie.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("assets/fonts/patrick-hand.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #1b1444;
  --paper: #fffdf5;
  --yellow: #ffd84a;
  --pink: #ff7eb0;
  --blue: #7cc4ff;
  --mint: #6ee7b7;
  --purple: #6a4df4;

  --line: 4px;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --frame: 14px 24px 16px 26px / 24px 14px 26px 16px;

  /* scrollcraft tokens */
  --sc-canvas: var(--paper);
  --sc-surface: #ffffff;
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink);
  --sc-accent: var(--pink);
  --sc-accent-ink: var(--ink);
  --sc-font-display: "Reenie Beanie", "Comic Sans MS", cursive;
  --sc-font-text: "Patrick Hand", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--sc-font-text);
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--ink);
  background: var(--paper);
}

img { height: auto; }
h1, h2, h3, p { margin: 0; }

h1, h2, h3, .btn, .name, .foot-title {
  font-family: var(--sc-font-display);
  font-weight: 400;
  letter-spacing: 0;
  -webkit-text-stroke: 0.02em currentColor;
}

h1 {
  font-size: clamp(4.4rem, 10.4vw, 9.8rem);
  line-height: 0.78;
  rotate: -2deg;
  text-shadow: 0.035em 0.035em 0 #fff;
}
h2 {
  font-size: clamp(3.6rem, 8.4vw, 7.6rem);
  line-height: 0.8;
  rotate: -1.5deg;
}
h3 {
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: 0.9;
}

.wrap {
  width: min(1200px, 100% - 2 * clamp(1.25rem, 4vw, 3rem));
  margin-inline: auto;
}

section { position: relative; }
main > section + section { border-top: 5px solid var(--ink); }

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
  border-radius: 10px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  padding: 0.4rem 1rem;
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble);
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* scroll progress, as a marker line */
[data-sc-progress] {
  height: 7px;
  background: var(--pink);
  border-bottom: 2px solid var(--ink);
}

/* ---------- shared cartoon parts ---------- */

.btn {
  display: inline-block;
  padding: 0.18em 1.15em 0.3em;
  font-size: clamp(2rem, 1.7rem + 1vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
  background: var(--pink);
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: translate 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--ink); }
.btn:active { translate: 4px 4px; box-shadow: 2px 2px 0 var(--ink); }
.btn--yellow { background: var(--yellow); }

.bubble {
  position: relative;
  max-width: 24em;
  padding: 0.75em 1.15em 0.85em;
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 6px 6px 0 var(--ink);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 2.4em;
  bottom: -0.72em;
  width: 1.3em;
  height: 1.3em;
  background: #fff;
  border-right: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  rotate: 58deg;
  transform: skewX(24deg);
  box-shadow: 5px 5px 0 var(--ink);
}

.frame {
  margin: 0;
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: var(--frame);
  box-shadow: 9px 9px 0 var(--ink);
  overflow: hidden;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.doodle svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: var(--fill, #fff);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  animation: boil 0.9s steps(1) infinite;
  animation-delay: var(--bd, 0s);
}
.doodle--line svg { fill: none; stroke-width: 6; }

/* hand-drawn "line boil": three held poses, like a cartoon on threes */
@keyframes boil {
  0%   { rotate: -2.5deg; translate: 0 0; }
  33%  { rotate: 1.5deg;  translate: 1.5px -1px; }
  66%  { rotate: -0.5deg; translate: -1px 1.5px; }
}

.dots {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 22%, transparent 24%);
  background-size: 16px 16px;
  opacity: 0.16;
}

/* ---------- header ---------- */

.bar {
  position: relative;
  z-index: 5;
  background: var(--yellow);
}
.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem 0.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 46px; }
.name {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.9rem);
  line-height: 1;
  white-space: nowrap;
}
.bar nav a {
  position: relative;
  font-family: var(--sc-font-display);
  -webkit-text-stroke: 0.02em currentColor;
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.bar nav a svg {
  position: absolute;
  left: -6%;
  bottom: -0.28em;
  width: 112%;
  height: 0.4em;
  fill: none;
  stroke: var(--pink);
  stroke-width: 7;
  stroke-linecap: round;
  max-width: none;
}

/* ---------- 1. hero ---------- */

.hero {
  background: var(--yellow);
  overflow: clip;
}
.hero .dots { right: -4%; bottom: -8%; width: 46%; height: 60%; border-radius: 50%; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: calc(100svh - 5.5rem);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
}
.hero-copy { position: relative; z-index: 3; }
.hero .bubble { margin-top: clamp(1.8rem, 4vw, 3rem); }
.hero .btn { margin-top: 2.4rem; }

.clips {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 13px);
  height: clamp(330px, 62vh, 600px);
}
.clip-w { flex: 1 1 0; height: var(--h); }
.clip {
  display: block;
  height: 100%;
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 16px 22px 14px 20px / 20px 14px 22px 16px;
  box-shadow: 6px 6px 0 var(--ink);
  rotate: var(--r, 0deg);
  overflow: hidden;
  animation: pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 80ms + 200ms);
}
.clip img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pop {
  from { scale: 0.2; opacity: 0; }
  to   { scale: 1; opacity: 1; }
}

.hero .d-burst { right: -3%; top: 2%; width: clamp(110px, 15vw, 210px); --fill: var(--pink); z-index: 0; }
.hero .d-star  { left: 46%; top: 6%; width: clamp(48px, 5.5vw, 84px); --fill: #fff; }
.hero .d-note  { right: 2%; bottom: 10%; width: clamp(56px, 6.5vw, 96px); --fill: var(--ink); z-index: 3; }
.hero .d-spark { left: 40%; bottom: 14%; width: clamp(36px, 4vw, 60px); --fill: var(--blue); }
.hero .d-squig { left: 0; bottom: 5%; width: clamp(120px, 16vw, 230px); }

/* the mascot, as die-cut stickers */
.clips { padding-right: 24%; }
.hero-char {
  position: absolute;
  right: -5%;
  bottom: -10%;
  height: 88%;
  z-index: 2;
}
.hero-char img {
  height: 100%;
  width: auto;
  max-width: none;
  rotate: 4deg;
  animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 0.85s backwards;
}
.char-mic {
  position: absolute;
  left: -9%;
  bottom: -16%;
  height: 72%;
  z-index: 3;
}
.char-mic img { height: 100%; width: auto; max-width: none; rotate: -5deg; }
.signature { display: flex; align-items: flex-end; gap: clamp(0.5rem, 2vw, 2rem); }
.signature svg { flex: 1 1 auto; min-width: 0; }
.char-sign {
  flex: none;
  width: auto;
  height: clamp(120px, 31svh, 300px);
  max-width: none;
  rotate: 3deg;
  margin-bottom: -0.4rem;
}

/* a cartoon phone: scrolling plays the clip */
.phone {
  flex: 0 0 clamp(12.5rem, 23vw, 19rem);
  padding: 0.9rem 0.6rem 0.7rem;
  background: var(--ink);
  border-radius: 34px 38px 32px 36px;
  box-shadow: 9px 9px 0 rgba(27, 20, 68, 0.35);
  rotate: -3deg;
}
.phone-screen {
  position: relative;
  aspect-ratio: 3 / 4.25;
  background: #fff;
  border-radius: 22px 24px 20px 22px;
  overflow: hidden;
}
.phone-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 30%;
  height: 12px;
  translate: -50% 0;
  background: var(--ink);
  border-radius: 99px;
  z-index: 2;
}

/* ---------- 2. UGC Campaigns (sideways rail) ---------- */

.campaigns { background: var(--blue); }
.campaigns [data-sc-stage] { display: flex; align-items: center; }
.campaigns .dots { left: -3%; top: -6%; width: 34%; height: 46%; border-radius: 50%; }
.rail {
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-inline: clamp(1.5rem, 8vw, 9rem);
}
.rail-lead { flex: 0 0 min(32rem, 78vw); }
.rail-lead p { margin-top: 1.6rem; max-width: 19em; font-size: 1.15em; }
.panel { flex: 0 0 clamp(17.5rem, 42vw, 36rem); }
.panel:nth-child(2) { rotate: -1.2deg; }
.panel:nth-child(3) { rotate: 1.4deg; }
.panel .frame { height: clamp(170px, 44svh, 430px); }
.caption {
  position: relative;
  z-index: 1;
  margin: -1.4rem 0.9rem 0 1.4rem;
  padding: 0.7rem 1.1rem 0.9rem;
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: 6px 14px 8px 12px;
  box-shadow: 6px 6px 0 var(--ink);
}
.panel:nth-child(3) .caption { background: var(--pink); }
.caption p { margin-top: 0.3rem; font-size: 0.92em; line-height: 1.32; }
.campaigns .d-arrow { left: clamp(1.5rem, 8vw, 9rem); bottom: 9%; width: clamp(110px, 12vw, 170px); }

/* ---------- 3. Showcasing Music Business Skills ---------- */

.skills {
  background: var(--pink);
  padding-block: clamp(5rem, 11vw, 9rem);
  overflow: clip;
}
.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.skills-photo { position: relative; }
.skills .frame { aspect-ratio: 7 / 5; rotate: -2deg; }
.skills .frame > div { height: 100%; }
.skills-copy p { margin-top: 1.6rem; max-width: 22em; }
.skills-copy .btn { margin-top: 2rem; }
.skills .d-burst { left: -7%; top: -12%; width: clamp(100px, 14vw, 190px); --fill: var(--yellow); z-index: 0; }
.skills .d-bolt { right: -3%; top: -9%; width: clamp(54px, 7vw, 100px); --fill: var(--yellow); z-index: 3; }
.skills .dots { right: -5%; top: -10%; width: 38%; height: 60%; border-radius: 50%; }

/* ---------- 4. Our Vision and Expertise (pinned) ---------- */

.vision { background: var(--purple); color: var(--paper); }
.vision-stage { display: flex; align-items: center; }
.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.vision h2 { text-shadow: 0.04em 0.04em 0 var(--ink); line-height: 0.92; }
.vision h2 .sc-split--line { padding: 0.2em 0.12em 0.22em; margin: -0.2em -0.12em -0.22em; }
.vision-copy p { margin-top: 1.8rem; max-width: 22em; }
.vision-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.4vw, 2rem);
  align-items: center;
}
.vision-pair .frame { aspect-ratio: 4 / 5; max-height: 62svh; }
.vision-pair > div:nth-child(1) .frame { rotate: -3deg; }
.vision-pair > div:nth-child(2) .frame { rotate: 2.5deg; margin-top: 18%; }
.vision .d-spark { left: 44%; top: 14%; width: clamp(40px, 4.5vw, 66px); --fill: var(--yellow); }
.vision .d-star { right: 3%; bottom: 9%; width: clamp(50px, 6vw, 90px); --fill: var(--pink); }
.vision .dots { left: -4%; bottom: -10%; width: 36%; height: 52%; border-radius: 50%; background-image: radial-gradient(#fff 22%, transparent 24%); }

/* ---------- 5. Get in Touch + signature (pinned close) ---------- */

.close { background: var(--paper); }
.close-stage { display: flex; flex-direction: column; }
.close .dots { right: -5%; top: -8%; width: 40%; height: 56%; border-radius: 50%; }
.close-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 3.2svh, 2.4rem);
  padding-block: clamp(1.2rem, 4svh, 3rem) clamp(0.8rem, 2svh, 1.6rem);
}
.close-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.close-top .bubble { margin-top: clamp(1.2rem, 3svh, 2.2rem); }
.close-top .frame { height: clamp(150px, 34svh, 330px); rotate: 3deg; }
.signature { position: relative; }
.signature svg { width: min(100%, 1060px); height: auto; overflow: visible; color: var(--ink); max-height: 30svh; }
.signature .sig-line { fill: none; stroke: var(--pink); stroke-width: 9; stroke-linecap: round; }
.close .d-star { left: 56%; top: 9%; width: clamp(46px, 5vw, 76px); --fill: var(--yellow); }

.foot {
  flex: none;
  background: var(--ink);
  color: var(--paper);
  border-top: 5px solid var(--ink);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1.6rem;
  padding-block: 0.9rem 1rem;
}
.foot-title { font-size: clamp(2.1rem, 3vw, 2.8rem); line-height: 0.9; color: var(--yellow); }
.foot p { font-size: 0.92em; }
.foot .legal { margin-left: auto; }

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
  .hero-grid,
  .skills-grid,
  .vision-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { min-height: 0; padding-top: 1.2rem; }
  .clips { height: clamp(230px, 60vw, 360px); }
  .hero .d-burst { top: auto; bottom: 30%; right: -7%; width: 92px; }
  .hero .d-star { left: auto; right: 5%; top: 47%; }
  .hero .d-spark { left: auto; right: 30%; bottom: 3%; }
  .hero .d-squig { display: none; }
  .brand img { width: 38px; }
  .clips { padding-right: 20%; }
  .hero-char { right: -3%; }
  .char-mic { left: -3%; height: 62%; }
  .char-sign { height: clamp(96px, 19svh, 150px); }
  .skills-copy { order: -1; }
  .vision-pair { width: min(100%, 26rem); }
  .vision-pair .frame { max-height: 30svh; }
  .vision-copy p { margin-top: 1.1rem; }
  .close-top { grid-template-columns: minmax(0, 1fr) clamp(96px, 26vw, 150px); }
  .close-top .frame { height: clamp(110px, 20svh, 180px); }
  .foot .legal { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .clip, .doodle svg, .hero-char img { animation: none; }
  .btn { transition: none; }
}
}
