/* ==========================================================================
   Purple Child Creations — global styles
   Flexbox layouts throughout; no inline styles (the Content-Security-Policy blocks them).
   ========================================================================== */

:root {
  /* Brand palette */
  --void: #080808;
  --paper: #F3F1EC;
  --ash: #858585;
  --dust: #D7D5CF;
  --white: #FFFFFF;

  /* Folder accents (muted rainbow) */
  --rose: #C9A3A8;
  --lilac: #B3A6D1;
  --sage: #A9BFA6;
  --taupe: #B5A89B;
  --blue: #9FB3D1;
  --yellow: #E9DA86;
  --grey: #BDBBB6;
  --peach: #E2B49A;

  /* XP selection blue */
  --xp-select: #316AC5;
  --xp-close: #D9534F;

  --font-body: "Times New Roman", Times, serif;
  --font-display: "Times New Roman", Times, serif;

  --gutter: 40px;
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--void);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* Display headings */
.dialog__title, .folder-head__title, .cta__title, .about-copy h1, .names span,
.contact h1, .shop-head__title, .product-page__title { font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--void); color: var(--paper);
  padding: 10px 14px; z-index: 1000;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--xp-select); outline-offset: 3px; }

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.muted { color: var(--ash); }

/* ---------- Page shell ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--void);
  object-fit: cover;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand__name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__path { color: var(--ash); font-size: 12px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 2px;
}
.site-nav a[aria-current="page"] {
  background: var(--xp-select);
  color: var(--white);
  padding: 4px 6px;
}
.site-nav a[aria-current="page"]:hover { text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--paper);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.cart-link:hover { background: var(--yellow); text-decoration: none; }
.cart-link__count {
  min-width: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--void);
  color: var(--paper);
  text-align: center;
  font-weight: 700;
}

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--void);
  color: var(--paper);
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  font: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.burger__bars { display: flex; flex-direction: column; gap: 3px; }
.burger__bars span { display: block; width: 16px; height: 2px; background: currentColor; }

/* ---------- Taskbar footer ---------- */

.taskbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 10px var(--gutter);
  background: var(--void);
  color: var(--paper);
}
.taskbar__left,
.taskbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--void);
  border-radius: 0 14px 14px 0;
  padding: 8px 18px 8px 14px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.start-btn:hover { background: var(--yellow); text-decoration: none; }
.start-btn__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lilac);
  border: 2px solid var(--void);
}
.taskbar__meta { color: var(--dust); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }

.socials {
  display: flex;
  align-items: center;
  gap: 6px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 4px;
  color: inherit;
}
.socials a:hover { background: rgba(255, 255, 255, 0.12); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.socials--dark a:hover { background: rgba(0, 0, 0, 0.08); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--void);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--lilac);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lilac); }
.btn--ghost { background: transparent; color: var(--void); box-shadow: none; }
.btn--ghost:hover { background: var(--void); color: var(--paper); box-shadow: none; }
.btn--small { padding: 10px 14px; font-size: 11px; box-shadow: 3px 3px 0 var(--yellow); }
.btn--small:hover { box-shadow: 5px 5px 0 var(--yellow); }

/* ==========================================================================
   HOME — desktop
   ========================================================================== */

.desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 16px 0 40px;
  min-height: calc(100vh - 150px);
}
.desk-folders {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 36px;
  width: 58%;
}

.desk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 33.333%;
  text-align: center;
}
.desk-item:hover { text-decoration: none; }
.desk-item__icon {
  width: 96px;
  max-width: none;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.desk-item:hover .desk-item__icon,
.desk-item:focus-visible .desk-item__icon { transform: translateY(-4px) rotate(-2deg); }
.desk-item__name {
  font-size: 12px;
  text-transform: lowercase;
  padding: 1px 6px;
}
.desk-item:hover .desk-item__name,
.desk-item:focus-visible .desk-item__name {
  background: var(--xp-select);
  color: var(--white);
}
.desk-item__num { font-size: 11px; color: var(--ash); }

/* Scatter offsets (Elementor: per-widget margin) */
.nudge-1 { margin-top: 0;    padding-right: 50px; }
.nudge-2 { margin-top: 60px; padding-left: 20px; }
.nudge-3 { margin-top: 10px; padding-left: 70px; }
.nudge-4 { margin-top: 30px; padding-left: 40px; }
.nudge-5 { margin-top: 80px; padding-right: 30px; }
.nudge-6 { margin-top: 0;    padding-right: 80px; }
.nudge-7 { margin-top: 20px; padding-left: 90px; }
.nudge-8 { margin-top: 50px; padding-left: 30px; }

/* Homepage wallpaper + legible labels on top of it */
.home-wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/img/home-background.jpg") 50% 60% / cover no-repeat;
}
.is-home .header-wrap { background: rgba(243, 241, 236, 0.9); border-bottom: 2px solid var(--void); }
.is-home .desk-item__name { color: var(--white); font-size: 14px; font-weight: 700; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85); }
.is-home .desk-item__num { color: rgba(255, 255, 255, 0.85); font-size: 12px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85); }
.is-home .desk-item:hover .desk-item__name,
.is-home .desk-item:focus-visible .desk-item__name { text-shadow: none; }

/* Welcome dialog on the desktop */
.dialog {
  display: flex;
  flex-direction: column;
  width: 40%;
  max-width: 540px;
  background: var(--paper);
  border: 2px solid var(--void);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--void);
  overflow: hidden;
}
.dialog .titlebar { background: var(--lilac); }
.dialog__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 26px 28px;
}
.dialog__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.dialog__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* ==========================================================================
   Window chrome (shared by folder pages + lightbox)
   ========================================================================== */

.window {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--paper);
  border: 2px solid var(--void);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--void);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  background: var(--grey);
  border-bottom: 2px solid var(--void);
}
.titlebar__dots { display: flex; gap: 6px; }
.titlebar__dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--void);
}
.titlebar__title {
  flex: 1;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}
.titlebar__ctrls { display: flex; gap: 6px; }
.titlebar__ctrls a,
.titlebar__ctrls button,
.titlebar__ctrls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 22px;
  border: 2px solid var(--void);
  border-radius: 3px;
  background: var(--paper);
  color: var(--void);
  font: 700 12px/1 var(--font-body);
  cursor: pointer;
  padding: 0;
}
.titlebar__ctrls a:hover,
.titlebar__ctrls button:hover { background: #D9534F; color: var(--white); text-decoration: none; }

.addressbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 2px solid var(--void);
  background: var(--white);
  font-size: 12px;
}
.addressbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--ash);
  border-radius: 3px;
}
.addressbar__btn:hover { background: var(--dust); text-decoration: none; }
.addressbar__field {
  flex: 1;
  padding: 2px 8px;
  border: 1px solid var(--dust);
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window__body {
  display: flex;
  align-items: stretch;
}
.window__content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  padding: 24px;
}
.scrollbar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  border-left: 2px solid var(--void);
  background: var(--dust);
}
.scrollbar span {
  display: block;
  height: 16px;
  background: var(--paper);
  border-bottom: 2px solid var(--void);
}
.scrollbar span:last-child { border-bottom: 0; border-top: 2px solid var(--void); }
.scrollbar i { display: block; flex: 0 0 30%; margin: 4px 2px; background: var(--paper); border: 2px solid var(--void); border-radius: 2px; }
.scrollbar b { flex: 1; }

.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 12px;
  border-top: 2px solid var(--void);
  background: var(--white);
  font-size: 11px;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Colour variants */
.c-rose   .titlebar { background: var(--rose); }
.c-lilac  .titlebar { background: var(--lilac); }
.c-sage   .titlebar { background: var(--sage); }
.c-taupe  .titlebar { background: var(--taupe); }
.c-blue   .titlebar { background: var(--blue); }
.c-yellow .titlebar { background: var(--yellow); }
.c-grey   .titlebar { background: var(--grey); }
.c-peach  .titlebar { background: var(--peach); }

/* ---------- Work tiles ---------- */

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(33.333% - 16px);
}
.tile:hover { text-decoration: none; }
.tile__media {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--void);
  background: var(--void);
}
.tile__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .35s ease, transform .5s ease;
}
.tile:hover .tile__media img,
.tile:focus-visible .tile__media img { filter: grayscale(0); transform: scale(1.04); }
.tile__play {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--paper);
  border: 2px solid var(--void);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.tile__text { display: flex; flex-direction: column; gap: 2px; }
.tile__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.tile:hover .tile__title { background: var(--xp-select); color: var(--white); align-self: flex-start; }
.tile__sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.tile__year { font-size: 11px; color: var(--ash); }

/* ---------- Folder page head ---------- */

.folder-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0 36px;
}
.folder-head__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.folder-head__info {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 380px;
}
.folder-head__info img { width: 88px; flex-shrink: 0; }
.folder-head__text { display: flex; flex-direction: column; gap: 4px; }
.folder-head__name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- CTA strip ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 56px;
  padding: 36px;
  border: 2px dashed var(--ash);
  border-radius: var(--radius);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}
.cta__text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* Folder switcher (sibling folders) */
.switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 48px;
}
.switcher a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  text-transform: lowercase;
}
.switcher a:hover { text-decoration: none; }
.switcher a:hover span { background: var(--xp-select); color: var(--white); }
.switcher img { width: 46px; }
.switcher span { padding: 0 4px; }
.switcher a[aria-current="page"] { opacity: .35; pointer-events: none; }

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-top: 24px;
}
.about-index {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 200px;
  flex-shrink: 0;
  padding-top: 8px;
  position: sticky;
  top: 24px;
}
.about-index a { display: flex; gap: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.about-index a span { color: var(--ash); }
.about-photo {
  width: 34%;
  flex-shrink: 0;
  border: 2px solid var(--void);
  box-shadow: 8px 8px 0 var(--blue);
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; filter: grayscale(1); }
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 34px;
  flex: 1;
  max-width: 560px;
}
.about-copy section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.about-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
}
.about-copy h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ash); }
.about-copy p { font-size: 14px; line-height: 1.75; }

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.names span {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 2px solid var(--void);
  border-radius: 4px;
}

.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 140px;
  padding: 16px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--white);
}
.stat strong { font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 400; }

/* Accordion (Elementor Accordion widget) */
.accordion { display: flex; flex-direction: column; border-top: 2px solid var(--void); }
.accordion details { border-bottom: 2px solid var(--void); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 16px; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion details p { padding: 0 0 16px; font-size: 13px; }

/* ==========================================================================
   SHOP
   ========================================================================== */

.product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc(25% - 18px);
}
.product__media { border: 2px solid var(--void); background: var(--dust); }
.product__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product__name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.product__price { font-size: 12px; color: var(--ash); }
.product__tag {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--void);
  color: var(--paper);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
  display: flex;
  align-items: stretch;
  gap: 48px;
  padding-top: 24px;
}
.contact__left { display: flex; flex-direction: column; gap: 30px; flex: 1; min-width: 0; }
.contact__right { width: 42%; flex-shrink: 0; align-self: flex-start; position: sticky; top: 24px; }
.contact__right img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid var(--void);
  box-shadow: 8px 8px 0 var(--grey);
  filter: grayscale(1);
}
.contact h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
  text-transform: uppercase;
}
.contact-details { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 200px;
  padding: 16px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--white);
}
.contact-card strong { font-size: 13px; word-break: break-word; }
.contact-card--wide { flex-basis: 100%; }
a.contact-card:hover { background: var(--yellow); text-decoration: none; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: flex; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--white);
  color: var(--void);
  font: inherit;
  font-size: 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: 11px; color: var(--ash); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.82);
}
.lightbox.is-open { display: flex; }
.lightbox .window { max-width: 1080px; box-shadow: 10px 10px 0 var(--lilac); }
.lightbox__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--void); }
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Loader (adapted from priorgoldpictures.com intro)
   ========================================================================== */

.no-loader .loader { display: none; }
.is-loading { overflow: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  user-select: none;
}
.loader__back,
.loader__front {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.loader__back { background: #161616; }
.loader__front { background: #000; overflow: hidden; }

.loader__logo {
  position: absolute;
  left: 50%; top: 50%;
  width: 280px;
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.loader__logo-inner { position: relative; transform: translateY(100%); }
.loader__logo img { width: 100%; }
.loader__logo .is-ghost { opacity: 0.14; }
.loader__logo .is-fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }

.loader__meta {
  position: absolute;
  left: 40px; right: 40px; bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.loader__clip { overflow: hidden; }
.loader__label {
  display: block;
  transform: translateY(110%);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.45);
}
.loader__count {
  display: block;
  transform: translateY(110%);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.loader__line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.loader__line span {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

/* intro */
.loader.is-in .loader__logo-inner { transform: translateY(0); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.loader.is-in .loader__label,
.loader.is-in .loader__count { transform: translateY(0); transition: transform .9s cubic-bezier(.16, 1, .3, 1) .15s; }
.loader.is-in .loader__count { transition-delay: .21s; }

/* outro */
.loader.is-out .loader__label,
.loader.is-out .loader__count { transform: translateY(-110%); transition: transform .6s cubic-bezier(.32, 0, .67, 0) .1s; }
.loader.is-out .loader__count { transition-delay: .15s; }
.loader.is-out .loader__logo-inner { transform: translateY(-100%); transition: transform .75s cubic-bezier(.7, 0, .84, 0) .05s; }
.loader.is-out .loader__line span { transform: scaleX(0) !important; transform-origin: right center; transition: transform .7s cubic-bezier(.87, 0, .13, 1); }
.loader.is-lift .loader__front { transform: translateY(-100%); transition: transform 1s cubic-bezier(.76, 0, .24, 1) .2s; }
.loader.is-lift .loader__back { transform: translateY(-100%); transition: transform 1s cubic-bezier(.76, 0, .24, 1) .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .burger { display: inline-flex; }
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 800;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 90px 24px 40px;
    background: var(--paper);
  }
  .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(26px, 7vw, 40px);
    letter-spacing: 0;
    padding: 6px 4px;
    border-bottom: 2px solid var(--void);
  }
  .site-nav a[aria-current="page"] { padding: 6px 8px; }
  .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .nav-open .burger { position: relative; z-index: 810; }

  .about { flex-wrap: wrap; }
  .about-index { display: none; }
  .about-photo { width: 40%; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .desktop { flex-direction: column; align-items: stretch; min-height: 0; }
  .desk-folders { width: 100%; }
  .dialog { width: 100%; max-width: none; }
  /* Smaller scatter so the folders still look loosely placed on a tablet */
  .desk-item__icon { width: 84px; }
  .nudge-1 { margin-top: 0;    padding: 0 36px 0 0; }
  .nudge-2 { margin-top: 40px; padding: 0 0 0 14px; }
  .nudge-3 { margin-top: 8px;  padding: 0 0 0 48px; }
  .nudge-4 { margin-top: 22px; padding: 0 0 0 28px; }
  .nudge-5 { margin-top: 50px; padding: 0 22px 0 0; }
  .nudge-6 { margin-top: 0;    padding: 0 56px 0 0; }
  .nudge-7 { margin-top: 14px; padding: 0 0 0 60px; }
  .nudge-8 { margin-top: 34px; padding: 0 0 0 20px; }

  .tile { width: calc(50% - 12px); }
  .product { width: calc(50% - 12px); }

  .folder-head { flex-direction: column; align-items: flex-start; }

  .contact { flex-direction: column; }
  .contact__right { width: 100%; }
  .contact__right { position: static; }
  .contact__right img { aspect-ratio: 16 / 10; }

  .about { flex-direction: column; }
  .about-photo { width: 100%; max-width: 460px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .brand__name { font-size: 11px; letter-spacing: 0.1em; }
  .brand__logo { width: 34px; height: 34px; }

  .desktop { row-gap: 28px; min-height: 0; }
  .desk-item { width: 50%; }
  .desk-item__icon { width: 68px; }
  .desk-folders { row-gap: 22px; }
  /* Two columns on a phone: stagger each pair up/down and pull it left/right */
  .nudge-1 { margin-top: 0;    padding: 0 40px 0 0; }
  .nudge-2 { margin-top: 38px; padding: 0 0 0 18px; }
  .nudge-3 { margin-top: 6px;  padding: 0 0 0 44px; }
  .nudge-4 { margin-top: 30px; padding: 0 24px 0 0; }
  .nudge-5 { margin-top: 18px; padding: 0 20px 0 0; }
  .nudge-6 { margin-top: 0;    padding: 0 0 0 52px; }
  .nudge-7 { margin-top: 4px;  padding: 0 0 0 30px; }
  .nudge-8 { margin-top: 36px; padding: 0 36px 0 0; }

  .window__content { padding: 16px; gap: 24px; }
  .tile { width: 100%; }
  .product { width: 100%; }
  .scrollbar { display: none; }
  .addressbar__btn--hide { display: none; }

  .form__row { flex-direction: column; }
  .cta { padding: 24px; }
  .taskbar { padding: 12px var(--gutter); }
  .taskbar__meta--hide { display: none; }

  .loader__logo { width: 200px; }
  .loader__meta { left: 20px; right: 20px; bottom: 24px; }
}

/* ==========================================================================
   Header order, notices, shared form bits
   ========================================================================== */

.brand { order: 0; }
.site-nav { order: 1; margin-left: auto; }

.notice {
  margin: 8px 0 16px;
  padding: 12px 16px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--white);
  font-size: 14px;
}
.notice--success { background: #DCE8D9; }
.notice--error { background: #F3D6D4; }

/* Honeypot field: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact__intro { display: flex; flex-direction: column; gap: 4px; }
.contact__lede { max-width: 520px; font-size: 14px; }
.contact__follow { display: flex; flex-direction: column; gap: 8px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 6px; }
.form__row--end { align-items: flex-end; }
.field--qty { flex: 0 0 90px; }

.btn--block { width: 100%; }
.btn--tiny { padding: 6px 10px; font-size: 10px; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ash);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--xp-close); }

.options { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.options__list { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 9px 14px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--white);
  font-size: 13px;
}
.option input:checked + span { background: var(--void); color: var(--paper); }
.option input:focus-visible + span { outline: 2px solid var(--xp-select); outline-offset: 3px; }

.center-stage { display: flex; flex: 1; align-items: center; justify-content: center; padding: 48px 0; }
.narrow-window { max-width: 560px; }

/* ==========================================================================
   STORE
   ========================================================================== */

a.product:hover { text-decoration: none; }
a.product:hover .product__name { background: var(--xp-select); color: var(--white); align-self: flex-start; }
.product__media { overflow: hidden; }
.product__media img { transition: transform .5s ease; }
a.product:hover .product__media img { transform: scale(1.03); }
.product__tag--out { background: var(--xp-close); }
.product .btn--small { align-self: flex-start; }

.crumbs { display: flex; gap: 8px; padding: 24px 0 20px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ash); }
.crumbs a { color: var(--void); }

.product-page { display: flex; align-items: flex-start; gap: 48px; }
.product-page__media {
  width: 46%;
  flex-shrink: 0;
  border: 2px solid var(--void);
  background: var(--dust);
  box-shadow: 8px 8px 0 var(--yellow);
}
.product-page__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-page__panel { flex: 1; min-width: 0; }
.product-page__body { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.product-page__title { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 60px); line-height: 0.95; text-transform: uppercase; }
.product-page__price { font-size: 20px; }
.perks { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 16px 0 0; border-top: 2px dashed var(--ash); list-style: none; font-size: 12px; }
.perks li::before { content: "→ "; color: var(--ash); }

.shop-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0 32px; }
.shop-head__title { font-family: var(--font-display); font-size: clamp(44px, 8vw, 112px); line-height: 0.9; text-transform: uppercase; }

/* Cart */
.cart { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.cart__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; font-size: 15px; }
.cart__lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--void); }
.cart-line { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 2px solid var(--void); }
.cart-line__media { width: 72px; flex-shrink: 0; border: 2px solid var(--void); background: var(--dust); }
.cart-line__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cart-line__info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cart-line__name { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.cart-line__qty { display: flex; align-items: center; gap: 10px; }
.cart-line__qty input {
  width: 64px;
  padding: 8px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--white);
  font: inherit;
  font-size: 14px;
}
.cart-line__total { width: 110px; text-align: right; font-size: 14px; }
.js .cart-line__qty [data-update] { display: none; }

.cart__summary { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart__summary .cart__row { width: 100%; max-width: 320px; }
.cart__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.cart__row--total { padding-top: 10px; border-top: 2px solid var(--void); font-size: 17px; }

/* Checkout */
.checkout { display: flex; align-items: flex-start; gap: 40px; }
.checkout__form { flex: 1; min-width: 0; }
.checkout__summary { width: 380px; flex-shrink: 0; position: sticky; top: 24px; }
.delivery { display: flex; flex-direction: column; gap: 8px; }
.delivery__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--void);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}
.delivery__option span { flex: 1; }
.delivery__option input { accent-color: var(--void); width: 16px; height: 16px; margin: 0; }
.delivery__option:has(input:checked) { background: var(--yellow); }
.is-hidden { display: none; }
.summary-lines { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 12px; list-style: none; border-bottom: 2px dashed var(--ash); }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 1100px) {
  .site-nav { margin-left: 0; }
  .nav-open .header-actions { position: relative; z-index: 810; }
}

@media (max-width: 900px) {
  .product-page { flex-direction: column; }
  .product-page__media { width: 100%; max-width: 460px; }
  .product-page__panel { width: 100%; }
  .checkout { flex-direction: column; }
  .checkout__summary { width: 100%; position: static; }
}

@media (max-width: 600px) {
  .cart { padding: 16px; }
  .cart-line { flex-wrap: wrap; gap: 12px; }
  .cart-line__info { flex-basis: calc(100% - 90px); }
  .cart-line__qty { flex: 1; }
  .cart-line__total { width: auto; }
  .product-page__body { padding: 18px; }
  .cart-link { padding: 6px 8px; }
  .burger { padding: 9px 11px; }
}

/* Keep header labels on one line */
.brand__name, .site-nav a, .cart-link { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1280px) {
  .site-nav { gap: 14px; }
  .site-nav a { letter-spacing: 0.1em; }
}
@media (min-width: 1101px) and (max-width: 1180px) {
  .site-header { gap: 16px; }
  .site-nav { gap: 10px; }
  .site-nav a { letter-spacing: 0.06em; }
}
@media (max-width: 600px) {
  .site-header { gap: 12px; }
  .brand { min-width: 0; }
  .brand__name { white-space: normal; }
  .cart-link__label { display: none; }
}
