/* ==========================================================================
   Sunrise Riggers — core stylesheet
   Brand: black / neon pink (#FF6B99) / cyan (#00F9FF) / Pricedown display
   ========================================================================== */

@font-face {
  font-family: 'Pricedown';
  src: url('pricedown.woff2') format('woff2'),
       url('pricedown.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #0a0a0a;
  --panel: #0f0f0f;
  --line: #1e1e1e;
  --pink: #ff6b99;
  --cyan: #00f9ff;
  --white: #fff;
  --muted: #9a9a9a;
  --body: #d8d8d8;
  --display: 'Pricedown', 'Arial Black', Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}

h1.display { font-size: clamp(2.2rem, 6vw, 4rem); }
h2.display { font-size: clamp(1.6rem, 4vw, 2.6rem); }

.pink { color: var(--pink); }
.cyan { color: var(--cyan); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--body);
  max-width: 62ch;
}

/* ---------- Static / noise overlay ---------- */

.static-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  background-image: repeating-conic-gradient(
    from 0deg, #fff 0deg 1deg, #000 1deg 2deg
  );
  background-size: 3px 3px;
  mix-blend-mode: screen;
}
.static-overlay.active { opacity: 0.07; }

@media (prefers-reduced-motion: reduce) {
  .static-overlay { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.solid {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand:hover { text-decoration: none; }

/* Small logo in the header only appears once you scroll past the hero */
.brand-logo {
  width: 40px;
  height: 40px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.site-header.solid .brand-logo { opacity: 1; transform: scale(1); }

.brand-name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.nav a {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--pink);
  transition: right 0.25s ease;
}
.nav a:hover { text-decoration: none; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--pink); }

.nav-cta {
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 8px 16px !important;
  border-radius: 2px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--cyan); color: #000 !important; }

/* ---------- Hero + scroll effect ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 9vh, 96px) var(--pad) clamp(24px, 4vh, 40px);
  overflow: hidden;
}

/* the logo shrinks and lifts as you scroll */
.hero-logo {
  width: clamp(150px, 21vw, 250px);
  height: auto;
  will-change: transform, opacity;
  transform-origin: center;
  transition: transform 0.12s linear;
}

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1rem, 2.3vw, 1.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  margin: 18px 0 0;
  max-width: 30ch;
  line-height: 1.2;
}

.hero-sub {
  margin: 12px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 52ch;
}

/* two big tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.4vw, 26px);
  width: 100%;
  max-width: 800px;
  margin: clamp(20px, 3.2vw, 32px) auto 0;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--panel);
  aspect-ratio: 16 / 10;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.35s ease, transform 0.6s ease;
}
.tile-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 10px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.tile--projects { border-color: rgba(255,107,153,0.35); }
.tile--projects .tile-label { color: var(--pink); }
.tile--about { border-color: rgba(0,249,255,0.35); }
.tile--about .tile-label { color: var(--cyan); }

.tile:hover { transform: translateY(-3px); }
.tile--projects:hover { border-color: var(--pink); }
.tile--about:hover { border-color: var(--cyan); }
.tile:hover img { opacity: 1; transform: scale(1.04); }

.hero-contact {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.hero-contact a { color: var(--white); }
.hero-contact a:hover { color: var(--pink); }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 9vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.section-head { margin-bottom: clamp(30px, 5vw, 52px); }

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

/* services */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(22px, 3vw, 30px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: #333; transform: translateY(-2px); }

.card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 12px;
}
.card p { margin: 0; color: var(--body); font-size: 0.96rem; }

/* proof / credits */
.credits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.credit {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid #2a2a2a;
  padding: 8px 14px;
  border-radius: 2px;
  background: #0c0c0c;
}

/* badges */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.badge {
  border-left: 2px solid var(--pink);
  padding: 4px 0 4px 16px;
}
.badge strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.badge span { font-size: 0.88rem; color: var(--muted); }

/* CTA band */
.cta {
  background: linear-gradient(135deg, #12060b 0%, #000 55%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(24px, 3vw, 34px);
  border-radius: 4px;
  min-width: min(100%, 340px);
}
.contact-card__label {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.contact-card__email,
.contact-card__phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  letter-spacing: 0.02em;
  color: var(--cyan);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-card__phone { color: var(--pink); }
.contact-card__email:hover,
.contact-card__phone:hover { border-bottom-color: currentColor; }

.cta h2 { max-width: 20ch; }
.cta p { color: var(--muted); margin: 12px 0 0; max-width: 44ch; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 2px solid var(--pink);
  color: var(--pink);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--pink); color: #000; text-decoration: none; }
.btn--cyan { border-color: var(--cyan); color: var(--cyan); }
.btn--cyan:hover { background: var(--cyan); color: #000; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Projects ---------- */

.page-head {
  padding: clamp(110px, 16vw, 170px) 0 clamp(36px, 6vw, 60px);
  border-bottom: 1px solid var(--line);
}
.page-head p { color: var(--muted); margin: 16px 0 0; max-width: 62ch; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}
.filter {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: var(--muted);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter:hover { color: var(--white); border-color: #444; }
.filter[aria-pressed="true"] {
  color: #000;
  background: var(--cyan);
  border-color: var(--cyan);
}

.projects {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  padding: clamp(36px, 6vw, 64px) 0;
}

.project {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(20px, 3vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.project:hover { border-color: #303030; }

.project-media {
  position: relative;
  min-height: 240px;
  background: #080808;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.project-media .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #333;
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(45deg, #0b0b0b 0 10px, #0d0d0d 10px 20px);
}

.project-body { padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px) clamp(26px, 3vw, 34px) 0; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tag {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(255,107,153,0.12);
  color: var(--pink);
  border: 1px solid rgba(255,107,153,0.3);
}
.tag--year {
  background: transparent;
  border-color: #2a2a2a;
  color: var(--muted);
}

.project h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 6px;
  line-height: 1.05;
}

.project-role {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.project-desc { margin: 0; color: var(--body); font-size: 0.96rem; }

.project-highlight {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--cyan);
  background: rgba(0,249,255,0.045);
  color: #bfe9ec;
  font-size: 0.92rem;
  font-style: italic;
}

.project-details {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.85rem;
  color: var(--muted);
}
.project-details b { color: #cfcfcf; font-weight: 600; }

/* ---------- About ---------- */

.prose { max-width: 70ch; }
.prose p { margin: 0 0 18px; }

.pull {
  border-left: 3px solid var(--pink);
  padding: 6px 0 6px 22px;
  margin: 30px 0;
  font-size: 1.1rem;
  color: var(--white);
}

/* ---------- Contact form ---------- */


/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 34px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand { max-width: 320px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-col h4 {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 12px;
}
.footer-col a { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--cyan); }
.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #555;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project-media { min-height: 210px; aspect-ratio: 16 / 9; }
  .project-body { padding: 0 clamp(20px, 4vw, 26px) clamp(24px, 4vw, 30px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .hero { padding-top: 84px; min-height: auto; }
  .hero-logo { width: min(62vw, 260px); }
    .nav { gap: 12px; }
  .nav a { font-size: 0.8rem; letter-spacing: 0.1em; }
  .nav-cta { padding: 6px 10px !important; }
  .brand-name { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-contact { font-size: 0.85rem; }
}
