/* ========================================
   Pointiful.com
   Editorial / High-contrast agency site
   ======================================== */

:root {
  --c-dark: #0e0e0e;
  --c-dark-warm: #1a1714;
  --c-light: #f7f5f2;
  --c-cream: #ede9e3;
  --c-muted: #8a8580;
  --c-red-deep: #BE1622;
  --c-red: #E6332A;
  --c-orange-red: #E94E1B;
  --c-orange: #F39200;
  --c-yellow: #F9B233;
  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-body: 'Outfit', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--c-dark);
  background: var(--c-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.nav__logo-img:hover { opacity: 0.8; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}
.nav__links a { transition: color 0.25s; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  background: var(--c-orange-red);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.25s, transform 0.2s !important;
}
.nav__cta:hover { background: var(--c-red); transform: translateY(-1px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--c-dark);
  color: #fff;
  overflow: hidden;
}
.hero__gradient-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--c-red-deep), var(--c-red), var(--c-orange-red), var(--c-orange), var(--c-yellow));
}
.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 120px clamp(32px, 6vw, 80px) 80px;
  width: 100%;
}
.hero__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--c-orange-red), var(--c-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}
.hero__arrow {
  display: inline-flex;
  margin-top: 48px;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s, transform 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}
.hero__arrow:hover { color: var(--c-orange); transform: translateY(4px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FEATURED PROJECT ========== */
.featured {
  background: var(--c-light);
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}
.featured__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.featured__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 48px;
}
.featured__label-line {
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-orange-red), var(--c-yellow));
}
.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.featured__title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.featured__subtitle {
  font-size: 18px;
  color: var(--c-muted);
  font-weight: 300;
  margin-bottom: 20px;
}
.featured__desc {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 24px;
}
.featured__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.featured__tags .tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--c-cream);
  color: var(--c-dark-warm);
}
.featured__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-orange-red);
  padding: 12px 28px;
  border: 2px solid var(--c-orange-red);
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.featured__link:hover {
  background: var(--c-orange-red);
  color: #fff;
  transform: translateY(-2px);
}
.featured__link svg { transition: transform 0.3s; }
.featured__link:hover svg { transform: translate(2px, -2px); }

/* Device mockups */
.featured__visual { position: relative; }
.featured__devices {
  position: relative;
}
.featured__browser {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.08),
    0 24px 64px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.featured__browser-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--c-cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.featured__browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
}
.featured__browser-content {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.featured__browser-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.featured__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-cream) 0%, #f0ece6 100%);
}
.featured__placeholder-logo {
  width: 56px;
  height: 56px;
  opacity: 0.2;
}

/* Phone mockup */
.featured__phone {
  position: absolute;
  bottom: -24px;
  right: -20px;
  width: 140px;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 8px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.25),
    0 2px 8px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 2;
}
.featured__phone-notch {
  width: 48px;
  height: 5px;
  background: #333;
  border-radius: 4px;
  margin: 4px auto 6px;
}
.featured__phone-screen {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #000;
}
.featured__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ========== PROJECTS GRID ========== */
.projects {
  background: var(--c-dark);
  color: #fff;
  padding: clamp(64px, 10vw, 120px) 0;
}
.projects__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.projects__header {
  margin-bottom: clamp(40px, 6vw, 64px);
}
.projects__title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}
.projects__intro {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

/* Project Card */
.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
  position: relative;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
}
.project-card__screenshot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06));
  position: relative;
}
.project-card__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card__screenshot img {
  transform: scale(1.03);
}
.project-card__screenshot-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__screenshot-empty img {
  width: 40px;
  opacity: 0.1;
}
.project-card__body {
  padding: 24px;
}
.project-card__title {
  font-family: var(--ff-display);
  font-size: 22px;
  margin-bottom: 4px;
}
.project-card__subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  margin-bottom: 12px;
}
.project-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.project-card__tags .tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-orange);
  transition: gap 0.3s;
}
.project-card__link:hover { gap: 10px; }
.project-card__link svg { width: 14px; height: 14px; }

/* ========== ABOUT ========== */
.about {
  background: var(--c-light);
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.about__gradient-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-red-deep), var(--c-red), var(--c-orange-red), var(--c-orange), var(--c-yellow));
}
.about__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
}
.about__title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  position: sticky;
  top: 100px;
}
.about__title em {
  font-style: italic;
  color: var(--c-orange-red);
}
.about__text {
  margin-bottom: 48px;
}
.about__text p {
  font-size: 17px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 16px;
}
.about__services {
  display: grid;
  gap: 28px;
}
.about__service {
  padding-left: 20px;
  border-left: 3px solid var(--c-cream);
  transition: border-color 0.3s;
}
.about__service:hover { border-left-color: var(--c-orange-red); }
.about__service h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  margin-bottom: 6px;
}
.about__service p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ========== CONTACT / FOOTER ========== */
.contact {
  background: var(--c-dark);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 0 32px;
}
.contact__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.contact__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact__logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}
.contact__tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}
.contact__col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 14px;
}
.contact__col address,
.contact__col a {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  transition: color 0.25s;
}
.contact__col a:hover { color: #fff; }
.contact__bottom {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }
  .featured__visual { order: -1; }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__title {
    position: static;
  }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .projects__grid {
    grid-template-columns: 1fr;
  }
  .hero__content {
    padding: 100px 24px 60px;
  }
}
