/* ============================================================
   Pixelschneiderei – shared stylesheet
   ============================================================ */

:root{
  --paper:     #ffffff;
  --paper-2:   #f6f6f7;
  --paper-3:   #ececee;
  --surface:   #ffffff;
  --line:      #e3e3e6;
  --line-soft: #ededf0;
  --ink:       #0f0f10;
  --ink-soft:  #2a2a2c;
  --muted:     #8a8a90;
  --thread:    #b8392a;
  --thread-2:  #d96a55;
  --thread-3:  #f5dad3;
  --gold:      #a87b3c;
  --gold-soft: #d8c194;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-xl: 32px;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --section-pad: clamp(72px, 10vw, 132px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(20,15,8,.04), 0 4px 14px rgba(20,15,8,.04);
  --shadow-md: 0 2px 8px rgba(20,15,8,.05), 0 16px 40px rgba(20,15,8,.06);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection{background: var(--thread); color: #fff7f1;}
a{color:inherit; text-decoration:none}
img,svg{display:block; max-width:100%}
button{font:inherit; color:inherit; background:none; border:0; cursor:pointer}

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1{ font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2{ font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3{ font-size: clamp(1.4rem, 2.2vw, 1.7rem); letter-spacing: -0.015em;}
h4{ font-size: 1.1rem; }
p{margin: 0 0 1em}

.eyebrow{
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--thread);
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 24px;
  height: 1px;
  background: var(--thread);
  display:inline-block;
}
.lede{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled{ border-color: var(--line-soft); background: rgba(255,255,255,.94); }
.nav-row{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}
.brand{
  display:flex; align-items:center; gap: 12px;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-mark{
  width: 30px; height: 30px;
  display:grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 2px;
}
.brand-mark i{ background: var(--ink); border-radius: 1px;}
.brand-mark i:nth-child(5){ background: var(--thread); }

.nav-links{
  display:flex; gap: 28px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.nav-links a{
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.is-active{ color: var(--thread); }
.nav-links a::after{
  content:"";
  position:absolute;
  left:0; right: 100%; bottom: -2px;
  height:1px; background: var(--thread);
  transition: right .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after{ right: 0; }

.nav-cta{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.nav-cta:hover{ transform: translateY(-1px); background: var(--thread); }

.nav-toggle{ display:none; }
@media (max-width: 880px){
  .nav-links{
    position:absolute; top: 100%; left:0; right:0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 14px;
    transform: translateY(-12px);
    opacity:0; pointer-events:none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.is-open .nav-links{ opacity:1; transform: translateY(0); pointer-events:auto;}
  .nav-toggle{
    display:inline-flex; align-items:center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    justify-content:center;
    background: var(--surface);
  }
  .nav-cta-desktop{display:none}
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--thread); color: #fff; transform: translateY(-2px); }
.btn-ghost{ border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover{ border-color: var(--thread); color: var(--thread); transform: translateY(-2px); }
.btn-thread{ background: var(--thread); color: #fff;}
.btn-thread:hover{ background: var(--ink); transform: translateY(-2px);}
.btn svg{ width: 18px; height: 18px; }

/* ---------- thread divider ---------- */
.thread-line{
  height: 28px;
  width: 100%;
  background-image: radial-gradient(circle, var(--thread) 1.4px, transparent 2px);
  background-size: 14px 28px;
  background-position: center;
  background-repeat: repeat-x;
  opacity: .55;
}

/* ---------- sections ---------- */
section{ padding: var(--section-pad) 0; position: relative; }
.section-head{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head--center{
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  margin-bottom: 64px;
}
.section-head--center .lede{ margin: 16px auto 0;}
.section-head--center .eyebrow{ justify-content: center;}
@media (max-width: 880px){
  .section-head{ grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- generic card grids ---------- */
.grid-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.grid-cards--2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px){ .grid-cards{ grid-template-columns: 1fr; } }
.card{
  background: var(--surface);
  padding: 36px;
}
.card .icon{
  width: 44px; height: 44px;
  margin-bottom: 24px;
  color: var(--thread);
}
.card h3{ margin-bottom: 12px; }
.card p{ color: var(--ink-soft); margin: 0; }

/* ---------- footer ---------- */
footer{ border-top: 1px solid var(--line-soft); padding: 56px 0 32px;}
.foot-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px){ .foot-grid{ grid-template-columns: 1fr; gap: 32px; } }
.foot-brand{
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.foot-brand .accent{ color: var(--thread); font-style:italic; font-weight: 300;}
.foot-grid p{ color: var(--ink-soft); max-width: 36ch;}
.foot-col h4{
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px;}
.foot-col a{ color: var(--ink-soft); font-size:.95rem; transition: color .2s ease;}
.foot-col a:hover{ color: var(--thread);}
.foot-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- reveal ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal{opacity:1; transform:none;}
  html{scroll-behavior:auto}
}

/* ---------- subpage hero ---------- */
.page-hero{
  padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(184,57,42,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184,57,42,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.page-hero .container{ position: relative; }
.page-hero h1{ max-width: 18ch; }
.page-hero .lede{ margin-top: 24px; }

/* ---------- prose (legal pages, articles) ---------- */
.prose{
  max-width: 72ch;
  font-size: 1rem;
  color: var(--ink-soft);
}
.prose h2{ margin-top: 56px; margin-bottom: 16px; font-size: 1.8rem; color: var(--ink); }
.prose h3{ margin-top: 32px; margin-bottom: 10px; font-size: 1.25rem; color: var(--ink); }
.prose p{ margin: 0 0 1em; }
.prose ul, .prose ol{ padding-left: 1.2em; margin: 0 0 1em;}
.prose li{ margin-bottom: 6px;}
.prose a{ color: var(--thread); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover{ color: var(--ink); }
.prose strong{ color: var(--ink); }
