:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6b7280;
  --card: #f5f7fb;
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.portfolio-intro {
  min-height: 100vh;
  overflow: hidden;
  background: #0c0a00;
  color: #0c0a00;
}

body.portfolio-intro > * {
  display: none !important;
}

.portfolio-intro-screen {
  display: none;
}

body.portfolio-intro .portfolio-intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0c0a00;
}

.portfolio-intro__content {
  display: flex;
  width: min(357px, 100%);
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.portfolio-intro__card {
  display: flex;
  width: 100%;
  height: 200px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: #efecdd;
}

.portfolio-intro__copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.portfolio-intro__bio,
.portfolio-intro__writing,
.portfolio-intro__meta,
.portfolio-intro__status {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
}

.portfolio-intro__bio {
  width: 100%;
  color: rgba(12, 10, 0, 0.72);
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.13px;
}

.portfolio-intro__bio strong {
  color: #0c0a00;
  font-weight: 400;
}

.portfolio-intro__bio a {
  color: #0c0a00;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: rgba(12, 10, 0, 0.4);
  text-decoration-thickness: 5%;
  text-underline-offset: 1px;
}

.portfolio-intro__bio a:hover,
.portfolio-intro__bio a:focus-visible {
  text-decoration-color: #0c0a00;
}

.portfolio-intro__writing {
  width: 100%;
  color: rgba(12, 10, 0, 0.72);
  font-weight: 400;
  line-height: 18px;
}

.portfolio-intro__writing a {
  color: #0c0a00;
  line-height: 22px;
  letter-spacing: -0.13px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: rgba(12, 10, 0, 0.4);
  text-decoration-thickness: 5%;
  text-underline-offset: 1px;
}

.portfolio-intro__writing a:hover,
.portfolio-intro__writing a:focus-visible {
  text-decoration-color: #0c0a00;
}

.portfolio-intro__footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
}

.portfolio-intro__meta {
  min-width: 0;
  flex: 1 0 0;
  color: #efecdd;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  opacity: 0.3;
  white-space: nowrap;
}

.portfolio-intro__status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #7ee35d;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.portfolio-intro__status img {
  display: block;
  width: 16px;
  height: 16px;
}

@media (max-width: 404px) {
  .portfolio-intro__card {
    height: auto;
    min-height: 200px;
  }

  .portfolio-intro__footer {
    padding: 0;
  }

  .portfolio-intro__meta {
    white-space: normal;
  }
}

body.portfolio-maintenance {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #000000 0%, #151723 100%);
  color: #ffffff;
}

body.portfolio-maintenance > * {
  display: none !important;
}

.maintenance-screen {
  display: none;
}

.maintenance-stars {
  display: none;
}

body.portfolio-maintenance .maintenance-stars {
  display: none !important;
}

.maintenance-stars__field {
  display: none;
}

body.portfolio-maintenance .maintenance-stars__field {
  position: absolute;
  inset: -8vh -8vw;
  z-index: 1;
  display: block !important;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.36) 0 1.6px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.31) 0 1.15px, transparent 1.35px),
    radial-gradient(circle, rgba(255, 255, 255, 0.25) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 0.85px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 0.75px, transparent 0.95px),
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 0.65px, transparent 0.85px),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 0.55px, transparent 0.75px),
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 0 0.45px, transparent 0.65px);
  background-position:
    4vw 6vh,
    12vw 18vh,
    29vw 4vh,
    41vw 23vh,
    7vw 38vh,
    23vw 64vh,
    58vw 9vh,
    71vw 47vh;
  background-size:
    47px 53px,
    29px 31px,
    37px 43px,
    23px 27px,
    19px 23px,
    31px 37px,
    17px 21px,
    13px 17px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.18));
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(ellipse 410px 90px at 50% 50%, transparent 0 68%, #000000 72%);
  mask-image: radial-gradient(ellipse 410px 90px at 50% 50%, transparent 0 68%, #000000 72%);
}

body.portfolio-maintenance .maintenance-stars__field::before,
body.portfolio-maintenance .maintenance-stars__field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  mix-blend-mode: screen;
}

body.portfolio-maintenance .maintenance-stars__field::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 0 2.4px, transparent 2.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 1.9px, transparent 2.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 1.35px, transparent 1.65px);
  background-position:
    8vw 12vh,
    31vw 35vh,
    63vw 16vh;
  background-size:
    173px 149px,
    211px 181px,
    139px 167px;
  opacity: 0.88;
}

body.portfolio-maintenance .maintenance-stars__field::after {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 3.2px, transparent 3.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 2.6px, transparent 2.9px),
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 1.8px, transparent 2.1px);
  background-position:
    17vw 21vh,
    51vw 62vh,
    78vw 28vh;
  background-size:
    307px 251px,
    269px 229px,
    193px 157px;
  opacity: 0.72;
}

body.portfolio-maintenance .maintenance-stars::before,
body.portfolio-maintenance .maintenance-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 410px 90px at 50% 50%, transparent 0 68%, #000000 72%);
  mask-image: radial-gradient(ellipse 410px 90px at 50% 50%, transparent 0 68%, #000000 72%);
}

body.portfolio-maintenance .maintenance-stars::before {
  opacity: 0.82;
  background-image:
    url("./constellations/Cas.svg"),
    url("./constellations/Leo.svg"),
    url("./constellations/Cyg.svg"),
    url("./constellations/And.svg"),
    url("./constellations/Peg.svg"),
    url("./constellations/Dra.svg"),
    url("./constellations/Lyr.svg"),
    url("./constellations/Sco.svg"),
    url("./constellations/Per.svg"),
    url("./constellations/Cep.svg"),
    url("./constellations/Aql.svg"),
    url("./constellations/CrB.svg");
  background-size:
    168px auto,
    142px auto,
    176px auto,
    154px auto,
    186px auto,
    150px auto,
    118px auto,
    162px auto,
    138px auto,
    152px auto,
    130px auto,
    116px auto;
  background-position:
    4vw 6vh,
    20vw 9vh,
    42vw 5vh,
    67vw 8vh,
    84vw 7vh,
    10vw 27vh,
    29vw 29vh,
    73vw 28vh,
    90vw 31vh,
    7vw 72vh,
    36vw 78vh,
    79vw 75vh;
}

body.portfolio-maintenance .maintenance-stars::after {
  opacity: 0.72;
  background-image:
    url("./constellations/Tau.svg"),
    url("./constellations/UMa.svg"),
    url("./constellations/Ori.svg"),
    url("./constellations/Cas.svg"),
    url("./constellations/Per.svg"),
    url("./constellations/Aql.svg"),
    url("./constellations/And.svg"),
    url("./constellations/Lyr.svg"),
    url("./constellations/CrB.svg"),
    url("./constellations/Sco.svg"),
    url("./constellations/Cyg.svg"),
    url("./constellations/Leo.svg");
  background-size:
    136px auto,
    182px auto,
    156px auto,
    126px auto,
    118px auto,
    132px auto,
    148px auto,
    98px auto,
    102px auto,
    144px auto,
    132px auto,
    116px auto;
  background-position:
    12vw 17vh,
    53vw 16vh,
    77vw 18vh,
    2vw 47vh,
    21vw 45vh,
    62vw 43vh,
    87vw 51vh,
    14vw 58vh,
    32vw 63vh,
    58vw 70vh,
    72vw 61vh,
    92vw 78vh;
}

body.portfolio-maintenance .maintenance-stars img {
  position: absolute;
  z-index: 3;
  display: block;
  width: min(14vw, 230px);
  height: auto;
  opacity: 0.84;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
  mix-blend-mode: screen;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(1) {
  left: 8vw;
  top: 12vh;
  transform: rotate(-12deg) scale(1.05);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(2) {
  left: 34vw;
  top: 8vh;
  transform: rotate(9deg) scale(0.92);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(3) {
  right: 11vw;
  top: 13vh;
  transform: rotate(14deg) scale(1.08);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(4) {
  left: 5vw;
  top: 36vh;
  transform: rotate(21deg) scale(0.82);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(5) {
  right: 5vw;
  top: 35vh;
  transform: rotate(-18deg) scale(0.9);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(6) {
  left: 17vw;
  bottom: 13vh;
  transform: rotate(7deg) scale(1.04);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(7) {
  left: 44vw;
  bottom: 8vh;
  transform: rotate(-8deg) scale(0.86);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(8) {
  right: 14vw;
  bottom: 14vh;
  transform: rotate(17deg) scale(1.02);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(9) {
  left: 63vw;
  top: 7vh;
  transform: rotate(-5deg) scale(0.72);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(10) {
  left: 10vw;
  bottom: 34vh;
  transform: rotate(-24deg) scale(0.7);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(11) {
  right: 9vw;
  bottom: 35vh;
  transform: rotate(28deg) scale(0.74);
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(12) {
  left: 46vw;
  top: 25vh;
  transform: rotate(16deg) scale(0.64);
  opacity: 0.48;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(13) {
  left: 2vw;
  top: 20vh;
  transform: rotate(31deg) scale(0.62);
  opacity: 0.44;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(14) {
  left: 24vw;
  top: 2vh;
  transform: rotate(-29deg) scale(0.56);
  opacity: 0.38;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(15) {
  right: 25vw;
  top: 3vh;
  transform: rotate(22deg) scale(0.58);
  opacity: 0.42;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(16) {
  right: 2vw;
  top: 20vh;
  transform: rotate(-33deg) scale(0.64);
  opacity: 0.46;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(17) {
  left: 2vw;
  top: 58vh;
  transform: rotate(-14deg) scale(0.58);
  opacity: 0.4;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(18) {
  left: 30vw;
  top: 52vh;
  transform: rotate(27deg) scale(0.48);
  opacity: 0.34;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(19) {
  right: 30vw;
  top: 55vh;
  transform: rotate(-17deg) scale(0.5);
  opacity: 0.36;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(20) {
  right: 3vw;
  top: 58vh;
  transform: rotate(12deg) scale(0.56);
  opacity: 0.41;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(21) {
  left: 28vw;
  bottom: 2vh;
  transform: rotate(18deg) scale(0.6);
  opacity: 0.45;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(22) {
  right: 29vw;
  bottom: 3vh;
  transform: rotate(-21deg) scale(0.58);
  opacity: 0.39;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(23) {
  left: 49vw;
  top: 12vh;
  transform: rotate(-11deg) scale(0.48);
  opacity: 0.32;
}

body.portfolio-maintenance .maintenance-stars img:nth-of-type(24) {
  left: 50vw;
  bottom: 18vh;
  transform: rotate(24deg) scale(0.5);
  opacity: 0.34;
}

body.portfolio-maintenance .maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 83px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.48;
  text-align: center;
  color: #ffffff;
  background: transparent;
}

body.portfolio-maintenance .maintenance-screen span,
body.portfolio-maintenance .maintenance-screen a {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

body.portfolio-maintenance .maintenance-screen a {
  color: #ffffff;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #727272;
  text-decoration-thickness: 5%;
  text-underline-offset: 2px;
}

body.portfolio-maintenance .maintenance-screen a:hover {
  text-decoration-color: #ffffff;
}

body.portfolio-maintenance .maintenance-screen__dot {
  color: #ffffff;
}

@media (max-width: 640px) {
  body.portfolio-maintenance .maintenance-screen {
    flex-wrap: wrap;
    padding: 24px;
    font-size: 16px;
  }

  body.portfolio-maintenance .maintenance-stars img {
    width: min(34vw, 180px);
  }

  body.portfolio-maintenance .maintenance-stars::before,
  body.portfolio-maintenance .maintenance-stars::after,
  body.portfolio-maintenance .maintenance-stars__field {
    -webkit-mask-image: radial-gradient(ellipse 220px 90px at 50% 50%, transparent 0 68%, #000000 72%);
    mask-image: radial-gradient(ellipse 220px 90px at 50% 50%, transparent 0 68%, #000000 72%);
  }

  body.portfolio-maintenance .maintenance-stars img:nth-of-type(n + 15) {
    display: none;
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.top-scribble { 
  display: flex; 
  justify-content: center; 
  margin-top: 24px;
  margin-bottom: 20px; /* spacing to profile row */
}
.top-scribble img {
  width: 438px;
  height: 72px;
  object-fit: contain;
}

/* Profile row immediately under scribble */
.profile {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px; /* row-gap 12px, column-gap 24px */
  padding: 0 16px 0;
  margin-bottom: 28px; /* spacing to header */
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500; /* Medium */
  color: #000000;
}
.profile a {
  color: #000000;
  text-decoration: none;
  position: relative;
}
.profile a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-image: radial-gradient(circle, #c1c1c1 0.65px, transparent 0.65px);
  background-size: 4.5px 1.5px;
  background-repeat: repeat-x;
}
.profile a:hover::after {
  background-image: linear-gradient(#c1c1c1, #c1c1c1);
  background-size: 100% 1.5px;
}
.profile .profile-links { display: inline-flex; gap: 24px; }
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
}

.site-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 16px 6px; /* remove extra top padding to keep 28px rhythm */
}

.crossed {
  display: flex;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
}
.crossed .cross {
  position: relative;
}
.crossed .cross::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 2px;
  background: #e11d48;
  transform: rotate(-8deg);
}

.values {
  display: flex;
  gap: 36px;
  font-weight: 700;
  font-size: 20px;
}
.values a { color: inherit; text-decoration: none; }


.works {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 70%);
  border-radius: 28px;
  padding: 14px 16px 16px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04), 0 14px 40px rgba(0,0,0,0.06);
}
.card .thumb {
  height: 220px;
  border-radius: 26px;
  background: #e9eef7;
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 6px 0;
  font-size: 26px;
}
.card p {
  margin: 0 0 10px 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
}
.card small {
  color: #6b7280;
}

/* Subtle per-card accent tints */
.card.teez .thumb { background: linear-gradient(180deg, #eafff3, #e0fff0); }
.card.dzeny .thumb { background: linear-gradient(180deg, #eaf0ff, #e7ecff); }
.card.fresh .thumb { background: linear-gradient(180deg, #e7f8ff, #e6f3ff); }
.card.tele2 .thumb { background: linear-gradient(180deg, #eaf4ff, #e7f0ff); }
.card.socpanel .thumb { background: linear-gradient(180deg, #f6eaff, #f1e6ff); }


@media (max-width: 1200px) {
  .works { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .crossed { font-size: 18px; }
  .values { gap: 20px; font-size: 16px; }
  .works { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 520px) {
  .profile { flex-wrap: wrap; gap: 12px; }
  .works { grid-template-columns: 1fr; }
}

/* BodyWorks component */
.teez-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  isolation: isolate;
  margin: 0 auto;
  width: 256px;
  height: 337px;
  position: relative;
  margin-bottom: 16px; /* requested bottom spacing */
}
.teez-spacer {
  width: 256px;
  height: 220px;
  margin: -28px 0; /* as specified */
  z-index: 1;
}
.teez-visual {
  position: absolute;
  width: 256px;
  height: 220px;
  left: 0;
  top: 0;
  z-index: 2; /* above spacer and background */
  background-image: url('./Teez_Web.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}
/* Dzeny visual override */
.teez-card--dzeny .teez-visual {
  background-image: url('./Dzeny_Web.png');
}
.body-works {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* allow bottom spacing to be controlled by padding */
  align-items: flex-start;
  padding: 48px 16px 24px 16px; /* bottom padding 24px */
  gap: 24px;

  width: 200px;
  height: 165px;

  background: linear-gradient(181.73deg, rgba(180, 255, 135, 0.12) 19.8%, rgba(180, 255, 135, 0.12) 59.7%);
  border-radius: 0 0 24px 24px;

  box-sizing: border-box;
  flex: 0 0 auto;
  overflow: hidden;
}
.body-works { margin-left: auto; margin-right: auto; }

/* Row of five cards centered on page */
.works-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 30px;

  position: fixed;
  width: 1259px;
  height: 337px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* ContentPage */
.content-page {
  display: flex;
  flex-direction: column;
  align-items: center; /* center inner rows */
  padding: 0;
  gap: 12px;

  width: 1274px;
  height: 10155px;

  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
  margin: 40px auto; /* center on page */
}

.content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 15px;

  width: 1260px;
  height: 600px;
  margin: 0 auto; /* center the row */
}
.content-row .content-image {
  width: 410px;
  height: 600px;
  object-fit: cover;
  border-radius: 0;
  background: #eee;
}

/* Absolute center wrapper - deprecated for stacking, removed for clean CSS */

/* Stacked content layout */
.content-stack {
  width: 1260px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  width: 1260px;
  height: 600px;
}

.content-image {
  width: 410px;
  height: 600px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.content-block-960 {
  width: 1260px;
  height: 960px;
}

.content-block-960 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Special styling for image 12 */
.content-block-960:has(img[src="./img12.png"]) {
  width: 1260px;
  height: 760px;
}

.content-block-960 img[src="./img12.png"] {
  width: 1260px;
  height: 760px;
}

/* Special styling for image 17 */
.content-block-960:has(img[src="./img17.png"]) {
  height: 800px;
}

.content-block-960 img[src="./img17.png"] {
  height: 800px;
}

/* Special styling for image 20 - change container size */
.content-block-960:has(img[src="./img20.png"]) {
  height: 615px;
}

.content-block-960 img[src="./img20.png"] {
  height: 615px;
}

/* Special styling for image 40 */
.content-block-960:has(img[src="./img40.png"]) {
  height: 760px;
}

.content-block-960 img[src="./img40.png"] {
  height: 760px;
}


/* Row with 2 images 624x760, total width 1260 with 12px gap */
.content-row-2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 1260px;
  height: 760px;
}

.content-row-2 .content-image-624 {
  width: 624px;
  height: 760px;
  object-fit: cover;
  display: block;
}

/* Mobile images - hidden by default on desktop */
.mobile-images {
  display: none; /* hidden on desktop by default */
}

/* Mobile items - hidden by default on desktop, but visible on items-page-mobile */
.mobile-items {
  display: none; /* hidden on desktop by default */
}



/* Items page - 5 centered images */
.items-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px; /* Desktop horizontal layout */
  margin: 0;
  height: auto;
  max-width: 100%;
}

.items-container img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0; /* Prevent images from shrinking */
}

/* Responsive adjustments for items container */
@media (max-width: 1200px) {
  .items-container {
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .items-container {
    gap: 24px;
  }
  
  .items-container img {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 500px) {
  .items-container {
    flex-direction: column; /* Mobile: vertical layout */
    width: 360px;
    padding: 40px 0;
    gap: 10px;
    margin: 0 auto;
  }
  
  .items-container img {
    width: 214px;
    height: 214px;
  }
}

@media (max-width: 500px) {
  /* Mobile items page specific adjustments */
  body.items-page-mobile .mobile-items {
    margin: 32px auto 96px auto;
    display: flex !important;
  }
  
  .items-page-mobile .top-section {
    padding: 16px 0;
  }
  
  .items-page-mobile .top-scribble img {
    width: 360px;
    height: 60px;
  }
}

/* Center main container on items page */
body.items-centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto; /* Allow scrolling when content overflows */
}

body.items-centered main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 0; /* Allow flex to work correctly */
}

body.items-centered .top-section {
  flex-shrink: 0;
}

/* Desktop-only transform - does not affect mobile */
@media (min-width: 501px) {
  body.items-centered main {
    transform: translateY(-36px); /* Desktop compensation only */
  }
}

/* Mobile override for items-centered main - clean without transform compensation */
@media (max-width: 500px) {
  body.items-centered main {
    align-items: flex-start;
    padding-top: 324px; /* Custom padding for optimal mobile spacing */
  }
}



/* ---------------- Mobile (images page) ---------------- */
@media (max-width: 500px) {
  .top-scribble { 
    margin-top: 16px; 
    display: flex;
    justify-content: center;
  }
  .top-scribble img { width: 360px; height: 60px; }

  /* hide desktop stacks on mobile */
  .content-stack { display: none; }
  /* hide mobile header to avoid duplicate text; keep desktop profile */
  .mobile-header { display: none; }

  /* show mobile images on mobile */
  .mobile-images {
    display: flex !important;
    width: 360px;
    margin-top: 32px !important;
    margin-bottom: 96px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .mobile-images img { width: 348px; display: block; object-fit: cover; margin: 0 auto; }
  .mobile-images img.v1 { height: 509px; }
  .mobile-images img.v2 { height: 265px; }
  
  /* Special sizing for mobile images */
  .mobile-images img[src="./imgm12.png"] { height: 220px; }
  .mobile-images img[src="./imgm16.png"] { height: 509px; }
  .mobile-images img[src="./imgm17.png"] { height: 220px; }

}

/* Mobile items page adjustments - consolidated with main mobile styles above */

/* ---------------- BodyWorks component ---------------- */
.body-works {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 16px 24px 16px;
  gap: 24px;

  width: 200px;
  height: 165px;

  background: linear-gradient(181.73deg, rgba(180, 255, 135, 0.12) 19.8%, rgba(180, 255, 135, 0.12) 59.7%);
  border-radius: 0 0 24px 24px;

  box-sizing: border-box;
  flex: 0 0 auto;
  overflow: hidden;
}

.body-works .title-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  align-self: stretch;
}

.body-works .title-text .title {
  width: auto;
  height: auto;
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  text-align: left;
  color: #0F2700;
}

.body-works .title-text .subtitle {
  width: 100%;
  height: auto;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 136%;
  color: #0F2700;
}

.body-works .works-meta {
  margin-top: auto;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 136%;  
  color: #0F2700;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Dzeny color override */
.body-works--dzeny .title-text .title,
.body-works--dzeny .title-text .subtitle,
.body-works--dzeny .works-meta {
  color: #002032;
}

/* Dzeny background override */
.body-works--dzeny {
  background: #F1FAFF;
}

/* ---------------- Combined Top Component ---------------- */
.top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  gap: 28px;
  padding-top: 24px;
}

.top-section-inner {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.top-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.top-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.top-emoji-left {
  display: flex;
  width: 51px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 30px;
}

.top-emoji-right {
  display: flex;
  width: 75px;
  height: 69px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 18px;
}

.emoji-left-sketch {
  width: 43px;
  height: 36px;
  transform: rotate(-16deg);
}

.top-emoji-left {
  position: relative;
  cursor: pointer;
}

.top-emoji-left:hover .emoji-left-sketch {
  opacity: 0;
}

.emoji-left-hover-popup {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
}

.top-emoji-left:hover .emoji-left-hover-popup {
  opacity: 1;
}

.emoji-left-hover-img {
  width: 51px;
  height: 46px;
}

.emoji-left-hover-bottom {
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.emoji-left-hover-text {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: red;
  white-space: nowrap;
  padding-top: 16px;
}

.emoji-left-hover-arrow {
  width: 21px;
  height: 15px;
  transform: rotate(156deg) scaleY(-1);
  flex-shrink: 0;
}

.emoji-right-sketch {
  width: 61px;
  height: 48px;
  transform: rotate(24deg);
}

.top-emoji-right {
  position: relative;
  cursor: pointer;
}

.top-emoji-right:hover .emoji-right-sketch {
  opacity: 0;
}

.emoji-hover-popup {
  position: absolute;
  /* center the 64×45 colored emoji in the 75×69 wrapper */
  top: 12px;
  left: 5.5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
}

.top-emoji-right:hover .emoji-hover-popup {
  opacity: 1;
}

.emoji-hover-img {
  width: 64px;
  height: 45px;
}

.emoji-hover-bottom {
  display: flex;
  align-items: center;
  padding-left: 40px;
}

.emoji-hover-arrow {
  width: 21px;
  height: 15px;
  transform: rotate(24deg);
  flex-shrink: 0;
}

.emoji-hover-text {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: red;
  white-space: nowrap;
  padding-top: 16px;
}

.top-section .top-scribble {
  margin: 0;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.top-section .profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
}

.top-section .profile span {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
}

.top-section .profile-links {
  display: flex;
  gap: 24px;
}

.top-section .profile-links a {
  color: #000000;
  text-decoration: none;
  position: relative;
}
.top-section .profile-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-image: radial-gradient(circle, #c1c1c1 0.65px, transparent 0.65px);
  background-size: 4.5px 1.5px;
  background-repeat: repeat-x;
}
.top-section .profile-links a:hover::after {
  background-image: linear-gradient(#c1c1c1, #c1c1c1);
  background-size: 100% 1.5px;
}

/* Ensure links work on all pages */
.profile-links a {
  color: #000000 !important;
  text-decoration: none !important;
  position: relative;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.profile-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-image: radial-gradient(circle, #c1c1c1 0.65px, transparent 0.65px);
  background-size: 4.5px 1.5px;
  background-repeat: repeat-x;
}
.profile-links a:hover::after {
  background-image: linear-gradient(#c1c1c1, #c1c1c1);
  background-size: 100% 1.5px;
}

/* Removed conflicting .items-page and .itemspages styles - using .items-centered instead */

/* Mobile items page specific styles */
.items-page-mobile {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.items-page-mobile .top-section {
  margin: 0;
  padding: 20px 0;
  flex-shrink: 0;
}

.items-page-mobile .profile {
  margin-bottom: 0;
}

.items-page-mobile .top-scribble {
  margin-top: 0;
  margin-bottom: 0;
}

.items-page-mobile main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 0;
  padding: 32px 0 96px 0;
  width: 100%;
  min-height: calc(100vh - 140px);
}

body.items-page-mobile .mobile-items {
  display: flex !important; /* Always visible for items-mobile.html */
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 48px;
  width: 214px;
  margin: 0 auto;
  visibility: visible !important;
}

body.items-page-mobile .mobile-items img {
  display: block !important;
  width: 214px;
  height: 214px;
  object-fit: cover;
  border-radius: 0;
  visibility: visible !important;
}

/* Things page styles */
.things-container {
  max-width: 375px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 16px 0;
}

.things-header {
  text-align: left;
  margin-bottom: 32px;
}

.things-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
}

.things-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.things-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thought-item {
  padding: 16px 0;
}

.thought-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  word-wrap: break-word;
}

.divider {
  height: 1px;
  background: #e5e7eb;
  width: 100%;
  margin: 0;
}



/* ── Work experience table ── */
.work-table {
  border: 1px solid #eaecf0;
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* Unified text style for every cell in the table */
.wt-header-row,
.wt-company-col,
.wt-name,
.wt-position,
.wt-time,
.wt-cases {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: -0.28px;
}

.wt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #818181;
}

.wt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #000;
}

.wt-company-col {
  width: 110px;
  flex-shrink: 0;
}

.wt-company-cell {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.wt-right-col {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-shrink: 0;
}

.wt-position { width: 280px; }
.wt-time     { width: 191px; }
.wt-cases    { width:  42px; text-align: right; }

.wt-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.wt-logo-border       { border: 0.5px solid rgba(0,0,0,0.10); }
.wt-logo-border-light { border: 0.5px solid rgba(0,0,0,0.12); }

.wt-logo-clip {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.wt-logo-teez {
  position: absolute;
  width: 276.5%;
  height: 138.89%;
  left: -88.25%;
  top: -19.44%;
  max-width: none;
}

.wt-name {
  color: #000;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
.wt-name::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-image: radial-gradient(circle, #c1c1c1 0.65px, transparent 0.65px);
  background-size: 4.5px 1.5px;
  background-repeat: repeat-x;
}
.wt-name:hover::after {
  background-image: linear-gradient(#c1c1c1, #c1c1c1);
  background-size: 100% 1.5px;
}
.wt-name-plain::after { display: none; }

.wt-divider {
  width: 100%;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.06) 0px,
    rgba(0,0,0,0.06) 5px,
    transparent 5px,
    transparent 10px
  );
  flex-shrink: 0;
}

/* Portfolio header */
.portfolio-header {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-synthesis: none;
  font-optical-sizing: auto;
}

.portfolio-header__content {
  width: 576px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.portfolio-header__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.portfolio-header__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-header__marker {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 2px;
  background: #00c05d;
  animation: live-marker-blink 1.4s ease-in-out infinite;
}

@keyframes live-marker-blink {
  0%, 42%, 100% {
    opacity: 1;
  }

  62% {
    opacity: 0.18;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-header__marker {
    animation: none;
  }
}

.portfolio-header h1 {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.portfolio-header__intro p {
  width: 538px;
  margin: 0;
  font-size: 16px;
  font-weight: 450;
  line-height: 22px;
  letter-spacing: 0;
}

.portfolio-header__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 450;
  line-height: 17px;
  white-space: nowrap;
}

.portfolio-header__meta a {
  color: #000;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #c1c1c1;
  text-decoration-thickness: 1.25px;
  text-underline-offset: 3px;
}
.portfolio-header__meta a:hover {
  text-decoration-style: solid;
}

/* Work calendar */
.work-calendar {
  position: relative;
  width: 240px;
  height: 140px;
  flex: 0 0 auto;
}

.work-calendar__grid {
  width: 100%;
  height: 140px;
  display: grid;
  grid-template-columns: repeat(12, 20px);
  grid-template-rows: repeat(7, 20px);
  grid-auto-flow: column;
}

.work-calendar__day {
  position: relative;
  width: 20px;
  height: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font: inherit;
}

button.work-calendar__day {
  cursor: pointer;
}

.work-calendar__mark {
  display: block;
  width: var(--mark-size, 4px);
  height: var(--mark-size, 4px);
  border-radius: var(--mark-radius, 999px);
  background: var(--mark-color, #d9d9d9);
  transition: opacity 120ms ease, transform 120ms ease;
}

.work-calendar__day[data-level="0"] {
  --mark-size: 4px;
  --mark-radius: 999px;
  --mark-color: #d9d9d9;
}

.work-calendar__day[data-level="1"] {
  --mark-size: 4px;
  --mark-radius: 0.5px;
  --mark-color: #f66b00;
}

.work-calendar__day[data-level="2"] {
  --mark-size: 8px;
  --mark-radius: 2px;
  --mark-color: #f5911f;
}

.work-calendar__day[data-level="3"] {
  --mark-size: 10px;
  --mark-radius: 2px;
  --mark-color: #ffc800;
}

.work-calendar__day[data-level="4"] {
  --mark-size: 12px;
  --mark-radius: 2px;
  --mark-color: #00c05d;
}

.work-calendar__day.is-future {
  pointer-events: none;
  opacity: 0.35;
}

.work-calendar__grid:has(.work-calendar__day:hover) .work-calendar__mark {
  opacity: 0.18;
}

.work-calendar__grid .work-calendar__day:hover .work-calendar__mark,
.work-calendar__grid .work-calendar__day:focus-visible .work-calendar__mark,
.work-calendar__day.is-selected .work-calendar__mark {
  opacity: 1;
  transform: scale(1.08);
}

.work-calendar__tooltip {
  position: fixed;
  z-index: 100;
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 100ms ease, transform 100ms ease;
  font-family: 'Inter', system-ui, sans-serif;
  white-space: nowrap;
}

.work-calendar__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-calendar__tooltip-date {
  display: block;
  color: #818181;
  font-size: 13px;
  line-height: 18px;
}

.work-calendar__tooltip-hours {
  display: block;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

@media (max-width: 500px) {
  .portfolio-header {
    width: 346px;
    padding-top: 24px;
    flex-direction: column;
  }

  .portfolio-header__content,
  .portfolio-header__intro,
  .portfolio-header__intro p {
    width: 100%;
  }

  .portfolio-header__intro p {
    line-height: 1.36;
  }

  .portfolio-header__meta {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .portfolio-header__time {
    display: none;
  }

  .work-calendar {
    width: 336px;
    max-width: 100%;
    margin-top: 28px;
  }

  .work-calendar__grid {
    grid-template-columns: repeat(12, 20px);
    justify-content: space-between;
  }

  body.items-centered main {
    padding-top: 96px;
  }

  .items-page-mobile .portfolio-header {
    flex-shrink: 0;
  }
}

@media (max-width: 374px) {
  .portfolio-header {
    width: calc(100% - 28px);
  }
}
