/* ==========================================================
   Lanshuo Printing — creative print & stationery site
   Theme: "press sheet" — warm paper, ink black, Lanshuo blue,
   CMYK accents, crop/registration marks as decoration.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,800;1,9..144,400;1,9..144,600&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --card: #fbf8f2;
  --ink: #16161a;
  --ink-2: #4a4a52;
  --line: #d8cfbd;
  --blue: #2338c4;      /* Lanshuo = "blue" */
  --blue-d: #172788;
  --c: #1fa6c9;
  --m: #e0457b;
  --y: #f5c518;
  --radius: 4px;
  --max: 1240px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
em { font-style: italic; color: var(--blue); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }

/* CMYK dot row */
.cmyk { display: inline-flex; gap: 5px; vertical-align: middle; }
.cmyk i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.cmyk i:nth-child(1) { background: var(--c); }
.cmyk i:nth-child(2) { background: var(--m); }
.cmyk i:nth-child(3) { background: var(--y); }
.cmyk i:nth-child(4) { background: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em;
  font-weight: 600; border-radius: 999px; border: 1.5px solid var(--ink);
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 228, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { height: 42px; width: auto; display: block; flex-shrink: 0; transition: transform .2s ease; }
.logo:hover .logo-mark { transform: scale(1.05); }
.logo-brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title { font-family: var(--serif); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; color: var(--ink); }
.brand-subtitle { font-family: var(--sans); font-weight: 600; font-size: .62rem; letter-spacing: .18em; color: var(--ink-2); margin-top: 1px; }
.site-footer .brand-title { color: var(--paper); }
.site-footer .brand-subtitle { color: #9c9990; font-weight: 500; font-size: .72rem; letter-spacing: .05em; }
.nav { display: flex; align-items: center; gap: 34px; font-weight: 500; }
.nav a { position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--blue); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: .6em 1.2em; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* ---------- sections ---------- */
section { padding: 110px 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .muted, .band-ink .lead { color: #b9b6ad; }
.band-ink .eyebrow { color: #b9b6ad; }
.band-alt { background: var(--paper-2); }

/* page hero (inner pages) */
.page-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 18px 0 20px; max-width: 16ch; }
.breadcrumb { font-size: .85rem; color: var(--ink-2); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- crop-mark frame (decorative) ---------- */
.crop { position: relative; }
.crop::before, .crop::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--ink); border-style: solid; opacity: .55;
}
.crop::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.crop::after { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; }

/* ---------- image placeholder ---------- */
.ph {
  position: relative; background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(22,22,26,.04) 14px 15px), var(--card);
  border: 1px dashed #bfb39b; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-2); font-size: .82rem; padding: 18px; min-height: 220px;
  border-radius: var(--radius);
}
.ph span { max-width: 26ch; }
.ph b { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.ph.tall { min-height: 420px; }

/* ---------- home hero ---------- */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em;
  background: var(--y); z-index: -1; transform: skew(-8deg);
}
.hero .actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-collage { position: relative; height: 520px; }
.hero-collage > * { position: absolute; box-shadow: 0 30px 50px -25px rgba(22,22,26,.35); }
.hero-collage .a { top: 0; left: 6%; width: 58%; height: 62%; transform: rotate(-4deg); }
.hero-collage .b { top: 12%; right: 0; width: 46%; height: 50%; transform: rotate(5deg); }
.hero-collage .c { bottom: 0; left: 22%; width: 56%; height: 44%; transform: rotate(1.5deg); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 34px 28px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; display: block; line-height: 1; }
.stats span { font-size: .9rem; color: var(--ink-2); }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.cat {
  grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s;
}
.cat:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(22,22,26,.4); }
.cat .ph, .cat img { min-height: 200px; height: 200px; object-fit: cover; border-radius: var(--radius); }
.cat .num { font-family: var(--serif); font-style: italic; color: var(--blue); }
.cat ul { list-style: none; font-size: .92rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.cat ul li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* ---------- generic grids / cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 10px 0 8px; }
.band-ink .card { background: #222228; border-color: #33333b; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.band-ink .tag { color: var(--y); }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.todo { background: #fff3c4; border-left: 3px solid var(--y); padding: 2px 8px; font-size: .85rem; color: #6b5300; }

/* ---------- timeline (about) ---------- */
.timeline { border-left: 2px solid var(--ink); margin-left: 8px; }
.timeline li { list-style: none; padding: 0 0 38px 34px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue);
}
.timeline .yr { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--blue); }

/* ---------- product page ---------- */
.subnav { position: sticky; top: 74px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; }
.subnav a { white-space: nowrap; padding: .45em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 500; }
.subnav a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.prod-cat { padding: 90px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.prod-cat-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; margin-bottom: 40px; align-items: end; }
.prod-cat-head .idx { font-family: var(--serif); font-size: 5rem; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod { display: flex; flex-direction: column; gap: 12px; }
.prod .ph, .prod img { height: 230px; min-height: 230px; object-fit: cover; border-radius: var(--radius); }
.prod h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; }
.prod p { font-size: .9rem; color: var(--ink-2); }
.spec { display: flex; flex-wrap: wrap; gap: 6px; }
.spec span { font-size: .74rem; background: var(--paper-2); padding: 2px 8px; border-radius: 3px; }

/* ---------- process (custom) ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; }
.step { padding: 28px 22px; border-left: 1px solid #33333b; position: relative; }
.step:first-child { border-left: 0; }
.step::before {
  counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 2.6rem; color: var(--y); display: block; line-height: 1; margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; font-family: var(--sans); font-weight: 600; }
.step p { font-size: .9rem; color: #b9b6ad; }
.step .time { display: inline-block; margin-top: 12px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }

.equip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.equip + .equip { margin-top: 26px; }
.equip.rev .photo { order: 2; }
.equip .photo { min-height: 320px; border-radius: 0; }
.equip .body { padding: 40px; }
.equip table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .92rem; }
.equip td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.equip td:first-child { color: var(--ink-2); width: 42%; }

.proc-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: center; }
.proc-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.proc-strip span { font-size: .85rem; font-weight: 600; }

.case { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case + .case { margin-top: 26px; }
.case .photo { min-height: 340px; border-radius: 0; }
.case .body { padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .9rem; margin-top: 6px; }
.case dt { color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.info-list { list-style: none; display: grid; gap: 22px; margin-top: 30px; }
.info-list li { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.info-list b { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-top: 3px; }
form.card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 40px; }
form .full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 600; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; padding: .75em .9em; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: .35em .9em; border-radius: 999px; cursor: pointer; margin: 0; }
.chips input { width: auto; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 100px 0; }
.cta h2 { max-width: 20ch; margin: 18px auto 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b6ad; padding: 70px 0 30px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: var(--paper); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--y); }
.site-footer .logo { color: var(--paper); }
.site-footer .bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid #33333b; display: flex; justify-content: space-between; font-size: .8rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .grid-2, .section-head, .prod-cat-head, .contact-grid, .equip, .case { grid-template-columns: 1fr; }
  .equip.rev .photo { order: 0; }
  .hero-collage { height: 420px; }
  .grid-3, .grid-4, .prod-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat, .cat:nth-child(1), .cat:nth-child(2) { grid-column: span 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-left: 0; border-top: 1px solid #33333b; }
  .proc-strip { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--line); gap: 18px; }
  .nav.open { display: flex; }
  .grid-3, .grid-4, .prod-grid, .cat-grid, .steps { grid-template-columns: 1fr; }
  form.card { grid-template-columns: 1fr; padding: 26px; }
  section { padding: 70px 0; }
}
