/* Raggedy Easel — pure CSS (no framework)
   Swiss Brutalist / High-End Editorial
   Fonts: Outfit (display) + IBM Plex Sans (body) + IBM Plex Mono (labels)
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
input, textarea, select {
  font: inherit; color: inherit; border: 0; background: transparent; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}

:root {
  --bg: #f5efe4;
  --surface: #ffffff;
  --text: #221812;
  --text-2: #6a574a;
  --text-3: #a99884;
  --border: #e7dcc8;
  --border-2: #d5c4a8;
  --accent: #b8621b;
  --accent-2: #8a4813;
  --dark-bg: #221812;
  --dark-fg: #f5efe4;
  --dark-border: #3d2b21;
  --dark-muted: #8a7a6b;
  --wa: #25d366;
  --max: 1400px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

::selection { background: var(--text); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.font-display {
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.font-mono {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.overline {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.grid { display: grid; }
.hair { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 40px; height: 80px; } }
.brand-logo{width: 100%;height: 3rem;object-fit: contain;}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-family: "Outfit", sans-serif; font-weight: 900; font-size: 18px;
}
.brand-meta { display: none; line-height: 1; }
@media (min-width: 640px) { .brand-meta { display: flex; flex-direction: column; } }
.brand-name { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.brand-sub {
  font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); margin-top: 6px;
}

.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-2); letter-spacing: -0.01em; position: relative;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--text);
}

.nav-cta {
  display: none;
  align-items: center; gap: 8px;
  background: var(--text); color: #fff;
  padding: 0 16px; height: 40px; font-size: 14px; font-weight: 500;
  transition: background-color .3s ease;
}
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--wa); color: var(--text); }
.nav-cta svg { width: 16px; height: 16px; }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 1px solid var(--border-2);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu-inner { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 12px 0; font-family: "Outfit", sans-serif; font-weight: 500; font-size: 18px; letter-spacing: -0.02em; border-bottom: 1px solid var(--border); }
.mobile-cat-grid { padding-top: 24px; }
.mobile-cat-grid .overline { display: block; margin-bottom: 12px; }
.mobile-cat-grid ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-cat-grid a { font-size: 14px; padding: 8px 0; border: 0; color: var(--text-2); }
.mobile-cat-grid a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 24px; font-size: 15px; font-weight: 500;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-solid { background: var(--text); color: #fff; border: 1px solid var(--text); }
.btn-solid:hover { background: var(--wa); color: var(--text); border-color: var(--wa); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border: 1px solid var(--text); }
.btn-icon:hover { background: var(--text); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 112px 0 64px;
  overflow: hidden;
  background: var(--bg);
  min-height: 100svh;
}
@media (min-width: 768px) { .hero { padding: 128px 0 96px; } }

.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.32;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}

.hero-meta {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (min-width: 768px) { .hero-meta { grid-template-columns: repeat(4, 1fr); } }
.hero-meta > span:last-child { text-align: right; }
@media (max-width: 767px) { .hero-meta > span:nth-child(n+3) { display: none; } }

.hero-h1 {
  position: relative;
  margin: 40px 0 0;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: clamp(56px, 12vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--text);
}
@media (min-width: 768px) { .hero-h1 { margin-top: 64px; } }
.hero-h1 .line { display: block; }
.hero-h1 .line.bold { font-weight: 900; font-style: italic; }

.reveal { overflow: hidden; display: inline-block; padding-bottom: 0.15em; line-height: 0.95; }
.reveal .word {
  display: inline-block; transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  margin-right: 0.28em;
}
@keyframes rise { to { transform: translateY(0); } }

.hero-body {
  position: relative;
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 900px) {
  .hero-body { grid-template-columns: 9fr 3fr; align-items: end; }
}
.hero-desc { max-width: 26ch; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.hero-desc { opacity: 0; animation: fade-up 0.7s ease 1s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero-ctas {
  position: relative;
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  opacity: 0; animation: fade-up 0.6s ease 1.15s forwards;
}
@media (min-width: 768px) { .hero-ctas { margin-top: 56px; } }
.scroll-hint { display: none; align-items: center; gap: 12px; margin-left: auto; }
@media (min-width: 900px) { .scroll-hint { display: flex; } }
.scroll-hint .bar {
  display: block; width: 1px; height: 32px; background: var(--text);
  animation: bob 1.5s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.hero-visual {
  position: relative;
  margin-top: 56px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(120% 100% at 50% 0%, #ede8dc 0%, #fff 60%);
  will-change: transform;
}
@media (min-width: 768px) { .hero-visual { margin-top: 80px; aspect-ratio: 21 / 9; } }
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply;
}
.hero-visual .col-lines {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none;
}
.hero-visual .col-lines i { border-right: 1px solid rgba(229,229,229,0.5); display: block; }
.hero-visual .col-lines i:last-child { border-right: 0; }
.hero-visual .label-tl {
  position: absolute; left: 24px; bottom: 24px; color: var(--text);
}
@media (min-width: 768px) { .hero-visual .label-tl { left: 40px; bottom: 40px; } }
.hero-visual .label-tl .t { font-family: "Outfit", sans-serif; font-weight: 600; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; margin-top: 8px; }
.hero-visual .label-tl .s { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.hero-visual .label-tr {
  position: absolute; right: 24px; top: 24px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dark-border);
}
@media (min-width: 768px) { .hero-visual .label-tr { right: 40px; top: 40px; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 40px 0;
  overflow: hidden;
}
@media (min-width: 768px) { .marquee { padding: 56px 0; } }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: "Outfit", sans-serif; font-weight: 900; font-style: italic;
  font-size: clamp(64px, 10vw, 160px);
  line-height: 1; letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  margin: 0 32px;
  white-space: nowrap;
}
@media (min-width: 768px) { .marquee-item { margin: 0 56px; } }
.marquee-dot { font-style: normal; font-weight: 300; color: var(--text-3); margin: 0 24px; -webkit-text-stroke: 0; }

/* ---------- Section header ---------- */
.section { padding: 80px 0; background: var(--bg); }
@media (min-width: 768px) { .section { padding: 128px 0; } }
.section-white { background: #fff; }
.section-dark { background: var(--text); color: var(--bg); }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: end; margin-bottom: 48px;
}
@media (min-width: 768px) {
  .section-head { grid-template-columns: 3fr 9fr; gap: 48px; margin-bottom: 80px; }
}
.h2 {
  font-family: "Outfit", sans-serif; font-weight: 300;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 0.95; letter-spacing: -0.035em;
  margin: 0; color: var(--text);
}
.h2 em { font-style: italic; font-weight: 900; }
.section-dark .h2 { color: var(--bg); }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  color: inherit;
  transition: background-color .3s ease;
}
.cat-card:hover { background: var(--bg); }
@media (min-width: 1024px) {
  .cat-card:nth-child(4n+1) { border-left: 1px solid var(--border); }
  .cat-card:nth-child(-n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 1023px) and (min-width: 640px) {
  .cat-card:nth-child(2n+1) { border-left: 1px solid var(--border); }
  .cat-card:nth-child(-n+2) { border-top: 1px solid var(--border); }
}
@media (max-width: 639px) {
  .cat-card { border-left: 1px solid var(--border); }
  .cat-card:first-child { border-top: 1px solid var(--border); }
}
.cat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat-num { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--text-2); }
.cat-arrow { width: 20px; height: 20px; color: var(--text-3); transition: color .2s ease, transform .3s ease; }
.cat-card:hover .cat-arrow { color: var(--text); transform: translate(2px, -2px); }
.cat-media {
  margin-top: 24px; flex: 1; position: relative; overflow: hidden; background: #ede8dc;
}
.cat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-card:hover .cat-media img { transform: scale(1.08); }
.cat-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.03em; line-height: 1; margin-top: 20px; }
.cat-tag { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.5; }

/* ---------- Manifesto ---------- */
.manifesto-wrap {
  border-top: 1px solid var(--dark-border); border-bottom: 1px solid var(--dark-border);
}
.manifesto-row {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--dark-border);
}
.manifesto-row:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .manifesto-row { grid-template-columns: 3fr 5fr 4fr; gap: 48px; padding: 56px 0; }
}
.manifesto-n {
  font-family: "Outfit", sans-serif; font-weight: 900; font-style: italic;
  font-size: clamp(60px, 8vw, 128px);
  line-height: 1; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px var(--bg);
}
.manifesto-t {
  font-family: "Outfit", sans-serif; font-weight: 600;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--bg);
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.manifesto-row:hover .manifesto-t { transform: translateX(8px); }
.manifesto-b { color: var(--text-3); line-height: 1.6; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.section-dark { position: relative; overflow: hidden; }

/* ---------- About + services ---------- */
.about-wrap {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 768px) {
  .about-wrap { grid-template-columns: 4fr 8fr; gap: 48px; }
}
.about-right { padding-left: 0; border-left: 0; }
@media (min-width: 768px) { .about-right { padding-left: 40px; border-left: 1px solid var(--border); } }
.about-right p { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 52ch; }
.about-right p + p { margin-top: 24px; color: var(--text-2); max-width: 58ch; }
.about-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 40px; padding-bottom: 8px;
  border-bottom: 1px solid var(--text); font-size: 14px; font-weight: 500;
  transition: gap .3s ease;
}
.about-link:hover { gap: 12px; }

.services-grid {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-cell {
  padding: 32px;
  border-bottom: 1px solid var(--border);
  transition: background-color .4s ease, color .4s ease;
  cursor: default;
}
.svc-cell:hover { background: var(--text); color: #fff; }
@media (min-width: 1024px) { .svc-cell:not(:nth-child(3n)) { border-right: 1px solid var(--border); } }
@media (min-width: 640px) and (max-width: 1023px) { .svc-cell:nth-child(odd) { border-right: 1px solid var(--border); } }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.svc-num { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); transition: color .4s ease; }
.svc-cell:hover .svc-num { color: var(--text-3); }
.svc-arrow { width: 16px; height: 16px; color: var(--text-3); transition: color .3s ease, transform .3s ease; }
.svc-cell:hover .svc-arrow { color: #fff; transform: translate(2px, -2px); }
.svc-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.025em; line-height: 1.15; }
.svc-body { margin-top: 12px; font-size: 14px; color: var(--text-2); line-height: 1.6; transition: color .4s ease; }
.svc-cell:hover .svc-body { color: #c9c1ae; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.gallery-item {
  position: relative; overflow: hidden; background: #ede8dc;
  aspect-ratio: 1 / 1; cursor: zoom-in;
}
.gallery-item.tall { aspect-ratio: 4 / 5; }
@media (min-width: 768px) { .gallery-item.tall { aspect-ratio: 3 / 4; grid-row: span 2; } }
.gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: rgba(11, 27, 43, 0);
  transition: background-color .3s ease;
}
.gallery-item:hover::after { background: rgba(11, 27, 43, 0.22); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(11, 27, 43, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: none; place-items: center; padding: 16px;
  opacity: 0; transition: opacity .3s ease;
}
.lightbox.open { display: grid; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--dark-border); color: #fff;
  transition: background-color .3s ease, color .3s ease;
}
.lightbox-close:hover { background: #fff; color: var(--text); }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 5fr 7fr; gap: 64px; }
}
.contact-info { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 32px; }
.contact-info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: border-color .3s ease;
}
.contact-info-row:hover { border-bottom-color: var(--text); }
.contact-info-row .l { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-info-row .l svg { width: 16px; height: 16px; color: var(--text-2); }
.contact-info-row a.l:hover svg { color: var(--wa); }
.contact-info-row .r { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.contact-info-row .r svg { width: 16px; height: 16px; }
.contact-info-row.plain { justify-content: flex-start; gap: 12px; }
.contact-info-row.plain svg { width: 16px; height: 16px; color: var(--text-2); margin-top: 4px; align-self: flex-start; }
.contact-info-row.plain span { color: var(--text); }

.contact-form {
  display: grid; grid-template-columns: 1fr; gap: 24px 32px;
}
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-2);
}
.field label .req { color: var(--text); }
.field .input {
  width: 100%; background: transparent;
  border-bottom: 1px solid var(--border-2);
  padding: 10px 0; font-size: 15px; color: var(--text);
  transition: border-color .2s ease;
  outline: none;
}
.field .input:focus { border-color: var(--text); }
.field .input::placeholder { color: var(--text-3); }
textarea.input { resize: vertical; min-height: 120px; }
select.input { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.form-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }
.form-note { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--text-2); max-width: 36ch; }
.form-msg { grid-column: 1 / -1; font-size: 14px; color: var(--wa); }
.form-msg.err { color: #b91c1c; }

.map-frame {
  position: relative; border: 1px solid var(--border);
  aspect-ratio: 16 / 9; background: #ede8dc; overflow: hidden;
}
@media (min-width: 768px) { .map-frame { aspect-ratio: 21 / 9; } }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Product cards ---------- */
.products-header {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
@media (min-width: 768px) {
  .products-header { grid-template-columns: 7fr 5fr; gap: 48px; padding: 80px 0; }
}
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin-bottom: 32px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }
.crumb { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.crumb .n { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--text-2); }
.crumb .rule { height: 1px; width: 64px; background: var(--border-2); }
.cat-hero-h1 {
  font-family: "Outfit", sans-serif; font-weight: 300;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.9; letter-spacing: -0.045em; margin: 0;
}
.cat-hero-p { font-size: 18px; color: var(--text-2); margin-top: 24px; max-width: 42ch; line-height: 1.6; }
.search-wrap {
  border-left: 0; padding-left: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
}
@media (min-width: 768px) { .search-wrap { padding-left: 32px; border-left: 1px solid var(--border); } }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.search-input {
  width: 100%; background: transparent;
  border-bottom: 1px solid var(--border-2);
  padding: 12px 8px 12px 24px; font-size: 15px;
  outline: none; transition: border-color .2s ease;
}
.search-input:focus { border-color: var(--text); }

.count-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); padding: 0 16px; height: 48px; font-size: 14px; color: var(--text-2); }

.products-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding: 56px 0;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 96px 0; } }

.product-card { border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.product-media { position: relative; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--border); overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #ede8dc 0%, #fff 60%); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .9s cubic-bezier(0.22, 1, 0.36, 1); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-series-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  background: #fff; border: 1px solid var(--border);
  padding: 4px 8px;
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.025em; line-height: 1.15; }
.product-specs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.product-specs li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.product-specs li::before { content: ""; display: inline-block; width: 8px; height: 1px; background: var(--text-3); margin-top: 10px; flex-shrink: 0; }
.product-actions {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
@media (min-width: 480px) { .product-actions { flex-direction: row; } }
.product-actions .btn { flex: 1; height: 44px; padding: 0 16px; font-size: 14px; }
.product-actions .btn-icon { flex: 0 0 auto; }

/* ---------- Reveal (IntersectionObserver) ---------- */
.rev { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1), transform .8s cubic-bezier(0.22, 1, 0.36, 1); }
.rev.in { opacity: 1; transform: translateY(0); }
.rev-1 { transition-delay: .06s; }
.rev-2 { transition-delay: .12s; }
.rev-3 { transition-delay: .18s; }
.rev-4 { transition-delay: .24s; }

/* ---------- Footer ---------- */
.footer { background: var(--text); color: #ede8dc; position: relative; overflow: hidden; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 80px 24px; display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .footer-inner { padding: 112px 40px; grid-template-columns: 5fr 3fr 2fr 2fr; } }
.footer h3 { font-family: "Outfit", sans-serif; font-weight: 300; font-size: clamp(28px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.035em; margin: 20px 0 0; }
.footer h3 em { font-style: italic; font-weight: 900; }
.footer .overline { color: var(--dark-muted); margin-bottom: 20px; }
.footer-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-ctas .btn { height: 48px; padding: 0 20px; font-size: 14px; }
.footer-ctas .btn-solid { background: var(--wa); color: var(--text); border-color: var(--wa); }
.footer-ctas .btn-solid:hover { background: #fff; border-color: #fff; }
.footer-ctas .btn-outline { color: #ede8dc; border-color: var(--dark-border); }
.footer-ctas .btn-outline:hover { background: #fff; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14px; color: #c9c1ae; transition: color .2s ease; }
.footer ul a:hover { color: #fff; }
.footer .reach li { display: flex; align-items: flex-start; gap: 12px; color: #c9c1ae; font-size: 14px; }
.footer .reach li svg { width: 16px; height: 16px; color: var(--dark-muted); margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--dark-border); }
.footer-bottom-inner { max-width: var(--max); margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .footer-bottom-inner { padding: 24px 40px; flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom-inner span { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dark-muted); }

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: var(--text);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(11, 27, 43, 0.18);
  transition: transform .3s ease;
  opacity: 0; animation: fade-in-scale 0.6s ease 1.4s forwards;
}
.fab-wa:hover { transform: scale(1.05); }
@keyframes fade-in-scale { from { opacity: 0; transform: translateY(40px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
.fab-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.6;
}
@keyframes ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }
.fab-wa svg { position: relative; z-index: 1; width: 28px; height: 28px; }

/* ---------- Sub-hero for interior pages ---------- */
.page-hero {
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 96px 0 64px;
}
@media (min-width: 768px) { .page-hero { padding: 128px 0 96px; } }
.page-hero .h1 {
  font-family: "Outfit", sans-serif; font-weight: 300;
  font-size: clamp(52px, 9vw, 160px);
  line-height: 0.9; letter-spacing: -0.045em; margin: 24px 0 0;
}
.page-hero .h1 em { font-style: italic; font-weight: 900; }
.page-hero .lead { font-size: 18px; color: var(--text-2); margin-top: 24px; max-width: 56ch; line-height: 1.6; }

/* ---------- Empty state ---------- */
.empty {
  border: 1px dashed var(--border-2);
  padding: 48px; text-align: center;
}
.empty h4 { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.empty p { color: var(--text-2); margin: 8px 0 0; }

/* ---------- Utilities ---------- */
.hide-lg { display: block; }
@media (min-width: 1024px) { .hide-lg { display: none; } }
.only-lg { display: none; }
@media (min-width: 1024px) { .only-lg { display: block; } }

*:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
