/* ============================================================
   Fokus na pieska — landing page + case study
   Warm, soft brand: ivory paper, cocoa ink, coral + honey accents,
   teal "fresh" highlight. Fraunces (display) + Inter (body).
   ============================================================ */

:root {
  --ivory: #FEF2DB;
  --ivory-deep: #F8E6C2;
  --cocoa: #241207;
  --cocoa-soft: #543D33;
  --coral: #EE8988;
  --honey: #FED47A;
  --tan: #F5BE8C;
  --fresh: #30D6C9;
  --white: #ffffff;
  --line: rgba(36, 18, 7, 0.12);
  --line-soft: rgba(36, 18, 7, 0.08);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1280px;
  --shadow-card: 0 18px 40px -26px rgba(36, 18, 7, 0.35);
  --shadow-soft: 0 10px 30px -20px rgba(36, 18, 7, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--coral); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cocoa);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.35vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; }
h4 { font-size: 1.125rem; line-height: 1.3; margin: 0; }
p { margin: 0; line-height: 1.65; text-wrap: pretty; }
em, .it { font-family: var(--font-display); font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

/* ---------- grain overlay ---------- */
.grain { position: relative; }
.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.07 0 0 0 0 0.03 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 100px; border: none;
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem;
  padding: 14px 24px; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn .ic { transition: transform 0.3s var(--ease); }
.btn--solid { background: var(--cocoa); color: var(--ivory); }
.btn--solid:hover { background: rgba(36,18,7,0.9); box-shadow: 0 14px 34px -16px rgba(36,18,7,0.6); transform: rotate(2deg); }
.btn--solid:hover .ic { transform: translateX(4px); }
.btn--ghost { background: rgba(255,255,255,0.45); color: var(--cocoa); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,0.8); }

/* ---------- paw print ---------- */
.paw { position: absolute; pointer-events: none; display: block; color: var(--coral); z-index: 2; }
.paw svg { width: 100%; height: 100%; display: block; }

/* ====================================================
   HEADER / NAV
   ==================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(254, 242, 219, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 104px; transition: height 0.45s var(--ease);
}
.nav.is-scrolled .wrap { height: 76px; }
.nav-brand { display: flex; align-items: center; gap: 16px; transition: gap 0.45s var(--ease); }
.nav.is-scrolled .nav-brand { gap: 10px; }
.nav-mark {
  width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: var(--ivory-deep);
  box-shadow: 0 6px 16px -10px rgba(36,18,7,0.5);
  transition: all 0.45s var(--ease); overflow: hidden;
}
.nav.is-scrolled .nav-mark { width: 44px; height: 44px; box-shadow: none; }
.nav-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-word { font-family: var(--font-display); font-size: 1.2rem; color: var(--cocoa); letter-spacing: -0.01em; transition: font-size 0.45s var(--ease); }
.nav.is-scrolled .nav-word { font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--cocoa-soft); font-size: 0.95rem; position: relative; transition: color 0.2s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--fresh); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--cocoa); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; border-radius: 100px;
  background: var(--cocoa); color: var(--ivory); padding: 11px 22px; font-size: 0.92rem; font-weight: 500;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: rgba(36,18,7,0.9); box-shadow: 0 8px 20px -8px rgba(36,18,7,0.5); transform: rotate(3deg); }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(36,18,7,0.06); border: none; color: var(--cocoa); place-items: center; }
.nav-sheet { display: none; }

/* ====================================================
   HERO
   ==================================================== */
.hero { position: relative; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; }
.hero__blob--1 { top: -130px; left: -130px; width: 460px; height: 460px; background: rgba(254,212,122,0.4); }
.hero__blob--2 { top: 160px; right: -160px; width: 520px; height: 520px; background: rgba(238,137,136,0.25); }
.hero .wrap {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0,1.28fr) minmax(340px,0.92fr);
  gap: clamp(32px, 4vw, 48px); align-items: center;
  padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 112px);
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 16px 6px 6px; margin-bottom: 28px;
}
.eyebrow-pill i { width: 24px; height: 24px; border-radius: 50%; background: var(--fresh); display: grid; place-items: center; color: var(--cocoa); }
.eyebrow-pill span { font-size: 0.82rem; color: var(--cocoa-soft); }
.hero h1 { max-width: 13ch; }
.hl { position: relative; display: inline-block; padding: 0 6px; }
.hl::before { content: ""; position: absolute; inset-inline: 0; bottom: 0.1em; height: 0.18em; background: rgba(238,137,136,0.4); transform: rotate(-1deg); border-radius: 4px; }
.hl span { position: relative; font-family: var(--font-display); font-style: italic; }
.hero__lead { margin-top: 24px; max-width: 35ch; font-size: 1.05rem; color: var(--cocoa-soft); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 40px; display: flex; align-items: center; gap: 20px; color: var(--cocoa-soft); font-size: 0.9rem; }
.hero__meta .mi { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .mi svg { color: var(--coral); }
.hero__meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(36,18,7,0.3); }

/* collage */
.collage { position: relative; height: clamp(480px, 56vw, 640px); }
.collage figure { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(36,18,7,0.4); }
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { right: 8px; top: 0; width: 58%; height: 68%; border-radius: 2rem; transform: rotate(2deg); }
.collage .c2 { left: 0; top: 28%; width: 52%; height: 58%; border-radius: 2rem; transform: rotate(-3deg); }
.collage .c3 { right: 0; bottom: 0; width: 40%; height: 34%; border-radius: 1.5rem; transform: rotate(4deg); }
.collage .chip {
  position: absolute; z-index: 6; left: 6%; bottom: 2%;
  background: var(--white); border-radius: 1rem; padding: 12px 16px;
  box-shadow: 0 20px 40px -20px rgba(36,18,7,0.35); border: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.collage .chip .star { width: 36px; height: 36px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; color: var(--cocoa); }
.collage .chip b { font-size: 0.9rem; font-weight: 500; display: block; }
.collage .chip small { font-size: 0.8rem; color: var(--cocoa-soft); display: block; }
.collage .paw1 { left: -8px; top: -8px; width: 80px; height: 80px; color: var(--coral); transform: rotate(-22deg); }
.collage .paw2 { right: 2%; top: 42%; width: 56px; height: 56px; color: rgba(36,18,7,0.8); transform: rotate(18deg); }
.collage .paw3 { left: 52%; bottom: -24px; width: 64px; height: 64px; color: var(--honey); transform: rotate(-8deg); }

/* ====================================================
   ABOUT
   ==================================================== */
.section { position: relative; padding: clamp(72px, 9vw, 112px) 0; }
.kick { display: inline-block; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.about .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; position: relative; z-index: 3; }
.about__lead { font-size: 1.05rem; color: var(--cocoa-soft); max-width: 32ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value {
  background: var(--white); border-radius: 1.5rem; padding: 24px; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(36,18,7,0.3); }
.value .vi { width: 44px; height: 44px; border-radius: 50%; background: rgba(254,212,122,0.6); display: grid; place-items: center; margin-bottom: 16px; color: var(--cocoa); transition: background 0.3s var(--ease); }
.value:hover .vi { background: rgba(238,137,136,0.3); }
.value p { font-size: 0.92rem; color: var(--cocoa-soft); margin-top: 8px; }
.about .paw-a { right: 12px; top: 24px; width: 48px; height: 48px; color: rgba(238,137,136,0.7); transform: rotate(14deg); }
.about .paw-b { left: 8px; bottom: 24px; width: 40px; height: 40px; color: var(--honey); transform: rotate(-18deg); }

/* ====================================================
   PORTFOLIO
   ==================================================== */
.portfolio { background: linear-gradient(to bottom, transparent, rgba(248,230,194,0.4), transparent); }
.portfolio__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.portfolio__head h2 { max-width: 16ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border-radius: 100px; padding: 8px 16px; font-size: 0.88rem; font-weight: 500;
  background: rgba(255,255,255,0.6); color: var(--cocoa); border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}
.filter:hover { border-color: rgba(36,18,7,0.4); }
.filter.is-active { background: var(--cocoa); color: var(--ivory); border-color: var(--cocoa); }

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  grid-auto-rows: 220px; grid-auto-flow: dense;
}
.tile {
  position: relative; overflow: hidden; border-radius: 1.25rem; border: none; padding: 0;
  background: var(--ivory-deep); cursor: pointer;
}
.tile.span2c { grid-column: span 2; }
.tile.span2r { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.02); transition: filter 0.7s var(--ease), transform 0.9s var(--ease); }
.tile:hover img, .tile:focus-visible img { filter: grayscale(0%) contrast(1); transform: scale(1.04); }
.tile__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(36,18,7,0.6), transparent 55%); opacity: 0; transition: opacity 0.3s var(--ease); }
.tile:hover .tile__shade, .tile:focus-visible .tile__shade { opacity: 1; }
.tile__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; transform: translateY(8px); opacity: 0; transition: all 0.3s var(--ease); text-align: left; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: translateY(0); opacity: 1; }
.tile__cap .c { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--honey); }
.tile__cap .t { color: var(--ivory); font-size: 0.95rem; line-height: 1.25; }
.tile.is-hidden { display: none; }

.more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.75); color: var(--cocoa); border: 1px solid var(--line);
  border-radius: 100px; padding: 14px 24px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px -24px rgba(36,18,7,0.45); transition: all 0.3s var(--ease);
}
.more-btn:hover { background: var(--white); border-color: rgba(36,18,7,0.3); transform: translateY(-2px); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(36,18,7,0.9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 32px); }
.lightbox.is-open { display: flex; }
.lb-fig { max-width: 1100px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; gap: 12px; }
.lb-fig .img { flex: 1; min-height: 0; border-radius: 1rem; overflow: hidden; background: var(--cocoa); display: grid; place-items: center; }
.lb-fig img { width: 100%; height: 100%; object-fit: contain; max-height: 78vh; }
.lb-cap { display: flex; align-items: center; gap: 12px; color: rgba(254,242,219,0.9); font-size: 0.9rem; padding: 0 4px; }
.lb-cap .c { padding: 4px 8px; border-radius: 100px; background: rgba(254,212,122,0.9); color: var(--cocoa); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(254,242,219,0.9); color: var(--cocoa); border: none; display: grid; place-items: center; transition: background 0.2s; }
.lb-btn:hover { background: var(--ivory); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: clamp(12px, 3vw, 24px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(12px, 3vw, 24px); top: 50%; transform: translateY(-50%); }

/* ====================================================
   OFFER
   ==================================================== */
.offer__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.offer__head h2 { max-width: 14ch; }
.offer__head p { color: var(--cocoa-soft); max-width: 38ch; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pkg {
  position: relative; overflow: hidden; border-radius: 1.75rem; padding: clamp(24px, 3vw, 32px);
  background: var(--white); border: 1px solid var(--line-soft); box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pkg:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(36,18,7,0.4); }
.pkg.is-featured { transform: scale(1.02); }
.pkg.is-featured:hover { transform: scale(1.02) translateY(-6px); }
.pkg__glow { position: absolute; top: -20px; right: -20px; width: 96px; height: 96px; border-radius: 50%; filter: blur(40px); opacity: 0.8; }
.pkg__glow--honey { background: rgba(254,212,122,0.6); }
.pkg__glow--coral { background: rgba(238,137,136,0.4); }
.pkg__glow--tan { background: rgba(245,190,140,0.7); }
.pkg__badge { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 100px; background: rgba(48,214,201,0.2); color: var(--cocoa); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; border: 1px solid rgba(48,214,201,0.4); }
.pkg h3 { margin-bottom: 12px; position: relative; }
.pkg__desc { color: var(--cocoa-soft); font-size: 0.95rem; margin-bottom: 24px; position: relative; }
.pkg__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); position: relative; }
.pkg__price .l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cocoa-soft); }
.pkg__price .v { font-family: var(--font-display); font-size: 1.3rem; color: var(--cocoa); }
.pkg__btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; background: var(--cocoa); color: var(--ivory); padding: 10px 16px; font-size: 0.88rem; font-weight: 500; transition: background 0.2s; }
.pkg__btn:hover { background: rgba(36,18,7,0.9); }
.pkg__btn:hover svg { transform: rotate(12deg); }
.pkg__btn svg { transition: transform 0.3s var(--ease); }

/* ====================================================
   PROCESS
   ==================================================== */
.process { background: rgba(248,230,194,0.4); overflow: hidden; }
.process__head { text-align: center; margin-bottom: 56px; }
.process__head h2 { max-width: 16ch; margin: 0 auto; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 40px); }
.steps .dash { display: none; }
.step { text-align: center; position: relative; }
.step__ic { position: relative; margin: 0 auto 20px; width: 80px; height: 80px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 12px 30px -18px rgba(36,18,7,0.4); }
.step__ic .n { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--ivory); font-size: 0.78rem; display: grid; place-items: center; }
.step p { color: var(--cocoa-soft); font-size: 0.95rem; max-width: 28ch; margin: 8px auto 0; }
.process .paw-a { left: 32px; top: 48px; width: 48px; height: 48px; color: rgba(238,137,136,0.7); transform: rotate(-16deg); }
.process .paw-b { right: 40px; bottom: 40px; width: 44px; height: 44px; color: var(--honey); transform: rotate(20deg); }

/* ====================================================
   FINAL CTA
   ==================================================== */
.final .wrap { position: relative; z-index: 3; }
.final__card {
  position: relative; overflow: hidden; border-radius: 2.5rem; background: var(--white);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-card);
}
.final__blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.final__blob--1 { top: 56px; left: -160px; width: 420px; height: 420px; background: rgba(238,137,136,0.15); }
.final__blob--2 { bottom: -144px; right: -48px; width: 420px; height: 420px; background: rgba(254,212,122,0.2); }
.final__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 4vw, 48px); padding: clamp(32px, 5vw, 64px); align-items: center; }
.final__grid h2 em { color: var(--coral); }
.final__grid p { margin-top: 20px; max-width: 34ch; color: var(--cocoa-soft); font-size: 1.05rem; }
.final__photos { position: relative; height: clamp(280px, 32vw, 360px); }
.final__photos figure { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(36,18,7,0.5); }
.final__photos img { width: 100%; height: 100%; object-fit: cover; }
.final__photos .p1 { right: 0; top: 0; width: 78%; height: 100%; border-radius: 1.75rem; transform: rotate(2deg); }
.final__photos .p2 { left: 0; bottom: 8px; width: 55%; height: 60%; border-radius: 1.5rem; transform: rotate(-4deg); }
.final .paw-a { z-index: 5; right: 24px; top: 24px; width: 48px; height: 48px; color: rgba(238,137,136,0.7); transform: rotate(18deg); }
.final .paw-b { z-index: 5; left: 24px; bottom: 24px; width: 40px; height: 40px; color: var(--honey); transform: rotate(-14deg); }

/* ====================================================
   FOOTER
   ==================================================== */
.foot { padding: 0 0 48px; position: relative; z-index: 3; }
.foot__grid { border-top: 1px solid var(--line); padding-top: 48px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot__brand .w { font-family: var(--font-display); font-size: 1.3rem; color: var(--cocoa); }
.foot__brand p { margin-top: 16px; max-width: 36ch; color: var(--cocoa-soft); font-size: 0.95rem; }
.foot__col .h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--cocoa-soft); margin-bottom: 16px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot__col a, .foot__col li { color: var(--cocoa); transition: color 0.2s; display: inline-flex; align-items: center; gap: 10px; }
.foot__col a:hover { color: var(--coral); }
.foot__col svg { color: var(--coral); flex: 0 0 auto; }
.foot__bot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--cocoa-soft); }
.foot__bot .heart { color: var(--coral); }

/* ====================================================
   REVEAL
   ==================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-fallback .reveal, .reveal.in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ====================================================
   CASE STUDY PAGE
   ==================================================== */
.cs-head { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); }
.cs-head-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.cs-aside { position: sticky; top: 120px; }
.cs-back { display: inline-block; font-size: 0.9rem; color: var(--cocoa-soft); margin-bottom: 28px; transition: color 0.2s; }
.cs-back:hover { color: var(--coral); }
.cs-meta { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 24px; }
.cs-meta .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cocoa-soft); margin-bottom: 4px; }
.cs-meta .v { font-family: var(--font-display); font-size: 1.05rem; color: var(--cocoa); }
.cs-head h1 { max-width: 16ch; }
.cs-head .lead { margin-top: 24px; max-width: 56ch; color: var(--cocoa-soft); font-size: 1.1rem; }
.cs-head .lead .it { color: var(--cocoa); }

.cs-sec { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); position: relative; z-index: 3; }
.cs-sechead { display: flex; align-items: baseline; gap: 20px; margin-bottom: 44px; }
.cs-sechead .no { font-family: var(--font-display); font-size: 1.4rem; color: var(--coral); }
.cs-sechead h2 { line-height: 1; }
.cs-sechead .sub { display: block; margin-top: 8px; font-size: 0.95rem; color: var(--cocoa-soft); letter-spacing: 0; text-transform: none; }

/* design system grid */
.ds-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.ds-cell { background: var(--white); border: 1px solid var(--line-soft); border-radius: 1.5rem; padding: clamp(20px, 2.5vw, 28px); box-shadow: var(--shadow-soft); }
.ds-cell--8 { grid-column: span 7; }
.ds-cell--4 { grid-column: span 5; }
.ds-cell--7 { grid-column: span 7; }
.ds-cell--5 { grid-column: span 5; }
.ds-cell--alt { background: var(--cocoa); color: var(--ivory); }
.ds-lab { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cocoa-soft); margin-bottom: 18px; }
.ds-cell--alt .ds-lab { color: var(--honey); }
.ds-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ds-swatch .chip { height: 64px; border-radius: 0.9rem; border: 1px solid var(--line-soft); margin-bottom: 10px; }
.ds-swatch .role { font-size: 0.82rem; font-weight: 500; }
.ds-swatch .hex { font-size: 0.75rem; color: var(--cocoa-soft); font-variant-numeric: tabular-nums; }
.ds-note { margin-top: 20px; font-size: 0.92rem; color: var(--cocoa-soft); max-width: 60ch; }
.ds-type { display: grid; gap: 20px; }
.ds-type .row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.ds-type .aa { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--cocoa); }
.ds-type .aa-it { font-style: italic; color: var(--coral); }
.ds-type .aa-sans { font-family: var(--font-sans); font-weight: 600; font-size: 2.4rem; }
.ds-type .what { font-weight: 500; }
.ds-type .face { font-size: 0.85rem; color: var(--cocoa-soft); }
.ds-comp { display: grid; gap: 22px; }
.ds-comp .clab { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cocoa-soft); margin-bottom: 12px; }
.ds-comp .btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ds-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-tag { padding: 6px 14px; border-radius: 100px; font-size: 0.85rem; background: rgba(254,212,122,0.5); color: var(--cocoa); }
.ds-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ds-why li { font-size: 0.95rem; color: rgba(254,242,219,0.85); line-height: 1.55; }
.ds-why b { display: block; color: var(--ivory); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; }

/* problem → solution */
.ps-list { display: grid; gap: 32px; }
.ps-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line-soft); }
.ps-row:last-child { border-bottom: none; padding-bottom: 0; }
.ps-no b { font-family: var(--font-display); font-size: 2.5rem; color: var(--cocoa); display: block; }
.ps-no span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--coral); }
.ps-col .plab { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cocoa-soft); margin-bottom: 10px; }
.ps-col .plab--accent { color: var(--coral); }
.ps-col h3 { margin-bottom: 10px; }
.ps-col p { color: var(--cocoa-soft); font-size: 0.97rem; }
.ps-result { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; background: rgba(48,214,201,0.12); border: 1px solid rgba(48,214,201,0.35); border-radius: 0.9rem; padding: 14px 16px; }
.ps-result .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cocoa-soft); }
.ps-result .v { font-family: var(--font-display); font-size: 1.05rem; color: var(--cocoa); }

.cs-close { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; position: relative; z-index: 3; }
.cs-close h2 { max-width: 18ch; }
.cs-close h2 em { color: var(--coral); }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .collage { max-width: 520px; }
  .about .wrap { grid-template-columns: 1fr; }
  .offer__head, .portfolio__head { flex-direction: column; align-items: flex-start; }
  .final__grid { grid-template-columns: 1fr; }
  .cs-head-grid { grid-template-columns: 1fr; }
  .cs-aside { position: static; }
  .ds-cell--8, .ds-cell--4, .ds-cell--7, .ds-cell--5 { grid-column: span 12; }
  .ps-row { grid-template-columns: 1fr; gap: 16px; }
  .ps-no { display: flex; align-items: baseline; gap: 12px; }
  .ps-no b { font-size: 1.8rem; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .nav-sheet { display: block; overflow: hidden; max-height: 0; transition: max-height 0.3s var(--ease); background: var(--ivory); border-bottom: 1px solid var(--line); }
  .nav-sheet.is-open { max-height: 420px; }
  .nav-sheet__inner { padding: 24px clamp(20px,4vw,32px); display: flex; flex-direction: column; gap: 16px; }
  .nav-sheet a { font-size: 1.15rem; color: var(--cocoa); }
  .nav-sheet .nav-cta { display: inline-flex; justify-content: center; margin-top: 8px; }
  .packages { grid-template-columns: 1fr; }
  .pkg.is-featured { transform: none; }
  .pkg.is-featured:hover { transform: translateY(-6px); }
  .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 12px; }
  .ds-swatches { grid-template-columns: repeat(2, 1fr); }
  .final__photos { height: 320px; }
}
@media (max-width: 420px) {
  .hero__meta { flex-wrap: wrap; gap: 10px; }
}
