:root {
  --paper: #F3F0E8;
  --paper-2: #E9E4D8;
  --ink: #15191A;
  --ink-2: #4B5254;
  --line: #CFC9BA;
  --signal: #FF5A2C;
  --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* header */
header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.logo svg { width: 26px; height: 26px; }
.logo span em { font-style: normal; font-weight: 400; color: var(--ink-2); }
nav.main { display: flex; gap: 28px; font-size: 14px; }
nav.main a { text-decoration: none; color: var(--ink-2); }
nav.main a:hover { color: var(--ink); }

/* hero */
.hero { padding: clamp(56px, 11vw, 150px) 0 clamp(48px, 8vw, 96px); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 10px; margin: 0 0 28px; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); display: inline-block; }
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(44px, 8.4vw, 124px);
  line-height: .98;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--signal); font-weight: 400; }
.hero p.lede { max-width: 46ch; margin: 36px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }

/* section heads */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 28px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.sec-head span:last-child { color: var(--ink-2); }

/* work grid */
.work { padding-bottom: clamp(56px, 8vw, 110px); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { grid-column: span 6; text-decoration: none; display: block; }
.tile.wide { grid-column: span 12; }
.art {
  position: relative; overflow: hidden; border-radius: 18px;
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(18px, 2.4vw, 32px); color: var(--fg, #fff);
  background: var(--bg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-radius .35s;
}
.tile.wide .art { aspect-ratio: 21 / 9; }
.tile:hover .art { transform: translateY(-4px); border-radius: 26px; }
.art .mono {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(90px, 16vw, 230px); line-height: .8; letter-spacing: -0.05em;
  position: absolute; top: clamp(14px, 2vw, 28px); left: clamp(18px, 2.4vw, 32px); opacity: .95;
}
.art .tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; position: relative; }
.art .arrow { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--fg, #fff); color: var(--bg); display: grid; place-items: center; font-size: 20px; transition: transform .3s; }
.tile:hover .arrow { transform: rotate(-45deg); }
.meta { display: flex; justify-content: space-between; gap: 20px; padding: 16px 2px 0; }
.meta h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.meta p { margin: 4px 0 0; color: var(--ink-2); max-width: 44ch; font-size: 15px; }
.meta .host { font-size: 14px; color: var(--ink-2); white-space: nowrap; padding-top: 6px; }

/* decorative art patterns */
.p-dots::after, .p-grid::after, .p-rings::after, .p-stripes::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; }
.p-dots::after { background: radial-gradient(currentColor 1.5px, transparent 1.6px) 0 0 / 22px 22px; }
.p-grid::after { background: linear-gradient(currentColor 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, currentColor 1px, transparent 1px) 0 0 / 40px 40px; }
.p-rings::after { background: repeating-radial-gradient(circle at 85% 20%, currentColor 0 1px, transparent 1px 26px); }
.p-stripes::after { background: repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 22px); }

/* about */
.about { background: var(--ink); color: var(--paper); padding: clamp(56px, 9vw, 120px) 0; }
.about .grid { align-items: start; }
.about h2 { grid-column: span 7; font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.about h2 em { color: var(--signal); }
.about .cols { grid-column: 9 / span 4; color: #B9BDB5; font-size: 15px; }
.about .cols p { margin: 0 0 16px; }
.about a { color: var(--paper); }

/* footer */
footer.site { background: var(--ink); color: var(--paper); border-top: 1px solid #2B3234; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 26px; padding-bottom: 30px; font-size: 14px; color: #9EA39B; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--paper); }
footer.site nav { display: flex; gap: 24px; }

/* text pages */
.text-page { padding: clamp(40px, 8vw, 100px) 0 clamp(56px, 8vw, 110px); }
.text-page h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1; margin: 0 0 32px; }
.text-page .body { max-width: 640px; }
.text-page h2 { font-size: 20px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.text-page p { color: var(--ink-2); }
.text-page a { color: var(--ink); text-decoration-color: var(--signal); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .tile, .tile.wide { grid-column: span 12; }
  .tile.wide .art { aspect-ratio: 4 / 3; }
  .about h2, .about .cols { grid-column: span 12; }
  .about .grid { gap: 28px; }
  .meta { flex-direction: column; gap: 4px; }
  nav.main { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* project logos */
.art .logo-img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%);
  width: clamp(96px, 17vw, 200px); height: auto; object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.22));
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.tile.wide .logo-img { width: clamp(96px, 14vw, 180px); }
.tile:hover .logo-img { transform: translate(-50%, -62%) scale(1.06) rotate(-3deg); }
.art .logo-img[src$="bob.svg"] { width: clamp(110px, 20vw, 230px); }

/* equal tiles */
.tile, .tile.wide { grid-column: span 4; }
.tile.wide .art { aspect-ratio: 4 / 3; }
.tile.wide .logo-img { width: clamp(96px, 17vw, 200px); }
.art .logo-img { width: clamp(84px, 11vw, 150px); max-height: 52%; }
.art .logo-img[src$="bob.svg"] { width: clamp(96px, 13vw, 170px); }
.art .logo-img[src$="vileveil.png"] { width: 62%; max-height: none; filter: none; }
.art .logo-img[src$="poppypencil.png"] { width: auto; height: 62%; max-height: none; }
.art.more .plus { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); font-family: 'Fraunces', Georgia, serif; font-size: clamp(90px, 12vw, 160px); line-height: 1; color: var(--signal); font-weight: 400; }
.meta { flex-direction: column; gap: 2px; }
.meta .host { padding-top: 6px; }
@media (max-width: 1000px) { .tile, .tile.wide { grid-column: span 6; } }
@media (max-width: 640px) { .tile, .tile.wide { grid-column: span 12; } }

/* tighter hero */
.hero { padding: clamp(20px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { max-width: none; font-size: clamp(44px, 8vw, 112px); line-height: 1; }
.hero p.lede { margin-top: 24px; }

/* hero size cap for wide screens */
.hero h1 { font-size: clamp(40px, 5.6vw, 84px); letter-spacing: -0.03em; }
.hero p.lede { font-size: clamp(16px, 1.3vw, 19px); }

/* hero with path art */
.hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: center; }
.hero .hero-copy h1 { font-size: clamp(40px, 6vw, 108px); }
.hero-art { position: relative; width: 440px; height: 440px; color: #9A9484; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip {
  position: absolute; left: 0; top: 0; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  offset-path: path('M56 396 C250 420 50 290 215 262 S130 140 235 118 S350 70 394 52');
  offset-distance: var(--d); offset-rotate: 0deg;
  background: var(--bg); border-radius: 18px; display: grid; place-items: center; padding: 9px;
  box-shadow: 0 10px 24px rgba(21,25,26,.18), 0 0 0 3px var(--paper);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  animation: bob 5s ease-in-out infinite;
}
.chip img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chip:nth-of-type(odd) { animation-delay: -2.5s; }
.chip:hover { transform: scale(1.18) rotate(-4deg); z-index: 2; animation-play-state: paused; }
@keyframes bob { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 4px; } }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

/* hero art: tidy staggered rows (replaces path layout) */
.hero-art { width: 100%; max-width: 440px; height: auto; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-self: end; }
.chip-row { display: flex; gap: 16px; justify-content: center; }
.chip-row:first-child { transform: translateX(0); }
.chip {
  position: relative; left: auto; top: auto; margin: 0; offset-path: none;
  width: 96px; height: 96px; border-radius: 24px; padding: 14px; flex: none;
  box-shadow: 0 12px 26px rgba(21,25,26,.16);
}
.chip:nth-child(1) { rotate: -3deg; } .chip:nth-child(2) { rotate: 2deg; } .chip:nth-child(3) { rotate: -2deg; } .chip:nth-child(4) { rotate: 3deg; }
.chip-row:nth-child(2) .chip:nth-child(even) { translate: 0 10px; }
.chip:hover { rotate: 0deg; }
@keyframes bob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 3px; } }
@media (max-width: 1000px) { .hero-art { display: none; } }

/* keep tall logos (Poppy Pencil) inside their chip */
.chip { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.chip img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; }

/* about page */
.about-page .eyebrow { margin-bottom: 20px; }
.about-page h1 { max-width: 16ch; font-size: clamp(38px, 5.6vw, 84px); }
.about-page h1 em { font-style: italic; color: var(--signal); font-weight: 400; }
.about-lede { max-width: 640px; margin: 0 0 clamp(40px, 6vw, 80px); }
.about-lede p { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); line-height: 1.5; margin: 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 1px solid var(--ink); }
.about-grid > div { padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.about-grid h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.about-grid p { margin: 0; max-width: 46ch; }
.principles { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.principles li { padding: 6px 0; }
.principles strong { color: var(--ink); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* about hero: two columns */
.about-hero { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; margin-bottom: clamp(32px, 5vw, 64px); }
.about-hero .about-lede { margin-bottom: 0; }
.about-page h1 { max-width: none; font-size: clamp(36px, 4.6vw, 68px); }
.about-card { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 12px 32px 24px; }
.about-card .stat { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid #2B3234; }
.about-card .num { font-family: 'Fraunces', Georgia, serif; font-size: 64px; line-height: 1; letter-spacing: -0.03em; min-width: 2ch; }
.about-card .stat:first-child .num { color: var(--signal); }
.about-card .lbl { color: #B9BDB5; font-size: 15px; }
.about-card .card-foot { margin: 20px 0 0; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9EA39B; }
.about-card .card-foot i { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); display: inline-block; }
@media (max-width: 960px) { .about-hero { grid-template-columns: 1fr; gap: 36px; } .about-card { max-width: 440px; } }
