/* ============================================
   PHANTONE STUDIO — MAIN STYLESHEET
   Brand Colors:
     Purple:    #4B21F0
     Red:       #FF3939
     Yellow:    #FFDF39
     Wolf Gray: #0F0F0F
     Off-White: #F2F1EF
   Fonts: Unbounded (headings) / Barlow (body)
   ============================================ */

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

/* ---- TOKENS ---- */
:root {
  --black:     #0F0F0F;
  --offwhite:  #F2F1EF;
  --purple:    #4B21F0;
  --red:       #FF3939;
  --yellow:    #FFDF39;
  --gray:      #1a1a1a;
  --border:    rgba(255,255,255,0.08);
  --unbounded: 'Unbounded', sans-serif;
  --body:      'Barlow', sans-serif;
  --nav-h:     64px;
  --site-max:  1400px;
}

/* ---- BASE ---- */
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

ul { 
  list-style: none; 
}

/* ---- UTILITIES ---- */
.accent-red { 
  color: var(--red); 
}

/* Circle drawn around a word in a heading */
.word-circle {
  position: relative;
  display: inline-block;
}
.word-circle::after {
  content: '';
  position: absolute;
  inset: -6px -14px;
  border: 3px solid var(--red);
  border-radius: 50%;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* Scroll-triggered fade-in — JS adds .visible */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* Dot-grid background used in hero and page headers */
.hero-grid,
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Shown when an <img> fails to load */
.img-placeholder {
  background: #1e1e1e !important;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
}
.img-placeholder img { display: none; }


/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: rgba(15,15,15,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

/* Constrains nav contents to site max-width */
.nav-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* margin-left: auto pushes the link list to the right */
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(242,241,239,0.6);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,

.nav-links a.active { 
  color: var(--offwhite); 
}

/* Red underline on the active page link */
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

/* "Contact Us" pill button in the nav */
.nav-links a.nav-cta {
  color: var(--offwhite);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 18px;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-links a.nav-cta:hover {
  border-color: var(--purple);
  background: rgba(75,33,240,0.12);
}
.nav-links a.nav-cta::after { display: none; }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--offwhite);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { 
  transform: translateY(7px) rotate(45deg); 
}

.nav-hamburger.open span:nth-child(2) { 
  opacity: 0; 
}

.nav-hamburger.open span:nth-child(3) { 
  transform: translateY(-7px) rotate(-45deg); 
}

/* HERO */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
  position: relative;
}

.hero-polaroids {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 440px;
}

.polaroid {
  position: absolute;
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
}

/*NY*/
.polaroid-1 { 
    width: 240px; 
    transform: rotate(-18deg); 
    top: 140px;  
    left: 10px;  
    z-index: 2; 
}

/*Chicago*/
.polaroid-2 { 
    width: 267px; 
    transform: rotate(3deg); 
    top: 0px;  
    left: 140px; 
    z-index: 3; 
}

/*LA*/
.polaroid-3 { 
    width: 232px; 
    transform: rotate(10deg); 
    top: 200px; 
    left: 260px; 
    z-index: 1; 
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,241,239,0.4);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--unbounded);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 14px;
  color: rgba(242,241,239,0.55);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 32px;
}

.brands-badge {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(242,241,239,0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  letter-spacing: 0.02em;
}

/* Transparent button with a 1px gradient border (purple → red → yellow) */
.btn-gradient-outline {
  color: var(--offwhite);
  padding: 11px 26px;
  border-radius: 100px;
  position: relative;
  background: transparent;
  isolation: isolate;
}

.btn-gradient-outline::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--purple), var(--red), var(--yellow));
  z-index: -2;
}

.btn-gradient-outline::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 100px;
  background: var(--black);
  z-index: -1;
  transition: opacity 0.25s;
}

.btn-gradient-outline:hover::after { opacity: 0.85; }

/* Solid red pill button */
.btn-red {
  background: var(--red);
  color: white;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: var(--unbounded);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-red:hover { 
  background: #ff5252; 
}

/* TORN PAPER DIVIDERS */
.torn-divider {
  position: relative;
  height: 80px;
  overflow: visible;
  line-height: 0;
  z-index: 2;
}

.torn-divider svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
}

/* Fills with the off-white section color */
.torn-to-light svg { 
  fill: var(--offwhite); 
}

/* Fills with black and flips vertically */
.torn-to-dark svg  { 
  fill: var(--black); 
  top: 0; 
  bottom: auto; 
  transform: scaleY(-1); 
}
  
/* SECTION WRAPPERS */
.section-light {
  background: var(--offwhite);
  padding: 100px 48px;
}

.section-dark {
  background: var(--black);
  padding: 100px 48px;
}

.section-heading-block {
  text-align: center;
  margin-bottom: 64px;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
}

.sec-title {
  font-family: var(--unbounded);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.sec-title.dark  { 
  color: var(--black); 
}

.sec-title.light { 
  color: var(--offwhite); 
}

.sec-sub {
  font-size: 14px;
  line-height: 1.8;
  max-width: 520px;
  margin: 16px auto 0;
}

.sec-sub.dark  { 
  color: rgba(15,15,15,0.5); 
}

.sec-sub.light { 
  color: rgba(242,241,239,0.5); 
}

.center-btn { 
  text-align: center; 
  margin-top: 48px; 
}


/* RECENT WORK GRID (home page, 3 cards) */
.projects-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--site-max);
  margin: 0 auto;
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #222;
  transition: transform 0.3s;
}

.project-card:hover { 
  transform: scale(1.02); 
}

.project-card:hover .proj-img-wrap img { 
  transform: scale(1.06); 
}

.proj-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.proj-img-wrap img { 
  transition: transform 0.5s ease; 
}

.proj-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.88), transparent);
}

.proj-title {
  font-family: var(--unbounded);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--offwhite);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* SERVICE PILLS */
.services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 48px auto 0;
  max-width: var(--site-max);
}

.service-pill {
  padding: 18px 36px;
  border: 1.5px solid rgba(255,255,255,0.15);
  font-family: var(--unbounded);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--offwhite);
  border-radius: 2px;
  cursor: default;
  pointer-events: none;
}


/* MARQUEE */
.marquee-wrap {
  background: var(--offwhite);
  overflow: hidden;
  border-top: 1.5px solid rgba(15,15,15,0.08);
  border-bottom: 1.5px solid rgba(15,15,15,0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-track.ready {
  animation: marquee 60s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--unbounded);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  white-space: nowrap;
  padding: 18px 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.m-star { 
  color: var(--red); 
  font-size: 14px; 
}


/* WHO WE ARE (home page) */
.who-section {
  background: var(--black);
  padding: 100px 48px;
}

/* Two-column grid: text left, polaroids right */
.who-section .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--site-max);
  margin: 0 auto;
}

.who-text p {
  color: rgba(242,241,239,0.55);
  line-height: 1.9;
  margin: 24px 0 36px;
  font-size: 14px;
}

/* Polaroid cluster — fixed width, pushed right via margin-left: auto */
.who-polaroids {
  position: relative;
  height: 480px;
  width: 400px;
  margin-left: auto;
}

.who-pol {
  position: absolute;
}

.who-pol img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
}

/*Derrick*/
.who-pol-1 { 
  width: 188px; 
  transform: rotate(-6deg); 
  top: 0;    
  left: 0;    
}

/*Derpy*/
.who-pol-2 { 
  width: 200px; 
  transform: rotate(8deg);  
  top: 15px; 
  left: 175px; 
}

/*Eddie*/
.who-pol-3 { 
  width: 181px; 
  transform: rotate(-2deg); 
  top: 140px; 
  left: 70px; 
}

/* PAGE HERO (services + contact headers) */
.page-hero {
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 48px;
}

.page-hero h1 {
  font-family: var(--unbounded);
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
}

/* SERVICES PAGE */
.services-grid {
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-width: var(--site-max);
  margin: 0 auto;
}

.service-card-big {
  background: var(--gray);
  border: 1px solid var(--border);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  scroll-margin-top: 100px;
}

/* Gradient top bar that animates in on hover */
.service-card-big::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card-big:hover { 
  background: #222; 
}

.service-card-big:hover::before { 
  transform: scaleX(1); 
}

.service-num {
  font-family: var(--unbounded);
  font-size: 11px;
  color: rgba(242,241,239,0.25);
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.service-name {
  font-family: var(--unbounded);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.service-desc-text {
  font-size: 14px;
  color: rgba(242,241,239,0.5);
  line-height: 1.9;
}


/* CONTACT PAGE */
.contact-hero {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero-inner {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 60px;
  padding-left: 48px;
  padding-right: 48px;
  position: relative;
  max-width: var(--site-max);
  margin: 0 auto;
}

.contact-hero h1 {
  font-family: var(--unbounded);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 20px;
}

.contact-hero p {
  font-size: 14px;
  color: rgba(242,241,239,0.5);
  line-height: 1.8;
}

.contact-hero a { 
  color: var(--offwhite); 
  font-weight: 500; 
}

.contact-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.field {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.25s;
}

.field:focus-within {
  border-color: rgba(75,33,240,0.55);
  background: rgba(75,33,240,0.04);
}

.field.full { 
  grid-column: 1 / -1; 
}

.field label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,241,239,0.35);
  font-family: var(--body);
  font-weight: 500;
}

.field input,

.field textarea,

.field select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--offwhite);
  font-family: var(--body);
  font-size: 14px;
  resize: none;
}

.field input::placeholder,

.field textarea::placeholder { 
  color: rgba(242,241,239,0.2); 
}

.field select { 
  cursor: pointer; 
}

.field select option { 
  background: #1a1a1a; 
}

.field textarea { 
  min-height: 130px; 
}

.submit-row {
  text-align: center;
  margin-top: 24px;
}

.btn-submit {
  background: linear-gradient(90deg, var(--purple), var(--red));
  color: white;
  font-family: var(--unbounded);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  padding: 17px 56px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-submit:hover { 
  opacity: 0.88; 
  transform: scale(1.02); 
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  font-family: var(--unbounded);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--yellow);
  letter-spacing: 0.06em;
}

/* FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
}

/* Decorative top stripe */
.chain-strip {
  height: 22px;
  overflow: hidden;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.06) 0px,
    rgba(255,255,255,0.06) 14px,
    rgba(255,255,255,0.03) 14px,
    rgba(255,255,255,0.03) 16px,
    transparent 16px,
    transparent 22px
  );
  border-bottom: 1px solid var(--border);
}

.footer-inner {
  padding: 48px 48px 0;
  max-width: var(--site-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding-top: 4px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(242,241,239,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.footer-links a::before { 
  content: '↗'; 
  font-size: 10px; 
}

.footer-links a:hover { 
  color: var(--offwhite); 
}

/*footer Socials*/
.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s; 
}

.footer-socials img {
  width: 20px;
  height: 20px;
  filter: invert(0);
  display: block;
  border-radius: 3px; 
}

.footer-socials a:hover img {
  transform: scale(1.2); 
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  font-size: 12px;
  color: rgba(242,241,239,0.25);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { 
  color: rgba(242,241,239,0.35); 
  transition: color 0.2s; 
}

.footer-bottom a:hover { 
  color: var(--offwhite); 
}


/* RESPONSIVE — Tablet (≤1024px) */
@media (max-width: 1024px) {
  .nav-inner,
  .hero-inner { padding: 0 32px; }
  .page-hero-inner,
  .contact-hero-inner { padding-left: 32px; padding-right: 32px; }
  .section-light,
  .section-dark { padding-left: 32px; padding-right: 32px; }
  .services-grid,
  .contact-form-wrap,
  .footer-inner { padding-left: 32px; padding-right: 32px; }
  .who-section { padding-left: 32px; padding-right: 32px; }
  .hero-polaroids { right: 32px; }
}

/* RESPONSIVE — Mobile (≤860px) */
@media (max-width: 860px) {
  :root { --nav-h: 56px; }

  /* Nav collapses to hamburger */
  .nav-inner { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(15,15,15,0.98);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    z-index: 400;
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.nav-cta { border: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero-inner { padding: 0 20px; }
  .hero-polaroids { display: none; }
  .hero-title { font-size: clamp(34px, 9vw, 52px); }

  /* Sections */
  .section-light,
  .section-dark { padding: 72px 20px; }
  .who-section { padding: 72px 20px; }

  /* Grids collapse to single column */
  .projects-grid-home { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }

  /* Who We Are stacks vertically */
  .who-section .inner { display: block; }
  .who-polaroids {
    width: auto;
    height: 320px;
    margin-left: 0;
    margin-bottom: 48px;
  }

  /* Page heroes */
  .page-hero-inner { padding-left: 20px; padding-right: 20px; }
  .contact-hero-inner { padding-left: 20px; padding-right: 20px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .footer-links { flex-direction: column; gap: 8px; }
  .contact-form-wrap { padding-left: 20px; padding-right: 20px; }
}

/* ACCESSIBILITY — Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up,
  .fade-up.visible { opacity: 1; transform: none; }
}
