:root {
  --bg: #ffffff;
  --ink: #0f0f0f;
  --muted: rgba(15, 15, 15, 0.6);
  --glass: rgba(255, 255, 255, 0.02);
  --glass-scrolled: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  --blur: 36px;
  --blur-strong: 44px;

  --pad-x: clamp(20px, 4vw, 52px);
  --nav-h: 52px;
  --link-gap: clamp(18px, 3vw, 36px);
  --link-size: clamp(0.82rem, 1.6vw, 0.95rem);
  --brand-size: clamp(0.9rem, 1.8vw, 1.02rem);
  --logo-size: clamp(28px, 3.2vw, 36px);
  --section-pad: clamp(40px, 8vw, 100px);
  --store-cols: 5;
  --store-gap: clamp(12px, 2vw, 20px);
}

/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Typography utilities */
.text-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1.1;
  display: inline-block;
}

.text-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(15, 15, 15, 0.7);
}

.text-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 15, 15, 0.6);
}

/* Store rail title */
.text-store-title {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Store rail subtitle */
.text-store-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(15, 15, 15, 0.6);
}

/* Work panels text */
.text-work-panels {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Footer text */
.text-footer-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.text-footer-note {
  font-size: 0.95rem;
  color: rgba(15, 15, 15, 0.65);
}

.text-footer-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 15, 15, 0.5);
}

.text-footer-link {
  font-size: 0.9rem;
  color: rgba(15, 15, 15, 0.7);
}

.text-navlinks {
  font-size: var(--link-size);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

/* Text color modifiers */
.text--light {
  color: #111111;
}

.text--dark {
  color: #ffffff;
}

/* Auto text inversion based on theme */
.theme-light .text-auto {
  color: #111111;
}

.theme-dark .text-auto {
  color: #ffffff;
}

/* Global type + background */
body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header: glass nav shell */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  --nav-ink: #ffffff;
  --nav-ink-hover: rgba(255, 255, 255, 0.7);
  color: var(--nav-ink);
  border-bottom: 1px solid transparent;
  background: transparent;
  isolation: isolate;
  box-shadow: none;
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.00) 60%
  );
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 40ms;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(22px) saturate(160%) contrast(110%);
  backdrop-filter: blur(22px) saturate(160%) contrast(110%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    -webkit-backdrop-filter 280ms ease, backdrop-filter 280ms ease;
}



.header.scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header.light {
  --nav-ink: #111111;
  --nav-ink-hover: rgba(17, 17, 17, 0.6);
}

.header.scrolled::before {
  opacity: 0.32;
}

.header.scrolled::after {
  backdrop-filter: blur(28px) saturate(160%) contrast(110%);
  -webkit-backdrop-filter: blur(28px) saturate(160%) contrast(110%);
  opacity: 0.95;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header::after {
    display: none;
  }
}

/* Nav layout */
.nav {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

.nav__slot {
  display: flex;
  align-items: center;
  width: var(--logo-size);
}

.nav__slot--logo {
  justify-content: center;
}

.nav__slot--spacer {
  justify-content: center;
}

.nav__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav__logo {
  width: var(--logo-size);
  height: auto;
  display: block;
  transition: filter 0.2s ease;
}

.header.light .nav__logo {
  filter: invert(1) brightness(0.15);
}

.nav__center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--link-gap);
}

.nav__link {
  position: relative;
  opacity: 0.7;
  padding: 4px 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  opacity: 1;
  color: var(--nav-ink-hover);
}

.nav__link.active {
  opacity: 1;
  color: var(--nav-ink);
}

.nav__link:focus-visible,
.nav__logo-link:focus-visible {
  outline: 2px solid var(--nav-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  padding-top: 0;
}

/* Generic section wrapper */
.section {
  min-height: 100vh;
  padding: var(--section-pad) var(--pad-x);
  display: flex;
  align-items: center;
}

/* Shared intro stack (label + title) */
.section__intro {
  display: grid;
  gap: 12px;
}

/* Interlude section */
.section--interlude {
  min-height: 20vh;
  align-items: center;
  background: #ff3300;
}

.interlude__body {
  width: 100%;
  display: grid;
  gap: 10px;
}

.interlude__label {
  color: var(--muted);
}

.interlude__text {
  max-width: 520px;
}

/* Section variants */
.section--about,
/* About section */
.about__body {
  width: 100%;
  max-width: 100%;
}

.about__label {
  color: var(--muted);
}

/* About section */
.section--about,
#about {
  background: #454545;
}

/* Work section */
.section--work,
#work,
.work {
  background: #f8f7f5;
  align-items: flex-start;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
}

/* Under construction page */
.section--construction {
  background: #000000;
  color: #f8f7f5;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.construction__body {
  max-width: 520px;
  text-align: center;
}

.construction__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  background: rgba(0, 0, 0, 0.35);
}

.construction__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .construction__video {
    object-fit: contain;
    background: #000000;
  }
}

@media (max-width: 767px) {
  .construction__video {
    object-fit: cover;
    transform: scale(1.03);
  }
}

/* Work detail pages */
.section--detail,
.detail {
  background: #0f0f0f;
  align-items: center;
}

.section--detail.theme-light,
.detail.theme-light {
  background: #f8f7f5;
}

.section--detail.theme-light .detail__link {
  color: rgba(15, 15, 15, 0.6);
}

.section--detail.theme-light .detail__link:hover {
  color: rgba(15, 15, 15, 0.9);
}

.detail__body {
  width: 100%;
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.detail__media {
  height: clamp(260px, 40vw, 420px);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 55%),
    #151515;
}

.detail__meta {
  display: grid;
  gap: 8px;
}

.detail__link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.detail__link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Store section */
.section--store,
#store {
  background: #f7f2f2;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
}

.store__body {
  width: 100%;
  max-width: 100%;
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.store__label {
  color: var(--muted);
}

.store__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  max-width: 180px;
  border: 1px solid rgba(15, 15, 15, 0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(15, 15, 15, 0.85);
}

.store__cta:hover {
  background: rgba(15, 15, 15, 0.9);
  color: #ffffff;
}


/* Footer section */
.section--footer,
.footer-section {
  background: #ffffff;
  min-height: 32vh;
  align-items: stretch;
}

.footer-inner {
  width: 100%;
  display: grid;
  gap: 24px;
}

.footer-brand {
  max-width: 360px;
  display: grid;
  gap: 12px;
}

.footer-note {
  color: rgba(15, 15, 15, 0.65);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.footer-col {
  display: grid;
  gap: 8px;
  color: rgba(15, 15, 15, 0.7);
}

.footer-title {
  color: rgba(15, 15, 15, 0.5);
}

.footer-col a,
.footer-col span {
  color: inherit;
}

.hero {
  position: relative;
  padding-top: calc(var(--section-pad) + var(--nav-h));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("wallpaper macbookair.png") center / cover no-repeat;
  transform: rotate(180deg);
}

.hero__body {
  position: relative;
  z-index: 1;
  max-width: 560px;
  display: grid;
  gap: 14px;
}

.hero__label {
  color: rgba(255, 255, 255, 0.7);
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hero__note {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.75);
}

.work__body {
  width: 100%;
  max-width: 100%;
}

.work__label {
  color: var(--muted);
}

.section__layout {
  margin-top: 88px;
  display: grid;
  gap: 64px;
}

.work__text {
  display: grid;
  gap: 18px;
  max-width: 420px;
}

.work__text p {
  color: rgba(15, 15, 15, 0.7);
}

.work__panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Work tiles */
.work__panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: auto;
  position: relative;
  transition: color 0.35s ease;
  overflow: visible;
  --panel-bg: linear-gradient(135deg, #dadada, #f3f3f3);
  --text-color: rgba(15, 15, 15, 0.6);
}

.work__panel-media {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: var(--panel-bg);
  transition: height 0.45s ease;
  z-index: 0;
}

.work__panel-text {
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
  transition: color 0.35s ease;
  position: relative;
  z-index: 1;
}

.work__panel:hover {
  color: #ffffff;
}

.work__panel:hover .work__panel-media {
  height: 240px;
}

.work__panel:nth-child(2) {
  --panel-bg: url("Foto.png") center / cover no-repeat;
  --text-color: #ffffff;
}

.work__panel:nth-child(3) {
  --panel-bg: #ff3300;
  --text-color: #ffffff;
}

.work__panel:nth-child(1) {
  --panel-bg:  #c9de0d;
  --text-color: #ffffff;
}
.work__panel:nth-child(4) {
  --panel-bg: #0dde2c;
  --text-color: #ffffff;
}
.work__panel:hover .work__panel-text {
  color: #ffffff;
}

.work__panel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

/* Store strip: full-bleed carousel */
.store__carousel {
  margin-top: auto;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 48vh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--store-gap);
  background: #CCCCCC;
  padding: clamp(16px, 3vw, 28px) clamp(10px, 2vw, 18px);
  box-sizing: border-box;
}

.store__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (var(--store-gap) * (var(--store-cols) - 1))) / var(--store-cols)
  );
  gap: var(--store-gap);
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.store__track::-webkit-scrollbar {
  display: none;
}

.store__arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.4);
  background: rgba(255, 255, 255, 0.5);
  color: #111111;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.store__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.store__shelf--grid {
  height: auto;
  min-height: 80vh;
  grid-auto-rows: minmax(220px, 1fr);
  padding: clamp(24px, 4vw, 48px) var(--pad-x) clamp(40px, 6vw, 64px);
  row-gap: clamp(18px, 3vw, 28px);
  column-gap: clamp(12px, 2vw, 20px);
  background: #5a5a5a;
  box-sizing: border-box;
}

/* Store item tile */
.store__item {
  background: #565656;
  display: grid;
  grid-template-rows: auto auto;
  padding: 18px;
  gap: 16px;
  height: 100%;
  scroll-snap-align: start;
}

/* Store item visual */
.store__media {
  height: clamp(140px, 18vw, 220px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgb(255, 255, 255);
}

/* Store item footer row */
.store__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* Store item title */
.store__title {
  margin-bottom: 6px;
}

/* Store item subtitle */
.store__subtitle {
  color: rgba(15, 15, 15, 0.6);
}

/* Store item button */
.store__button {
  background: transparent;
  border: 1px solid rgba(15, 15, 15, 0.5);
  color: inherit;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 14px;
}


.footer__label {
  color: var(--muted);
}


@media (max-width: 1200px) {
  :root {
    --store-cols: 4;
  }
}

@media (max-width: 960px) {
  :root {
    --store-cols: 3;
  }
}

@media (max-width: 720px) {
  :root {
    --store-cols: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 48px;
    --link-gap: clamp(12px, 2.5vw, 20px);
  }

  .nav-center {
    font-size: 0.8rem;
    gap: var(--link-gap);
  }

  .brand {
    font-size: 0.88rem;
  }
}

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

  .nav-link,
  .nav-link::after,
  .site-header {
    transition: none !important;
  }
}
