/* =============================================================================
   css/components.css — the reusable blocks, shared by every page:
   page background, nav, case bar, theme toggle, buttons, glass panels, chips,
   section heads, work cards, work list rows, career rows, "what I do" tiles,
   facts, toolbox, footer, lightbox, consent notice.
   Only page-specific layout goes in css/pages/<page>.css.
   ========================================================================== */

/* ===== Layout helpers ======================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* a numbered home-page section */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter) 0;
  scroll-margin-top: var(--nav-height);
}

.section--first { padding-top: clamp(48px, 6vw, 80px); }

.section--last { padding-bottom: clamp(72px, 9vw, 110px); }


/* ===== Page background ======================================================
   Five washes stacked over the whole page (absolute, so they scroll with it):
     l1 the colour gradient · l2 grain · l3 soft highlights ·
     l4 tinted circles · l5 thin ring outlines
   The dark palette defines l2 and l3 as none. Case-study pages add a faint
   120px grid that fades out towards the bottom (.page-bg__grid). */
.page-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg > div { position: absolute; inset: 0; }

.page-bg__l1 { background: var(--bg-l1); }

.page-bg__l2 {
  opacity: 0.16;
  background-image: var(--bg-l2);
  background-size: 7px 7px, 11px 11px, 9px 9px, 13px 13px;
}

.page-bg__l3 { opacity: 0.28; background-image: var(--bg-l3); }

.page-bg__l4 { background-image: var(--bg-l4); }

.page-bg__l5 { opacity: 0.5; background-image: var(--bg-l5); }

.page-bg__grid {
  opacity: 0.08;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 75%);
}


/* ===== Glass ================================================================
   The frosted panel every card, tile and chip is made of. Applied by the
   component classes below; add .glass to anything else that should match. */
.glass,
.work-card,
.work-list,
.career,
.do-card,
.toolbox,
.btn--ghost,
.consent,
.meta,
.panel,
.status-chip {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur-glass);
          backdrop-filter: var(--blur-glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}


/* ===== Text helpers ========================================================= */
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-kicker);
  margin-bottom: 22px;
}

.lead {
  max-width: 640px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.62;
  color: var(--color-text-soft);
}

.prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-soft);
}

.prose p + p { margin-top: 18px; }

.prose strong { font-weight: 600; color: var(--color-text); }

.link-inline {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
}

.link-inline:hover { color: var(--color-link); border-color: currentColor; }


/* ===== Site nav =============================================================
   <header class="site-nav" data-nav> brand · links · badge · theme toggle
   Fixed, frosted; js/main.js adds .is-hidden while scrolling down. */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 16px;
  height: var(--nav-height);
  padding: 0 var(--gutter);
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--blur-nav);
          backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--color-line-nav);
  box-shadow: var(--nav-shadow);
  transform: translateY(0);
  transition: transform 0.38s var(--ease-pop);
}

.site-nav.is-hidden { transform: translateY(-110%); }

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav__brand:hover { color: var(--color-link); }

.site-nav__logo {
  height: 18px;
  width: auto;
  flex: none;
  filter: var(--logo-filter);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 32px);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  letter-spacing: -0.005em;
}

.site-nav__link { color: var(--color-text-soft); }

.site-nav__link:hover,
.site-nav__link.is-active { color: var(--color-text); }

.site-nav__link:hover { color: var(--color-link); }

/* "Open to work" pill with the pulsing dot */
.site-nav__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-text-soft);
  font-size: 12.5px;
  white-space: nowrap;
}

.site-nav__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-dot);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

@media (max-width: 860px) {
  .site-nav__badge { display: none; }
}

@media (max-width: 420px) {
  .site-nav__brand { font-size: 13px; }
  .site-nav__links { gap: 14px; font-size: 13px; }
}


/* ===== Theme toggle =========================================================
   <button class="theme-toggle" data-theme-toggle> — moon in the light theme
   (click → dark), sun in the dark theme (click → light). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--chip-bg);
  box-shadow: var(--chip-shadow);
  color: var(--color-text-soft);
  transition: color var(--t-fast), border-color var(--t-fast), transform 0.3s var(--ease-out);
}

.theme-toggle:hover { color: var(--color-link); border-color: var(--color-link); transform: translateY(-1px); }

.theme-toggle svg { width: 15px; height: 15px; }

.theme-toggle__sun { display: none; }

[data-theme="dark"] .theme-toggle__sun  { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }


/* ===== Case bar =============================================================
   The slim sticky bar on case-study pages instead of the full nav. */
.case-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--color-line);
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--blur-nav);
          backdrop-filter: var(--blur-nav);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.case-bar__link { color: var(--color-text); opacity: 0.75; white-space: nowrap; }

.case-bar__link:hover { color: var(--color-link); opacity: 1; }

.case-bar__owner { font-weight: 500; color: var(--color-kicker); text-align: center; }

.case-bar__end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.case-bar__brand { color: var(--color-text); opacity: 0.45; }

.case-bar__brand:hover { color: var(--color-link); opacity: 1; }

@media (max-width: 560px) {
  .case-bar__owner { display: none; }
}


/* ===== Buttons ============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform 0.3s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }

.btn--solid {
  padding: 15px 26px;
  background: var(--color-btn-bg);
  color: var(--color-btn-fg);
  border: 0;
}

.btn--solid:hover { background: var(--color-btn-hover); color: var(--color-btn-fg); }

.btn--ghost {
  padding: 14px 26px;
  color: var(--color-text);
}

.btn--ghost:hover { border-color: var(--color-link); color: var(--color-link); }

.btn--sm { font-size: 13px; }
.btn--sm.btn--solid { padding: 11px 18px; }
.btn--sm.btn--ghost { padding: 10px 18px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ===== Chips ================================================================
   <span class="chip">Game UI</span> — tags on cards; .chip--tool in the toolbox */
.chip {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  -webkit-backdrop-filter: var(--blur-chip);
          backdrop-filter: var(--blur-chip);
  box-shadow: var(--chip-shadow);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.chip--tool {
  padding: 7px 13px;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row--tags { gap: 7px; }


/* ===== Section head =========================================================
   <div class="section-head"><span class="section-head__num">01</span>
     <h2 class="section-head__title">Product work</h2>
     <span class="section-head__aside">Apps, web &amp; brand</span></div> */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--color-line);
  padding-top: 18px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head--tight   { margin-bottom: clamp(24px, 3vw, 36px); }
.section-head--tighter { margin-bottom: clamp(20px, 2.4vw, 30px); }
.section-head--mid     { margin-bottom: clamp(30px, 3.4vw, 44px); }

.section-head__num {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--color-num);
}

.section-head__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.section-head__aside {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1;
  color: var(--color-text-dim);
  text-align: right;
}

@media (max-width: 480px) {
  .section-head { flex-wrap: wrap; row-gap: 10px; }
  .section-head__aside { flex-basis: 100%; margin-left: 0; text-align: left; }
}


/* ===== Work card (product work) =============================================
   <a class="work-card" href="…">
     <div class="work-card__media"><img …></div>
     <div class="work-card__body">
       <div class="work-card__meta"><span class="work-card__idx">01</span><span class="work-card__dash"></span><span>PRODUCT / UX</span></div>
       <h3 class="work-card__title">…</h3>
       <p class="work-card__text">…</p>
       <div class="chip-row chip-row--tags">…</div>
       <div class="work-card__foot"><span class="work-card__cta">View case study <span class="work-card__arrow">→</span></span><span class="work-card__year">2025</span></div>
     </div></a> */
.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--color-text);
  transition: transform var(--t-lift), box-shadow 0.4s ease;
}

.work-card:hover {
  color: var(--color-text);
  transform: translateY(-6px);
  box-shadow: var(--glass-hover-shadow);
}

.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--media-bg);
}

.work-card__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  transition: transform 0.5s var(--ease-pop);
}

.work-card:hover .work-card__media > img { transform: scale(1.06); }

.work-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px 22px 26px;
}

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
}

.work-card__idx { color: var(--color-num); }

.work-card__dash { width: 20px; height: 1px; background: var(--color-line); }

.work-card__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.work-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.work-card .chip-row--tags { margin-top: 20px; }

.work-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
}

.work-card__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-link);
}

.work-card__cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 0;
  background: var(--color-link);
  transition: width 0.4s var(--ease-pop);
}

.work-card:hover .work-card__cta::after { width: 100%; }

.work-card__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-pop);
}

.work-card:hover .work-card__arrow { transform: translateX(6px); }

.work-card__year {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--color-text-dim);
}


/* ===== Work list (game UI) ==================================================
   <div class="work-list">
     <a class="work-row" href="…">
       <div class="work-row__thumb"><img …></div>
       <span class="work-row__title">…</span><span class="work-row__text">…</span>
       <span class="work-row__year">2022</span><span class="work-row__arrow">→</span>
     </a> … </div> */
.work-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-panel);
  padding: 6px clamp(16px, 2vw, 26px);
  overflow: hidden;
}

.work-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  transition: padding-left 0.3s var(--ease-out), background var(--t-fast);
}

.work-row:hover {
  color: var(--color-text);
  padding-left: 14px;
  background: var(--row-hover);
}

.work-row__thumb {
  flex: 0 0 108px;
  height: 66px;
  overflow: hidden;
  border-radius: var(--radius-thumb);
  background: var(--thumb-bg);
  border: 1px solid var(--thumb-border);
  transition: transform 0.45s var(--ease-pop);
}

.work-row:hover .work-row__thumb { transform: scale(1.05); }

.work-row__thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-row__title {
  flex: 1 1 200px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.work-row__text {
  flex: 1.3 1 260px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.work-row__year {
  flex: 0 0 60px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1;
  color: var(--color-text-dim);
}

.work-row__arrow {
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  color: var(--color-link);
  transition: transform 0.35s var(--ease-pop);
}

.work-row:hover .work-row__arrow { transform: translateX(6px); }

@media (max-width: 640px) {
  .work-row { gap: 10px 16px; }
  .work-row__title { flex: 1 1 140px; }
  .work-row__text { flex: 1 1 100%; }
  .work-row__year { flex-basis: auto; margin-left: auto; }
}


/* ===== Career =============================================================== */
.career {
  border-radius: var(--radius-panel);
  padding: 6px clamp(18px, 2.2vw, 28px);
}

.career__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

.career__row:last-child { border-bottom: 0; }

.career__date {
  flex: 0 0 120px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1;
  color: var(--color-text-dim);
}

.career__role {
  flex: 1 1 260px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.career__note {
  flex: 1.2 1 300px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.career__note--wide { flex: 1 1 300px; }


/* ===== "What I do" tiles (under the hero) =================================== */
.do-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 44px) var(--gutter) 0;
}

.do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.do-card {
  border-radius: var(--radius-tile);
  padding: 20px 22px;
  transition: transform 0.34s var(--ease-out), box-shadow 0.3s ease;
}

.do-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-hover-shadow-sm);
}

.do-card__kicker {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-kicker);
  margin-bottom: 10px;
}

.do-card__text {
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--color-text);
}


/* ===== Facts (about) ======================================================== */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 34px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact__label {
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.fact__value {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}


/* ===== Toolbox (about) ====================================================== */
.toolbox {
  flex: 1 1 320px;
  max-width: 420px;
  border-radius: var(--radius-panel);
  padding: 28px;
  align-self: flex-start;
}

.toolbox__label {
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 24px;
}

.toolbox__groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.toolbox__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolbox__name {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--color-text);
}

.toolbox .chip:hover { color: var(--color-link); border-color: var(--color-link); }


/* ===== Site footer (= the contact section) ================================== */
.site-footer {
  border-top: 1px solid var(--color-line);
  scroll-margin-top: var(--nav-height);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 100px) var(--gutter) 28px;
}

.site-footer__eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-kicker);
  margin-bottom: 18px;
}

.site-footer__mail {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--color-text);
  margin-bottom: 34px;
  word-break: break-all;
}

.site-footer__mail:hover { color: var(--color-link); }

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1;
  color: var(--color-text-soft);
  margin-bottom: 56px;
}

.site-footer__meta a { color: var(--color-text-soft); }

.site-footer__meta a:hover { color: var(--color-link); }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1;
  color: var(--color-text-dim);
}

.site-footer__bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__bar a { color: var(--color-text-dim); }

.site-footer__bar a:hover { color: var(--color-link); }

/* the shorter footer under a case study */
.site-footer--case .site-footer__inner { padding: clamp(48px, 6vw, 72px) var(--gutter) 28px; }

.site-footer--case .site-footer__eyebrow {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.site-footer--case .site-footer__mail {
  font-size: clamp(22px, 3.6vw, 42px);
  margin-bottom: 26px;
}

.site-footer--case .site-footer__bar {
  font-size: 11px;
  letter-spacing: 0.08em;
}


/* ===== Lightbox ============================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(16px, 4vw, 56px);
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.is-open { opacity: 1; }

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-media);
}

.lightbox__caption {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #EFECF6;
  opacity: 0.75;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: clamp(12px, 2.5vw, 28px);
  right: clamp(12px, 2.5vw, 28px);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #EFECF6;
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 1;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.lightbox__close:hover { border-color: #FFFFFF; color: #FFFFFF; }

.has-lightbox-open body { overflow: hidden; }

/* a picture that opens full size on click */
.figure__zoom { display: block; cursor: zoom-in; }

.figure__zoom > img {
  width: 100%;
  height: auto;
  transition: opacity var(--t-fast);
}

.figure__zoom:hover > img { opacity: 0.9; }


/* ===== Consent notice =======================================================
   Small frosted card, bottom-left, shown by js/consent.js until dismissed. */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: 20px;
  z-index: 70;
  max-width: 400px;
  padding: 18px 20px 20px;
  border-radius: var(--radius-tile);
}

.consent[hidden] { display: none; }

.consent__kicker {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-kicker);
  margin-bottom: 10px;
}

.consent__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

.consent__link {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-line);
}

.consent__link:hover { color: var(--color-link); border-color: currentColor; }

@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}


/* ===== Reduced motion ======================================================= */
@media (prefers-reduced-motion: reduce) {
  .work-card, .work-row, .work-row__thumb, .work-row__arrow, .work-card__arrow,
  .work-card__media > img, .do-card, .btn, .theme-toggle, .site-nav { transition: none; }
  .work-card:hover, .do-card:hover, .btn:hover, .work-row:hover .work-row__thumb,
  .work-row:hover .work-row__arrow, .work-card:hover .work-card__arrow,
  .work-card:hover .work-card__media > img { transform: none; }
  .site-nav__badge::before { animation: none; }
}
