/* ============================================================
   1snob — umbrella site
   Local overrides + layout helpers on top of colors_and_type.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }

::selection { background: var(--ink-1); color: var(--paper); }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-2 { gap: var(--s-2); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }

/* ---------- LOGO ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  line-height: 1;
  color: var(--ink-1);
  text-decoration: none;
}
.logo .letters {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variation-settings: 'wght' 900, 'opsz' 6;
}
.logo .one-slot {
  display: inline-block;
  width: 0.60em;
  height: 0.78em;
  position: relative;
  align-self: baseline;
  transform: translateY(0.06em);
}
.logo .one-slot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.logo .one-slot svg .glyph { transform: rotate(20deg); transform-origin: 100% 100%; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink-1);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: opacity var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav a:hover { opacity: 0.55; }
.nav a.active { border-bottom-color: var(--ink-1); opacity: 1; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--ink-1);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lang-toggle button {
  padding: 6px 12px;
  color: var(--ink-1);
  transition: all var(--dur) var(--ease-out);
}
.lang-toggle button.active { background: var(--ink-1); color: var(--paper); }

/* ---------- RAINBOW BAR ---------- */
.rainbow-bar { height: 4px; width: 100%; background: var(--rainbow); }
.rainbow-bar.thick { height: 8px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink-1);
  background: var(--ink-1);
  color: var(--paper);
  text-decoration: none;
  transition: all var(--dur) var(--ease-out);
  cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink-1); opacity: 1; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink-1); }
.btn.ghost:hover { background: var(--ink-1); color: var(--paper); }
.btn .arrow { font-size: 16px; line-height: 1; }

/* ---------- MICRO + TAGS ---------- */
.micro-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--ink-1);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-1);
  background: transparent;
}
.tag.filled { background: var(--ink-1); color: var(--paper); }
.tag.muted { border-color: var(--rule); color: var(--ink-3); }

/* ---------- SECTION ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.section .eyebrow .dash { width: 24px; height: 1px; background: var(--ink-1); }

/* ---------- HERO ---------- */
.hero-slab { padding: 64px 0 96px; position: relative; }
.hero-slab h1 {
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 900;
}
.hero-slab h1 .row-1,
.hero-slab h1 .row-2 { display: block; }
.hero-slab .lede {
  max-width: 560px;
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- PILLARS ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink-1);
  border-bottom: 2px solid var(--ink-1);
}
.pillar {
  padding: 32px 24px 40px;
  border-right: 1px solid var(--ink-1);
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background var(--dur) var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--ink-1); color: var(--paper); opacity: 1; }
.pillar:hover .pillar-num { color: var(--paper); }
.pillar:hover .pillar-arrow { transform: translate(4px, -4px); }
.pillar .pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pillar .pillar-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.pillar .pillar-arrow {
  font-size: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.pillar .pillar-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: 80px;
}
.pillar .pillar-status {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}
.pillar.active .pillar-status::before {
  content: '●';
  color: var(--rainbow-green);
  margin-right: 6px;
  font-size: 8px;
  vertical-align: 2px;
}
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2n) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--ink-1); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--ink-1); }
  .pillar:last-child { border-bottom: 0; }
}

/* ---------- FEATURED STRIP ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card { display: block; text-decoration: none; color: inherit; }
.feat-card .ph {
  aspect-ratio: 4 / 5;
  background: var(--tint);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out);
}
.feat-card:hover .ph { transform: scale(1.01); }
.feat-card .ph::after {
  content: '— IMAGE';
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
}
.feat-card h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 22px;
  margin: 16px 0 4px;
}
.feat-card .meta { display: flex; justify-content: space-between; }
.feat-card .meta span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 720px) { .featured { grid-template-columns: 1fr; } }

/* ---------- PULL QUOTE ---------- */
.pullquote {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 1000px;
}
.pullquote .text-rainbow {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pullquote-attr {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- MANIFESTO LIST ---------- */
.manifesto { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.manifesto .items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-1);
}
.manifesto .item {
  display: grid;
  grid-template-columns: 60px 1fr 220px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.manifesto .item .n { font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); }
.manifesto .item h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.manifesto .item p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
@media (max-width: 720px) {
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .manifesto .item { grid-template-columns: 40px 1fr; }
  .manifesto .item p { grid-column: 2 / -1; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink-1);
  color: var(--paper);
  padding: 72px 0 40px;
  margin-top: 96px;
}
.site-footer a { color: var(--paper); }
.site-footer .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,250,247,0.2);
}
.site-footer h5 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.5);
  margin: 0 0 16px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { opacity: 0.55; }
.site-footer .big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.site-footer .bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
}
@media (max-width: 720px) {
  .site-footer .top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .bottom { flex-direction: column; gap: 12px; }
}

/* ---------- PROJECT GRID (Work page) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.work-item { grid-column: span 4; }
.work-item.wide { grid-column: span 6; }
.work-item.full { grid-column: span 12; }
.work-item .ph {
  aspect-ratio: 4/5;
  background: var(--tint);
  border: 1px solid var(--rule);
  position: relative;
}
.work-item.wide .ph { aspect-ratio: 3/2; }
.work-item.full .ph { aspect-ratio: 16/8; }
.work-item .ph::after {
  content: '— IMAGE';
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}
.work-item .cap {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
}
.work-item .cap .title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 18px;
}
.work-item .cap .year { color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 720px) {
  .work-item, .work-item.wide, .work-item.full { grid-column: span 12; }
}

/* ---------- FORM (Contact) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid .full { grid-column: span 2; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: span 1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ink-1);
  background: transparent;
  color: var(--ink-1);
  outline: none;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--rainbow-blue);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 280px;
  background: var(--paper);
  border: 2px solid var(--ink-1);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  z-index: 100;
  box-shadow: 4px 4px 0 var(--ink-1);
}
.tweaks-panel h5 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.tweaks-panel .tweak-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.tweaks-panel .tweak-row label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; font-weight: 700; color: var(--ink-3); }
.tweaks-panel button.pick {
  padding: 4px 10px;
  border: 1px solid var(--ink-1);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.tweaks-panel button.pick.on { background: var(--ink-1); color: var(--paper); }

/* ---------- UTILITY ---------- */
.divider { height: 1px; background: var(--rule); width: 100%; }
.no-decoration { text-decoration: none; color: inherit; }
.page-enter { animation: pageEnter 480ms var(--ease-out); }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
