/* =========================================================
   NEWFORM × WIX STUDIO — simple project page
   Cards follow the Playground project-card style.
   ========================================================= */
:root {
  --cream: #fff6dc;
  --ink: #111111;
  --orange: #ff9138;
  --dot: rgba(255, 145, 56, 0.72);
  --page-pad: clamp(20px, 3vw, 58px);
  --body: clamp(15px, 1.05vw, 18px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.dotted-bg {
  background-color: #fff;
  background-image: radial-gradient(circle, var(--dot) 0 1.15px, transparent 1.45px);
  background-size: 42px 42px;
}

.nf-main {
  padding: clamp(48px, 6vw, 100px) var(--page-pad) clamp(80px, 9vw, 140px);
}

.nf-head,
.nf-grid {
  width: min(100%, 1500px);
  margin-inline: auto;
}

.nf-head { margin-bottom: clamp(40px, 5vw, 72px); }

.nf-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nf-head h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 5.4vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.nf-intro {
  max-width: 62ch;
  margin: clamp(18px, 2vw, 28px) 0 0;
  font-size: var(--body);
  line-height: 1.65;
}

/* three cards across, then two, then one */
.nf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.nf-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid rgba(40, 40, 40, .1);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.nf-card:hover {
  transform: translateY(-7px);
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 18px 30px rgba(0, 0, 0, .11);
}

.nf-image {
  position: relative;
  aspect-ratio: 1.2 / .84;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #efefed;
  color: #888;
  font-family: "Caveat", cursive;
  font-size: clamp(23px, 1.7vw, 31px);
}

.nf-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nf-copy { padding: 20px 20px 24px; }

.nf-copy h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(21px, 1.55vw, 28px);
  font-weight: 500;
}

.nf-copy p {
  margin: 0;
  font-size: var(--body);
  line-height: 1.6;
}

.nf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.nf-pills li {
  padding: 5px 12px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: #c4600e;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s ease var(--d, 0ms), transform .72s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.nf-card.reveal.is-visible:hover { transform: translateY(-7px); }

@media (max-width: 1000px) {
  .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .nf-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .nf-card, .nf-card:hover { transition: none; transform: none; }
}
