:root{
  --bg:#ffffff;
  --ink:#0b0b0b;
  --muted:#6f6f6f;
  --line:rgba(0,0,0,.10);
  --soft:rgba(0,0,0,.04);

  --radius:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.08);
  --shadow-soft: 0 10px 35px rgba(0,0,0,.06);

  --max: 980px;

  --slabW: 280px;
  --slabH: 420px;

  --spinDuration: 14s;
  --floatDuration: 5.8s;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.site-header{
  width:100%;
  padding:44px 18px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  text-align:center;
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:.99;
  user-select:none;
}

.brand-mark{
  letter-spacing:.45em;
  font-weight:600;
  font-size:26px;
}

.brand-sub{
  margin-top:10px;
  font-size:11px;
  letter-spacing:.35em;
  color:var(--muted);
  text-transform:lowercase;
}

.nav{
  display:flex;
  gap:px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav a{
  font-size:12px;
  letter-spacing:.20em;
  text-transform:lowercase;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  color:rgba(0,0,0,.70);
  background:rgba(255,255,255,.7);
}
.nav a.active{
  background:rgba(0,0,0,.90);
  color:#fff;
  border-color:rgba(0,0,0,.90);
}

.site-note{
  font-size:11px;
  letter-spacing:.14em;
  color:var(--muted);
  text-align:center;
  max-width:680px;
  line-height:2.5;
}

.page{
  width:100%;
  display:flex;
  justify-content:center;
  padding:10px 18px 60px;
}
.wrap{
  width:min(var(--max), 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

.lead{
  margin:0;
  text-align:center;
  max-width:720px;
  font-size:13px;
  line-height:1.85;
  color:rgba(0,0,0,.72);
  letter-spacing:.02em;
}
  
.section-title{
  width:100%;
  text-align:center;
  margin:12px 0 6px;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:lowercase;
  color:rgba(0,0,0,.55);
}

/* ===== Slabs ===== */
.slab-link{ display:block; color:inherit; }

.slab-card{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.slab-stage{
  position:relative;
  width:calc(var(--slabW) + 90px);
  height:calc(var(--slabH) + 90px);
  background:rgba(255,255,255,.88);
  border:1px solid var(--soft);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.slab-stage::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(0,0,0,.03), transparent 55%),
    radial-gradient(900px 450px at 50% 120%, rgba(0,0,0,.02), transparent 55%);
  pointer-events:none;
}

.slab-tilt{
  width:var(--slabW);
  height:var(--slabH);
  perspective:1100px;
  perspective-origin:50% 45%;
  transform-style:preserve-3d;
  z-index:2;
}

.slab-card .slab-tilt{
  animation: floatY var(--floatDuration) ease-in-out infinite;
}

.slab-rotator{
  width:100%;
  height:100%;
  position:relative;
  transform-style:preserve-3d;
  will-change:transform;
  animation: spinY var(--spinDuration) linear infinite;
}

.slab-card:hover .slab-rotator{ animation-play-state:paused; }
.slab-card:hover .slab-tilt{ animation-play-state:paused; }

.slab-face{
  position:absolute;
  inset:0;
  margin:0;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform-style:preserve-3d;
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.14);
}

.slab-face img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#fff;
}

.slab-face.back{ transform: rotateY(180deg); }

.slab-rotator::after{
  content:"";
  position:absolute;
  inset:6px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  transform: translateZ(2px);
  pointer-events:none;
}

/* plaque */
.plaque{
  position:absolute;
  right:16px;
  bottom:16px;
  width:min(360px, calc(100% - 32px));
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity:0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
  z-index:3;
  pointer-events:none;
}
.slab-card:hover .plaque{ opacity:1; transform: translateY(0); }

.plaque-title{
  padding:12px 14px 8px;
  font-size:10px;
  letter-spacing:.32em;
  text-transform:lowercase;
  color:rgba(0,0,0,.60);
}
.plaque-grid{
  display:grid;
  grid-template-columns: 86px 1fr;
  gap:8px 10px;
  padding:0 14px 14px;
}
.plaque-grid .k{
  font-size:10px;
  letter-spacing:.22em;
  text-transform:lowercase;
  color:rgba(0,0,0,.45);
}
.plaque-grid .v{
  font-size:12px;
  color:rgba(0,0,0,.75);
  line-height:1.45;
}

.slab-caption{ text-align:center; user-select:none; }
.cap-title{
  font-size:11px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:rgba(0,0,0,.70);
}
.cap-sub{
  margin-top:6px;
  font-size:10px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:rgba(0,0,0,.50);
}

/* gallery grid */
.gallery-grid{
  width:100%;
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 28px;
  align-items:start;
  justify-items:stretch;
}
.gallery-grid .slab-card{ width: min(360px, 100%); margin: 0; }
.gallery-grid .slab-card:nth-of-type(3n + 1){ justify-self:start; }
.gallery-grid .slab-card:nth-of-type(3n + 2){ justify-self:center; }
.gallery-grid .slab-card:nth-of-type(3n + 3){ justify-self:end; }

@media (max-width: 980px){
  :root{ --slabW: 260px; --slabH: 390px; }
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid .slab-card:nth-of-type(n){ justify-self:stretch; }
}
@media (max-width: 620px){
  :root{ --slabW: 240px; --slabH: 360px; }
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* buttons */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:6px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  letter-spacing:.18em;
  text-transform:lowercase;
}
.btn.primary{
  background:rgba(0,0,0,.90);
  border-color:rgba(0,0,0,.90);
  color:#fff;
}
.btn.ghost{
  background:rgba(255,255,255,.75);
  color:rgba(0,0,0,.75);
}

/* access card */
.card{
  width:min(520px, 100%);
  border:1px solid var(--soft);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  background:rgba(255,255,255,.9);
  padding:18px;
}
.card h2{
  margin:0 0 10px;
  font-size:11px;
  letter-spacing:.30em;
  text-transform:uppercase;
}
.card p{
  margin:0 0 12px;
  font-size:12px;
  line-height:1.75;
  color:rgba(0,0,0,.68);
  text-align:left;
}
.field{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
input[type="password"]{
  flex:1;
  min-width:240px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.15);
  font-size:14px;
  outline:none;
}
input[type="password"]:focus{ border-color: rgba(0,0,0,.40); }
.msg{ margin-top:10px; font-size:12px; color:rgba(0,0,0,.65); }

/* card page layout */
.card-layout{
  display: grid;
  grid-template-columns: minmax(340px, 520px) 1fr;
  gap: 52px;
  align-items: start;
}
.card-left{ display:flex; justify-content:center; }
.card-right{ max-width: 720px; }

@media (max-width: 980px){
  .card-layout{ grid-template-columns: 1fr; gap: 26px; }
  .card-right{ max-width: 100%; }
}

/* fade */
.card-right{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.card-right.visible{
  opacity: 1;
  transform: translateY(0);
}

/* placard wrapper */
.placard{
  width:100%;
  max-width: 560px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 55px rgba(0,0,0,.06);
}

.placard .card-title{ margin: 0 0 14px 0; }

.placard #cardDescription{
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.6;
  color: rgba(0,0,0,.78);
}
.placard #cardDescription.boxy{
  text-align: justify;
  text-justify: inter-word;
}

.placard .meta-grid{
  max-width: 46ch;
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.placard-actions{
  max-width: 46ch;
  margin: 14px auto 0;
  justify-content:flex-start;
}

/* animations */
@keyframes spinY{
  0%   { transform: rotateY(0deg) rotateX(2deg); }
  100% { transform: rotateY(-360deg) rotateX(2deg); }
}
@keyframes floatY{
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
@media (prefers-reduced-motion: reduce){
  .slab-rotator, .slab-tilt{ animation:none !important; }
}
/* =========================
   FIX BRAND CENTERING
========================= */

.site-header{
  text-align: center;
}

.site-header .brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.site-header .brand-mark,
.site-header .brand-sub{
  text-align: center;
  width: 100%;
}

/* if your brand-mark is using letter-spacing, keep it visually centered */
.site-header .brand-mark{
  margin-left: 0;
  margin-right: 0;
}

/* =========================
   GLOBAL BRAND STYLE (ALL PAGES)
   Keeps "slbx." exactly as-is
========================= */

.site-header{
  text-align: center;
}

.site-header .brand{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-header .brand-mark,
.site-header .brand-sub{
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* IMPORTANT: no crazy letter-spacing, so it stays "slbx." */
.site-header .brand-mark{
  font-size: 33px;
  font-weight: 600;
  letter-spacing: .022em;
  line-height: 0.00001;
}

/* subtitle */
.site-header .brand-sub{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.33em;
  text-transform: lowercase;
  color: rgba(0,0,0,0.55);
}
/* ===== About page centering ===== */
.about-copy{
  width: 100%;
  max-width: 720px;     /* controls line length */
  margin: 0 auto;       /* centers the block */
  text-align: center;   /* centers the text */
  line-height: 1.85;
}
/* ===== Smooth text layout for About + Contact (no brand changes) ===== */

/* Ensure lead blocks always center as a block */
.lead{
  margin-left: auto;
  margin-right: auto;
}

/* About page: keep it centered and readable, not stretched */
body .page .wrap > .lead{
  max-width: 720px;
  text-align: center;
}

/* Optional: make the paragraph feel cleaner (more “gallery label”) */
body .page .wrap > .lead{
  line-height: 1.9;
}

/* Smooth nav/button hover without changing layout */
.nav a,
.btn{
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
  text-decoration: none;
}
/* =========================
   SMOOTH PATCH (no redesign)
   Paste at the VERY BOTTOM
========================= */

/* Fix invalid CSS in your file (this is required) */
.nav{ gap:10px; }

/* Keep long text blocks centered as a block (About/Contact) */
.lead{
  margin-left:auto;
  margin-right:auto;
  max-width:720px;
  text-align:center;
}

/* Smooth UI feel without changing layout */
.nav a,
.btn{
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* Cleaner hover behavior */
.nav a:hover,
.btn:hover{
  text-decoration:none;
}

/* Small lift on buttons, subtle */
.btn:hover{
  transform: translateY(-1px);
}

/* Slightly smoother slab hover (does not change spin) */
.slab-stage{
  transition: box-shadow .18s ease, transform .18s ease;
}
.slab-card:hover .slab-stage{
  box-shadow: 0 18px 60px rgba(0,0,0,.09);
}

/* Plaque feels smoother */
.plaque{
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease;
}




/* ===== Archive: typewriter catalog (public preview) ===== */
.archive{
  width: 100%;
  max-width: 780px;
}

.archive-head{
  text-align: center;
  margin: 10px 0 18px;
}

.tw{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.tw-title{
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(0,0,0,.70);
}

.tw-sub{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .10em;
  color: rgba(0,0,0,.55);
  line-height: 1.9;
}

.tw-link{
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.archive-item{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 55px rgba(0,0,0,.06);
  padding: 16px 18px 14px;
}

.archive-line{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(0,0,0,.80);
  line-height: 1.6;
}

.archive-meta{
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(0,0,0,.55);
}

.archive-item{
  cursor:pointer;
}

.archive-item:hover{
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
}